]> git.saurik.com Git - wxWidgets.git/blame - configure
Add missing WINDOWPOS flags for WinCE build to include/wx/msw/wince/missing.h
[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.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
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'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
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"
3565d135 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR 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 REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS HILDON_CFLAGS HILDON_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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 EXTRALIBS_HILDON 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 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 dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_GUI_1_USE_QA_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_GUI_1_USE_QA_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_SOVERCYGWIN_0_USE_SOVERSION_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_MSDOS_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_USE_XRC_1 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_SHARED_1_USE_XRC_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_MSW_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_WINCE_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_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC 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
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 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
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
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
f34ca037 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
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 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
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 962 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
963 --enable-postscript use wxPostscriptDC device context (default for gtk+)
964 --enable-prologio not available; see contrib
965 --enable-resources not available; see contrib
966 --enable-clipboard use wxClipboard class
967 --enable-dnd use Drag'n'Drop classes
968 --enable-metafile use win32 metafiles
969 --enable-controls use all usual controls
970 --enable-accel use accelerators
971 --enable-button use wxButton class
972 --enable-bmpbutton use wxBitmapButton class
973 --enable-calendar use wxCalendarCtrl class
974 --enable-caret use wxCaret class
975 --enable-checkbox use wxCheckBox class
976 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
977 --enable-choice use wxChoice class
92bbdbcd 978 --enable-choicebook use wxChoicebook class
a848cd7e 979 --enable-combobox use wxComboBox class
da98e9be 980 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
981 --enable-display use wxDisplay class
982 --enable-gauge use wxGauge class
983 --enable-grid use wxGrid class
20e34ecc 984 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
985 --enable-imaglist use wxImageList class
986 --enable-listbook use wxListbook class
987 --enable-listbox use wxListBox class
988 --enable-listctrl use wxListCtrl class
989 --enable-notebook use wxNotebook class
990 --enable-radiobox use wxRadioBox class
991 --enable-radiobtn use wxRadioButton class
992 --enable-sash use wxSashWindow class
993 --enable-scrollbar use wxScrollBar class and scrollable windows
994 --enable-slider use wxSlider class
995 --enable-spinbtn use wxSpinButton class
996 --enable-spinctrl use wxSpinCtrl class
997 --enable-splitter use wxSplitterWindow class
998 --enable-statbmp use wxStaticBitmap class
999 --enable-statbox use wxStaticBox class
1000 --enable-statline use wxStaticLine class
1001 --enable-stattext use wxStaticText class
1002 --enable-statusbar use wxStatusBar class
1003 --enable-tabdialog use wxTabControl class
1004 --enable-textctrl use wxTextCtrl class
1005 --enable-togglebtn use wxToggleButton class
1006 --enable-toolbar use wxToolBar class
1007 --enable-tbarnative use native wxToolBar class
1008 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1009 --enable-treebook use wxTreebook class
a848cd7e
SC
1010 --enable-treectrl use wxTreeCtrl class
1011 --enable-tipwindow use wxTipWindow class
1012 --enable-popupwin use wxPopUpWindow class
1013 --enable-commondlg use all common dialogs
1014 --enable-choicedlg use wxChoiceDialog
1015 --enable-coldlg use wxColourDialog
1016 --enable-filedlg use wxFileDialog
1017 --enable-finddlg use wxFindReplaceDialog
1018 --enable-fontdlg use wxFontDialog
1019 --enable-dirdlg use wxDirDialog
1020 --enable-msgdlg use wxMessageDialog
1021 --enable-numberdlg use wxNumberEntryDialog
1022 --enable-splash use wxSplashScreen
1023 --enable-textdlg use wxTextDialog
1024 --enable-tipdlg use startup tips
1025 --enable-progressdlg use wxProgressDialog
1026 --enable-wizarddlg use wxWizard
1027 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1028 --enable-miniframe use wxMiniFrame class
1029 --enable-tooltips use wxToolTip class
1030 --enable-splines use spline drawing code
fbe2ca43 1031 --enable-mousewheel use mousewheel
a848cd7e
SC
1032 --enable-validators use wxValidator and derived classes
1033 --enable-busyinfo use wxBusyInfo
4cb1d3da 1034 --enable-joystick use wxJoystick
38b4a946 1035 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1036 --enable-dragimage use wxDragImage
1037 --enable-accessibility enable accessibility support
38b4a946 1038 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1039 --enable-palette use wxPalette class
1040 --enable-image use wxImage class
1041 --enable-gif use gif images (GIF file format)
1042 --enable-pcx use pcx images (PCX file format)
1043 --enable-iff use iff images (IFF file format)
1044 --enable-pnm use pnm images (PNM file format)
1045 --enable-xpm use xpm images (XPM file format)
1046 --enable-icocur use Windows ICO and CUR formats
77ffb593 1047 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1048 --enable-vendor=VENDOR vendor name (win32 DLL only)
1049 --disable-largefile omit support for large files
1050 --disable-gtktest do not try to compile and run a test GTK+ program
1051 --disable-gtktest Do not try to compile and run a test GTK program
1052 --disable-sdltest Do not try to compile and run a test SDL program
1053 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1054 --disable-precomp-headers
1055 don't use precompiled headers even if compiler can
a848cd7e
SC
1056
1057Optional Packages:
1058 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1059 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1060 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1061 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1062 --with-motif use Motif/Lesstif
1063 --with-mac use Mac OS X
1064 --with-cocoa use Cocoa
1065 --with-wine use Wine
1066 --with-msw use MS-Windows
1067 --with-pm use OS/2 Presentation Manager
1068 --with-mgl use SciTech MGL
1069 --with-microwin use MicroWindows
1070 --with-x11 use X11
1071 --with-libpng use libpng (PNG image format)
1072 --with-libjpeg use libjpeg (JPEG file format)
1073 --with-libtiff use libtiff (TIFF file format)
1074 --with-libxpm use libxpm (XPM file format)
1075 --with-libmspack use libmspack (CHM help files loading)
1076 --with-sdl use SDL for audio on Unix
d51253e8 1077 --with-gnomeprint use GNOME print for printing under Unix
3565d135 1078 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1079 --with-opengl use OpenGL (or Mesa)
1080 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1081 --with-regex enable support for wxRegEx class
1082 --with-zlib use zlib for LZW compression
1083 --with-odbc use the IODBC and wxODBC classes
1084 --with-expat enable XML support using expat parser
ceec2216 1085 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1086 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1087 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1088 --with-x use the X Window System
1089 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1090 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1091 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1092 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1093 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1094
1095Some influential environment variables:
dcc1b6ad
VS
1096 CC C compiler command
1097 CFLAGS C compiler flags
1098 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1099 nonstandard directory <lib dir>
1100 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101 headers in a nonstandard directory <include dir>
1102 CPP C preprocessor
1103 CXX C++ compiler command
1104 CXXFLAGS C++ compiler flags
1105 CXXCPP C++ preprocessor
a848cd7e
SC
1106
1107Use these variables to override the choices made by `configure' or to help
1108it to find libraries and programs with nonstandard names/locations.
1109
77ffb593 1110Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1111_ACEOF
1112fi
1113
1114if test "$ac_init_help" = "recursive"; then
1115 # If there are subdirs, report their specific --help.
1116 ac_popdir=`pwd`
1117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118 test -d $ac_dir || continue
1119 ac_builddir=.
1120
1121if test "$ac_dir" != .; then
1122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123 # A "../" for each directory in $ac_dir_suffix.
1124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125else
1126 ac_dir_suffix= ac_top_builddir=
1127fi
1128
1129case $srcdir in
1130 .) # No --srcdir option. We are building in place.
1131 ac_srcdir=.
1132 if test -z "$ac_top_builddir"; then
1133 ac_top_srcdir=.
1134 else
1135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 fi ;;
1137 [\\/]* | ?:[\\/]* ) # Absolute path.
1138 ac_srcdir=$srcdir$ac_dir_suffix;
1139 ac_top_srcdir=$srcdir ;;
1140 *) # Relative path.
1141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143esac
ac1cb8d3
VS
1144
1145# Do not use `cd foo && pwd` to compute absolute paths, because
1146# the directories may not exist.
1147case `pwd` in
1148.) ac_abs_builddir="$ac_dir";;
1149*)
1150 case "$ac_dir" in
1151 .) ac_abs_builddir=`pwd`;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154 esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_top_builddir=${ac_top_builddir}.;;
1158*)
1159 case ${ac_top_builddir}. in
1160 .) ac_abs_top_builddir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163 esac;;
1164esac
1165case $ac_abs_builddir in
1166.) ac_abs_srcdir=$ac_srcdir;;
1167*)
1168 case $ac_srcdir in
1169 .) ac_abs_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172 esac;;
1173esac
1174case $ac_abs_builddir in
1175.) ac_abs_top_srcdir=$ac_top_srcdir;;
1176*)
1177 case $ac_top_srcdir in
1178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181 esac;;
1182esac
a848cd7e
SC
1183
1184 cd $ac_dir
1185 # Check for guested configure; otherwise get Cygnus style configure.
1186 if test -f $ac_srcdir/configure.gnu; then
1187 echo
1188 $SHELL $ac_srcdir/configure.gnu --help=recursive
1189 elif test -f $ac_srcdir/configure; then
1190 echo
1191 $SHELL $ac_srcdir/configure --help=recursive
1192 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1193 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1194 echo
1195 $ac_configure --help
1196 else
1197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 fi
3565d135 1199 cd $ac_popdir
a848cd7e
SC
1200 done
1201fi
1202
1203test -n "$ac_init_help" && exit 0
1204if $ac_init_version; then
1205 cat <<\_ACEOF
dd8df4fc 1206wxWidgets configure 2.7.0
ac1cb8d3 1207generated by GNU Autoconf 2.59
a848cd7e 1208
ac1cb8d3 1209Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1210This configure script is free software; the Free Software Foundation
1211gives unlimited permission to copy, distribute and modify it.
1212_ACEOF
1213 exit 0
1214fi
1215exec 5>config.log
1216cat >&5 <<_ACEOF
1217This file contains any messages produced by compilers while
1218running configure, to aid debugging if configure makes a mistake.
1219
dd8df4fc 1220It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1221generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1222
1223 $ $0 $@
1224
1225_ACEOF
1226{
1227cat <<_ASUNAME
1228## --------- ##
1229## Platform. ##
1230## --------- ##
1231
1232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1240
1241/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1248
1249_ASUNAME
1250
1251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252for as_dir in $PATH
1253do
1254 IFS=$as_save_IFS
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1257done
1258
1259} >&5
1260
1261cat >&5 <<_ACEOF
1262
1263
1264## ----------- ##
1265## Core tests. ##
1266## ----------- ##
1267
1268_ACEOF
1269
1270
1271# Keep a trace of the command line.
1272# Strip out --no-create and --no-recursion so they do not pile up.
1273# Strip out --silent because we don't want to record it for future runs.
1274# Also quote any args containing shell meta-characters.
1275# Make two passes to allow for proper duplicate-argument suppression.
1276ac_configure_args=
1277ac_configure_args0=
1278ac_configure_args1=
1279ac_sep=
1280ac_must_keep_next=false
1281for ac_pass in 1 2
1282do
1283 for ac_arg
1284 do
1285 case $ac_arg in
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1289 continue ;;
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 esac
1293 case $ac_pass in
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295 2)
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
ac1cb8d3 1298 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1299 else
ac1cb8d3
VS
1300 case $ac_arg in
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307 esac
1308 ;;
1309 -* ) ac_must_keep_next=true ;;
1310 esac
a848cd7e
SC
1311 fi
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1314 ac_sep=" "
1315 ;;
1316 esac
1317 done
1318done
1319$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322# When interrupted or exit'd, cleanup temporary files, and complete
1323# config.log. We remove comments because anyway the quotes in there
1324# would cause problems or look ugly.
1325# WARNING: Be sure not to use single quotes in there, as some shells,
1326# such as our DU 5.0 friend, will then `close' the trap.
1327trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1329 {
1330 echo
1331
1332 cat <<\_ASBOX
1333## ---------------- ##
1334## Cache variables. ##
1335## ---------------- ##
1336_ASBOX
1337 echo
1338 # The following way of writing the cache mishandles newlines in values,
1339{
1340 (set) 2>&1 |
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342 *ac_space=\ *)
1343 sed -n \
ac1cb8d3
VS
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1346 ;;
1347 *)
1348 sed -n \
ac1cb8d3 1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1350 ;;
1351 esac;
1352}
1353 echo
1354
1355 cat <<\_ASBOX
1356## ----------------- ##
1357## Output variables. ##
1358## ----------------- ##
1359_ASBOX
1360 echo
1361 for ac_var in $ac_subst_vars
1362 do
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1365 done | sort
1366 echo
1367
1368 if test -n "$ac_subst_files"; then
1369 cat <<\_ASBOX
1370## ------------- ##
1371## Output files. ##
1372## ------------- ##
1373_ASBOX
1374 echo
1375 for ac_var in $ac_subst_files
1376 do
1377 eval ac_val=$`echo $ac_var`
ac1cb8d3 1378 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1379 done | sort
1380 echo
1381 fi
1382
1383 if test -s confdefs.h; then
1384 cat <<\_ASBOX
1385## ----------- ##
1386## confdefs.h. ##
1387## ----------- ##
1388_ASBOX
1389 echo
1390 sed "/^$/d" confdefs.h | sort
1391 echo
1392 fi
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1396 } >&5
ac1cb8d3 1397 rm -f core *.core &&
a848cd7e
SC
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399 exit $exit_status
1400 ' 0
1401for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403done
1404ac_signal=0
1405
1406# confdefs.h avoids OS command line length limits that DEFS can exceed.
1407rm -rf conftest* confdefs.h
1408# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409echo >confdefs.h
1410
1411# Predefined preprocessor variables.
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_NAME "$PACKAGE_NAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_VERSION "$PACKAGE_VERSION"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_STRING "$PACKAGE_STRING"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435_ACEOF
1436
1437
1438# Let the site file select an alternate cache file if it wants to.
1439# Prefer explicitly selected file to automatically selected ones.
1440if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443 else
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445 fi
1446fi
1447for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1452 . "$ac_site_file"
1453 fi
1454done
1455
1456if test -r "$cache_file"; then
1457 # Some versions of bash will fail to source /dev/null (special
1458 # files actually), so we avoid doing that.
1459 if test -f "$cache_file"; then
1460 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1461echo "$as_me: loading cache $cache_file" >&6;}
1462 case $cache_file in
1463 [\\/]* | ?:[\\/]* ) . $cache_file;;
1464 *) . ./$cache_file;;
1465 esac
1466 fi
1467else
1468 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1469echo "$as_me: creating cache $cache_file" >&6;}
1470 >$cache_file
1471fi
1472
1473# Check that the precious variables saved in the cache have kept the same
1474# value.
1475ac_cache_corrupted=false
1476for ac_var in `(set) 2>&1 |
ac1cb8d3 1477 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1479 eval ac_new_set=\$ac_env_${ac_var}_set
1480 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1481 eval ac_new_val="\$ac_env_${ac_var}_value"
1482 case $ac_old_set,$ac_new_set in
1483 set,)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,set)
1488 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1489echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1490 ac_cache_corrupted=: ;;
1491 ,);;
1492 *)
1493 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1494 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1495echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1496 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1497echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1498 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1499echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1500 ac_cache_corrupted=:
a848cd7e
SC
1501 fi;;
1502 esac
1503 # Pass precious variables to config.status.
1504 if test "$ac_new_set" = set; then
1505 case $ac_new_val in
1506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1507 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1508 *) ac_arg=$ac_var=$ac_new_val ;;
1509 esac
1510 case " $ac_configure_args " in
1511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1512 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1513 esac
1514 fi
1515done
1516if $ac_cache_corrupted; then
1517 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1518echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1519 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1520echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523
1524ac_ext=c
1525ac_cpp='$CPP $CPPFLAGS'
1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559ac_aux_dir=
1560for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1561 if test -f $ac_dir/install-sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 break
1565 elif test -f $ac_dir/install.sh; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 break
1569 elif test -f $ac_dir/shtool; then
1570 ac_aux_dir=$ac_dir
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 break
1573 fi
1574done
1575if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1579fi
1580ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584# Make sure we can run config.sub.
1585$ac_config_sub sun4 >/dev/null 2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590echo "$as_me:$LINENO: checking build system type" >&5
1591echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 ac_cv_build_alias=$build_alias
1596test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias=`$ac_config_guess`
1598test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609echo "${ECHO_T}$ac_cv_build" >&6
1610build=$ac_cv_build
1611build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
1651fi
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
1666
1667
1668
ceec2216 1669wx_major_version_number=2
dd8df4fc
VZ
1670wx_minor_version_number=7
1671wx_release_number=0
1672wx_subrelease_number=0
a848cd7e 1673
ceec2216
RL
1674WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1675WX_VERSION=$WX_RELEASE.$wx_release_number
1676WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1677
ceec2216 1678WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1679
a848cd7e
SC
1680
1681
1682
1683USE_UNIX=1
1684USE_OS2=0
1685USE_WIN32=0
1686USE_DOS=0
1687USE_BEOS=0
1688USE_MAC=0
1689
1690USE_AIX=
1691USE_BSD= USE_DARWIN= USE_FREEBSD=
1692USE_GNU= USE_HPUX=
1693USE_LINUX=
1694USE_NETBSD=
1695USE_OPENBSD=
1696USE_OSF= USE_SGI=
1697USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1698USE_ULTRIX=
1699USE_UNIXWARE=
1700
1701USE_ALPHA=
1702
1703NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1704
1705ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1706
1707DEFAULT_wxUSE_COCOA=0
1708DEFAULT_wxUSE_GTK=0
1709DEFAULT_wxUSE_MAC=0
1710DEFAULT_wxUSE_MGL=0
1711DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_wxUSE_MSW=0
1714DEFAULT_wxUSE_PM=0
1715DEFAULT_wxUSE_X11=0
1716
1717DEFAULT_DEFAULT_wxUSE_COCOA=0
1718DEFAULT_DEFAULT_wxUSE_GTK=0
1719DEFAULT_DEFAULT_wxUSE_MAC=0
1720DEFAULT_DEFAULT_wxUSE_MGL=0
1721DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1722DEFAULT_DEFAULT_wxUSE_MOTIF=0
1723DEFAULT_DEFAULT_wxUSE_MSW=0
1724DEFAULT_DEFAULT_wxUSE_PM=0
1725DEFAULT_DEFAULT_wxUSE_X11=0
1726
1727PROGRAM_EXT=
1728SO_SUFFIX=so
1729SAMPLES_RPATH_FLAG=
1730SAMPLES_RPATH_POSTLINK=
1731
a03b8b04
RD
1732DEFAULT_STD_FLAG=yes
1733
a848cd7e
SC
1734case "${host}" in
1735 *-hp-hpux* )
1736 USE_HPUX=1
1737 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1738 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1739 SO_SUFFIX=sl
1740 cat >>confdefs.h <<\_ACEOF
1741#define __HPUX__ 1
1742_ACEOF
1743
2eef8513 1744
c92ad099 1745 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1746 ;;
1747 *-*-linux* )
1748 USE_LINUX=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __LINUX__ 1
1751_ACEOF
1752
1753 TMP=`uname -m`
1754 if test "x$TMP" = "xalpha"; then
1755 USE_ALPHA=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __ALPHA__ 1
1758_ACEOF
1759
1760 fi
1761 DEFAULT_DEFAULT_wxUSE_GTK=1
1762 ;;
1763 *-*-gnu* | *-*-k*bsd*-gnu )
1764 USE_GNU=1
1765 TMP=`uname -m`
1766 if test "x$TMP" = "xalpha"; then
1767 USE_ALPHA=1
1768 cat >>confdefs.h <<\_ACEOF
1769#define __ALPHA__ 1
1770_ACEOF
1771
1772 fi
1773 DEFAULT_DEFAULT_wxUSE_GTK=1
1774 ;;
1775 *-*-irix5* | *-*-irix6* )
1776 USE_SGI=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SGI__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SVR4__ 1
1784_ACEOF
1785
1786 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1787 ;;
1788 *-*-solaris2* )
1789 USE_SUN=1
1790 USE_SOLARIS=1
1791 USE_SVR4=1
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SUN__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SOLARIS__ 1
1798_ACEOF
1799
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SVR4__ 1
1802_ACEOF
1803
1804 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1805 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1806 ;;
1807 *-*-sunos4* )
1808 USE_SUN=1
1809 USE_SUNOS=1
1810 USE_BSD=1
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SUN__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __SUNOS__ 1
1817_ACEOF
1818
1819 cat >>confdefs.h <<\_ACEOF
1820#define __BSD__ 1
1821_ACEOF
1822
1823 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824 ;;
1825 *-*-freebsd*)
1826 USE_BSD=1
1827 USE_FREEBSD=1
1828 cat >>confdefs.h <<\_ACEOF
1829#define __FREEBSD__ 1
1830_ACEOF
1831
1832 cat >>confdefs.h <<\_ACEOF
1833#define __BSD__ 1
1834_ACEOF
1835
1836 DEFAULT_DEFAULT_wxUSE_GTK=1
1837 ;;
1838 *-*-openbsd*)
1839 USE_BSD=1
1840 USE_OPENBSD=1
1841 cat >>confdefs.h <<\_ACEOF
1842#define __OPENBSD__ 1
1843_ACEOF
1844
1845 cat >>confdefs.h <<\_ACEOF
1846#define __BSD__ 1
1847_ACEOF
1848
1849 DEFAULT_DEFAULT_wxUSE_GTK=1
1850 ;;
1851 *-*-netbsd*)
1852 USE_BSD=1
1853 USE_NETBSD=1
1854 cat >>confdefs.h <<\_ACEOF
1855#define __NETBSD__ 1
1856_ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859#define __BSD__ 1
1860_ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_GTK=1
1863 ;;
1864 *-*-osf* )
1865 USE_ALPHA=1
1866 USE_OSF=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __OSF__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1877 ;;
1878 *-*-dgux5* )
1879 USE_ALPHA=1
1880 USE_SVR4=1
1881 cat >>confdefs.h <<\_ACEOF
1882#define __ALPHA__ 1
1883_ACEOF
1884
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SVR4__ 1
1887_ACEOF
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891 *-*-sysv5* )
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SYSV__ 1
1896_ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SVR4__ 1
1900_ACEOF
1901
1902 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1903 ;;
1904 *-*-aix* )
1905 USE_AIX=1
1906 USE_SYSV=1
1907 USE_SVR4=1
1908 SO_SUFFIX=a
1909 cat >>confdefs.h <<\_ACEOF
1910#define __AIX__ 1
1911_ACEOF
1912
1913 cat >>confdefs.h <<\_ACEOF
1914#define __SYSV__ 1
1915_ACEOF
1916
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SVR4__ 1
1919_ACEOF
1920
1921 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1922 ;;
1923
1924 *-*-*UnixWare*)
1925 USE_SYSV=1
1926 USE_SVR4=1
1927 USE_UNIXWARE=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __UNIXWARE__ 1
1930_ACEOF
1931
1932 ;;
1933
1934 *-*-cygwin* | *-*-mingw32* )
1935 SO_SUFFIX=dll
1936 PROGRAM_EXT=".exe"
a848cd7e 1937 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1938 DEFAULT_STD_FLAG=no
a848cd7e
SC
1939 ;;
1940
1941 *-pc-msdosdjgpp )
1942 USE_UNIX=0
1943 USE_DOS=1
1944 cat >>confdefs.h <<\_ACEOF
1945#define __DOS__ 1
1946_ACEOF
1947
1948 PROGRAM_EXT=".exe"
1949 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1950 ;;
1951
1952 *-pc-os2_emx | *-pc-os2-emx )
1953 cat >>confdefs.h <<\_ACEOF
1954#define __EMX__ 1
1955_ACEOF
1956
1957 USE_OS2=1
1958 cat >>confdefs.h <<\_ACEOF
1959#define __OS2__ 1
1960_ACEOF
1961
1962 PROGRAM_EXT=".exe"
1963 DEFAULT_DEFAULT_wxUSE_PM=1
1964 CXX=gcc
1965 LDFLAGS="$LDFLAGS -Zcrtdll"
1966 ac_executable_extensions=".exe"
1967 export ac_executable_extensions
1968 ac_save_IFS="$IFS"
1969 IFS='\\'
1970 ac_TEMP_PATH=
1971 for ac_dir in $PATH; do
1972 IFS=$ac_save_IFS
1973 if test -z "$ac_TEMP_PATH"; then
1974 ac_TEMP_PATH="$ac_dir"
1975 else
1976 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1977 fi
1978 done
1979 export PATH="$ac_TEMP_PATH"
1980 unset ac_TEMP_PATH
a03b8b04 1981 DEFAULT_STD_FLAG=no
a848cd7e
SC
1982 ;;
1983
cfda0ea8 1984 *-*-darwin* )
a848cd7e
SC
1985 USE_BSD=1
1986 USE_DARWIN=1
1987 SO_SUFFIX=dylib
1988 cat >>confdefs.h <<\_ACEOF
1989#define __BSD__ 1
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define __DARWIN__ 1
a848cd7e
SC
1994_ACEOF
1995
1996 cat >>confdefs.h <<\_ACEOF
1997#define TARGET_CARBON 1
1998_ACEOF
1999
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2001 DEFAULT_STD_FLAG=no
a848cd7e 2002 ;;
1e9e8aba
DE
2003 powerpc-apple-macos* )
2004 USE_UNIX=0
2005 ac_cv_c_bigendian=yes
2006 SO_SUFFIX=shlib
2007 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2008 DEFAULT_STD_FLAG=no
1e9e8aba 2009 ;;
a848cd7e
SC
2010
2011 *-*-beos* )
2012 USE_BEOS=1
2013 cat >>confdefs.h <<\_ACEOF
2014#define __BEOS__ 1
2015_ACEOF
2016
2017 ;;
2018
2019 *)
2020 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2021echo "$as_me: error: unknown system type ${host}." >&2;}
2022 { (exit 1); exit 1; }; }
2023esac
2024
2025
2026
2027
2028 wx_arg_cache_file="configarg.cache"
2029 echo "loading argument cache $wx_arg_cache_file"
2030 rm -f ${wx_arg_cache_file}.tmp
2031 touch ${wx_arg_cache_file}.tmp
2032 touch ${wx_arg_cache_file}
2033
2034
2035DEBUG_CONFIGURE=0
2036if test $DEBUG_CONFIGURE = 1; then
2037 DEFAULT_wxUSE_UNIVERSAL=no
2038 DEFAULT_wxUSE_STL=no
2039
2040 DEFAULT_wxUSE_NANOX=no
2041
2042 DEFAULT_wxUSE_THREADS=yes
2043
2044 DEFAULT_wxUSE_SHARED=yes
2045 DEFAULT_wxUSE_OPTIMISE=no
2046 DEFAULT_wxUSE_PROFILE=no
2047 DEFAULT_wxUSE_NO_DEPS=no
2048 DEFAULT_wxUSE_NO_RTTI=no
2049 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2050 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2051 DEFAULT_wxUSE_PERMISSIVE=no
2052 DEFAULT_wxUSE_DEBUG_FLAG=yes
2053 DEFAULT_wxUSE_DEBUG_INFO=yes
2054 DEFAULT_wxUSE_DEBUG_GDB=yes
2055 DEFAULT_wxUSE_MEM_TRACING=no
2056 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2057 DEFAULT_wxUSE_DMALLOC=no
2058 DEFAULT_wxUSE_APPLE_IEEE=no
2059
2060 DEFAULT_wxUSE_EXCEPTIONS=no
2061 DEFAULT_wxUSE_LOG=yes
2062 DEFAULT_wxUSE_LOGWINDOW=no
2063 DEFAULT_wxUSE_LOGGUI=no
2064 DEFAULT_wxUSE_LOGDIALOG=no
2065
2066 DEFAULT_wxUSE_GUI=yes
2067 DEFAULT_wxUSE_CONTROLS=no
2068
2069 DEFAULT_wxUSE_REGEX=no
2070 DEFAULT_wxUSE_XML=no
2071 DEFAULT_wxUSE_EXPAT=no
2072 DEFAULT_wxUSE_ZLIB=no
2073 DEFAULT_wxUSE_LIBPNG=no
2074 DEFAULT_wxUSE_LIBJPEG=no
2075 DEFAULT_wxUSE_LIBTIFF=no
2076 DEFAULT_wxUSE_LIBXPM=no
2077 DEFAULT_wxUSE_LIBMSPACK=no
2078 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2079 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2080 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2081 DEFAULT_wxUSE_ODBC=no
2082 DEFAULT_wxUSE_OPENGL=no
2083
2084 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2085 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2086 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2087 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2088 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2089 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2090 DEFAULT_wxUSE_CMDLINE_PARSER=no
2091 DEFAULT_wxUSE_DATETIME=no
2092 DEFAULT_wxUSE_TIMER=no
2093 DEFAULT_wxUSE_STOPWATCH=no
2094 DEFAULT_wxUSE_FILE=no
2095 DEFAULT_wxUSE_FFILE=no
07158944 2096 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2097 DEFAULT_wxUSE_TEXTBUFFER=no
2098 DEFAULT_wxUSE_TEXTFILE=no
2099 DEFAULT_wxUSE_SOUND=no
3b57de8b 2100 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2101 DEFAULT_wxUSE_INTL=no
2102 DEFAULT_wxUSE_CONFIG=no
2103 DEFAULT_wxUSE_FONTMAP=no
2104 DEFAULT_wxUSE_STREAMS=no
2105 DEFAULT_wxUSE_SOCKETS=no
2106 DEFAULT_wxUSE_OLE=no
2107 DEFAULT_wxUSE_DATAOBJ=no
2108 DEFAULT_wxUSE_DIALUP_MANAGER=no
2109 DEFAULT_wxUSE_JOYSTICK=no
2110 DEFAULT_wxUSE_DYNLIB_CLASS=no
2111 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2112 DEFAULT_wxUSE_LONGLONG=no
2113 DEFAULT_wxUSE_GEOMETRY=no
2114
2115 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2116 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2117 DEFAULT_wxUSE_POSTSCRIPT=no
2118
2119 DEFAULT_wxUSE_CLIPBOARD=no
2120 DEFAULT_wxUSE_TOOLTIPS=no
2121 DEFAULT_wxUSE_DRAG_AND_DROP=no
2122 DEFAULT_wxUSE_DRAGIMAGE=no
2123 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2124 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2125
8a7b1113 2126 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2127 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2128 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2129 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2130
2131 DEFAULT_wxUSE_RESOURCES=no
2132 DEFAULT_wxUSE_CONSTRAINTS=no
2133 DEFAULT_wxUSE_IPC=no
2134 DEFAULT_wxUSE_HELP=no
2135 DEFAULT_wxUSE_MS_HTML_HELP=no
2136 DEFAULT_wxUSE_WXHTML_HELP=no
2137 DEFAULT_wxUSE_TREELAYOUT=no
2138 DEFAULT_wxUSE_METAFILE=no
2139 DEFAULT_wxUSE_MIMETYPE=no
2140 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2141 DEFAULT_wxUSE_PROTOCOL=no
2142 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2143 DEFAULT_wxUSE_PROTOCOL_FTP=no
2144 DEFAULT_wxUSE_PROTOCOL_FILE=no
2145 DEFAULT_wxUSE_URL=no
2146
2147 DEFAULT_wxUSE_COMMONDLGS=no
2148 DEFAULT_wxUSE_CHOICEDLG=no
2149 DEFAULT_wxUSE_COLOURDLG=no
2150 DEFAULT_wxUSE_DIRDLG=no
2151 DEFAULT_wxUSE_FILEDLG=no
2152 DEFAULT_wxUSE_FINDREPLDLG=no
2153 DEFAULT_wxUSE_FONTDLG=no
2154 DEFAULT_wxUSE_MSGDLG=no
2155 DEFAULT_wxUSE_NUMBERDLG=no
2156 DEFAULT_wxUSE_TEXTDLG=no
2157 DEFAULT_wxUSE_SPLASH=no
2158 DEFAULT_wxUSE_STARTUP_TIPS=no
2159 DEFAULT_wxUSE_PROGRESSDLG=no
2160 DEFAULT_wxUSE_WIZARDDLG=no
2161
2162 DEFAULT_wxUSE_MENUS=no
2163 DEFAULT_wxUSE_MINIFRAME=no
2164 DEFAULT_wxUSE_HTML=no
91dea314 2165 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2166 DEFAULT_wxUSE_XRC=no
646b6ec1 2167 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2168 DEFAULT_wxUSE_FILESYSTEM=no
2169 DEFAULT_wxUSE_FS_INET=no
2170 DEFAULT_wxUSE_FS_ZIP=no
2171 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2172 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2173 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2174 DEFAULT_wxUSE_VALIDATORS=no
2175
2176 DEFAULT_wxUSE_ACCEL=no
2177 DEFAULT_wxUSE_BUTTON=no
2178 DEFAULT_wxUSE_BMPBUTTON=no
2179 DEFAULT_wxUSE_CALCTRL=no
2180 DEFAULT_wxUSE_CARET=no
2181 DEFAULT_wxUSE_CHECKBOX=no
2182 DEFAULT_wxUSE_CHECKLST=no
2183 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2184 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2185 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2186 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2187 DEFAULT_wxUSE_DISPLAY=no
2188 DEFAULT_wxUSE_GAUGE=no
2189 DEFAULT_wxUSE_GRID=no
20e34ecc 2190 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2191 DEFAULT_wxUSE_IMAGLIST=no
2192 DEFAULT_wxUSE_LISTBOOK=no
2193 DEFAULT_wxUSE_LISTBOX=no
2194 DEFAULT_wxUSE_LISTCTRL=no
2195 DEFAULT_wxUSE_NOTEBOOK=no
2196 DEFAULT_wxUSE_RADIOBOX=no
2197 DEFAULT_wxUSE_RADIOBTN=no
2198 DEFAULT_wxUSE_SASH=no
2199 DEFAULT_wxUSE_SCROLLBAR=no
2200 DEFAULT_wxUSE_SLIDER=no
2201 DEFAULT_wxUSE_SPINBTN=no
2202 DEFAULT_wxUSE_SPINCTRL=no
2203 DEFAULT_wxUSE_SPLITTER=no
2204 DEFAULT_wxUSE_STATBMP=no
2205 DEFAULT_wxUSE_STATBOX=no
2206 DEFAULT_wxUSE_STATLINE=no
2207 DEFAULT_wxUSE_STATTEXT=no
2208 DEFAULT_wxUSE_STATUSBAR=yes
2209 DEFAULT_wxUSE_TABDIALOG=no
2210 DEFAULT_wxUSE_TEXTCTRL=no
2211 DEFAULT_wxUSE_TOGGLEBTN=no
2212 DEFAULT_wxUSE_TOOLBAR=no
2213 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2214 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2215 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2216 DEFAULT_wxUSE_TREECTRL=no
2217 DEFAULT_wxUSE_POPUPWIN=no
2218 DEFAULT_wxUSE_TIPWINDOW=no
2219
2220 DEFAULT_wxUSE_UNICODE=no
2221 DEFAULT_wxUSE_UNICODE_MSLU=no
2222 DEFAULT_wxUSE_WCSRTOMBS=no
2223
2224 DEFAULT_wxUSE_PALETTE=no
2225 DEFAULT_wxUSE_IMAGE=no
2226 DEFAULT_wxUSE_GIF=no
2227 DEFAULT_wxUSE_PCX=no
2228 DEFAULT_wxUSE_PNM=no
2229 DEFAULT_wxUSE_IFF=no
2230 DEFAULT_wxUSE_XPM=no
2231 DEFAULT_wxUSE_ICO_CUR=no
2232 DEFAULT_wxUSE_ACCESSIBILITY=no
2233
2234 DEFAULT_wxUSE_MONOLITHIC=no
2235 DEFAULT_wxUSE_PLUGINS=no
2236 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2237else
2238 DEFAULT_wxUSE_UNIVERSAL=no
2239 DEFAULT_wxUSE_STL=no
2240
2241 DEFAULT_wxUSE_NANOX=no
2242
2243 DEFAULT_wxUSE_THREADS=yes
2244
2245 DEFAULT_wxUSE_SHARED=yes
2246 DEFAULT_wxUSE_OPTIMISE=yes
2247 DEFAULT_wxUSE_PROFILE=no
2248 DEFAULT_wxUSE_NO_DEPS=no
2249 DEFAULT_wxUSE_NO_RTTI=no
2250 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2251 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2252 DEFAULT_wxUSE_PERMISSIVE=no
2253 DEFAULT_wxUSE_DEBUG_FLAG=no
2254 DEFAULT_wxUSE_DEBUG_INFO=no
2255 DEFAULT_wxUSE_DEBUG_GDB=no
2256 DEFAULT_wxUSE_MEM_TRACING=no
2257 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2258 DEFAULT_wxUSE_DMALLOC=no
2259 DEFAULT_wxUSE_APPLE_IEEE=yes
2260
2261 DEFAULT_wxUSE_EXCEPTIONS=yes
2262 DEFAULT_wxUSE_LOG=yes
2263 DEFAULT_wxUSE_LOGWINDOW=yes
2264 DEFAULT_wxUSE_LOGGUI=yes
2265 DEFAULT_wxUSE_LOGDIALOG=yes
2266
2267 DEFAULT_wxUSE_GUI=yes
2268
2269 DEFAULT_wxUSE_REGEX=yes
2270 DEFAULT_wxUSE_XML=yes
2271 DEFAULT_wxUSE_EXPAT=yes
2272 DEFAULT_wxUSE_ZLIB=yes
2273 DEFAULT_wxUSE_LIBPNG=yes
2274 DEFAULT_wxUSE_LIBJPEG=yes
2275 DEFAULT_wxUSE_LIBTIFF=yes
2276 DEFAULT_wxUSE_LIBXPM=yes
2277 DEFAULT_wxUSE_LIBMSPACK=yes
2278 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2279 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2280 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2281 DEFAULT_wxUSE_ODBC=no
52cb607e 2282 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2283
2284 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2285 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2286 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2287 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2288 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2289 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2290 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2291 DEFAULT_wxUSE_DATETIME=yes
2292 DEFAULT_wxUSE_TIMER=yes
2293 DEFAULT_wxUSE_STOPWATCH=yes
2294 DEFAULT_wxUSE_FILE=yes
2295 DEFAULT_wxUSE_FFILE=yes
07158944 2296 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2297 DEFAULT_wxUSE_TEXTBUFFER=yes
2298 DEFAULT_wxUSE_TEXTFILE=yes
2299 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2300 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2301 DEFAULT_wxUSE_INTL=yes
2302 DEFAULT_wxUSE_CONFIG=yes
2303 DEFAULT_wxUSE_FONTMAP=yes
2304 DEFAULT_wxUSE_STREAMS=yes
2305 DEFAULT_wxUSE_SOCKETS=yes
2306 DEFAULT_wxUSE_OLE=yes
2307 DEFAULT_wxUSE_DATAOBJ=yes
2308 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2309 DEFAULT_wxUSE_JOYSTICK=yes
2310 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2311 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2312 DEFAULT_wxUSE_LONGLONG=yes
2313 DEFAULT_wxUSE_GEOMETRY=yes
2314
2315 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2316 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2317 DEFAULT_wxUSE_POSTSCRIPT=yes
2318
2319 DEFAULT_wxUSE_CLIPBOARD=yes
2320 DEFAULT_wxUSE_TOOLTIPS=yes
2321 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2322 DEFAULT_wxUSE_DRAGIMAGE=yes
2323 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2324 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2325
8a7b1113 2326 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2327 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2328 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2329 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2330
2331 DEFAULT_wxUSE_RESOURCES=no
2332 DEFAULT_wxUSE_CONSTRAINTS=yes
2333 DEFAULT_wxUSE_IPC=yes
2334 DEFAULT_wxUSE_HELP=yes
2335 DEFAULT_wxUSE_MS_HTML_HELP=yes
2336 DEFAULT_wxUSE_WXHTML_HELP=yes
2337 DEFAULT_wxUSE_TREELAYOUT=yes
2338 DEFAULT_wxUSE_METAFILE=yes
2339 DEFAULT_wxUSE_MIMETYPE=yes
2340 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2341 DEFAULT_wxUSE_PROTOCOL=yes
2342 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2343 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2344 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2345 DEFAULT_wxUSE_URL=yes
2346
2347 DEFAULT_wxUSE_COMMONDLGS=yes
2348 DEFAULT_wxUSE_CHOICEDLG=yes
2349 DEFAULT_wxUSE_COLOURDLG=yes
2350 DEFAULT_wxUSE_DIRDLG=yes
2351 DEFAULT_wxUSE_FILEDLG=yes
2352 DEFAULT_wxUSE_FINDREPLDLG=yes
2353 DEFAULT_wxUSE_FONTDLG=yes
2354 DEFAULT_wxUSE_MSGDLG=yes
2355 DEFAULT_wxUSE_NUMBERDLG=yes
2356 DEFAULT_wxUSE_TEXTDLG=yes
2357 DEFAULT_wxUSE_SPLASH=yes
2358 DEFAULT_wxUSE_STARTUP_TIPS=yes
2359 DEFAULT_wxUSE_PROGRESSDLG=yes
2360 DEFAULT_wxUSE_WIZARDDLG=yes
2361
2362 DEFAULT_wxUSE_MENUS=yes
2363 DEFAULT_wxUSE_MINIFRAME=yes
2364 DEFAULT_wxUSE_HTML=yes
91dea314 2365 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2366 DEFAULT_wxUSE_XRC=yes
646b6ec1 2367 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_FILESYSTEM=yes
2369 DEFAULT_wxUSE_FS_INET=yes
2370 DEFAULT_wxUSE_FS_ZIP=yes
2371 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2372 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2373 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_VALIDATORS=yes
2375
2376 DEFAULT_wxUSE_ACCEL=yes
2377 DEFAULT_wxUSE_BUTTON=yes
2378 DEFAULT_wxUSE_BMPBUTTON=yes
2379 DEFAULT_wxUSE_CALCTRL=yes
2380 DEFAULT_wxUSE_CARET=yes
2381 DEFAULT_wxUSE_CHECKBOX=yes
2382 DEFAULT_wxUSE_CHECKLST=yes
2383 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2384 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2385 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2386 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2387 DEFAULT_wxUSE_DISPLAY=yes
2388 DEFAULT_wxUSE_GAUGE=yes
2389 DEFAULT_wxUSE_GRID=yes
20e34ecc 2390 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2391 DEFAULT_wxUSE_IMAGLIST=yes
2392 DEFAULT_wxUSE_LISTBOOK=yes
2393 DEFAULT_wxUSE_LISTBOX=yes
2394 DEFAULT_wxUSE_LISTCTRL=yes
2395 DEFAULT_wxUSE_NOTEBOOK=yes
2396 DEFAULT_wxUSE_RADIOBOX=yes
2397 DEFAULT_wxUSE_RADIOBTN=yes
2398 DEFAULT_wxUSE_SASH=yes
2399 DEFAULT_wxUSE_SCROLLBAR=yes
2400 DEFAULT_wxUSE_SLIDER=yes
2401 DEFAULT_wxUSE_SPINBTN=yes
2402 DEFAULT_wxUSE_SPINCTRL=yes
2403 DEFAULT_wxUSE_SPLITTER=yes
2404 DEFAULT_wxUSE_STATBMP=yes
2405 DEFAULT_wxUSE_STATBOX=yes
2406 DEFAULT_wxUSE_STATLINE=yes
2407 DEFAULT_wxUSE_STATTEXT=yes
2408 DEFAULT_wxUSE_STATUSBAR=yes
2409 DEFAULT_wxUSE_TABDIALOG=no
2410 DEFAULT_wxUSE_TEXTCTRL=yes
2411 DEFAULT_wxUSE_TOGGLEBTN=yes
2412 DEFAULT_wxUSE_TOOLBAR=yes
2413 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2414 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2415 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2416 DEFAULT_wxUSE_TREECTRL=yes
2417 DEFAULT_wxUSE_POPUPWIN=yes
2418 DEFAULT_wxUSE_TIPWINDOW=yes
2419
78de529b 2420 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2421 DEFAULT_wxUSE_UNICODE_MSLU=yes
2422 DEFAULT_wxUSE_WCSRTOMBS=no
2423
2424 DEFAULT_wxUSE_PALETTE=yes
2425 DEFAULT_wxUSE_IMAGE=yes
2426 DEFAULT_wxUSE_GIF=yes
2427 DEFAULT_wxUSE_PCX=yes
2428 DEFAULT_wxUSE_IFF=no
2429 DEFAULT_wxUSE_PNM=yes
2430 DEFAULT_wxUSE_XPM=yes
2431 DEFAULT_wxUSE_ICO_CUR=yes
2432 DEFAULT_wxUSE_ACCESSIBILITY=no
2433
2434 DEFAULT_wxUSE_MONOLITHIC=no
2435 DEFAULT_wxUSE_PLUGINS=no
2436 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2437
f34ca037 2438 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2439fi
2440
2441
2442
f34ca037 2443
a848cd7e
SC
2444for toolkit in `echo $ALL_TOOLKITS`; do
2445 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2446 if test "x$LINE" != "x" ; then
2447 has_toolkit_in_cache=1
2448 eval "DEFAULT_$LINE"
2449 eval "CACHE_$toolkit=1"
f34ca037
MW
2450
2451 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2452 if test "x$LINE" != "x" ; then
2453 eval "DEFAULT_$LINE"
2454 fi
a848cd7e
SC
2455 fi
2456done
2457
2458
2459
2460 enablestring=
2461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2462echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2463 no_cache=0
2464 # Check whether --enable-gui or --disable-gui was given.
2465if test "${enable_gui+set}" = set; then
2466 enableval="$enable_gui"
2467
2468 if test "$enableval" = yes; then
2469 ac_cv_use_gui='wxUSE_GUI=yes'
2470 else
2471 ac_cv_use_gui='wxUSE_GUI=no'
2472 fi
2473
2474else
2475
2476 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2477 if test "x$LINE" != x ; then
2478 eval "DEFAULT_$LINE"
2479 else
2480 no_cache=1
2481 fi
2482
2483 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2484
2485fi;
2486
2487 eval "$ac_cv_use_gui"
2488 if test "$no_cache" != 1; then
2489 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2490 fi
2491
2492 if test "$wxUSE_GUI" = yes; then
2493 echo "$as_me:$LINENO: result: yes" >&5
2494echo "${ECHO_T}yes" >&6
2495 else
2496 echo "$as_me:$LINENO: result: no" >&5
2497echo "${ECHO_T}no" >&6
2498 fi
2499
2500
2501 enablestring=
2502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2503echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2504 no_cache=0
2505 # Check whether --enable-monolithic or --disable-monolithic was given.
2506if test "${enable_monolithic+set}" = set; then
2507 enableval="$enable_monolithic"
2508
2509 if test "$enableval" = yes; then
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2511 else
2512 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2513 fi
2514
2515else
2516
2517 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2518 if test "x$LINE" != x ; then
2519 eval "DEFAULT_$LINE"
2520 else
2521 no_cache=1
2522 fi
2523
2524 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2525
2526fi;
2527
2528 eval "$ac_cv_use_monolithic"
2529 if test "$no_cache" != 1; then
2530 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2531 fi
2532
2533 if test "$wxUSE_MONOLITHIC" = yes; then
2534 echo "$as_me:$LINENO: result: yes" >&5
2535echo "${ECHO_T}yes" >&6
2536 else
2537 echo "$as_me:$LINENO: result: no" >&5
2538echo "${ECHO_T}no" >&6
2539 fi
2540
2541
2542 enablestring=
2543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2544echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2545 no_cache=0
2546 # Check whether --enable-plugins or --disable-plugins was given.
2547if test "${enable_plugins+set}" = set; then
2548 enableval="$enable_plugins"
2549
2550 if test "$enableval" = yes; then
2551 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2552 else
2553 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2554 fi
2555
2556else
2557
2558 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2559 if test "x$LINE" != x ; then
2560 eval "DEFAULT_$LINE"
2561 else
2562 no_cache=1
2563 fi
2564
2565 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2566
2567fi;
2568
2569 eval "$ac_cv_use_plugins"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_PLUGINS" = yes; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
2580 fi
2581
2582
1c14217d
VZ
2583 withstring=without
2584 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2585echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2586 no_cache=0
2587
2588# Check whether --with-subdirs or --without-subdirs was given.
2589if test "${with_subdirs+set}" = set; then
2590 withval="$with_subdirs"
2591
2592 if test "$withval" = yes; then
2593 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2594 else
2595 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2596 fi
2597
2598else
2599
2600 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
2607 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2608
2609fi;
2610
2611 eval "$ac_cv_use_subdirs"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxWITH_SUBDIRS" = yes; then
2617 echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
2619 else
2620 echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
2622 fi
2623
2624
a848cd7e
SC
2625if test "$wxUSE_GUI" = "yes"; then
2626
2627
2628 enablestring=
2629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2630echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2631 no_cache=0
2632 # Check whether --enable-universal or --disable-universal was given.
2633if test "${enable_universal+set}" = set; then
2634 enableval="$enable_universal"
2635
2636 if test "$enableval" = yes; then
2637 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2638 else
2639 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2640 fi
2641
2642else
2643
2644 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2645 if test "x$LINE" != x ; then
2646 eval "DEFAULT_$LINE"
2647 else
2648 no_cache=1
2649 fi
2650
2651 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2652
2653fi;
2654
2655 eval "$ac_cv_use_universal"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_UNIVERSAL" = yes; then
2661 echo "$as_me:$LINENO: result: yes" >&5
2662echo "${ECHO_T}yes" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666 fi
2667
2668
2669# Check whether --with-gtk or --without-gtk was given.
2670if test "${with_gtk+set}" = set; then
2671 withval="$with_gtk"
2672 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675# Check whether --with-motif or --without-motif was given.
2676if test "${with_motif+set}" = set; then
2677 withval="$with_motif"
2678 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2679fi;
2680
2681# Check whether --with-mac or --without-mac was given.
2682if test "${with_mac+set}" = set; then
2683 withval="$with_mac"
c228d3a4 2684 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2685fi;
2686
2687# Check whether --with-cocoa or --without-cocoa was given.
2688if test "${with_cocoa+set}" = set; then
2689 withval="$with_cocoa"
c228d3a4 2690 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2691fi;
2692
2693# Check whether --with-wine or --without-wine was given.
2694if test "${with_wine+set}" = set; then
2695 withval="$with_wine"
2696 wxUSE_WINE="$withval" CACHE_WINE=1
2697fi;
2698
2699# Check whether --with-msw or --without-msw was given.
2700if test "${with_msw+set}" = set; then
2701 withval="$with_msw"
2702 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-pm or --without-pm was given.
2706if test "${with_pm+set}" = set; then
2707 withval="$with_pm"
2708 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-mgl or --without-mgl was given.
2712if test "${with_mgl+set}" = set; then
2713 withval="$with_mgl"
2714 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717# Check whether --with-microwin or --without-microwin was given.
2718if test "${with_microwin+set}" = set; then
2719 withval="$with_microwin"
2720 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723# Check whether --with-x11 or --without-x11 was given.
2724if test "${with_x11+set}" = set; then
2725 withval="$with_x11"
2726 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2727fi;
2728
2729 enablestring=
2730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2731echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2732 no_cache=0
2733 # Check whether --enable-nanox or --disable-nanox was given.
2734if test "${enable_nanox+set}" = set; then
2735 enableval="$enable_nanox"
2736
2737 if test "$enableval" = yes; then
2738 ac_cv_use_nanox='wxUSE_NANOX=yes'
2739 else
2740 ac_cv_use_nanox='wxUSE_NANOX=no'
2741 fi
2742
2743else
2744
2745 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2753
2754fi;
2755
2756 eval "$ac_cv_use_nanox"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_NANOX" = yes; then
2762 echo "$as_me:$LINENO: result: yes" >&5
2763echo "${ECHO_T}yes" >&6
2764 else
2765 echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767 fi
2768
2769
f34ca037
MW
2770# Check whether --enable-gtk2 or --disable-gtk2 was given.
2771if test "${enable_gtk2+set}" = set; then
2772 enableval="$enable_gtk2"
2773 wxUSE_GTK2="$enableval"
2774fi;
a848cd7e 2775
a848cd7e
SC
2776 enablestring=
2777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2778echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2779 no_cache=0
2780 # Check whether --enable-gpe or --disable-gpe was given.
2781if test "${enable_gpe+set}" = set; then
2782 enableval="$enable_gpe"
2783
2784 if test "$enableval" = yes; then
2785 ac_cv_use_gpe='wxUSE_GPE=yes'
2786 else
2787 ac_cv_use_gpe='wxUSE_GPE=no'
2788 fi
2789
2790else
2791
2792 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2793 if test "x$LINE" != x ; then
2794 eval "DEFAULT_$LINE"
2795 else
2796 no_cache=1
2797 fi
2798
2799 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2800
2801fi;
2802
2803 eval "$ac_cv_use_gpe"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_GPE" = yes; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810echo "${ECHO_T}yes" >&6
2811 else
2812 echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6
2814 fi
2815
2816
2817
2818 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2819echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2820 no_cache=0
2821
2822# Check whether --with-libpng or --without-libpng was given.
2823if test "${with_libpng+set}" = set; then
2824 withval="$with_libpng"
2825
2826 if test "$withval" = yes; then
2827 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2828 elif test "$withval" = no; then
2829 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2830 elif test "$withval" = sys; then
2831 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2832 elif test "$withval" = builtin; then
2833 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2834 else
2835 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2836echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2837 { (exit 1); exit 1; }; }
2838 fi
2839
2840else
2841
2842 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2843 if test "x$LINE" != x ; then
2844 eval "DEFAULT_$LINE"
2845 else
2846 no_cache=1
2847 fi
2848
2849 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2850
2851fi;
2852
2853 eval "$ac_cv_use_libpng"
2854 if test "$no_cache" != 1; then
2855 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2856 fi
2857
2858 if test "$wxUSE_LIBPNG" = yes; then
2859 echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
2861 elif test "$wxUSE_LIBPNG" = no; then
2862 echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6
2864 elif test "$wxUSE_LIBPNG" = sys; then
2865 echo "$as_me:$LINENO: result: system version" >&5
2866echo "${ECHO_T}system version" >&6
2867 elif test "$wxUSE_LIBPNG" = builtin; then
2868 echo "$as_me:$LINENO: result: builtin version" >&5
2869echo "${ECHO_T}builtin version" >&6
2870 else
2871 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2872echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2873 { (exit 1); exit 1; }; }
2874 fi
2875
2876
2877 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2878echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2879 no_cache=0
2880
2881# Check whether --with-libjpeg or --without-libjpeg was given.
2882if test "${with_libjpeg+set}" = set; then
2883 withval="$with_libjpeg"
2884
2885 if test "$withval" = yes; then
2886 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2887 elif test "$withval" = no; then
2888 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2889 elif test "$withval" = sys; then
2890 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2891 elif test "$withval" = builtin; then
2892 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2893 else
2894 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2895echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2896 { (exit 1); exit 1; }; }
2897 fi
2898
2899else
2900
2901 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2902 if test "x$LINE" != x ; then
2903 eval "DEFAULT_$LINE"
2904 else
2905 no_cache=1
2906 fi
2907
2908 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2909
2910fi;
2911
2912 eval "$ac_cv_use_libjpeg"
2913 if test "$no_cache" != 1; then
2914 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2915 fi
2916
2917 if test "$wxUSE_LIBJPEG" = yes; then
2918 echo "$as_me:$LINENO: result: yes" >&5
2919echo "${ECHO_T}yes" >&6
2920 elif test "$wxUSE_LIBJPEG" = no; then
2921 echo "$as_me:$LINENO: result: no" >&5
2922echo "${ECHO_T}no" >&6
2923 elif test "$wxUSE_LIBJPEG" = sys; then
2924 echo "$as_me:$LINENO: result: system version" >&5
2925echo "${ECHO_T}system version" >&6
2926 elif test "$wxUSE_LIBJPEG" = builtin; then
2927 echo "$as_me:$LINENO: result: builtin version" >&5
2928echo "${ECHO_T}builtin version" >&6
2929 else
2930 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2931echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2932 { (exit 1); exit 1; }; }
2933 fi
2934
2935
2936 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2937echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2938 no_cache=0
2939
2940# Check whether --with-libtiff or --without-libtiff was given.
2941if test "${with_libtiff+set}" = set; then
2942 withval="$with_libtiff"
2943
2944 if test "$withval" = yes; then
2945 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2946 elif test "$withval" = no; then
2947 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2948 elif test "$withval" = sys; then
2949 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2950 elif test "$withval" = builtin; then
2951 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2952 else
2953 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2954echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2955 { (exit 1); exit 1; }; }
2956 fi
2957
2958else
2959
2960 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2961 if test "x$LINE" != x ; then
2962 eval "DEFAULT_$LINE"
2963 else
2964 no_cache=1
2965 fi
2966
2967 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2968
2969fi;
2970
2971 eval "$ac_cv_use_libtiff"
2972 if test "$no_cache" != 1; then
2973 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2974 fi
2975
2976 if test "$wxUSE_LIBTIFF" = yes; then
2977 echo "$as_me:$LINENO: result: yes" >&5
2978echo "${ECHO_T}yes" >&6
2979 elif test "$wxUSE_LIBTIFF" = no; then
2980 echo "$as_me:$LINENO: result: no" >&5
2981echo "${ECHO_T}no" >&6
2982 elif test "$wxUSE_LIBTIFF" = sys; then
2983 echo "$as_me:$LINENO: result: system version" >&5
2984echo "${ECHO_T}system version" >&6
2985 elif test "$wxUSE_LIBTIFF" = builtin; then
2986 echo "$as_me:$LINENO: result: builtin version" >&5
2987echo "${ECHO_T}builtin version" >&6
2988 else
2989 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2990echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2991 { (exit 1); exit 1; }; }
2992 fi
2993
2994
2995 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2996echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2997 no_cache=0
2998
2999# Check whether --with-libxpm or --without-libxpm was given.
3000if test "${with_libxpm+set}" = set; then
3001 withval="$with_libxpm"
3002
3003 if test "$withval" = yes; then
3004 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3005 elif test "$withval" = no; then
3006 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3007 elif test "$withval" = sys; then
3008 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3009 elif test "$withval" = builtin; then
3010 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3011 else
3012 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3013echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3014 { (exit 1); exit 1; }; }
3015 fi
3016
3017else
3018
3019 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3027
3028fi;
3029
3030 eval "$ac_cv_use_libxpm"
3031 if test "$no_cache" != 1; then
3032 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3033 fi
3034
3035 if test "$wxUSE_LIBXPM" = yes; then
3036 echo "$as_me:$LINENO: result: yes" >&5
3037echo "${ECHO_T}yes" >&6
3038 elif test "$wxUSE_LIBXPM" = no; then
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
3041 elif test "$wxUSE_LIBXPM" = sys; then
3042 echo "$as_me:$LINENO: result: system version" >&5
3043echo "${ECHO_T}system version" >&6
3044 elif test "$wxUSE_LIBXPM" = builtin; then
3045 echo "$as_me:$LINENO: result: builtin version" >&5
3046echo "${ECHO_T}builtin version" >&6
3047 else
3048 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3049echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3050 { (exit 1); exit 1; }; }
3051 fi
3052
3053
1c14217d
VZ
3054 withstring=
3055 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3056echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3057 no_cache=0
3058
3059# Check whether --with-libmspack or --without-libmspack was given.
3060if test "${with_libmspack+set}" = set; then
3061 withval="$with_libmspack"
3062
3063 if test "$withval" = yes; then
3064 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3065 else
3066 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3067 fi
3068
3069else
3070
3071 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3072 if test "x$LINE" != x ; then
3073 eval "DEFAULT_$LINE"
3074 else
3075 no_cache=1
3076 fi
3077
3078 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3079
3080fi;
3081
3082 eval "$ac_cv_use_libmspack"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_LIBMSPACK" = yes; then
3088 echo "$as_me:$LINENO: result: yes" >&5
3089echo "${ECHO_T}yes" >&6
3090 else
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
3093 fi
3094
3095
1c14217d
VZ
3096 withstring=
3097 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3098echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3099 no_cache=0
3100
3101# Check whether --with-sdl or --without-sdl was given.
3102if test "${with_sdl+set}" = set; then
3103 withval="$with_sdl"
3104
3105 if test "$withval" = yes; then
3106 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3107 else
3108 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3121
3122fi;
3123
3124 eval "$ac_cv_use_sdl"
3125 if test "$no_cache" != 1; then
3126 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3127 fi
3128
3129 if test "$wxUSE_LIBSDL" = yes; then
3130 echo "$as_me:$LINENO: result: yes" >&5
3131echo "${ECHO_T}yes" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
3135 fi
3136
3137
1c14217d
VZ
3138 withstring=
3139 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3140echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3141 no_cache=0
3142
3143# Check whether --with-gnomeprint or --without-gnomeprint was given.
3144if test "${with_gnomeprint+set}" = set; then
3145 withval="$with_gnomeprint"
3146
3147 if test "$withval" = yes; then
3148 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3149 else
3150 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3151 fi
3152
3153else
3154
3155 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3156 if test "x$LINE" != x ; then
3157 eval "DEFAULT_$LINE"
3158 else
3159 no_cache=1
3160 fi
3161
3162 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3163
3164fi;
3165
3166 eval "$ac_cv_use_gnomeprint"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3172 echo "$as_me:$LINENO: result: yes" >&5
3173echo "${ECHO_T}yes" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177 fi
3178
3179
3565d135
RR
3180 withstring=
3181 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3182echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3183 no_cache=0
3184
3185# Check whether --with-hildon or --without-hildon was given.
3186if test "${with_hildon+set}" = set; then
3187 withval="$with_hildon"
3188
3189 if test "$withval" = yes; then
3190 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3191 else
3192 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3193 fi
3194
3195else
3196
3197 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3198 if test "x$LINE" != x ; then
3199 eval "DEFAULT_$LINE"
3200 else
3201 no_cache=1
3202 fi
3203
3204 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3205
3206fi;
3207
3208 eval "$ac_cv_use_hildon"
3209 if test "$no_cache" != 1; then
3210 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3211 fi
3212
3213 if test "$wxUSE_LIBHILDON" = yes; then
3214 echo "$as_me:$LINENO: result: yes" >&5
3215echo "${ECHO_T}yes" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219 fi
3220
3221
1c14217d
VZ
3222 withstring=
3223 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3224echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3225 no_cache=0
3226
3227# Check whether --with-opengl or --without-opengl was given.
3228if test "${with_opengl+set}" = set; then
3229 withval="$with_opengl"
3230
3231 if test "$withval" = yes; then
3232 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3233 else
3234 ac_cv_use_opengl='wxUSE_OPENGL=no'
3235 fi
3236
3237else
3238
3239 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3240 if test "x$LINE" != x ; then
3241 eval "DEFAULT_$LINE"
3242 else
3243 no_cache=1
3244 fi
3245
3246 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3247
3248fi;
3249
3250 eval "$ac_cv_use_opengl"
3251 if test "$no_cache" != 1; then
3252 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3253 fi
3254
3255 if test "$wxUSE_OPENGL" = yes; then
3256 echo "$as_me:$LINENO: result: yes" >&5
3257echo "${ECHO_T}yes" >&6
3258 else
3259 echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261 fi
3262
3263
3264fi
3265
3266
1c14217d
VZ
3267 withstring=
3268 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3269echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3270 no_cache=0
3271
3272# Check whether --with-dmalloc or --without-dmalloc was given.
3273if test "${with_dmalloc+set}" = set; then
3274 withval="$with_dmalloc"
3275
3276 if test "$withval" = yes; then
3277 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3278 else
3279 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3280 fi
3281
3282else
3283
3284 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3292
3293fi;
3294
3295 eval "$ac_cv_use_dmalloc"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_DMALLOC" = yes; then
3301 echo "$as_me:$LINENO: result: yes" >&5
3302echo "${ECHO_T}yes" >&6
3303 else
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306 fi
3307
3308
3309 echo "$as_me:$LINENO: checking for --with-regex" >&5
3310echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3311 no_cache=0
3312
3313# Check whether --with-regex or --without-regex was given.
3314if test "${with_regex+set}" = set; then
3315 withval="$with_regex"
3316
3317 if test "$withval" = yes; then
3318 ac_cv_use_regex='wxUSE_REGEX=yes'
3319 elif test "$withval" = no; then
3320 ac_cv_use_regex='wxUSE_REGEX=no'
3321 elif test "$withval" = sys; then
3322 ac_cv_use_regex='wxUSE_REGEX=sys'
3323 elif test "$withval" = builtin; then
3324 ac_cv_use_regex='wxUSE_REGEX=builtin'
3325 else
3326 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3327echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3328 { (exit 1); exit 1; }; }
3329 fi
3330
3331else
3332
3333 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3334 if test "x$LINE" != x ; then
3335 eval "DEFAULT_$LINE"
3336 else
3337 no_cache=1
3338 fi
3339
3340 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3341
3342fi;
3343
3344 eval "$ac_cv_use_regex"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_REGEX" = yes; then
3350 echo "$as_me:$LINENO: result: yes" >&5
3351echo "${ECHO_T}yes" >&6
3352 elif test "$wxUSE_REGEX" = no; then
3353 echo "$as_me:$LINENO: result: no" >&5
3354echo "${ECHO_T}no" >&6
3355 elif test "$wxUSE_REGEX" = sys; then
3356 echo "$as_me:$LINENO: result: system version" >&5
3357echo "${ECHO_T}system version" >&6
3358 elif test "$wxUSE_REGEX" = builtin; then
3359 echo "$as_me:$LINENO: result: builtin version" >&5
3360echo "${ECHO_T}builtin version" >&6
3361 else
3362 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3363echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3364 { (exit 1); exit 1; }; }
3365 fi
3366
3367
3368 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3369echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3370 no_cache=0
3371
3372# Check whether --with-zlib or --without-zlib was given.
3373if test "${with_zlib+set}" = set; then
3374 withval="$with_zlib"
3375
3376 if test "$withval" = yes; then
3377 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3378 elif test "$withval" = no; then
3379 ac_cv_use_zlib='wxUSE_ZLIB=no'
3380 elif test "$withval" = sys; then
3381 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3382 elif test "$withval" = builtin; then
3383 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3384 else
3385 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3386echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3387 { (exit 1); exit 1; }; }
3388 fi
3389
3390else
3391
3392 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3393 if test "x$LINE" != x ; then
3394 eval "DEFAULT_$LINE"
3395 else
3396 no_cache=1
3397 fi
3398
3399 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3400
3401fi;
3402
3403 eval "$ac_cv_use_zlib"
3404 if test "$no_cache" != 1; then
3405 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3406 fi
3407
3408 if test "$wxUSE_ZLIB" = yes; then
3409 echo "$as_me:$LINENO: result: yes" >&5
3410echo "${ECHO_T}yes" >&6
3411 elif test "$wxUSE_ZLIB" = no; then
3412 echo "$as_me:$LINENO: result: no" >&5
3413echo "${ECHO_T}no" >&6
3414 elif test "$wxUSE_ZLIB" = sys; then
3415 echo "$as_me:$LINENO: result: system version" >&5
3416echo "${ECHO_T}system version" >&6
3417 elif test "$wxUSE_ZLIB" = builtin; then
3418 echo "$as_me:$LINENO: result: builtin version" >&5
3419echo "${ECHO_T}builtin version" >&6
3420 else
3421 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3422echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3423 { (exit 1); exit 1; }; }
3424 fi
3425
3426
3427 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3428echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3429 no_cache=0
3430
3431# Check whether --with-odbc or --without-odbc was given.
3432if test "${with_odbc+set}" = set; then
3433 withval="$with_odbc"
3434
3435 if test "$withval" = yes; then
3436 ac_cv_use_odbc='wxUSE_ODBC=yes'
3437 elif test "$withval" = no; then
3438 ac_cv_use_odbc='wxUSE_ODBC=no'
3439 elif test "$withval" = sys; then
3440 ac_cv_use_odbc='wxUSE_ODBC=sys'
3441 elif test "$withval" = builtin; then
3442 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3443 else
3444 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3445echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3446 { (exit 1); exit 1; }; }
3447 fi
3448
3449else
3450
3451 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3452 if test "x$LINE" != x ; then
3453 eval "DEFAULT_$LINE"
3454 else
3455 no_cache=1
3456 fi
3457
3458 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3459
3460fi;
3461
3462 eval "$ac_cv_use_odbc"
3463 if test "$no_cache" != 1; then
3464 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3465 fi
3466
3467 if test "$wxUSE_ODBC" = yes; then
3468 echo "$as_me:$LINENO: result: yes" >&5
3469echo "${ECHO_T}yes" >&6
3470 elif test "$wxUSE_ODBC" = no; then
3471 echo "$as_me:$LINENO: result: no" >&5
3472echo "${ECHO_T}no" >&6
3473 elif test "$wxUSE_ODBC" = sys; then
3474 echo "$as_me:$LINENO: result: system version" >&5
3475echo "${ECHO_T}system version" >&6
3476 elif test "$wxUSE_ODBC" = builtin; then
3477 echo "$as_me:$LINENO: result: builtin version" >&5
3478echo "${ECHO_T}builtin version" >&6
3479 else
3480 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3481echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3482 { (exit 1); exit 1; }; }
3483 fi
3484
3485
3486 echo "$as_me:$LINENO: checking for --with-expat" >&5
3487echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3488 no_cache=0
3489
3490# Check whether --with-expat or --without-expat was given.
3491if test "${with_expat+set}" = set; then
3492 withval="$with_expat"
3493
3494 if test "$withval" = yes; then
3495 ac_cv_use_expat='wxUSE_EXPAT=yes'
3496 elif test "$withval" = no; then
3497 ac_cv_use_expat='wxUSE_EXPAT=no'
3498 elif test "$withval" = sys; then
3499 ac_cv_use_expat='wxUSE_EXPAT=sys'
3500 elif test "$withval" = builtin; then
3501 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3502 else
3503 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3504echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3505 { (exit 1); exit 1; }; }
3506 fi
3507
3508else
3509
3510 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
3517 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3518
3519fi;
3520
3521 eval "$ac_cv_use_expat"
3522 if test "$no_cache" != 1; then
3523 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3524 fi
3525
3526 if test "$wxUSE_EXPAT" = yes; then
3527 echo "$as_me:$LINENO: result: yes" >&5
3528echo "${ECHO_T}yes" >&6
3529 elif test "$wxUSE_EXPAT" = no; then
3530 echo "$as_me:$LINENO: result: no" >&5
3531echo "${ECHO_T}no" >&6
3532 elif test "$wxUSE_EXPAT" = sys; then
3533 echo "$as_me:$LINENO: result: system version" >&5
3534echo "${ECHO_T}system version" >&6
3535 elif test "$wxUSE_EXPAT" = builtin; then
3536 echo "$as_me:$LINENO: result: builtin version" >&5
3537echo "${ECHO_T}builtin version" >&6
3538 else
3539 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3540echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3541 { (exit 1); exit 1; }; }
3542 fi
3543
3544
3545
3546
3547 enablestring=
3548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3549echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3550 no_cache=0
3551 # Check whether --enable-shared or --disable-shared was given.
3552if test "${enable_shared+set}" = set; then
3553 enableval="$enable_shared"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_shared='wxUSE_SHARED=yes'
3557 else
3558 ac_cv_use_shared='wxUSE_SHARED=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3571
3572fi;
3573
3574 eval "$ac_cv_use_shared"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_SHARED" = yes; then
3580 echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6
3582 else
3583 echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6
3585 fi
3586
3587
3588 enablestring=
3589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3590echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3591 no_cache=0
3592 # Check whether --enable-optimise or --disable-optimise was given.
3593if test "${enable_optimise+set}" = set; then
3594 enableval="$enable_optimise"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3598 else
3599 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3612
3613fi;
3614
3615 eval "$ac_cv_use_optimise"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_OPTIMISE" = yes; then
3621 echo "$as_me:$LINENO: result: yes" >&5
3622echo "${ECHO_T}yes" >&6
3623 else
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626 fi
3627
3628
3629 enablestring=
3630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3631echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3632 no_cache=0
3633 # Check whether --enable-debug or --disable-debug was given.
3634if test "${enable_debug+set}" = set; then
3635 enableval="$enable_debug"
3636
3637 if test "$enableval" = yes; then
3638 ac_cv_use_debug='wxUSE_DEBUG=yes'
3639 else
3640 ac_cv_use_debug='wxUSE_DEBUG=no'
3641 fi
3642
3643else
3644
3645 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3646 if test "x$LINE" != x ; then
3647 eval "DEFAULT_$LINE"
3648 else
3649 no_cache=1
3650 fi
3651
3652 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3653
3654fi;
3655
3656 eval "$ac_cv_use_debug"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_DEBUG" = yes; then
3662 echo "$as_me:$LINENO: result: yes" >&5
3663echo "${ECHO_T}yes" >&6
3664 else
3665 echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
3667 fi
3668
3669
3670 enablestring=
3671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3672echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3673 no_cache=0
3674 # Check whether --enable-stl or --disable-stl was given.
3675if test "${enable_stl+set}" = set; then
3676 enableval="$enable_stl"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_stl='wxUSE_STL=yes'
3680 else
3681 ac_cv_use_stl='wxUSE_STL=no'
3682 fi
3683
3684else
3685
3686 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3694
3695fi;
3696
3697 eval "$ac_cv_use_stl"
3698 if test "$no_cache" != 1; then
3699 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3700 fi
3701
3702 if test "$wxUSE_STL" = yes; then
3703 echo "$as_me:$LINENO: result: yes" >&5
3704echo "${ECHO_T}yes" >&6
3705 else
3706 echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
3708 fi
3709
3710if test "$USE_OS2" = "1"; then
69120ee4 3711 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3712
3713 enablestring=
3714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3715echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3716 no_cache=0
3717 # Check whether --enable-omf or --disable-omf was given.
3718if test "${enable_omf+set}" = set; then
3719 enableval="$enable_omf"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_omf='wxUSE_OMF=yes'
3723 else
3724 ac_cv_use_omf='wxUSE_OMF=no'
3725 fi
3726
3727else
3728
3729 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3737
3738fi;
3739
3740 eval "$ac_cv_use_omf"
3741 if test "$no_cache" != 1; then
3742 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3743 fi
3744
3745 if test "$wxUSE_OMF" = yes; then
3746 echo "$as_me:$LINENO: result: yes" >&5
3747echo "${ECHO_T}yes" >&6
3748 else
3749 echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6
3751 fi
3752
3753fi
3754
3755if test "$wxUSE_DEBUG" = "yes"; then
3756 DEFAULT_wxUSE_DEBUG_FLAG=yes
3757 DEFAULT_wxUSE_DEBUG_INFO=yes
3758 BUILD=debug
3759elif test "$wxUSE_DEBUG" = "no"; then
3760 DEFAULT_wxUSE_DEBUG_FLAG=no
3761 DEFAULT_wxUSE_DEBUG_INFO=no
3762 BUILD=release
3763fi
3764
3765
3766 enablestring=
3767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3768echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3769 no_cache=0
3770 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3771if test "${enable_debug_flag+set}" = set; then
3772 enableval="$enable_debug_flag"
3773
3774 if test "$enableval" = yes; then
3775 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3776 else
3777 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3778 fi
3779
3780else
3781
3782 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3783 if test "x$LINE" != x ; then
3784 eval "DEFAULT_$LINE"
3785 else
3786 no_cache=1
3787 fi
3788
3789 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3790
3791fi;
3792
3793 eval "$ac_cv_use_debug_flag"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_DEBUG_FLAG" = yes; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801 else
3802 echo "$as_me:$LINENO: result: no" >&5
3803echo "${ECHO_T}no" >&6
3804 fi
3805
3806
3807 enablestring=
3808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3809echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3810 no_cache=0
3811 # Check whether --enable-debug_info or --disable-debug_info was given.
3812if test "${enable_debug_info+set}" = set; then
3813 enableval="$enable_debug_info"
3814
3815 if test "$enableval" = yes; then
3816 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3817 else
3818 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3819 fi
3820
3821else
3822
3823 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3824 if test "x$LINE" != x ; then
3825 eval "DEFAULT_$LINE"
3826 else
3827 no_cache=1
3828 fi
3829
3830 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3831
3832fi;
3833
3834 eval "$ac_cv_use_debug_info"
3835 if test "$no_cache" != 1; then
3836 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3837 fi
3838
3839 if test "$wxUSE_DEBUG_INFO" = yes; then
3840 echo "$as_me:$LINENO: result: yes" >&5
3841echo "${ECHO_T}yes" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844echo "${ECHO_T}no" >&6
3845 fi
3846
3847
3848 enablestring=
3849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3850echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3851 no_cache=0
3852 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3853if test "${enable_debug_gdb+set}" = set; then
3854 enableval="$enable_debug_gdb"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3858 else
3859 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3860 fi
3861
3862else
3863
3864 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3872
3873fi;
3874
3875 eval "$ac_cv_use_debug_gdb"
3876 if test "$no_cache" != 1; then
3877 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3878 fi
3879
3880 if test "$wxUSE_DEBUG_GDB" = yes; then
3881 echo "$as_me:$LINENO: result: yes" >&5
3882echo "${ECHO_T}yes" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6
3886 fi
3887
3888
3889 enablestring=
3890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3891echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3892 no_cache=0
3893 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3894if test "${enable_debug_cntxt+set}" = set; then
3895 enableval="$enable_debug_cntxt"
3896
3897 if test "$enableval" = yes; then
3898 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3899 else
3900 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3901 fi
3902
3903else
3904
3905 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3913
3914fi;
3915
3916 eval "$ac_cv_use_debug_cntxt"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3922 echo "$as_me:$LINENO: result: yes" >&5
3923echo "${ECHO_T}yes" >&6
3924 else
3925 echo "$as_me:$LINENO: result: no" >&5
3926echo "${ECHO_T}no" >&6
3927 fi
3928
3929
3930 enablestring=
3931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3932echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3933 no_cache=0
3934 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3935if test "${enable_mem_tracing+set}" = set; then
3936 enableval="$enable_mem_tracing"
3937
3938 if test "$enableval" = yes; then
3939 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3940 else
3941 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3942 fi
3943
3944else
3945
3946 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3954
3955fi;
3956
3957 eval "$ac_cv_use_mem_tracing"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_MEM_TRACING" = yes; then
3963 echo "$as_me:$LINENO: result: yes" >&5
3964echo "${ECHO_T}yes" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
3968 fi
3969
3970
3971 enablestring=
3972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3973echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3974 no_cache=0
3975 # Check whether --enable-profile or --disable-profile was given.
3976if test "${enable_profile+set}" = set; then
3977 enableval="$enable_profile"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_profile='wxUSE_PROFILE=yes'
3981 else
3982 ac_cv_use_profile='wxUSE_PROFILE=no'
3983 fi
3984
3985else
3986
3987 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3995
3996fi;
3997
3998 eval "$ac_cv_use_profile"
3999 if test "$no_cache" != 1; then
4000 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4001 fi
4002
4003 if test "$wxUSE_PROFILE" = yes; then
4004 echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6
4009 fi
4010
4011
4012 enablestring=
4013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4014echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4015 no_cache=0
4016 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4017if test "${enable_no_rtti+set}" = set; then
4018 enableval="$enable_no_rtti"
4019
4020 if test "$enableval" = yes; then
4021 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4022 else
4023 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4024 fi
4025
4026else
4027
4028 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4036
4037fi;
4038
4039 eval "$ac_cv_use_no_rtti"
4040 if test "$no_cache" != 1; then
4041 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4042 fi
4043
4044 if test "$wxUSE_NO_RTTI" = yes; then
4045 echo "$as_me:$LINENO: result: yes" >&5
4046echo "${ECHO_T}yes" >&6
4047 else
4048 echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
4050 fi
4051
4052
4053 enablestring=
4054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4055echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4056 no_cache=0
4057 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4058if test "${enable_no_exceptions+set}" = set; then
4059 enableval="$enable_no_exceptions"
4060
4061 if test "$enableval" = yes; then
4062 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4063 else
4064 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4065 fi
4066
4067else
4068
4069 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4070 if test "x$LINE" != x ; then
4071 eval "DEFAULT_$LINE"
4072 else
4073 no_cache=1
4074 fi
4075
4076 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4077
4078fi;
4079
4080 eval "$ac_cv_use_no_exceptions"
4081 if test "$no_cache" != 1; then
4082 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4083 fi
4084
4085 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4086 echo "$as_me:$LINENO: result: yes" >&5
4087echo "${ECHO_T}yes" >&6
4088 else
4089 echo "$as_me:$LINENO: result: no" >&5
4090echo "${ECHO_T}no" >&6
4091 fi
4092
4093
4094 enablestring=
4095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4096echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4097 no_cache=0
4098 # Check whether --enable-permissive or --disable-permissive was given.
4099if test "${enable_permissive+set}" = set; then
4100 enableval="$enable_permissive"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4104 else
4105 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4118
4119fi;
4120
4121 eval "$ac_cv_use_permissive"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$wxUSE_PERMISSIVE" = yes; then
4127 echo "$as_me:$LINENO: result: yes" >&5
4128echo "${ECHO_T}yes" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6
4132 fi
4133
4134
4135 enablestring=
4136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4137echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4138 no_cache=0
4139 # Check whether --enable-no_deps or --disable-no_deps was given.
4140if test "${enable_no_deps+set}" = set; then
4141 enableval="$enable_no_deps"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4145 else
4146 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4159
4160fi;
4161
4162 eval "$ac_cv_use_no_deps"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_NO_DEPS" = yes; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169echo "${ECHO_T}yes" >&6
4170 else
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173 fi
4174
4175
4176
dee1a63f
MB
4177 enablestring=enable
4178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4179echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4180 no_cache=0
dee1a63f
MB
4181 # Check whether --enable-compat24 or --disable-compat24 was given.
4182if test "${enable_compat24+set}" = set; then
4183 enableval="$enable_compat24"
a848cd7e
SC
4184
4185 if test "$enableval" = yes; then
dee1a63f 4186 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4187 else
dee1a63f 4188 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4189 fi
4190
4191else
4192
dee1a63f 4193 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
dee1a63f 4200 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4201
4202fi;
4203
dee1a63f 4204 eval "$ac_cv_use_compat24"
a848cd7e 4205 if test "$no_cache" != 1; then
dee1a63f 4206 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4207 fi
4208
dee1a63f 4209 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4210 echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6
4212 else
4213 echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
4215 fi
4216
4217
4218 enablestring=disable
dee1a63f
MB
4219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4220echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4221 no_cache=0
dee1a63f
MB
4222 # Check whether --enable-compat26 or --disable-compat26 was given.
4223if test "${enable_compat26+set}" = set; then
4224 enableval="$enable_compat26"
a848cd7e
SC
4225
4226 if test "$enableval" = yes; then
dee1a63f 4227 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4228 else
dee1a63f 4229 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4230 fi
4231
4232else
4233
dee1a63f 4234 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
dee1a63f 4241 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4242
4243fi;
4244
dee1a63f 4245 eval "$ac_cv_use_compat26"
a848cd7e 4246 if test "$no_cache" != 1; then
dee1a63f 4247 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4248 fi
4249
dee1a63f 4250 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4251 echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
4253 else
4254 echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
4256 fi
4257
4258
ffa0583f
RL
4259
4260 enablestring=
4261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4262echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4263 no_cache=0
4264 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4265if test "${enable_rpath+set}" = set; then
4266 enableval="$enable_rpath"
ffa0583f
RL
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_rpath='wxUSE_RPATH=yes'
4270 else
4271 ac_cv_use_rpath='wxUSE_RPATH=no'
4272 fi
4273
4274else
4275
4276 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4284
a848cd7e
SC
4285fi;
4286
ffa0583f
RL
4287 eval "$ac_cv_use_rpath"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_RPATH" = yes; then
4293 echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
4295 else
4296 echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
4298 fi
4299
a848cd7e
SC
4300
4301
4302
4303
4304 enablestring=
4305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4306echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4307 no_cache=0
4308 # Check whether --enable-intl or --disable-intl was given.
4309if test "${enable_intl+set}" = set; then
4310 enableval="$enable_intl"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_intl='wxUSE_INTL=yes'
4314 else
4315 ac_cv_use_intl='wxUSE_INTL=no'
4316 fi
4317
4318else
4319
4320 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4328
4329fi;
4330
4331 eval "$ac_cv_use_intl"
4332 if test "$no_cache" != 1; then
4333 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4334 fi
4335
4336 if test "$wxUSE_INTL" = yes; then
4337 echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339 else
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
4342 fi
4343
4344
4345 enablestring=
4346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4347echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4348 no_cache=0
4349 # Check whether --enable-config or --disable-config was given.
4350if test "${enable_config+set}" = set; then
4351 enableval="$enable_config"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_config='wxUSE_CONFIG=yes'
4355 else
4356 ac_cv_use_config='wxUSE_CONFIG=no'
4357 fi
4358
4359else
4360
4361 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4369
4370fi;
4371
4372 eval "$ac_cv_use_config"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_CONFIG" = yes; then
4378 echo "$as_me:$LINENO: result: yes" >&5
4379echo "${ECHO_T}yes" >&6
4380 else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383 fi
4384
4385
4386
4387 enablestring=
4388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4389echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4390 no_cache=0
4391 # Check whether --enable-protocols or --disable-protocols was given.
4392if test "${enable_protocols+set}" = set; then
4393 enableval="$enable_protocols"
4394
4395 if test "$enableval" = yes; then
4396 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4397 else
4398 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4399 fi
4400
4401else
4402
4403 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4411
4412fi;
4413
4414 eval "$ac_cv_use_protocols"
4415 if test "$no_cache" != 1; then
4416 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4417 fi
4418
4419 if test "$wxUSE_PROTOCOL" = yes; then
4420 echo "$as_me:$LINENO: result: yes" >&5
4421echo "${ECHO_T}yes" >&6
4422 else
4423 echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6
4425 fi
4426
4427
4428 enablestring=
4429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4430echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4431 no_cache=0
4432 # Check whether --enable-ftp or --disable-ftp was given.
4433if test "${enable_ftp+set}" = set; then
4434 enableval="$enable_ftp"
4435
4436 if test "$enableval" = yes; then
4437 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4438 else
4439 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4440 fi
4441
4442else
4443
4444 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4445 if test "x$LINE" != x ; then
4446 eval "DEFAULT_$LINE"
4447 else
4448 no_cache=1
4449 fi
4450
4451 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4452
4453fi;
4454
4455 eval "$ac_cv_use_ftp"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4461 echo "$as_me:$LINENO: result: yes" >&5
4462echo "${ECHO_T}yes" >&6
4463 else
4464 echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6
4466 fi
4467
4468
4469 enablestring=
4470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4471echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4472 no_cache=0
4473 # Check whether --enable-http or --disable-http was given.
4474if test "${enable_http+set}" = set; then
4475 enableval="$enable_http"
4476
4477 if test "$enableval" = yes; then
4478 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4479 else
4480 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4481 fi
4482
4483else
4484
4485 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4486 if test "x$LINE" != x ; then
4487 eval "DEFAULT_$LINE"
4488 else
4489 no_cache=1
4490 fi
4491
4492 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4493
4494fi;
4495
4496 eval "$ac_cv_use_http"
4497 if test "$no_cache" != 1; then
4498 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4499 fi
4500
4501 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4502 echo "$as_me:$LINENO: result: yes" >&5
4503echo "${ECHO_T}yes" >&6
4504 else
4505 echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6
4507 fi
4508
4509
4510 enablestring=
4511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4512echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4513 no_cache=0
4514 # Check whether --enable-fileproto or --disable-fileproto was given.
4515if test "${enable_fileproto+set}" = set; then
4516 enableval="$enable_fileproto"
4517
4518 if test "$enableval" = yes; then
4519 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4520 else
4521 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4522 fi
4523
4524else
4525
4526 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4534
4535fi;
4536
4537 eval "$ac_cv_use_fileproto"
4538 if test "$no_cache" != 1; then
4539 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4540 fi
4541
4542 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4543 echo "$as_me:$LINENO: result: yes" >&5
4544echo "${ECHO_T}yes" >&6
4545 else
4546 echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548 fi
4549
4550
4551 enablestring=
4552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4553echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4554 no_cache=0
4555 # Check whether --enable-sockets or --disable-sockets was given.
4556if test "${enable_sockets+set}" = set; then
4557 enableval="$enable_sockets"
4558
4559 if test "$enableval" = yes; then
4560 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4561 else
4562 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4563 fi
4564
4565else
4566
4567 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4575
4576fi;
4577
4578 eval "$ac_cv_use_sockets"
4579 if test "$no_cache" != 1; then
4580 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4581 fi
4582
4583 if test "$wxUSE_SOCKETS" = yes; then
4584 echo "$as_me:$LINENO: result: yes" >&5
4585echo "${ECHO_T}yes" >&6
4586 else
4587 echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6
4589 fi
4590
4591
4592 enablestring=
4593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4594echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4595 no_cache=0
4596 # Check whether --enable-ole or --disable-ole was given.
4597if test "${enable_ole+set}" = set; then
4598 enableval="$enable_ole"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_ole='wxUSE_OLE=yes'
4602 else
4603 ac_cv_use_ole='wxUSE_OLE=no'
4604 fi
4605
4606else
4607
4608 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4616
4617fi;
4618
4619 eval "$ac_cv_use_ole"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_OLE" = yes; then
4625 echo "$as_me:$LINENO: result: yes" >&5
4626echo "${ECHO_T}yes" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630 fi
4631
4632
4633 enablestring=
4634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4635echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4636 no_cache=0
4637 # Check whether --enable-dataobj or --disable-dataobj was given.
4638if test "${enable_dataobj+set}" = set; then
4639 enableval="$enable_dataobj"
4640
4641 if test "$enableval" = yes; then
4642 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4643 else
4644 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4645 fi
4646
4647else
4648
4649 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4650 if test "x$LINE" != x ; then
4651 eval "DEFAULT_$LINE"
4652 else
4653 no_cache=1
4654 fi
4655
4656 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4657
4658fi;
4659
4660 eval "$ac_cv_use_dataobj"
4661 if test "$no_cache" != 1; then
4662 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4663 fi
4664
4665 if test "$wxUSE_DATAOBJ" = yes; then
4666 echo "$as_me:$LINENO: result: yes" >&5
4667echo "${ECHO_T}yes" >&6
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6
4671 fi
4672
4673
4674
4675 enablestring=
4676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4677echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4678 no_cache=0
4679 # Check whether --enable-ipc or --disable-ipc was given.
4680if test "${enable_ipc+set}" = set; then
4681 enableval="$enable_ipc"
4682
4683 if test "$enableval" = yes; then
4684 ac_cv_use_ipc='wxUSE_IPC=yes'
4685 else
4686 ac_cv_use_ipc='wxUSE_IPC=no'
4687 fi
4688
4689else
4690
4691 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4692 if test "x$LINE" != x ; then
4693 eval "DEFAULT_$LINE"
4694 else
4695 no_cache=1
4696 fi
4697
4698 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4699
4700fi;
4701
4702 eval "$ac_cv_use_ipc"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4705 fi
4706
4707 if test "$wxUSE_IPC" = yes; then
4708 echo "$as_me:$LINENO: result: yes" >&5
4709echo "${ECHO_T}yes" >&6
4710 else
4711 echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6
4713 fi
4714
4715
4716
4717 enablestring=
4718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4719echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4720 no_cache=0
4721 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4722if test "${enable_apple_ieee+set}" = set; then
4723 enableval="$enable_apple_ieee"
4724
4725 if test "$enableval" = yes; then
4726 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4727 else
4728 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4729 fi
4730
4731else
4732
4733 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4741
4742fi;
4743
4744 eval "$ac_cv_use_apple_ieee"
4745 if test "$no_cache" != 1; then
4746 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4747 fi
4748
4749 if test "$wxUSE_APPLE_IEEE" = yes; then
4750 echo "$as_me:$LINENO: result: yes" >&5
4751echo "${ECHO_T}yes" >&6
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755 fi
4756
4757
81f90336
MW
4758 enablestring=
4759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4760echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4761 no_cache=0
4762 # Check whether --enable-arcstream or --disable-arcstream was given.
4763if test "${enable_arcstream+set}" = set; then
4764 enableval="$enable_arcstream"
4765
4766 if test "$enableval" = yes; then
9e8e867f 4767 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4768 else
9e8e867f 4769 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4770 fi
4771
4772else
4773
9e8e867f 4774 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 else
4778 no_cache=1
4779 fi
4780
9e8e867f 4781 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4782
4783fi;
4784
4785 eval "$ac_cv_use_arcstream"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4788 fi
4789
9e8e867f 4790 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4791 echo "$as_me:$LINENO: result: yes" >&5
4792echo "${ECHO_T}yes" >&6
4793 else
4794 echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796 fi
4797
4798
a848cd7e 4799 enablestring=
36b6448c
VZ
4800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4801echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4802 no_cache=0
36b6448c
VZ
4803 # Check whether --enable-backtrace or --disable-backtrace was given.
4804if test "${enable_backtrace+set}" = set; then
4805 enableval="$enable_backtrace"
a848cd7e
SC
4806
4807 if test "$enableval" = yes; then
36b6448c 4808 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4809 else
36b6448c 4810 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4811 fi
4812
4813else
4814
36b6448c 4815 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4816 if test "x$LINE" != x ; then
4817 eval "DEFAULT_$LINE"
4818 else
4819 no_cache=1
4820 fi
4821
36b6448c 4822 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4823
4824fi;
4825
36b6448c 4826 eval "$ac_cv_use_backtrace"
a848cd7e 4827 if test "$no_cache" != 1; then
36b6448c 4828 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4829 fi
4830
36b6448c 4831 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4832 echo "$as_me:$LINENO: result: yes" >&5
4833echo "${ECHO_T}yes" >&6
4834 else
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
4837 fi
4838
4839
eaff0f0d 4840 enablestring=
36b6448c
VZ
4841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4842echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4843 no_cache=0
36b6448c
VZ
4844 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4845if test "${enable_catch_segvs+set}" = set; then
4846 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4847
4848 if test "$enableval" = yes; then
36b6448c 4849 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4850 else
36b6448c 4851 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4852 fi
4853
4854else
4855
36b6448c 4856 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
36b6448c 4863 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4864
4865fi;
4866
36b6448c 4867 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4868 if test "$no_cache" != 1; then
36b6448c 4869 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4870 fi
4871
36b6448c 4872 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4873 echo "$as_me:$LINENO: result: yes" >&5
4874echo "${ECHO_T}yes" >&6
4875 else
4876 echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6
4878 fi
4879
4880
a848cd7e
SC
4881 enablestring=
4882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4883echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4884 no_cache=0
4885 # Check whether --enable-cmdline or --disable-cmdline was given.
4886if test "${enable_cmdline+set}" = set; then
4887 enableval="$enable_cmdline"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4891 else
4892 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4893 fi
4894
4895else
4896
4897 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4905
4906fi;
4907
4908 eval "$ac_cv_use_cmdline"
4909 if test "$no_cache" != 1; then
4910 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4911 fi
4912
4913 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4914 echo "$as_me:$LINENO: result: yes" >&5
4915echo "${ECHO_T}yes" >&6
4916 else
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
4919 fi
4920
4921
4922 enablestring=
4923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4924echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4925 no_cache=0
4926 # Check whether --enable-datetime or --disable-datetime was given.
4927if test "${enable_datetime+set}" = set; then
4928 enableval="$enable_datetime"
4929
4930 if test "$enableval" = yes; then
4931 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4932 else
4933 ac_cv_use_datetime='wxUSE_DATETIME=no'
4934 fi
4935
4936else
4937
4938 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4939 if test "x$LINE" != x ; then
4940 eval "DEFAULT_$LINE"
4941 else
4942 no_cache=1
4943 fi
4944
4945 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4946
4947fi;
4948
4949 eval "$ac_cv_use_datetime"
4950 if test "$no_cache" != 1; then
4951 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4952 fi
4953
4954 if test "$wxUSE_DATETIME" = yes; then
4955 echo "$as_me:$LINENO: result: yes" >&5
4956echo "${ECHO_T}yes" >&6
4957 else
4958 echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6
4960 fi
4961
4962
36b6448c
VZ
4963 enablestring=
4964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4965echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4966 no_cache=0
4967 # Check whether --enable-debugreport or --disable-debugreport was given.
4968if test "${enable_debugreport+set}" = set; then
4969 enableval="$enable_debugreport"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4973 else
4974 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4975 fi
4976
4977else
4978
4979 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4987
4988fi;
4989
4990 eval "$ac_cv_use_debugreport"
4991 if test "$no_cache" != 1; then
4992 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4993 fi
4994
4995 if test "$wxUSE_DEBUGREPORT" = yes; then
4996 echo "$as_me:$LINENO: result: yes" >&5
4997echo "${ECHO_T}yes" >&6
4998 else
4999 echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
5001 fi
5002
5003
a848cd7e
SC
5004 enablestring=
5005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5006echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5007 no_cache=0
5008 # Check whether --enable-dialupman or --disable-dialupman was given.
5009if test "${enable_dialupman+set}" = set; then
5010 enableval="$enable_dialupman"
5011
5012 if test "$enableval" = yes; then
5013 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5014 else
5015 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5016 fi
5017
5018else
5019
5020 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5021 if test "x$LINE" != x ; then
5022 eval "DEFAULT_$LINE"
5023 else
5024 no_cache=1
5025 fi
5026
5027 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5028
5029fi;
5030
5031 eval "$ac_cv_use_dialupman"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5037 echo "$as_me:$LINENO: result: yes" >&5
5038echo "${ECHO_T}yes" >&6
5039 else
5040 echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
5042 fi
5043
5044
5045 enablestring=
5046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5047echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5048 no_cache=0
5049 # Check whether --enable-dynlib or --disable-dynlib was given.
5050if test "${enable_dynlib+set}" = set; then
5051 enableval="$enable_dynlib"
5052
5053 if test "$enableval" = yes; then
5054 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5055 else
5056 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5057 fi
5058
5059else
5060
5061 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5062 if test "x$LINE" != x ; then
5063 eval "DEFAULT_$LINE"
5064 else
5065 no_cache=1
5066 fi
5067
5068 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5069
5070fi;
5071
5072 eval "$ac_cv_use_dynlib"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5078 echo "$as_me:$LINENO: result: yes" >&5
5079echo "${ECHO_T}yes" >&6
5080 else
5081 echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083 fi
5084
5085
5086 enablestring=
5087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5088echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5089 no_cache=0
5090 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5091if test "${enable_dynamicloader+set}" = set; then
5092 enableval="$enable_dynamicloader"
5093
5094 if test "$enableval" = yes; then
5095 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5096 else
5097 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5098 fi
5099
5100else
5101
5102 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5103 if test "x$LINE" != x ; then
5104 eval "DEFAULT_$LINE"
5105 else
5106 no_cache=1
5107 fi
5108
5109 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5110
5111fi;
5112
5113 eval "$ac_cv_use_dynamicloader"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5119 echo "$as_me:$LINENO: result: yes" >&5
5120echo "${ECHO_T}yes" >&6
5121 else
5122 echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6
5124 fi
5125
5126
5127 enablestring=
5128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5129echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5130 no_cache=0
5131 # Check whether --enable-exceptions or --disable-exceptions was given.
5132if test "${enable_exceptions+set}" = set; then
5133 enableval="$enable_exceptions"
5134
5135 if test "$enableval" = yes; then
5136 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5137 else
5138 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5139 fi
5140
5141else
5142
5143 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5144 if test "x$LINE" != x ; then
5145 eval "DEFAULT_$LINE"
5146 else
5147 no_cache=1
5148 fi
5149
5150 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5151
5152fi;
5153
5154 eval "$ac_cv_use_exceptions"
5155 if test "$no_cache" != 1; then
5156 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5157 fi
5158
5159 if test "$wxUSE_EXCEPTIONS" = yes; then
5160 echo "$as_me:$LINENO: result: yes" >&5
5161echo "${ECHO_T}yes" >&6
5162 else
5163 echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165 fi
5166
5167
5168 enablestring=
5169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5170echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5171 no_cache=0
5172 # Check whether --enable-ffile or --disable-ffile was given.
5173if test "${enable_ffile+set}" = set; then
5174 enableval="$enable_ffile"
5175
5176 if test "$enableval" = yes; then
5177 ac_cv_use_ffile='wxUSE_FFILE=yes'
5178 else
5179 ac_cv_use_ffile='wxUSE_FFILE=no'
5180 fi
5181
5182else
5183
5184 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5185 if test "x$LINE" != x ; then
5186 eval "DEFAULT_$LINE"
5187 else
5188 no_cache=1
5189 fi
5190
5191 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5192
5193fi;
5194
5195 eval "$ac_cv_use_ffile"
5196 if test "$no_cache" != 1; then
5197 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5198 fi
5199
5200 if test "$wxUSE_FFILE" = yes; then
5201 echo "$as_me:$LINENO: result: yes" >&5
5202echo "${ECHO_T}yes" >&6
5203 else
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206 fi
5207
5208
5209 enablestring=
5210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5211echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5212 no_cache=0
5213 # Check whether --enable-file or --disable-file was given.
5214if test "${enable_file+set}" = set; then
5215 enableval="$enable_file"
5216
5217 if test "$enableval" = yes; then
5218 ac_cv_use_file='wxUSE_FILE=yes'
5219 else
5220 ac_cv_use_file='wxUSE_FILE=no'
5221 fi
5222
5223else
5224
5225 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5226 if test "x$LINE" != x ; then
5227 eval "DEFAULT_$LINE"
5228 else
5229 no_cache=1
5230 fi
5231
5232 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5233
5234fi;
5235
5236 eval "$ac_cv_use_file"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_FILE" = yes; then
5242 echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6
5244 else
5245 echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247 fi
5248
5249
5250 enablestring=
5251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5252echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5253 no_cache=0
5254 # Check whether --enable-filesystem or --disable-filesystem was given.
5255if test "${enable_filesystem+set}" = set; then
5256 enableval="$enable_filesystem"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5260 else
5261 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5262 fi
5263
5264else
5265
5266 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5274
5275fi;
5276
5277 eval "$ac_cv_use_filesystem"
5278 if test "$no_cache" != 1; then
5279 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5280 fi
5281
5282 if test "$wxUSE_FILESYSTEM" = yes; then
5283 echo "$as_me:$LINENO: result: yes" >&5
5284echo "${ECHO_T}yes" >&6
5285 else
5286 echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288 fi
5289
5290
5291 enablestring=
5292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5293echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5294 no_cache=0
5295 # Check whether --enable-fontmap or --disable-fontmap was given.
5296if test "${enable_fontmap+set}" = set; then
5297 enableval="$enable_fontmap"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5301 else
5302 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5303 fi
5304
5305else
5306
5307 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5315
5316fi;
5317
5318 eval "$ac_cv_use_fontmap"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_FONTMAP" = yes; then
5324 echo "$as_me:$LINENO: result: yes" >&5
5325echo "${ECHO_T}yes" >&6
5326 else
5327 echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6
5329 fi
5330
5331
5332 enablestring=
5333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5334echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5335 no_cache=0
5336 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5337if test "${enable_fs_inet+set}" = set; then
5338 enableval="$enable_fs_inet"
5339
5340 if test "$enableval" = yes; then
5341 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5342 else
5343 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5344 fi
5345
5346else
5347
5348 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5349 if test "x$LINE" != x ; then
5350 eval "DEFAULT_$LINE"
5351 else
5352 no_cache=1
5353 fi
5354
5355 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5356
5357fi;
5358
5359 eval "$ac_cv_use_fs_inet"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_FS_INET" = yes; then
5365 echo "$as_me:$LINENO: result: yes" >&5
5366echo "${ECHO_T}yes" >&6
5367 else
5368 echo "$as_me:$LINENO: result: no" >&5
5369echo "${ECHO_T}no" >&6
5370 fi
5371
5372
5373 enablestring=
5374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5375echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5376 no_cache=0
5377 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5378if test "${enable_fs_zip+set}" = set; then
5379 enableval="$enable_fs_zip"
5380
5381 if test "$enableval" = yes; then
5382 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5383 else
5384 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5385 fi
5386
5387else
5388
5389 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5390 if test "x$LINE" != x ; then
5391 eval "DEFAULT_$LINE"
5392 else
5393 no_cache=1
5394 fi
5395
5396 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5397
5398fi;
5399
5400 eval "$ac_cv_use_fs_zip"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_FS_ZIP" = yes; then
5406 echo "$as_me:$LINENO: result: yes" >&5
5407echo "${ECHO_T}yes" >&6
5408 else
5409 echo "$as_me:$LINENO: result: no" >&5
5410echo "${ECHO_T}no" >&6
5411 fi
5412
5413
5414 enablestring=
5415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5416echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5417 no_cache=0
5418 # Check whether --enable-geometry or --disable-geometry was given.
5419if test "${enable_geometry+set}" = set; then
5420 enableval="$enable_geometry"
5421
5422 if test "$enableval" = yes; then
5423 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5424 else
5425 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5426 fi
5427
5428else
5429
5430 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5431 if test "x$LINE" != x ; then
5432 eval "DEFAULT_$LINE"
5433 else
5434 no_cache=1
5435 fi
5436
5437 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5438
5439fi;
5440
5441 eval "$ac_cv_use_geometry"
5442 if test "$no_cache" != 1; then
5443 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5444 fi
5445
5446 if test "$wxUSE_GEOMETRY" = yes; then
5447 echo "$as_me:$LINENO: result: yes" >&5
5448echo "${ECHO_T}yes" >&6
5449 else
5450 echo "$as_me:$LINENO: result: no" >&5
5451echo "${ECHO_T}no" >&6
5452 fi
5453
5454
5455 enablestring=
5456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5457echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5458 no_cache=0
5459 # Check whether --enable-log or --disable-log was given.
5460if test "${enable_log+set}" = set; then
5461 enableval="$enable_log"
5462
5463 if test "$enableval" = yes; then
5464 ac_cv_use_log='wxUSE_LOG=yes'
5465 else
5466 ac_cv_use_log='wxUSE_LOG=no'
5467 fi
5468
5469else
5470
5471 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5472 if test "x$LINE" != x ; then
5473 eval "DEFAULT_$LINE"
5474 else
5475 no_cache=1
5476 fi
5477
5478 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5479
5480fi;
5481
5482 eval "$ac_cv_use_log"
5483 if test "$no_cache" != 1; then
5484 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5485 fi
5486
5487 if test "$wxUSE_LOG" = yes; then
5488 echo "$as_me:$LINENO: result: yes" >&5
5489echo "${ECHO_T}yes" >&6
5490 else
5491 echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493 fi
5494
5495
5496 enablestring=
5497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5498echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5499 no_cache=0
5500 # Check whether --enable-longlong or --disable-longlong was given.
5501if test "${enable_longlong+set}" = set; then
5502 enableval="$enable_longlong"
5503
5504 if test "$enableval" = yes; then
5505 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5506 else
5507 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5508 fi
5509
5510else
5511
5512 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5513 if test "x$LINE" != x ; then
5514 eval "DEFAULT_$LINE"
5515 else
5516 no_cache=1
5517 fi
5518
5519 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5520
5521fi;
5522
5523 eval "$ac_cv_use_longlong"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_LONGLONG" = yes; then
5529 echo "$as_me:$LINENO: result: yes" >&5
5530echo "${ECHO_T}yes" >&6
5531 else
5532 echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
5534 fi
5535
5536
5537 enablestring=
5538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5539echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5540 no_cache=0
5541 # Check whether --enable-mimetype or --disable-mimetype was given.
5542if test "${enable_mimetype+set}" = set; then
5543 enableval="$enable_mimetype"
5544
5545 if test "$enableval" = yes; then
5546 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5547 else
5548 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5549 fi
5550
5551else
5552
5553 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5554 if test "x$LINE" != x ; then
5555 eval "DEFAULT_$LINE"
5556 else
5557 no_cache=1
5558 fi
5559
5560 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5561
5562fi;
5563
5564 eval "$ac_cv_use_mimetype"
5565 if test "$no_cache" != 1; then
5566 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5567 fi
5568
5569 if test "$wxUSE_MIMETYPE" = yes; then
5570 echo "$as_me:$LINENO: result: yes" >&5
5571echo "${ECHO_T}yes" >&6
5572 else
5573 echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575 fi
5576
5577
5578 enablestring=
5579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5580echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5581 no_cache=0
5582 # Check whether --enable-mslu or --disable-mslu was given.
5583if test "${enable_mslu+set}" = set; then
5584 enableval="$enable_mslu"
5585
5586 if test "$enableval" = yes; then
5587 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5588 else
5589 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5590 fi
5591
5592else
5593
5594 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5595 if test "x$LINE" != x ; then
5596 eval "DEFAULT_$LINE"
5597 else
5598 no_cache=1
5599 fi
5600
5601 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5602
5603fi;
5604
5605 eval "$ac_cv_use_mslu"
5606 if test "$no_cache" != 1; then
5607 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5608 fi
5609
5610 if test "$wxUSE_UNICODE_MSLU" = yes; then
5611 echo "$as_me:$LINENO: result: yes" >&5
5612echo "${ECHO_T}yes" >&6
5613 else
5614 echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6
5616 fi
5617
5618
5619 enablestring=
5620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5621echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5622 no_cache=0
5623 # Check whether --enable-snglinst or --disable-snglinst was given.
5624if test "${enable_snglinst+set}" = set; then
5625 enableval="$enable_snglinst"
5626
5627 if test "$enableval" = yes; then
5628 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5629 else
5630 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5631 fi
5632
5633else
5634
5635 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5636 if test "x$LINE" != x ; then
5637 eval "DEFAULT_$LINE"
5638 else
5639 no_cache=1
5640 fi
5641
5642 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5643
5644fi;
5645
5646 eval "$ac_cv_use_snglinst"
5647 if test "$no_cache" != 1; then
5648 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5649 fi
5650
5651 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5652 echo "$as_me:$LINENO: result: yes" >&5
5653echo "${ECHO_T}yes" >&6
5654 else
5655 echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6
5657 fi
5658
5659
5660 enablestring=
07158944
VZ
5661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5662echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5663 no_cache=0
07158944
VZ
5664 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5665if test "${enable_std_iostreams+set}" = set; then
5666 enableval="$enable_std_iostreams"
a848cd7e
SC
5667
5668 if test "$enableval" = yes; then
07158944 5669 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5670 else
07158944 5671 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5672 fi
5673
5674else
5675
07158944 5676 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5677 if test "x$LINE" != x ; then
5678 eval "DEFAULT_$LINE"
5679 else
5680 no_cache=1
5681 fi
5682
07158944 5683 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5684
5685fi;
5686
07158944 5687 eval "$ac_cv_use_std_iostreams"
a848cd7e 5688 if test "$no_cache" != 1; then
07158944 5689 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5690 fi
5691
07158944 5692 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5693 echo "$as_me:$LINENO: result: yes" >&5
5694echo "${ECHO_T}yes" >&6
5695 else
5696 echo "$as_me:$LINENO: result: no" >&5
5697echo "${ECHO_T}no" >&6
5698 fi
5699
5700
59746b65
MW
5701 enablestring=
5702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5703echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5704 no_cache=0
5705 # Check whether --enable-std_string or --disable-std_string was given.
5706if test "${enable_std_string+set}" = set; then
5707 enableval="$enable_std_string"
5708
5709 if test "$enableval" = yes; then
5710 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5711 else
5712 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5713 fi
5714
5715else
5716
5717 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5718 if test "x$LINE" != x ; then
5719 eval "DEFAULT_$LINE"
5720 else
5721 no_cache=1
5722 fi
5723
5724 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5725
5726fi;
5727
5728 eval "$ac_cv_use_std_string"
5729 if test "$no_cache" != 1; then
5730 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5731 fi
5732
5733 if test "$wxUSE_STD_STRING" = yes; then
5734 echo "$as_me:$LINENO: result: yes" >&5
5735echo "${ECHO_T}yes" >&6
5736 else
5737 echo "$as_me:$LINENO: result: no" >&5
5738echo "${ECHO_T}no" >&6
5739 fi
5740
5741
a848cd7e 5742 enablestring=
07158944
VZ
5743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5744echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5745 no_cache=0
07158944
VZ
5746 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5747if test "${enable_stdpaths+set}" = set; then
5748 enableval="$enable_stdpaths"
a848cd7e
SC
5749
5750 if test "$enableval" = yes; then
07158944 5751 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5752 else
07158944 5753 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5754 fi
5755
5756else
5757
07158944 5758 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5759 if test "x$LINE" != x ; then
5760 eval "DEFAULT_$LINE"
5761 else
5762 no_cache=1
5763 fi
5764
07158944 5765 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5766
5767fi;
5768
07158944 5769 eval "$ac_cv_use_stdpaths"
a848cd7e 5770 if test "$no_cache" != 1; then
07158944 5771 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5772 fi
5773
07158944 5774 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5775 echo "$as_me:$LINENO: result: yes" >&5
5776echo "${ECHO_T}yes" >&6
5777 else
5778 echo "$as_me:$LINENO: result: no" >&5
5779echo "${ECHO_T}no" >&6
5780 fi
5781
5782
5783 enablestring=
5784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5785echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5786 no_cache=0
5787 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5788if test "${enable_stopwatch+set}" = set; then
5789 enableval="$enable_stopwatch"
5790
5791 if test "$enableval" = yes; then
5792 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5793 else
5794 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5795 fi
5796
5797else
5798
5799 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5800 if test "x$LINE" != x ; then
5801 eval "DEFAULT_$LINE"
5802 else
5803 no_cache=1
5804 fi
5805
5806 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5807
5808fi;
5809
5810 eval "$ac_cv_use_stopwatch"
5811 if test "$no_cache" != 1; then
5812 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5813 fi
5814
5815 if test "$wxUSE_STOPWATCH" = yes; then
5816 echo "$as_me:$LINENO: result: yes" >&5
5817echo "${ECHO_T}yes" >&6
5818 else
5819 echo "$as_me:$LINENO: result: no" >&5
5820echo "${ECHO_T}no" >&6
5821 fi
5822
5823
07158944
VZ
5824 enablestring=
5825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5826echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5827 no_cache=0
5828 # Check whether --enable-streams or --disable-streams was given.
5829if test "${enable_streams+set}" = set; then
5830 enableval="$enable_streams"
5831
5832 if test "$enableval" = yes; then
5833 ac_cv_use_streams='wxUSE_STREAMS=yes'
5834 else
5835 ac_cv_use_streams='wxUSE_STREAMS=no'
5836 fi
5837
5838else
5839
5840 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5841 if test "x$LINE" != x ; then
5842 eval "DEFAULT_$LINE"
5843 else
5844 no_cache=1
5845 fi
5846
5847 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5848
5849fi;
5850
5851 eval "$ac_cv_use_streams"
5852 if test "$no_cache" != 1; then
5853 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5854 fi
5855
5856 if test "$wxUSE_STREAMS" = yes; then
5857 echo "$as_me:$LINENO: result: yes" >&5
5858echo "${ECHO_T}yes" >&6
5859 else
5860 echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862 fi
5863
5864
a848cd7e
SC
5865 enablestring=
5866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5867echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5868 no_cache=0
5869 # Check whether --enable-system_options or --disable-system_options was given.
5870if test "${enable_system_options+set}" = set; then
5871 enableval="$enable_system_options"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5875 else
5876 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5877 fi
5878
5879else
5880
5881 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5889
5890fi;
5891
5892 eval "$ac_cv_use_system_options"
5893 if test "$no_cache" != 1; then
5894 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5895 fi
5896
5897 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5898 echo "$as_me:$LINENO: result: yes" >&5
5899echo "${ECHO_T}yes" >&6
5900 else
5901 echo "$as_me:$LINENO: result: no" >&5
5902echo "${ECHO_T}no" >&6
5903 fi
5904
5905
5906 enablestring=
5907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5908echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5909 no_cache=0
5910 # Check whether --enable-textbuf or --disable-textbuf was given.
5911if test "${enable_textbuf+set}" = set; then
5912 enableval="$enable_textbuf"
5913
5914 if test "$enableval" = yes; then
5915 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5916 else
5917 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5918 fi
5919
5920else
5921
5922 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5923 if test "x$LINE" != x ; then
5924 eval "DEFAULT_$LINE"
5925 else
5926 no_cache=1
5927 fi
5928
5929 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5930
5931fi;
5932
5933 eval "$ac_cv_use_textbuf"
5934 if test "$no_cache" != 1; then
5935 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5936 fi
5937
5938 if test "$wxUSE_TEXTBUFFER" = yes; then
5939 echo "$as_me:$LINENO: result: yes" >&5
5940echo "${ECHO_T}yes" >&6
5941 else
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944 fi
5945
5946
5947 enablestring=
5948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5949echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5950 no_cache=0
5951 # Check whether --enable-textfile or --disable-textfile was given.
5952if test "${enable_textfile+set}" = set; then
5953 enableval="$enable_textfile"
5954
5955 if test "$enableval" = yes; then
5956 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5957 else
5958 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5959 fi
5960
5961else
5962
5963 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5971
5972fi;
5973
5974 eval "$ac_cv_use_textfile"
5975 if test "$no_cache" != 1; then
5976 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5977 fi
5978
5979 if test "$wxUSE_TEXTFILE" = yes; then
5980 echo "$as_me:$LINENO: result: yes" >&5
5981echo "${ECHO_T}yes" >&6
5982 else
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985 fi
5986
5987
5988 enablestring=
5989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5990echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5991 no_cache=0
5992 # Check whether --enable-timer or --disable-timer was given.
5993if test "${enable_timer+set}" = set; then
5994 enableval="$enable_timer"
5995
5996 if test "$enableval" = yes; then
5997 ac_cv_use_timer='wxUSE_TIMER=yes'
5998 else
5999 ac_cv_use_timer='wxUSE_TIMER=no'
6000 fi
6001
6002else
6003
6004 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6005 if test "x$LINE" != x ; then
6006 eval "DEFAULT_$LINE"
6007 else
6008 no_cache=1
6009 fi
6010
6011 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6012
6013fi;
6014
6015 eval "$ac_cv_use_timer"
6016 if test "$no_cache" != 1; then
6017 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6018 fi
6019
6020 if test "$wxUSE_TIMER" = yes; then
6021 echo "$as_me:$LINENO: result: yes" >&5
6022echo "${ECHO_T}yes" >&6
6023 else
6024 echo "$as_me:$LINENO: result: no" >&5
6025echo "${ECHO_T}no" >&6
6026 fi
6027
6028
6029 enablestring=
6030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6031echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6032 no_cache=0
6033 # Check whether --enable-unicode or --disable-unicode was given.
6034if test "${enable_unicode+set}" = set; then
6035 enableval="$enable_unicode"
6036
6037 if test "$enableval" = yes; then
6038 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6039 else
6040 ac_cv_use_unicode='wxUSE_UNICODE=no'
6041 fi
6042
6043else
6044
6045 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6053
6054fi;
6055
6056 eval "$ac_cv_use_unicode"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_UNICODE" = yes; then
6062 echo "$as_me:$LINENO: result: yes" >&5
6063echo "${ECHO_T}yes" >&6
6064 else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067 fi
6068
6069
6070 enablestring=
6071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6072echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6073 no_cache=0
6074 # Check whether --enable-sound or --disable-sound was given.
6075if test "${enable_sound+set}" = set; then
6076 enableval="$enable_sound"
6077
6078 if test "$enableval" = yes; then
6079 ac_cv_use_sound='wxUSE_SOUND=yes'
6080 else
6081 ac_cv_use_sound='wxUSE_SOUND=no'
6082 fi
6083
6084else
6085
6086 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
6088 eval "DEFAULT_$LINE"
6089 else
6090 no_cache=1
6091 fi
6092
6093 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6094
6095fi;
6096
6097 eval "$ac_cv_use_sound"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_SOUND" = yes; then
6103 echo "$as_me:$LINENO: result: yes" >&5
6104echo "${ECHO_T}yes" >&6
6105 else
6106 echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108 fi
6109
6110
3b57de8b
RL
6111 enablestring=
6112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6113echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6114 no_cache=0
6115 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6116if test "${enable_mediactrl+set}" = set; then
6117 enableval="$enable_mediactrl"
6118
6119 if test "$enableval" = yes; then
6120 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6121 else
6122 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6123 fi
6124
6125else
6126
6127 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6135
6136fi;
6137
6138 eval "$ac_cv_use_mediactrl"
6139 if test "$no_cache" != 1; then
6140 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6141 fi
6142
6143 if test "$wxUSE_MEDIACTRL" = yes; then
6144 echo "$as_me:$LINENO: result: yes" >&5
6145echo "${ECHO_T}yes" >&6
6146 else
6147 echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6
6149 fi
6150
6151
a848cd7e
SC
6152 enablestring=
6153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6154echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6155 no_cache=0
6156 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6157if test "${enable_wxprintfv+set}" = set; then
6158 enableval="$enable_wxprintfv"
6159
6160 if test "$enableval" = yes; then
6161 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6162 else
6163 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6164 fi
6165
6166else
6167
6168 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6176
6177fi;
6178
6179 eval "$ac_cv_use_wxprintfv"
6180 if test "$no_cache" != 1; then
6181 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6182 fi
6183
6184 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6185 echo "$as_me:$LINENO: result: yes" >&5
6186echo "${ECHO_T}yes" >&6
6187 else
6188 echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190 fi
6191
6192
6193 enablestring=
6194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6195echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6196 no_cache=0
6197 # Check whether --enable-zipstream or --disable-zipstream was given.
6198if test "${enable_zipstream+set}" = set; then
6199 enableval="$enable_zipstream"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6203 else
6204 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6205 fi
6206
6207else
6208
6209 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6217
6218fi;
6219
6220 eval "$ac_cv_use_zipstream"
6221 if test "$no_cache" != 1; then
6222 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6223 fi
6224
6225 if test "$wxUSE_ZIPSTREAM" = yes; then
6226 echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6
6228 else
6229 echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6
6231 fi
6232
6233
a848cd7e
SC
6234
6235 enablestring=
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6238 no_cache=0
6239 # Check whether --enable-url or --disable-url was given.
6240if test "${enable_url+set}" = set; then
6241 enableval="$enable_url"
6242
6243 if test "$enableval" = yes; then
6244 ac_cv_use_url='wxUSE_URL=yes'
6245 else
6246 ac_cv_use_url='wxUSE_URL=no'
6247 fi
6248
6249else
6250
6251 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6259
6260fi;
6261
6262 eval "$ac_cv_use_url"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_URL" = yes; then
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
6270 else
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273 fi
6274
6275
6276 enablestring=
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6279 no_cache=0
6280 # Check whether --enable-protocol or --disable-protocol was given.
6281if test "${enable_protocol+set}" = set; then
6282 enableval="$enable_protocol"
6283
6284 if test "$enableval" = yes; then
6285 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6286 else
6287 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6288 fi
6289
6290else
6291
6292 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6300
6301fi;
6302
6303 eval "$ac_cv_use_protocol"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_PROTOCOL" = yes; then
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
6311 else
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
6314 fi
6315
6316
6317 enablestring=
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6320 no_cache=0
6321 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6322if test "${enable_protocol_http+set}" = set; then
6323 enableval="$enable_protocol_http"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6327 else
6328 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6341
6342fi;
6343
6344 eval "$ac_cv_use_protocol_http"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
6352 else
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
6355 fi
6356
6357
6358 enablestring=
6359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6360echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6361 no_cache=0
6362 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6363if test "${enable_protocol_ftp+set}" = set; then
6364 enableval="$enable_protocol_ftp"
6365
6366 if test "$enableval" = yes; then
6367 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6368 else
6369 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6370 fi
6371
6372else
6373
6374 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6375 if test "x$LINE" != x ; then
6376 eval "DEFAULT_$LINE"
6377 else
6378 no_cache=1
6379 fi
6380
6381 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6382
6383fi;
6384
6385 eval "$ac_cv_use_protocol_ftp"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6391 echo "$as_me:$LINENO: result: yes" >&5
6392echo "${ECHO_T}yes" >&6
6393 else
6394 echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6
6396 fi
6397
6398
6399 enablestring=
6400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6401echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6402 no_cache=0
6403 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6404if test "${enable_protocol_file+set}" = set; then
6405 enableval="$enable_protocol_file"
6406
6407 if test "$enableval" = yes; then
6408 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6409 else
6410 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6411 fi
6412
6413else
6414
6415 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6416 if test "x$LINE" != x ; then
6417 eval "DEFAULT_$LINE"
6418 else
6419 no_cache=1
6420 fi
6421
6422 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6423
6424fi;
6425
6426 eval "$ac_cv_use_protocol_file"
6427 if test "$no_cache" != 1; then
6428 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6429 fi
6430
6431 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6432 echo "$as_me:$LINENO: result: yes" >&5
6433echo "${ECHO_T}yes" >&6
6434 else
6435 echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6
6437 fi
6438
6439
6440
6441
6442
6443 enablestring=
6444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6445echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6446 no_cache=0
6447 # Check whether --enable-threads or --disable-threads was given.
6448if test "${enable_threads+set}" = set; then
6449 enableval="$enable_threads"
6450
6451 if test "$enableval" = yes; then
6452 ac_cv_use_threads='wxUSE_THREADS=yes'
6453 else
6454 ac_cv_use_threads='wxUSE_THREADS=no'
6455 fi
6456
6457else
6458
6459 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
6466 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6467
6468fi;
6469
6470 eval "$ac_cv_use_threads"
6471 if test "$no_cache" != 1; then
6472 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6473 fi
6474
6475 if test "$wxUSE_THREADS" = yes; then
6476 echo "$as_me:$LINENO: result: yes" >&5
6477echo "${ECHO_T}yes" >&6
6478 else
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481 fi
6482
6483
6484if test "$wxUSE_GUI" = "yes"; then
6485
6486
6487
6488 enablestring=
6489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6490echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6491 no_cache=0
6492 # Check whether --enable-docview or --disable-docview was given.
6493if test "${enable_docview+set}" = set; then
6494 enableval="$enable_docview"
6495
6496 if test "$enableval" = yes; then
6497 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6498 else
6499 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6500 fi
6501
6502else
6503
6504 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6512
6513fi;
6514
6515 eval "$ac_cv_use_docview"
6516 if test "$no_cache" != 1; then
6517 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6518 fi
6519
6520 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6521 echo "$as_me:$LINENO: result: yes" >&5
6522echo "${ECHO_T}yes" >&6
6523 else
6524 echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
6526 fi
6527
6528
6529 enablestring=
6530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6531echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6532 no_cache=0
6533 # Check whether --enable-help or --disable-help was given.
6534if test "${enable_help+set}" = set; then
6535 enableval="$enable_help"
6536
6537 if test "$enableval" = yes; then
6538 ac_cv_use_help='wxUSE_HELP=yes'
6539 else
6540 ac_cv_use_help='wxUSE_HELP=no'
6541 fi
6542
6543else
6544
6545 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6553
6554fi;
6555
6556 eval "$ac_cv_use_help"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_HELP" = yes; then
6562 echo "$as_me:$LINENO: result: yes" >&5
6563echo "${ECHO_T}yes" >&6
6564 else
6565 echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6
6567 fi
6568
6569
6570 enablestring=
6571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6572echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6573 no_cache=0
6574 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6575if test "${enable_mshtmlhelp+set}" = set; then
6576 enableval="$enable_mshtmlhelp"
6577
6578 if test "$enableval" = yes; then
6579 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6580 else
6581 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6582 fi
6583
6584else
6585
6586 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6587 if test "x$LINE" != x ; then
6588 eval "DEFAULT_$LINE"
6589 else
6590 no_cache=1
6591 fi
6592
6593 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6594
6595fi;
6596
6597 eval "$ac_cv_use_mshtmlhelp"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_MS_HTML_HELP" = yes; then
6603 echo "$as_me:$LINENO: result: yes" >&5
6604echo "${ECHO_T}yes" >&6
6605 else
6606 echo "$as_me:$LINENO: result: no" >&5
6607echo "${ECHO_T}no" >&6
6608 fi
6609
6610
6611 enablestring=
6612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6613echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6614 no_cache=0
6615 # Check whether --enable-html or --disable-html was given.
6616if test "${enable_html+set}" = set; then
6617 enableval="$enable_html"
6618
6619 if test "$enableval" = yes; then
6620 ac_cv_use_html='wxUSE_HTML=yes'
6621 else
6622 ac_cv_use_html='wxUSE_HTML=no'
6623 fi
6624
6625else
6626
6627 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6628 if test "x$LINE" != x ; then
6629 eval "DEFAULT_$LINE"
6630 else
6631 no_cache=1
6632 fi
6633
6634 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6635
6636fi;
6637
6638 eval "$ac_cv_use_html"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_HTML" = yes; then
6644 echo "$as_me:$LINENO: result: yes" >&5
6645echo "${ECHO_T}yes" >&6
6646 else
6647 echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6
6649 fi
6650
6651
6652 enablestring=
6653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6654echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6655 no_cache=0
6656 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6657if test "${enable_htmlhelp+set}" = set; then
6658 enableval="$enable_htmlhelp"
6659
6660 if test "$enableval" = yes; then
6661 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6662 else
6663 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6664 fi
6665
6666else
6667
6668 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6676
6677fi;
6678
6679 eval "$ac_cv_use_htmlhelp"
6680 if test "$no_cache" != 1; then
6681 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6682 fi
6683
6684 if test "$wxUSE_WXHTML_HELP" = yes; then
6685 echo "$as_me:$LINENO: result: yes" >&5
6686echo "${ECHO_T}yes" >&6
6687 else
6688 echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6
6690 fi
6691
6692
9a8f0513
VS
6693 enablestring=
6694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6695echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6696 no_cache=0
6697 # Check whether --enable-xrc or --disable-xrc was given.
6698if test "${enable_xrc+set}" = set; then
6699 enableval="$enable_xrc"
6700
6701 if test "$enableval" = yes; then
6702 ac_cv_use_xrc='wxUSE_XRC=yes'
6703 else
6704 ac_cv_use_xrc='wxUSE_XRC=no'
6705 fi
6706
6707else
6708
6709 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6717
6718fi;
6719
6720 eval "$ac_cv_use_xrc"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_XRC" = yes; then
6726 echo "$as_me:$LINENO: result: yes" >&5
6727echo "${ECHO_T}yes" >&6
6728 else
6729 echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6
6731 fi
6732
6733
a848cd7e
SC
6734 enablestring=
6735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6736echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6737 no_cache=0
6738 # Check whether --enable-constraints or --disable-constraints was given.
6739if test "${enable_constraints+set}" = set; then
6740 enableval="$enable_constraints"
6741
6742 if test "$enableval" = yes; then
6743 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6744 else
6745 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6746 fi
6747
6748else
6749
6750 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6751 if test "x$LINE" != x ; then
6752 eval "DEFAULT_$LINE"
6753 else
6754 no_cache=1
6755 fi
6756
6757 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6758
6759fi;
6760
6761 eval "$ac_cv_use_constraints"
6762 if test "$no_cache" != 1; then
6763 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6764 fi
6765
6766 if test "$wxUSE_CONSTRAINTS" = yes; then
6767 echo "$as_me:$LINENO: result: yes" >&5
6768echo "${ECHO_T}yes" >&6
6769 else
6770 echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6
6772 fi
6773
6774
6775 enablestring=
6776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6777echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6778 no_cache=0
6779 # Check whether --enable-printarch or --disable-printarch was given.
6780if test "${enable_printarch+set}" = set; then
6781 enableval="$enable_printarch"
6782
6783 if test "$enableval" = yes; then
6784 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6785 else
6786 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6787 fi
6788
6789else
6790
6791 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6792 if test "x$LINE" != x ; then
6793 eval "DEFAULT_$LINE"
6794 else
6795 no_cache=1
6796 fi
6797
6798 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6799
6800fi;
6801
6802 eval "$ac_cv_use_printarch"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6808 echo "$as_me:$LINENO: result: yes" >&5
6809echo "${ECHO_T}yes" >&6
6810 else
6811 echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6
6813 fi
6814
6815
6816 enablestring=
6817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6818echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6819 no_cache=0
6820 # Check whether --enable-mdi or --disable-mdi was given.
6821if test "${enable_mdi+set}" = set; then
6822 enableval="$enable_mdi"
6823
6824 if test "$enableval" = yes; then
8a7b1113 6825 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6826 else
8a7b1113 6827 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6828 fi
6829
6830else
6831
8a7b1113 6832 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6833 if test "x$LINE" != x ; then
6834 eval "DEFAULT_$LINE"
6835 else
6836 no_cache=1
6837 fi
6838
8a7b1113 6839 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6840
6841fi;
6842
6843 eval "$ac_cv_use_mdi"
6844 if test "$no_cache" != 1; then
6845 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6846 fi
6847
8a7b1113
VZ
6848 if test "$wxUSE_MDI" = yes; then
6849 echo "$as_me:$LINENO: result: yes" >&5
6850echo "${ECHO_T}yes" >&6
6851 else
6852 echo "$as_me:$LINENO: result: no" >&5
6853echo "${ECHO_T}no" >&6
6854 fi
6855
6856
6857 enablestring=
6858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6859echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6860 no_cache=0
6861 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6862if test "${enable_mdidoc+set}" = set; then
6863 enableval="$enable_mdidoc"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6867 else
6868 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6869 fi
6870
6871else
6872
6873 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6881
6882fi;
6883
6884 eval "$ac_cv_use_mdidoc"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6887 fi
6888
a848cd7e
SC
6889 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6890 echo "$as_me:$LINENO: result: yes" >&5
6891echo "${ECHO_T}yes" >&6
6892 else
6893 echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
6895 fi
6896
6897
6898 enablestring=
6899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6900echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6901 no_cache=0
6902 # Check whether --enable-loggui or --disable-loggui was given.
6903if test "${enable_loggui+set}" = set; then
6904 enableval="$enable_loggui"
6905
6906 if test "$enableval" = yes; then
6907 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6908 else
6909 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6910 fi
6911
6912else
6913
6914 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6922
6923fi;
6924
6925 eval "$ac_cv_use_loggui"
6926 if test "$no_cache" != 1; then
6927 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6928 fi
6929
6930 if test "$wxUSE_LOGGUI" = yes; then
6931 echo "$as_me:$LINENO: result: yes" >&5
6932echo "${ECHO_T}yes" >&6
6933 else
6934 echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6
6936 fi
6937
6938
6939 enablestring=
6940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6941echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6942 no_cache=0
6943 # Check whether --enable-logwin or --disable-logwin was given.
6944if test "${enable_logwin+set}" = set; then
6945 enableval="$enable_logwin"
6946
6947 if test "$enableval" = yes; then
6948 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6949 else
6950 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6951 fi
6952
6953else
6954
6955 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6956 if test "x$LINE" != x ; then
6957 eval "DEFAULT_$LINE"
6958 else
6959 no_cache=1
6960 fi
6961
6962 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6963
6964fi;
6965
6966 eval "$ac_cv_use_logwin"
6967 if test "$no_cache" != 1; then
6968 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6969 fi
6970
6971 if test "$wxUSE_LOGWINDOW" = yes; then
6972 echo "$as_me:$LINENO: result: yes" >&5
6973echo "${ECHO_T}yes" >&6
6974 else
6975 echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6
6977 fi
6978
6979
6980 enablestring=
6981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6982echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6983 no_cache=0
6984 # Check whether --enable-logdialog or --disable-logdialog was given.
6985if test "${enable_logdialog+set}" = set; then
6986 enableval="$enable_logdialog"
6987
6988 if test "$enableval" = yes; then
6989 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6990 else
6991 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6992 fi
6993
6994else
6995
6996 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6997 if test "x$LINE" != x ; then
6998 eval "DEFAULT_$LINE"
6999 else
7000 no_cache=1
7001 fi
7002
7003 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7004
7005fi;
7006
7007 eval "$ac_cv_use_logdialog"
7008 if test "$no_cache" != 1; then
7009 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7010 fi
7011
7012 if test "$wxUSE_LOGDIALOG" = yes; then
7013 echo "$as_me:$LINENO: result: yes" >&5
7014echo "${ECHO_T}yes" >&6
7015 else
7016 echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6
7018 fi
7019
7020
646b6ec1
VS
7021 enablestring=
7022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7023echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7024 no_cache=0
7025 # Check whether --enable-webkit or --disable-webkit was given.
7026if test "${enable_webkit+set}" = set; then
7027 enableval="$enable_webkit"
7028
7029 if test "$enableval" = yes; then
7030 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7031 else
7032 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7033 fi
7034
7035else
7036
7037 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7038 if test "x$LINE" != x ; then
7039 eval "DEFAULT_$LINE"
7040 else
7041 no_cache=1
7042 fi
7043
7044 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7045
7046fi;
7047
7048 eval "$ac_cv_use_webkit"
7049 if test "$no_cache" != 1; then
7050 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7051 fi
7052
7053 if test "$wxUSE_WEBKIT" = yes; then
7054 echo "$as_me:$LINENO: result: yes" >&5
7055echo "${ECHO_T}yes" >&6
7056 else
7057 echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6
7059 fi
7060
7061
91dea314
MW
7062 enablestring=
7063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7064echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7065 no_cache=0
7066 # Check whether --enable-html or --disable-html was given.
7067if test "${enable_html+set}" = set; then
7068 enableval="$enable_html"
7069
7070 if test "$enableval" = yes; then
7071 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7072 else
7073 ac_cv_use_html='wxUSE_RICHTEXT=no'
7074 fi
7075
7076else
7077
7078 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7079 if test "x$LINE" != x ; then
7080 eval "DEFAULT_$LINE"
7081 else
7082 no_cache=1
7083 fi
7084
7085 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7086
7087fi;
7088
7089 eval "$ac_cv_use_html"
7090 if test "$no_cache" != 1; then
7091 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7092 fi
7093
7094 if test "$wxUSE_RICHTEXT" = yes; then
7095 echo "$as_me:$LINENO: result: yes" >&5
7096echo "${ECHO_T}yes" >&6
7097 else
7098 echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6
7100 fi
7101
7102
a848cd7e
SC
7103
7104 enablestring=
7105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7106echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7107 no_cache=0
7108 # Check whether --enable-postscript or --disable-postscript was given.
7109if test "${enable_postscript+set}" = set; then
7110 enableval="$enable_postscript"
7111
7112 if test "$enableval" = yes; then
7113 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7114 else
7115 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7116 fi
7117
7118else
7119
7120 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7121 if test "x$LINE" != x ; then
7122 eval "DEFAULT_$LINE"
7123 else
7124 no_cache=1
7125 fi
7126
7127 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7128
7129fi;
7130
7131 eval "$ac_cv_use_postscript"
7132 if test "$no_cache" != 1; then
7133 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7134 fi
7135
7136 if test "$wxUSE_POSTSCRIPT" = yes; then
7137 echo "$as_me:$LINENO: result: yes" >&5
7138echo "${ECHO_T}yes" >&6
7139 else
7140 echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6
7142 fi
7143
7144
7145
7146
7147
7148 enablestring=
7149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7150echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7151 no_cache=0
7152 # Check whether --enable-prologio or --disable-prologio was given.
7153if test "${enable_prologio+set}" = set; then
7154 enableval="$enable_prologio"
7155
7156 if test "$enableval" = yes; then
7157 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7158 else
7159 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7160 fi
7161
7162else
7163
7164 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7165 if test "x$LINE" != x ; then
7166 eval "DEFAULT_$LINE"
7167 else
7168 no_cache=1
7169 fi
7170
7171 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7172
7173fi;
7174
7175 eval "$ac_cv_use_prologio"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_PROLOGIO" = yes; then
7181 echo "$as_me:$LINENO: result: yes" >&5
7182echo "${ECHO_T}yes" >&6
7183 else
7184 echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6
7186 fi
7187
7188
7189 enablestring=
7190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7191echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7192 no_cache=0
7193 # Check whether --enable-resources or --disable-resources was given.
7194if test "${enable_resources+set}" = set; then
7195 enableval="$enable_resources"
7196
7197 if test "$enableval" = yes; then
7198 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7199 else
7200 ac_cv_use_resources='wxUSE_RESOURCES=no'
7201 fi
7202
7203else
7204
7205 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7206 if test "x$LINE" != x ; then
7207 eval "DEFAULT_$LINE"
7208 else
7209 no_cache=1
7210 fi
7211
7212 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7213
7214fi;
7215
7216 eval "$ac_cv_use_resources"
7217 if test "$no_cache" != 1; then
7218 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7219 fi
7220
7221 if test "$wxUSE_RESOURCES" = yes; then
7222 echo "$as_me:$LINENO: result: yes" >&5
7223echo "${ECHO_T}yes" >&6
7224 else
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227 fi
7228
7229
7230
7231
7232 enablestring=
7233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7234echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7235 no_cache=0
7236 # Check whether --enable-clipboard or --disable-clipboard was given.
7237if test "${enable_clipboard+set}" = set; then
7238 enableval="$enable_clipboard"
7239
7240 if test "$enableval" = yes; then
7241 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7242 else
7243 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7244 fi
7245
7246else
7247
7248 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7256
7257fi;
7258
7259 eval "$ac_cv_use_clipboard"
7260 if test "$no_cache" != 1; then
7261 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7262 fi
7263
7264 if test "$wxUSE_CLIPBOARD" = yes; then
7265 echo "$as_me:$LINENO: result: yes" >&5
7266echo "${ECHO_T}yes" >&6
7267 else
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
7270 fi
7271
7272
7273 enablestring=
7274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7275echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7276 no_cache=0
7277 # Check whether --enable-dnd or --disable-dnd was given.
7278if test "${enable_dnd+set}" = set; then
7279 enableval="$enable_dnd"
7280
7281 if test "$enableval" = yes; then
7282 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7283 else
7284 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7285 fi
7286
7287else
7288
7289 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7290 if test "x$LINE" != x ; then
7291 eval "DEFAULT_$LINE"
7292 else
7293 no_cache=1
7294 fi
7295
7296 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7297
7298fi;
7299
7300 eval "$ac_cv_use_dnd"
7301 if test "$no_cache" != 1; then
7302 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7303 fi
7304
7305 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7306 echo "$as_me:$LINENO: result: yes" >&5
7307echo "${ECHO_T}yes" >&6
7308 else
7309 echo "$as_me:$LINENO: result: no" >&5
7310echo "${ECHO_T}no" >&6
7311 fi
7312
7313
7314 enablestring=
7315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7316echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7317 no_cache=0
7318 # Check whether --enable-metafile or --disable-metafile was given.
7319if test "${enable_metafile+set}" = set; then
7320 enableval="$enable_metafile"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7324 else
7325 ac_cv_use_metafile='wxUSE_METAFILE=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7338
7339fi;
7340
7341 eval "$ac_cv_use_metafile"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_METAFILE" = yes; then
7347 echo "$as_me:$LINENO: result: yes" >&5
7348echo "${ECHO_T}yes" >&6
7349 else
7350 echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
7352 fi
7353
7354
7355
7356
7357
7358 enablestring=
7359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7360echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7361 no_cache=0
7362 # Check whether --enable-controls or --disable-controls was given.
7363if test "${enable_controls+set}" = set; then
7364 enableval="$enable_controls"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7368 else
7369 ac_cv_use_controls='wxUSE_CONTROLS=no'
7370 fi
7371
7372else
7373
7374 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7382
7383fi;
7384
7385 eval "$ac_cv_use_controls"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_CONTROLS" = yes; then
7391 echo "$as_me:$LINENO: result: yes" >&5
7392echo "${ECHO_T}yes" >&6
7393 else
7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
7396 fi
7397
7398
7399if test "$wxUSE_CONTROLS" = "yes"; then
7400 DEFAULT_wxUSE_ACCEL=yes
7401 DEFAULT_wxUSE_BMPBUTTON=yes
7402 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7403 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7404 DEFAULT_wxUSE_CARET=yes
7405 DEFAULT_wxUSE_COMBOBOX=yes
7406 DEFAULT_wxUSE_CHECKBOX=yes
7407 DEFAULT_wxUSE_CHECKLISTBOX=yes
7408 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7409 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7410 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7411 DEFAULT_wxUSE_GAUGE=yes
7412 DEFAULT_wxUSE_GRID=yes
20e34ecc 7413 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7414 DEFAULT_wxUSE_IMAGLIST=yes
7415 DEFAULT_wxUSE_LISTBOOK=yes
7416 DEFAULT_wxUSE_LISTBOX=yes
7417 DEFAULT_wxUSE_LISTCTRL=yes
7418 DEFAULT_wxUSE_NOTEBOOK=yes
7419 DEFAULT_wxUSE_RADIOBOX=yes
7420 DEFAULT_wxUSE_RADIOBTN=yes
7421 DEFAULT_wxUSE_SASH=yes
7422 DEFAULT_wxUSE_SCROLLBAR=yes
7423 DEFAULT_wxUSE_SLIDER=yes
7424 DEFAULT_wxUSE_SPINBTN=yes
7425 DEFAULT_wxUSE_SPINCTRL=yes
7426 DEFAULT_wxUSE_SPLITTER=yes
7427 DEFAULT_wxUSE_STATBMP=yes
7428 DEFAULT_wxUSE_STATBOX=yes
7429 DEFAULT_wxUSE_STATLINE=yes
7430 DEFAULT_wxUSE_STATUSBAR=yes
7431 DEFAULT_wxUSE_TAB_DIALOG=yes
7432 DEFAULT_wxUSE_TOGGLEBTN=yes
7433 DEFAULT_wxUSE_TOOLBAR=yes
7434 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7435 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7436 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7437 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7438 DEFAULT_wxUSE_TREECTRL=yes
7439 DEFAULT_wxUSE_POPUPWIN=yes
7440 DEFAULT_wxUSE_TIPWINDOW=yes
7441elif test "$wxUSE_CONTROLS" = "no"; then
7442 DEFAULT_wxUSE_ACCEL=no
7443 DEFAULT_wxUSE_BMPBUTTON=no
7444 DEFAULT_wxUSE_BUTTON=no
7445 DEFAULT_wxUSE_CALCTRL=no
7446 DEFAULT_wxUSE_CARET=no
7447 DEFAULT_wxUSE_COMBOBOX=no
7448 DEFAULT_wxUSE_CHECKBOX=no
7449 DEFAULT_wxUSE_CHECKLISTBOX=no
7450 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7451 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7452 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7453 DEFAULT_wxUSE_GAUGE=no
7454 DEFAULT_wxUSE_GRID=no
20e34ecc 7455 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7456 DEFAULT_wxUSE_IMAGLIST=no
7457 DEFAULT_wxUSE_LISTBOOK=no
7458 DEFAULT_wxUSE_LISTBOX=no
7459 DEFAULT_wxUSE_LISTCTRL=no
7460 DEFAULT_wxUSE_NOTEBOOK=no
7461 DEFAULT_wxUSE_RADIOBOX=no
7462 DEFAULT_wxUSE_RADIOBTN=no
7463 DEFAULT_wxUSE_SASH=no
7464 DEFAULT_wxUSE_SCROLLBAR=no
7465 DEFAULT_wxUSE_SLIDER=no
7466 DEFAULT_wxUSE_SPINBTN=no
7467 DEFAULT_wxUSE_SPINCTRL=no
7468 DEFAULT_wxUSE_SPLITTER=no
7469 DEFAULT_wxUSE_STATBMP=no
7470 DEFAULT_wxUSE_STATBOX=no
7471 DEFAULT_wxUSE_STATLINE=no
7472 DEFAULT_wxUSE_STATUSBAR=no
7473 DEFAULT_wxUSE_TAB_DIALOG=no
7474 DEFAULT_wxUSE_TOGGLEBTN=no
7475 DEFAULT_wxUSE_TOOLBAR=no
7476 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7477 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7478 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7479 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7480 DEFAULT_wxUSE_TREECTRL=no
7481 DEFAULT_wxUSE_POPUPWIN=no
7482 DEFAULT_wxUSE_TIPWINDOW=no
7483fi
7484
a848cd7e
SC
7485
7486 enablestring=
7487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7488echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7489 no_cache=0
7490 # Check whether --enable-accel or --disable-accel was given.
7491if test "${enable_accel+set}" = set; then
7492 enableval="$enable_accel"
7493
7494 if test "$enableval" = yes; then
7495 ac_cv_use_accel='wxUSE_ACCEL=yes'
7496 else
7497 ac_cv_use_accel='wxUSE_ACCEL=no'
7498 fi
7499
7500else
7501
7502 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7503 if test "x$LINE" != x ; then
7504 eval "DEFAULT_$LINE"
7505 else
7506 no_cache=1
7507 fi
7508
7509 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7510
7511fi;
7512
7513 eval "$ac_cv_use_accel"
7514 if test "$no_cache" != 1; then
7515 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7516 fi
7517
7518 if test "$wxUSE_ACCEL" = yes; then
7519 echo "$as_me:$LINENO: result: yes" >&5
7520echo "${ECHO_T}yes" >&6
7521 else
7522 echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6
7524 fi
7525
7526
7527 enablestring=
7528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7529echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7530 no_cache=0
7531 # Check whether --enable-button or --disable-button was given.
7532if test "${enable_button+set}" = set; then
7533 enableval="$enable_button"
7534
7535 if test "$enableval" = yes; then
7536 ac_cv_use_button='wxUSE_BUTTON=yes'
7537 else
7538 ac_cv_use_button='wxUSE_BUTTON=no'
7539 fi
7540
7541else
7542
7543 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7544 if test "x$LINE" != x ; then
7545 eval "DEFAULT_$LINE"
7546 else
7547 no_cache=1
7548 fi
7549
7550 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7551
7552fi;
7553
7554 eval "$ac_cv_use_button"
7555 if test "$no_cache" != 1; then
7556 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7557 fi
7558
7559 if test "$wxUSE_BUTTON" = yes; then
7560 echo "$as_me:$LINENO: result: yes" >&5
7561echo "${ECHO_T}yes" >&6
7562 else
7563 echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6
7565 fi
7566
7567
7568 enablestring=
7569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7570echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7571 no_cache=0
7572 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7573if test "${enable_bmpbutton+set}" = set; then
7574 enableval="$enable_bmpbutton"
7575
7576 if test "$enableval" = yes; then
7577 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7578 else
7579 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7580 fi
7581
7582else
7583
7584 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7585 if test "x$LINE" != x ; then
7586 eval "DEFAULT_$LINE"
7587 else
7588 no_cache=1
7589 fi
7590
7591 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7592
7593fi;
7594
7595 eval "$ac_cv_use_bmpbutton"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_BMPBUTTON" = yes; then
7601 echo "$as_me:$LINENO: result: yes" >&5
7602echo "${ECHO_T}yes" >&6
7603 else
7604 echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606 fi
7607
7608
7609 enablestring=
7610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7611echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7612 no_cache=0
7613 # Check whether --enable-calendar or --disable-calendar was given.
7614if test "${enable_calendar+set}" = set; then
7615 enableval="$enable_calendar"
7616
7617 if test "$enableval" = yes; then
7618 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7619 else
7620 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7621 fi
7622
7623else
7624
7625 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7626 if test "x$LINE" != x ; then
7627 eval "DEFAULT_$LINE"
7628 else
7629 no_cache=1
7630 fi
7631
7632 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7633
7634fi;
7635
7636 eval "$ac_cv_use_calendar"
7637 if test "$no_cache" != 1; then
7638 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7639 fi
7640
7641 if test "$wxUSE_CALCTRL" = yes; then
7642 echo "$as_me:$LINENO: result: yes" >&5
7643echo "${ECHO_T}yes" >&6
7644 else
7645 echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6
7647 fi
7648
7649
7650 enablestring=
7651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7652echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7653 no_cache=0
7654 # Check whether --enable-caret or --disable-caret was given.
7655if test "${enable_caret+set}" = set; then
7656 enableval="$enable_caret"
7657
7658 if test "$enableval" = yes; then
7659 ac_cv_use_caret='wxUSE_CARET=yes'
7660 else
7661 ac_cv_use_caret='wxUSE_CARET=no'
7662 fi
7663
7664else
7665
7666 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7674
7675fi;
7676
7677 eval "$ac_cv_use_caret"
7678 if test "$no_cache" != 1; then
7679 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7680 fi
7681
7682 if test "$wxUSE_CARET" = yes; then
7683 echo "$as_me:$LINENO: result: yes" >&5
7684echo "${ECHO_T}yes" >&6
7685 else
7686 echo "$as_me:$LINENO: result: no" >&5
7687echo "${ECHO_T}no" >&6
7688 fi
7689
7690
7691 enablestring=
7692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7693echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7694 no_cache=0
7695 # Check whether --enable-checkbox or --disable-checkbox was given.
7696if test "${enable_checkbox+set}" = set; then
7697 enableval="$enable_checkbox"
7698
7699 if test "$enableval" = yes; then
7700 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7701 else
7702 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7703 fi
7704
7705else
7706
7707 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7708 if test "x$LINE" != x ; then
7709 eval "DEFAULT_$LINE"
7710 else
7711 no_cache=1
7712 fi
7713
7714 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7715
7716fi;
7717
7718 eval "$ac_cv_use_checkbox"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_CHECKBOX" = yes; then
7724 echo "$as_me:$LINENO: result: yes" >&5
7725echo "${ECHO_T}yes" >&6
7726 else
7727 echo "$as_me:$LINENO: result: no" >&5
7728echo "${ECHO_T}no" >&6
7729 fi
7730
7731
7732 enablestring=
7733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7734echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7735 no_cache=0
7736 # Check whether --enable-checklst or --disable-checklst was given.
7737if test "${enable_checklst+set}" = set; then
7738 enableval="$enable_checklst"
7739
7740 if test "$enableval" = yes; then
7741 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7742 else
7743 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7744 fi
7745
7746else
7747
7748 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7749 if test "x$LINE" != x ; then
7750 eval "DEFAULT_$LINE"
7751 else
7752 no_cache=1
7753 fi
7754
7755 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7756
7757fi;
7758
7759 eval "$ac_cv_use_checklst"
7760 if test "$no_cache" != 1; then
7761 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7762 fi
7763
7764 if test "$wxUSE_CHECKLST" = yes; then
7765 echo "$as_me:$LINENO: result: yes" >&5
7766echo "${ECHO_T}yes" >&6
7767 else
7768 echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770 fi
7771
7772
7773 enablestring=
7774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7775echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7776 no_cache=0
7777 # Check whether --enable-choice or --disable-choice was given.
7778if test "${enable_choice+set}" = set; then
7779 enableval="$enable_choice"
7780
7781 if test "$enableval" = yes; then
7782 ac_cv_use_choice='wxUSE_CHOICE=yes'
7783 else
7784 ac_cv_use_choice='wxUSE_CHOICE=no'
7785 fi
7786
7787else
7788
7789 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7790 if test "x$LINE" != x ; then
7791 eval "DEFAULT_$LINE"
7792 else
7793 no_cache=1
7794 fi
7795
7796 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7797
7798fi;
7799
7800 eval "$ac_cv_use_choice"
7801 if test "$no_cache" != 1; then
7802 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7803 fi
7804
7805 if test "$wxUSE_CHOICE" = yes; then
7806 echo "$as_me:$LINENO: result: yes" >&5
7807echo "${ECHO_T}yes" >&6
7808 else
7809 echo "$as_me:$LINENO: result: no" >&5
7810echo "${ECHO_T}no" >&6
7811 fi
7812
7813
92bbdbcd
WS
7814 enablestring=
7815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7816echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7817 no_cache=0
7818 # Check whether --enable-choicebook or --disable-choicebook was given.
7819if test "${enable_choicebook+set}" = set; then
7820 enableval="$enable_choicebook"
7821
7822 if test "$enableval" = yes; then
7823 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7824 else
7825 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7826 fi
7827
7828else
7829
7830 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7831 if test "x$LINE" != x ; then
7832 eval "DEFAULT_$LINE"
7833 else
7834 no_cache=1
7835 fi
7836
7837 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7838
7839fi;
7840
7841 eval "$ac_cv_use_choicebook"
7842 if test "$no_cache" != 1; then
7843 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7844 fi
7845
7846 if test "$wxUSE_CHOICEBOOK" = yes; then
7847 echo "$as_me:$LINENO: result: yes" >&5
7848echo "${ECHO_T}yes" >&6
7849 else
7850 echo "$as_me:$LINENO: result: no" >&5
7851echo "${ECHO_T}no" >&6
7852 fi
7853
7854
a848cd7e
SC
7855 enablestring=
7856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7857echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7858 no_cache=0
7859 # Check whether --enable-combobox or --disable-combobox was given.
7860if test "${enable_combobox+set}" = set; then
7861 enableval="$enable_combobox"
7862
7863 if test "$enableval" = yes; then
7864 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7865 else
7866 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7867 fi
7868
7869else
7870
7871 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7872 if test "x$LINE" != x ; then
7873 eval "DEFAULT_$LINE"
7874 else
7875 no_cache=1
7876 fi
7877
7878 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7879
7880fi;
7881
7882 eval "$ac_cv_use_combobox"
7883 if test "$no_cache" != 1; then
7884 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7885 fi
7886
7887 if test "$wxUSE_COMBOBOX" = yes; then
7888 echo "$as_me:$LINENO: result: yes" >&5
7889echo "${ECHO_T}yes" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6
7893 fi
7894
7895
da98e9be
VZ
7896 enablestring=
7897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7898echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7899 no_cache=0
7900 # Check whether --enable-datepick or --disable-datepick was given.
7901if test "${enable_datepick+set}" = set; then
7902 enableval="$enable_datepick"
7903
7904 if test "$enableval" = yes; then
7905 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7906 else
7907 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7908 fi
7909
7910else
7911
7912 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7913 if test "x$LINE" != x ; then
7914 eval "DEFAULT_$LINE"
7915 else
7916 no_cache=1
7917 fi
7918
7919 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7920
7921fi;
7922
7923 eval "$ac_cv_use_datepick"
7924 if test "$no_cache" != 1; then
7925 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7926 fi
7927
7928 if test "$wxUSE_DATEPICKCTRL" = yes; then
7929 echo "$as_me:$LINENO: result: yes" >&5
7930echo "${ECHO_T}yes" >&6
7931 else
7932 echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6
7934 fi
7935
7936
a848cd7e
SC
7937 enablestring=
7938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7939echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7940 no_cache=0
7941 # Check whether --enable-display or --disable-display was given.
7942if test "${enable_display+set}" = set; then
7943 enableval="$enable_display"
7944
7945 if test "$enableval" = yes; then
7946 ac_cv_use_display='wxUSE_DISPLAY=yes'
7947 else
7948 ac_cv_use_display='wxUSE_DISPLAY=no'
7949 fi
7950
7951else
7952
7953 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7954 if test "x$LINE" != x ; then
7955 eval "DEFAULT_$LINE"
7956 else
7957 no_cache=1
7958 fi
7959
7960 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7961
7962fi;
7963
7964 eval "$ac_cv_use_display"
7965 if test "$no_cache" != 1; then
7966 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7967 fi
7968
7969 if test "$wxUSE_DISPLAY" = yes; then
7970 echo "$as_me:$LINENO: result: yes" >&5
7971echo "${ECHO_T}yes" >&6
7972 else
7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
7975 fi
7976
7977
7978 enablestring=
7979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7980echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7981 no_cache=0
7982 # Check whether --enable-gauge or --disable-gauge was given.
7983if test "${enable_gauge+set}" = set; then
7984 enableval="$enable_gauge"
7985
7986 if test "$enableval" = yes; then
7987 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7988 else
7989 ac_cv_use_gauge='wxUSE_GAUGE=no'
7990 fi
7991
7992else
7993
7994 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7995 if test "x$LINE" != x ; then
7996 eval "DEFAULT_$LINE"
7997 else
7998 no_cache=1
7999 fi
8000
8001 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8002
8003fi;
8004
8005 eval "$ac_cv_use_gauge"
8006 if test "$no_cache" != 1; then
8007 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8008 fi
8009
8010 if test "$wxUSE_GAUGE" = yes; then
8011 echo "$as_me:$LINENO: result: yes" >&5
8012echo "${ECHO_T}yes" >&6
8013 else
8014 echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6
8016 fi
8017
8018
8019 enablestring=
8020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8021echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8022 no_cache=0
8023 # Check whether --enable-grid or --disable-grid was given.
8024if test "${enable_grid+set}" = set; then
8025 enableval="$enable_grid"
8026
8027 if test "$enableval" = yes; then
8028 ac_cv_use_grid='wxUSE_GRID=yes'
8029 else
8030 ac_cv_use_grid='wxUSE_GRID=no'
8031 fi
8032
8033else
8034
8035 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8036 if test "x$LINE" != x ; then
8037 eval "DEFAULT_$LINE"
8038 else
8039 no_cache=1
8040 fi
8041
8042 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8043
8044fi;
8045
8046 eval "$ac_cv_use_grid"
8047 if test "$no_cache" != 1; then
8048 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8049 fi
8050
8051 if test "$wxUSE_GRID" = yes; then
8052 echo "$as_me:$LINENO: result: yes" >&5
8053echo "${ECHO_T}yes" >&6
8054 else
8055 echo "$as_me:$LINENO: result: no" >&5
8056echo "${ECHO_T}no" >&6
8057 fi
8058
8059
20e34ecc
RR
8060 enablestring=
8061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8062echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8063 no_cache=0
8064 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8065if test "${enable_dataviewctrl+set}" = set; then
8066 enableval="$enable_dataviewctrl"
8067
8068 if test "$enableval" = yes; then
8069 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8070 else
8071 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8072 fi
8073
8074else
8075
8076 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8077 if test "x$LINE" != x ; then
8078 eval "DEFAULT_$LINE"
8079 else
8080 no_cache=1
8081 fi
8082
8083 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8084
8085fi;
8086
8087 eval "$ac_cv_use_dataviewctrl"
8088 if test "$no_cache" != 1; then
8089 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8090 fi
8091
8092 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8093 echo "$as_me:$LINENO: result: yes" >&5
8094echo "${ECHO_T}yes" >&6
8095 else
8096 echo "$as_me:$LINENO: result: no" >&5
8097echo "${ECHO_T}no" >&6
8098 fi
8099
8100
a848cd7e
SC
8101 enablestring=
8102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8103echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8104 no_cache=0
8105 # Check whether --enable-imaglist or --disable-imaglist was given.
8106if test "${enable_imaglist+set}" = set; then
8107 enableval="$enable_imaglist"
8108
8109 if test "$enableval" = yes; then
8110 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8111 else
8112 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8113 fi
8114
8115else
8116
8117 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8118 if test "x$LINE" != x ; then
8119 eval "DEFAULT_$LINE"
8120 else
8121 no_cache=1
8122 fi
8123
8124 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8125
8126fi;
8127
8128 eval "$ac_cv_use_imaglist"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_IMAGLIST" = yes; then
8134 echo "$as_me:$LINENO: result: yes" >&5
8135echo "${ECHO_T}yes" >&6
8136 else
8137 echo "$as_me:$LINENO: result: no" >&5
8138echo "${ECHO_T}no" >&6
8139 fi
8140
8141
8142 enablestring=
8143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8144echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8145 no_cache=0
8146 # Check whether --enable-listbook or --disable-listbook was given.
8147if test "${enable_listbook+set}" = set; then
8148 enableval="$enable_listbook"
8149
8150 if test "$enableval" = yes; then
8151 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8152 else
8153 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8154 fi
8155
8156else
8157
8158 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8159 if test "x$LINE" != x ; then
8160 eval "DEFAULT_$LINE"
8161 else
8162 no_cache=1
8163 fi
8164
8165 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8166
8167fi;
8168
8169 eval "$ac_cv_use_listbook"
8170 if test "$no_cache" != 1; then
8171 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8172 fi
8173
8174 if test "$wxUSE_LISTBOOK" = yes; then
8175 echo "$as_me:$LINENO: result: yes" >&5
8176echo "${ECHO_T}yes" >&6
8177 else
8178 echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
8180 fi
8181
8182
8183 enablestring=
8184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8185echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8186 no_cache=0
8187 # Check whether --enable-listbox or --disable-listbox was given.
8188if test "${enable_listbox+set}" = set; then
8189 enableval="$enable_listbox"
8190
8191 if test "$enableval" = yes; then
8192 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8193 else
8194 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8195 fi
8196
8197else
8198
8199 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8200 if test "x$LINE" != x ; then
8201 eval "DEFAULT_$LINE"
8202 else
8203 no_cache=1
8204 fi
8205
8206 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8207
8208fi;
8209
8210 eval "$ac_cv_use_listbox"
8211 if test "$no_cache" != 1; then
8212 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8213 fi
8214
8215 if test "$wxUSE_LISTBOX" = yes; then
8216 echo "$as_me:$LINENO: result: yes" >&5
8217echo "${ECHO_T}yes" >&6
8218 else
8219 echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6
8221 fi
8222
8223
8224 enablestring=
8225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8226echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8227 no_cache=0
8228 # Check whether --enable-listctrl or --disable-listctrl was given.
8229if test "${enable_listctrl+set}" = set; then
8230 enableval="$enable_listctrl"
8231
8232 if test "$enableval" = yes; then
8233 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8234 else
8235 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8236 fi
8237
8238else
8239
8240 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8241 if test "x$LINE" != x ; then
8242 eval "DEFAULT_$LINE"
8243 else
8244 no_cache=1
8245 fi
8246
8247 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8248
8249fi;
8250
8251 eval "$ac_cv_use_listctrl"
8252 if test "$no_cache" != 1; then
8253 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8254 fi
8255
8256 if test "$wxUSE_LISTCTRL" = yes; then
8257 echo "$as_me:$LINENO: result: yes" >&5
8258echo "${ECHO_T}yes" >&6
8259 else
8260 echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6
8262 fi
8263
8264
8265 enablestring=
8266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8267echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8268 no_cache=0
8269 # Check whether --enable-notebook or --disable-notebook was given.
8270if test "${enable_notebook+set}" = set; then
8271 enableval="$enable_notebook"
8272
8273 if test "$enableval" = yes; then
8274 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8275 else
8276 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8277 fi
8278
8279else
8280
8281 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8282 if test "x$LINE" != x ; then
8283 eval "DEFAULT_$LINE"
8284 else
8285 no_cache=1
8286 fi
8287
8288 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8289
8290fi;
8291
8292 eval "$ac_cv_use_notebook"
8293 if test "$no_cache" != 1; then
8294 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8295 fi
8296
8297 if test "$wxUSE_NOTEBOOK" = yes; then
8298 echo "$as_me:$LINENO: result: yes" >&5
8299echo "${ECHO_T}yes" >&6
8300 else
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
8303 fi
8304
8305
8306 enablestring=
8307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8308echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8309 no_cache=0
8310 # Check whether --enable-radiobox or --disable-radiobox was given.
8311if test "${enable_radiobox+set}" = set; then
8312 enableval="$enable_radiobox"
8313
8314 if test "$enableval" = yes; then
8315 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8316 else
8317 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8318 fi
8319
8320else
8321
8322 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8323 if test "x$LINE" != x ; then
8324 eval "DEFAULT_$LINE"
8325 else
8326 no_cache=1
8327 fi
8328
8329 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8330
8331fi;
8332
8333 eval "$ac_cv_use_radiobox"
8334 if test "$no_cache" != 1; then
8335 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8336 fi
8337
8338 if test "$wxUSE_RADIOBOX" = yes; then
8339 echo "$as_me:$LINENO: result: yes" >&5
8340echo "${ECHO_T}yes" >&6
8341 else
8342 echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6
8344 fi
8345
8346
8347 enablestring=
8348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8349echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8350 no_cache=0
8351 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8352if test "${enable_radiobtn+set}" = set; then
8353 enableval="$enable_radiobtn"
8354
8355 if test "$enableval" = yes; then
8356 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8357 else
8358 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8359 fi
8360
8361else
8362
8363 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
8370 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8371
8372fi;
8373
8374 eval "$ac_cv_use_radiobtn"
8375 if test "$no_cache" != 1; then
8376 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8377 fi
8378
8379 if test "$wxUSE_RADIOBTN" = yes; then
8380 echo "$as_me:$LINENO: result: yes" >&5
8381echo "${ECHO_T}yes" >&6
8382 else
8383 echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6
8385 fi
8386
8387
8388 enablestring=
8389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8390echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8391 no_cache=0
8392 # Check whether --enable-sash or --disable-sash was given.
8393if test "${enable_sash+set}" = set; then
8394 enableval="$enable_sash"
8395
8396 if test "$enableval" = yes; then
8397 ac_cv_use_sash='wxUSE_SASH=yes'
8398 else
8399 ac_cv_use_sash='wxUSE_SASH=no'
8400 fi
8401
8402else
8403
8404 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8405 if test "x$LINE" != x ; then
8406 eval "DEFAULT_$LINE"
8407 else
8408 no_cache=1
8409 fi
8410
8411 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8412
8413fi;
8414
8415 eval "$ac_cv_use_sash"
8416 if test "$no_cache" != 1; then
8417 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8418 fi
8419
8420 if test "$wxUSE_SASH" = yes; then
8421 echo "$as_me:$LINENO: result: yes" >&5
8422echo "${ECHO_T}yes" >&6
8423 else
8424 echo "$as_me:$LINENO: result: no" >&5
8425echo "${ECHO_T}no" >&6
8426 fi
8427
8428
8429 enablestring=
8430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8431echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8432 no_cache=0
8433 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8434if test "${enable_scrollbar+set}" = set; then
8435 enableval="$enable_scrollbar"
8436
8437 if test "$enableval" = yes; then
8438 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8439 else
8440 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8441 fi
8442
8443else
8444
8445 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
8452 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8453
8454fi;
8455
8456 eval "$ac_cv_use_scrollbar"
8457 if test "$no_cache" != 1; then
8458 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8459 fi
8460
8461 if test "$wxUSE_SCROLLBAR" = yes; then
8462 echo "$as_me:$LINENO: result: yes" >&5
8463echo "${ECHO_T}yes" >&6
8464 else
8465 echo "$as_me:$LINENO: result: no" >&5
8466echo "${ECHO_T}no" >&6
8467 fi
8468
8469
8470 enablestring=
8471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8472echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8473 no_cache=0
8474 # Check whether --enable-slider or --disable-slider was given.
8475if test "${enable_slider+set}" = set; then
8476 enableval="$enable_slider"
8477
8478 if test "$enableval" = yes; then
8479 ac_cv_use_slider='wxUSE_SLIDER=yes'
8480 else
8481 ac_cv_use_slider='wxUSE_SLIDER=no'
8482 fi
8483
8484else
8485
8486 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8487 if test "x$LINE" != x ; then
8488 eval "DEFAULT_$LINE"
8489 else
8490 no_cache=1
8491 fi
8492
8493 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8494
8495fi;
8496
8497 eval "$ac_cv_use_slider"
8498 if test "$no_cache" != 1; then
8499 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8500 fi
8501
8502 if test "$wxUSE_SLIDER" = yes; then
8503 echo "$as_me:$LINENO: result: yes" >&5
8504echo "${ECHO_T}yes" >&6
8505 else
8506 echo "$as_me:$LINENO: result: no" >&5
8507echo "${ECHO_T}no" >&6
8508 fi
8509
8510
8511 enablestring=
8512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8513echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8514 no_cache=0
8515 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8516if test "${enable_spinbtn+set}" = set; then
8517 enableval="$enable_spinbtn"
8518
8519 if test "$enableval" = yes; then
8520 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8521 else
8522 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8523 fi
8524
8525else
8526
8527 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8528 if test "x$LINE" != x ; then
8529 eval "DEFAULT_$LINE"
8530 else
8531 no_cache=1
8532 fi
8533
8534 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8535
8536fi;
8537
8538 eval "$ac_cv_use_spinbtn"
8539 if test "$no_cache" != 1; then
8540 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8541 fi
8542
8543 if test "$wxUSE_SPINBTN" = yes; then
8544 echo "$as_me:$LINENO: result: yes" >&5
8545echo "${ECHO_T}yes" >&6
8546 else
8547 echo "$as_me:$LINENO: result: no" >&5
8548echo "${ECHO_T}no" >&6
8549 fi
8550
8551
8552 enablestring=
8553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8554echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8555 no_cache=0
8556 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8557if test "${enable_spinctrl+set}" = set; then
8558 enableval="$enable_spinctrl"
8559
8560 if test "$enableval" = yes; then
8561 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8562 else
8563 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8564 fi
8565
8566else
8567
8568 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8569 if test "x$LINE" != x ; then
8570 eval "DEFAULT_$LINE"
8571 else
8572 no_cache=1
8573 fi
8574
8575 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8576
8577fi;
8578
8579 eval "$ac_cv_use_spinctrl"
8580 if test "$no_cache" != 1; then
8581 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8582 fi
8583
8584 if test "$wxUSE_SPINCTRL" = yes; then
8585 echo "$as_me:$LINENO: result: yes" >&5
8586echo "${ECHO_T}yes" >&6
8587 else
8588 echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6
8590 fi
8591
8592
8593 enablestring=
8594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8595echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8596 no_cache=0
8597 # Check whether --enable-splitter or --disable-splitter was given.
8598if test "${enable_splitter+set}" = set; then
8599 enableval="$enable_splitter"
8600
8601 if test "$enableval" = yes; then
8602 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8603 else
8604 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8605 fi
8606
8607else
8608
8609 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8610 if test "x$LINE" != x ; then
8611 eval "DEFAULT_$LINE"
8612 else
8613 no_cache=1
8614 fi
8615
8616 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8617
8618fi;
8619
8620 eval "$ac_cv_use_splitter"
8621 if test "$no_cache" != 1; then
8622 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8623 fi
8624
8625 if test "$wxUSE_SPLITTER" = yes; then
8626 echo "$as_me:$LINENO: result: yes" >&5
8627echo "${ECHO_T}yes" >&6
8628 else
8629 echo "$as_me:$LINENO: result: no" >&5
8630echo "${ECHO_T}no" >&6
8631 fi
8632
8633
8634 enablestring=
8635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8636echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8637 no_cache=0
8638 # Check whether --enable-statbmp or --disable-statbmp was given.
8639if test "${enable_statbmp+set}" = set; then
8640 enableval="$enable_statbmp"
8641
8642 if test "$enableval" = yes; then
8643 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8644 else
8645 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8646 fi
8647
8648else
8649
8650 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8651 if test "x$LINE" != x ; then
8652 eval "DEFAULT_$LINE"
8653 else
8654 no_cache=1
8655 fi
8656
8657 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8658
8659fi;
8660
8661 eval "$ac_cv_use_statbmp"
8662 if test "$no_cache" != 1; then
8663 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8664 fi
8665
8666 if test "$wxUSE_STATBMP" = yes; then
8667 echo "$as_me:$LINENO: result: yes" >&5
8668echo "${ECHO_T}yes" >&6
8669 else
8670 echo "$as_me:$LINENO: result: no" >&5
8671echo "${ECHO_T}no" >&6
8672 fi
8673
8674
8675 enablestring=
8676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8677echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8678 no_cache=0
8679 # Check whether --enable-statbox or --disable-statbox was given.
8680if test "${enable_statbox+set}" = set; then
8681 enableval="$enable_statbox"
8682
8683 if test "$enableval" = yes; then
8684 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8685 else
8686 ac_cv_use_statbox='wxUSE_STATBOX=no'
8687 fi
8688
8689else
8690
8691 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8692 if test "x$LINE" != x ; then
8693 eval "DEFAULT_$LINE"
8694 else
8695 no_cache=1
8696 fi
8697
8698 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8699
8700fi;
8701
8702 eval "$ac_cv_use_statbox"
8703 if test "$no_cache" != 1; then
8704 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8705 fi
8706
8707 if test "$wxUSE_STATBOX" = yes; then
8708 echo "$as_me:$LINENO: result: yes" >&5
8709echo "${ECHO_T}yes" >&6
8710 else
8711 echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6
8713 fi
8714
8715
8716 enablestring=
8717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8718echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8719 no_cache=0
8720 # Check whether --enable-statline or --disable-statline was given.
8721if test "${enable_statline+set}" = set; then
8722 enableval="$enable_statline"
8723
8724 if test "$enableval" = yes; then
8725 ac_cv_use_statline='wxUSE_STATLINE=yes'
8726 else
8727 ac_cv_use_statline='wxUSE_STATLINE=no'
8728 fi
8729
8730else
8731
8732 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8733 if test "x$LINE" != x ; then
8734 eval "DEFAULT_$LINE"
8735 else
8736 no_cache=1
8737 fi
8738
8739 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8740
8741fi;
8742
8743 eval "$ac_cv_use_statline"
8744 if test "$no_cache" != 1; then
8745 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8746 fi
8747
8748 if test "$wxUSE_STATLINE" = yes; then
8749 echo "$as_me:$LINENO: result: yes" >&5
8750echo "${ECHO_T}yes" >&6
8751 else
8752 echo "$as_me:$LINENO: result: no" >&5
8753echo "${ECHO_T}no" >&6
8754 fi
8755
8756
8757 enablestring=
8758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8759echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8760 no_cache=0
8761 # Check whether --enable-stattext or --disable-stattext was given.
8762if test "${enable_stattext+set}" = set; then
8763 enableval="$enable_stattext"
8764
8765 if test "$enableval" = yes; then
8766 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8767 else
8768 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8769 fi
8770
8771else
8772
8773 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8774 if test "x$LINE" != x ; then
8775 eval "DEFAULT_$LINE"
8776 else
8777 no_cache=1
8778 fi
8779
8780 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8781
8782fi;
8783
8784 eval "$ac_cv_use_stattext"
8785 if test "$no_cache" != 1; then
8786 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8787 fi
8788
8789 if test "$wxUSE_STATTEXT" = yes; then
8790 echo "$as_me:$LINENO: result: yes" >&5
8791echo "${ECHO_T}yes" >&6
8792 else
8793 echo "$as_me:$LINENO: result: no" >&5
8794echo "${ECHO_T}no" >&6
8795 fi
8796
8797
8798 enablestring=
8799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8800echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8801 no_cache=0
8802 # Check whether --enable-statusbar or --disable-statusbar was given.
8803if test "${enable_statusbar+set}" = set; then
8804 enableval="$enable_statusbar"
8805
8806 if test "$enableval" = yes; then
8807 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8808 else
8809 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8810 fi
8811
8812else
8813
8814 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8815 if test "x$LINE" != x ; then
8816 eval "DEFAULT_$LINE"
8817 else
8818 no_cache=1
8819 fi
8820
8821 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8822
8823fi;
8824
8825 eval "$ac_cv_use_statusbar"
8826 if test "$no_cache" != 1; then
8827 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8828 fi
8829
8830 if test "$wxUSE_STATUSBAR" = yes; then
8831 echo "$as_me:$LINENO: result: yes" >&5
8832echo "${ECHO_T}yes" >&6
8833 else
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8836 fi
8837
8838
8839 enablestring=
8840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8841echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8842 no_cache=0
8843 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8844if test "${enable_tabdialog+set}" = set; then
8845 enableval="$enable_tabdialog"
8846
8847 if test "$enableval" = yes; then
8848 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8849 else
8850 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8851 fi
8852
8853else
8854
8855 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8856 if test "x$LINE" != x ; then
8857 eval "DEFAULT_$LINE"
8858 else
8859 no_cache=1
8860 fi
8861
8862 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8863
8864fi;
8865
8866 eval "$ac_cv_use_tabdialog"
8867 if test "$no_cache" != 1; then
8868 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8869 fi
8870
8871 if test "$wxUSE_TABDIALOG" = yes; then
8872 echo "$as_me:$LINENO: result: yes" >&5
8873echo "${ECHO_T}yes" >&6
8874 else
8875 echo "$as_me:$LINENO: result: no" >&5
8876echo "${ECHO_T}no" >&6
8877 fi
8878
8879
8880 enablestring=
8881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8882echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8883 no_cache=0
8884 # Check whether --enable-textctrl or --disable-textctrl was given.
8885if test "${enable_textctrl+set}" = set; then
8886 enableval="$enable_textctrl"
8887
8888 if test "$enableval" = yes; then
8889 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8890 else
8891 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8892 fi
8893
8894else
8895
8896 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8897 if test "x$LINE" != x ; then
8898 eval "DEFAULT_$LINE"
8899 else
8900 no_cache=1
8901 fi
8902
8903 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8904
8905fi;
8906
8907 eval "$ac_cv_use_textctrl"
8908 if test "$no_cache" != 1; then
8909 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8910 fi
8911
8912 if test "$wxUSE_TEXTCTRL" = yes; then
8913 echo "$as_me:$LINENO: result: yes" >&5
8914echo "${ECHO_T}yes" >&6
8915 else
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
8918 fi
8919
8920
8921 enablestring=
8922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8923echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8924 no_cache=0
8925 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8926if test "${enable_togglebtn+set}" = set; then
8927 enableval="$enable_togglebtn"
8928
8929 if test "$enableval" = yes; then
8930 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8931 else
8932 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8933 fi
8934
8935else
8936
8937 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8938 if test "x$LINE" != x ; then
8939 eval "DEFAULT_$LINE"
8940 else
8941 no_cache=1
8942 fi
8943
8944 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8945
8946fi;
8947
8948 eval "$ac_cv_use_togglebtn"
8949 if test "$no_cache" != 1; then
8950 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8951 fi
8952
8953 if test "$wxUSE_TOGGLEBTN" = yes; then
8954 echo "$as_me:$LINENO: result: yes" >&5
8955echo "${ECHO_T}yes" >&6
8956 else
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
8959 fi
8960
8961
8962 enablestring=
8963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8964echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8965 no_cache=0
8966 # Check whether --enable-toolbar or --disable-toolbar was given.
8967if test "${enable_toolbar+set}" = set; then
8968 enableval="$enable_toolbar"
8969
8970 if test "$enableval" = yes; then
8971 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8972 else
8973 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8974 fi
8975
8976else
8977
8978 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8979 if test "x$LINE" != x ; then
8980 eval "DEFAULT_$LINE"
8981 else
8982 no_cache=1
8983 fi
8984
8985 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8986
8987fi;
8988
8989 eval "$ac_cv_use_toolbar"
8990 if test "$no_cache" != 1; then
8991 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8992 fi
8993
8994 if test "$wxUSE_TOOLBAR" = yes; then
8995 echo "$as_me:$LINENO: result: yes" >&5
8996echo "${ECHO_T}yes" >&6
8997 else
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
9000 fi
9001
9002
9003 enablestring=
9004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9005echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9006 no_cache=0
9007 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9008if test "${enable_tbarnative+set}" = set; then
9009 enableval="$enable_tbarnative"
9010
9011 if test "$enableval" = yes; then
9012 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9013 else
9014 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9015 fi
9016
9017else
9018
9019 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9020 if test "x$LINE" != x ; then
9021 eval "DEFAULT_$LINE"
9022 else
9023 no_cache=1
9024 fi
9025
9026 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9027
9028fi;
9029
9030 eval "$ac_cv_use_tbarnative"
9031 if test "$no_cache" != 1; then
9032 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9033 fi
9034
9035 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9036 echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
9038 else
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
9041 fi
9042
9043
9044 enablestring=
9045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9046echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9047 no_cache=0
9048 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9049if test "${enable_tbarsmpl+set}" = set; then
9050 enableval="$enable_tbarsmpl"
9051
9052 if test "$enableval" = yes; then
9053 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9054 else
9055 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9056 fi
9057
9058else
9059
9060 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9061 if test "x$LINE" != x ; then
9062 eval "DEFAULT_$LINE"
9063 else
9064 no_cache=1
9065 fi
9066
9067 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9068
9069fi;
9070
9071 eval "$ac_cv_use_tbarsmpl"
9072 if test "$no_cache" != 1; then
9073 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9074 fi
9075
9076 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9077 echo "$as_me:$LINENO: result: yes" >&5
9078echo "${ECHO_T}yes" >&6
9079 else
9080 echo "$as_me:$LINENO: result: no" >&5
9081echo "${ECHO_T}no" >&6
9082 fi
9083
9084
0093c2fc
VZ
9085 enablestring=
9086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9087echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9088 no_cache=0
9089 # Check whether --enable-treebook or --disable-treebook was given.
9090if test "${enable_treebook+set}" = set; then
9091 enableval="$enable_treebook"
9092
9093 if test "$enableval" = yes; then
9094 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9095 else
9096 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9097 fi
9098
9099else
9100
9101 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9102 if test "x$LINE" != x ; then
9103 eval "DEFAULT_$LINE"
9104 else
9105 no_cache=1
9106 fi
9107
9108 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9109
9110fi;
9111
9112 eval "$ac_cv_use_treebook"
9113 if test "$no_cache" != 1; then
9114 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9115 fi
9116
9117 if test "$wxUSE_TREEBOOK" = yes; then
9118 echo "$as_me:$LINENO: result: yes" >&5
9119echo "${ECHO_T}yes" >&6
9120 else
9121 echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
9123 fi
9124
9125
a848cd7e
SC
9126 enablestring=
9127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9128echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9129 no_cache=0
9130 # Check whether --enable-treectrl or --disable-treectrl was given.
9131if test "${enable_treectrl+set}" = set; then
9132 enableval="$enable_treectrl"
9133
9134 if test "$enableval" = yes; then
9135 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9136 else
9137 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9138 fi
9139
9140else
9141
9142 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9143 if test "x$LINE" != x ; then
9144 eval "DEFAULT_$LINE"
9145 else
9146 no_cache=1
9147 fi
9148
9149 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9150
9151fi;
9152
9153 eval "$ac_cv_use_treectrl"
9154 if test "$no_cache" != 1; then
9155 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9156 fi
9157
9158 if test "$wxUSE_TREECTRL" = yes; then
9159 echo "$as_me:$LINENO: result: yes" >&5
9160echo "${ECHO_T}yes" >&6
9161 else
9162 echo "$as_me:$LINENO: result: no" >&5
9163echo "${ECHO_T}no" >&6
9164 fi
9165
9166
9167 enablestring=
9168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9169echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9170 no_cache=0
9171 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9172if test "${enable_tipwindow+set}" = set; then
9173 enableval="$enable_tipwindow"
9174
9175 if test "$enableval" = yes; then
9176 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9177 else
9178 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9179 fi
9180
9181else
9182
9183 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9184 if test "x$LINE" != x ; then
9185 eval "DEFAULT_$LINE"
9186 else
9187 no_cache=1
9188 fi
9189
9190 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9191
9192fi;
9193
9194 eval "$ac_cv_use_tipwindow"
9195 if test "$no_cache" != 1; then
9196 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9197 fi
9198
9199 if test "$wxUSE_TIPWINDOW" = yes; then
9200 echo "$as_me:$LINENO: result: yes" >&5
9201echo "${ECHO_T}yes" >&6
9202 else
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
9205 fi
9206
9207
9208 enablestring=
9209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9210echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9211 no_cache=0
9212 # Check whether --enable-popupwin or --disable-popupwin was given.
9213if test "${enable_popupwin+set}" = set; then
9214 enableval="$enable_popupwin"
9215
9216 if test "$enableval" = yes; then
9217 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9218 else
9219 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9220 fi
9221
9222else
9223
9224 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9225 if test "x$LINE" != x ; then
9226 eval "DEFAULT_$LINE"
9227 else
9228 no_cache=1
9229 fi
9230
9231 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9232
9233fi;
9234
9235 eval "$ac_cv_use_popupwin"
9236 if test "$no_cache" != 1; then
9237 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9238 fi
9239
9240 if test "$wxUSE_POPUPWIN" = yes; then
9241 echo "$as_me:$LINENO: result: yes" >&5
9242echo "${ECHO_T}yes" >&6
9243 else
9244 echo "$as_me:$LINENO: result: no" >&5
9245echo "${ECHO_T}no" >&6
9246 fi
9247
9248
9249
9250
9251 enablestring=
9252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9253echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9254 no_cache=0
9255 # Check whether --enable-commondlg or --disable-commondlg was given.
9256if test "${enable_commondlg+set}" = set; then
9257 enableval="$enable_commondlg"
9258
9259 if test "$enableval" = yes; then
9260 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9261 else
9262 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9263 fi
9264
9265else
9266
9267 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9268 if test "x$LINE" != x ; then
9269 eval "DEFAULT_$LINE"
9270 else
9271 no_cache=1
9272 fi
9273
9274 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9275
9276fi;
9277
9278 eval "$ac_cv_use_commondlg"
9279 if test "$no_cache" != 1; then
9280 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9281 fi
9282
9283 if test "$wxUSE_COMMONDLGS" = yes; then
9284 echo "$as_me:$LINENO: result: yes" >&5
9285echo "${ECHO_T}yes" >&6
9286 else
9287 echo "$as_me:$LINENO: result: no" >&5
9288echo "${ECHO_T}no" >&6
9289 fi
9290
9291
9292 enablestring=
9293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9294echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9295 no_cache=0
9296 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9297if test "${enable_choicedlg+set}" = set; then
9298 enableval="$enable_choicedlg"
9299
9300 if test "$enableval" = yes; then
9301 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9302 else
9303 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9304 fi
9305
9306else
9307
9308 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9309 if test "x$LINE" != x ; then
9310 eval "DEFAULT_$LINE"
9311 else
9312 no_cache=1
9313 fi
9314
9315 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9316
9317fi;
9318
9319 eval "$ac_cv_use_choicedlg"
9320 if test "$no_cache" != 1; then
9321 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9322 fi
9323
9324 if test "$wxUSE_CHOICEDLG" = yes; then
9325 echo "$as_me:$LINENO: result: yes" >&5
9326echo "${ECHO_T}yes" >&6
9327 else
9328 echo "$as_me:$LINENO: result: no" >&5
9329echo "${ECHO_T}no" >&6
9330 fi
9331
9332
9333 enablestring=
9334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9335echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9336 no_cache=0
9337 # Check whether --enable-coldlg or --disable-coldlg was given.
9338if test "${enable_coldlg+set}" = set; then
9339 enableval="$enable_coldlg"
9340
9341 if test "$enableval" = yes; then
9342 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9343 else
9344 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9345 fi
9346
9347else
9348
9349 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9350 if test "x$LINE" != x ; then
9351 eval "DEFAULT_$LINE"
9352 else
9353 no_cache=1
9354 fi
9355
9356 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9357
9358fi;
9359
9360 eval "$ac_cv_use_coldlg"
9361 if test "$no_cache" != 1; then
9362 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9363 fi
9364
9365 if test "$wxUSE_COLOURDLG" = yes; then
9366 echo "$as_me:$LINENO: result: yes" >&5
9367echo "${ECHO_T}yes" >&6
9368 else
9369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
9371 fi
9372
9373
9374 enablestring=
9375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9376echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9377 no_cache=0
9378 # Check whether --enable-filedlg or --disable-filedlg was given.
9379if test "${enable_filedlg+set}" = set; then
9380 enableval="$enable_filedlg"
9381
9382 if test "$enableval" = yes; then
9383 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9384 else
9385 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9386 fi
9387
9388else
9389
9390 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9391 if test "x$LINE" != x ; then
9392 eval "DEFAULT_$LINE"
9393 else
9394 no_cache=1
9395 fi
9396
9397 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9398
9399fi;
9400
9401 eval "$ac_cv_use_filedlg"
9402 if test "$no_cache" != 1; then
9403 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9404 fi
9405
9406 if test "$wxUSE_FILEDLG" = yes; then
9407 echo "$as_me:$LINENO: result: yes" >&5
9408echo "${ECHO_T}yes" >&6
9409 else
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
9412 fi
9413
9414
9415 enablestring=
9416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9417echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9418 no_cache=0
9419 # Check whether --enable-finddlg or --disable-finddlg was given.
9420if test "${enable_finddlg+set}" = set; then
9421 enableval="$enable_finddlg"
9422
9423 if test "$enableval" = yes; then
9424 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9425 else
9426 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9427 fi
9428
9429else
9430
9431 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9432 if test "x$LINE" != x ; then
9433 eval "DEFAULT_$LINE"
9434 else
9435 no_cache=1
9436 fi
9437
9438 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9439
9440fi;
9441
9442 eval "$ac_cv_use_finddlg"
9443 if test "$no_cache" != 1; then
9444 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9445 fi
9446
9447 if test "$wxUSE_FINDREPLDLG" = yes; then
9448 echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6
9450 else
9451 echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
9453 fi
9454
9455
9456 enablestring=
9457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9458echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9459 no_cache=0
9460 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9461if test "${enable_fontdlg+set}" = set; then
9462 enableval="$enable_fontdlg"
9463
9464 if test "$enableval" = yes; then
9465 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9466 else
9467 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9468 fi
9469
9470else
9471
9472 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9473 if test "x$LINE" != x ; then
9474 eval "DEFAULT_$LINE"
9475 else
9476 no_cache=1
9477 fi
9478
9479 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9480
9481fi;
9482
9483 eval "$ac_cv_use_fontdlg"
9484 if test "$no_cache" != 1; then
9485 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9486 fi
9487
9488 if test "$wxUSE_FONTDLG" = yes; then
9489 echo "$as_me:$LINENO: result: yes" >&5
9490echo "${ECHO_T}yes" >&6
9491 else
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
9494 fi
9495
9496
9497 enablestring=
9498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9499echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9500 no_cache=0
9501 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9502if test "${enable_dirdlg+set}" = set; then
9503 enableval="$enable_dirdlg"
9504
9505 if test "$enableval" = yes; then
9506 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9507 else
9508 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9509 fi
9510
9511else
9512
9513 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9514 if test "x$LINE" != x ; then
9515 eval "DEFAULT_$LINE"
9516 else
9517 no_cache=1
9518 fi
9519
9520 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9521
9522fi;
9523
9524 eval "$ac_cv_use_dirdlg"
9525 if test "$no_cache" != 1; then
9526 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9527 fi
9528
9529 if test "$wxUSE_DIRDLG" = yes; then
9530 echo "$as_me:$LINENO: result: yes" >&5
9531echo "${ECHO_T}yes" >&6
9532 else
9533 echo "$as_me:$LINENO: result: no" >&5
9534echo "${ECHO_T}no" >&6
9535 fi
9536
9537
9538 enablestring=
9539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9540echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9541 no_cache=0
9542 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9543if test "${enable_msgdlg+set}" = set; then
9544 enableval="$enable_msgdlg"
9545
9546 if test "$enableval" = yes; then
9547 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9548 else
9549 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9550 fi
9551
9552else
9553
9554 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9555 if test "x$LINE" != x ; then
9556 eval "DEFAULT_$LINE"
9557 else
9558 no_cache=1
9559 fi
9560
9561 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9562
9563fi;
9564
9565 eval "$ac_cv_use_msgdlg"
9566 if test "$no_cache" != 1; then
9567 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9568 fi
9569
9570 if test "$wxUSE_MSGDLG" = yes; then
9571 echo "$as_me:$LINENO: result: yes" >&5
9572echo "${ECHO_T}yes" >&6
9573 else
9574 echo "$as_me:$LINENO: result: no" >&5
9575echo "${ECHO_T}no" >&6
9576 fi
9577
9578
9579 enablestring=
9580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9581echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9582 no_cache=0
9583 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9584if test "${enable_numberdlg+set}" = set; then
9585 enableval="$enable_numberdlg"
9586
9587 if test "$enableval" = yes; then
9588 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9589 else
9590 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9591 fi
9592
9593else
9594
9595 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9596 if test "x$LINE" != x ; then
9597 eval "DEFAULT_$LINE"
9598 else
9599 no_cache=1
9600 fi
9601
9602 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9603
9604fi;
9605
9606 eval "$ac_cv_use_numberdlg"
9607 if test "$no_cache" != 1; then
9608 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9609 fi
9610
9611 if test "$wxUSE_NUMBERDLG" = yes; then
9612 echo "$as_me:$LINENO: result: yes" >&5
9613echo "${ECHO_T}yes" >&6
9614 else
9615 echo "$as_me:$LINENO: result: no" >&5
9616echo "${ECHO_T}no" >&6
9617 fi
9618
9619
9620 enablestring=
9621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9622echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9623 no_cache=0
9624 # Check whether --enable-splash or --disable-splash was given.
9625if test "${enable_splash+set}" = set; then
9626 enableval="$enable_splash"
9627
9628 if test "$enableval" = yes; then
9629 ac_cv_use_splash='wxUSE_SPLASH=yes'
9630 else
9631 ac_cv_use_splash='wxUSE_SPLASH=no'
9632 fi
9633
9634else
9635
9636 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9637 if test "x$LINE" != x ; then
9638 eval "DEFAULT_$LINE"
9639 else
9640 no_cache=1
9641 fi
9642
9643 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9644
9645fi;
9646
9647 eval "$ac_cv_use_splash"
9648 if test "$no_cache" != 1; then
9649 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9650 fi
9651
9652 if test "$wxUSE_SPLASH" = yes; then
9653 echo "$as_me:$LINENO: result: yes" >&5
9654echo "${ECHO_T}yes" >&6
9655 else
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658 fi
9659
9660
9661 enablestring=
9662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9663echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9664 no_cache=0
9665 # Check whether --enable-textdlg or --disable-textdlg was given.
9666if test "${enable_textdlg+set}" = set; then
9667 enableval="$enable_textdlg"
9668
9669 if test "$enableval" = yes; then
9670 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9671 else
9672 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9673 fi
9674
9675else
9676
9677 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9678 if test "x$LINE" != x ; then
9679 eval "DEFAULT_$LINE"
9680 else
9681 no_cache=1
9682 fi
9683
9684 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9685
9686fi;
9687
9688 eval "$ac_cv_use_textdlg"
9689 if test "$no_cache" != 1; then
9690 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9691 fi
9692
9693 if test "$wxUSE_TEXTDLG" = yes; then
9694 echo "$as_me:$LINENO: result: yes" >&5
9695echo "${ECHO_T}yes" >&6
9696 else
9697 echo "$as_me:$LINENO: result: no" >&5
9698echo "${ECHO_T}no" >&6
9699 fi
9700
9701
9702 enablestring=
9703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9704echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9705 no_cache=0
9706 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9707if test "${enable_tipdlg+set}" = set; then
9708 enableval="$enable_tipdlg"
9709
9710 if test "$enableval" = yes; then
9711 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9712 else
9713 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9714 fi
9715
9716else
9717
9718 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9719 if test "x$LINE" != x ; then
9720 eval "DEFAULT_$LINE"
9721 else
9722 no_cache=1
9723 fi
9724
9725 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9726
9727fi;
9728
9729 eval "$ac_cv_use_tipdlg"
9730 if test "$no_cache" != 1; then
9731 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9732 fi
9733
9734 if test "$wxUSE_STARTUP_TIPS" = yes; then
9735 echo "$as_me:$LINENO: result: yes" >&5
9736echo "${ECHO_T}yes" >&6
9737 else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740 fi
9741
9742
9743 enablestring=
9744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9745echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9746 no_cache=0
9747 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9748if test "${enable_progressdlg+set}" = set; then
9749 enableval="$enable_progressdlg"
9750
9751 if test "$enableval" = yes; then
9752 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9753 else
9754 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9755 fi
9756
9757else
9758
9759 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9760 if test "x$LINE" != x ; then
9761 eval "DEFAULT_$LINE"
9762 else
9763 no_cache=1
9764 fi
9765
9766 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9767
9768fi;
9769
9770 eval "$ac_cv_use_progressdlg"
9771 if test "$no_cache" != 1; then
9772 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9773 fi
9774
9775 if test "$wxUSE_PROGRESSDLG" = yes; then
9776 echo "$as_me:$LINENO: result: yes" >&5
9777echo "${ECHO_T}yes" >&6
9778 else
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
9781 fi
9782
9783
9784 enablestring=
9785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9786echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9787 no_cache=0
9788 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9789if test "${enable_wizarddlg+set}" = set; then
9790 enableval="$enable_wizarddlg"
9791
9792 if test "$enableval" = yes; then
9793 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9794 else
9795 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9796 fi
9797
9798else
9799
9800 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9801 if test "x$LINE" != x ; then
9802 eval "DEFAULT_$LINE"
9803 else
9804 no_cache=1
9805 fi
9806
9807 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9808
9809fi;
9810
9811 eval "$ac_cv_use_wizarddlg"
9812 if test "$no_cache" != 1; then
9813 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9814 fi
9815
9816 if test "$wxUSE_WIZARDDLG" = yes; then
9817 echo "$as_me:$LINENO: result: yes" >&5
9818echo "${ECHO_T}yes" >&6
9819 else
9820 echo "$as_me:$LINENO: result: no" >&5
9821echo "${ECHO_T}no" >&6
9822 fi
9823
9824
9825
9826
9827 enablestring=
9828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9829echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9830 no_cache=0
9831 # Check whether --enable-menus or --disable-menus was given.
9832if test "${enable_menus+set}" = set; then
9833 enableval="$enable_menus"
9834
9835 if test "$enableval" = yes; then
9836 ac_cv_use_menus='wxUSE_MENUS=yes'
9837 else
9838 ac_cv_use_menus='wxUSE_MENUS=no'
9839 fi
9840
9841else
9842
9843 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9844 if test "x$LINE" != x ; then
9845 eval "DEFAULT_$LINE"
9846 else
9847 no_cache=1
9848 fi
9849
9850 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9851
9852fi;
9853
9854 eval "$ac_cv_use_menus"
9855 if test "$no_cache" != 1; then
9856 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9857 fi
9858
9859 if test "$wxUSE_MENUS" = yes; then
9860 echo "$as_me:$LINENO: result: yes" >&5
9861echo "${ECHO_T}yes" >&6
9862 else
9863 echo "$as_me:$LINENO: result: no" >&5
9864echo "${ECHO_T}no" >&6
9865 fi
9866
9867
9868 enablestring=
9869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9870echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9871 no_cache=0
9872 # Check whether --enable-miniframe or --disable-miniframe was given.
9873if test "${enable_miniframe+set}" = set; then
9874 enableval="$enable_miniframe"
9875
9876 if test "$enableval" = yes; then
9877 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9878 else
9879 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9880 fi
9881
9882else
9883
9884 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9885 if test "x$LINE" != x ; then
9886 eval "DEFAULT_$LINE"
9887 else
9888 no_cache=1
9889 fi
9890
9891 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9892
9893fi;
9894
9895 eval "$ac_cv_use_miniframe"
9896 if test "$no_cache" != 1; then
9897 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9898 fi
9899
9900 if test "$wxUSE_MINIFRAME" = yes; then
9901 echo "$as_me:$LINENO: result: yes" >&5
9902echo "${ECHO_T}yes" >&6
9903 else
9904 echo "$as_me:$LINENO: result: no" >&5
9905echo "${ECHO_T}no" >&6
9906 fi
9907
9908
9909 enablestring=
9910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9911echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9912 no_cache=0
9913 # Check whether --enable-tooltips or --disable-tooltips was given.
9914if test "${enable_tooltips+set}" = set; then
9915 enableval="$enable_tooltips"
9916
9917 if test "$enableval" = yes; then
9918 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9919 else
9920 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9921 fi
9922
9923else
9924
9925 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9926 if test "x$LINE" != x ; then
9927 eval "DEFAULT_$LINE"
9928 else
9929 no_cache=1
9930 fi
9931
9932 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9933
9934fi;
9935
9936 eval "$ac_cv_use_tooltips"
9937 if test "$no_cache" != 1; then
9938 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9939 fi
9940
9941 if test "$wxUSE_TOOLTIPS" = yes; then
9942 echo "$as_me:$LINENO: result: yes" >&5
9943echo "${ECHO_T}yes" >&6
9944 else
9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
9947 fi
9948
9949
9950 enablestring=
9951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9952echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9953 no_cache=0
9954 # Check whether --enable-splines or --disable-splines was given.
9955if test "${enable_splines+set}" = set; then
9956 enableval="$enable_splines"
9957
9958 if test "$enableval" = yes; then
9959 ac_cv_use_splines='wxUSE_SPLINES=yes'
9960 else
9961 ac_cv_use_splines='wxUSE_SPLINES=no'
9962 fi
9963
9964else
9965
9966 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9967 if test "x$LINE" != x ; then
9968 eval "DEFAULT_$LINE"
9969 else
9970 no_cache=1
9971 fi
9972
9973 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9974
9975fi;
9976
9977 eval "$ac_cv_use_splines"
9978 if test "$no_cache" != 1; then
9979 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9980 fi
9981
9982 if test "$wxUSE_SPLINES" = yes; then
9983 echo "$as_me:$LINENO: result: yes" >&5
9984echo "${ECHO_T}yes" >&6
9985 else
9986 echo "$as_me:$LINENO: result: no" >&5
9987echo "${ECHO_T}no" >&6
9988 fi
9989
9990
fbe2ca43
SN
9991 enablestring=
9992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9993echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9994 no_cache=0
9995 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9996if test "${enable_mousewheel+set}" = set; then
9997 enableval="$enable_mousewheel"
9998
9999 if test "$enableval" = yes; then
10000 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10001 else
10002 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10003 fi
10004
10005else
10006
10007 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10008 if test "x$LINE" != x ; then
10009 eval "DEFAULT_$LINE"
10010 else
10011 no_cache=1
10012 fi
10013
10014 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10015
10016fi;
10017
10018 eval "$ac_cv_use_mousewheel"
10019 if test "$no_cache" != 1; then
10020 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10021 fi
10022
10023 if test "$wxUSE_MOUSEWHEEL" = yes; then
10024 echo "$as_me:$LINENO: result: yes" >&5
10025echo "${ECHO_T}yes" >&6
10026 else
10027 echo "$as_me:$LINENO: result: no" >&5
10028echo "${ECHO_T}no" >&6
10029 fi
10030
10031
a848cd7e
SC
10032 enablestring=
10033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10034echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10035 no_cache=0
10036 # Check whether --enable-validators or --disable-validators was given.
10037if test "${enable_validators+set}" = set; then
10038 enableval="$enable_validators"
10039
10040 if test "$enableval" = yes; then
10041 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10042 else
10043 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10044 fi
10045
10046else
10047
10048 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10049 if test "x$LINE" != x ; then
10050 eval "DEFAULT_$LINE"
10051 else
10052 no_cache=1
10053 fi
10054
10055 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10056
10057fi;
10058
10059 eval "$ac_cv_use_validators"
10060 if test "$no_cache" != 1; then
10061 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10062 fi
10063
10064 if test "$wxUSE_VALIDATORS" = yes; then
10065 echo "$as_me:$LINENO: result: yes" >&5
10066echo "${ECHO_T}yes" >&6
10067 else
10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
10070 fi
10071
10072
10073 enablestring=
10074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10075echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10076 no_cache=0
10077 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10078if test "${enable_busyinfo+set}" = set; then
10079 enableval="$enable_busyinfo"
10080
10081 if test "$enableval" = yes; then
10082 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10083 else
10084 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10085 fi
10086
10087else
10088
10089 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10090 if test "x$LINE" != x ; then
10091 eval "DEFAULT_$LINE"
10092 else
10093 no_cache=1
10094 fi
10095
10096 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10097
10098fi;
10099
10100 eval "$ac_cv_use_busyinfo"
10101 if test "$no_cache" != 1; then
10102 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10103 fi
10104
10105 if test "$wxUSE_BUSYINFO" = yes; then
10106 echo "$as_me:$LINENO: result: yes" >&5
10107echo "${ECHO_T}yes" >&6
10108 else
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111 fi
10112
10113
10114 enablestring=
10115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10116echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10117 no_cache=0
10118 # Check whether --enable-joystick or --disable-joystick was given.
10119if test "${enable_joystick+set}" = set; then
10120 enableval="$enable_joystick"
10121
10122 if test "$enableval" = yes; then
10123 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10124 else
10125 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10126 fi
10127
10128else
10129
10130 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10131 if test "x$LINE" != x ; then
10132 eval "DEFAULT_$LINE"
10133 else
10134 no_cache=1
10135 fi
10136
10137 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10138
10139fi;
10140
10141 eval "$ac_cv_use_joystick"
10142 if test "$no_cache" != 1; then
10143 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10144 fi
10145
10146 if test "$wxUSE_JOYSTICK" = yes; then
10147 echo "$as_me:$LINENO: result: yes" >&5
10148echo "${ECHO_T}yes" >&6
10149 else
10150 echo "$as_me:$LINENO: result: no" >&5
10151echo "${ECHO_T}no" >&6
10152 fi
10153
10154
10155 enablestring=
10156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10157echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10158 no_cache=0
10159 # Check whether --enable-metafile or --disable-metafile was given.
10160if test "${enable_metafile+set}" = set; then
10161 enableval="$enable_metafile"
10162
10163 if test "$enableval" = yes; then
10164 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10165 else
10166 ac_cv_use_metafile='wxUSE_METAFILE=no'
10167 fi
10168
10169else
10170
10171 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10172 if test "x$LINE" != x ; then
10173 eval "DEFAULT_$LINE"
10174 else
10175 no_cache=1
10176 fi
10177
10178 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10179
10180fi;
10181
10182 eval "$ac_cv_use_metafile"
10183 if test "$no_cache" != 1; then
10184 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10185 fi
10186
10187 if test "$wxUSE_METAFILE" = yes; then
10188 echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
10193 fi
10194
10195
10196 enablestring=
10197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10198echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10199 no_cache=0
10200 # Check whether --enable-dragimage or --disable-dragimage was given.
10201if test "${enable_dragimage+set}" = set; then
10202 enableval="$enable_dragimage"
10203
10204 if test "$enableval" = yes; then
10205 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10206 else
10207 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10208 fi
10209
10210else
10211
10212 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10213 if test "x$LINE" != x ; then
10214 eval "DEFAULT_$LINE"
10215 else
10216 no_cache=1
10217 fi
10218
10219 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10220
10221fi;
10222
10223 eval "$ac_cv_use_dragimage"
10224 if test "$no_cache" != 1; then
10225 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10226 fi
10227
10228 if test "$wxUSE_DRAGIMAGE" = yes; then
10229 echo "$as_me:$LINENO: result: yes" >&5
10230echo "${ECHO_T}yes" >&6
10231 else
10232 echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6
10234 fi
10235
10236
10237 enablestring=
10238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10239echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10240 no_cache=0
10241 # Check whether --enable-accessibility or --disable-accessibility was given.
10242if test "${enable_accessibility+set}" = set; then
10243 enableval="$enable_accessibility"
10244
10245 if test "$enableval" = yes; then
10246 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10247 else
10248 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10249 fi
10250
10251else
10252
10253 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10254 if test "x$LINE" != x ; then
10255 eval "DEFAULT_$LINE"
10256 else
10257 no_cache=1
10258 fi
10259
10260 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10261
10262fi;
10263
10264 eval "$ac_cv_use_accessibility"
10265 if test "$no_cache" != 1; then
10266 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10267 fi
10268
10269 if test "$wxUSE_ACCESSIBILITY" = yes; then
10270 echo "$as_me:$LINENO: result: yes" >&5
10271echo "${ECHO_T}yes" >&6
10272 else
10273 echo "$as_me:$LINENO: result: no" >&5
10274echo "${ECHO_T}no" >&6
10275 fi
10276
10277
38b4a946
VZ
10278if test "$wxUSE_MSW" = "1"; then
10279
10280 enablestring=
10281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10282echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10283 no_cache=0
10284 # Check whether --enable-dccache or --disable-dccache was given.
10285if test "${enable_dccache+set}" = set; then
10286 enableval="$enable_dccache"
10287
10288 if test "$enableval" = yes; then
10289 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10290 else
10291 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10292 fi
10293
10294else
10295
10296 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10297 if test "x$LINE" != x ; then
10298 eval "DEFAULT_$LINE"
10299 else
10300 no_cache=1
10301 fi
10302
10303 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10304
10305fi;
10306
10307 eval "$ac_cv_use_dccache"
10308 if test "$no_cache" != 1; then
10309 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10310 fi
10311
10312 if test "$wxUSE_DC_CACHEING" = yes; then
10313 echo "$as_me:$LINENO: result: yes" >&5
10314echo "${ECHO_T}yes" >&6
10315 else
10316 echo "$as_me:$LINENO: result: no" >&5
10317echo "${ECHO_T}no" >&6
10318 fi
10319
10320fi
10321
a848cd7e
SC
10322
10323
10324 enablestring=
10325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10326echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10327 no_cache=0
10328 # Check whether --enable-palette or --disable-palette was given.
10329if test "${enable_palette+set}" = set; then
10330 enableval="$enable_palette"
10331
10332 if test "$enableval" = yes; then
10333 ac_cv_use_palette='wxUSE_PALETTE=yes'
10334 else
10335 ac_cv_use_palette='wxUSE_PALETTE=no'
10336 fi
10337
10338else
10339
10340 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10341 if test "x$LINE" != x ; then
10342 eval "DEFAULT_$LINE"
10343 else
10344 no_cache=1
10345 fi
10346
10347 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10348
10349fi;
10350
10351 eval "$ac_cv_use_palette"
10352 if test "$no_cache" != 1; then
10353 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10354 fi
10355
10356 if test "$wxUSE_PALETTE" = yes; then
10357 echo "$as_me:$LINENO: result: yes" >&5
10358echo "${ECHO_T}yes" >&6
10359 else
10360 echo "$as_me:$LINENO: result: no" >&5
10361echo "${ECHO_T}no" >&6
10362 fi
10363
10364
10365 enablestring=
10366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10367echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10368 no_cache=0
10369 # Check whether --enable-image or --disable-image was given.
10370if test "${enable_image+set}" = set; then
10371 enableval="$enable_image"
10372
10373 if test "$enableval" = yes; then
10374 ac_cv_use_image='wxUSE_IMAGE=yes'
10375 else
10376 ac_cv_use_image='wxUSE_IMAGE=no'
10377 fi
10378
10379else
10380
10381 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10382 if test "x$LINE" != x ; then
10383 eval "DEFAULT_$LINE"
10384 else
10385 no_cache=1
10386 fi
10387
10388 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10389
10390fi;
10391
10392 eval "$ac_cv_use_image"
10393 if test "$no_cache" != 1; then
10394 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10395 fi
10396
10397 if test "$wxUSE_IMAGE" = yes; then
10398 echo "$as_me:$LINENO: result: yes" >&5
10399echo "${ECHO_T}yes" >&6
10400 else
10401 echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6
10403 fi
10404
10405
10406 enablestring=
10407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10408echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10409 no_cache=0
10410 # Check whether --enable-gif or --disable-gif was given.
10411if test "${enable_gif+set}" = set; then
10412 enableval="$enable_gif"
10413
10414 if test "$enableval" = yes; then
10415 ac_cv_use_gif='wxUSE_GIF=yes'
10416 else
10417 ac_cv_use_gif='wxUSE_GIF=no'
10418 fi
10419
10420else
10421
10422 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10423 if test "x$LINE" != x ; then
10424 eval "DEFAULT_$LINE"
10425 else
10426 no_cache=1
10427 fi
10428
10429 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10430
10431fi;
10432
10433 eval "$ac_cv_use_gif"
10434 if test "$no_cache" != 1; then
10435 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10436 fi
10437
10438 if test "$wxUSE_GIF" = yes; then
10439 echo "$as_me:$LINENO: result: yes" >&5
10440echo "${ECHO_T}yes" >&6
10441 else
10442 echo "$as_me:$LINENO: result: no" >&5
10443echo "${ECHO_T}no" >&6
10444 fi
10445
10446
10447 enablestring=
10448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10449echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10450 no_cache=0
10451 # Check whether --enable-pcx or --disable-pcx was given.
10452if test "${enable_pcx+set}" = set; then
10453 enableval="$enable_pcx"
10454
10455 if test "$enableval" = yes; then
10456 ac_cv_use_pcx='wxUSE_PCX=yes'
10457 else
10458 ac_cv_use_pcx='wxUSE_PCX=no'
10459 fi
10460
10461else
10462
10463 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10464 if test "x$LINE" != x ; then
10465 eval "DEFAULT_$LINE"
10466 else
10467 no_cache=1
10468 fi
10469
10470 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10471
10472fi;
10473
10474 eval "$ac_cv_use_pcx"
10475 if test "$no_cache" != 1; then
10476 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10477 fi
10478
10479 if test "$wxUSE_PCX" = yes; then
10480 echo "$as_me:$LINENO: result: yes" >&5
10481echo "${ECHO_T}yes" >&6
10482 else
10483 echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6
10485 fi
10486
10487
10488 enablestring=
10489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10490echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10491 no_cache=0
10492 # Check whether --enable-iff or --disable-iff was given.
10493if test "${enable_iff+set}" = set; then
10494 enableval="$enable_iff"
10495
10496 if test "$enableval" = yes; then
10497 ac_cv_use_iff='wxUSE_IFF=yes'
10498 else
10499 ac_cv_use_iff='wxUSE_IFF=no'
10500 fi
10501
10502else
10503
10504 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10505 if test "x$LINE" != x ; then
10506 eval "DEFAULT_$LINE"
10507 else
10508 no_cache=1
10509 fi
10510
10511 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10512
10513fi;
10514
10515 eval "$ac_cv_use_iff"
10516 if test "$no_cache" != 1; then
10517 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10518 fi
10519
10520 if test "$wxUSE_IFF" = yes; then
10521 echo "$as_me:$LINENO: result: yes" >&5
10522echo "${ECHO_T}yes" >&6
10523 else
10524 echo "$as_me:$LINENO: result: no" >&5
10525echo "${ECHO_T}no" >&6
10526 fi
10527
10528
10529 enablestring=
10530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10531echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10532 no_cache=0
10533 # Check whether --enable-pnm or --disable-pnm was given.
10534if test "${enable_pnm+set}" = set; then
10535 enableval="$enable_pnm"
10536
10537 if test "$enableval" = yes; then
10538 ac_cv_use_pnm='wxUSE_PNM=yes'
10539 else
10540 ac_cv_use_pnm='wxUSE_PNM=no'
10541 fi
10542
10543else
10544
10545 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10546 if test "x$LINE" != x ; then
10547 eval "DEFAULT_$LINE"
10548 else
10549 no_cache=1
10550 fi
10551
10552 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10553
10554fi;
10555
10556 eval "$ac_cv_use_pnm"
10557 if test "$no_cache" != 1; then
10558 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10559 fi
10560
10561 if test "$wxUSE_PNM" = yes; then
10562 echo "$as_me:$LINENO: result: yes" >&5
10563echo "${ECHO_T}yes" >&6
10564 else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567 fi
10568
10569
10570 enablestring=
10571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10572echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10573 no_cache=0
10574 # Check whether --enable-xpm or --disable-xpm was given.
10575if test "${enable_xpm+set}" = set; then
10576 enableval="$enable_xpm"
10577
10578 if test "$enableval" = yes; then
10579 ac_cv_use_xpm='wxUSE_XPM=yes'
10580 else
10581 ac_cv_use_xpm='wxUSE_XPM=no'
10582 fi
10583
10584else
10585
10586 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10587 if test "x$LINE" != x ; then
10588 eval "DEFAULT_$LINE"
10589 else
10590 no_cache=1
10591 fi
10592
10593 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10594
10595fi;
10596
10597 eval "$ac_cv_use_xpm"
10598 if test "$no_cache" != 1; then
10599 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10600 fi
10601
10602 if test "$wxUSE_XPM" = yes; then
10603 echo "$as_me:$LINENO: result: yes" >&5
10604echo "${ECHO_T}yes" >&6
10605 else
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
10608 fi
10609
10610
10611 enablestring=
10612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10613echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10614 no_cache=0
10615 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10616if test "${enable_ico_cur+set}" = set; then
10617 enableval="$enable_ico_cur"
10618
10619 if test "$enableval" = yes; then
10620 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10621 else
10622 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10623 fi
10624
10625else
10626
10627 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10628 if test "x$LINE" != x ; then
10629 eval "DEFAULT_$LINE"
10630 else
10631 no_cache=1
10632 fi
10633
10634 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10635
10636fi;
10637
10638 eval "$ac_cv_use_ico_cur"
10639 if test "$no_cache" != 1; then
10640 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10641 fi
10642
10643 if test "$wxUSE_ICO_CUR" = yes; then
10644 echo "$as_me:$LINENO: result: yes" >&5
10645echo "${ECHO_T}yes" >&6
10646 else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649 fi
10650
10651
10652fi
10653
10654
10655
ceec2216
RL
10656# Check whether --with-flavour or --without-flavour was given.
10657if test "${with_flavour+set}" = set; then
10658 withval="$with_flavour"
10659 WX_FLAVOUR="$withval"
10660fi;
10661
10662
10663
a848cd7e
SC
10664 enablestring=
10665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10666echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10667 no_cache=0
10668 # Check whether --enable-official_build or --disable-official_build was given.
10669if test "${enable_official_build+set}" = set; then
10670 enableval="$enable_official_build"
10671
10672 if test "$enableval" = yes; then
10673 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10674 else
10675 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10676 fi
10677
10678else
10679
10680 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10681 if test "x$LINE" != x ; then
10682 eval "DEFAULT_$LINE"
10683 else
10684 no_cache=1
10685 fi
10686
10687 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10688
10689fi;
10690
10691 eval "$ac_cv_use_official_build"
10692 if test "$no_cache" != 1; then
10693 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10694 fi
10695
10696 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10697 echo "$as_me:$LINENO: result: yes" >&5
10698echo "${ECHO_T}yes" >&6
10699 else
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
10702 fi
10703
10704# Check whether --enable-vendor or --disable-vendor was given.
10705if test "${enable_vendor+set}" = set; then
10706 enableval="$enable_vendor"
10707 VENDOR="$enableval"
10708fi;
10709if test "x$VENDOR" = "x"; then
10710 VENDOR="custom"
10711fi
10712
a848cd7e
SC
10713
10714
10715
10716 echo "saving argument cache $wx_arg_cache_file"
10717 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10718
10719
10720
10721echo "$as_me:$LINENO: checking for toolkit" >&5
10722echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10723
10724# In Wine, we need to default to MSW, not GTK or MOTIF
10725if test "$wxUSE_WINE" = "yes"; then
10726 DEFAULT_DEFAULT_wxUSE_GTK=0
10727 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10728 DEFAULT_DEFAULT_wxUSE_MSW=1
10729 wxUSE_SHARED=no
10730fi
10731
f597b41c 10732
a848cd7e
SC
10733if test "$wxUSE_GUI" = "yes"; then
10734
10735 if test "$USE_BEOS" = 1; then
10736 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10737echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10738 { (exit 1); exit 1; }; }
10739 fi
10740
10741 if test "$TOOLKIT_GIVEN" = 1; then
10742 for toolkit in `echo $ALL_TOOLKITS`; do
10743 var=wxUSE_$toolkit
10744 eval "value=\$${var}"
f34ca037
MW
10745 if test "x$value" = "xno"; then
10746 eval "$var=0"
10747 elif test "x$value" != "x"; then
10748 eval "$var=1"
10749 fi
10750
10751 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10752 eval "wx${toolkit}_VERSION=$value"
10753 fi
a848cd7e
SC
10754 done
10755 else
10756 for toolkit in `echo $ALL_TOOLKITS`; do
10757 if test "$has_toolkit_in_cache" != 1; then
10758 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10759 else
10760 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10761
10762 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10763 if test "x$version" != "x"; then
10764 eval "wx${toolkit}_VERSION=$version"
10765 fi
a848cd7e
SC
10766 fi
10767 eval "wxUSE_$toolkit=\$${var}"
10768 done
10769 fi
10770
10771 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10772 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10773 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10774
10775 case "${host}" in
10776 *-pc-os2_emx | *-pc-os2-emx )
10777 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10778 esac
10779
10780 case "$NUM_TOOLKITS" in
10781 1)
10782 ;;
10783 0)
10784 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10785echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10786 { (exit 1); exit 1; }; }
10787 ;;
10788 *)
10789 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10790echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10791 { (exit 1); exit 1; }; }
10792 esac
10793
f34ca037
MW
10794 # to be removed when --disable-gtk2 isn't needed
10795 if test "x$wxUSE_GTK2" = "xyes"; then
10796 wxGTK_VERSION=2
10797 elif test "x$wxUSE_GTK2" = "xno"; then
10798 wxGTK_VERSION=1
10799 fi
10800
a848cd7e
SC
10801 for toolkit in `echo $ALL_TOOLKITS`; do
10802 var=wxUSE_$toolkit
10803 eval "value=\$${var}"
10804 if test "x$value" != x; then
10805 cache_var=CACHE_$toolkit
10806 eval "cache=\$${cache_var}"
10807 if test "$cache" = 1; then
10808 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10809 eval "version=\$wx${toolkit}_VERSION"
10810 if test "x$version" != "x"; then
10811 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10812 fi
a848cd7e
SC
10813 fi
10814 if test "$value" = 1; then
10815 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10816 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10817echo "${ECHO_T}$toolkit_echo" >&6
10818 fi
10819 fi
10820 done
10821else
10822 if test "x$host_alias" != "x"; then
10823 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10824echo "${ECHO_T}base ($host_alias hosted) only" >&6
10825 else
10826 echo "$as_me:$LINENO: result: base only" >&5
10827echo "${ECHO_T}base only" >&6
10828 fi
10829fi
10830
10831wants_win32=0
10832doesnt_want_win32=0
10833case "${host}" in
10834 *-*-cygwin*)
10835 if test "$wxUSE_MSW" = 1 ; then
10836 wants_win32=1
7275146d 10837 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10838 else
10839 doesnt_want_win32=1
10840 fi
10841 ;;
10842 *-*-mingw*)
10843 wants_win32=1
10844 ;;
10845esac
10846
10847if test "$wxUSE_WINE" = "yes"; then
10848 wants_win32=1
10849 CC=winegcc
10850 CXX=wineg++
a848cd7e
SC
10851 LDFLAGS_GUI="-mwindows"
10852fi
10853
10854if test "$wants_win32" = 1 ; then
10855 USE_UNIX=0
10856 USE_WIN32=1
10857 cat >>confdefs.h <<\_ACEOF
10858#define __WIN32__ 1
10859_ACEOF
10860
10861 cat >>confdefs.h <<\_ACEOF
10862#define __WIN95__ 1
10863_ACEOF
10864
10865 cat >>confdefs.h <<\_ACEOF
10866#define __WINDOWS__ 1
10867_ACEOF
10868
10869 cat >>confdefs.h <<\_ACEOF
10870#define __GNUWIN32__ 1
10871_ACEOF
10872
10873 cat >>confdefs.h <<\_ACEOF
10874#define STRICT 1
10875_ACEOF
10876
10877 cat >>confdefs.h <<\_ACEOF
10878#define WINVER 0x0400
10879_ACEOF
10880
10881fi
10882if test "$doesnt_want_win32" = 1 ; then
10883 USE_UNIX=1
10884 USE_WIN32=0
10885fi
10886
10887if test "$USE_UNIX" = 1 ; then
10888 wxUSE_UNIX=yes
10889 cat >>confdefs.h <<\_ACEOF
10890#define __UNIX__ 1
10891_ACEOF
10892
10893fi
10894
10895
10896cat >confcache <<\_ACEOF
10897# This file is a shell script that caches the results of configure
10898# tests run on this system so they can be shared between configure
10899# scripts and configure runs, see configure's option --config-cache.
10900# It is not useful on other systems. If it contains results you don't
10901# want to keep, you may remove or edit it.
10902#
10903# config.status only pays attention to the cache file if you give it
10904# the --recheck option to rerun configure.
10905#
10906# `ac_cv_env_foo' variables (set or unset) will be overridden when
10907# loading this file, other *unset* `ac_cv_foo' will be assigned the
10908# following values.
10909
10910_ACEOF
10911
10912# The following way of writing the cache mishandles newlines in values,
10913# but we know of no workaround that is simple, portable, and efficient.
10914# So, don't put newlines in cache variables' values.
10915# Ultrix sh set writes to stderr and can't be redirected directly,
10916# and sets the high bit in the cache file unless we assign to the vars.
10917{
10918 (set) 2>&1 |
10919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10920 *ac_space=\ *)
10921 # `set' does not quote correctly, so add quotes (double-quote
10922 # substitution turns \\\\ into \\, and sed turns \\ into \).
10923 sed -n \
ac1cb8d3
VS
10924 "s/'/'\\\\''/g;
10925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10926 ;;
10927 *)
10928 # `set' quotes correctly as required by POSIX, so do not add quotes.
10929 sed -n \
ac1cb8d3 10930 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10931 ;;
10932 esac;
10933} |
10934 sed '
10935 t clear
10936 : clear
10937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10938 t end
10939 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10940 : end' >>confcache
10941if diff $cache_file confcache >/dev/null 2>&1; then :; else
10942 if test -w $cache_file; then
10943 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10944 cat confcache >$cache_file
10945 else
10946 echo "not updating unwritable cache $cache_file"
10947 fi
10948fi
10949rm -f confcache
10950
a848cd7e 10951CFLAGS=${CFLAGS:=}
6dcfc289
DE
10952
10953
3006edc0 10954
6dcfc289 10955 ac_ext=c
a848cd7e
SC
10956ac_cpp='$CPP $CPPFLAGS'
10957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10959ac_compiler_gnu=$ac_cv_c_compiler_gnu
10960if test -n "$ac_tool_prefix"; then
10961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10962set dummy ${ac_tool_prefix}gcc; ac_word=$2
10963echo "$as_me:$LINENO: checking for $ac_word" >&5
10964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965if test "${ac_cv_prog_CC+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968 if test -n "$CC"; then
10969 ac_cv_prog_CC="$CC" # Let the user override the test.
10970else
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982done
10983done
10984
10985fi
10986fi
10987CC=$ac_cv_prog_CC
10988if test -n "$CC"; then
10989 echo "$as_me:$LINENO: result: $CC" >&5
10990echo "${ECHO_T}$CC" >&6
10991else
10992 echo "$as_me:$LINENO: result: no" >&5
10993echo "${ECHO_T}no" >&6
10994fi
10995
10996fi
10997if test -z "$ac_cv_prog_CC"; then
10998 ac_ct_CC=$CC
10999 # Extract the first word of "gcc", so it can be a program name with args.
11000set dummy gcc; ac_word=$2
11001echo "$as_me:$LINENO: checking for $ac_word" >&5
11002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11003if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005else
11006 if test -n "$ac_ct_CC"; then
11007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11008else
11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
11011do
11012 IFS=$as_save_IFS
11013 test -z "$as_dir" && as_dir=.
11014 for ac_exec_ext in '' $ac_executable_extensions; do
11015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11016 ac_cv_prog_ac_ct_CC="gcc"
11017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 break 2
11019 fi
11020done
11021done
11022
11023fi
11024fi
11025ac_ct_CC=$ac_cv_prog_ac_ct_CC
11026if test -n "$ac_ct_CC"; then
11027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11028echo "${ECHO_T}$ac_ct_CC" >&6
11029else
11030 echo "$as_me:$LINENO: result: no" >&5
11031echo "${ECHO_T}no" >&6
11032fi
11033
11034 CC=$ac_ct_CC
11035else
11036 CC="$ac_cv_prog_CC"
11037fi
11038
11039if test -z "$CC"; then
11040 if test -n "$ac_tool_prefix"; then
11041 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11042set dummy ${ac_tool_prefix}cc; ac_word=$2
11043echo "$as_me:$LINENO: checking for $ac_word" >&5
11044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11045if test "${ac_cv_prog_CC+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else
11048 if test -n "$CC"; then
11049 ac_cv_prog_CC="$CC" # Let the user override the test.
11050else
11051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052for as_dir in $PATH
11053do
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
11056 for ac_exec_ext in '' $ac_executable_extensions; do
11057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11058 ac_cv_prog_CC="${ac_tool_prefix}cc"
11059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 break 2
11061 fi
11062done
11063done
11064
11065fi
11066fi
11067CC=$ac_cv_prog_CC
11068if test -n "$CC"; then
11069 echo "$as_me:$LINENO: result: $CC" >&5
11070echo "${ECHO_T}$CC" >&6
11071else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074fi
11075
11076fi
11077if test -z "$ac_cv_prog_CC"; then
11078 ac_ct_CC=$CC
11079 # Extract the first word of "cc", so it can be a program name with args.
11080set dummy cc; ac_word=$2
11081echo "$as_me:$LINENO: checking for $ac_word" >&5
11082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 if test -n "$ac_ct_CC"; then
11087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11088else
11089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11096 ac_cv_prog_ac_ct_CC="cc"
11097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11099 fi
11100done
11101done
11102
11103fi
11104fi
11105ac_ct_CC=$ac_cv_prog_ac_ct_CC
11106if test -n "$ac_ct_CC"; then
11107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11108echo "${ECHO_T}$ac_ct_CC" >&6
11109else
11110 echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6
11112fi
11113
11114 CC=$ac_ct_CC
11115else
11116 CC="$ac_cv_prog_CC"
11117fi
11118
11119fi
11120if test -z "$CC"; then
11121 # Extract the first word of "cc", so it can be a program name with args.
11122set dummy cc; ac_word=$2
11123echo "$as_me:$LINENO: checking for $ac_word" >&5
11124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11125if test "${ac_cv_prog_CC+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127else
11128 if test -n "$CC"; then
11129 ac_cv_prog_CC="$CC" # Let the user override the test.
11130else
11131 ac_prog_rejected=no
11132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133for as_dir in $PATH
11134do
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11140 ac_prog_rejected=yes
11141 continue
11142 fi
11143 ac_cv_prog_CC="cc"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150if test $ac_prog_rejected = yes; then
11151 # We found a bogon in the path, so make sure we never use it.
11152 set dummy $ac_cv_prog_CC
11153 shift
11154 if test $# != 0; then
11155 # We chose a different compiler from the bogus one.
11156 # However, it has the same basename, so the bogon will be chosen
11157 # first if we set CC to just the basename; use the full file name.
11158 shift
11159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11160 fi
11161fi
11162fi
11163fi
11164CC=$ac_cv_prog_CC
11165if test -n "$CC"; then
11166 echo "$as_me:$LINENO: result: $CC" >&5
11167echo "${ECHO_T}$CC" >&6
11168else
11169 echo "$as_me:$LINENO: result: no" >&5
11170echo "${ECHO_T}no" >&6
11171fi
11172
11173fi
11174if test -z "$CC"; then
11175 if test -n "$ac_tool_prefix"; then
11176 for ac_prog in cl
11177 do
11178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11180echo "$as_me:$LINENO: checking for $ac_word" >&5
11181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11182if test "${ac_cv_prog_CC+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184else
11185 if test -n "$CC"; then
11186 ac_cv_prog_CC="$CC" # Let the user override the test.
11187else
11188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189for as_dir in $PATH
11190do
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11198 fi
11199done
11200done
11201
11202fi
11203fi
11204CC=$ac_cv_prog_CC
11205if test -n "$CC"; then
11206 echo "$as_me:$LINENO: result: $CC" >&5
11207echo "${ECHO_T}$CC" >&6
11208else
11209 echo "$as_me:$LINENO: result: no" >&5
11210echo "${ECHO_T}no" >&6
11211fi
11212
11213 test -n "$CC" && break
11214 done
11215fi
11216if test -z "$CC"; then
11217 ac_ct_CC=$CC
11218 for ac_prog in cl
11219do
11220 # Extract the first word of "$ac_prog", so it can be a program name with args.
11221set dummy $ac_prog; ac_word=$2
11222echo "$as_me:$LINENO: checking for $ac_word" >&5
11223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227 if test -n "$ac_ct_CC"; then
11228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11229else
11230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH
11232do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_prog_ac_ct_CC="$ac_prog"
11238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11240 fi
11241done
11242done
11243
11244fi
11245fi
11246ac_ct_CC=$ac_cv_prog_ac_ct_CC
11247if test -n "$ac_ct_CC"; then
11248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11249echo "${ECHO_T}$ac_ct_CC" >&6
11250else
11251 echo "$as_me:$LINENO: result: no" >&5
11252echo "${ECHO_T}no" >&6
11253fi
11254
11255 test -n "$ac_ct_CC" && break
11256done
11257
11258 CC=$ac_ct_CC
11259fi
11260
11261fi
11262
11263
11264test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11265See \`config.log' for more details." >&5
11266echo "$as_me: error: no acceptable C compiler found in \$PATH
11267See \`config.log' for more details." >&2;}
11268 { (exit 1); exit 1; }; }
11269
11270# Provide some information about the compiler.
11271echo "$as_me:$LINENO:" \
11272 "checking for C compiler version" >&5
11273ac_compiler=`set X $ac_compile; echo $2`
11274{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11275 (eval $ac_compiler --version </dev/null >&5) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }
11279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11280 (eval $ac_compiler -v </dev/null >&5) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }
11284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11285 (eval $ac_compiler -V </dev/null >&5) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }
11289
11290cat >conftest.$ac_ext <<_ACEOF
11291/* confdefs.h. */
11292_ACEOF
11293cat confdefs.h >>conftest.$ac_ext
11294cat >>conftest.$ac_ext <<_ACEOF
11295/* end confdefs.h. */
11296
11297int
11298main ()
11299{
11300
11301 ;
11302 return 0;
11303}
11304_ACEOF
11305ac_clean_files_save=$ac_clean_files
11306ac_clean_files="$ac_clean_files a.out a.exe b.out"
11307# Try to create an executable without -o first, disregard a.out.
11308# It will help us diagnose broken compilers, and finding out an intuition
11309# of exeext.
ac1cb8d3
VS
11310echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11311echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11312ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11313if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11314 (eval $ac_link_default) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; then
11318 # Find the output, starting from the most likely. This scheme is
11319# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11320# resort.
11321
11322# Be careful to initialize this variable, since it used to be cached.
11323# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11324ac_cv_exeext=
11325# b.out is created by i960 compilers.
11326for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11327do
11328 test -f "$ac_file" || continue
11329 case $ac_file in
11330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11331 ;;
a848cd7e 11332 conftest.$ac_ext )
ac1cb8d3
VS
11333 # This is the source file.
11334 ;;
a848cd7e 11335 [ab].out )
ac1cb8d3
VS
11336 # We found the default executable, but exeext='' is most
11337 # certainly right.
11338 break;;
a848cd7e 11339 *.* )
ac1cb8d3
VS
11340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11341 # FIXME: I believe we export ac_cv_exeext for Libtool,
11342 # but it would be cool to find out if it's true. Does anybody
11343 # maintain Libtool? --akim.
11344 export ac_cv_exeext
11345 break;;
a848cd7e 11346 * )
ac1cb8d3 11347 break;;
a848cd7e
SC
11348 esac
11349done
11350else
11351 echo "$as_me: failed program was:" >&5
11352sed 's/^/| /' conftest.$ac_ext >&5
11353
11354{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11355See \`config.log' for more details." >&5
11356echo "$as_me: error: C compiler cannot create executables
11357See \`config.log' for more details." >&2;}
11358 { (exit 77); exit 77; }; }
11359fi
11360
11361ac_exeext=$ac_cv_exeext
11362echo "$as_me:$LINENO: result: $ac_file" >&5
11363echo "${ECHO_T}$ac_file" >&6
11364
11365# Check the compiler produces executables we can run. If not, either
11366# the compiler is broken, or we cross compile.
11367echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11368echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11369# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11370# If not cross compiling, check that we can run a simple program.
11371if test "$cross_compiling" != yes; then
11372 if { ac_try='./$ac_file'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 cross_compiling=no
11379 else
11380 if test "$cross_compiling" = maybe; then
11381 cross_compiling=yes
11382 else
11383 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11384If you meant to cross compile, use \`--host'.
11385See \`config.log' for more details." >&5
11386echo "$as_me: error: cannot run C compiled programs.
11387If you meant to cross compile, use \`--host'.
11388See \`config.log' for more details." >&2;}
11389 { (exit 1); exit 1; }; }
11390 fi
11391 fi
11392fi
11393echo "$as_me:$LINENO: result: yes" >&5
11394echo "${ECHO_T}yes" >&6
11395
11396rm -f a.out a.exe conftest$ac_cv_exeext b.out
11397ac_clean_files=$ac_clean_files_save
11398# Check the compiler produces executables we can run. If not, either
11399# the compiler is broken, or we cross compile.
11400echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11401echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11402echo "$as_me:$LINENO: result: $cross_compiling" >&5
11403echo "${ECHO_T}$cross_compiling" >&6
11404
11405echo "$as_me:$LINENO: checking for suffix of executables" >&5
11406echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; then
11412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11413# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11414# work properly (i.e., refer to `conftest.exe'), while it won't with
11415# `rm'.
11416for ac_file in conftest.exe conftest conftest.*; do
11417 test -f "$ac_file" || continue
11418 case $ac_file in
11419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11421 export ac_cv_exeext
11422 break;;
a848cd7e
SC
11423 * ) break;;
11424 esac
11425done
11426else
11427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11428See \`config.log' for more details." >&5
11429echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11430See \`config.log' for more details." >&2;}
11431 { (exit 1); exit 1; }; }
11432fi
11433
11434rm -f conftest$ac_cv_exeext
11435echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11436echo "${ECHO_T}$ac_cv_exeext" >&6
11437
11438rm -f conftest.$ac_ext
11439EXEEXT=$ac_cv_exeext
11440ac_exeext=$EXEEXT
11441echo "$as_me:$LINENO: checking for suffix of object files" >&5
11442echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11443if test "${ac_cv_objext+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445else
11446 cat >conftest.$ac_ext <<_ACEOF
11447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
11452
11453int
11454main ()
11455{
11456
11457 ;
11458 return 0;
11459}
11460_ACEOF
11461rm -f conftest.o conftest.obj
11462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; then
11467 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11468 case $ac_file in
11469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11471 break;;
11472 esac
11473done
11474else
11475 echo "$as_me: failed program was:" >&5
11476sed 's/^/| /' conftest.$ac_ext >&5
11477
11478{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11479See \`config.log' for more details." >&5
11480echo "$as_me: error: cannot compute suffix of object files: cannot compile
11481See \`config.log' for more details." >&2;}
11482 { (exit 1); exit 1; }; }
11483fi
11484
11485rm -f conftest.$ac_cv_objext conftest.$ac_ext
11486fi
11487echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11488echo "${ECHO_T}$ac_cv_objext" >&6
11489OBJEXT=$ac_cv_objext
11490ac_objext=$OBJEXT
11491echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11492echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11493if test "${ac_cv_c_compiler_gnu+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
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
11503int
11504main ()
11505{
11506#ifndef __GNUC__
11507 choke me
11508#endif
11509
11510 ;
11511 return 0;
11512}
11513_ACEOF
11514rm -f conftest.$ac_objext
11515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11516 (eval $ac_compile) 2>conftest.er1
a848cd7e 11517 ac_status=$?
ac1cb8d3
VS
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
a848cd7e
SC
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
3565d135
RR
11523 { ac_try='test -z "$ac_c_werror_flag"
11524 || test ! -s conftest.err'
ac1cb8d3
VS
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 ac_compiler_gnu=yes
11537else
11538 echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
11541ac_compiler_gnu=no
11542fi
ac1cb8d3 11543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11544ac_cv_c_compiler_gnu=$ac_compiler_gnu
11545
11546fi
11547echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11548echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11549GCC=`test $ac_compiler_gnu = yes && echo yes`
11550ac_test_CFLAGS=${CFLAGS+set}
11551ac_save_CFLAGS=$CFLAGS
8aeeb05c 11552CFLAGS="-g"
a848cd7e
SC
11553echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11554echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11555if test "${ac_cv_prog_cc_g+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564
11565int
11566main ()
11567{
11568
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11575 (eval $ac_compile) 2>conftest.er1
a848cd7e 11576 ac_status=$?
ac1cb8d3
VS
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
a848cd7e
SC
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
3565d135
RR
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
ac1cb8d3
VS
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_prog_cc_g=yes
11596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600ac_cv_prog_cc_g=no
11601fi
ac1cb8d3 11602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11603fi
11604echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11605echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11606if test "$ac_test_CFLAGS" = set; then
11607 CFLAGS=$ac_save_CFLAGS
11608elif test $ac_cv_prog_cc_g = yes; then
11609 if test "$GCC" = yes; then
11610 CFLAGS="-g -O2"
11611 else
11612 CFLAGS="-g"
11613 fi
11614else
11615 if test "$GCC" = yes; then
11616 CFLAGS="-O2"
11617 else
11618 CFLAGS=
11619 fi
11620fi
11621echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11622echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11623if test "${ac_cv_prog_cc_stdc+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625else
11626 ac_cv_prog_cc_stdc=no
11627ac_save_CC=$CC
11628cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
11634#include <stdarg.h>
11635#include <stdio.h>
11636#include <sys/types.h>
11637#include <sys/stat.h>
11638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11639struct buf { int x; };
11640FILE * (*rcsopen) (struct buf *, struct stat *, int);
11641static char *e (p, i)
11642 char **p;
11643 int i;
11644{
11645 return p[i];
11646}
11647static char *f (char * (*g) (char **, int), char **p, ...)
11648{
11649 char *s;
11650 va_list v;
11651 va_start (v,p);
11652 s = g (p, va_arg (v,int));
11653 va_end (v);
11654 return s;
11655}
ac1cb8d3
VS
11656
11657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11658 function prototypes and stuff, but not '\xHH' hex character constants.
11659 These don't provoke an error unfortunately, instead are silently treated
11660 as 'x'. The following induces an error, until -std1 is added to get
11661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11662 array size at least. It's necessary to write '\x00'==0 to get something
11663 that's true only with -std1. */
11664int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11665
a848cd7e
SC
11666int test (int i, double x);
11667struct s1 {int (*f) (int a);};
11668struct s2 {int (*f) (double a);};
11669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11670int argc;
11671char **argv;
11672int
11673main ()
11674{
11675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11676 ;
11677 return 0;
11678}
11679_ACEOF
11680# Don't try gcc -ansi; that turns off useful extensions and
11681# breaks some systems' header files.
11682# AIX -qlanglvl=ansi
11683# Ultrix and OSF/1 -std1
11684# HP-UX 10.20 and later -Ae
11685# HP-UX older versions -Aa -D_HPUX_SOURCE
11686# SVR4 -Xc -D__EXTENSIONS__
11687for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11688do
11689 CC="$ac_save_CC $ac_arg"
11690 rm -f conftest.$ac_objext
11691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11692 (eval $ac_compile) 2>conftest.er1
a848cd7e 11693 ac_status=$?
ac1cb8d3
VS
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
a848cd7e
SC
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } &&
3565d135
RR
11699 { ac_try='test -z "$ac_c_werror_flag"
11700 || test ! -s conftest.err'
ac1cb8d3
VS
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 ac_cv_prog_cc_stdc=$ac_arg
11713break
11714else
11715 echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
11718fi
ac1cb8d3 11719rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11720done
11721rm -f conftest.$ac_ext conftest.$ac_objext
11722CC=$ac_save_CC
11723
11724fi
11725
11726case "x$ac_cv_prog_cc_stdc" in
11727 x|xno)
11728 echo "$as_me:$LINENO: result: none needed" >&5
11729echo "${ECHO_T}none needed" >&6 ;;
11730 *)
11731 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11732echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11733 CC="$CC $ac_cv_prog_cc_stdc" ;;
11734esac
11735
11736# Some people use a C++ compiler to compile C. Since we use `exit',
11737# in C++ we need to declare it. In case someone uses the same compiler
11738# for both compiling C and C++ we need to have the C++ compiler decide
11739# the declaration of exit, since it's the most demanding environment.
11740cat >conftest.$ac_ext <<_ACEOF
11741#ifndef __cplusplus
11742 choke me
11743#endif
11744_ACEOF
11745rm -f conftest.$ac_objext
11746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11747 (eval $ac_compile) 2>conftest.er1
a848cd7e 11748 ac_status=$?
ac1cb8d3
VS
11749 grep -v '^ *+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
a848cd7e
SC
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
3565d135
RR
11754 { ac_try='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
ac1cb8d3
VS
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 for ac_declaration in \
ac1cb8d3 11768 '' \
a848cd7e
SC
11769 'extern "C" void std::exit (int) throw (); using std::exit;' \
11770 'extern "C" void std::exit (int); using std::exit;' \
11771 'extern "C" void exit (int) throw ();' \
11772 'extern "C" void exit (int);' \
11773 'void exit (int);'
11774do
11775 cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
de59c161 11781$ac_declaration
ac1cb8d3 11782#include <stdlib.h>
a848cd7e
SC
11783int
11784main ()
11785{
11786exit (42);
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext
11792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11793 (eval $ac_compile) 2>conftest.er1
a848cd7e 11794 ac_status=$?
ac1cb8d3
VS
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
a848cd7e
SC
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
3565d135
RR
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
ac1cb8d3
VS
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 :
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818continue
11819fi
ac1cb8d3 11820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
11827$ac_declaration
11828int
11829main ()
11830{
11831exit (42);
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext
11837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11838 (eval $ac_compile) 2>conftest.er1
a848cd7e 11839 ac_status=$?
ac1cb8d3
VS
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
a848cd7e
SC
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
3565d135
RR
11845 { ac_try='test -z "$ac_c_werror_flag"
11846 || test ! -s conftest.err'
ac1cb8d3
VS
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 break
11859else
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863fi
ac1cb8d3 11864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11865done
11866rm -f conftest*
11867if test -n "$ac_declaration"; then
11868 echo '#ifdef __cplusplus' >>confdefs.h
11869 echo $ac_declaration >>confdefs.h
11870 echo '#endif' >>confdefs.h
11871fi
11872
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877fi
ac1cb8d3 11878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11879ac_ext=c
11880ac_cpp='$CPP $CPPFLAGS'
11881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11883ac_compiler_gnu=$ac_cv_c_compiler_gnu
11884
ab0ad5f1
VZ
11885
11886
11887 ac_ext=c
11888ac_cpp='$CPP $CPPFLAGS'
11889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11891ac_compiler_gnu=$ac_cv_c_compiler_gnu
11892
11893 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11894echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11895if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897else
11898 cat >conftest.$ac_ext <<_ACEOF
11899/* confdefs.h. */
11900_ACEOF
11901cat confdefs.h >>conftest.$ac_ext
11902cat >>conftest.$ac_ext <<_ACEOF
11903/* end confdefs.h. */
11904
11905int
11906main ()
11907{
11908
11909 #ifndef __INTEL_COMPILER
11910 choke me
11911 #endif
11912
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917rm -f conftest.$ac_objext
11918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11919 (eval $ac_compile) 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
3565d135
RR
11926 { ac_try='test -z "$ac_c_werror_flag"
11927 || test ! -s conftest.err'
ab0ad5f1
VZ
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944bakefile_cv_c_compiler___INTEL_COMPILER=no
11945
11946fi
11947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11948
11949
11950fi
11951echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11952echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11953 ac_ext=c
11954ac_cpp='$CPP $CPPFLAGS'
11955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958
11959 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11960 :; INTELCC=yes
11961 else
11962 :;
11963 fi
11964
11965
11966 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11967 if test "xCC" = "xC"; then
11968 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11969echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11970if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979
11980int
11981main ()
11982{
11983
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext conftest.$ac_ext.o
11989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; then
11994 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11995 case $ac_file in
11996 conftest.$ac_ext.o)
0093c2fc 11997 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11998 ;;
11999 *)
12000 ;;
12001 esac
12002done
12003else
12004 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12005See \`config.log' for more details." >&5
12006echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12007See \`config.log' for more details." >&2;}
12008 { (exit 1); exit 1; }; }
12009
12010fi
12011
12012rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12013
12014fi
0093c2fc
VZ
12015echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12016echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12017if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12018 if test "c" = "c"; then
0093c2fc 12019 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12020 fi
12021 if test "c" = "cxx"; then
0093c2fc 12022 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12023 fi
12024fi
12025
0093c2fc 12026 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12027 unset ac_cv_prog_cc_g
12028 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12029ac_save_CFLAGS=$CFLAGS
8aeeb05c 12030CFLAGS="-g"
480ccd21
DE
12031echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12032echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12033if test "${ac_cv_prog_cc_g+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042
12043int
12044main ()
12045{
12046
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
3565d135
RR
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
480ccd21
DE
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_prog_cc_g=yes
12074else
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
12078ac_cv_prog_cc_g=no
12079fi
12080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081fi
12082echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12083echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12084if test "$ac_test_CFLAGS" = set; then
12085 CFLAGS=$ac_save_CFLAGS
12086elif test $ac_cv_prog_cc_g = yes; then
12087 if test "$GCC" = yes; then
12088 CFLAGS="-g -O2"
12089 else
12090 CFLAGS="-g"
12091 fi
12092else
12093 if test "$GCC" = yes; then
12094 CFLAGS="-O2"
12095 else
12096 CFLAGS=
12097 fi
12098fi
3006edc0 12099 fi
ab0ad5f1 12100 fi
3006edc0
VZ
12101
12102 case `uname -s` in
12103 AIX*)
12104 ac_ext=c
12105ac_cpp='$CPP $CPPFLAGS'
12106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108ac_compiler_gnu=$ac_cv_c_compiler_gnu
12109
12110echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12111echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12112if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114else
12115 cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121
12122int
12123main ()
12124{
12125#ifndef __xlC__
12126 choke me
12127#endif
12128
12129 ;
12130 return 0;
12131}
12132_ACEOF
12133rm -f conftest.$ac_objext
12134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
3565d135
RR
12142 { ac_try='test -z "$ac_c_werror_flag"
12143 || test ! -s conftest.err'
3006edc0
VZ
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
0093c2fc 12155 bakefile_compiler_xlc=yes
3006edc0
VZ
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
0093c2fc 12160bakefile_compiler_xlc=no
3006edc0
VZ
12161fi
12162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12163 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12164
12165fi
0093c2fc
VZ
12166echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12167echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12168
0093c2fc 12169XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12170ac_ext=c
12171ac_cpp='$CPP $CPPFLAGS'
12172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
12176
12177 ;;
12178
12179 Darwin)
12180 ac_ext=c
95986553
DE
12181ac_cpp='$CPP $CPPFLAGS'
12182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184ac_compiler_gnu=$ac_cv_c_compiler_gnu
12185
12186echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12187echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12188if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190else
12191 cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197
12198int
12199main ()
12200{
12201#ifndef __MWERKS__
12202 choke me
12203#endif
12204
12205 ;
12206 return 0;
12207}
12208_ACEOF
12209rm -f conftest.$ac_objext
12210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211 (eval $ac_compile) 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
3565d135
RR
12218 { ac_try='test -z "$ac_c_werror_flag"
12219 || test ! -s conftest.err'
95986553
DE
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 bakefile_compiler_mwerks=yes
12232else
12233 echo "$as_me: failed program was:" >&5
12234sed 's/^/| /' conftest.$ac_ext >&5
12235
12236bakefile_compiler_mwerks=no
12237fi
12238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12239 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12240
12241fi
12242echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12243echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12244
0e6fa1d9 12245MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12246ac_ext=c
12247ac_cpp='$CPP $CPPFLAGS'
12248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250ac_compiler_gnu=$ac_cv_c_compiler_gnu
12251
12252
3006edc0 12253 ac_ext=c
9273ffba
DE
12254ac_cpp='$CPP $CPPFLAGS'
12255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12257ac_compiler_gnu=$ac_cv_c_compiler_gnu
12258
12259echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12260echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12261if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 cat >conftest.$ac_ext <<_ACEOF
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
12270
12271int
12272main ()
12273{
12274#ifndef __xlC__
12275 choke me
12276#endif
12277
12278 ;
12279 return 0;
12280}
12281_ACEOF
12282rm -f conftest.$ac_objext
12283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12284 (eval $ac_compile) 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
3565d135
RR
12291 { ac_try='test -z "$ac_c_werror_flag"
12292 || test ! -s conftest.err'
9273ffba
DE
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
0093c2fc 12304 bakefile_compiler_xlc=yes
9273ffba
DE
12305else
12306 echo "$as_me: failed program was:" >&5
12307sed 's/^/| /' conftest.$ac_ext >&5
12308
0093c2fc 12309bakefile_compiler_xlc=no
9273ffba
DE
12310fi
12311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12312 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12313
12314fi
0093c2fc
VZ
12315echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12316echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12317
0093c2fc 12318XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12319ac_ext=c
12320ac_cpp='$CPP $CPPFLAGS'
12321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325
3006edc0
VZ
12326 ;;
12327
12328 IRIX*)
a848cd7e 12329
6dcfc289 12330
0ad5d837
VZ
12331 ac_ext=c
12332ac_cpp='$CPP $CPPFLAGS'
12333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335ac_compiler_gnu=$ac_cv_c_compiler_gnu
12336
12337 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12338echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12339if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */
12348
12349int
12350main ()
12351{
12352
12353 #ifndef _SGI_COMPILER_VERSION
12354 choke me
12355 #endif
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext
12362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
3565d135
RR
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
0ad5d837
VZ
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12384else
12385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12389
12390fi
12391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392
12393
12394fi
12395echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12396echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12397 ac_ext=c
12398ac_cpp='$CPP $CPPFLAGS'
12399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12401ac_compiler_gnu=$ac_cv_c_compiler_gnu
12402
12403 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12404 :; SGICC=yes
12405 else
12406 :;
12407 fi
12408
12409
3006edc0
VZ
12410 ;;
12411
0093c2fc 12412 HP-UX*)
3006edc0
VZ
12413
12414
12415 ac_ext=c
12416ac_cpp='$CPP $CPPFLAGS'
12417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420
0093c2fc
VZ
12421 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12422echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12423if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425else
12426 cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432
12433int
12434main ()
12435{
12436
0093c2fc 12437 #ifndef __HP_cc
3006edc0
VZ
12438 choke me
12439 #endif
12440
12441 ;
12442 return 0;
12443}
12444_ACEOF
12445rm -f conftest.$ac_objext
12446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
3565d135
RR
12454 { ac_try='test -z "$ac_c_werror_flag"
12455 || test ! -s conftest.err'
3006edc0
VZ
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); }; } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
0093c2fc 12467 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12468else
12469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
0093c2fc 12472bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12473
12474fi
12475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12476
12477
12478fi
0093c2fc
VZ
12479echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12480echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12481 ac_ext=c
12482ac_cpp='$CPP $CPPFLAGS'
12483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
0093c2fc
VZ
12487 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12488 :; HPCC=yes
a1aa0349
VZ
12489 else
12490 :;
12491 fi
12492
12493
12494 ;;
12495
0093c2fc 12496 OSF1)
a1aa0349
VZ
12497
12498
12499 ac_ext=c
12500ac_cpp='$CPP $CPPFLAGS'
12501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12503ac_compiler_gnu=$ac_cv_c_compiler_gnu
12504
0093c2fc
VZ
12505 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12506echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12507if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509else
12510 cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h. */
12516
12517int
12518main ()
12519{
12520
0093c2fc 12521 #ifndef __DECC
a1aa0349
VZ
12522 choke me
12523 #endif
12524
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529rm -f conftest.$ac_objext
12530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
3565d135
RR
12538 { ac_try='test -z "$ac_c_werror_flag"
12539 || test ! -s conftest.err'
a1aa0349
VZ
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest.$ac_objext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
0093c2fc 12551 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12552else
12553 echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
0093c2fc 12556bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12557
12558fi
12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12560
12561
12562fi
0093c2fc
VZ
12563echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12564echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12565 ac_ext=c
12566ac_cpp='$CPP $CPPFLAGS'
12567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12569ac_compiler_gnu=$ac_cv_c_compiler_gnu
12570
0093c2fc
VZ
12571 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12572 :; COMPAQCC=yes
12573 else
12574 :;
12575 fi
12576
12577
12578 ;;
12579
12580 SunOS)
12581
12582
12583 ac_ext=c
12584ac_cpp='$CPP $CPPFLAGS'
12585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12590echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12591if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593else
12594 cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600
12601int
12602main ()
12603{
12604
12605 #ifndef __SUNPRO_C
12606 choke me
12607 #endif
12608
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext
12614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
3565d135
RR
12622 { ac_try='test -z "$ac_c_werror_flag"
12623 || test ! -s conftest.err'
0093c2fc
VZ
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 bakefile_cv_c_compiler___SUNPRO_C=yes
12636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640bakefile_cv_c_compiler___SUNPRO_C=no
12641
12642fi
12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644
12645
12646fi
12647echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12648echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12649 ac_ext=c
12650ac_cpp='$CPP $CPPFLAGS'
12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12656 :; SUNCC=yes
3006edc0
VZ
12657 else
12658 :;
12659 fi
12660
12661
12662 ;;
12663 esac
ab0ad5f1 12664 fi
a9e5b1f0
MW
12665
12666
3006edc0 12667
a848cd7e
SC
12668ac_ext=c
12669ac_cpp='$CPP $CPPFLAGS'
12670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12674echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12675# On Suns, sometimes $CPP names a directory.
12676if test -n "$CPP" && test -d "$CPP"; then
12677 CPP=
12678fi
12679if test -z "$CPP"; then
12680 if test "${ac_cv_prog_CPP+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682else
12683 # Double quotes because CPP needs to be expanded
12684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12685 do
12686 ac_preproc_ok=false
12687for ac_c_preproc_warn_flag in '' yes
12688do
12689 # Use a header file that comes with gcc, so configuring glibc
12690 # with a fresh cross-compiler works.
12691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12692 # <limits.h> exists even on freestanding compilers.
12693 # On the NeXT, cc -E runs the code through the compiler's parser,
12694 # not just through cpp. "Syntax error" is here to catch this case.
12695 cat >conftest.$ac_ext <<_ACEOF
12696/* confdefs.h. */
12697_ACEOF
12698cat confdefs.h >>conftest.$ac_ext
12699cat >>conftest.$ac_ext <<_ACEOF
12700/* end confdefs.h. */
12701#ifdef __STDC__
12702# include <limits.h>
12703#else
12704# include <assert.h>
12705#endif
ac1cb8d3 12706 Syntax error
a848cd7e
SC
12707_ACEOF
12708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } >/dev/null; then
12716 if test -s conftest.err; then
12717 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12719 else
12720 ac_cpp_err=
12721 fi
12722else
12723 ac_cpp_err=yes
12724fi
12725if test -z "$ac_cpp_err"; then
12726 :
12727else
12728 echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 # Broken: fails on valid input.
12732continue
12733fi
12734rm -f conftest.err conftest.$ac_ext
12735
12736 # OK, works on sane cases. Now check whether non-existent headers
12737 # can be detected and how.
12738 cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h. */
12744#include <ac_nonexistent.h>
12745_ACEOF
12746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null; then
12754 if test -s conftest.err; then
12755 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12757 else
12758 ac_cpp_err=
12759 fi
12760else
12761 ac_cpp_err=yes
12762fi
12763if test -z "$ac_cpp_err"; then
12764 # Broken: success on invalid input.
12765continue
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 # Passes both tests.
12771ac_preproc_ok=:
12772break
12773fi
12774rm -f conftest.err conftest.$ac_ext
12775
12776done
12777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12778rm -f conftest.err conftest.$ac_ext
12779if $ac_preproc_ok; then
12780 break
12781fi
12782
12783 done
12784 ac_cv_prog_CPP=$CPP
12785
12786fi
12787 CPP=$ac_cv_prog_CPP
12788else
12789 ac_cv_prog_CPP=$CPP
12790fi
12791echo "$as_me:$LINENO: result: $CPP" >&5
12792echo "${ECHO_T}$CPP" >&6
12793ac_preproc_ok=false
12794for ac_c_preproc_warn_flag in '' yes
12795do
12796 # Use a header file that comes with gcc, so configuring glibc
12797 # with a fresh cross-compiler works.
12798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12799 # <limits.h> exists even on freestanding compilers.
12800 # On the NeXT, cc -E runs the code through the compiler's parser,
12801 # not just through cpp. "Syntax error" is here to catch this case.
12802 cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808#ifdef __STDC__
12809# include <limits.h>
12810#else
12811# include <assert.h>
12812#endif
ac1cb8d3 12813 Syntax error
a848cd7e
SC
12814_ACEOF
12815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } >/dev/null; then
12823 if test -s conftest.err; then
12824 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12826 else
12827 ac_cpp_err=
12828 fi
12829else
12830 ac_cpp_err=yes
12831fi
12832if test -z "$ac_cpp_err"; then
12833 :
12834else
12835 echo "$as_me: failed program was:" >&5
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 # Broken: fails on valid input.
12839continue
12840fi
12841rm -f conftest.err conftest.$ac_ext
12842
12843 # OK, works on sane cases. Now check whether non-existent headers
12844 # can be detected and how.
12845 cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851#include <ac_nonexistent.h>
12852_ACEOF
12853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev/null; then
12861 if test -s conftest.err; then
12862 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12864 else
12865 ac_cpp_err=
12866 fi
12867else
12868 ac_cpp_err=yes
12869fi
12870if test -z "$ac_cpp_err"; then
12871 # Broken: success on invalid input.
12872continue
12873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 # Passes both tests.
12878ac_preproc_ok=:
12879break
12880fi
12881rm -f conftest.err conftest.$ac_ext
12882
12883done
12884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12885rm -f conftest.err conftest.$ac_ext
12886if $ac_preproc_ok; then
12887 :
12888else
12889 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12890See \`config.log' for more details." >&5
12891echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12892See \`config.log' for more details." >&2;}
12893 { (exit 1); exit 1; }; }
12894fi
12895
12896ac_ext=c
12897ac_cpp='$CPP $CPPFLAGS'
12898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900ac_compiler_gnu=$ac_cv_c_compiler_gnu
12901
12902
12903echo "$as_me:$LINENO: checking for egrep" >&5
12904echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12905if test "${ac_cv_prog_egrep+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907else
12908 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12909 then ac_cv_prog_egrep='grep -E'
12910 else ac_cv_prog_egrep='egrep'
12911 fi
12912fi
12913echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12914echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12915 EGREP=$ac_cv_prog_egrep
12916
12917
12918if test $ac_cv_c_compiler_gnu = yes; then
12919 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12920echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12921if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923else
12924 ac_pattern="Autoconf.*'x'"
12925 cat >conftest.$ac_ext <<_ACEOF
12926/* confdefs.h. */
12927_ACEOF
12928cat confdefs.h >>conftest.$ac_ext
12929cat >>conftest.$ac_ext <<_ACEOF
12930/* end confdefs.h. */
12931#include <sgtty.h>
12932Autoconf TIOCGETP
12933_ACEOF
12934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12935 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12936 ac_cv_prog_gcc_traditional=yes
12937else
12938 ac_cv_prog_gcc_traditional=no
12939fi
12940rm -f conftest*
12941
12942
12943 if test $ac_cv_prog_gcc_traditional = no; then
12944 cat >conftest.$ac_ext <<_ACEOF
12945/* confdefs.h. */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
12949/* end confdefs.h. */
12950#include <termio.h>
12951Autoconf TCGETA
12952_ACEOF
12953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12954 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12955 ac_cv_prog_gcc_traditional=yes
12956fi
12957rm -f conftest*
12958
12959 fi
12960fi
12961echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12962echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12963 if test $ac_cv_prog_gcc_traditional = yes; then
12964 CC="$CC -traditional"
12965 fi
12966fi
12967
12968
12969
12970
12971ac_ext=cc
12972ac_cpp='$CXXCPP $CPPFLAGS'
12973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12976
12977
12978CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12979
12980
3006edc0 12981
6dcfc289 12982 ac_ext=cc
a848cd7e
SC
12983ac_cpp='$CXXCPP $CPPFLAGS'
12984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12987if test -n "$ac_tool_prefix"; then
12988 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12989 do
12990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12992echo "$as_me:$LINENO: checking for $ac_word" >&5
12993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12994if test "${ac_cv_prog_CXX+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997 if test -n "$CXX"; then
12998 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12999else
13000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001for as_dir in $PATH
13002do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011done
13012done
13013
13014fi
13015fi
13016CXX=$ac_cv_prog_CXX
13017if test -n "$CXX"; then
13018 echo "$as_me:$LINENO: result: $CXX" >&5
13019echo "${ECHO_T}$CXX" >&6
13020else
13021 echo "$as_me:$LINENO: result: no" >&5
13022echo "${ECHO_T}no" >&6
13023fi
13024
13025 test -n "$CXX" && break
13026 done
13027fi
13028if test -z "$CXX"; then
13029 ac_ct_CXX=$CXX
13030 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13031do
13032 # Extract the first word of "$ac_prog", so it can be a program name with args.
13033set dummy $ac_prog; ac_word=$2
13034echo "$as_me:$LINENO: checking for $ac_word" >&5
13035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13036if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038else
13039 if test -n "$ac_ct_CXX"; then
13040 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13041else
13042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043for as_dir in $PATH
13044do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13049 ac_cv_prog_ac_ct_CXX="$ac_prog"
13050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053done
13054done
13055
13056fi
13057fi
13058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13059if test -n "$ac_ct_CXX"; then
13060 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13061echo "${ECHO_T}$ac_ct_CXX" >&6
13062else
13063 echo "$as_me:$LINENO: result: no" >&5
13064echo "${ECHO_T}no" >&6
13065fi
13066
13067 test -n "$ac_ct_CXX" && break
13068done
13069test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13070
13071 CXX=$ac_ct_CXX
13072fi
13073
13074
13075# Provide some information about the compiler.
13076echo "$as_me:$LINENO:" \
13077 "checking for C++ compiler version" >&5
13078ac_compiler=`set X $ac_compile; echo $2`
13079{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13080 (eval $ac_compiler --version </dev/null >&5) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }
13084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13085 (eval $ac_compiler -v </dev/null >&5) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }
13089{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13090 (eval $ac_compiler -V </dev/null >&5) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }
13094
13095echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13096echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13097if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13099else
13100 cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
13106
13107int
13108main ()
13109{
13110#ifndef __GNUC__
13111 choke me
13112#endif
13113
13114 ;
13115 return 0;
13116}
13117_ACEOF
13118rm -f conftest.$ac_objext
13119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13120 (eval $ac_compile) 2>conftest.er1
a848cd7e 13121 ac_status=$?
ac1cb8d3
VS
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
a848cd7e
SC
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
3565d135
RR
13127 { ac_try='test -z "$ac_cxx_werror_flag"
13128 || test ! -s conftest.err'
ac1cb8d3
VS
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 ac_compiler_gnu=yes
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145ac_compiler_gnu=no
13146fi
ac1cb8d3 13147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13148ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13149
13150fi
13151echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13152echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13153GXX=`test $ac_compiler_gnu = yes && echo yes`
13154ac_test_CXXFLAGS=${CXXFLAGS+set}
13155ac_save_CXXFLAGS=$CXXFLAGS
13156CXXFLAGS="-g"
13157echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13158echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13159if test "${ac_cv_prog_cxx_g+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162 cat >conftest.$ac_ext <<_ACEOF
13163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168
13169int
13170main ()
13171{
13172
13173 ;
13174 return 0;
13175}
13176_ACEOF
13177rm -f conftest.$ac_objext
13178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13179 (eval $ac_compile) 2>conftest.er1
a848cd7e 13180 ac_status=$?
ac1cb8d3
VS
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
a848cd7e
SC
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
3565d135
RR
13186 { ac_try='test -z "$ac_cxx_werror_flag"
13187 || test ! -s conftest.err'
ac1cb8d3
VS
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 ac_cv_prog_cxx_g=yes
13200else
13201 echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
13204ac_cv_prog_cxx_g=no
13205fi
ac1cb8d3 13206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13207fi
13208echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13209echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13210if test "$ac_test_CXXFLAGS" = set; then
13211 CXXFLAGS=$ac_save_CXXFLAGS
13212elif test $ac_cv_prog_cxx_g = yes; then
13213 if test "$GXX" = yes; then
8aeeb05c 13214 CXXFLAGS="-g -O2"
a848cd7e 13215 else
8aeeb05c 13216 CXXFLAGS="-g"
a848cd7e
SC
13217 fi
13218else
13219 if test "$GXX" = yes; then
13220 CXXFLAGS="-O2"
13221 else
13222 CXXFLAGS=
13223 fi
13224fi
13225for ac_declaration in \
ac1cb8d3 13226 '' \
a848cd7e
SC
13227 'extern "C" void std::exit (int) throw (); using std::exit;' \
13228 'extern "C" void std::exit (int); using std::exit;' \
13229 'extern "C" void exit (int) throw ();' \
13230 'extern "C" void exit (int);' \
13231 'void exit (int);'
13232do
13233 cat >conftest.$ac_ext <<_ACEOF
13234/* confdefs.h. */
13235_ACEOF
13236cat confdefs.h >>conftest.$ac_ext
13237cat >>conftest.$ac_ext <<_ACEOF
13238/* end confdefs.h. */
de59c161 13239$ac_declaration
ac1cb8d3 13240#include <stdlib.h>
a848cd7e
SC
13241int
13242main ()
13243{
13244exit (42);
13245 ;
13246 return 0;
13247}
13248_ACEOF
13249rm -f conftest.$ac_objext
13250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13251 (eval $ac_compile) 2>conftest.er1
a848cd7e 13252 ac_status=$?
ac1cb8d3
VS
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
a848cd7e
SC
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
3565d135
RR
13258 { ac_try='test -z "$ac_cxx_werror_flag"
13259 || test ! -s conftest.err'
ac1cb8d3
VS
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 :
13272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276continue
13277fi
ac1cb8d3 13278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13279 cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285$ac_declaration
13286int
13287main ()
13288{
13289exit (42);
13290 ;
13291 return 0;
13292}
13293_ACEOF
13294rm -f conftest.$ac_objext
13295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13296 (eval $ac_compile) 2>conftest.er1
a848cd7e 13297 ac_status=$?
ac1cb8d3
VS
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
a848cd7e
SC
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
3565d135
RR
13303 { ac_try='test -z "$ac_cxx_werror_flag"
13304 || test ! -s conftest.err'
ac1cb8d3
VS
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 break
13317else
13318 echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321fi
ac1cb8d3 13322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13323done
13324rm -f conftest*
13325if test -n "$ac_declaration"; then
13326 echo '#ifdef __cplusplus' >>confdefs.h
13327 echo $ac_declaration >>confdefs.h
13328 echo '#endif' >>confdefs.h
13329fi
13330
13331ac_ext=cc
13332ac_cpp='$CXXCPP $CPPFLAGS'
13333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13336
ab0ad5f1
VZ
13337
13338
13339 ac_ext=cc
13340ac_cpp='$CXXCPP $CPPFLAGS'
13341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13344
13345 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13346echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13347if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349else
13350 cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356
13357int
13358main ()
13359{
13360
13361 #ifndef __INTEL_COMPILER
13362 choke me
13363 #endif
13364
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext
13370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
3565d135
RR
13378 { ac_try='test -z "$ac_cxx_werror_flag"
13379 || test ! -s conftest.err'
ab0ad5f1
VZ
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13397
13398fi
13399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13400
13401
13402fi
13403echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13404echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13405 ac_ext=cc
13406ac_cpp='$CXXCPP $CPPFLAGS'
13407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13410
13411 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13412 :; INTELCXX=yes
13413 else
13414 :;
13415 fi
13416
13417
3006edc0
VZ
13418 if test "x$GCXX" != "xyes"; then
13419 if test "xCXX" = "xC"; then
13420 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13421echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13422if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424else
13425 cat >conftest.$ac_ext <<_ACEOF
13426/* confdefs.h. */
13427_ACEOF
13428cat confdefs.h >>conftest.$ac_ext
13429cat >>conftest.$ac_ext <<_ACEOF
13430/* end confdefs.h. */
13431
13432int
13433main ()
13434{
13435
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext conftest.$ac_ext.o
13441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; then
13446 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13447 case $ac_file in
13448 conftest.$ac_ext.o)
0093c2fc 13449 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13450 ;;
13451 *)
13452 ;;
13453 esac
13454done
13455else
13456 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13457See \`config.log' for more details." >&5
13458echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13459See \`config.log' for more details." >&2;}
13460 { (exit 1); exit 1; }; }
13461
13462fi
13463
13464rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13465
13466fi
0093c2fc
VZ
13467echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13468echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13469if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13470 if test "cxx" = "c"; then
0093c2fc 13471 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13472 fi
13473 if test "cxx" = "cxx"; then
0093c2fc 13474 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13475 fi
13476fi
13477
0093c2fc 13478 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13479 unset ac_cv_prog_cc_g
13480 ac_test_CFLAGS=${CFLAGS+set}
13481ac_save_CFLAGS=$CFLAGS
8aeeb05c 13482CFLAGS="-g"
3006edc0
VZ
13483echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13484echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13485if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487else
13488 cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494
13495int
13496main ()
13497{
13498
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503rm -f conftest.$ac_objext
13504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13505 (eval $ac_compile) 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
3565d135
RR
13512 { ac_try='test -z "$ac_cxx_werror_flag"
13513 || test ! -s conftest.err'
480ccd21
DE
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
3006edc0 13525 ac_cv_prog_cc_g=yes
480ccd21
DE
13526else
13527 echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
3006edc0 13530ac_cv_prog_cc_g=no
480ccd21
DE
13531fi
13532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13533fi
3006edc0
VZ
13534echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13535echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13536if test "$ac_test_CFLAGS" = set; then
13537 CFLAGS=$ac_save_CFLAGS
13538elif test $ac_cv_prog_cc_g = yes; then
13539 if test "$GCC" = yes; then
13540 CFLAGS="-g -O2"
480ccd21 13541 else
3006edc0 13542 CFLAGS="-g"
480ccd21
DE
13543 fi
13544else
3006edc0
VZ
13545 if test "$GCC" = yes; then
13546 CFLAGS="-O2"
480ccd21 13547 else
3006edc0 13548 CFLAGS=
480ccd21
DE
13549 fi
13550fi
3006edc0 13551 fi
ab0ad5f1 13552 fi
3006edc0
VZ
13553
13554 case `uname -s` in
13555 AIX*)
13556 ac_ext=cc
13557ac_cpp='$CXXCPP $CPPFLAGS'
13558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13561
13562echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13563echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13564if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566else
13567 cat >conftest.$ac_ext <<_ACEOF
13568/* confdefs.h. */
13569_ACEOF
13570cat confdefs.h >>conftest.$ac_ext
13571cat >>conftest.$ac_ext <<_ACEOF
13572/* end confdefs.h. */
13573
13574int
13575main ()
13576{
13577#ifndef __xlC__
13578 choke me
13579#endif
13580
13581 ;
13582 return 0;
13583}
13584_ACEOF
13585rm -f conftest.$ac_objext
13586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587 (eval $ac_compile) 2>conftest.er1
13588 ac_status=$?
13589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
3565d135
RR
13594 { ac_try='test -z "$ac_cxx_werror_flag"
13595 || test ! -s conftest.err'
3006edc0
VZ
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest.$ac_objext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
0093c2fc 13607 bakefile_compiler_xlc=yes
3006edc0
VZ
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
0093c2fc 13612bakefile_compiler_xlc=no
3006edc0
VZ
13613fi
13614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13615 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13616
13617fi
0093c2fc
VZ
13618echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13619echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13620
0093c2fc 13621XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13622ac_ext=cc
13623ac_cpp='$CXXCPP $CPPFLAGS'
13624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13627
13628
13629 ;;
13630
13631 Darwin)
13632 ac_ext=cc
95986553
DE
13633ac_cpp='$CXXCPP $CPPFLAGS'
13634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13637
13638echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13639echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13640if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
13643 cat >conftest.$ac_ext <<_ACEOF
13644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
13649
13650int
13651main ()
13652{
13653#ifndef __MWERKS__
13654 choke me
13655#endif
13656
13657 ;
13658 return 0;
13659}
13660_ACEOF
13661rm -f conftest.$ac_objext
13662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
3565d135
RR
13670 { ac_try='test -z "$ac_cxx_werror_flag"
13671 || test ! -s conftest.err'
95986553
DE
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest.$ac_objext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 bakefile_compiler_mwerks=yes
13684else
13685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
13688bakefile_compiler_mwerks=no
13689fi
13690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13692
13693fi
13694echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13695echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13696
0e6fa1d9 13697MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13698ac_ext=cc
13699ac_cpp='$CXXCPP $CPPFLAGS'
13700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13703
13704
3006edc0 13705 ac_ext=cc
9273ffba
DE
13706ac_cpp='$CXXCPP $CPPFLAGS'
13707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13710
13711echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13712echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13713if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722
13723int
13724main ()
13725{
13726#ifndef __xlC__
13727 choke me
13728#endif
13729
13730 ;
13731 return 0;
13732}
13733_ACEOF
13734rm -f conftest.$ac_objext
13735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
3565d135
RR
13743 { ac_try='test -z "$ac_cxx_werror_flag"
13744 || test ! -s conftest.err'
9273ffba
DE
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } &&
13750 { ac_try='test -s conftest.$ac_objext'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
0093c2fc 13756 bakefile_compiler_xlc=yes
9273ffba
DE
13757else
13758 echo "$as_me: failed program was:" >&5
13759sed 's/^/| /' conftest.$ac_ext >&5
13760
0093c2fc 13761bakefile_compiler_xlc=no
9273ffba
DE
13762fi
13763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13764 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13765
13766fi
0093c2fc
VZ
13767echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13768echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13769
0093c2fc 13770XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13771ac_ext=cc
13772ac_cpp='$CXXCPP $CPPFLAGS'
13773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13776
13777
3006edc0
VZ
13778 ;;
13779
13780 IRIX*)
95986553 13781
6dcfc289 13782
0ad5d837
VZ
13783 ac_ext=cc
13784ac_cpp='$CXXCPP $CPPFLAGS'
13785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13788
13789 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13790echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13791if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794 cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
13799/* end confdefs.h. */
13800
13801int
13802main ()
13803{
13804
13805 #ifndef _SGI_COMPILER_VERSION
13806 choke me
13807 #endif
13808
13809 ;
13810 return 0;
13811}
13812_ACEOF
13813rm -f conftest.$ac_objext
13814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
3565d135
RR
13822 { ac_try='test -z "$ac_cxx_werror_flag"
13823 || test ! -s conftest.err'
0ad5d837
VZ
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13836else
13837 echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13841
13842fi
13843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13844
13845
13846fi
13847echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13848echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13849 ac_ext=cc
13850ac_cpp='$CXXCPP $CPPFLAGS'
13851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13854
13855 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13856 :; SGICXX=yes
13857 else
13858 :;
13859 fi
13860
13861
3006edc0
VZ
13862 ;;
13863
0093c2fc 13864 HP-UX*)
3006edc0
VZ
13865
13866
13867 ac_ext=cc
13868ac_cpp='$CXXCPP $CPPFLAGS'
13869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13872
0093c2fc
VZ
13873 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13874echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13875if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878 cat >conftest.$ac_ext <<_ACEOF
13879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884
13885int
13886main ()
13887{
13888
0093c2fc 13889 #ifndef __HP_aCC
3006edc0
VZ
13890 choke me
13891 #endif
13892
13893 ;
13894 return 0;
13895}
13896_ACEOF
13897rm -f conftest.$ac_objext
13898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
3565d135
RR
13906 { ac_try='test -z "$ac_cxx_werror_flag"
13907 || test ! -s conftest.err'
3006edc0
VZ
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest.$ac_objext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
0093c2fc 13919 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
0093c2fc 13924bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13925
13926fi
13927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13928
13929
13930fi
0093c2fc
VZ
13931echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13932echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13933 ac_ext=cc
13934ac_cpp='$CXXCPP $CPPFLAGS'
13935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13938
0093c2fc
VZ
13939 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13940 :; HPCXX=yes
a1aa0349
VZ
13941 else
13942 :;
13943 fi
13944
13945
13946 ;;
13947
0093c2fc 13948 OSF1)
a1aa0349
VZ
13949
13950
13951 ac_ext=cc
13952ac_cpp='$CXXCPP $CPPFLAGS'
13953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13956
0093c2fc
VZ
13957 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13958echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13959if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961else
13962 cat >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
13969int
13970main ()
13971{
13972
0093c2fc 13973 #ifndef __DECCXX
a1aa0349
VZ
13974 choke me
13975 #endif
13976
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
13982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
3565d135
RR
13990 { ac_try='test -z "$ac_cxx_werror_flag"
13991 || test ! -s conftest.err'
a1aa0349
VZ
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
0093c2fc 14003 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14004else
14005 echo "$as_me: failed program was:" >&5
14006sed 's/^/| /' conftest.$ac_ext >&5
14007
0093c2fc 14008bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14009
14010fi
14011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14012
14013
14014fi
0093c2fc
VZ
14015echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14016echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14017 ac_ext=cc
14018ac_cpp='$CXXCPP $CPPFLAGS'
14019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14022
0093c2fc
VZ
14023 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14024 :; COMPAQCXX=yes
14025 else
14026 :;
14027 fi
14028
14029
14030 ;;
14031
14032 SunOS)
14033
14034
14035 ac_ext=cc
14036ac_cpp='$CXXCPP $CPPFLAGS'
14037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14040
14041 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14042echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14043if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045else
14046 cat >conftest.$ac_ext <<_ACEOF
14047/* confdefs.h. */
14048_ACEOF
14049cat confdefs.h >>conftest.$ac_ext
14050cat >>conftest.$ac_ext <<_ACEOF
14051/* end confdefs.h. */
14052
14053int
14054main ()
14055{
14056
14057 #ifndef __SUNPRO_CC
14058 choke me
14059 #endif
14060
14061 ;
14062 return 0;
14063}
14064_ACEOF
14065rm -f conftest.$ac_objext
14066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
3565d135
RR
14074 { ac_try='test -z "$ac_cxx_werror_flag"
14075 || test ! -s conftest.err'
0093c2fc
VZ
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; } &&
14081 { ac_try='test -s conftest.$ac_objext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14088else
14089 echo "$as_me: failed program was:" >&5
14090sed 's/^/| /' conftest.$ac_ext >&5
14091
14092bakefile_cv_cxx_compiler___SUNPRO_CC=no
14093
14094fi
14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096
14097
14098fi
14099echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14100echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14101 ac_ext=cc
14102ac_cpp='$CXXCPP $CPPFLAGS'
14103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14106
14107 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14108 :; SUNCXX=yes
3006edc0
VZ
14109 else
14110 :;
ab0ad5f1 14111 fi
a9e5b1f0
MW
14112
14113
3006edc0
VZ
14114 ;;
14115 esac
14116 fi
14117
14118
14119
a848cd7e
SC
14120ac_ext=c
14121ac_cpp='$CPP $CPPFLAGS'
14122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124ac_compiler_gnu=$ac_cv_c_compiler_gnu
14125
14126
a848cd7e
SC
14127if test -n "$ac_tool_prefix"; then
14128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14129set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14130echo "$as_me:$LINENO: checking for $ac_word" >&5
14131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14132if test "${ac_cv_prog_RANLIB+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135 if test -n "$RANLIB"; then
14136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14148 fi
14149done
14150done
14151
14152fi
14153fi
14154RANLIB=$ac_cv_prog_RANLIB
14155if test -n "$RANLIB"; then
14156 echo "$as_me:$LINENO: result: $RANLIB" >&5
14157echo "${ECHO_T}$RANLIB" >&6
14158else
14159 echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6
14161fi
14162
14163fi
14164if test -z "$ac_cv_prog_RANLIB"; then
14165 ac_ct_RANLIB=$RANLIB
14166 # Extract the first word of "ranlib", so it can be a program name with args.
14167set dummy ranlib; ac_word=$2
14168echo "$as_me:$LINENO: checking for $ac_word" >&5
14169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14170if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172else
14173 if test -n "$ac_ct_RANLIB"; then
14174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14175else
14176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177for as_dir in $PATH
14178do
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_ac_ct_RANLIB="ranlib"
14184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14186 fi
14187done
14188done
14189
14190 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14191fi
14192fi
14193ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14194if test -n "$ac_ct_RANLIB"; then
14195 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14196echo "${ECHO_T}$ac_ct_RANLIB" >&6
14197else
14198 echo "$as_me:$LINENO: result: no" >&5
14199echo "${ECHO_T}no" >&6
14200fi
14201
14202 RANLIB=$ac_ct_RANLIB
14203else
14204 RANLIB="$ac_cv_prog_RANLIB"
14205fi
14206
14207
8c80d384
DE
14208if test -n "$ac_tool_prefix"; then
14209 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14210set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14211echo "$as_me:$LINENO: checking for $ac_word" >&5
14212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14213if test "${ac_cv_prog_AR+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 if test -n "$AR"; then
14217 ac_cv_prog_AR="$AR" # Let the user override the test.
14218else
14219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
14224 for ac_exec_ext in '' $ac_executable_extensions; do
14225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14226 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14228 break 2
14229 fi
14230done
14231done
14232
14233fi
14234fi
14235AR=$ac_cv_prog_AR
14236if test -n "$AR"; then
14237 echo "$as_me:$LINENO: result: $AR" >&5
14238echo "${ECHO_T}$AR" >&6
14239else
14240 echo "$as_me:$LINENO: result: no" >&5
14241echo "${ECHO_T}no" >&6
14242fi
14243
8c80d384
DE
14244fi
14245if test -z "$ac_cv_prog_AR"; then
14246 ac_ct_AR=$AR
14247 # Extract the first word of "ar", so it can be a program name with args.
14248set dummy ar; ac_word=$2
14249echo "$as_me:$LINENO: checking for $ac_word" >&5
14250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14251if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253else
14254 if test -n "$ac_ct_AR"; then
14255 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14256else
14257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258for as_dir in $PATH
14259do
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_ac_ct_AR="ar"
14265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268done
14269done
14270
14271fi
14272fi
14273ac_ct_AR=$ac_cv_prog_ac_ct_AR
14274if test -n "$ac_ct_AR"; then
14275 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14276echo "${ECHO_T}$ac_ct_AR" >&6
14277else
14278 echo "$as_me:$LINENO: result: no" >&5
14279echo "${ECHO_T}no" >&6
14280fi
14281
14282 AR=$ac_ct_AR
14283else
14284 AR="$ac_cv_prog_AR"
14285fi
14286
a848cd7e 14287if test "x$AR" = "x" ; then
77ffb593
JS
14288 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14289echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14290 { (exit 1); exit 1; }; }
14291fi
14292
14293# Find a good install program. We prefer a C program (faster),
14294# so one script is as good as another. But avoid the broken or
14295# incompatible versions:
14296# SysV /etc/install, /usr/sbin/install
14297# SunOS /usr/etc/install
14298# IRIX /sbin/install
14299# AIX /bin/install
14300# AmigaOS /C/install, which installs bootblocks on floppy discs
14301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14302# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14304# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14305# ./install, which can be erroneously created by make from ./install.sh.
14306echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14307echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14308if test -z "$INSTALL"; then
14309if test "${ac_cv_path_install+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311else
14312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313for as_dir in $PATH
14314do
14315 IFS=$as_save_IFS
14316 test -z "$as_dir" && as_dir=.
14317 # Account for people who put trailing slashes in PATH elements.
14318case $as_dir/ in
14319 ./ | .// | /cC/* | \
14320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14321 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14322 /usr/ucb/* ) ;;
14323 *)
14324 # OSF1 and SCO ODT 3.0 have their own names for install.
14325 # Don't use installbsd from OSF since it installs stuff as root
14326 # by default.
14327 for ac_prog in ginstall scoinst install; do
14328 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14329 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14330 if test $ac_prog = install &&
14331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14332 # AIX install. It has an incompatible calling convention.
14333 :
14334 elif test $ac_prog = install &&
14335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14336 # program-specific install script used by HP pwplus--don't use.
14337 :
14338 else
14339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14340 break 3
14341 fi
14342 fi
a848cd7e
SC
14343 done
14344 done
14345 ;;
14346esac
14347done
14348
14349
14350fi
14351 if test "${ac_cv_path_install+set}" = set; then
14352 INSTALL=$ac_cv_path_install
14353 else
14354 # As a last resort, use the slow shell script. We don't cache a
14355 # path for INSTALL within a source directory, because that will
14356 # break other packages using the cache if that directory is
14357 # removed, or if the path is relative.
14358 INSTALL=$ac_install_sh
14359 fi
14360fi
14361echo "$as_me:$LINENO: result: $INSTALL" >&5
14362echo "${ECHO_T}$INSTALL" >&6
14363
14364# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14365# It thinks the first close brace ends the variable substitution.
14366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14367
14368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14369
14370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14371
14372
14373case ${INSTALL} in
14374 /* ) # Absolute
14375 ;;
14376 ?:* ) # Drive letter, considered as absolute.
14377 ;;
14378 *)
14379 INSTALL=`pwd`/${INSTALL} ;;
14380esac
14381
a848cd7e
SC
14382
14383case "${host}" in
14384
cfda0ea8 14385 *-*-darwin* )
a848cd7e
SC
14386 INSTALL_PROGRAM="cp -fp"
14387 INSTALL_DATA="cp -fp"
14388 ;;
14389 *)
14390 ;;
14391esac
14392
8c80d384
DE
14393if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14395set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14396echo "$as_me:$LINENO: checking for $ac_word" >&5
14397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14398if test "${ac_cv_prog_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 if test -n "$STRIP"; then
14402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14403else
14404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in $PATH
14406do
14407 IFS=$as_save_IFS
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 break 2
14414 fi
14415done
14416done
14417
a848cd7e
SC
14418fi
14419fi
14420STRIP=$ac_cv_prog_STRIP
14421if test -n "$STRIP"; then
14422 echo "$as_me:$LINENO: result: $STRIP" >&5
14423echo "${ECHO_T}$STRIP" >&6
14424else
14425 echo "$as_me:$LINENO: result: no" >&5
14426echo "${ECHO_T}no" >&6
14427fi
14428
8c80d384
DE
14429fi
14430if test -z "$ac_cv_prog_STRIP"; then
14431 ac_ct_STRIP=$STRIP
14432 # Extract the first word of "strip", so it can be a program name with args.
14433set dummy strip; ac_word=$2
14434echo "$as_me:$LINENO: checking for $ac_word" >&5
14435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14436if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438else
14439 if test -n "$ac_ct_STRIP"; then
14440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14441else
14442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443for as_dir in $PATH
14444do
14445 IFS=$as_save_IFS
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449 ac_cv_prog_ac_ct_STRIP="strip"
14450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14451 break 2
14452 fi
14453done
14454done
14455
14456 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14457fi
14458fi
14459ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14460if test -n "$ac_ct_STRIP"; then
14461 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14462echo "${ECHO_T}$ac_ct_STRIP" >&6
14463else
14464 echo "$as_me:$LINENO: result: no" >&5
14465echo "${ECHO_T}no" >&6
14466fi
14467
14468 STRIP=$ac_ct_STRIP
14469else
14470 STRIP="$ac_cv_prog_STRIP"
14471fi
14472
14473
14474if test "$wxUSE_WINE" = "yes"; then
14475 if test -n "$ac_tool_prefix"; then
14476 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14477set dummy ${ac_tool_prefix}wrc; ac_word=$2
14478echo "$as_me:$LINENO: checking for $ac_word" >&5
14479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14480if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482else
8ced02f6
DE
14483 if test -n "$WINDRES"; then
14484 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14485else
14486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487for as_dir in $PATH
14488do
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14493 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14496 fi
14497done
14498done
14499
14500fi
14501fi
8ced02f6
DE
14502WINDRES=$ac_cv_prog_WINDRES
14503if test -n "$WINDRES"; then
14504 echo "$as_me:$LINENO: result: $WINDRES" >&5
14505echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14506else
14507 echo "$as_me:$LINENO: result: no" >&5
14508echo "${ECHO_T}no" >&6
14509fi
14510
14511fi
8ced02f6
DE
14512if test -z "$ac_cv_prog_WINDRES"; then
14513 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14514 # Extract the first word of "wrc", so it can be a program name with args.
14515set dummy wrc; ac_word=$2
14516echo "$as_me:$LINENO: checking for $ac_word" >&5
14517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14518if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520else
8ced02f6
DE
14521 if test -n "$ac_ct_WINDRES"; then
14522 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14523else
14524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14525for as_dir in $PATH
14526do
14527 IFS=$as_save_IFS
14528 test -z "$as_dir" && as_dir=.
14529 for ac_exec_ext in '' $ac_executable_extensions; do
14530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14531 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14533 break 2
14534 fi
14535done
14536done
14537
14538fi
14539fi
8ced02f6
DE
14540ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14541if test -n "$ac_ct_WINDRES"; then
14542 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14543echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14544else
14545 echo "$as_me:$LINENO: result: no" >&5
14546echo "${ECHO_T}no" >&6
14547fi
14548
8ced02f6 14549 WINDRES=$ac_ct_WINDRES
8c80d384 14550else
8ced02f6 14551 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14552fi
14553
004ee6da 14554 RESCOMP="$WINDRES"
8c80d384
DE
14555else
14556 case "${host}" in
14557 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14558 if test -n "$ac_tool_prefix"; then
14559 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14560set dummy ${ac_tool_prefix}windres; ac_word=$2
14561echo "$as_me:$LINENO: checking for $ac_word" >&5
14562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14563if test "${ac_cv_prog_WINDRES+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
14566 if test -n "$WINDRES"; then
14567 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14568else
14569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570for as_dir in $PATH
14571do
14572 IFS=$as_save_IFS
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14576 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14578 break 2
14579 fi
14580done
14581done
14582
14583fi
14584fi
14585WINDRES=$ac_cv_prog_WINDRES
14586if test -n "$WINDRES"; then
14587 echo "$as_me:$LINENO: result: $WINDRES" >&5
14588echo "${ECHO_T}$WINDRES" >&6
14589else
14590 echo "$as_me:$LINENO: result: no" >&5
14591echo "${ECHO_T}no" >&6
14592fi
14593
14594fi
14595if test -z "$ac_cv_prog_WINDRES"; then
14596 ac_ct_WINDRES=$WINDRES
14597 # Extract the first word of "windres", so it can be a program name with args.
14598set dummy windres; ac_word=$2
14599echo "$as_me:$LINENO: checking for $ac_word" >&5
14600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14601if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603else
14604 if test -n "$ac_ct_WINDRES"; then
14605 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14606else
14607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608for as_dir in $PATH
14609do
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_prog_ac_ct_WINDRES="windres"
14615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14617 fi
14618done
14619done
14620
14621fi
14622fi
14623ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14624if test -n "$ac_ct_WINDRES"; then
14625 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14626echo "${ECHO_T}$ac_ct_WINDRES" >&6
14627else
14628 echo "$as_me:$LINENO: result: no" >&5
14629echo "${ECHO_T}no" >&6
14630fi
14631
14632 WINDRES=$ac_ct_WINDRES
14633else
14634 WINDRES="$ac_cv_prog_WINDRES"
14635fi
14636
14637 RESCOMP="$WINDRES"
14638 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14639 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14640set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14641echo "$as_me:$LINENO: checking for $ac_word" >&5
14642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14643if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
14646 if test -n "$DLLTOOL"; then
14647 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14648else
14649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14650for as_dir in $PATH
14651do
14652 IFS=$as_save_IFS
14653 test -z "$as_dir" && as_dir=.
14654 for ac_exec_ext in '' $ac_executable_extensions; do
14655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14656 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14658 break 2
14659 fi
14660done
14661done
14662
14663fi
14664fi
14665DLLTOOL=$ac_cv_prog_DLLTOOL
14666if test -n "$DLLTOOL"; then
14667 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14668echo "${ECHO_T}$DLLTOOL" >&6
14669else
14670 echo "$as_me:$LINENO: result: no" >&5
14671echo "${ECHO_T}no" >&6
14672fi
14673
14674fi
14675if test -z "$ac_cv_prog_DLLTOOL"; then
14676 ac_ct_DLLTOOL=$DLLTOOL
14677 # Extract the first word of "dlltool", so it can be a program name with args.
14678set dummy dlltool; ac_word=$2
14679echo "$as_me:$LINENO: checking for $ac_word" >&5
14680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14681if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683else
14684 if test -n "$ac_ct_DLLTOOL"; then
14685 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14686else
14687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688for as_dir in $PATH
14689do
14690 IFS=$as_save_IFS
14691 test -z "$as_dir" && as_dir=.
14692 for ac_exec_ext in '' $ac_executable_extensions; do
14693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14694 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14696 break 2
14697 fi
14698done
14699done
14700
14701fi
14702fi
14703ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14704if test -n "$ac_ct_DLLTOOL"; then
14705 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14706echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14707else
14708 echo "$as_me:$LINENO: result: no" >&5
14709echo "${ECHO_T}no" >&6
14710fi
14711
14712 DLLTOOL=$ac_ct_DLLTOOL
14713else
14714 DLLTOOL="$ac_cv_prog_DLLTOOL"
14715fi
14716
14717 ;;
14718 esac
14719fi
a848cd7e
SC
14720
14721echo "$as_me:$LINENO: checking if make is GNU make" >&5
14722echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14723if test "${wx_cv_prog_makeisgnu+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725else
14726
14727 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14728 egrep -s GNU > /dev/null); then
14729 wx_cv_prog_makeisgnu="yes"
14730 else
14731 wx_cv_prog_makeisgnu="no"
14732 fi
14733
14734fi
14735echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14736echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14737
14738if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14739 IF_GNU_MAKE=""
14740else
14741 IF_GNU_MAKE="#"
14742fi
14743
14744
14745
14746if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14747echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14748echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14749if test "${wx_cv_prog_makevpath+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752
14753cat - << EOF > confMake
14754check : file
14755 cp \$? \$@
14756 cp \$? final_file
14757EOF
14758
14759if test ! -d sub ; then
14760 mkdir sub
14761fi
14762echo dummy > sub/file
14763${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14764RESULT=$?
14765rm -f sub/file check final_file confMake
14766rmdir sub
14767if test "$RESULT" = 0; then
14768 wx_cv_prog_makevpath="yes"
14769else
14770 wx_cv_prog_makevpath="no"
14771fi
14772
14773fi
14774echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14775echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14776
14777if test "x$wx_cv_prog_makevpath" != "xyes"; then
14778{ { echo "$as_me:$LINENO: error:
14779You need a make-utility that is able to use the variable
14780VPATH correctly.
14781If your version of make does not support VPATH correctly,
14782please install GNU-make (possibly as gmake), and start
14783configure with the following command:
14784export MAKE=gmake; ./configure for sh-type shells
14785setenv MAKE gmake; ./configure for csh-type shells
14786Also please do remember to use gmake in this case every time
14787you are trying to compile.
14788" >&5
14789echo "$as_me: error:
14790You need a make-utility that is able to use the variable
14791VPATH correctly.
14792If your version of make does not support VPATH correctly,
14793please install GNU-make (possibly as gmake), and start
14794configure with the following command:
14795export MAKE=gmake; ./configure for sh-type shells
14796setenv MAKE gmake; ./configure for csh-type shells
14797Also please do remember to use gmake in this case every time
14798you are trying to compile.
14799" >&2;}
14800 { (exit 1); exit 1; }; }
14801fi fi
14802echo "$as_me:$LINENO: checking whether ln -s works" >&5
14803echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14804LN_S=$as_ln_s
14805if test "$LN_S" = "ln -s"; then
14806 echo "$as_me:$LINENO: result: yes" >&5
14807echo "${ECHO_T}yes" >&6
14808else
14809 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14810echo "${ECHO_T}no, using $LN_S" >&6
14811fi
14812
14813
bcaab0f9
MW
14814for ac_prog in lndir
14815do
14816 # Extract the first word of "$ac_prog", so it can be a program name with args.
14817set dummy $ac_prog; ac_word=$2
14818echo "$as_me:$LINENO: checking for $ac_word" >&5
14819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14820if test "${ac_cv_prog_LNDIR+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822else
14823 if test -n "$LNDIR"; then
14824 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14825else
14826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827for as_dir in $PATH
14828do
14829 IFS=$as_save_IFS
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_LNDIR="$ac_prog"
14834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14835 break 2
14836 fi
14837done
14838done
14839
14840fi
14841fi
14842LNDIR=$ac_cv_prog_LNDIR
14843if test -n "$LNDIR"; then
14844 echo "$as_me:$LINENO: result: $LNDIR" >&5
14845echo "${ECHO_T}$LNDIR" >&6
14846else
14847 echo "$as_me:$LINENO: result: no" >&5
14848echo "${ECHO_T}no" >&6
14849fi
14850
14851 test -n "$LNDIR" && break
14852done
91dea314 14853test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14854
14855
14856
a848cd7e 14857
2113bc77 14858if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14859 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14860fi
14861
4d7ec9f1
DE
14862case "${host}" in
14863 powerpc-*-darwin* )
14864 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14865echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872
14873int
14874main ()
14875{
14876#ifndef __POWERPC__
14877 choke me for lack of PowerPC
14878#endif
14879
14880 ;
14881 return 0;
14882}
14883_ACEOF
14884rm -f conftest.$ac_objext
14885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
3565d135
RR
14893 { ac_try='test -z "$ac_c_werror_flag"
14894 || test ! -s conftest.err'
4d7ec9f1
DE
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; } &&
14900 { ac_try='test -s conftest.$ac_objext'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 echo "$as_me:$LINENO: result: yes" >&5
14907echo "${ECHO_T}yes" >&6
14908else
14909 echo "$as_me: failed program was:" >&5
14910sed 's/^/| /' conftest.$ac_ext >&5
14911
14912echo "$as_me:$LINENO: result: no" >&5
14913echo "${ECHO_T}no" >&6
14914 cat >>confdefs.h <<\_ACEOF
14915#define __POWERPC__ 1
14916_ACEOF
14917
14918
14919fi
14920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14921 ;;
14922esac
14923
14924case "${host}" in
14925 *-*-darwin* )
4d7ec9f1
DE
14926 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14927echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
14934#include <CoreFoundation/CFBase.h>
14935
14936int
14937main ()
14938{
14939
14940 ;
14941 return 0;
14942}
14943_ACEOF
14944rm -f conftest.$ac_objext
14945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>conftest.er1
14947 ac_status=$?
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
3565d135
RR
14953 { ac_try='test -z "$ac_c_werror_flag"
14954 || test ! -s conftest.err'
4d7ec9f1
DE
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest.$ac_objext'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }; then
14966 echo "$as_me:$LINENO: result: yes" >&5
14967echo "${ECHO_T}yes" >&6
14968else
14969 echo "$as_me: failed program was:" >&5
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972echo "$as_me:$LINENO: result: no" >&5
14973echo "${ECHO_T}no" >&6
14974 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14975echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14976 cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982#define __CF_USE_FRAMEWORK_INCLUDES__
14983#include <CoreFoundation/CFBase.h>
14984
14985int
14986main ()
14987{
14988
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext
14994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
3565d135
RR
15002 { ac_try='test -z "$ac_c_werror_flag"
15003 || test ! -s conftest.err'
4d7ec9f1
DE
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 echo "$as_me:$LINENO: result: yes" >&5
15016echo "${ECHO_T}yes" >&6
c92ad099 15017 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15023See \`config.log' for more details." >&5
15024echo "$as_me: error: no. CoreFoundation not available.
15025See \`config.log' for more details." >&2;}
15026 { (exit 1); exit 1; }; }
15027
15028fi
15029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15030
15031
15032fi
15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034 ;;
15035esac
15036
a848cd7e
SC
15037case "${host}" in
15038 *-pc-os2_emx | *-pc-os2-emx )
15039 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15040 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15041echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15042if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044else
15045 ac_check_lib_save_LIBS=$LIBS
15046LIBS="-lcExt $LIBS"
15047cat >conftest.$ac_ext <<_ACEOF
15048/* confdefs.h. */
15049_ACEOF
15050cat confdefs.h >>conftest.$ac_ext
15051cat >>conftest.$ac_ext <<_ACEOF
15052/* end confdefs.h. */
15053
15054/* Override any gcc2 internal prototype to avoid an error. */
15055#ifdef __cplusplus
15056extern "C"
15057#endif
15058/* We use char because int might match the return type of a gcc2
15059 builtin and then its argument prototype would still apply. */
15060char drand48 ();
15061int
15062main ()
15063{
15064drand48 ();
15065 ;
15066 return 0;
15067}
15068_ACEOF
15069rm -f conftest.$ac_objext conftest$ac_exeext
15070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15071 (eval $ac_link) 2>conftest.er1
a848cd7e 15072 ac_status=$?
ac1cb8d3
VS
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
a848cd7e
SC
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } &&
3565d135
RR
15078 { ac_try='test -z "$ac_c_werror_flag"
15079 || test ! -s conftest.err'
ac1cb8d3
VS
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_lib_cExt_drand48=yes
15092else
15093 echo "$as_me: failed program was:" >&5
15094sed 's/^/| /' conftest.$ac_ext >&5
15095
15096ac_cv_lib_cExt_drand48=no
15097fi
ac1cb8d3
VS
15098rm -f conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15100LIBS=$ac_check_lib_save_LIBS
15101fi
15102echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15103echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15104if test $ac_cv_lib_cExt_drand48 = yes; then
15105 LIBS="$LIBS -lcExt"
15106fi
15107
15108 else
15109 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15110 fi
69120ee4
VZ
15111 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15112echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15113if test "${wx_cv_gccversion+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
15116
391a765e
VS
15117 if test "$cross_compiling" = yes; then
15118 wx_cv_gccversion="EMX2"
15119
15120else
15121 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127
391a765e 15128 #include <stdio.h>
a848cd7e 15129
391a765e
VS
15130 int main()
15131 {
15132 FILE *f=fopen("conftestval", "w");
15133 if (!f) exit(1);
15134 fprintf(f,
a848cd7e 15135 #if (__GNUC__ < 3)
391a765e
VS
15136 "EMX2"
15137 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15138 "EMX3"
15139 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15140 "Innotek5"
15141 #else
15142 "Innotek6"
a848cd7e 15143 #endif
391a765e
VS
15144 );
15145 exit(0);
15146 }
a848cd7e 15147
a848cd7e 15148_ACEOF
391a765e
VS
15149rm -f conftest$ac_exeext
15150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
ac1cb8d3
VS
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
391a765e 15160 wx_cv_gccversion=`cat conftestval`
a848cd7e 15161else
391a765e
VS
15162 echo "$as_me: program exited with status $ac_status" >&5
15163echo "$as_me: failed program was:" >&5
a848cd7e
SC
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
391a765e
VS
15166( exit $ac_status )
15167wx_cv_gccversion="EMX2"
a848cd7e 15168fi
391a765e 15169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15170fi
a848cd7e
SC
15171
15172fi
15173echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15174echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15175 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15176 LIBS="$LIBS -lstdcpp"
15177 LDFLAGS="$LDFLAGS -Zsysv-signals"
15178 else
391a765e 15179 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15180 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15181 LDFLAGS="$LDFLAGS -Zsysv-signals"
15182 else
15183 LIBS="$LIBS -lstdc++"
15184 fi
15185 fi
94acd38e
DE
15186 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15187 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15188echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15189 wxUSE_OMF=yes
2da0c077 15190 enable_omf=yes
a848cd7e
SC
15191 fi
15192 ;;
15193 *)
15194
15195
15196
15197 ac_ext=cc
15198ac_cpp='$CXXCPP $CPPFLAGS'
15199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15202
15203
95986553 15204 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15205echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15206if test "${ac_cv_string_strcasecmp+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208else
15209
15210 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
15216
15217 #include <string.h>
15218
15219int
15220main ()
15221{
15222
15223 strcasecmp("foo", "bar");
15224
15225 ;
15226 return 0;
15227}
15228_ACEOF
15229rm -f conftest.$ac_objext conftest$ac_exeext
15230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15231 (eval $ac_link) 2>conftest.er1
a848cd7e 15232 ac_status=$?
ac1cb8d3
VS
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
a848cd7e
SC
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
3565d135
RR
15238 { ac_try='test -z "$ac_cxx_werror_flag"
15239 || test ! -s conftest.err'
ac1cb8d3
VS
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; } &&
15245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_cv_string_strcasecmp=yes
15252else
15253 echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
15256ac_cv_string_strcasecmp=no
15257
15258fi
ac1cb8d3
VS
15259rm -f conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15261
15262fi
15263echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15264echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15265
15266 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15267 cat >>confdefs.h <<\_ACEOF
15268#define HAVE_STRCASECMP_IN_STRING_H 1
15269_ACEOF
15270
15271 else
15272 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15273echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15274if test "${ac_cv_strings_strcasecmp+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277
15278 cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h. */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
15284
15285 #include <strings.h>
15286
15287int
15288main ()
15289{
15290
15291 strcasecmp("foo", "bar");
15292
15293 ;
15294 return 0;
15295}
15296_ACEOF
15297rm -f conftest.$ac_objext conftest$ac_exeext
15298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15299 (eval $ac_link) 2>conftest.er1
a848cd7e 15300 ac_status=$?
ac1cb8d3
VS
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
a848cd7e
SC
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
3565d135
RR
15306 { ac_try='test -z "$ac_cxx_werror_flag"
15307 || test ! -s conftest.err'
ac1cb8d3
VS
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_cv_strings_strcasecmp=yes
15320else
15321 echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324ac_cv_strings_strcasecmp=no
15325
15326fi
ac1cb8d3
VS
15327rm -f conftest.err conftest.$ac_objext \
15328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15329
15330fi
15331echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15332echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15333
0c3c69fc 15334 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15335 cat >>confdefs.h <<\_ACEOF
15336#define HAVE_STRCASECMP_IN_STRINGS_H 1
15337_ACEOF
15338
15339 else
15340 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15341echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15342 { (exit 1); exit 1; }; }
15343 fi
15344 fi
15345
15346 ac_ext=c
15347ac_cpp='$CPP $CPPFLAGS'
15348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15350ac_compiler_gnu=$ac_cv_c_compiler_gnu
15351
15352 ;;
15353esac
15354
15355
15356echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15357echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15358if test "${ac_cv_header_stdc+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360else
15361 cat >conftest.$ac_ext <<_ACEOF
15362/* confdefs.h. */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h. */
15367#include <stdlib.h>
15368#include <stdarg.h>
15369#include <string.h>
15370#include <float.h>
15371
15372int
15373main ()
15374{
15375
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext
15381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15382 (eval $ac_compile) 2>conftest.er1
a848cd7e 15383 ac_status=$?
ac1cb8d3
VS
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
a848cd7e
SC
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
3565d135
RR
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
ac1cb8d3
VS
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_header_stdc=yes
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407ac_cv_header_stdc=no
15408fi
ac1cb8d3 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15410
15411if test $ac_cv_header_stdc = yes; then
15412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419#include <string.h>
15420
15421_ACEOF
15422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15423 $EGREP "memchr" >/dev/null 2>&1; then
15424 :
15425else
15426 ac_cv_header_stdc=no
15427fi
15428rm -f conftest*
15429
15430fi
15431
15432if test $ac_cv_header_stdc = yes; then
15433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15434 cat >conftest.$ac_ext <<_ACEOF
15435/* confdefs.h. */
15436_ACEOF
15437cat confdefs.h >>conftest.$ac_ext
15438cat >>conftest.$ac_ext <<_ACEOF
15439/* end confdefs.h. */
15440#include <stdlib.h>
15441
15442_ACEOF
15443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15444 $EGREP "free" >/dev/null 2>&1; then
15445 :
15446else
15447 ac_cv_header_stdc=no
15448fi
15449rm -f conftest*
15450
15451fi
15452
15453if test $ac_cv_header_stdc = yes; then
15454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15455 if test "$cross_compiling" = yes; then
15456 :
15457else
15458 cat >conftest.$ac_ext <<_ACEOF
15459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
15463/* end confdefs.h. */
15464#include <ctype.h>
15465#if ((' ' & 0x0FF) == 0x020)
15466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15468#else
15469# define ISLOWER(c) \
ac1cb8d3
VS
15470 (('a' <= (c) && (c) <= 'i') \
15471 || ('j' <= (c) && (c) <= 'r') \
15472 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15474#endif
15475
15476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15477int
15478main ()
15479{
15480 int i;
15481 for (i = 0; i < 256; i++)
15482 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15483 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15484 exit(2);
15485 exit (0);
15486}
15487_ACEOF
15488rm -f conftest$ac_exeext
15489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490 (eval $ac_link) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 :
15500else
15501 echo "$as_me: program exited with status $ac_status" >&5
15502echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505( exit $ac_status )
15506ac_cv_header_stdc=no
15507fi
ac1cb8d3 15508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15509fi
15510fi
15511fi
15512echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15513echo "${ECHO_T}$ac_cv_header_stdc" >&6
15514if test $ac_cv_header_stdc = yes; then
15515
15516cat >>confdefs.h <<\_ACEOF
15517#define STDC_HEADERS 1
15518_ACEOF
15519
15520fi
15521
15522# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15533 inttypes.h stdint.h unistd.h
a848cd7e
SC
15534do
15535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15536echo "$as_me:$LINENO: checking for $ac_header" >&5
15537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15538if eval "test \"\${$as_ac_Header+set}\" = set"; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541 cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547$ac_includes_default
15548
15549#include <$ac_header>
15550_ACEOF
15551rm -f conftest.$ac_objext
15552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15553 (eval $ac_compile) 2>conftest.er1
a848cd7e 15554 ac_status=$?
ac1cb8d3
VS
15555 grep -v '^ *+' conftest.er1 >conftest.err
15556 rm -f conftest.er1
15557 cat conftest.err >&5
a848cd7e
SC
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
3565d135
RR
15560 { ac_try='test -z "$ac_c_werror_flag"
15561 || test ! -s conftest.err'
ac1cb8d3
VS
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 eval "$as_ac_Header=yes"
15574else
15575 echo "$as_me: failed program was:" >&5
15576sed 's/^/| /' conftest.$ac_ext >&5
15577
15578eval "$as_ac_Header=no"
15579fi
ac1cb8d3 15580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15581fi
15582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15584if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587_ACEOF
15588
15589fi
15590
15591done
15592
15593
15594
15595for ac_header in stdlib.h
15596do
15597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599 echo "$as_me:$LINENO: checking for $ac_header" >&5
15600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15601if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603fi
15604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15606else
15607 # Is the header compilable?
15608echo "$as_me:$LINENO: checking $ac_header usability" >&5
15609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15610cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616$ac_includes_default
15617#include <$ac_header>
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15621 (eval $ac_compile) 2>conftest.er1
a848cd7e 15622 ac_status=$?
ac1cb8d3
VS
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
a848cd7e
SC
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
3565d135
RR
15628 { ac_try='test -z "$ac_c_werror_flag"
15629 || test ! -s conftest.err'
ac1cb8d3
VS
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646ac_header_compiler=no
15647fi
ac1cb8d3 15648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15650echo "${ECHO_T}$ac_header_compiler" >&6
15651
15652# Is the header present?
15653echo "$as_me:$LINENO: checking $ac_header presence" >&5
15654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15655cat >conftest.$ac_ext <<_ACEOF
15656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
15661#include <$ac_header>
15662_ACEOF
15663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15665 ac_status=$?
15666 grep -v '^ *+' conftest.er1 >conftest.err
15667 rm -f conftest.er1
15668 cat conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } >/dev/null; then
15671 if test -s conftest.err; then
15672 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15674 else
15675 ac_cpp_err=
15676 fi
15677else
15678 ac_cpp_err=yes
15679fi
15680if test -z "$ac_cpp_err"; then
15681 ac_header_preproc=yes
15682else
15683 echo "$as_me: failed program was:" >&5
15684sed 's/^/| /' conftest.$ac_ext >&5
15685
15686 ac_header_preproc=no
15687fi
15688rm -f conftest.err conftest.$ac_ext
15689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15690echo "${ECHO_T}$ac_header_preproc" >&6
15691
15692# So? What about this header?
ac1cb8d3
VS
15693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15694 yes:no: )
a848cd7e
SC
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15699 ac_header_preproc=yes
a848cd7e 15700 ;;
ac1cb8d3 15701 no:yes:* )
a848cd7e
SC
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15714 (
15715 cat <<\_ASBOX
ac1cb8d3
VS
15716## ----------------------------------------- ##
15717## Report this to wx-dev@lists.wxwidgets.org ##
15718## ----------------------------------------- ##
a848cd7e
SC
15719_ASBOX
15720 ) |
15721 sed "s/^/$as_me: WARNING: /" >&2
15722 ;;
15723esac
15724echo "$as_me:$LINENO: checking for $ac_header" >&5
15725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728else
ac1cb8d3 15729 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15730fi
15731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15733
15734fi
15735if test `eval echo '${'$as_ac_Header'}'` = yes; then
15736 cat >>confdefs.h <<_ACEOF
15737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15738_ACEOF
15739
15740fi
15741
15742done
15743
15744
15745for ac_header in malloc.h
15746do
15747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15748if eval "test \"\${$as_ac_Header+set}\" = set"; then
15749 echo "$as_me:$LINENO: checking for $ac_header" >&5
15750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15751if eval "test \"\${$as_ac_Header+set}\" = set"; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753fi
15754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15756else
15757 # Is the header compilable?
15758echo "$as_me:$LINENO: checking $ac_header usability" >&5
15759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15760cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766$ac_includes_default
15767#include <$ac_header>
15768_ACEOF
15769rm -f conftest.$ac_objext
15770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15771 (eval $ac_compile) 2>conftest.er1
a848cd7e 15772 ac_status=$?
ac1cb8d3
VS
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
a848cd7e
SC
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
3565d135
RR
15778 { ac_try='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
ac1cb8d3
VS
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_header_compiler=yes
15792else
15793 echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796ac_header_compiler=no
15797fi
ac1cb8d3 15798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800echo "${ECHO_T}$ac_header_compiler" >&6
15801
15802# Is the header present?
15803echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15805cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811#include <$ac_header>
15812_ACEOF
15813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } >/dev/null; then
15821 if test -s conftest.err; then
15822 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15824 else
15825 ac_cpp_err=
15826 fi
15827else
15828 ac_cpp_err=yes
15829fi
15830if test -z "$ac_cpp_err"; then
15831 ac_header_preproc=yes
15832else
15833 echo "$as_me: failed program was:" >&5
15834sed 's/^/| /' conftest.$ac_ext >&5
15835
15836 ac_header_preproc=no
15837fi
15838rm -f conftest.err conftest.$ac_ext
15839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15840echo "${ECHO_T}$ac_header_preproc" >&6
15841
15842# So? What about this header?
ac1cb8d3
VS
15843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844 yes:no: )
a848cd7e
SC
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15849 ac_header_preproc=yes
a848cd7e 15850 ;;
ac1cb8d3 15851 no:yes:* )
a848cd7e
SC
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15864 (
15865 cat <<\_ASBOX
ac1cb8d3
VS
15866## ----------------------------------------- ##
15867## Report this to wx-dev@lists.wxwidgets.org ##
15868## ----------------------------------------- ##
a848cd7e
SC
15869_ASBOX
15870 ) |
15871 sed "s/^/$as_me: WARNING: /" >&2
15872 ;;
15873esac
15874echo "$as_me:$LINENO: checking for $ac_header" >&5
15875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15876if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878else
ac1cb8d3 15879 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15880fi
15881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15883
15884fi
15885if test `eval echo '${'$as_ac_Header'}'` = yes; then
15886 cat >>confdefs.h <<_ACEOF
15887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15888_ACEOF
15889
15890fi
15891
15892done
15893
15894
15895for ac_header in unistd.h
15896do
15897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15898if eval "test \"\${$as_ac_Header+set}\" = set"; then
15899 echo "$as_me:$LINENO: checking for $ac_header" >&5
15900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15901if eval "test \"\${$as_ac_Header+set}\" = set"; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903fi
15904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15906else
15907 # Is the header compilable?
15908echo "$as_me:$LINENO: checking $ac_header usability" >&5
15909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15910cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916$ac_includes_default
15917#include <$ac_header>
15918_ACEOF
15919rm -f conftest.$ac_objext
15920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15921 (eval $ac_compile) 2>conftest.er1
a848cd7e 15922 ac_status=$?
ac1cb8d3
VS
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
a848cd7e
SC
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
3565d135
RR
15928 { ac_try='test -z "$ac_c_werror_flag"
15929 || test ! -s conftest.err'
ac1cb8d3
VS
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; } &&
15935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_header_compiler=yes
15942else
15943 echo "$as_me: failed program was:" >&5
15944sed 's/^/| /' conftest.$ac_ext >&5
15945
15946ac_header_compiler=no
15947fi
ac1cb8d3 15948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950echo "${ECHO_T}$ac_header_compiler" >&6
15951
15952# Is the header present?
15953echo "$as_me:$LINENO: checking $ac_header presence" >&5
15954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15955cat >conftest.$ac_ext <<_ACEOF
15956/* confdefs.h. */
15957_ACEOF
15958cat confdefs.h >>conftest.$ac_ext
15959cat >>conftest.$ac_ext <<_ACEOF
15960/* end confdefs.h. */
15961#include <$ac_header>
15962_ACEOF
15963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } >/dev/null; then
15971 if test -s conftest.err; then
15972 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15974 else
15975 ac_cpp_err=
15976 fi
15977else
15978 ac_cpp_err=yes
15979fi
15980if test -z "$ac_cpp_err"; then
15981 ac_header_preproc=yes
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 ac_header_preproc=no
15987fi
15988rm -f conftest.err conftest.$ac_ext
15989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15990echo "${ECHO_T}$ac_header_preproc" >&6
15991
15992# So? What about this header?
ac1cb8d3
VS
15993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15994 yes:no: )
a848cd7e
SC
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15999 ac_header_preproc=yes
a848cd7e 16000 ;;
ac1cb8d3 16001 no:yes:* )
a848cd7e
SC
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16014 (
16015 cat <<\_ASBOX
ac1cb8d3
VS
16016## ----------------------------------------- ##
16017## Report this to wx-dev@lists.wxwidgets.org ##
16018## ----------------------------------------- ##
a848cd7e
SC
16019_ASBOX
16020 ) |
16021 sed "s/^/$as_me: WARNING: /" >&2
16022 ;;
16023esac
16024echo "$as_me:$LINENO: checking for $ac_header" >&5
16025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16026if eval "test \"\${$as_ac_Header+set}\" = set"; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028else
ac1cb8d3 16029 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16030fi
16031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16033
16034fi
16035if test `eval echo '${'$as_ac_Header'}'` = yes; then
16036 cat >>confdefs.h <<_ACEOF
16037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16038_ACEOF
16039
16040fi
16041
16042done
16043
16044
16045for ac_header in wchar.h
16046do
16047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16048if eval "test \"\${$as_ac_Header+set}\" = set"; then
16049 echo "$as_me:$LINENO: checking for $ac_header" >&5
16050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16051if eval "test \"\${$as_ac_Header+set}\" = set"; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053fi
16054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16056else
16057 # Is the header compilable?
16058echo "$as_me:$LINENO: checking $ac_header usability" >&5
16059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16060cat >conftest.$ac_ext <<_ACEOF
16061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
16066$ac_includes_default
16067#include <$ac_header>
16068_ACEOF
16069rm -f conftest.$ac_objext
16070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16071 (eval $ac_compile) 2>conftest.er1
a848cd7e 16072 ac_status=$?
ac1cb8d3
VS
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
a848cd7e
SC
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
3565d135
RR
16078 { ac_try='test -z "$ac_c_werror_flag"
16079 || test ! -s conftest.err'
ac1cb8d3
VS
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_header_compiler=yes
16092else
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096ac_header_compiler=no
16097fi
ac1cb8d3 16098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16100echo "${ECHO_T}$ac_header_compiler" >&6
16101
16102# Is the header present?
16103echo "$as_me:$LINENO: checking $ac_header presence" >&5
16104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16105cat >conftest.$ac_ext <<_ACEOF
16106/* confdefs.h. */
16107_ACEOF
16108cat confdefs.h >>conftest.$ac_ext
16109cat >>conftest.$ac_ext <<_ACEOF
16110/* end confdefs.h. */
16111#include <$ac_header>
16112_ACEOF
16113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } >/dev/null; then
16121 if test -s conftest.err; then
16122 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16124 else
16125 ac_cpp_err=
16126 fi
16127else
16128 ac_cpp_err=yes
16129fi
16130if test -z "$ac_cpp_err"; then
16131 ac_header_preproc=yes
16132else
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 ac_header_preproc=no
16137fi
16138rm -f conftest.err conftest.$ac_ext
16139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16140echo "${ECHO_T}$ac_header_preproc" >&6
16141
16142# So? What about this header?
ac1cb8d3
VS
16143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16144 yes:no: )
a848cd7e
SC
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16149 ac_header_preproc=yes
a848cd7e 16150 ;;
ac1cb8d3 16151 no:yes:* )
a848cd7e
SC
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16164 (
16165 cat <<\_ASBOX
ac1cb8d3
VS
16166## ----------------------------------------- ##
16167## Report this to wx-dev@lists.wxwidgets.org ##
16168## ----------------------------------------- ##
a848cd7e
SC
16169_ASBOX
16170 ) |
16171 sed "s/^/$as_me: WARNING: /" >&2
16172 ;;
16173esac
16174echo "$as_me:$LINENO: checking for $ac_header" >&5
16175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16176if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
ac1cb8d3 16179 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16180fi
16181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16183
16184fi
16185if test `eval echo '${'$as_ac_Header'}'` = yes; then
16186 cat >>confdefs.h <<_ACEOF
16187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16188_ACEOF
16189
16190fi
16191
16192done
16193
16194
16195if test "$ac_cv_header_wchar_h" != "yes"; then
16196
16197for ac_header in wcstr.h
16198do
16199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16200if eval "test \"\${$as_ac_Header+set}\" = set"; then
16201 echo "$as_me:$LINENO: checking for $ac_header" >&5
16202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16203if eval "test \"\${$as_ac_Header+set}\" = set"; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16205fi
16206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16208else
16209 # Is the header compilable?
16210echo "$as_me:$LINENO: checking $ac_header usability" >&5
16211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16212cat >conftest.$ac_ext <<_ACEOF
16213/* confdefs.h. */
16214_ACEOF
16215cat confdefs.h >>conftest.$ac_ext
16216cat >>conftest.$ac_ext <<_ACEOF
16217/* end confdefs.h. */
16218$ac_includes_default
16219#include <$ac_header>
16220_ACEOF
16221rm -f conftest.$ac_objext
16222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16223 (eval $ac_compile) 2>conftest.er1
a848cd7e 16224 ac_status=$?
ac1cb8d3
VS
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
a848cd7e
SC
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
3565d135
RR
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
ac1cb8d3
VS
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_header_compiler=yes
16244else
16245 echo "$as_me: failed program was:" >&5
16246sed 's/^/| /' conftest.$ac_ext >&5
16247
16248ac_header_compiler=no
16249fi
ac1cb8d3 16250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16252echo "${ECHO_T}$ac_header_compiler" >&6
16253
16254# Is the header present?
16255echo "$as_me:$LINENO: checking $ac_header presence" >&5
16256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16257cat >conftest.$ac_ext <<_ACEOF
16258/* confdefs.h. */
16259_ACEOF
16260cat confdefs.h >>conftest.$ac_ext
16261cat >>conftest.$ac_ext <<_ACEOF
16262/* end confdefs.h. */
16263#include <$ac_header>
16264_ACEOF
16265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null; then
16273 if test -s conftest.err; then
16274 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16276 else
16277 ac_cpp_err=
16278 fi
16279else
16280 ac_cpp_err=yes
16281fi
16282if test -z "$ac_cpp_err"; then
16283 ac_header_preproc=yes
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_header_preproc=no
16289fi
16290rm -f conftest.err conftest.$ac_ext
16291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16292echo "${ECHO_T}$ac_header_preproc" >&6
16293
16294# So? What about this header?
ac1cb8d3
VS
16295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16296 yes:no: )
a848cd7e
SC
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16301 ac_header_preproc=yes
a848cd7e 16302 ;;
ac1cb8d3 16303 no:yes:* )
a848cd7e
SC
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16316 (
16317 cat <<\_ASBOX
ac1cb8d3
VS
16318## ----------------------------------------- ##
16319## Report this to wx-dev@lists.wxwidgets.org ##
16320## ----------------------------------------- ##
a848cd7e
SC
16321_ASBOX
16322 ) |
16323 sed "s/^/$as_me: WARNING: /" >&2
16324 ;;
16325esac
16326echo "$as_me:$LINENO: checking for $ac_header" >&5
16327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16328if eval "test \"\${$as_ac_Header+set}\" = set"; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330else
ac1cb8d3 16331 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16332fi
16333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16335
16336fi
16337if test `eval echo '${'$as_ac_Header'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16340_ACEOF
16341
16342fi
16343
16344done
16345
16346fi
16347
16348
16349for ac_header in fnmatch.h
16350do
16351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16352if eval "test \"\${$as_ac_Header+set}\" = set"; then
16353 echo "$as_me:$LINENO: checking for $ac_header" >&5
16354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16355if eval "test \"\${$as_ac_Header+set}\" = set"; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16357fi
16358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16360else
16361 # Is the header compilable?
16362echo "$as_me:$LINENO: checking $ac_header usability" >&5
16363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16364cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
16370$ac_includes_default
16371#include <$ac_header>
16372_ACEOF
16373rm -f conftest.$ac_objext
16374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16375 (eval $ac_compile) 2>conftest.er1
a848cd7e 16376 ac_status=$?
ac1cb8d3
VS
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
a848cd7e
SC
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
3565d135
RR
16382 { ac_try='test -z "$ac_c_werror_flag"
16383 || test ! -s conftest.err'
ac1cb8d3
VS
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; } &&
16389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_header_compiler=yes
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400ac_header_compiler=no
16401fi
ac1cb8d3 16402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16404echo "${ECHO_T}$ac_header_compiler" >&6
16405
16406# Is the header present?
16407echo "$as_me:$LINENO: checking $ac_header presence" >&5
16408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16409cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h. */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h. */
16415#include <$ac_header>
16416_ACEOF
16417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } >/dev/null; then
16425 if test -s conftest.err; then
16426 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16428 else
16429 ac_cpp_err=
16430 fi
16431else
16432 ac_cpp_err=yes
16433fi
16434if test -z "$ac_cpp_err"; then
16435 ac_header_preproc=yes
16436else
16437 echo "$as_me: failed program was:" >&5
16438sed 's/^/| /' conftest.$ac_ext >&5
16439
16440 ac_header_preproc=no
16441fi
16442rm -f conftest.err conftest.$ac_ext
16443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444echo "${ECHO_T}$ac_header_preproc" >&6
16445
16446# So? What about this header?
ac1cb8d3
VS
16447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16448 yes:no: )
a848cd7e
SC
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16453 ac_header_preproc=yes
a848cd7e 16454 ;;
ac1cb8d3 16455 no:yes:* )
a848cd7e
SC
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16468 (
16469 cat <<\_ASBOX
ac1cb8d3
VS
16470## ----------------------------------------- ##
16471## Report this to wx-dev@lists.wxwidgets.org ##
16472## ----------------------------------------- ##
a848cd7e
SC
16473_ASBOX
16474 ) |
16475 sed "s/^/$as_me: WARNING: /" >&2
16476 ;;
16477esac
16478echo "$as_me:$LINENO: checking for $ac_header" >&5
16479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16480if eval "test \"\${$as_ac_Header+set}\" = set"; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
ac1cb8d3 16483 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16484fi
16485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16487
16488fi
16489if test `eval echo '${'$as_ac_Header'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16492_ACEOF
16493
16494fi
16495
16496done
16497
16498
a848cd7e
SC
16499
16500for ac_header in langinfo.h
16501do
16502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16503if eval "test \"\${$as_ac_Header+set}\" = set"; then
16504 echo "$as_me:$LINENO: checking for $ac_header" >&5
16505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16506if eval "test \"\${$as_ac_Header+set}\" = set"; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16508fi
16509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16511else
16512 # Is the header compilable?
16513echo "$as_me:$LINENO: checking $ac_header usability" >&5
16514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16515cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521$ac_includes_default
16522#include <$ac_header>
16523_ACEOF
16524rm -f conftest.$ac_objext
16525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16526 (eval $ac_compile) 2>conftest.er1
a848cd7e 16527 ac_status=$?
ac1cb8d3
VS
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
a848cd7e
SC
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
3565d135
RR
16533 { ac_try='test -z "$ac_c_werror_flag"
16534 || test ! -s conftest.err'
ac1cb8d3
VS
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_header_compiler=yes
16547else
16548 echo "$as_me: failed program was:" >&5
16549sed 's/^/| /' conftest.$ac_ext >&5
16550
16551ac_header_compiler=no
16552fi
ac1cb8d3 16553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16555echo "${ECHO_T}$ac_header_compiler" >&6
16556
16557# Is the header present?
16558echo "$as_me:$LINENO: checking $ac_header presence" >&5
16559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16560cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566#include <$ac_header>
16567_ACEOF
16568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16570 ac_status=$?
16571 grep -v '^ *+' conftest.er1 >conftest.err
16572 rm -f conftest.er1
16573 cat conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } >/dev/null; then
16576 if test -s conftest.err; then
16577 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16579 else
16580 ac_cpp_err=
16581 fi
16582else
16583 ac_cpp_err=yes
16584fi
16585if test -z "$ac_cpp_err"; then
16586 ac_header_preproc=yes
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_header_preproc=no
16592fi
16593rm -f conftest.err conftest.$ac_ext
16594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16595echo "${ECHO_T}$ac_header_preproc" >&6
16596
16597# So? What about this header?
ac1cb8d3
VS
16598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16599 yes:no: )
a848cd7e
SC
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16604 ac_header_preproc=yes
a848cd7e 16605 ;;
ac1cb8d3 16606 no:yes:* )
a848cd7e
SC
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16619 (
16620 cat <<\_ASBOX
ac1cb8d3
VS
16621## ----------------------------------------- ##
16622## Report this to wx-dev@lists.wxwidgets.org ##
16623## ----------------------------------------- ##
a848cd7e
SC
16624_ASBOX
16625 ) |
16626 sed "s/^/$as_me: WARNING: /" >&2
16627 ;;
16628esac
16629echo "$as_me:$LINENO: checking for $ac_header" >&5
16630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16631if eval "test \"\${$as_ac_Header+set}\" = set"; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633else
ac1cb8d3 16634 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16635fi
16636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16638
16639fi
16640if test `eval echo '${'$as_ac_Header'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16643_ACEOF
16644
16645fi
16646
16647done
16648
16649
16650case "${host}" in
16651 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16652 if test $ac_cv_header_langinfo_h = "yes" \
16653 -a \( "$wx_cv_gccversion" = "EMX2" \
16654 -o "$wx_cv_gccversion" = "EMX3" \
16655 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16656 LIBS="$LIBS -lintl"
16657 fi
16658 ;;
16659esac
16660
a848cd7e
SC
16661
16662echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16663echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16664if test "${ac_cv_c_const+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666else
16667 cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673
16674int
16675main ()
16676{
16677/* FIXME: Include the comments suggested by Paul. */
16678#ifndef __cplusplus
16679 /* Ultrix mips cc rejects this. */
16680 typedef int charset[2];
16681 const charset x;
16682 /* SunOS 4.1.1 cc rejects this. */
16683 char const *const *ccp;
16684 char **p;
16685 /* NEC SVR4.0.2 mips cc rejects this. */
16686 struct point {int x, y;};
16687 static struct point const zero = {0,0};
16688 /* AIX XL C 1.02.0.0 rejects this.
16689 It does not let you subtract one const X* pointer from another in
16690 an arm of an if-expression whose if-part is not a constant
16691 expression */
16692 const char *g = "string";
16693 ccp = &g + (g ? g-g : 0);
16694 /* HPUX 7.0 cc rejects these. */
16695 ++ccp;
16696 p = (char**) ccp;
16697 ccp = (char const *const *) p;
16698 { /* SCO 3.2v4 cc rejects this. */
16699 char *t;
16700 char const *s = 0 ? (char *) 0 : (char const *) 0;
16701
16702 *t++ = 0;
16703 }
16704 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16705 int x[] = {25, 17};
16706 const int *foo = &x[0];
16707 ++foo;
16708 }
16709 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16710 typedef const int *iptr;
16711 iptr p = 0;
16712 ++p;
16713 }
16714 { /* AIX XL C 1.02.0.0 rejects this saying
16715 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16716 struct s { int j; const int *ap[3]; };
16717 struct s *b; b->j = 5;
16718 }
16719 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16720 const int foo = 10;
16721 }
16722#endif
16723
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext
16729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16730 (eval $ac_compile) 2>conftest.er1
a848cd7e 16731 ac_status=$?
ac1cb8d3
VS
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
a848cd7e
SC
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
3565d135
RR
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
ac1cb8d3
VS
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_cv_c_const=yes
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755ac_cv_c_const=no
16756fi
ac1cb8d3 16757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16758fi
16759echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16760echo "${ECHO_T}$ac_cv_c_const" >&6
16761if test $ac_cv_c_const = no; then
16762
16763cat >>confdefs.h <<\_ACEOF
16764#define const
16765_ACEOF
16766
16767fi
16768
16769echo "$as_me:$LINENO: checking for inline" >&5
16770echo $ECHO_N "checking for inline... $ECHO_C" >&6
16771if test "${ac_cv_c_inline+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773else
16774 ac_cv_c_inline=no
16775for ac_kw in inline __inline__ __inline; do
16776 cat >conftest.$ac_ext <<_ACEOF
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
16782#ifndef __cplusplus
16783typedef int foo_t;
16784static $ac_kw foo_t static_foo () {return 0; }
16785$ac_kw foo_t foo () {return 0; }
16786#endif
16787
16788_ACEOF
16789rm -f conftest.$ac_objext
16790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16791 (eval $ac_compile) 2>conftest.er1
a848cd7e 16792 ac_status=$?
ac1cb8d3
VS
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
a848cd7e
SC
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
3565d135
RR
16798 { ac_try='test -z "$ac_c_werror_flag"
16799 || test ! -s conftest.err'
ac1cb8d3
VS
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_c_inline=$ac_kw; break
16812else
16813 echo "$as_me: failed program was:" >&5
16814sed 's/^/| /' conftest.$ac_ext >&5
16815
16816fi
ac1cb8d3 16817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16818done
16819
16820fi
16821echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16822echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16823
16824
a848cd7e
SC
16825case $ac_cv_c_inline in
16826 inline | yes) ;;
ac1cb8d3
VS
16827 *)
16828 case $ac_cv_c_inline in
16829 no) ac_val=;;
16830 *) ac_val=$ac_cv_c_inline;;
16831 esac
16832 cat >>confdefs.h <<_ACEOF
16833#ifndef __cplusplus
16834#define inline $ac_val
16835#endif
de59c161 16836_ACEOF
ac1cb8d3 16837 ;;
a848cd7e
SC
16838esac
16839
16840
16841echo "$as_me:$LINENO: checking for char" >&5
16842echo $ECHO_N "checking for char... $ECHO_C" >&6
16843if test "${ac_cv_type_char+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845else
16846 cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852$ac_includes_default
16853int
16854main ()
16855{
16856if ((char *) 0)
16857 return 0;
16858if (sizeof (char))
16859 return 0;
16860 ;
16861 return 0;
16862}
16863_ACEOF
16864rm -f conftest.$ac_objext
16865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16866 (eval $ac_compile) 2>conftest.er1
a848cd7e 16867 ac_status=$?
ac1cb8d3
VS
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
a848cd7e
SC
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
3565d135
RR
16873 { ac_try='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
ac1cb8d3
VS
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_type_char=yes
16887else
16888 echo "$as_me: failed program was:" >&5
16889sed 's/^/| /' conftest.$ac_ext >&5
16890
16891ac_cv_type_char=no
16892fi
ac1cb8d3 16893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16894fi
16895echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16896echo "${ECHO_T}$ac_cv_type_char" >&6
16897
16898echo "$as_me:$LINENO: checking size of char" >&5
16899echo $ECHO_N "checking size of char... $ECHO_C" >&6
16900if test "${ac_cv_sizeof_char+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902else
16903 if test "$ac_cv_type_char" = yes; then
16904 # The cast to unsigned long works around a bug in the HP C Compiler
16905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16907 # This bug is HP SR number 8606223364.
16908 if test "$cross_compiling" = yes; then
16909 # Depending upon the size, compute the lo and hi bounds.
16910cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
16917int
16918main ()
16919{
16920static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16921test_array [0] = 0
16922
16923 ;
16924 return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext
16928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16929 (eval $ac_compile) 2>conftest.er1
a848cd7e 16930 ac_status=$?
ac1cb8d3
VS
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
a848cd7e
SC
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
3565d135
RR
16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
ac1cb8d3
VS
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_lo=0 ac_mid=0
16950 while :; do
16951 cat >conftest.$ac_ext <<_ACEOF
16952/* confdefs.h. */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h. */
16957$ac_includes_default
16958int
16959main ()
16960{
16961static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16962test_array [0] = 0
16963
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext
16969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16970 (eval $ac_compile) 2>conftest.er1
a848cd7e 16971 ac_status=$?
ac1cb8d3
VS
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
a848cd7e
SC
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
3565d135
RR
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
ac1cb8d3
VS
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_hi=$ac_mid; break
16991else
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16996 if test $ac_lo -le $ac_mid; then
16997 ac_lo= ac_hi=
16998 break
16999 fi
17000 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17001fi
ac1cb8d3 17002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17003 done
17004else
17005 echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008cat >conftest.$ac_ext <<_ACEOF
17009/* confdefs.h. */
17010_ACEOF
17011cat confdefs.h >>conftest.$ac_ext
17012cat >>conftest.$ac_ext <<_ACEOF
17013/* end confdefs.h. */
17014$ac_includes_default
17015int
17016main ()
17017{
17018static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17019test_array [0] = 0
17020
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17027 (eval $ac_compile) 2>conftest.er1
a848cd7e 17028 ac_status=$?
ac1cb8d3
VS
17029 grep -v '^ *+' conftest.er1 >conftest.err
17030 rm -f conftest.er1
17031 cat conftest.err >&5
a848cd7e
SC
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
3565d135
RR
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
ac1cb8d3
VS
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_hi=-1 ac_mid=-1
17048 while :; do
17049 cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055$ac_includes_default
17056int
17057main ()
17058{
17059static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17060test_array [0] = 0
17061
17062 ;
17063 return 0;
17064}
17065_ACEOF
17066rm -f conftest.$ac_objext
17067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17068 (eval $ac_compile) 2>conftest.er1
a848cd7e 17069 ac_status=$?
ac1cb8d3
VS
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
a848cd7e
SC
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
3565d135
RR
17075 { ac_try='test -z "$ac_c_werror_flag"
17076 || test ! -s conftest.err'
ac1cb8d3
VS
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_lo=$ac_mid; break
17089else
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17094 if test $ac_mid -le $ac_hi; then
17095 ac_lo= ac_hi=
17096 break
17097 fi
17098 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17099fi
ac1cb8d3 17100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17101 done
17102else
17103 echo "$as_me: failed program was:" >&5
17104sed 's/^/| /' conftest.$ac_ext >&5
17105
17106ac_lo= ac_hi=
17107fi
ac1cb8d3 17108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17109fi
ac1cb8d3 17110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17111# Binary search between lo and hi bounds.
17112while test "x$ac_lo" != "x$ac_hi"; do
17113 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17114 cat >conftest.$ac_ext <<_ACEOF
17115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
17120$ac_includes_default
17121int
17122main ()
17123{
17124static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17125test_array [0] = 0
17126
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17133 (eval $ac_compile) 2>conftest.er1
a848cd7e 17134 ac_status=$?
ac1cb8d3
VS
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
a848cd7e
SC
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
3565d135
RR
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
ac1cb8d3
VS
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_hi=$ac_mid
17154else
17155 echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158ac_lo=`expr '(' $ac_mid ')' + 1`
17159fi
ac1cb8d3 17160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17161done
17162case $ac_lo in
17163?*) ac_cv_sizeof_char=$ac_lo;;
17164'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17165See \`config.log' for more details." >&5
17166echo "$as_me: error: cannot compute sizeof (char), 77
17167See \`config.log' for more details." >&2;}
17168 { (exit 1); exit 1; }; } ;;
17169esac
17170else
17171 if test "$cross_compiling" = yes; then
3565d135
RR
17172 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17173See \`config.log' for more details." >&5
17174echo "$as_me: error: cannot run test program while cross compiling
17175See \`config.log' for more details." >&2;}
a848cd7e
SC
17176 { (exit 1); exit 1; }; }
17177else
17178 cat >conftest.$ac_ext <<_ACEOF
17179/* confdefs.h. */
17180_ACEOF
17181cat confdefs.h >>conftest.$ac_ext
17182cat >>conftest.$ac_ext <<_ACEOF
17183/* end confdefs.h. */
17184$ac_includes_default
17185long longval () { return (long) (sizeof (char)); }
17186unsigned long ulongval () { return (long) (sizeof (char)); }
17187#include <stdio.h>
17188#include <stdlib.h>
17189int
17190main ()
17191{
17192
17193 FILE *f = fopen ("conftest.val", "w");
17194 if (! f)
17195 exit (1);
17196 if (((long) (sizeof (char))) < 0)
17197 {
17198 long i = longval ();
17199 if (i != ((long) (sizeof (char))))
17200 exit (1);
17201 fprintf (f, "%ld\n", i);
17202 }
17203 else
17204 {
17205 unsigned long i = ulongval ();
17206 if (i != ((long) (sizeof (char))))
17207 exit (1);
17208 fprintf (f, "%lu\n", i);
17209 }
17210 exit (ferror (f) || fclose (f) != 0);
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest$ac_exeext
17217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17218 (eval $ac_link) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 ac_cv_sizeof_char=`cat conftest.val`
17228else
17229 echo "$as_me: program exited with status $ac_status" >&5
17230echo "$as_me: failed program was:" >&5
17231sed 's/^/| /' conftest.$ac_ext >&5
17232
17233( exit $ac_status )
17234{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17235See \`config.log' for more details." >&5
17236echo "$as_me: error: cannot compute sizeof (char), 77
17237See \`config.log' for more details." >&2;}
17238 { (exit 1); exit 1; }; }
17239fi
ac1cb8d3 17240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17241fi
17242fi
17243rm -f conftest.val
17244else
17245 ac_cv_sizeof_char=0
17246fi
17247fi
17248echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17249echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17250cat >>confdefs.h <<_ACEOF
17251#define SIZEOF_CHAR $ac_cv_sizeof_char
17252_ACEOF
17253
17254
17255echo "$as_me:$LINENO: checking for short" >&5
17256echo $ECHO_N "checking for short... $ECHO_C" >&6
17257if test "${ac_cv_type_short+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259else
17260 cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
17266$ac_includes_default
17267int
17268main ()
17269{
17270if ((short *) 0)
17271 return 0;
17272if (sizeof (short))
17273 return 0;
17274 ;
17275 return 0;
17276}
17277_ACEOF
17278rm -f conftest.$ac_objext
17279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17280 (eval $ac_compile) 2>conftest.er1
a848cd7e 17281 ac_status=$?
ac1cb8d3
VS
17282 grep -v '^ *+' conftest.er1 >conftest.err
17283 rm -f conftest.er1
17284 cat conftest.err >&5
a848cd7e
SC
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
3565d135
RR
17287 { ac_try='test -z "$ac_c_werror_flag"
17288 || test ! -s conftest.err'
ac1cb8d3
VS
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 ac_cv_type_short=yes
17301else
17302 echo "$as_me: failed program was:" >&5
17303sed 's/^/| /' conftest.$ac_ext >&5
17304
17305ac_cv_type_short=no
17306fi
ac1cb8d3 17307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17308fi
17309echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17310echo "${ECHO_T}$ac_cv_type_short" >&6
17311
17312echo "$as_me:$LINENO: checking size of short" >&5
17313echo $ECHO_N "checking size of short... $ECHO_C" >&6
17314if test "${ac_cv_sizeof_short+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316else
17317 if test "$ac_cv_type_short" = yes; then
17318 # The cast to unsigned long works around a bug in the HP C Compiler
17319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17321 # This bug is HP SR number 8606223364.
17322 if test "$cross_compiling" = yes; then
17323 # Depending upon the size, compute the lo and hi bounds.
17324cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330$ac_includes_default
17331int
17332main ()
17333{
17334static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17335test_array [0] = 0
17336
17337 ;
17338 return 0;
17339}
17340_ACEOF
17341rm -f conftest.$ac_objext
17342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17343 (eval $ac_compile) 2>conftest.er1
a848cd7e 17344 ac_status=$?
ac1cb8d3
VS
17345 grep -v '^ *+' conftest.er1 >conftest.err
17346 rm -f conftest.er1
17347 cat conftest.err >&5
a848cd7e
SC
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } &&
3565d135
RR
17350 { ac_try='test -z "$ac_c_werror_flag"
17351 || test ! -s conftest.err'
ac1cb8d3
VS
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; }; then
17363 ac_lo=0 ac_mid=0
17364 while :; do
17365 cat >conftest.$ac_ext <<_ACEOF
17366/* confdefs.h. */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
17370/* end confdefs.h. */
17371$ac_includes_default
17372int
17373main ()
17374{
17375static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17376test_array [0] = 0
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext
17383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17384 (eval $ac_compile) 2>conftest.er1
a848cd7e 17385 ac_status=$?
ac1cb8d3
VS
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
a848cd7e
SC
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
3565d135
RR
17391 { ac_try='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
ac1cb8d3
VS
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_hi=$ac_mid; break
17405else
17406 echo "$as_me: failed program was:" >&5
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17410 if test $ac_lo -le $ac_mid; then
17411 ac_lo= ac_hi=
17412 break
17413 fi
17414 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17415fi
ac1cb8d3 17416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17417 done
17418else
17419 echo "$as_me: failed program was:" >&5
17420sed 's/^/| /' conftest.$ac_ext >&5
17421
17422cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
17428$ac_includes_default
17429int
17430main ()
17431{
17432static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17433test_array [0] = 0
17434
17435 ;
17436 return 0;
17437}
17438_ACEOF
17439rm -f conftest.$ac_objext
17440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17441 (eval $ac_compile) 2>conftest.er1
a848cd7e 17442 ac_status=$?
ac1cb8d3
VS
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
a848cd7e
SC
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
3565d135
RR
17448 { ac_try='test -z "$ac_c_werror_flag"
17449 || test ! -s conftest.err'
ac1cb8d3
VS
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 ac_hi=-1 ac_mid=-1
17462 while :; do
17463 cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469$ac_includes_default
17470int
17471main ()
17472{
17473static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17474test_array [0] = 0
17475
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext
17481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17482 (eval $ac_compile) 2>conftest.er1
a848cd7e 17483 ac_status=$?
ac1cb8d3
VS
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
a848cd7e
SC
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
3565d135
RR
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
ac1cb8d3
VS
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_lo=$ac_mid; break
17503else
17504 echo "$as_me: failed program was:" >&5
17505sed 's/^/| /' conftest.$ac_ext >&5
17506
17507ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17508 if test $ac_mid -le $ac_hi; then
17509 ac_lo= ac_hi=
17510 break
17511 fi
17512 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17513fi
ac1cb8d3 17514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17515 done
17516else
17517 echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
17520ac_lo= ac_hi=
17521fi
ac1cb8d3 17522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17523fi
ac1cb8d3 17524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17525# Binary search between lo and hi bounds.
17526while test "x$ac_lo" != "x$ac_hi"; do
17527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17528 cat >conftest.$ac_ext <<_ACEOF
17529/* confdefs.h. */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h. */
17534$ac_includes_default
17535int
17536main ()
17537{
17538static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17539test_array [0] = 0
17540
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545rm -f conftest.$ac_objext
17546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17547 (eval $ac_compile) 2>conftest.er1
a848cd7e 17548 ac_status=$?
ac1cb8d3
VS
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
a848cd7e
SC
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
3565d135
RR
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
ac1cb8d3
VS
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 ac_hi=$ac_mid
17568else
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
17572ac_lo=`expr '(' $ac_mid ')' + 1`
17573fi
ac1cb8d3 17574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17575done
17576case $ac_lo in
17577?*) ac_cv_sizeof_short=$ac_lo;;
17578'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17579See \`config.log' for more details." >&5
17580echo "$as_me: error: cannot compute sizeof (short), 77
17581See \`config.log' for more details." >&2;}
17582 { (exit 1); exit 1; }; } ;;
17583esac
17584else
17585 if test "$cross_compiling" = yes; then
3565d135
RR
17586 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17587See \`config.log' for more details." >&5
17588echo "$as_me: error: cannot run test program while cross compiling
17589See \`config.log' for more details." >&2;}
a848cd7e
SC
17590 { (exit 1); exit 1; }; }
17591else
17592 cat >conftest.$ac_ext <<_ACEOF
17593/* confdefs.h. */
17594_ACEOF
17595cat confdefs.h >>conftest.$ac_ext
17596cat >>conftest.$ac_ext <<_ACEOF
17597/* end confdefs.h. */
17598$ac_includes_default
17599long longval () { return (long) (sizeof (short)); }
17600unsigned long ulongval () { return (long) (sizeof (short)); }
17601#include <stdio.h>
17602#include <stdlib.h>
17603int
17604main ()
17605{
17606
17607 FILE *f = fopen ("conftest.val", "w");
17608 if (! f)
17609 exit (1);
17610 if (((long) (sizeof (short))) < 0)
17611 {
17612 long i = longval ();
17613 if (i != ((long) (sizeof (short))))
17614 exit (1);
17615 fprintf (f, "%ld\n", i);
17616 }
17617 else
17618 {
17619 unsigned long i = ulongval ();
17620 if (i != ((long) (sizeof (short))))
17621 exit (1);
17622 fprintf (f, "%lu\n", i);
17623 }
17624 exit (ferror (f) || fclose (f) != 0);
17625
17626 ;
17627 return 0;
17628}
17629_ACEOF
17630rm -f conftest$ac_exeext
17631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17632 (eval $ac_link) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 ac_cv_sizeof_short=`cat conftest.val`
17642else
17643 echo "$as_me: program exited with status $ac_status" >&5
17644echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
17647( exit $ac_status )
17648{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17649See \`config.log' for more details." >&5
17650echo "$as_me: error: cannot compute sizeof (short), 77
17651See \`config.log' for more details." >&2;}
17652 { (exit 1); exit 1; }; }
17653fi
ac1cb8d3 17654rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17655fi
17656fi
17657rm -f conftest.val
17658else
17659 ac_cv_sizeof_short=0
17660fi
17661fi
17662echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17663echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17664cat >>confdefs.h <<_ACEOF
17665#define SIZEOF_SHORT $ac_cv_sizeof_short
17666_ACEOF
17667
17668
17669echo "$as_me:$LINENO: checking for void *" >&5
17670echo $ECHO_N "checking for void *... $ECHO_C" >&6
17671if test "${ac_cv_type_void_p+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17673else
17674 cat >conftest.$ac_ext <<_ACEOF
17675/* confdefs.h. */
17676_ACEOF
17677cat confdefs.h >>conftest.$ac_ext
17678cat >>conftest.$ac_ext <<_ACEOF
17679/* end confdefs.h. */
17680$ac_includes_default
17681int
17682main ()
17683{
17684if ((void * *) 0)
17685 return 0;
17686if (sizeof (void *))
17687 return 0;
17688 ;
17689 return 0;
17690}
17691_ACEOF
17692rm -f conftest.$ac_objext
17693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17694 (eval $ac_compile) 2>conftest.er1
a848cd7e 17695 ac_status=$?
ac1cb8d3
VS
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
a848cd7e
SC
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
3565d135
RR
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
ac1cb8d3
VS
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_type_void_p=yes
17715else
17716 echo "$as_me: failed program was:" >&5
17717sed 's/^/| /' conftest.$ac_ext >&5
17718
17719ac_cv_type_void_p=no
17720fi
ac1cb8d3 17721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17722fi
17723echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17724echo "${ECHO_T}$ac_cv_type_void_p" >&6
17725
17726echo "$as_me:$LINENO: checking size of void *" >&5
17727echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17728if test "${ac_cv_sizeof_void_p+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730else
17731 if test "$ac_cv_type_void_p" = yes; then
17732 # The cast to unsigned long works around a bug in the HP C Compiler
17733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17735 # This bug is HP SR number 8606223364.
17736 if test "$cross_compiling" = yes; then
17737 # Depending upon the size, compute the lo and hi bounds.
17738cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744$ac_includes_default
17745int
17746main ()
17747{
17748static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17749test_array [0] = 0
17750
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext
17756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17757 (eval $ac_compile) 2>conftest.er1
a848cd7e 17758 ac_status=$?
ac1cb8d3
VS
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
a848cd7e
SC
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
3565d135
RR
17764 { ac_try='test -z "$ac_c_werror_flag"
17765 || test ! -s conftest.err'
ac1cb8d3
VS
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_lo=0 ac_mid=0
17778 while :; do
17779 cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785$ac_includes_default
17786int
17787main ()
17788{
17789static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17790test_array [0] = 0
17791
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796rm -f conftest.$ac_objext
17797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17798 (eval $ac_compile) 2>conftest.er1
a848cd7e 17799 ac_status=$?
ac1cb8d3
VS
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
a848cd7e
SC
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
3565d135
RR
17805 { ac_try='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
ac1cb8d3
VS
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_hi=$ac_mid; break
17819else
17820 echo "$as_me: failed program was:" >&5
17821sed 's/^/| /' conftest.$ac_ext >&5
17822
17823ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17824 if test $ac_lo -le $ac_mid; then
17825 ac_lo= ac_hi=
17826 break
17827 fi
17828 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17829fi
ac1cb8d3 17830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17831 done
17832else
17833 echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843int
17844main ()
17845{
17846static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17847test_array [0] = 0
17848
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext
17854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17855 (eval $ac_compile) 2>conftest.er1
a848cd7e 17856 ac_status=$?
ac1cb8d3
VS
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
a848cd7e
SC
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
3565d135
RR
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_hi=-1 ac_mid=-1
17876 while :; do
17877 cat >conftest.$ac_ext <<_ACEOF
17878/* confdefs.h. */
17879_ACEOF
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
17883$ac_includes_default
17884int
17885main ()
17886{
17887static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17888test_array [0] = 0
17889
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext
17895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17896 (eval $ac_compile) 2>conftest.er1
a848cd7e 17897 ac_status=$?
ac1cb8d3
VS
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
a848cd7e
SC
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
3565d135
RR
17903 { ac_try='test -z "$ac_c_werror_flag"
17904 || test ! -s conftest.err'
ac1cb8d3
VS
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_lo=$ac_mid; break
17917else
17918 echo "$as_me: failed program was:" >&5
17919sed 's/^/| /' conftest.$ac_ext >&5
17920
17921ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17922 if test $ac_mid -le $ac_hi; then
17923 ac_lo= ac_hi=
17924 break
17925 fi
17926 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17927fi
ac1cb8d3 17928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17929 done
17930else
17931 echo "$as_me: failed program was:" >&5
17932sed 's/^/| /' conftest.$ac_ext >&5
17933
17934ac_lo= ac_hi=
17935fi
ac1cb8d3 17936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17937fi
ac1cb8d3 17938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17939# Binary search between lo and hi bounds.
17940while test "x$ac_lo" != "x$ac_hi"; do
17941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17942 cat >conftest.$ac_ext <<_ACEOF
17943/* confdefs.h. */
17944_ACEOF
17945cat confdefs.h >>conftest.$ac_ext
17946cat >>conftest.$ac_ext <<_ACEOF
17947/* end confdefs.h. */
17948$ac_includes_default
17949int
17950main ()
17951{
17952static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17953test_array [0] = 0
17954
17955 ;
17956 return 0;
17957}
17958_ACEOF
17959rm -f conftest.$ac_objext
17960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17961 (eval $ac_compile) 2>conftest.er1
a848cd7e 17962 ac_status=$?
ac1cb8d3
VS
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
a848cd7e
SC
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
3565d135
RR
17968 { ac_try='test -z "$ac_c_werror_flag"
17969 || test ! -s conftest.err'
ac1cb8d3
VS
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_hi=$ac_mid
17982else
17983 echo "$as_me: failed program was:" >&5
17984sed 's/^/| /' conftest.$ac_ext >&5
17985
17986ac_lo=`expr '(' $ac_mid ')' + 1`
17987fi
ac1cb8d3 17988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17989done
17990case $ac_lo in
17991?*) ac_cv_sizeof_void_p=$ac_lo;;
17992'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17993See \`config.log' for more details." >&5
17994echo "$as_me: error: cannot compute sizeof (void *), 77
17995See \`config.log' for more details." >&2;}
17996 { (exit 1); exit 1; }; } ;;
17997esac
17998else
17999 if test "$cross_compiling" = yes; then
3565d135
RR
18000 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18001See \`config.log' for more details." >&5
18002echo "$as_me: error: cannot run test program while cross compiling
18003See \`config.log' for more details." >&2;}
a848cd7e
SC
18004 { (exit 1); exit 1; }; }
18005else
18006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
18012$ac_includes_default
18013long longval () { return (long) (sizeof (void *)); }
18014unsigned long ulongval () { return (long) (sizeof (void *)); }
18015#include <stdio.h>
18016#include <stdlib.h>
18017int
18018main ()
18019{
18020
18021 FILE *f = fopen ("conftest.val", "w");
18022 if (! f)
18023 exit (1);
18024 if (((long) (sizeof (void *))) < 0)
18025 {
18026 long i = longval ();
18027 if (i != ((long) (sizeof (void *))))
18028 exit (1);
18029 fprintf (f, "%ld\n", i);
18030 }
18031 else
18032 {
18033 unsigned long i = ulongval ();
18034 if (i != ((long) (sizeof (void *))))
18035 exit (1);
18036 fprintf (f, "%lu\n", i);
18037 }
18038 exit (ferror (f) || fclose (f) != 0);
18039
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044rm -f conftest$ac_exeext
18045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_sizeof_void_p=`cat conftest.val`
18056else
18057 echo "$as_me: program exited with status $ac_status" >&5
18058echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061( exit $ac_status )
18062{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18063See \`config.log' for more details." >&5
18064echo "$as_me: error: cannot compute sizeof (void *), 77
18065See \`config.log' for more details." >&2;}
18066 { (exit 1); exit 1; }; }
18067fi
ac1cb8d3 18068rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18069fi
18070fi
18071rm -f conftest.val
18072else
18073 ac_cv_sizeof_void_p=0
18074fi
18075fi
18076echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18077echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18078cat >>confdefs.h <<_ACEOF
18079#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18080_ACEOF
18081
18082
18083echo "$as_me:$LINENO: checking for int" >&5
18084echo $ECHO_N "checking for int... $ECHO_C" >&6
18085if test "${ac_cv_type_int+set}" = set; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18087else
18088 cat >conftest.$ac_ext <<_ACEOF
18089/* confdefs.h. */
18090_ACEOF
18091cat confdefs.h >>conftest.$ac_ext
18092cat >>conftest.$ac_ext <<_ACEOF
18093/* end confdefs.h. */
18094$ac_includes_default
18095int
18096main ()
18097{
18098if ((int *) 0)
18099 return 0;
18100if (sizeof (int))
18101 return 0;
18102 ;
18103 return 0;
18104}
18105_ACEOF
18106rm -f conftest.$ac_objext
18107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18108 (eval $ac_compile) 2>conftest.er1
a848cd7e 18109 ac_status=$?
ac1cb8d3
VS
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
a848cd7e
SC
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
3565d135
RR
18115 { ac_try='test -z "$ac_c_werror_flag"
18116 || test ! -s conftest.err'
ac1cb8d3
VS
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_type_int=yes
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133ac_cv_type_int=no
18134fi
ac1cb8d3 18135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18136fi
18137echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18138echo "${ECHO_T}$ac_cv_type_int" >&6
18139
18140echo "$as_me:$LINENO: checking size of int" >&5
18141echo $ECHO_N "checking size of int... $ECHO_C" >&6
18142if test "${ac_cv_sizeof_int+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18144else
18145 if test "$ac_cv_type_int" = yes; then
18146 # The cast to unsigned long works around a bug in the HP C Compiler
18147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18149 # This bug is HP SR number 8606223364.
18150 if test "$cross_compiling" = yes; then
18151 # Depending upon the size, compute the lo and hi bounds.
18152cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h. */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h. */
18158$ac_includes_default
18159int
18160main ()
18161{
18162static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18163test_array [0] = 0
18164
18165 ;
18166 return 0;
18167}
18168_ACEOF
18169rm -f conftest.$ac_objext
18170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18171 (eval $ac_compile) 2>conftest.er1
a848cd7e 18172 ac_status=$?
ac1cb8d3
VS
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
a848cd7e
SC
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
3565d135
RR
18178 { ac_try='test -z "$ac_c_werror_flag"
18179 || test ! -s conftest.err'
ac1cb8d3
VS
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_lo=0 ac_mid=0
18192 while :; do
18193 cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199$ac_includes_default
18200int
18201main ()
18202{
18203static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18204test_array [0] = 0
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext
18211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18212 (eval $ac_compile) 2>conftest.er1
a848cd7e 18213 ac_status=$?
ac1cb8d3
VS
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
a848cd7e
SC
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
3565d135
RR
18219 { ac_try='test -z "$ac_c_werror_flag"
18220 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 ac_hi=$ac_mid; break
18233else
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18238 if test $ac_lo -le $ac_mid; then
18239 ac_lo= ac_hi=
18240 break
18241 fi
18242 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18243fi
ac1cb8d3 18244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18245 done
18246else
18247 echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256$ac_includes_default
18257int
18258main ()
18259{
18260static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18261test_array [0] = 0
18262
18263 ;
18264 return 0;
18265}
18266_ACEOF
18267rm -f conftest.$ac_objext
18268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18269 (eval $ac_compile) 2>conftest.er1
a848cd7e 18270 ac_status=$?
ac1cb8d3
VS
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
a848cd7e
SC
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
3565d135
RR
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
ac1cb8d3
VS
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_hi=-1 ac_mid=-1
18290 while :; do
18291 cat >conftest.$ac_ext <<_ACEOF
18292/* confdefs.h. */
18293_ACEOF
18294cat confdefs.h >>conftest.$ac_ext
18295cat >>conftest.$ac_ext <<_ACEOF
18296/* end confdefs.h. */
18297$ac_includes_default
18298int
18299main ()
18300{
18301static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18302test_array [0] = 0
18303
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext
18309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18310 (eval $ac_compile) 2>conftest.er1
a848cd7e 18311 ac_status=$?
ac1cb8d3
VS
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
a848cd7e
SC
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
3565d135
RR
18317 { ac_try='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
ac1cb8d3
VS
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_lo=$ac_mid; break
18331else
18332 echo "$as_me: failed program was:" >&5
18333sed 's/^/| /' conftest.$ac_ext >&5
18334
18335ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18336 if test $ac_mid -le $ac_hi; then
18337 ac_lo= ac_hi=
18338 break
18339 fi
18340 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18341fi
ac1cb8d3 18342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18343 done
18344else
18345 echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348ac_lo= ac_hi=
18349fi
ac1cb8d3 18350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18351fi
ac1cb8d3 18352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18353# Binary search between lo and hi bounds.
18354while test "x$ac_lo" != "x$ac_hi"; do
18355 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18356 cat >conftest.$ac_ext <<_ACEOF
18357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
18362$ac_includes_default
18363int
18364main ()
18365{
18366static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18367test_array [0] = 0
18368
18369 ;
18370 return 0;
18371}
18372_ACEOF
18373rm -f conftest.$ac_objext
18374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18375 (eval $ac_compile) 2>conftest.er1
a848cd7e 18376 ac_status=$?
ac1cb8d3
VS
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
a848cd7e
SC
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
3565d135
RR
18382 { ac_try='test -z "$ac_c_werror_flag"
18383 || test ! -s conftest.err'
ac1cb8d3
VS
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_hi=$ac_mid
18396else
18397 echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400ac_lo=`expr '(' $ac_mid ')' + 1`
18401fi
ac1cb8d3 18402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18403done
18404case $ac_lo in
18405?*) ac_cv_sizeof_int=$ac_lo;;
18406'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18407See \`config.log' for more details." >&5
18408echo "$as_me: error: cannot compute sizeof (int), 77
18409See \`config.log' for more details." >&2;}
18410 { (exit 1); exit 1; }; } ;;
18411esac
18412else
18413 if test "$cross_compiling" = yes; then
3565d135
RR
18414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18415See \`config.log' for more details." >&5
18416echo "$as_me: error: cannot run test program while cross compiling
18417See \`config.log' for more details." >&2;}
a848cd7e
SC
18418 { (exit 1); exit 1; }; }
18419else
18420 cat >conftest.$ac_ext <<_ACEOF
18421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
18425/* end confdefs.h. */
18426$ac_includes_default
18427long longval () { return (long) (sizeof (int)); }
18428unsigned long ulongval () { return (long) (sizeof (int)); }
18429#include <stdio.h>
18430#include <stdlib.h>
18431int
18432main ()
18433{
18434
18435 FILE *f = fopen ("conftest.val", "w");
18436 if (! f)
18437 exit (1);
18438 if (((long) (sizeof (int))) < 0)
18439 {
18440 long i = longval ();
18441 if (i != ((long) (sizeof (int))))
18442 exit (1);
18443 fprintf (f, "%ld\n", i);
18444 }
18445 else
18446 {
18447 unsigned long i = ulongval ();
18448 if (i != ((long) (sizeof (int))))
18449 exit (1);
18450 fprintf (f, "%lu\n", i);
18451 }
18452 exit (ferror (f) || fclose (f) != 0);
18453
18454 ;
18455 return 0;
18456}
18457_ACEOF
18458rm -f conftest$ac_exeext
18459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_sizeof_int=`cat conftest.val`
18470else
18471 echo "$as_me: program exited with status $ac_status" >&5
18472echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475( exit $ac_status )
18476{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18477See \`config.log' for more details." >&5
18478echo "$as_me: error: cannot compute sizeof (int), 77
18479See \`config.log' for more details." >&2;}
18480 { (exit 1); exit 1; }; }
18481fi
ac1cb8d3 18482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18483fi
18484fi
18485rm -f conftest.val
18486else
18487 ac_cv_sizeof_int=0
18488fi
18489fi
18490echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18491echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18492cat >>confdefs.h <<_ACEOF
18493#define SIZEOF_INT $ac_cv_sizeof_int
18494_ACEOF
18495
18496
18497echo "$as_me:$LINENO: checking for long" >&5
18498echo $ECHO_N "checking for long... $ECHO_C" >&6
18499if test "${ac_cv_type_long+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18501else
18502 cat >conftest.$ac_ext <<_ACEOF
18503/* confdefs.h. */
18504_ACEOF
18505cat confdefs.h >>conftest.$ac_ext
18506cat >>conftest.$ac_ext <<_ACEOF
18507/* end confdefs.h. */
18508$ac_includes_default
18509int
18510main ()
18511{
18512if ((long *) 0)
18513 return 0;
18514if (sizeof (long))
18515 return 0;
18516 ;
18517 return 0;
18518}
18519_ACEOF
18520rm -f conftest.$ac_objext
18521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18522 (eval $ac_compile) 2>conftest.er1
a848cd7e 18523 ac_status=$?
ac1cb8d3
VS
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
a848cd7e
SC
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
3565d135
RR
18529 { ac_try='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
ac1cb8d3
VS
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_type_long=yes
18543else
18544 echo "$as_me: failed program was:" >&5
18545sed 's/^/| /' conftest.$ac_ext >&5
18546
18547ac_cv_type_long=no
18548fi
ac1cb8d3 18549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18550fi
18551echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18552echo "${ECHO_T}$ac_cv_type_long" >&6
18553
18554echo "$as_me:$LINENO: checking size of long" >&5
18555echo $ECHO_N "checking size of long... $ECHO_C" >&6
18556if test "${ac_cv_sizeof_long+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558else
18559 if test "$ac_cv_type_long" = yes; then
18560 # The cast to unsigned long works around a bug in the HP C Compiler
18561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18563 # This bug is HP SR number 8606223364.
18564 if test "$cross_compiling" = yes; then
18565 # Depending upon the size, compute the lo and hi bounds.
18566cat >conftest.$ac_ext <<_ACEOF
18567/* confdefs.h. */
18568_ACEOF
18569cat confdefs.h >>conftest.$ac_ext
18570cat >>conftest.$ac_ext <<_ACEOF
18571/* end confdefs.h. */
18572$ac_includes_default
18573int
18574main ()
18575{
18576static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18577test_array [0] = 0
18578
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18585 (eval $ac_compile) 2>conftest.er1
a848cd7e 18586 ac_status=$?
ac1cb8d3
VS
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
a848cd7e
SC
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
3565d135
RR
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
ac1cb8d3
VS
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_lo=0 ac_mid=0
18606 while :; do
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613$ac_includes_default
18614int
18615main ()
18616{
18617static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18618test_array [0] = 0
18619
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext
18625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18626 (eval $ac_compile) 2>conftest.er1
a848cd7e 18627 ac_status=$?
ac1cb8d3
VS
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
a848cd7e
SC
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
3565d135
RR
18633 { ac_try='test -z "$ac_c_werror_flag"
18634 || test ! -s conftest.err'
ac1cb8d3
VS
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_hi=$ac_mid; break
18647else
18648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18652 if test $ac_lo -le $ac_mid; then
18653 ac_lo= ac_hi=
18654 break
18655 fi
18656 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18657fi
ac1cb8d3 18658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18659 done
18660else
18661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664cat >conftest.$ac_ext <<_ACEOF
18665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
18670$ac_includes_default
18671int
18672main ()
18673{
18674static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18675test_array [0] = 0
18676
18677 ;
18678 return 0;
18679}
18680_ACEOF
18681rm -f conftest.$ac_objext
18682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18683 (eval $ac_compile) 2>conftest.er1
a848cd7e 18684 ac_status=$?
ac1cb8d3
VS
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
a848cd7e
SC
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
3565d135
RR
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_hi=-1 ac_mid=-1
18704 while :; do
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
18712int
18713main ()
18714{
18715static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18716test_array [0] = 0
18717
18718 ;
18719 return 0;
18720}
18721_ACEOF
18722rm -f conftest.$ac_objext
18723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18724 (eval $ac_compile) 2>conftest.er1
a848cd7e 18725 ac_status=$?
ac1cb8d3
VS
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
a848cd7e
SC
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
3565d135
RR
18731 { ac_try='test -z "$ac_c_werror_flag"
18732 || test ! -s conftest.err'
ac1cb8d3
VS
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_lo=$ac_mid; break
18745else
18746 echo "$as_me: failed program was:" >&5
18747sed 's/^/| /' conftest.$ac_ext >&5
18748
18749ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18750 if test $ac_mid -le $ac_hi; then
18751 ac_lo= ac_hi=
18752 break
18753 fi
18754 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18755fi
ac1cb8d3 18756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18757 done
18758else
18759 echo "$as_me: failed program was:" >&5
18760sed 's/^/| /' conftest.$ac_ext >&5
18761
18762ac_lo= ac_hi=
18763fi
ac1cb8d3 18764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18765fi
ac1cb8d3 18766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18767# Binary search between lo and hi bounds.
18768while test "x$ac_lo" != "x$ac_hi"; do
18769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18770 cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
18776$ac_includes_default
18777int
18778main ()
18779{
18780static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18781test_array [0] = 0
18782
18783 ;
18784 return 0;
18785}
18786_ACEOF
18787rm -f conftest.$ac_objext
18788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18789 (eval $ac_compile) 2>conftest.er1
a848cd7e 18790 ac_status=$?
ac1cb8d3
VS
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
a848cd7e
SC
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
3565d135
RR
18796 { ac_try='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
ac1cb8d3
VS
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_hi=$ac_mid
18810else
18811 echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
18814ac_lo=`expr '(' $ac_mid ')' + 1`
18815fi
ac1cb8d3 18816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18817done
18818case $ac_lo in
18819?*) ac_cv_sizeof_long=$ac_lo;;
18820'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18821See \`config.log' for more details." >&5
18822echo "$as_me: error: cannot compute sizeof (long), 77
18823See \`config.log' for more details." >&2;}
18824 { (exit 1); exit 1; }; } ;;
18825esac
18826else
18827 if test "$cross_compiling" = yes; then
3565d135
RR
18828 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18829See \`config.log' for more details." >&5
18830echo "$as_me: error: cannot run test program while cross compiling
18831See \`config.log' for more details." >&2;}
a848cd7e
SC
18832 { (exit 1); exit 1; }; }
18833else
18834 cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840$ac_includes_default
18841long longval () { return (long) (sizeof (long)); }
18842unsigned long ulongval () { return (long) (sizeof (long)); }
18843#include <stdio.h>
18844#include <stdlib.h>
18845int
18846main ()
18847{
18848
18849 FILE *f = fopen ("conftest.val", "w");
18850 if (! f)
18851 exit (1);
18852 if (((long) (sizeof (long))) < 0)
18853 {
18854 long i = longval ();
18855 if (i != ((long) (sizeof (long))))
18856 exit (1);
18857 fprintf (f, "%ld\n", i);
18858 }
18859 else
18860 {
18861 unsigned long i = ulongval ();
18862 if (i != ((long) (sizeof (long))))
18863 exit (1);
18864 fprintf (f, "%lu\n", i);
18865 }
18866 exit (ferror (f) || fclose (f) != 0);
18867
18868 ;
18869 return 0;
18870}
18871_ACEOF
18872rm -f conftest$ac_exeext
18873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_cv_sizeof_long=`cat conftest.val`
18884else
18885 echo "$as_me: program exited with status $ac_status" >&5
18886echo "$as_me: failed program was:" >&5
18887sed 's/^/| /' conftest.$ac_ext >&5
18888
18889( exit $ac_status )
18890{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18891See \`config.log' for more details." >&5
18892echo "$as_me: error: cannot compute sizeof (long), 77
18893See \`config.log' for more details." >&2;}
18894 { (exit 1); exit 1; }; }
18895fi
ac1cb8d3 18896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18897fi
18898fi
18899rm -f conftest.val
18900else
18901 ac_cv_sizeof_long=0
18902fi
18903fi
18904echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18905echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18906cat >>confdefs.h <<_ACEOF
18907#define SIZEOF_LONG $ac_cv_sizeof_long
18908_ACEOF
18909
18910
18911echo "$as_me:$LINENO: checking for size_t" >&5
18912echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18913if test "${ac_cv_type_size_t+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922$ac_includes_default
18923int
18924main ()
18925{
18926if ((size_t *) 0)
18927 return 0;
18928if (sizeof (size_t))
18929 return 0;
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest.$ac_objext
18935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18936 (eval $ac_compile) 2>conftest.er1
a848cd7e 18937 ac_status=$?
ac1cb8d3
VS
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
a848cd7e
SC
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
3565d135
RR
18943 { ac_try='test -z "$ac_c_werror_flag"
18944 || test ! -s conftest.err'
ac1cb8d3
VS
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 ac_cv_type_size_t=yes
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961ac_cv_type_size_t=no
18962fi
ac1cb8d3 18963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18964fi
18965echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18966echo "${ECHO_T}$ac_cv_type_size_t" >&6
18967
18968echo "$as_me:$LINENO: checking size of size_t" >&5
18969echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18970if test "${ac_cv_sizeof_size_t+set}" = set; then
18971 echo $ECHO_N "(cached) $ECHO_C" >&6
18972else
18973 if test "$ac_cv_type_size_t" = yes; then
18974 # The cast to unsigned long works around a bug in the HP C Compiler
18975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18977 # This bug is HP SR number 8606223364.
18978 if test "$cross_compiling" = yes; then
18979 # Depending upon the size, compute the lo and hi bounds.
18980cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986$ac_includes_default
18987int
18988main ()
18989{
18990static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18991test_array [0] = 0
18992
18993 ;
18994 return 0;
18995}
18996_ACEOF
18997rm -f conftest.$ac_objext
18998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18999 (eval $ac_compile) 2>conftest.er1
a848cd7e 19000 ac_status=$?
ac1cb8d3
VS
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
a848cd7e
SC
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
3565d135
RR
19006 { ac_try='test -z "$ac_c_werror_flag"
19007 || test ! -s conftest.err'
ac1cb8d3
VS
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_lo=0 ac_mid=0
19020 while :; do
19021 cat >conftest.$ac_ext <<_ACEOF
19022/* confdefs.h. */
19023_ACEOF
19024cat confdefs.h >>conftest.$ac_ext
19025cat >>conftest.$ac_ext <<_ACEOF
19026/* end confdefs.h. */
19027$ac_includes_default
19028int
19029main ()
19030{
19031static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19032test_array [0] = 0
19033
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext
19039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19040 (eval $ac_compile) 2>conftest.er1
a848cd7e 19041 ac_status=$?
ac1cb8d3
VS
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
a848cd7e
SC
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
3565d135
RR
19047 { ac_try='test -z "$ac_c_werror_flag"
19048 || test ! -s conftest.err'
ac1cb8d3
VS
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_hi=$ac_mid; break
19061else
19062 echo "$as_me: failed program was:" >&5
19063sed 's/^/| /' conftest.$ac_ext >&5
19064
19065ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19066 if test $ac_lo -le $ac_mid; then
19067 ac_lo= ac_hi=
19068 break
19069 fi
19070 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19071fi
ac1cb8d3 19072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19073 done
19074else
19075 echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078cat >conftest.$ac_ext <<_ACEOF
19079/* confdefs.h. */
19080_ACEOF
19081cat confdefs.h >>conftest.$ac_ext
19082cat >>conftest.$ac_ext <<_ACEOF
19083/* end confdefs.h. */
19084$ac_includes_default
19085int
19086main ()
19087{
19088static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19089test_array [0] = 0
19090
19091 ;
19092 return 0;
19093}
19094_ACEOF
19095rm -f conftest.$ac_objext
19096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19097 (eval $ac_compile) 2>conftest.er1
a848cd7e 19098 ac_status=$?
ac1cb8d3
VS
19099 grep -v '^ *+' conftest.er1 >conftest.err
19100 rm -f conftest.er1
19101 cat conftest.err >&5
a848cd7e
SC
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } &&
3565d135
RR
19104 { ac_try='test -z "$ac_c_werror_flag"
19105 || test ! -s conftest.err'
ac1cb8d3
VS
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; } &&
19111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; }; then
19117 ac_hi=-1 ac_mid=-1
19118 while :; do
19119 cat >conftest.$ac_ext <<_ACEOF
19120/* confdefs.h. */
19121_ACEOF
19122cat confdefs.h >>conftest.$ac_ext
19123cat >>conftest.$ac_ext <<_ACEOF
19124/* end confdefs.h. */
19125$ac_includes_default
19126int
19127main ()
19128{
19129static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19130test_array [0] = 0
19131
19132 ;
19133 return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19138 (eval $ac_compile) 2>conftest.er1
a848cd7e 19139 ac_status=$?
ac1cb8d3
VS
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
a848cd7e
SC
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
3565d135
RR
19145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
ac1cb8d3
VS
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_lo=$ac_mid; break
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19164 if test $ac_mid -le $ac_hi; then
19165 ac_lo= ac_hi=
19166 break
19167 fi
19168 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19169fi
ac1cb8d3 19170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19171 done
19172else
19173 echo "$as_me: failed program was:" >&5
19174sed 's/^/| /' conftest.$ac_ext >&5
19175
19176ac_lo= ac_hi=
19177fi
ac1cb8d3 19178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19179fi
ac1cb8d3 19180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19181# Binary search between lo and hi bounds.
19182while test "x$ac_lo" != "x$ac_hi"; do
19183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190$ac_includes_default
19191int
19192main ()
19193{
19194static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19195test_array [0] = 0
19196
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19203 (eval $ac_compile) 2>conftest.er1
a848cd7e 19204 ac_status=$?
ac1cb8d3
VS
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
a848cd7e
SC
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
3565d135
RR
19210 { ac_try='test -z "$ac_c_werror_flag"
19211 || test ! -s conftest.err'
ac1cb8d3
VS
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_hi=$ac_mid
19224else
19225 echo "$as_me: failed program was:" >&5
19226sed 's/^/| /' conftest.$ac_ext >&5
19227
19228ac_lo=`expr '(' $ac_mid ')' + 1`
19229fi
ac1cb8d3 19230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19231done
19232case $ac_lo in
19233?*) ac_cv_sizeof_size_t=$ac_lo;;
19234'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19235See \`config.log' for more details." >&5
19236echo "$as_me: error: cannot compute sizeof (size_t), 77
19237See \`config.log' for more details." >&2;}
19238 { (exit 1); exit 1; }; } ;;
19239esac
19240else
19241 if test "$cross_compiling" = yes; then
3565d135
RR
19242 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19243See \`config.log' for more details." >&5
19244echo "$as_me: error: cannot run test program while cross compiling
19245See \`config.log' for more details." >&2;}
a848cd7e
SC
19246 { (exit 1); exit 1; }; }
19247else
19248 cat >conftest.$ac_ext <<_ACEOF
19249/* confdefs.h. */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h. */
19254$ac_includes_default
19255long longval () { return (long) (sizeof (size_t)); }
19256unsigned long ulongval () { return (long) (sizeof (size_t)); }
19257#include <stdio.h>
19258#include <stdlib.h>
19259int
19260main ()
19261{
19262
19263 FILE *f = fopen ("conftest.val", "w");
19264 if (! f)
19265 exit (1);
19266 if (((long) (sizeof (size_t))) < 0)
19267 {
19268 long i = longval ();
19269 if (i != ((long) (sizeof (size_t))))
19270 exit (1);
19271 fprintf (f, "%ld\n", i);
19272 }
19273 else
19274 {
19275 unsigned long i = ulongval ();
19276 if (i != ((long) (sizeof (size_t))))
19277 exit (1);
19278 fprintf (f, "%lu\n", i);
19279 }
19280 exit (ferror (f) || fclose (f) != 0);
19281
19282 ;
19283 return 0;
19284}
19285_ACEOF
19286rm -f conftest$ac_exeext
19287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19288 (eval $ac_link) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_cv_sizeof_size_t=`cat conftest.val`
19298else
19299 echo "$as_me: program exited with status $ac_status" >&5
19300echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303( exit $ac_status )
19304{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19305See \`config.log' for more details." >&5
19306echo "$as_me: error: cannot compute sizeof (size_t), 77
19307See \`config.log' for more details." >&2;}
19308 { (exit 1); exit 1; }; }
19309fi
ac1cb8d3 19310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19311fi
19312fi
19313rm -f conftest.val
19314else
19315 ac_cv_sizeof_size_t=0
19316fi
19317fi
19318echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19319echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19320cat >>confdefs.h <<_ACEOF
19321#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19322_ACEOF
19323
19324
19325
19326case "${host}" in
19327 arm-*-linux* )
19328 echo "$as_me:$LINENO: checking for long long" >&5
19329echo $ECHO_N "checking for long long... $ECHO_C" >&6
19330if test "${ac_cv_type_long_long+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19332else
19333 cat >conftest.$ac_ext <<_ACEOF
19334/* confdefs.h. */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h. */
19339$ac_includes_default
19340int
19341main ()
19342{
19343if ((long long *) 0)
19344 return 0;
19345if (sizeof (long long))
19346 return 0;
19347 ;
19348 return 0;
19349}
19350_ACEOF
19351rm -f conftest.$ac_objext
19352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19353 (eval $ac_compile) 2>conftest.er1
a848cd7e 19354 ac_status=$?
ac1cb8d3
VS
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
a848cd7e
SC
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
3565d135
RR
19360 { ac_try='test -z "$ac_c_werror_flag"
19361 || test ! -s conftest.err'
ac1cb8d3
VS
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_type_long_long=yes
19374else
19375 echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378ac_cv_type_long_long=no
19379fi
ac1cb8d3 19380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19381fi
19382echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19383echo "${ECHO_T}$ac_cv_type_long_long" >&6
19384
19385echo "$as_me:$LINENO: checking size of long long" >&5
19386echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19387if test "${ac_cv_sizeof_long_long+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389else
19390 if test "$ac_cv_type_long_long" = yes; then
19391 # The cast to unsigned long works around a bug in the HP C Compiler
19392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19394 # This bug is HP SR number 8606223364.
19395 if test "$cross_compiling" = yes; then
19396 # Depending upon the size, compute the lo and hi bounds.
19397cat >conftest.$ac_ext <<_ACEOF
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
19402/* end confdefs.h. */
19403$ac_includes_default
19404int
19405main ()
19406{
19407static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19408test_array [0] = 0
19409
19410 ;
19411 return 0;
19412}
19413_ACEOF
19414rm -f conftest.$ac_objext
19415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19416 (eval $ac_compile) 2>conftest.er1
a848cd7e 19417 ac_status=$?
ac1cb8d3
VS
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
a848cd7e
SC
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
3565d135
RR
19423 { ac_try='test -z "$ac_c_werror_flag"
19424 || test ! -s conftest.err'
ac1cb8d3
VS
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_lo=0 ac_mid=0
19437 while :; do
19438 cat >conftest.$ac_ext <<_ACEOF
19439/* confdefs.h. */
19440_ACEOF
19441cat confdefs.h >>conftest.$ac_ext
19442cat >>conftest.$ac_ext <<_ACEOF
19443/* end confdefs.h. */
19444$ac_includes_default
19445int
19446main ()
19447{
19448static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19449test_array [0] = 0
19450
19451 ;
19452 return 0;
19453}
19454_ACEOF
19455rm -f conftest.$ac_objext
19456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19457 (eval $ac_compile) 2>conftest.er1
a848cd7e 19458 ac_status=$?
ac1cb8d3
VS
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
a848cd7e
SC
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
3565d135
RR
19464 { ac_try='test -z "$ac_c_werror_flag"
19465 || test ! -s conftest.err'
ac1cb8d3
VS
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 ac_hi=$ac_mid; break
19478else
19479 echo "$as_me: failed program was:" >&5
19480sed 's/^/| /' conftest.$ac_ext >&5
19481
19482ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19483 if test $ac_lo -le $ac_mid; then
19484 ac_lo= ac_hi=
19485 break
19486 fi
19487 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19488fi
ac1cb8d3 19489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19490 done
19491else
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495cat >conftest.$ac_ext <<_ACEOF
19496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
19501$ac_includes_default
19502int
19503main ()
19504{
19505static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19506test_array [0] = 0
19507
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19514 (eval $ac_compile) 2>conftest.er1
a848cd7e 19515 ac_status=$?
ac1cb8d3
VS
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
a848cd7e
SC
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
3565d135
RR
19521 { ac_try='test -z "$ac_c_werror_flag"
19522 || test ! -s conftest.err'
ac1cb8d3
VS
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_hi=-1 ac_mid=-1
19535 while :; do
19536 cat >conftest.$ac_ext <<_ACEOF
19537/* confdefs.h. */
19538_ACEOF
19539cat confdefs.h >>conftest.$ac_ext
19540cat >>conftest.$ac_ext <<_ACEOF
19541/* end confdefs.h. */
19542$ac_includes_default
19543int
19544main ()
19545{
19546static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19547test_array [0] = 0
19548
19549 ;
19550 return 0;
19551}
19552_ACEOF
19553rm -f conftest.$ac_objext
19554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19555 (eval $ac_compile) 2>conftest.er1
a848cd7e 19556 ac_status=$?
ac1cb8d3
VS
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
a848cd7e
SC
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
3565d135
RR
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
ac1cb8d3
VS
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_lo=$ac_mid; break
19576else
19577 echo "$as_me: failed program was:" >&5
19578sed 's/^/| /' conftest.$ac_ext >&5
19579
19580ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19581 if test $ac_mid -le $ac_hi; then
19582 ac_lo= ac_hi=
19583 break
19584 fi
19585 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19586fi
ac1cb8d3 19587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19588 done
19589else
19590 echo "$as_me: failed program was:" >&5
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
19593ac_lo= ac_hi=
19594fi
ac1cb8d3 19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19596fi
ac1cb8d3 19597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19598# Binary search between lo and hi bounds.
19599while test "x$ac_lo" != "x$ac_hi"; do
19600 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19601 cat >conftest.$ac_ext <<_ACEOF
19602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
19606/* end confdefs.h. */
19607$ac_includes_default
19608int
19609main ()
19610{
19611static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19612test_array [0] = 0
19613
19614 ;
19615 return 0;
19616}
19617_ACEOF
19618rm -f conftest.$ac_objext
19619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19620 (eval $ac_compile) 2>conftest.er1
a848cd7e 19621 ac_status=$?
ac1cb8d3
VS
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
a848cd7e
SC
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
3565d135
RR
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
ac1cb8d3
VS
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_hi=$ac_mid
19641else
19642 echo "$as_me: failed program was:" >&5
19643sed 's/^/| /' conftest.$ac_ext >&5
19644
19645ac_lo=`expr '(' $ac_mid ')' + 1`
19646fi
ac1cb8d3 19647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19648done
19649case $ac_lo in
19650?*) ac_cv_sizeof_long_long=$ac_lo;;
19651'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19652See \`config.log' for more details." >&5
19653echo "$as_me: error: cannot compute sizeof (long long), 77
19654See \`config.log' for more details." >&2;}
19655 { (exit 1); exit 1; }; } ;;
19656esac
19657else
19658 if test "$cross_compiling" = yes; then
3565d135
RR
19659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19660See \`config.log' for more details." >&5
19661echo "$as_me: error: cannot run test program while cross compiling
19662See \`config.log' for more details." >&2;}
a848cd7e
SC
19663 { (exit 1); exit 1; }; }
19664else
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671$ac_includes_default
19672long longval () { return (long) (sizeof (long long)); }
19673unsigned long ulongval () { return (long) (sizeof (long long)); }
19674#include <stdio.h>
19675#include <stdlib.h>
19676int
19677main ()
19678{
19679
19680 FILE *f = fopen ("conftest.val", "w");
19681 if (! f)
19682 exit (1);
19683 if (((long) (sizeof (long long))) < 0)
19684 {
19685 long i = longval ();
19686 if (i != ((long) (sizeof (long long))))
19687 exit (1);
19688 fprintf (f, "%ld\n", i);
19689 }
19690 else
19691 {
19692 unsigned long i = ulongval ();
19693 if (i != ((long) (sizeof (long long))))
19694 exit (1);
19695 fprintf (f, "%lu\n", i);
19696 }
19697 exit (ferror (f) || fclose (f) != 0);
19698
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703rm -f conftest$ac_exeext
19704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_cv_sizeof_long_long=`cat conftest.val`
19715else
19716 echo "$as_me: program exited with status $ac_status" >&5
19717echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720( exit $ac_status )
19721{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19722See \`config.log' for more details." >&5
19723echo "$as_me: error: cannot compute sizeof (long long), 77
19724See \`config.log' for more details." >&2;}
19725 { (exit 1); exit 1; }; }
19726fi
ac1cb8d3 19727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19728fi
19729fi
19730rm -f conftest.val
19731else
19732 ac_cv_sizeof_long_long=0
19733fi
19734fi
19735echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19736echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19737cat >>confdefs.h <<_ACEOF
19738#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19739_ACEOF
19740
19741
19742 ;;
19743 *-hp-hpux* )
19744 echo "$as_me:$LINENO: checking for long long" >&5
19745echo $ECHO_N "checking for long long... $ECHO_C" >&6
19746if test "${ac_cv_type_long_long+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749 cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
19755$ac_includes_default
19756int
19757main ()
19758{
19759if ((long long *) 0)
19760 return 0;
19761if (sizeof (long long))
19762 return 0;
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19769 (eval $ac_compile) 2>conftest.er1
a848cd7e 19770 ac_status=$?
ac1cb8d3
VS
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
a848cd7e
SC
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
3565d135
RR
19776 { ac_try='test -z "$ac_c_werror_flag"
19777 || test ! -s conftest.err'
ac1cb8d3
VS
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 ac_cv_type_long_long=yes
19790else
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794ac_cv_type_long_long=no
19795fi
ac1cb8d3 19796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19797fi
19798echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19799echo "${ECHO_T}$ac_cv_type_long_long" >&6
19800
19801echo "$as_me:$LINENO: checking size of long long" >&5
19802echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19803if test "${ac_cv_sizeof_long_long+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806 if test "$ac_cv_type_long_long" = yes; then
19807 # The cast to unsigned long works around a bug in the HP C Compiler
19808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19810 # This bug is HP SR number 8606223364.
19811 if test "$cross_compiling" = yes; then
19812 # Depending upon the size, compute the lo and hi bounds.
19813cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h. */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h. */
19819$ac_includes_default
19820int
19821main ()
19822{
19823static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19824test_array [0] = 0
19825
19826 ;
19827 return 0;
19828}
19829_ACEOF
19830rm -f conftest.$ac_objext
19831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19832 (eval $ac_compile) 2>conftest.er1
a848cd7e 19833 ac_status=$?
ac1cb8d3
VS
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
a848cd7e
SC
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
3565d135
RR
19839 { ac_try='test -z "$ac_c_werror_flag"
19840 || test ! -s conftest.err'
ac1cb8d3
VS
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; } &&
19846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 ac_lo=0 ac_mid=0
19853 while :; do
19854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860$ac_includes_default
19861int
19862main ()
19863{
19864static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19865test_array [0] = 0
19866
19867 ;
19868 return 0;
19869}
19870_ACEOF
19871rm -f conftest.$ac_objext
19872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19873 (eval $ac_compile) 2>conftest.er1
a848cd7e 19874 ac_status=$?
ac1cb8d3
VS
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
a848cd7e
SC
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
3565d135
RR
19880 { ac_try='test -z "$ac_c_werror_flag"
19881 || test ! -s conftest.err'
ac1cb8d3
VS
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; } &&
19887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 ac_hi=$ac_mid; break
19894else
19895 echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
19898ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19899 if test $ac_lo -le $ac_mid; then
19900 ac_lo= ac_hi=
19901 break
19902 fi
19903 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19904fi
ac1cb8d3 19905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19906 done
19907else
19908 echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
19911cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h. */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h. */
19917$ac_includes_default
19918int
19919main ()
19920{
19921static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19922test_array [0] = 0
19923
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext
19929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19930 (eval $ac_compile) 2>conftest.er1
a848cd7e 19931 ac_status=$?
ac1cb8d3
VS
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
a848cd7e
SC
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
3565d135
RR
19937 { ac_try='test -z "$ac_c_werror_flag"
19938 || test ! -s conftest.err'
ac1cb8d3
VS
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_hi=-1 ac_mid=-1
19951 while :; do
19952 cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958$ac_includes_default
19959int
19960main ()
19961{
19962static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19963test_array [0] = 0
19964
19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19971 (eval $ac_compile) 2>conftest.er1
a848cd7e 19972 ac_status=$?
ac1cb8d3
VS
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
a848cd7e
SC
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
3565d135
RR
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
ac1cb8d3
VS
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_lo=$ac_mid; break
19992else
19993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19997 if test $ac_mid -le $ac_hi; then
19998 ac_lo= ac_hi=
19999 break
20000 fi
20001 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20002fi
ac1cb8d3 20003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20004 done
20005else
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009ac_lo= ac_hi=
20010fi
ac1cb8d3 20011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20012fi
ac1cb8d3 20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20014# Binary search between lo and hi bounds.
20015while test "x$ac_lo" != "x$ac_hi"; do
20016 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20017 cat >conftest.$ac_ext <<_ACEOF
20018/* confdefs.h. */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h. */
20023$ac_includes_default
20024int
20025main ()
20026{
20027static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20028test_array [0] = 0
20029
20030 ;
20031 return 0;
20032}
20033_ACEOF
20034rm -f conftest.$ac_objext
20035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20036 (eval $ac_compile) 2>conftest.er1
a848cd7e 20037 ac_status=$?
ac1cb8d3
VS
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
a848cd7e
SC
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
3565d135
RR
20043 { ac_try='test -z "$ac_c_werror_flag"
20044 || test ! -s conftest.err'
ac1cb8d3
VS
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_hi=$ac_mid
20057else
20058 echo "$as_me: failed program was:" >&5
20059sed 's/^/| /' conftest.$ac_ext >&5
20060
20061ac_lo=`expr '(' $ac_mid ')' + 1`
20062fi
ac1cb8d3 20063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20064done
20065case $ac_lo in
20066?*) ac_cv_sizeof_long_long=$ac_lo;;
20067'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20068See \`config.log' for more details." >&5
20069echo "$as_me: error: cannot compute sizeof (long long), 77
20070See \`config.log' for more details." >&2;}
20071 { (exit 1); exit 1; }; } ;;
20072esac
20073else
20074 if test "$cross_compiling" = yes; then
3565d135
RR
20075 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20076See \`config.log' for more details." >&5
20077echo "$as_me: error: cannot run test program while cross compiling
20078See \`config.log' for more details." >&2;}
a848cd7e
SC
20079 { (exit 1); exit 1; }; }
20080else
20081 cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
20087$ac_includes_default
20088long longval () { return (long) (sizeof (long long)); }
20089unsigned long ulongval () { return (long) (sizeof (long long)); }
20090#include <stdio.h>
20091#include <stdlib.h>
20092int
20093main ()
20094{
20095
20096 FILE *f = fopen ("conftest.val", "w");
20097 if (! f)
20098 exit (1);
20099 if (((long) (sizeof (long long))) < 0)
20100 {
20101 long i = longval ();
20102 if (i != ((long) (sizeof (long long))))
20103 exit (1);
20104 fprintf (f, "%ld\n", i);
20105 }
20106 else
20107 {
20108 unsigned long i = ulongval ();
20109 if (i != ((long) (sizeof (long long))))
20110 exit (1);
20111 fprintf (f, "%lu\n", i);
20112 }
20113 exit (ferror (f) || fclose (f) != 0);
20114
20115 ;
20116 return 0;
20117}
20118_ACEOF
20119rm -f conftest$ac_exeext
20120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20121 (eval $ac_link) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_cv_sizeof_long_long=`cat conftest.val`
20131else
20132 echo "$as_me: program exited with status $ac_status" >&5
20133echo "$as_me: failed program was:" >&5
20134sed 's/^/| /' conftest.$ac_ext >&5
20135
20136( exit $ac_status )
20137{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20138See \`config.log' for more details." >&5
20139echo "$as_me: error: cannot compute sizeof (long long), 77
20140See \`config.log' for more details." >&2;}
20141 { (exit 1); exit 1; }; }
20142fi
ac1cb8d3 20143rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20144fi
20145fi
20146rm -f conftest.val
20147else
20148 ac_cv_sizeof_long_long=0
20149fi
20150fi
20151echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20152echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20153cat >>confdefs.h <<_ACEOF
20154#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20155_ACEOF
20156
20157
20158 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20159 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20160 fi
20161 ;;
20162 * )
20163 echo "$as_me:$LINENO: checking for long long" >&5
20164echo $ECHO_N "checking for long long... $ECHO_C" >&6
20165if test "${ac_cv_type_long_long+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167else
20168 cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174$ac_includes_default
20175int
20176main ()
20177{
20178if ((long long *) 0)
20179 return 0;
20180if (sizeof (long long))
20181 return 0;
20182 ;
20183 return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20188 (eval $ac_compile) 2>conftest.er1
a848cd7e 20189 ac_status=$?
ac1cb8d3
VS
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
a848cd7e
SC
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
3565d135
RR
20195 { ac_try='test -z "$ac_c_werror_flag"
20196 || test ! -s conftest.err'
ac1cb8d3
VS
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_cv_type_long_long=yes
20209else
20210 echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
20213ac_cv_type_long_long=no
20214fi
ac1cb8d3 20215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20216fi
20217echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20218echo "${ECHO_T}$ac_cv_type_long_long" >&6
20219
20220echo "$as_me:$LINENO: checking size of long long" >&5
20221echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20222if test "${ac_cv_sizeof_long_long+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224else
20225 if test "$ac_cv_type_long_long" = yes; then
20226 # The cast to unsigned long works around a bug in the HP C Compiler
20227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20229 # This bug is HP SR number 8606223364.
20230 if test "$cross_compiling" = yes; then
20231 # Depending upon the size, compute the lo and hi bounds.
20232cat >conftest.$ac_ext <<_ACEOF
20233/* confdefs.h. */
20234_ACEOF
20235cat confdefs.h >>conftest.$ac_ext
20236cat >>conftest.$ac_ext <<_ACEOF
20237/* end confdefs.h. */
20238$ac_includes_default
20239int
20240main ()
20241{
20242static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20243test_array [0] = 0
20244
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest.$ac_objext
20250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20251 (eval $ac_compile) 2>conftest.er1
a848cd7e 20252 ac_status=$?
ac1cb8d3
VS
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
a848cd7e
SC
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
3565d135
RR
20258 { ac_try='test -z "$ac_c_werror_flag"
20259 || test ! -s conftest.err'
ac1cb8d3
VS
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; } &&
20265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_lo=0 ac_mid=0
20272 while :; do
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$ac_includes_default
20280int
20281main ()
20282{
20283static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20284test_array [0] = 0
20285
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
a848cd7e 20293 ac_status=$?
ac1cb8d3
VS
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
a848cd7e
SC
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
3565d135
RR
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
ac1cb8d3
VS
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_hi=$ac_mid; break
20313else
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20318 if test $ac_lo -le $ac_mid; then
20319 ac_lo= ac_hi=
20320 break
20321 fi
20322 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20323fi
ac1cb8d3 20324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20325 done
20326else
20327 echo "$as_me: failed program was:" >&5
20328sed 's/^/| /' conftest.$ac_ext >&5
20329
20330cat >conftest.$ac_ext <<_ACEOF
20331/* confdefs.h. */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h. */
20336$ac_includes_default
20337int
20338main ()
20339{
20340static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20341test_array [0] = 0
20342
20343 ;
20344 return 0;
20345}
20346_ACEOF
20347rm -f conftest.$ac_objext
20348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20349 (eval $ac_compile) 2>conftest.er1
a848cd7e 20350 ac_status=$?
ac1cb8d3
VS
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
a848cd7e
SC
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
3565d135
RR
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
ac1cb8d3
VS
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_hi=-1 ac_mid=-1
20370 while :; do
20371 cat >conftest.$ac_ext <<_ACEOF
20372/* confdefs.h. */
20373_ACEOF
20374cat confdefs.h >>conftest.$ac_ext
20375cat >>conftest.$ac_ext <<_ACEOF
20376/* end confdefs.h. */
20377$ac_includes_default
20378int
20379main ()
20380{
20381static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20382test_array [0] = 0
20383
20384 ;
20385 return 0;
20386}
20387_ACEOF
20388rm -f conftest.$ac_objext
20389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20390 (eval $ac_compile) 2>conftest.er1
a848cd7e 20391 ac_status=$?
ac1cb8d3
VS
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
a848cd7e
SC
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
3565d135
RR
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
ac1cb8d3
VS
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_lo=$ac_mid; break
20411else
20412 echo "$as_me: failed program was:" >&5
20413sed 's/^/| /' conftest.$ac_ext >&5
20414
20415ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20416 if test $ac_mid -le $ac_hi; then
20417 ac_lo= ac_hi=
20418 break
20419 fi
20420 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20421fi
ac1cb8d3 20422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20423 done
20424else
20425 echo "$as_me: failed program was:" >&5
20426sed 's/^/| /' conftest.$ac_ext >&5
20427
20428ac_lo= ac_hi=
20429fi
ac1cb8d3 20430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20431fi
ac1cb8d3 20432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20433# Binary search between lo and hi bounds.
20434while test "x$ac_lo" != "x$ac_hi"; do
20435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20436 cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442$ac_includes_default
20443int
20444main ()
20445{
20446static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20447test_array [0] = 0
20448
20449 ;
20450 return 0;
20451}
20452_ACEOF
20453rm -f conftest.$ac_objext
20454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20455 (eval $ac_compile) 2>conftest.er1
a848cd7e 20456 ac_status=$?
ac1cb8d3
VS
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
a848cd7e
SC
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
3565d135
RR
20462 { ac_try='test -z "$ac_c_werror_flag"
20463 || test ! -s conftest.err'
ac1cb8d3
VS
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_hi=$ac_mid
20476else
20477 echo "$as_me: failed program was:" >&5
20478sed 's/^/| /' conftest.$ac_ext >&5
20479
20480ac_lo=`expr '(' $ac_mid ')' + 1`
20481fi
ac1cb8d3 20482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20483done
20484case $ac_lo in
20485?*) ac_cv_sizeof_long_long=$ac_lo;;
20486'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20487See \`config.log' for more details." >&5
20488echo "$as_me: error: cannot compute sizeof (long long), 77
20489See \`config.log' for more details." >&2;}
20490 { (exit 1); exit 1; }; } ;;
20491esac
20492else
20493 if test "$cross_compiling" = yes; then
3565d135
RR
20494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20495See \`config.log' for more details." >&5
20496echo "$as_me: error: cannot run test program while cross compiling
20497See \`config.log' for more details." >&2;}
a848cd7e
SC
20498 { (exit 1); exit 1; }; }
20499else
20500 cat >conftest.$ac_ext <<_ACEOF
20501/* confdefs.h. */
20502_ACEOF
20503cat confdefs.h >>conftest.$ac_ext
20504cat >>conftest.$ac_ext <<_ACEOF
20505/* end confdefs.h. */
20506$ac_includes_default
20507long longval () { return (long) (sizeof (long long)); }
20508unsigned long ulongval () { return (long) (sizeof (long long)); }
20509#include <stdio.h>
20510#include <stdlib.h>
20511int
20512main ()
20513{
20514
20515 FILE *f = fopen ("conftest.val", "w");
20516 if (! f)
20517 exit (1);
20518 if (((long) (sizeof (long long))) < 0)
20519 {
20520 long i = longval ();
20521 if (i != ((long) (sizeof (long long))))
20522 exit (1);
20523 fprintf (f, "%ld\n", i);
20524 }
20525 else
20526 {
20527 unsigned long i = ulongval ();
20528 if (i != ((long) (sizeof (long long))))
20529 exit (1);
20530 fprintf (f, "%lu\n", i);
20531 }
20532 exit (ferror (f) || fclose (f) != 0);
20533
20534 ;
20535 return 0;
20536}
20537_ACEOF
20538rm -f conftest$ac_exeext
20539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20540 (eval $ac_link) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_cv_sizeof_long_long=`cat conftest.val`
20550else
20551 echo "$as_me: program exited with status $ac_status" >&5
20552echo "$as_me: failed program was:" >&5
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
20555( exit $ac_status )
20556{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20557See \`config.log' for more details." >&5
20558echo "$as_me: error: cannot compute sizeof (long long), 77
20559See \`config.log' for more details." >&2;}
20560 { (exit 1); exit 1; }; }
20561fi
ac1cb8d3 20562rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20563fi
20564fi
20565rm -f conftest.val
20566else
20567 ac_cv_sizeof_long_long=0
20568fi
20569fi
20570echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20571echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20572cat >>confdefs.h <<_ACEOF
20573#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20574_ACEOF
20575
20576
20577esac
20578
238ecede
MW
20579echo "$as_me:$LINENO: checking for wchar_t" >&5
20580echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20581if test "${ac_cv_type_wchar_t+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583else
20584 cat >conftest.$ac_ext <<_ACEOF
20585/* confdefs.h. */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h. */
20590
83d8eb47
MW
20591 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20592 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20593 # error "fake wchar_t"
20594 #endif
20595 #ifdef HAVE_WCHAR_H
20596 # ifdef __CYGWIN__
20597 # include <stddef.h>
20598 # endif
20599 # include <wchar.h>
20600 #endif
20601 #ifdef HAVE_STDLIB_H
20602 # include <stdlib.h>
20603 #endif
20604 #include <stdio.h>
20605
20606
20607
20608int
20609main ()
20610{
20611if ((wchar_t *) 0)
20612 return 0;
20613if (sizeof (wchar_t))
20614 return 0;
20615 ;
20616 return 0;
20617}
20618_ACEOF
20619rm -f conftest.$ac_objext
20620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>conftest.er1
20622 ac_status=$?
20623 grep -v '^ *+' conftest.er1 >conftest.err
20624 rm -f conftest.er1
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
3565d135
RR
20628 { ac_try='test -z "$ac_c_werror_flag"
20629 || test ! -s conftest.err'
238ecede
MW
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_cv_type_wchar_t=yes
20642else
20643 echo "$as_me: failed program was:" >&5
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
20646ac_cv_type_wchar_t=no
20647fi
20648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649fi
20650echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20651echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20652
a848cd7e
SC
20653echo "$as_me:$LINENO: checking size of wchar_t" >&5
20654echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20655if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20657else
238ecede
MW
20658 if test "$ac_cv_type_wchar_t" = yes; then
20659 # The cast to unsigned long works around a bug in the HP C Compiler
20660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20662 # This bug is HP SR number 8606223364.
20663 if test "$cross_compiling" = yes; then
20664 # Depending upon the size, compute the lo and hi bounds.
20665cat >conftest.$ac_ext <<_ACEOF
20666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
20671
83d8eb47
MW
20672 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20673 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20674 # error "fake wchar_t"
20675 #endif
20676 #ifdef HAVE_WCHAR_H
20677 # ifdef __CYGWIN__
20678 # include <stddef.h>
20679 # endif
20680 # include <wchar.h>
20681 #endif
20682 #ifdef HAVE_STDLIB_H
20683 # include <stdlib.h>
20684 #endif
20685 #include <stdio.h>
20686
20687
20688
20689int
20690main ()
20691{
20692static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20693test_array [0] = 0
20694
20695 ;
20696 return 0;
20697}
20698_ACEOF
20699rm -f conftest.$ac_objext
20700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20701 (eval $ac_compile) 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
3565d135
RR
20708 { ac_try='test -z "$ac_c_werror_flag"
20709 || test ! -s conftest.err'
238ecede
MW
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_lo=0 ac_mid=0
20722 while :; do
20723 cat >conftest.$ac_ext <<_ACEOF
20724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
20729
83d8eb47
MW
20730 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20731 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20732 # error "fake wchar_t"
20733 #endif
20734 #ifdef HAVE_WCHAR_H
20735 # ifdef __CYGWIN__
20736 # include <stddef.h>
20737 # endif
20738 # include <wchar.h>
20739 #endif
20740 #ifdef HAVE_STDLIB_H
20741 # include <stdlib.h>
20742 #endif
20743 #include <stdio.h>
20744
20745
20746
20747int
20748main ()
20749{
20750static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20751test_array [0] = 0
20752
20753 ;
20754 return 0;
20755}
20756_ACEOF
20757rm -f conftest.$ac_objext
20758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
3565d135
RR
20766 { ac_try='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
238ecede
MW
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_hi=$ac_mid; break
20780else
20781 echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784ac_lo=`expr $ac_mid + 1`
20785 if test $ac_lo -le $ac_mid; then
20786 ac_lo= ac_hi=
20787 break
20788 fi
20789 ac_mid=`expr 2 '*' $ac_mid + 1`
20790fi
20791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20792 done
20793else
20794 echo "$as_me: failed program was:" >&5
20795sed 's/^/| /' conftest.$ac_ext >&5
20796
20797cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h. */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h. */
20803
83d8eb47
MW
20804 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20805 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20806 # error "fake wchar_t"
20807 #endif
20808 #ifdef HAVE_WCHAR_H
20809 # ifdef __CYGWIN__
20810 # include <stddef.h>
20811 # endif
20812 # include <wchar.h>
20813 #endif
20814 #ifdef HAVE_STDLIB_H
20815 # include <stdlib.h>
20816 #endif
20817 #include <stdio.h>
20818
20819
20820
20821int
20822main ()
20823{
20824static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20825test_array [0] = 0
20826
20827 ;
20828 return 0;
20829}
20830_ACEOF
20831rm -f conftest.$ac_objext
20832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20833 (eval $ac_compile) 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
3565d135
RR
20840 { ac_try='test -z "$ac_c_werror_flag"
20841 || test ! -s conftest.err'
238ecede
MW
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; } &&
20847 { ac_try='test -s conftest.$ac_objext'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 ac_hi=-1 ac_mid=-1
20854 while :; do
20855 cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h. */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
20860/* end confdefs.h. */
20861
83d8eb47
MW
20862 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20863 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20864 # error "fake wchar_t"
20865 #endif
20866 #ifdef HAVE_WCHAR_H
20867 # ifdef __CYGWIN__
20868 # include <stddef.h>
20869 # endif
20870 # include <wchar.h>
20871 #endif
20872 #ifdef HAVE_STDLIB_H
20873 # include <stdlib.h>
20874 #endif
20875 #include <stdio.h>
20876
20877
20878
20879int
20880main ()
20881{
20882static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20883test_array [0] = 0
20884
20885 ;
20886 return 0;
20887}
20888_ACEOF
20889rm -f conftest.$ac_objext
20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20891 (eval $ac_compile) 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } &&
3565d135
RR
20898 { ac_try='test -z "$ac_c_werror_flag"
20899 || test ! -s conftest.err'
238ecede
MW
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_lo=$ac_mid; break
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_hi=`expr '(' $ac_mid ')' - 1`
20917 if test $ac_mid -le $ac_hi; then
20918 ac_lo= ac_hi=
20919 break
20920 fi
20921 ac_mid=`expr 2 '*' $ac_mid`
20922fi
20923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20924 done
20925else
20926 echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
20929ac_lo= ac_hi=
20930fi
20931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20932fi
20933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20934# Binary search between lo and hi bounds.
20935while test "x$ac_lo" != "x$ac_hi"; do
20936 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20937 cat >conftest.$ac_ext <<_ACEOF
20938/* confdefs.h. */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h. */
20943
83d8eb47
MW
20944 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20945 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20946 # error "fake wchar_t"
20947 #endif
20948 #ifdef HAVE_WCHAR_H
20949 # ifdef __CYGWIN__
20950 # include <stddef.h>
20951 # endif
20952 # include <wchar.h>
20953 #endif
20954 #ifdef HAVE_STDLIB_H
20955 # include <stdlib.h>
20956 #endif
20957 #include <stdio.h>
a848cd7e 20958
a848cd7e 20959
a848cd7e 20960
238ecede
MW
20961int
20962main ()
20963{
20964static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20965test_array [0] = 0
a848cd7e 20966
238ecede
MW
20967 ;
20968 return 0;
20969}
20970_ACEOF
20971rm -f conftest.$ac_objext
20972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
3565d135
RR
20980 { ac_try='test -z "$ac_c_werror_flag"
20981 || test ! -s conftest.err'
238ecede
MW
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_hi=$ac_mid
20994else
20995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
20998ac_lo=`expr '(' $ac_mid ')' + 1`
20999fi
21000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21001done
21002case $ac_lo in
21003?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21004'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21005See \`config.log' for more details." >&5
21006echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21007See \`config.log' for more details." >&2;}
21008 { (exit 1); exit 1; }; } ;;
21009esac
21010else
21011 if test "$cross_compiling" = yes; then
3565d135
RR
21012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21013See \`config.log' for more details." >&5
21014echo "$as_me: error: cannot run test program while cross compiling
21015See \`config.log' for more details." >&2;}
238ecede 21016 { (exit 1); exit 1; }; }
a848cd7e
SC
21017else
21018 cat >conftest.$ac_ext <<_ACEOF
21019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024
83d8eb47
MW
21025 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21026 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21027 # error "fake wchar_t"
21028 #endif
21029 #ifdef HAVE_WCHAR_H
21030 # ifdef __CYGWIN__
21031 # include <stddef.h>
21032 # endif
21033 # include <wchar.h>
21034 #endif
21035 #ifdef HAVE_STDLIB_H
21036 # include <stdlib.h>
21037 #endif
21038 #include <stdio.h>
21039
21040
21041
21042long longval () { return (long) (sizeof (wchar_t)); }
21043unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21044#include <stdio.h>
21045#include <stdlib.h>
21046int
21047main ()
21048{
a848cd7e 21049
238ecede
MW
21050 FILE *f = fopen ("conftest.val", "w");
21051 if (! f)
21052 exit (1);
21053 if (((long) (sizeof (wchar_t))) < 0)
21054 {
21055 long i = longval ();
21056 if (i != ((long) (sizeof (wchar_t))))
21057 exit (1);
21058 fprintf (f, "%ld\n", i);
21059 }
21060 else
21061 {
21062 unsigned long i = ulongval ();
21063 if (i != ((long) (sizeof (wchar_t))))
21064 exit (1);
21065 fprintf (f, "%lu\n", i);
21066 }
21067 exit (ferror (f) || fclose (f) != 0);
21068
21069 ;
21070 return 0;
21071}
a848cd7e
SC
21072_ACEOF
21073rm -f conftest$ac_exeext
21074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21075 (eval $ac_link) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
238ecede 21084 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21085else
21086 echo "$as_me: program exited with status $ac_status" >&5
21087echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090( exit $ac_status )
238ecede
MW
21091{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21092See \`config.log' for more details." >&5
21093echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21094See \`config.log' for more details." >&2;}
21095 { (exit 1); exit 1; }; }
a848cd7e 21096fi
ac1cb8d3 21097rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21098fi
a848cd7e 21099fi
238ecede
MW
21100rm -f conftest.val
21101else
21102 ac_cv_sizeof_wchar_t=0
21103fi
21104fi
21105echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21106echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21107cat >>confdefs.h <<_ACEOF
238ecede 21108#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21109_ACEOF
21110
21111
47a7e797
MW
21112if test "$ac_cv_sizeof_wchar_t" != "0"; then
21113 wxUSE_WCHAR_T=yes
21114else
21115 wxUSE_WCHAR_T=no
21116fi
238ecede 21117
ba3d13e1
VZ
21118echo "$as_me:$LINENO: checking for va_copy" >&5
21119echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21120if test "${wx_cv_func_va_copy+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122else
21123
21124 cat >conftest.$ac_ext <<_ACEOF
21125
21126 #include <stdarg.h>
21127 void foo(char *f, ...)
21128 {
21129 va_list ap1, ap2;
21130 va_start(ap1, f);
21131 va_copy(ap2, ap1);
21132 va_end(ap2);
21133 va_end(ap1);
21134 }
5886b072
VZ
21135 int main()
21136 {
b902e639
VZ
21137 foo("hi", 17);
21138 return 0;
5886b072 21139 }
ba3d13e1
VZ
21140_ACEOF
21141rm -f conftest.$ac_objext conftest$ac_exeext
21142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21143 (eval $ac_link) 2>conftest.er1
21144 ac_status=$?
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
3565d135
RR
21150 { ac_try='test -z "$ac_c_werror_flag"
21151 || test ! -s conftest.err'
ba3d13e1
VZ
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; } &&
21157 { ac_try='test -s conftest$ac_exeext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163 wx_cv_func_va_copy=yes
21164else
21165 echo "$as_me: failed program was:" >&5
21166sed 's/^/| /' conftest.$ac_ext >&5
21167
21168wx_cv_func_va_copy=no
21169
21170fi
21171rm -f conftest.err conftest.$ac_objext \
21172 conftest$ac_exeext conftest.$ac_ext
21173
21174
21175fi
21176echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21177echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21178
21179if test $wx_cv_func_va_copy = "yes"; then
21180 cat >>confdefs.h <<\_ACEOF
21181#define HAVE_VA_COPY 1
21182_ACEOF
21183
21184else
21185 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21186echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21187if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189else
21190
21191 if test "$cross_compiling" = yes; then
21192 wx_cv_type_va_list_lvalue=yes
21193
21194else
21195 cat >conftest.$ac_ext <<_ACEOF
21196
21197 #include <stdarg.h>
21198 int foo(char *f, ...)
21199 {
21200 va_list ap1, ap2;
21201 va_start(ap1, f);
21202 ap2 = ap1;
21203 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21204 return 1;
21205 va_end(ap2);
21206 va_end(ap1);
21207 return 0;
21208 }
21209 int main()
21210 {
21211 return foo("hi", 17);
21212 }
21213_ACEOF
21214rm -f conftest$ac_exeext
21215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21216 (eval $ac_link) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; }; then
21225 wx_cv_type_va_list_lvalue=yes
21226else
21227 echo "$as_me: program exited with status $ac_status" >&5
21228echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
21231( exit $ac_status )
21232wx_cv_type_va_list_lvalue=no
21233fi
21234rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21235fi
21236
21237
21238fi
21239echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21240echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21241
21242 if test $wx_cv_type_va_list_lvalue != "yes"; then
21243 cat >>confdefs.h <<\_ACEOF
21244#define VA_LIST_IS_ARRAY 1
21245_ACEOF
21246
21247 fi
21248fi
21249
a848cd7e
SC
21250# Check whether --enable-largefile or --disable-largefile was given.
21251if test "${enable_largefile+set}" = set; then
21252 enableval="$enable_largefile"
21253
21254fi;
21255if test "$enable_largefile" != no; then
21256 wx_largefile=no
21257
21258 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21259echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21260if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262else
21263
21264 cat >conftest.$ac_ext <<_ACEOF
21265/* confdefs.h. */
21266_ACEOF
21267cat confdefs.h >>conftest.$ac_ext
21268cat >>conftest.$ac_ext <<_ACEOF
21269/* end confdefs.h. */
21270#define _FILE_OFFSET_BITS 64
21271 #include <sys/types.h>
21272int
21273main ()
21274{
21275typedef struct {
21276 unsigned int field: sizeof(off_t) == 8;
21277} wxlf;
21278
21279 ;
21280 return 0;
21281}
21282_ACEOF
21283rm -f conftest.$ac_objext
21284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21285 (eval $ac_compile) 2>conftest.er1
a848cd7e 21286 ac_status=$?
ac1cb8d3
VS
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
a848cd7e
SC
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
3565d135
RR
21292 { ac_try='test -z "$ac_c_werror_flag"
21293 || test ! -s conftest.err'
ac1cb8d3
VS
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_sys_file_offset_bits=64
21306else
21307 echo "$as_me: failed program was:" >&5
21308sed 's/^/| /' conftest.$ac_ext >&5
21309
21310ac_cv_sys_file_offset_bits=no
21311fi
ac1cb8d3 21312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21313
21314
21315fi
21316echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21317echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21318
21319 if test "$ac_cv_sys_file_offset_bits" != no; then
21320 wx_largefile=yes
21321 cat >>confdefs.h <<_ACEOF
21322#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21323_ACEOF
21324
21325 fi
21326
21327 if test "x$wx_largefile" != "xyes"; then
21328
21329 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21330echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21331if test "${ac_cv_sys_large_files+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333else
21334
21335 cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341#define _LARGE_FILES 1
21342 #include <sys/types.h>
21343int
21344main ()
21345{
21346typedef struct {
21347 unsigned int field: sizeof(off_t) == 8;
21348} wxlf;
21349
21350 ;
21351 return 0;
21352}
21353_ACEOF
21354rm -f conftest.$ac_objext
21355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21356 (eval $ac_compile) 2>conftest.er1
a848cd7e 21357 ac_status=$?
ac1cb8d3
VS
21358 grep -v '^ *+' conftest.er1 >conftest.err
21359 rm -f conftest.er1
21360 cat conftest.err >&5
a848cd7e
SC
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
3565d135
RR
21363 { ac_try='test -z "$ac_c_werror_flag"
21364 || test ! -s conftest.err'
ac1cb8d3
VS
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 ac_cv_sys_large_files=1
21377else
21378 echo "$as_me: failed program was:" >&5
21379sed 's/^/| /' conftest.$ac_ext >&5
21380
21381ac_cv_sys_large_files=no
21382fi
ac1cb8d3 21383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21384
21385
21386fi
21387echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21388echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21389
21390 if test "$ac_cv_sys_large_files" != no; then
21391 wx_largefile=yes
21392 cat >>confdefs.h <<_ACEOF
21393#define _LARGE_FILES $ac_cv_sys_large_files
21394_ACEOF
21395
21396 fi
21397
21398 fi
21399
21400 echo "$as_me:$LINENO: checking if large file support is available" >&5
21401echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21402 if test "x$wx_largefile" = "xyes"; then
21403 cat >>confdefs.h <<\_ACEOF
21404#define HAVE_LARGEFILE_SUPPORT 1
21405_ACEOF
21406
21407 fi
21408 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21409echo "${ECHO_T}$wx_largefile" >&6
21410fi
21411
5b674b9d
DE
21412
21413if test "x$wx_largefile" = "xyes"; then
21414 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21415 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21416
21417 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21418 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21419echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21420if test "${wx_cv_STDC_EXT_required+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21422else
21423
21424
21425
21426 ac_ext=cc
21427ac_cpp='$CXXCPP $CPPFLAGS'
21428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21431
21432 cat >conftest.$ac_ext <<_ACEOF
21433/* confdefs.h. */
21434_ACEOF
21435cat confdefs.h >>conftest.$ac_ext
21436cat >>conftest.$ac_ext <<_ACEOF
21437/* end confdefs.h. */
21438
21439int
21440main ()
21441{
21442
21443 #ifndef __STDC_EXT__
21444 choke me
21445 #endif
21446
21447 ;
21448 return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext
21452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453 (eval $ac_compile) 2>conftest.er1
21454 ac_status=$?
21455 grep -v '^ *+' conftest.er1 >conftest.err
21456 rm -f conftest.er1
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } &&
3565d135
RR
21460 { ac_try='test -z "$ac_cxx_werror_flag"
21461 || test ! -s conftest.err'
00421666
MW
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; } &&
21467 { ac_try='test -s conftest.$ac_objext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21470 ac_status=$?
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 wx_cv_STDC_EXT_required=no
21474else
21475 echo "$as_me: failed program was:" >&5
21476sed 's/^/| /' conftest.$ac_ext >&5
21477
21478wx_cv_STDC_EXT_required=yes
21479
21480fi
21481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21482 ac_ext=c
21483ac_cpp='$CPP $CPPFLAGS'
21484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21486ac_compiler_gnu=$ac_cv_c_compiler_gnu
21487
21488
21489
21490fi
21491echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21492echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21493 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21494 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21495 fi
21496 fi
5b674b9d 21497 else
5ff751d6 21498 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21499 fi
21500 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21501echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21502if test "${ac_cv_sys_largefile_source+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505 while :; do
21506 ac_cv_sys_largefile_source=no
21507 cat >conftest.$ac_ext <<_ACEOF
21508/* confdefs.h. */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h. */
21513#include <stdio.h>
21514int
21515main ()
21516{
21517return !fseeko;
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524 (eval $ac_compile) 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
3565d135
RR
21531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
5294a27e
VZ
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 break
21545else
21546 echo "$as_me: failed program was:" >&5
21547sed 's/^/| /' conftest.$ac_ext >&5
21548
21549fi
21550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21551 cat >conftest.$ac_ext <<_ACEOF
21552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
21557#define _LARGEFILE_SOURCE 1
21558#include <stdio.h>
21559int
21560main ()
21561{
21562return !fseeko;
21563 ;
21564 return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext
21568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21569 (eval $ac_compile) 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
3565d135
RR
21576 { ac_try='test -z "$ac_c_werror_flag"
21577 || test ! -s conftest.err'
5294a27e
VZ
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; } &&
21583 { ac_try='test -s conftest.$ac_objext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 ac_cv_sys_largefile_source=1; break
21590else
21591 echo "$as_me: failed program was:" >&5
21592sed 's/^/| /' conftest.$ac_ext >&5
21593
21594fi
21595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596 break
21597done
21598fi
21599echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21600echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21601if test "$ac_cv_sys_largefile_source" != no; then
21602
21603cat >>confdefs.h <<_ACEOF
21604#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21605_ACEOF
21606
21607fi
21608rm -f conftest*
21609
21610# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21611# in glibc 2.1.3, but that breaks too many other things.
21612# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21613echo "$as_me:$LINENO: checking for fseeko" >&5
21614echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21615if test "${ac_cv_func_fseeko+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21617else
21618 cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
21624#include <stdio.h>
21625int
21626main ()
21627{
21628return fseeko && fseeko (stdin, 0, 0);
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext conftest$ac_exeext
21634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21635 (eval $ac_link) 2>conftest.er1
21636 ac_status=$?
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
3565d135
RR
21642 { ac_try='test -z "$ac_c_werror_flag"
21643 || test ! -s conftest.err'
5294a27e
VZ
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; } &&
21649 { ac_try='test -s conftest$ac_exeext'
21650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21651 (eval $ac_try) 2>&5
21652 ac_status=$?
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ac_cv_func_fseeko=yes
21656else
21657 echo "$as_me: failed program was:" >&5
21658sed 's/^/| /' conftest.$ac_ext >&5
21659
21660ac_cv_func_fseeko=no
21661fi
21662rm -f conftest.err conftest.$ac_objext \
21663 conftest$ac_exeext conftest.$ac_ext
21664fi
21665echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21666echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21667if test $ac_cv_func_fseeko = yes; then
21668
21669cat >>confdefs.h <<\_ACEOF
21670#define HAVE_FSEEKO 1
21671_ACEOF
21672
21673fi
21674
5b674b9d 21675 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21676 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21677 fi
a848cd7e
SC
21678fi
21679
21680echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21681echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21682if test "${ac_cv_c_bigendian+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684else
21685 ac_cv_c_bigendian=unknown
21686# See if sys/param.h defines the BYTE_ORDER macro.
21687cat >conftest.$ac_ext <<_ACEOF
21688/* confdefs.h. */
21689_ACEOF
21690cat confdefs.h >>conftest.$ac_ext
21691cat >>conftest.$ac_ext <<_ACEOF
21692/* end confdefs.h. */
21693#include <sys/types.h>
21694#include <sys/param.h>
21695int
21696main ()
21697{
21698
21699#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21700 bogus endian macros
21701#endif
21702 ;
21703 return 0;
21704}
21705_ACEOF
21706rm -f conftest.$ac_objext
21707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21708 (eval $ac_compile) 2>conftest.er1
a848cd7e 21709 ac_status=$?
ac1cb8d3
VS
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
a848cd7e
SC
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
3565d135
RR
21715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
ac1cb8d3
VS
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 # It does; now see whether it defined to BIG_ENDIAN or not.
21729cat >conftest.$ac_ext <<_ACEOF
21730/* confdefs.h. */
21731_ACEOF
21732cat confdefs.h >>conftest.$ac_ext
21733cat >>conftest.$ac_ext <<_ACEOF
21734/* end confdefs.h. */
21735#include <sys/types.h>
21736#include <sys/param.h>
21737int
21738main ()
21739{
21740
21741#if BYTE_ORDER != BIG_ENDIAN
21742 not big endian
21743#endif
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext
21749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21750 (eval $ac_compile) 2>conftest.er1
a848cd7e 21751 ac_status=$?
ac1cb8d3
VS
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
a848cd7e
SC
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
3565d135
RR
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
ac1cb8d3
VS
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 ac_cv_c_bigendian=yes
21771else
21772 echo "$as_me: failed program was:" >&5
21773sed 's/^/| /' conftest.$ac_ext >&5
21774
21775ac_cv_c_bigendian=no
21776fi
ac1cb8d3 21777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21778else
21779 echo "$as_me: failed program was:" >&5
21780sed 's/^/| /' conftest.$ac_ext >&5
21781
21782fi
ac1cb8d3 21783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21784if test $ac_cv_c_bigendian = unknown; then
21785if test "$cross_compiling" = yes; then
21786 ac_cv_c_bigendian=unknown
21787else
21788 cat >conftest.$ac_ext <<_ACEOF
21789/* confdefs.h. */
21790_ACEOF
21791cat confdefs.h >>conftest.$ac_ext
21792cat >>conftest.$ac_ext <<_ACEOF
21793/* end confdefs.h. */
21794main () {
21795 /* Are we little or big endian? From Harbison&Steele. */
21796 union
21797 {
21798 long l;
21799 char c[sizeof (long)];
21800 } u;
21801 u.l = 1;
21802 exit (u.c[sizeof (long) - 1] == 1);
21803}
21804_ACEOF
21805rm -f conftest$ac_exeext
21806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21807 (eval $ac_link) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21813 ac_status=$?
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_c_bigendian=no
21817else
21818 echo "$as_me: program exited with status $ac_status" >&5
21819echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822( exit $ac_status )
21823ac_cv_c_bigendian=yes
21824fi
ac1cb8d3 21825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21826fi
21827fi
21828fi
21829echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21830echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21831if test $ac_cv_c_bigendian = unknown; then
21832 { 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
21833echo "$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;}
21834fi
21835if test $ac_cv_c_bigendian = yes; then
21836 cat >>confdefs.h <<\_ACEOF
21837#define WORDS_BIGENDIAN 1
21838_ACEOF
21839
21840fi
21841
21842
21843ac_ext=cc
21844ac_cpp='$CXXCPP $CPPFLAGS'
21845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21848echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21849echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21850if test -z "$CXXCPP"; then
21851 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21853else
21854 # Double quotes because CXXCPP needs to be expanded
21855 for CXXCPP in "$CXX -E" "/lib/cpp"
21856 do
21857 ac_preproc_ok=false
21858for ac_cxx_preproc_warn_flag in '' yes
21859do
21860 # Use a header file that comes with gcc, so configuring glibc
21861 # with a fresh cross-compiler works.
21862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21863 # <limits.h> exists even on freestanding compilers.
21864 # On the NeXT, cc -E runs the code through the compiler's parser,
21865 # not just through cpp. "Syntax error" is here to catch this case.
21866 cat >conftest.$ac_ext <<_ACEOF
21867/* confdefs.h. */
21868_ACEOF
21869cat confdefs.h >>conftest.$ac_ext
21870cat >>conftest.$ac_ext <<_ACEOF
21871/* end confdefs.h. */
21872#ifdef __STDC__
21873# include <limits.h>
21874#else
21875# include <assert.h>
21876#endif
ac1cb8d3 21877 Syntax error
a848cd7e
SC
21878_ACEOF
21879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21881 ac_status=$?
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } >/dev/null; then
21887 if test -s conftest.err; then
21888 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21889 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21890 else
21891 ac_cpp_err=
21892 fi
21893else
21894 ac_cpp_err=yes
21895fi
21896if test -z "$ac_cpp_err"; then
21897 :
21898else
21899 echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
21901
21902 # Broken: fails on valid input.
21903continue
21904fi
21905rm -f conftest.err conftest.$ac_ext
21906
21907 # OK, works on sane cases. Now check whether non-existent headers
21908 # can be detected and how.
21909 cat >conftest.$ac_ext <<_ACEOF
21910/* confdefs.h. */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h. */
21915#include <ac_nonexistent.h>
21916_ACEOF
21917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21919 ac_status=$?
21920 grep -v '^ *+' conftest.er1 >conftest.err
21921 rm -f conftest.er1
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } >/dev/null; then
21925 if test -s conftest.err; then
21926 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21928 else
21929 ac_cpp_err=
21930 fi
21931else
21932 ac_cpp_err=yes
21933fi
21934if test -z "$ac_cpp_err"; then
21935 # Broken: success on invalid input.
21936continue
21937else
21938 echo "$as_me: failed program was:" >&5
21939sed 's/^/| /' conftest.$ac_ext >&5
21940
21941 # Passes both tests.
21942ac_preproc_ok=:
21943break
21944fi
21945rm -f conftest.err conftest.$ac_ext
21946
21947done
21948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21949rm -f conftest.err conftest.$ac_ext
21950if $ac_preproc_ok; then
21951 break
21952fi
21953
21954 done
21955 ac_cv_prog_CXXCPP=$CXXCPP
21956
21957fi
21958 CXXCPP=$ac_cv_prog_CXXCPP
21959else
21960 ac_cv_prog_CXXCPP=$CXXCPP
21961fi
21962echo "$as_me:$LINENO: result: $CXXCPP" >&5
21963echo "${ECHO_T}$CXXCPP" >&6
21964ac_preproc_ok=false
21965for ac_cxx_preproc_warn_flag in '' yes
21966do
21967 # Use a header file that comes with gcc, so configuring glibc
21968 # with a fresh cross-compiler works.
21969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21970 # <limits.h> exists even on freestanding compilers.
21971 # On the NeXT, cc -E runs the code through the compiler's parser,
21972 # not just through cpp. "Syntax error" is here to catch this case.
21973 cat >conftest.$ac_ext <<_ACEOF
21974/* confdefs.h. */
21975_ACEOF
21976cat confdefs.h >>conftest.$ac_ext
21977cat >>conftest.$ac_ext <<_ACEOF
21978/* end confdefs.h. */
21979#ifdef __STDC__
21980# include <limits.h>
21981#else
21982# include <assert.h>
21983#endif
ac1cb8d3 21984 Syntax error
a848cd7e
SC
21985_ACEOF
21986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } >/dev/null; then
21994 if test -s conftest.err; then
21995 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21996 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21997 else
21998 ac_cpp_err=
21999 fi
22000else
22001 ac_cpp_err=yes
22002fi
22003if test -z "$ac_cpp_err"; then
22004 :
22005else
22006 echo "$as_me: failed program was:" >&5
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 # Broken: fails on valid input.
22010continue
22011fi
22012rm -f conftest.err conftest.$ac_ext
22013
22014 # OK, works on sane cases. Now check whether non-existent headers
22015 # can be detected and how.
22016 cat >conftest.$ac_ext <<_ACEOF
22017/* confdefs.h. */
22018_ACEOF
22019cat confdefs.h >>conftest.$ac_ext
22020cat >>conftest.$ac_ext <<_ACEOF
22021/* end confdefs.h. */
22022#include <ac_nonexistent.h>
22023_ACEOF
22024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22026 ac_status=$?
22027 grep -v '^ *+' conftest.er1 >conftest.err
22028 rm -f conftest.er1
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } >/dev/null; then
22032 if test -s conftest.err; then
22033 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22035 else
22036 ac_cpp_err=
22037 fi
22038else
22039 ac_cpp_err=yes
22040fi
22041if test -z "$ac_cpp_err"; then
22042 # Broken: success on invalid input.
22043continue
22044else
22045 echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
22048 # Passes both tests.
22049ac_preproc_ok=:
22050break
22051fi
22052rm -f conftest.err conftest.$ac_ext
22053
22054done
22055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22056rm -f conftest.err conftest.$ac_ext
22057if $ac_preproc_ok; then
22058 :
22059else
22060 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22061See \`config.log' for more details." >&5
22062echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22063See \`config.log' for more details." >&2;}
22064 { (exit 1); exit 1; }; }
22065fi
22066
22067ac_ext=cc
22068ac_cpp='$CXXCPP $CPPFLAGS'
22069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22072
22073
22074
22075
22076
22077 ac_ext=cc
22078ac_cpp='$CXXCPP $CPPFLAGS'
22079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22082
22083
22084
22085for ac_header in iostream
22086do
22087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22088if eval "test \"\${$as_ac_Header+set}\" = set"; then
22089 echo "$as_me:$LINENO: checking for $ac_header" >&5
22090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22091if eval "test \"\${$as_ac_Header+set}\" = set"; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22093fi
22094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22096else
22097 # Is the header compilable?
22098echo "$as_me:$LINENO: checking $ac_header usability" >&5
22099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22100cat >conftest.$ac_ext <<_ACEOF
22101/* confdefs.h. */
22102_ACEOF
22103cat confdefs.h >>conftest.$ac_ext
22104cat >>conftest.$ac_ext <<_ACEOF
22105/* end confdefs.h. */
22106$ac_includes_default
22107#include <$ac_header>
22108_ACEOF
22109rm -f conftest.$ac_objext
22110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22111 (eval $ac_compile) 2>conftest.er1
a848cd7e 22112 ac_status=$?
ac1cb8d3
VS
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
a848cd7e
SC
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
3565d135
RR
22118 { ac_try='test -z "$ac_cxx_werror_flag"
22119 || test ! -s conftest.err'
ac1cb8d3
VS
22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; } &&
22125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127 (eval $ac_try) 2>&5
22128 ac_status=$?
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); }; }; then
22131 ac_header_compiler=yes
22132else
22133 echo "$as_me: failed program was:" >&5
22134sed 's/^/| /' conftest.$ac_ext >&5
22135
22136ac_header_compiler=no
22137fi
ac1cb8d3 22138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22140echo "${ECHO_T}$ac_header_compiler" >&6
22141
22142# Is the header present?
22143echo "$as_me:$LINENO: checking $ac_header presence" >&5
22144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22145cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151#include <$ac_header>
22152_ACEOF
22153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22155 ac_status=$?
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } >/dev/null; then
22161 if test -s conftest.err; then
22162 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22164 else
22165 ac_cpp_err=
22166 fi
22167else
22168 ac_cpp_err=yes
22169fi
22170if test -z "$ac_cpp_err"; then
22171 ac_header_preproc=yes
22172else
22173 echo "$as_me: failed program was:" >&5
22174sed 's/^/| /' conftest.$ac_ext >&5
22175
22176 ac_header_preproc=no
22177fi
22178rm -f conftest.err conftest.$ac_ext
22179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22180echo "${ECHO_T}$ac_header_preproc" >&6
22181
22182# So? What about this header?
ac1cb8d3
VS
22183case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22184 yes:no: )
a848cd7e
SC
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22189 ac_header_preproc=yes
a848cd7e 22190 ;;
ac1cb8d3 22191 no:yes:* )
a848cd7e
SC
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22204 (
22205 cat <<\_ASBOX
ac1cb8d3
VS
22206## ----------------------------------------- ##
22207## Report this to wx-dev@lists.wxwidgets.org ##
22208## ----------------------------------------- ##
a848cd7e
SC
22209_ASBOX
22210 ) |
22211 sed "s/^/$as_me: WARNING: /" >&2
22212 ;;
22213esac
22214echo "$as_me:$LINENO: checking for $ac_header" >&5
22215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22216if eval "test \"\${$as_ac_Header+set}\" = set"; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218else
ac1cb8d3 22219 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22220fi
22221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22223
22224fi
22225if test `eval echo '${'$as_ac_Header'}'` = yes; then
22226 cat >>confdefs.h <<_ACEOF
22227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22228_ACEOF
22229
22230fi
22231
22232done
22233
22234
22235 if test "$ac_cv_header_iostream" = "yes" ; then
22236 :
22237 else
22238 cat >>confdefs.h <<\_ACEOF
22239#define wxUSE_IOSTREAMH 1
22240_ACEOF
22241
22242 fi
22243
22244 ac_ext=c
22245ac_cpp='$CPP $CPPFLAGS'
22246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22248ac_compiler_gnu=$ac_cv_c_compiler_gnu
22249
22250
22251
22252
22253 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22254echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22255if test "${wx_cv_cpp_bool+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22257else
22258
22259
22260
22261 ac_ext=cc
22262ac_cpp='$CXXCPP $CPPFLAGS'
22263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22266
22267
22268 cat >conftest.$ac_ext <<_ACEOF
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
22274
22275
22276int
22277main ()
22278{
22279
22280 bool b = true;
22281
22282 return 0;
22283
22284 ;
22285 return 0;
22286}
22287_ACEOF
22288rm -f conftest.$ac_objext
22289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22290 (eval $ac_compile) 2>conftest.er1
a848cd7e 22291 ac_status=$?
ac1cb8d3
VS
22292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
a848cd7e
SC
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
3565d135
RR
22297 { ac_try='test -z "$ac_cxx_werror_flag"
22298 || test ! -s conftest.err'
ac1cb8d3
VS
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; } &&
22304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310
22311 wx_cv_cpp_bool=yes
22312
22313else
22314 echo "$as_me: failed program was:" >&5
22315sed 's/^/| /' conftest.$ac_ext >&5
22316
22317
22318 wx_cv_cpp_bool=no
22319
22320
22321fi
ac1cb8d3 22322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22323
22324 ac_ext=c
22325ac_cpp='$CPP $CPPFLAGS'
22326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22328ac_compiler_gnu=$ac_cv_c_compiler_gnu
22329
22330
22331fi
22332echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22333echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22334
22335 if test "$wx_cv_cpp_bool" = "yes"; then
22336 cat >>confdefs.h <<\_ACEOF
22337#define HAVE_BOOL 1
22338_ACEOF
22339
22340 fi
22341
22342
22343
22344 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22345echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22346if test "${wx_cv_explicit+set}" = set; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22348else
22349
22350
22351
22352 ac_ext=cc
22353ac_cpp='$CXXCPP $CPPFLAGS'
22354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22357
22358
22359 cat >conftest.$ac_ext <<_ACEOF
22360/* confdefs.h. */
22361_ACEOF
22362cat confdefs.h >>conftest.$ac_ext
22363cat >>conftest.$ac_ext <<_ACEOF
22364/* end confdefs.h. */
22365
22366 class Foo { public: explicit Foo(int) {} };
22367
22368int
22369main ()
22370{
22371
22372 return 0;
22373
22374 ;
22375 return 0;
22376}
22377_ACEOF
22378rm -f conftest.$ac_objext
22379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22380 (eval $ac_compile) 2>conftest.er1
a848cd7e 22381 ac_status=$?
ac1cb8d3
VS
22382 grep -v '^ *+' conftest.er1 >conftest.err
22383 rm -f conftest.er1
22384 cat conftest.err >&5
a848cd7e
SC
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } &&
3565d135
RR
22387 { ac_try='test -z "$ac_cxx_werror_flag"
22388 || test ! -s conftest.err'
ac1cb8d3
VS
22389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; } &&
22394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400
22401 cat >conftest.$ac_ext <<_ACEOF
22402/* confdefs.h. */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h. */
22407
22408 class Foo { public: explicit Foo(int) {} };
22409 static void TakeFoo(const Foo& foo) { }
22410
22411int
22412main ()
22413{
22414
22415 TakeFoo(17);
22416 return 0;
22417
22418 ;
22419 return 0;
22420}
22421_ACEOF
22422rm -f conftest.$ac_objext
22423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22424 (eval $ac_compile) 2>conftest.er1
a848cd7e 22425 ac_status=$?
ac1cb8d3
VS
22426 grep -v '^ *+' conftest.er1 >conftest.err
22427 rm -f conftest.er1
22428 cat conftest.err >&5
a848cd7e
SC
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } &&
3565d135
RR
22431 { ac_try='test -z "$ac_cxx_werror_flag"
22432 || test ! -s conftest.err'
ac1cb8d3
VS
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; } &&
22438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 wx_cv_explicit=no
22445else
22446 echo "$as_me: failed program was:" >&5
22447sed 's/^/| /' conftest.$ac_ext >&5
22448
22449wx_cv_explicit=yes
22450
22451fi
ac1cb8d3 22452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22453
22454else
22455 echo "$as_me: failed program was:" >&5
22456sed 's/^/| /' conftest.$ac_ext >&5
22457
22458wx_cv_explicit=no
22459
22460fi
ac1cb8d3 22461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22462
22463 ac_ext=c
22464ac_cpp='$CPP $CPPFLAGS'
22465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22467ac_compiler_gnu=$ac_cv_c_compiler_gnu
22468
22469
22470fi
22471echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22472echo "${ECHO_T}$wx_cv_explicit" >&6
22473
22474 if test "$wx_cv_explicit" = "yes"; then
22475 cat >>confdefs.h <<\_ACEOF
22476#define HAVE_EXPLICIT 1
22477_ACEOF
22478
22479 fi
22480
22481
22482echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22483echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22484if test "${ac_cv_cxx_const_cast+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22486else
22487
22488
22489 ac_ext=cc
22490ac_cpp='$CXXCPP $CPPFLAGS'
22491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22494
22495 cat >conftest.$ac_ext <<_ACEOF
22496/* confdefs.h. */
22497_ACEOF
22498cat confdefs.h >>conftest.$ac_ext
22499cat >>conftest.$ac_ext <<_ACEOF
22500/* end confdefs.h. */
22501
22502int
22503main ()
22504{
22505int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22506 ;
22507 return 0;
22508}
22509_ACEOF
22510rm -f conftest.$ac_objext
22511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22512 (eval $ac_compile) 2>conftest.er1
a848cd7e 22513 ac_status=$?
ac1cb8d3
VS
22514 grep -v '^ *+' conftest.er1 >conftest.err
22515 rm -f conftest.er1
22516 cat conftest.err >&5
a848cd7e
SC
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } &&
3565d135
RR
22519 { ac_try='test -z "$ac_cxx_werror_flag"
22520 || test ! -s conftest.err'
ac1cb8d3
VS
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; } &&
22526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; }; then
22532 ac_cv_cxx_const_cast=yes
22533else
22534 echo "$as_me: failed program was:" >&5
22535sed 's/^/| /' conftest.$ac_ext >&5
22536
22537ac_cv_cxx_const_cast=no
22538fi
ac1cb8d3 22539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22540 ac_ext=c
22541ac_cpp='$CPP $CPPFLAGS'
22542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22544ac_compiler_gnu=$ac_cv_c_compiler_gnu
22545
22546
22547fi
22548echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22549echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22550if test "$ac_cv_cxx_const_cast" = yes; then
22551
22552cat >>confdefs.h <<\_ACEOF
22553#define HAVE_CONST_CAST
22554_ACEOF
22555
22556fi
22557
7714864e
RL
22558echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22559echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22560if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22562else
22563
22564
22565 ac_ext=cc
22566ac_cpp='$CXXCPP $CPPFLAGS'
22567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22570
22571 cat >conftest.$ac_ext <<_ACEOF
22572/* confdefs.h. */
22573_ACEOF
22574cat confdefs.h >>conftest.$ac_ext
22575cat >>conftest.$ac_ext <<_ACEOF
22576/* end confdefs.h. */
22577#include <typeinfo>
22578class Base { public : Base () {} virtual void f () = 0;};
22579class Derived : public Base { public : Derived () {} virtual void f () {} };
22580class Unrelated { public : Unrelated () {} };
22581int g (Unrelated&) { return 0; }
22582int
22583main ()
22584{
22585
22586Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22587 ;
22588 return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext
22592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593 (eval $ac_compile) 2>conftest.er1
22594 ac_status=$?
22595 grep -v '^ *+' conftest.er1 >conftest.err
22596 rm -f conftest.er1
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } &&
3565d135
RR
22600 { ac_try='test -z "$ac_cxx_werror_flag"
22601 || test ! -s conftest.err'
7714864e
RL
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; } &&
22607 { ac_try='test -s conftest.$ac_objext'
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613 ac_cv_cxx_reinterpret_cast=yes
22614else
22615 echo "$as_me: failed program was:" >&5
22616sed 's/^/| /' conftest.$ac_ext >&5
22617
22618ac_cv_cxx_reinterpret_cast=no
22619fi
22620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22621 ac_ext=c
22622ac_cpp='$CPP $CPPFLAGS'
22623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22625ac_compiler_gnu=$ac_cv_c_compiler_gnu
22626
22627
22628fi
22629echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22630echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22631if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22632
22633cat >>confdefs.h <<\_ACEOF
22634#define HAVE_REINTERPRET_CAST
22635_ACEOF
22636
22637fi
22638
a848cd7e
SC
22639echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22640echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22641if test "${ac_cv_cxx_static_cast+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22643else
22644
22645
22646 ac_ext=cc
22647ac_cpp='$CXXCPP $CPPFLAGS'
22648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22651
22652 cat >conftest.$ac_ext <<_ACEOF
22653/* confdefs.h. */
22654_ACEOF
22655cat confdefs.h >>conftest.$ac_ext
22656cat >>conftest.$ac_ext <<_ACEOF
22657/* end confdefs.h. */
22658#include <typeinfo>
22659class Base { public : Base () {} virtual void f () = 0; };
22660class Derived : public Base { public : Derived () {} virtual void f () {} };
22661int g (Derived&) { return 0; }
22662int
22663main ()
22664{
22665
22666Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22667 ;
22668 return 0;
22669}
22670_ACEOF
22671rm -f conftest.$ac_objext
22672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22673 (eval $ac_compile) 2>conftest.er1
a848cd7e 22674 ac_status=$?
ac1cb8d3
VS
22675 grep -v '^ *+' conftest.er1 >conftest.err
22676 rm -f conftest.er1
22677 cat conftest.err >&5
a848cd7e
SC
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } &&
3565d135
RR
22680 { ac_try='test -z "$ac_cxx_werror_flag"
22681 || test ! -s conftest.err'
ac1cb8d3
VS
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; } &&
22687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; }; then
22693 ac_cv_cxx_static_cast=yes
22694else
22695 echo "$as_me: failed program was:" >&5
22696sed 's/^/| /' conftest.$ac_ext >&5
22697
22698ac_cv_cxx_static_cast=no
22699fi
ac1cb8d3 22700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22701 ac_ext=c
22702ac_cpp='$CPP $CPPFLAGS'
22703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22705ac_compiler_gnu=$ac_cv_c_compiler_gnu
22706
22707
22708fi
22709echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22710echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22711if test "$ac_cv_cxx_static_cast" = yes; then
22712
22713cat >>confdefs.h <<\_ACEOF
22714#define HAVE_STATIC_CAST
22715_ACEOF
22716
22717fi
22718
22719
3c28b7cb 22720if test "x$SUNCXX" = xyes; then
c92ad099 22721 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22722fi
22723
9122d155 22724if test "x$SUNCC" = xyes; then
c92ad099 22725 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22726fi
22727
0ad5d837 22728if test "x$SGICC" = "xyes"; then
c92ad099 22729 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22730fi
22731if test "x$SGICXX" = "xyes"; then
c92ad099 22732 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22733fi
22734
2eef8513 22735if test "x$HPCC" = "xyes"; then
c92ad099 22736 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22737fi
22738if test "x$HPCXX" = "xyes"; then
c92ad099 22739 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22740fi
22741
22742if test "x$COMPAQCXX" = "xyes"; then
22743 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22744fi
22745
f56c22b4 22746if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22747 ac_ext=cc
22748ac_cpp='$CXXCPP $CPPFLAGS'
22749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22752
22753
f56c22b4
MW
22754 if test "$wxUSE_UNICODE" = "yes"; then
22755 std_string="std::wstring"
22756 char_type="wchar_t"
22757 else
22758 std_string="std::string"
22759 char_type="char"
22760 fi
22761
22762 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22763echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22764 cat >conftest.$ac_ext <<_ACEOF
22765/* confdefs.h. */
22766_ACEOF
22767cat confdefs.h >>conftest.$ac_ext
22768cat >>conftest.$ac_ext <<_ACEOF
22769/* end confdefs.h. */
22770#include <string>
a848cd7e
SC
22771int
22772main ()
22773{
f56c22b4 22774$std_string foo;
a848cd7e
SC
22775 ;
22776 return 0;
22777}
22778_ACEOF
22779rm -f conftest.$ac_objext
22780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22781 (eval $ac_compile) 2>conftest.er1
a848cd7e 22782 ac_status=$?
ac1cb8d3
VS
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
a848cd7e
SC
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
3565d135
RR
22788 { ac_try='test -z "$ac_cxx_werror_flag"
22789 || test ! -s conftest.err'
ac1cb8d3
VS
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; } &&
22795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 echo "$as_me:$LINENO: result: yes" >&5
22802echo "${ECHO_T}yes" >&6
0a08f02a
MB
22803 cat >>confdefs.h <<\_ACEOF
22804#define HAVE_STD_WSTRING 1
22805_ACEOF
22806
a848cd7e
SC
22807else
22808 echo "$as_me: failed program was:" >&5
22809sed 's/^/| /' conftest.$ac_ext >&5
22810
22811echo "$as_me:$LINENO: result: no" >&5
22812echo "${ECHO_T}no" >&6
f56c22b4
MW
22813 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22814echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22815 cat >conftest.$ac_ext <<_ACEOF
22816/* confdefs.h. */
22817_ACEOF
22818cat confdefs.h >>conftest.$ac_ext
22819cat >>conftest.$ac_ext <<_ACEOF
22820/* end confdefs.h. */
22821
22822 #ifdef HAVE_WCHAR_H
22823 # ifdef __CYGWIN__
22824 # include <stddef.h>
22825 # endif
22826 # include <wchar.h>
22827 #endif
22828 #ifdef HAVE_STDLIB_H
22829 # include <stdlib.h>
22830 #endif
22831 #include <stdio.h>
22832 #include <string>
22833
22834int
22835main ()
22836{
f56c22b4
MW
22837std::basic_string<$char_type> foo;
22838 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22839 ;
22840 return 0;
22841}
22842_ACEOF
22843rm -f conftest.$ac_objext
22844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22845 (eval $ac_compile) 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
3565d135
RR
22852 { ac_try='test -z "$ac_cxx_werror_flag"
22853 || test ! -s conftest.err'
0a08f02a
MB
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; } &&
22859 { ac_try='test -s conftest.$ac_objext'
22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861 (eval $ac_try) 2>&5
22862 ac_status=$?
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 echo "$as_me:$LINENO: result: yes" >&5
22866echo "${ECHO_T}yes" >&6
22867else
22868 echo "$as_me: failed program was:" >&5
22869sed 's/^/| /' conftest.$ac_ext >&5
22870
22871echo "$as_me:$LINENO: result: no" >&5
22872echo "${ECHO_T}no" >&6
f56c22b4 22873 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22874 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22875echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22876 { (exit 1); exit 1; }; }
22877 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22878 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22879echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22880 { (exit 1); exit 1; }; }
f56c22b4
MW
22881 else
22882 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22883echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22884 wxUSE_STD_STRING=no
22885 fi
22886
0a08f02a 22887
a848cd7e 22888fi
ac1cb8d3 22889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22890
0a08f02a
MB
22891fi
22892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22893
22894 ac_ext=c
22895ac_cpp='$CPP $CPPFLAGS'
22896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22898ac_compiler_gnu=$ac_cv_c_compiler_gnu
22899
22900fi
22901
22902if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22903 ac_ext=cc
22904ac_cpp='$CXXCPP $CPPFLAGS'
22905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22908
22909
22910 echo "$as_me:$LINENO: checking for std::istream" >&5
22911echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22912if test "${ac_cv_type_std__istream+set}" = set; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22914else
22915 cat >conftest.$ac_ext <<_ACEOF
22916/* confdefs.h. */
22917_ACEOF
22918cat confdefs.h >>conftest.$ac_ext
22919cat >>conftest.$ac_ext <<_ACEOF
22920/* end confdefs.h. */
22921#include <iostream>
22922
22923int
22924main ()
22925{
22926if ((std::istream *) 0)
22927 return 0;
22928if (sizeof (std::istream))
22929 return 0;
22930 ;
22931 return 0;
22932}
22933_ACEOF
22934rm -f conftest.$ac_objext
22935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22936 (eval $ac_compile) 2>conftest.er1
22937 ac_status=$?
22938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
3565d135
RR
22943 { ac_try='test -z "$ac_cxx_werror_flag"
22944 || test ! -s conftest.err'
f56c22b4
MW
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22947 ac_status=$?
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest.$ac_objext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22956 ac_cv_type_std__istream=yes
22957else
22958 echo "$as_me: failed program was:" >&5
22959sed 's/^/| /' conftest.$ac_ext >&5
22960
22961ac_cv_type_std__istream=no
22962fi
22963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22964fi
22965echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22966echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22967if test $ac_cv_type_std__istream = yes; then
22968
22969cat >>confdefs.h <<_ACEOF
22970#define HAVE_STD__ISTREAM 1
22971_ACEOF
22972
22973
22974else
22975 wxUSE_STD_IOSTREAM=no
22976fi
22977echo "$as_me:$LINENO: checking for std::ostream" >&5
22978echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22979if test "${ac_cv_type_std__ostream+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981else
22982 cat >conftest.$ac_ext <<_ACEOF
22983/* confdefs.h. */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h. */
22988#include <iostream>
22989
22990int
22991main ()
22992{
22993if ((std::ostream *) 0)
22994 return 0;
22995if (sizeof (std::ostream))
22996 return 0;
22997 ;
22998 return 0;
22999}
23000_ACEOF
23001rm -f conftest.$ac_objext
23002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23003 (eval $ac_compile) 2>conftest.er1
23004 ac_status=$?
23005 grep -v '^ *+' conftest.er1 >conftest.err
23006 rm -f conftest.er1
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
3565d135
RR
23010 { ac_try='test -z "$ac_cxx_werror_flag"
23011 || test ! -s conftest.err'
f56c22b4
MW
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; } &&
23017 { ac_try='test -s conftest.$ac_objext'
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; }; then
23023 ac_cv_type_std__ostream=yes
23024else
23025 echo "$as_me: failed program was:" >&5
23026sed 's/^/| /' conftest.$ac_ext >&5
23027
23028ac_cv_type_std__ostream=no
23029fi
23030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23031fi
23032echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23033echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23034if test $ac_cv_type_std__ostream = yes; then
23035
23036cat >>confdefs.h <<_ACEOF
23037#define HAVE_STD__OSTREAM 1
23038_ACEOF
23039
23040
23041else
23042 wxUSE_STD_IOSTREAM=no
23043fi
23044
23045
23046 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23047 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23048 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23049echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23050 { (exit 1); exit 1; }; }
23051 else
23052 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23053echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23054 fi
f56c22b4
MW
23055 fi
23056
23057 ac_ext=c
23058ac_cpp='$CPP $CPPFLAGS'
23059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23061ac_compiler_gnu=$ac_cv_c_compiler_gnu
23062
23063fi
23064
23065if test "$wxUSE_STL" = "yes"; then
23066 ac_ext=cc
23067ac_cpp='$CXXCPP $CPPFLAGS'
23068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23071
23072
23073 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23074echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23075 cat >conftest.$ac_ext <<_ACEOF
23076/* confdefs.h. */
23077_ACEOF
23078cat confdefs.h >>conftest.$ac_ext
23079cat >>conftest.$ac_ext <<_ACEOF
23080/* end confdefs.h. */
23081#include <string>
0a08f02a
MB
23082 #include <functional>
23083 #include <algorithm>
23084 #include <vector>
23085 #include <list>
a848cd7e
SC
23086int
23087main ()
23088{
0a08f02a
MB
23089std::vector<int> moo;
23090 std::list<int> foo;
23091 std::vector<int>::iterator it =
23092 std::find_if(moo.begin(), moo.end(),
23093 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23094 ;
23095 return 0;
23096}
23097_ACEOF
23098rm -f conftest.$ac_objext
23099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23100 (eval $ac_compile) 2>conftest.er1
a848cd7e 23101 ac_status=$?
ac1cb8d3
VS
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
a848cd7e
SC
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } &&
3565d135
RR
23107 { ac_try='test -z "$ac_cxx_werror_flag"
23108 || test ! -s conftest.err'
ac1cb8d3
VS
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; } &&
23114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23117 ac_status=$?
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; }; then
23120 echo "$as_me:$LINENO: result: yes" >&5
23121echo "${ECHO_T}yes" >&6
a848cd7e
SC
23122else
23123 echo "$as_me: failed program was:" >&5
23124sed 's/^/| /' conftest.$ac_ext >&5
23125
23126echo "$as_me:$LINENO: result: no" >&5
23127echo "${ECHO_T}no" >&6
0a08f02a
MB
23128 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23129echo "$as_me: error: Basic STL functionality missing" >&2;}
23130 { (exit 1); exit 1; }; }
a848cd7e 23131fi
ac1cb8d3 23132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23133
23134 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23135echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23136 cat >conftest.$ac_ext <<_ACEOF
23137/* confdefs.h. */
23138_ACEOF
23139cat confdefs.h >>conftest.$ac_ext
23140cat >>conftest.$ac_ext <<_ACEOF
23141/* end confdefs.h. */
23142#include <string>
23143int
23144main ()
23145{
23146std::string foo, bar;
23147 foo.compare(bar);
23148 foo.compare(1, 1, bar);
23149 foo.compare(1, 1, bar, 1, 1);
23150 foo.compare("");
23151 foo.compare(1, 1, "");
23152 foo.compare(1, 1, "", 2);
23153 ;
23154 return 0;
23155}
23156_ACEOF
23157rm -f conftest.$ac_objext
23158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23159 (eval $ac_compile) 2>conftest.er1
a848cd7e 23160 ac_status=$?
ac1cb8d3
VS
23161 grep -v '^ *+' conftest.er1 >conftest.err
23162 rm -f conftest.er1
23163 cat conftest.err >&5
a848cd7e
SC
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); } &&
3565d135
RR
23166 { ac_try='test -z "$ac_cxx_werror_flag"
23167 || test ! -s conftest.err'
ac1cb8d3
VS
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 echo "$as_me:$LINENO: result: yes" >&5
23180echo "${ECHO_T}yes" >&6
23181 cat >>confdefs.h <<\_ACEOF
23182#define HAVE_STD_STRING_COMPARE 1
23183_ACEOF
23184
23185else
23186 echo "$as_me: failed program was:" >&5
23187sed 's/^/| /' conftest.$ac_ext >&5
23188
23189echo "$as_me:$LINENO: result: no" >&5
23190echo "${ECHO_T}no" >&6
23191fi
ac1cb8d3 23192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23193
23194 if test "${ac_cv_header_hash_map+set}" = set; then
23195 echo "$as_me:$LINENO: checking for hash_map" >&5
23196echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23197if test "${ac_cv_header_hash_map+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23201echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23202else
23203 # Is the header compilable?
23204echo "$as_me:$LINENO: checking hash_map usability" >&5
23205echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23206cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213#include <hash_map>
23214_ACEOF
23215rm -f conftest.$ac_objext
23216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23217 (eval $ac_compile) 2>conftest.er1
bdcade0a 23218 ac_status=$?
ac1cb8d3
VS
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
bdcade0a
MB
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
3565d135
RR
23224 { ac_try='test -z "$ac_cxx_werror_flag"
23225 || test ! -s conftest.err'
ac1cb8d3
VS
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_header_compiler=yes
23238else
23239 echo "$as_me: failed program was:" >&5
23240sed 's/^/| /' conftest.$ac_ext >&5
23241
23242ac_header_compiler=no
23243fi
ac1cb8d3 23244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246echo "${ECHO_T}$ac_header_compiler" >&6
23247
23248# Is the header present?
23249echo "$as_me:$LINENO: checking hash_map presence" >&5
23250echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23251cat >conftest.$ac_ext <<_ACEOF
23252/* confdefs.h. */
23253_ACEOF
23254cat confdefs.h >>conftest.$ac_ext
23255cat >>conftest.$ac_ext <<_ACEOF
23256/* end confdefs.h. */
23257#include <hash_map>
23258_ACEOF
23259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23261 ac_status=$?
23262 grep -v '^ *+' conftest.er1 >conftest.err
23263 rm -f conftest.er1
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } >/dev/null; then
23267 if test -s conftest.err; then
23268 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23270 else
23271 ac_cpp_err=
23272 fi
23273else
23274 ac_cpp_err=yes
23275fi
23276if test -z "$ac_cpp_err"; then
23277 ac_header_preproc=yes
23278else
23279 echo "$as_me: failed program was:" >&5
23280sed 's/^/| /' conftest.$ac_ext >&5
23281
23282 ac_header_preproc=no
23283fi
23284rm -f conftest.err conftest.$ac_ext
23285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286echo "${ECHO_T}$ac_header_preproc" >&6
23287
23288# So? What about this header?
ac1cb8d3
VS
23289case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23290 yes:no: )
bdcade0a
MB
23291 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23292echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23293 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23294echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc=yes
bdcade0a 23296 ;;
ac1cb8d3 23297 no:yes:* )
bdcade0a
MB
23298 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23299echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23300 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23301echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23302 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23303echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23304 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23305echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23306 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23307echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23308 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23309echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23310 (
23311 cat <<\_ASBOX
ac1cb8d3
VS
23312## ----------------------------------------- ##
23313## Report this to wx-dev@lists.wxwidgets.org ##
23314## ----------------------------------------- ##
bdcade0a
MB
23315_ASBOX
23316 ) |
23317 sed "s/^/$as_me: WARNING: /" >&2
23318 ;;
23319esac
23320echo "$as_me:$LINENO: checking for hash_map" >&5
23321echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23322if test "${ac_cv_header_hash_map+set}" = set; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23324else
23325 ac_cv_header_hash_map=$ac_header_preproc
23326fi
23327echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23328echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23329
23330fi
23331if test $ac_cv_header_hash_map = yes; then
23332 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23333echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23334 cat >conftest.$ac_ext <<_ACEOF
23335/* confdefs.h. */
23336_ACEOF
23337cat confdefs.h >>conftest.$ac_ext
23338cat >>conftest.$ac_ext <<_ACEOF
23339/* end confdefs.h. */
23340#include <hash_map>
23341 #include <hash_set>
23342int
23343main ()
23344{
23345std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23346 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext
23352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23353 (eval $ac_compile) 2>conftest.er1
bdcade0a 23354 ac_status=$?
ac1cb8d3
VS
23355 grep -v '^ *+' conftest.er1 >conftest.err
23356 rm -f conftest.er1
23357 cat conftest.err >&5
bdcade0a
MB
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
3565d135
RR
23360 { ac_try='test -z "$ac_cxx_werror_flag"
23361 || test ! -s conftest.err'
ac1cb8d3
VS
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23364 ac_status=$?
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; } &&
23367 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 echo "$as_me:$LINENO: result: yes" >&5
23374echo "${ECHO_T}yes" >&6
23375 cat >>confdefs.h <<\_ACEOF
23376#define HAVE_HASH_MAP 1
23377_ACEOF
23378
23379 cat >>confdefs.h <<\_ACEOF
23380#define HAVE_STD_HASH_MAP 1
23381_ACEOF
23382
23383else
23384 echo "$as_me: failed program was:" >&5
23385sed 's/^/| /' conftest.$ac_ext >&5
23386
23387echo "$as_me:$LINENO: result: no" >&5
23388echo "${ECHO_T}no" >&6
23389fi
ac1cb8d3 23390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23391
23392fi
23393
23394
23395
23396 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23397 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23398echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23399if test "${ac_cv_header_ext_hash_map+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23401fi
23402echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23403echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23404else
23405 # Is the header compilable?
23406echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23407echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23408cat >conftest.$ac_ext <<_ACEOF
23409/* confdefs.h. */
23410_ACEOF
23411cat confdefs.h >>conftest.$ac_ext
23412cat >>conftest.$ac_ext <<_ACEOF
23413/* end confdefs.h. */
23414$ac_includes_default
23415#include <ext/hash_map>
23416_ACEOF
23417rm -f conftest.$ac_objext
23418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23419 (eval $ac_compile) 2>conftest.er1
bdcade0a 23420 ac_status=$?
ac1cb8d3
VS
23421 grep -v '^ *+' conftest.er1 >conftest.err
23422 rm -f conftest.er1
23423 cat conftest.err >&5
bdcade0a
MB
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
3565d135
RR
23426 { ac_try='test -z "$ac_cxx_werror_flag"
23427 || test ! -s conftest.err'
ac1cb8d3
VS
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; } &&
23433 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23439 ac_header_compiler=yes
23440else
23441 echo "$as_me: failed program was:" >&5
23442sed 's/^/| /' conftest.$ac_ext >&5
23443
23444ac_header_compiler=no
23445fi
ac1cb8d3 23446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23448echo "${ECHO_T}$ac_header_compiler" >&6
23449
23450# Is the header present?
23451echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23452echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23453cat >conftest.$ac_ext <<_ACEOF
23454/* confdefs.h. */
23455_ACEOF
23456cat confdefs.h >>conftest.$ac_ext
23457cat >>conftest.$ac_ext <<_ACEOF
23458/* end confdefs.h. */
23459#include <ext/hash_map>
23460_ACEOF
23461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } >/dev/null; then
23469 if test -s conftest.err; then
23470 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23471 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23472 else
23473 ac_cpp_err=
23474 fi
23475else
23476 ac_cpp_err=yes
23477fi
23478if test -z "$ac_cpp_err"; then
23479 ac_header_preproc=yes
23480else
23481 echo "$as_me: failed program was:" >&5
23482sed 's/^/| /' conftest.$ac_ext >&5
23483
23484 ac_header_preproc=no
23485fi
23486rm -f conftest.err conftest.$ac_ext
23487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23488echo "${ECHO_T}$ac_header_preproc" >&6
23489
23490# So? What about this header?
ac1cb8d3
VS
23491case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23492 yes:no: )
bdcade0a
MB
23493 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23494echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23495 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23496echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23497 ac_header_preproc=yes
bdcade0a 23498 ;;
ac1cb8d3 23499 no:yes:* )
bdcade0a
MB
23500 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23501echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23502 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23503echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23504 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23505echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23506 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23507echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23508 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23509echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23510 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23511echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23512 (
23513 cat <<\_ASBOX
ac1cb8d3
VS
23514## ----------------------------------------- ##
23515## Report this to wx-dev@lists.wxwidgets.org ##
23516## ----------------------------------------- ##
bdcade0a
MB
23517_ASBOX
23518 ) |
23519 sed "s/^/$as_me: WARNING: /" >&2
23520 ;;
23521esac
23522echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23523echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23524if test "${ac_cv_header_ext_hash_map+set}" = set; then
23525 echo $ECHO_N "(cached) $ECHO_C" >&6
23526else
23527 ac_cv_header_ext_hash_map=$ac_header_preproc
23528fi
23529echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23530echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23531
23532fi
23533if test $ac_cv_header_ext_hash_map = yes; then
23534 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23535echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23536 cat >conftest.$ac_ext <<_ACEOF
23537/* confdefs.h. */
23538_ACEOF
23539cat confdefs.h >>conftest.$ac_ext
23540cat >>conftest.$ac_ext <<_ACEOF
23541/* end confdefs.h. */
23542#include <ext/hash_map>
23543 #include <ext/hash_set>
23544int
23545main ()
23546{
23547__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23548 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext
23554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23555 (eval $ac_compile) 2>conftest.er1
bdcade0a 23556 ac_status=$?
ac1cb8d3
VS
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
bdcade0a
MB
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } &&
3565d135
RR
23562 { ac_try='test -z "$ac_cxx_werror_flag"
23563 || test ! -s conftest.err'
ac1cb8d3
VS
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; } &&
23569 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 echo "$as_me:$LINENO: result: yes" >&5
23576echo "${ECHO_T}yes" >&6
23577 cat >>confdefs.h <<\_ACEOF
23578#define HAVE_EXT_HASH_MAP 1
23579_ACEOF
23580
23581 cat >>confdefs.h <<\_ACEOF
23582#define HAVE_GNU_CXX_HASH_MAP 1
23583_ACEOF
23584
23585else
23586 echo "$as_me: failed program was:" >&5
23587sed 's/^/| /' conftest.$ac_ext >&5
23588
23589echo "$as_me:$LINENO: result: no" >&5
23590echo "${ECHO_T}no" >&6
23591fi
ac1cb8d3 23592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23593
23594fi
23595
23596
a848cd7e
SC
23597
23598 ac_ext=c
23599ac_cpp='$CPP $CPPFLAGS'
23600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23602ac_compiler_gnu=$ac_cv_c_compiler_gnu
23603
23604fi
23605
23606
23607SEARCH_INCLUDE="\
23608 /usr/local/include \
23609 \
23610 /usr/Motif-2.1/include \
23611 /usr/Motif-1.2/include \
23612 /usr/include/Motif1.2 \
a848cd7e
SC
23613 \
23614 /usr/dt/include \
23615 /usr/openwin/include \
23616 \
23617 /usr/include/Xm \
23618 \
23619 /usr/X11R6/include \
23620 /usr/X11R6.4/include \
23621 /usr/X11R5/include \
23622 /usr/X11R4/include \
23623 \
23624 /usr/include/X11R6 \
23625 /usr/include/X11R5 \
23626 /usr/include/X11R4 \
23627 \
23628 /usr/local/X11R6/include \
23629 /usr/local/X11R5/include \
23630 /usr/local/X11R4/include \
23631 \
23632 /usr/local/include/X11R6 \
23633 /usr/local/include/X11R5 \
23634 /usr/local/include/X11R4 \
23635 \
23636 /usr/X11/include \
23637 /usr/include/X11 \
23638 /usr/local/X11/include \
23639 /usr/local/include/X11 \
23640 \
a848cd7e 23641 /usr/XFree86/include/X11 \
e051b34e
MW
23642 /usr/pkg/include \
23643 \
a848cd7e
SC
23644 /usr/openwin/share/include"
23645
6f9cf1e6 23646echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23647echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23648
23649case "${host}" in
23650 *-*-irix6* )
23651 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23652 echo $ECHO_N "(cached) $ECHO_C" >&6
23653else
23654
c687b303
VZ
23655 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23656 for e in a so sl dylib dll.a; do
23657 libc="$d/libc.$e"
23658 if test -f $libc; then
23659 save_LIBS="$LIBS"
23660 LIBS="$libc"
23661 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23662int main() { return 0; }
23663_ACEOF
23664rm -f conftest.$ac_objext conftest$ac_exeext
23665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23666 (eval $ac_link) 2>conftest.er1
23667 ac_status=$?
23668 grep -v '^ *+' conftest.er1 >conftest.err
23669 rm -f conftest.er1
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } &&
3565d135
RR
23673 { ac_try='test -z "$ac_c_werror_flag"
23674 || test ! -s conftest.err'
0ad5d837
VZ
23675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); }; } &&
23680 { ac_try='test -s conftest$ac_exeext'
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; }; then
23686 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23687else
23688 echo "$as_me: failed program was:" >&5
23689sed 's/^/| /' conftest.$ac_ext >&5
23690
23691fi
23692rm -f conftest.err conftest.$ac_objext \
23693 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23694 LIBS="$save_LIBS"
23695 if test "x$wx_cv_std_libpath" != "x"; then
23696 break 2
23697 fi
23698 fi
23699 done
23700 done
23701 if test "x$wx_cv_std_libpath" = "x"; then
23702 wx_cv_std_libpath="lib"
0ad5d837 23703 fi
0ad5d837
VZ
23704
23705
23706fi
6f9cf1e6
MW
23707
23708 ;;
23709
23710 *-*-solaris2* )
23711 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23712 wx_cv_std_libpath="lib/64"
23713 else
23714 wx_cv_std_libpath="lib"
23715 fi
23716 ;;
23717
23718 *-*-linux* )
23719 if test "$ac_cv_sizeof_void_p" = 8 -a \
23720 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23721 wx_cv_std_libpath="lib64"
23722 else
23723 wx_cv_std_libpath="lib"
23724 fi
c687b303
VZ
23725 ;;
23726
23727 *)
23728 wx_cv_std_libpath="lib";
23729 ;;
23730esac
0ad5d837 23731
6f9cf1e6
MW
23732echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23733echo "${ECHO_T}$wx_cv_std_libpath" >&6
23734
23735SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23736
3eca31dc
MW
23737if test "$build" != "$host" -a "$GCC" = yes; then
23738 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23739 cross_root=`dirname $cross_root`
23740 cross_root=`dirname $cross_root`
23741
23742 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23743 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23744 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23745
23746 if test -z "$PKG_CONFIG_PATH"; then
23747 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23748 export PKG_CONFIG_PATH
23749 fi
23750
23751 if test -z "$x_includes" -o "$x_includes" = NONE; then
23752
23753ac_find_includes=
23754for ac_dir in $SEARCH_INCLUDE /usr/include;
23755 do
23756 if test -f "$ac_dir/X11/Intrinsic.h"; then
23757 ac_find_includes=$ac_dir
23758 break
23759 fi
23760 done
23761
23762 x_includes=$ac_find_includes
23763 fi
23764 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23765
0ad5d837
VZ
23766 ac_find_libraries=
23767 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23768 do
23769 for ac_extension in a so sl dylib dll.a; do
23770 if test -f "$ac_dir/libXt.$ac_extension"; then
23771 ac_find_libraries=$ac_dir
23772 break 2
23773 fi
23774 done
23775 done
23776
23777 x_libraries=$ac_find_libraries
23778 fi
23779 fi
23780fi
23781
a848cd7e
SC
23782
23783cat >confcache <<\_ACEOF
23784# This file is a shell script that caches the results of configure
23785# tests run on this system so they can be shared between configure
23786# scripts and configure runs, see configure's option --config-cache.
23787# It is not useful on other systems. If it contains results you don't
23788# want to keep, you may remove or edit it.
23789#
23790# config.status only pays attention to the cache file if you give it
23791# the --recheck option to rerun configure.
23792#
23793# `ac_cv_env_foo' variables (set or unset) will be overridden when
23794# loading this file, other *unset* `ac_cv_foo' will be assigned the
23795# following values.
23796
23797_ACEOF
23798
23799# The following way of writing the cache mishandles newlines in values,
23800# but we know of no workaround that is simple, portable, and efficient.
23801# So, don't put newlines in cache variables' values.
23802# Ultrix sh set writes to stderr and can't be redirected directly,
23803# and sets the high bit in the cache file unless we assign to the vars.
23804{
23805 (set) 2>&1 |
23806 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23807 *ac_space=\ *)
23808 # `set' does not quote correctly, so add quotes (double-quote
23809 # substitution turns \\\\ into \\, and sed turns \\ into \).
23810 sed -n \
ac1cb8d3
VS
23811 "s/'/'\\\\''/g;
23812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23813 ;;
23814 *)
23815 # `set' quotes correctly as required by POSIX, so do not add quotes.
23816 sed -n \
ac1cb8d3 23817 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23818 ;;
23819 esac;
23820} |
23821 sed '
23822 t clear
23823 : clear
23824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23825 t end
23826 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23827 : end' >>confcache
23828if diff $cache_file confcache >/dev/null 2>&1; then :; else
23829 if test -w $cache_file; then
23830 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23831 cat confcache >$cache_file
23832 else
23833 echo "not updating unwritable cache $cache_file"
23834 fi
23835fi
23836rm -f confcache
23837
23838if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23839 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23840echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23841if test "${wx_cv_lib_glibc21+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23843else
23844
23845 cat >conftest.$ac_ext <<_ACEOF
23846/* confdefs.h. */
23847_ACEOF
23848cat confdefs.h >>conftest.$ac_ext
23849cat >>conftest.$ac_ext <<_ACEOF
23850/* end confdefs.h. */
23851#include <features.h>
23852int
23853main ()
23854{
23855
23856 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23857 not glibc 2.1
a848cd7e
SC
23858 #endif
23859
23860 ;
23861 return 0;
23862}
23863_ACEOF
23864rm -f conftest.$ac_objext
23865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23866 (eval $ac_compile) 2>conftest.er1
a848cd7e 23867 ac_status=$?
ac1cb8d3
VS
23868 grep -v '^ *+' conftest.er1 >conftest.err
23869 rm -f conftest.er1
23870 cat conftest.err >&5
a848cd7e
SC
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); } &&
3565d135
RR
23873 { ac_try='test -z "$ac_c_werror_flag"
23874 || test ! -s conftest.err'
ac1cb8d3
VS
23875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876 (eval $ac_try) 2>&5
23877 ac_status=$?
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; } &&
23880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886
23887 wx_cv_lib_glibc21=yes
23888
23889else
23890 echo "$as_me: failed program was:" >&5
23891sed 's/^/| /' conftest.$ac_ext >&5
23892
23893
23894 wx_cv_lib_glibc21=no
23895
23896
23897fi
ac1cb8d3 23898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23899
23900fi
23901echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23902echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23903 if test "$wx_cv_lib_glibc21" = "yes"; then
23904 cat >>confdefs.h <<\_ACEOF
23905#define wxHAVE_GLIBC2 1
23906_ACEOF
23907
23908 fi
23909fi
23910
23911if test "x$wx_cv_lib_glibc21" = "xyes"; then
23912 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23913 cat >>confdefs.h <<\_ACEOF
23914#define _GNU_SOURCE 1
23915_ACEOF
23916
23917 fi
23918fi
23919
23920
23921
23922if test "$wxUSE_REGEX" != "no"; then
23923 cat >>confdefs.h <<\_ACEOF
23924#define wxUSE_REGEX 1
23925_ACEOF
23926
23927
23928 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23929 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23930echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23931 wxUSE_REGEX=builtin
23932 fi
23933
23934 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23935 if test "${ac_cv_header_regex_h+set}" = set; then
23936 echo "$as_me:$LINENO: checking for regex.h" >&5
23937echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23938if test "${ac_cv_header_regex_h+set}" = set; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
23940fi
23941echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23942echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23943else
23944 # Is the header compilable?
23945echo "$as_me:$LINENO: checking regex.h usability" >&5
23946echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23947cat >conftest.$ac_ext <<_ACEOF
23948/* confdefs.h. */
23949_ACEOF
23950cat confdefs.h >>conftest.$ac_ext
23951cat >>conftest.$ac_ext <<_ACEOF
23952/* end confdefs.h. */
23953$ac_includes_default
23954#include <regex.h>
23955_ACEOF
23956rm -f conftest.$ac_objext
23957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23958 (eval $ac_compile) 2>conftest.er1
a848cd7e 23959 ac_status=$?
ac1cb8d3
VS
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
a848cd7e
SC
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } &&
3565d135
RR
23965 { ac_try='test -z "$ac_c_werror_flag"
23966 || test ! -s conftest.err'
ac1cb8d3
VS
23967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); }; } &&
23972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974 (eval $ac_try) 2>&5
23975 ac_status=$?
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; }; then
23978 ac_header_compiler=yes
23979else
23980 echo "$as_me: failed program was:" >&5
23981sed 's/^/| /' conftest.$ac_ext >&5
23982
23983ac_header_compiler=no
23984fi
ac1cb8d3 23985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23987echo "${ECHO_T}$ac_header_compiler" >&6
23988
23989# Is the header present?
23990echo "$as_me:$LINENO: checking regex.h presence" >&5
23991echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23992cat >conftest.$ac_ext <<_ACEOF
23993/* confdefs.h. */
23994_ACEOF
23995cat confdefs.h >>conftest.$ac_ext
23996cat >>conftest.$ac_ext <<_ACEOF
23997/* end confdefs.h. */
23998#include <regex.h>
23999_ACEOF
24000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24002 ac_status=$?
24003 grep -v '^ *+' conftest.er1 >conftest.err
24004 rm -f conftest.er1
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } >/dev/null; then
24008 if test -s conftest.err; then
24009 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24011 else
24012 ac_cpp_err=
24013 fi
24014else
24015 ac_cpp_err=yes
24016fi
24017if test -z "$ac_cpp_err"; then
24018 ac_header_preproc=yes
24019else
24020 echo "$as_me: failed program was:" >&5
24021sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ac_header_preproc=no
24024fi
24025rm -f conftest.err conftest.$ac_ext
24026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24027echo "${ECHO_T}$ac_header_preproc" >&6
24028
24029# So? What about this header?
ac1cb8d3
VS
24030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24031 yes:no: )
a848cd7e
SC
24032 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24033echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24034 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24035echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24036 ac_header_preproc=yes
a848cd7e 24037 ;;
ac1cb8d3 24038 no:yes:* )
a848cd7e
SC
24039 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24040echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24041 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24042echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24043 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24044echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24045 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24046echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24047 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24048echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24049 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24050echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24051 (
24052 cat <<\_ASBOX
ac1cb8d3
VS
24053## ----------------------------------------- ##
24054## Report this to wx-dev@lists.wxwidgets.org ##
24055## ----------------------------------------- ##
a848cd7e
SC
24056_ASBOX
24057 ) |
24058 sed "s/^/$as_me: WARNING: /" >&2
24059 ;;
24060esac
24061echo "$as_me:$LINENO: checking for regex.h" >&5
24062echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24063if test "${ac_cv_header_regex_h+set}" = set; then
24064 echo $ECHO_N "(cached) $ECHO_C" >&6
24065else
24066 ac_cv_header_regex_h=$ac_header_preproc
24067fi
24068echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24069echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24070
24071fi
24072if test $ac_cv_header_regex_h = yes; then
24073
ab0f0edd
MW
24074
24075for ac_func in regcomp re_search
a848cd7e
SC
24076do
24077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24078echo "$as_me:$LINENO: checking for $ac_func" >&5
24079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24080if eval "test \"\${$as_ac_var+set}\" = set"; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24082else
24083 cat >conftest.$ac_ext <<_ACEOF
24084/* confdefs.h. */
24085_ACEOF
24086cat confdefs.h >>conftest.$ac_ext
24087cat >>conftest.$ac_ext <<_ACEOF
24088/* end confdefs.h. */
ac1cb8d3
VS
24089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24091#define $ac_func innocuous_$ac_func
24092
a848cd7e
SC
24093/* System header to define __stub macros and hopefully few prototypes,
24094 which can conflict with char $ac_func (); below.
24095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24096 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24097
a848cd7e
SC
24098#ifdef __STDC__
24099# include <limits.h>
24100#else
24101# include <assert.h>
24102#endif
ac1cb8d3
VS
24103
24104#undef $ac_func
24105
a848cd7e
SC
24106/* Override any gcc2 internal prototype to avoid an error. */
24107#ifdef __cplusplus
24108extern "C"
24109{
24110#endif
24111/* We use char because int might match the return type of a gcc2
24112 builtin and then its argument prototype would still apply. */
24113char $ac_func ();
24114/* The GNU C library defines this for functions which it implements
24115 to always fail with ENOSYS. Some functions are actually named
24116 something starting with __ and the normal name is an alias. */
24117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24118choke me
24119#else
24120char (*f) () = $ac_func;
24121#endif
24122#ifdef __cplusplus
24123}
24124#endif
24125
24126int
24127main ()
24128{
24129return f != $ac_func;
24130 ;
24131 return 0;
24132}
24133_ACEOF
24134rm -f conftest.$ac_objext conftest$ac_exeext
24135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24136 (eval $ac_link) 2>conftest.er1
a848cd7e 24137 ac_status=$?
ac1cb8d3
VS
24138 grep -v '^ *+' conftest.er1 >conftest.err
24139 rm -f conftest.er1
24140 cat conftest.err >&5
a848cd7e
SC
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } &&
3565d135
RR
24143 { ac_try='test -z "$ac_c_werror_flag"
24144 || test ! -s conftest.err'
ac1cb8d3
VS
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; } &&
24150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; }; then
24156 eval "$as_ac_var=yes"
24157else
24158 echo "$as_me: failed program was:" >&5
24159sed 's/^/| /' conftest.$ac_ext >&5
24160
24161eval "$as_ac_var=no"
24162fi
ac1cb8d3
VS
24163rm -f conftest.err conftest.$ac_objext \
24164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24165fi
24166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24167echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24168if test `eval echo '${'$as_ac_var'}'` = yes; then
24169 cat >>confdefs.h <<_ACEOF
24170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24171_ACEOF
24172
24173fi
24174done
24175
24176fi
24177
24178
24179
24180 if test "x$ac_cv_func_regcomp" != "xyes"; then
24181 if test "$wxUSE_REGEX" = "sys" ; then
24182 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24183echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24184 { (exit 1); exit 1; }; }
24185 else
24186 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24187echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24188 wxUSE_REGEX=builtin
24189 fi
24190 else
24191 wxUSE_REGEX=sys
24192 cat >>confdefs.h <<\_ACEOF
24193#define WX_NO_REGEX_ADVANCED 1
24194_ACEOF
24195
24196 fi
24197 fi
24198fi
24199
24200
24201ZLIB_LINK=
24202if test "$wxUSE_ZLIB" != "no" ; then
24203 cat >>confdefs.h <<\_ACEOF
24204#define wxUSE_ZLIB 1
24205_ACEOF
24206
24207
24208 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24209 if test "$USE_DARWIN" = 1; then
24210 system_zlib_h_ok="yes"
24211 else
24212 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24213echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24214if test "${ac_cv_header_zlib_h+set}" = set; then
24215 echo $ECHO_N "(cached) $ECHO_C" >&6
24216else
24217 if test "$cross_compiling" = yes; then
24218 unset ac_cv_header_zlib_h
24219
24220else
24221 cat >conftest.$ac_ext <<_ACEOF
24222/* confdefs.h. */
24223_ACEOF
24224cat confdefs.h >>conftest.$ac_ext
24225cat >>conftest.$ac_ext <<_ACEOF
24226/* end confdefs.h. */
24227
24228 #include <zlib.h>
24229 #include <stdio.h>
24230
24231 int main()
24232 {
24233 FILE *f=fopen("conftestval", "w");
24234 if (!f) exit(1);
24235 fprintf(f, "%s",
24236 ZLIB_VERSION[0] == '1' &&
24237 (ZLIB_VERSION[2] > '1' ||
24238 (ZLIB_VERSION[2] == '1' &&
24239 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24240 exit(0);
24241 }
24242
24243_ACEOF
24244rm -f conftest$ac_exeext
24245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24246 (eval $ac_link) 2>&5
24247 ac_status=$?
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; }; then
24255 ac_cv_header_zlib_h=`cat conftestval`
24256else
24257 echo "$as_me: program exited with status $ac_status" >&5
24258echo "$as_me: failed program was:" >&5
24259sed 's/^/| /' conftest.$ac_ext >&5
24260
24261( exit $ac_status )
24262ac_cv_header_zlib_h=no
24263fi
ac1cb8d3 24264rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24265fi
24266
24267fi
24268echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24269echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24270 if test "${ac_cv_header_zlib_h+set}" = set; then
24271 echo "$as_me:$LINENO: checking for zlib.h" >&5
24272echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24273if test "${ac_cv_header_zlib_h+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24275fi
24276echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24277echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24278else
24279 # Is the header compilable?
24280echo "$as_me:$LINENO: checking zlib.h usability" >&5
24281echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24282cat >conftest.$ac_ext <<_ACEOF
24283/* confdefs.h. */
24284_ACEOF
24285cat confdefs.h >>conftest.$ac_ext
24286cat >>conftest.$ac_ext <<_ACEOF
24287/* end confdefs.h. */
24288$ac_includes_default
24289#include <zlib.h>
24290_ACEOF
24291rm -f conftest.$ac_objext
24292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24293 (eval $ac_compile) 2>conftest.er1
a848cd7e 24294 ac_status=$?
ac1cb8d3
VS
24295 grep -v '^ *+' conftest.er1 >conftest.err
24296 rm -f conftest.er1
24297 cat conftest.err >&5
a848cd7e
SC
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } &&
3565d135
RR
24300 { ac_try='test -z "$ac_c_werror_flag"
24301 || test ! -s conftest.err'
ac1cb8d3
VS
24302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); }; } &&
24307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; }; then
24313 ac_header_compiler=yes
24314else
24315 echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318ac_header_compiler=no
24319fi
ac1cb8d3 24320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24322echo "${ECHO_T}$ac_header_compiler" >&6
24323
24324# Is the header present?
24325echo "$as_me:$LINENO: checking zlib.h presence" >&5
24326echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24327cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333#include <zlib.h>
24334_ACEOF
24335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24337 ac_status=$?
24338 grep -v '^ *+' conftest.er1 >conftest.err
24339 rm -f conftest.er1
24340 cat conftest.err >&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } >/dev/null; then
24343 if test -s conftest.err; then
24344 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24346 else
24347 ac_cpp_err=
24348 fi
24349else
24350 ac_cpp_err=yes
24351fi
24352if test -z "$ac_cpp_err"; then
24353 ac_header_preproc=yes
24354else
24355 echo "$as_me: failed program was:" >&5
24356sed 's/^/| /' conftest.$ac_ext >&5
24357
24358 ac_header_preproc=no
24359fi
24360rm -f conftest.err conftest.$ac_ext
24361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24362echo "${ECHO_T}$ac_header_preproc" >&6
24363
24364# So? What about this header?
ac1cb8d3
VS
24365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24366 yes:no: )
a848cd7e
SC
24367 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24368echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24369 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24370echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24371 ac_header_preproc=yes
a848cd7e 24372 ;;
ac1cb8d3 24373 no:yes:* )
a848cd7e
SC
24374 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24375echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24376 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24377echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24378 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24379echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24380 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24381echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24382 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24383echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24384 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24385echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24386 (
24387 cat <<\_ASBOX
ac1cb8d3
VS
24388## ----------------------------------------- ##
24389## Report this to wx-dev@lists.wxwidgets.org ##
24390## ----------------------------------------- ##
a848cd7e
SC
24391_ASBOX
24392 ) |
24393 sed "s/^/$as_me: WARNING: /" >&2
24394 ;;
24395esac
24396echo "$as_me:$LINENO: checking for zlib.h" >&5
24397echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24398if test "${ac_cv_header_zlib_h+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24400else
24401 ac_cv_header_zlib_h=$ac_header_preproc
24402fi
24403echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24404echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24405
24406fi
24407
24408
24409
24410 system_zlib_h_ok=$ac_cv_header_zlib_h
24411 fi
24412
24413 if test "$system_zlib_h_ok" = "yes"; then
24414 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24415echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24416if test "${ac_cv_lib_z_deflate+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418else
24419 ac_check_lib_save_LIBS=$LIBS
24420LIBS="-lz $LIBS"
24421cat >conftest.$ac_ext <<_ACEOF
24422/* confdefs.h. */
24423_ACEOF
24424cat confdefs.h >>conftest.$ac_ext
24425cat >>conftest.$ac_ext <<_ACEOF
24426/* end confdefs.h. */
24427
24428/* Override any gcc2 internal prototype to avoid an error. */
24429#ifdef __cplusplus
24430extern "C"
24431#endif
24432/* We use char because int might match the return type of a gcc2
24433 builtin and then its argument prototype would still apply. */
24434char deflate ();
24435int
24436main ()
24437{
24438deflate ();
24439 ;
24440 return 0;
24441}
24442_ACEOF
24443rm -f conftest.$ac_objext conftest$ac_exeext
24444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24445 (eval $ac_link) 2>conftest.er1
a848cd7e 24446 ac_status=$?
ac1cb8d3
VS
24447 grep -v '^ *+' conftest.er1 >conftest.err
24448 rm -f conftest.er1
24449 cat conftest.err >&5
a848cd7e
SC
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } &&
3565d135
RR
24452 { ac_try='test -z "$ac_c_werror_flag"
24453 || test ! -s conftest.err'
ac1cb8d3
VS
24454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24455 (eval $ac_try) 2>&5
24456 ac_status=$?
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); }; } &&
24459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); }; }; then
24465 ac_cv_lib_z_deflate=yes
24466else
24467 echo "$as_me: failed program was:" >&5
24468sed 's/^/| /' conftest.$ac_ext >&5
24469
24470ac_cv_lib_z_deflate=no
24471fi
ac1cb8d3
VS
24472rm -f conftest.err conftest.$ac_objext \
24473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24474LIBS=$ac_check_lib_save_LIBS
24475fi
24476echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24477echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24478if test $ac_cv_lib_z_deflate = yes; then
24479 ZLIB_LINK=" -lz"
24480fi
24481
24482 fi
24483
24484 if test "x$ZLIB_LINK" = "x" ; then
24485 if test "$wxUSE_ZLIB" = "sys" ; then
24486 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24487echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24488 { (exit 1); exit 1; }; }
24489 else
24490 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24491echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24492 wxUSE_ZLIB=builtin
24493 fi
24494 else
24495 wxUSE_ZLIB=sys
24496 fi
24497 fi
24498fi
24499
24500
24501PNG_LINK=
24502if test "$wxUSE_LIBPNG" != "no" ; then
24503 cat >>confdefs.h <<\_ACEOF
24504#define wxUSE_LIBPNG 1
24505_ACEOF
24506
24507
24508 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24509 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24510echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24511 wxUSE_LIBPNG=sys
24512 fi
24513
24514 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24515 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24516echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24517 wxUSE_LIBPNG=builtin
24518 fi
24519
24520 if test "$wxUSE_MGL" != 1 ; then
24521 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24522 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24523echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24524if test "${ac_cv_header_png_h+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24526else
24527 if test "$cross_compiling" = yes; then
24528 unset ac_cv_header_png_h
24529
24530else
24531 cat >conftest.$ac_ext <<_ACEOF
24532/* confdefs.h. */
24533_ACEOF
24534cat confdefs.h >>conftest.$ac_ext
24535cat >>conftest.$ac_ext <<_ACEOF
24536/* end confdefs.h. */
24537
24538 #include <png.h>
24539 #include <stdio.h>
24540
24541 int main()
24542 {
24543 FILE *f=fopen("conftestval", "w");
24544 if (!f) exit(1);
24545 fprintf(f, "%s",
24546 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24547 exit(0);
24548 }
24549
24550_ACEOF
24551rm -f conftest$ac_exeext
24552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24553 (eval $ac_link) 2>&5
24554 ac_status=$?
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; }; then
24562 ac_cv_header_png_h=`cat conftestval`
24563else
24564 echo "$as_me: program exited with status $ac_status" >&5
24565echo "$as_me: failed program was:" >&5
24566sed 's/^/| /' conftest.$ac_ext >&5
24567
24568( exit $ac_status )
24569ac_cv_header_png_h=no
24570fi
ac1cb8d3 24571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24572fi
24573
24574fi
24575echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24576echo "${ECHO_T}$ac_cv_header_png_h" >&6
24577 if test "${ac_cv_header_png_h+set}" = set; then
24578 echo "$as_me:$LINENO: checking for png.h" >&5
24579echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24580if test "${ac_cv_header_png_h+set}" = set; then
24581 echo $ECHO_N "(cached) $ECHO_C" >&6
24582fi
24583echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24584echo "${ECHO_T}$ac_cv_header_png_h" >&6
24585else
24586 # Is the header compilable?
24587echo "$as_me:$LINENO: checking png.h usability" >&5
24588echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24589cat >conftest.$ac_ext <<_ACEOF
24590/* confdefs.h. */
24591_ACEOF
24592cat confdefs.h >>conftest.$ac_ext
24593cat >>conftest.$ac_ext <<_ACEOF
24594/* end confdefs.h. */
24595$ac_includes_default
24596#include <png.h>
24597_ACEOF
24598rm -f conftest.$ac_objext
24599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24600 (eval $ac_compile) 2>conftest.er1
a848cd7e 24601 ac_status=$?
ac1cb8d3
VS
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
a848cd7e
SC
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
3565d135
RR
24607 { ac_try='test -z "$ac_c_werror_flag"
24608 || test ! -s conftest.err'
ac1cb8d3
VS
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } &&
24614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620 ac_header_compiler=yes
24621else
24622 echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
24625ac_header_compiler=no
24626fi
ac1cb8d3 24627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24629echo "${ECHO_T}$ac_header_compiler" >&6
24630
24631# Is the header present?
24632echo "$as_me:$LINENO: checking png.h presence" >&5
24633echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24634cat >conftest.$ac_ext <<_ACEOF
24635/* confdefs.h. */
24636_ACEOF
24637cat confdefs.h >>conftest.$ac_ext
24638cat >>conftest.$ac_ext <<_ACEOF
24639/* end confdefs.h. */
24640#include <png.h>
24641_ACEOF
24642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24644 ac_status=$?
24645 grep -v '^ *+' conftest.er1 >conftest.err
24646 rm -f conftest.er1
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } >/dev/null; then
24650 if test -s conftest.err; then
24651 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24653 else
24654 ac_cpp_err=
24655 fi
24656else
24657 ac_cpp_err=yes
24658fi
24659if test -z "$ac_cpp_err"; then
24660 ac_header_preproc=yes
24661else
24662 echo "$as_me: failed program was:" >&5
24663sed 's/^/| /' conftest.$ac_ext >&5
24664
24665 ac_header_preproc=no
24666fi
24667rm -f conftest.err conftest.$ac_ext
24668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24669echo "${ECHO_T}$ac_header_preproc" >&6
24670
24671# So? What about this header?
ac1cb8d3
VS
24672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24673 yes:no: )
a848cd7e
SC
24674 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24675echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24676 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24677echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24678 ac_header_preproc=yes
a848cd7e 24679 ;;
ac1cb8d3 24680 no:yes:* )
a848cd7e
SC
24681 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24682echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24683 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24684echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24685 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24686echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24687 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24688echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24689 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24690echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24691 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24692echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24693 (
24694 cat <<\_ASBOX
ac1cb8d3
VS
24695## ----------------------------------------- ##
24696## Report this to wx-dev@lists.wxwidgets.org ##
24697## ----------------------------------------- ##
a848cd7e
SC
24698_ASBOX
24699 ) |
24700 sed "s/^/$as_me: WARNING: /" >&2
24701 ;;
24702esac
24703echo "$as_me:$LINENO: checking for png.h" >&5
24704echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24705if test "${ac_cv_header_png_h+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24707else
24708 ac_cv_header_png_h=$ac_header_preproc
24709fi
24710echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24711echo "${ECHO_T}$ac_cv_header_png_h" >&6
24712
24713fi
24714
24715
24716
24717 if test "$ac_cv_header_png_h" = "yes"; then
24718 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24719echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24720if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24722else
24723 ac_check_lib_save_LIBS=$LIBS
24724LIBS="-lpng -lz -lm $LIBS"
24725cat >conftest.$ac_ext <<_ACEOF
24726/* confdefs.h. */
24727_ACEOF
24728cat confdefs.h >>conftest.$ac_ext
24729cat >>conftest.$ac_ext <<_ACEOF
24730/* end confdefs.h. */
24731
24732/* Override any gcc2 internal prototype to avoid an error. */
24733#ifdef __cplusplus
24734extern "C"
24735#endif
24736/* We use char because int might match the return type of a gcc2
24737 builtin and then its argument prototype would still apply. */
24738char png_check_sig ();
24739int
24740main ()
24741{
24742png_check_sig ();
24743 ;
24744 return 0;
24745}
24746_ACEOF
24747rm -f conftest.$ac_objext conftest$ac_exeext
24748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24749 (eval $ac_link) 2>conftest.er1
a848cd7e 24750 ac_status=$?
ac1cb8d3
VS
24751 grep -v '^ *+' conftest.er1 >conftest.err
24752 rm -f conftest.er1
24753 cat conftest.err >&5
a848cd7e
SC
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } &&
3565d135
RR
24756 { ac_try='test -z "$ac_c_werror_flag"
24757 || test ! -s conftest.err'
ac1cb8d3
VS
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; } &&
24763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; }; then
24769 ac_cv_lib_png_png_check_sig=yes
24770else
24771 echo "$as_me: failed program was:" >&5
24772sed 's/^/| /' conftest.$ac_ext >&5
24773
24774ac_cv_lib_png_png_check_sig=no
24775fi
ac1cb8d3
VS
24776rm -f conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24778LIBS=$ac_check_lib_save_LIBS
24779fi
24780echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24781echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24782if test $ac_cv_lib_png_png_check_sig = yes; then
24783 PNG_LINK=" -lpng -lz"
24784fi
24785
24786 fi
24787
24788 if test "x$PNG_LINK" = "x" ; then
24789 if test "$wxUSE_LIBPNG" = "sys" ; then
24790 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24791echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24792 { (exit 1); exit 1; }; }
24793 else
24794 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24795echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24796 wxUSE_LIBPNG=builtin
24797 fi
24798 else
24799 wxUSE_LIBPNG=sys
24800 fi
24801 fi
24802 fi
24803
24804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24805fi
24806
24807
24808JPEG_LINK=
24809if test "$wxUSE_LIBJPEG" != "no" ; then
24810 cat >>confdefs.h <<\_ACEOF
24811#define wxUSE_LIBJPEG 1
24812_ACEOF
24813
24814
24815 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24816 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24817echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24818 wxUSE_LIBJPEG=sys
24819 fi
24820
24821 if test "$wxUSE_MGL" != 1 ; then
24822 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24823 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24824echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24825 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24827else
24828 cat >conftest.$ac_ext <<_ACEOF
24829/* confdefs.h. */
24830_ACEOF
24831cat confdefs.h >>conftest.$ac_ext
24832cat >>conftest.$ac_ext <<_ACEOF
24833/* end confdefs.h. */
24834
24835 #undef HAVE_STDLIB_H
24836 #include <stdio.h>
24837 #include <jpeglib.h>
24838
24839int
24840main ()
24841{
24842
24843
24844 ;
24845 return 0;
24846}
24847_ACEOF
24848rm -f conftest.$ac_objext
24849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24850 (eval $ac_compile) 2>conftest.er1
a848cd7e 24851 ac_status=$?
ac1cb8d3
VS
24852 grep -v '^ *+' conftest.er1 >conftest.err
24853 rm -f conftest.er1
24854 cat conftest.err >&5
a848cd7e
SC
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } &&
3565d135
RR
24857 { ac_try='test -z "$ac_c_werror_flag"
24858 || test ! -s conftest.err'
ac1cb8d3
VS
24859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); }; } &&
24864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; }; then
24870 ac_cv_header_jpeglib_h=yes
24871else
24872 echo "$as_me: failed program was:" >&5
24873sed 's/^/| /' conftest.$ac_ext >&5
24874
24875ac_cv_header_jpeglib_h=no
24876
24877fi
ac1cb8d3 24878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24879
24880fi
24881
24882 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24883echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24884
24885 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24886 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24887echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24888if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24889 echo $ECHO_N "(cached) $ECHO_C" >&6
24890else
24891 ac_check_lib_save_LIBS=$LIBS
24892LIBS="-ljpeg $LIBS"
24893cat >conftest.$ac_ext <<_ACEOF
24894/* confdefs.h. */
24895_ACEOF
24896cat confdefs.h >>conftest.$ac_ext
24897cat >>conftest.$ac_ext <<_ACEOF
24898/* end confdefs.h. */
24899
24900/* Override any gcc2 internal prototype to avoid an error. */
24901#ifdef __cplusplus
24902extern "C"
24903#endif
24904/* We use char because int might match the return type of a gcc2
24905 builtin and then its argument prototype would still apply. */
24906char jpeg_read_header ();
24907int
24908main ()
24909{
24910jpeg_read_header ();
24911 ;
24912 return 0;
24913}
24914_ACEOF
24915rm -f conftest.$ac_objext conftest$ac_exeext
24916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24917 (eval $ac_link) 2>conftest.er1
a848cd7e 24918 ac_status=$?
ac1cb8d3
VS
24919 grep -v '^ *+' conftest.er1 >conftest.err
24920 rm -f conftest.er1
24921 cat conftest.err >&5
a848cd7e
SC
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); } &&
3565d135
RR
24924 { ac_try='test -z "$ac_c_werror_flag"
24925 || test ! -s conftest.err'
ac1cb8d3
VS
24926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24927 (eval $ac_try) 2>&5
24928 ac_status=$?
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); }; } &&
24931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; }; then
24937 ac_cv_lib_jpeg_jpeg_read_header=yes
24938else
24939 echo "$as_me: failed program was:" >&5
24940sed 's/^/| /' conftest.$ac_ext >&5
24941
24942ac_cv_lib_jpeg_jpeg_read_header=no
24943fi
ac1cb8d3
VS
24944rm -f conftest.err conftest.$ac_objext \
24945 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24946LIBS=$ac_check_lib_save_LIBS
24947fi
24948echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24949echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24950if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24951 JPEG_LINK=" -ljpeg"
24952fi
24953
24954 fi
24955
24956 if test "x$JPEG_LINK" = "x" ; then
24957 if test "$wxUSE_LIBJPEG" = "sys" ; then
24958 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24959echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24960 { (exit 1); exit 1; }; }
24961 else
24962 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24963echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24964 wxUSE_LIBJPEG=builtin
24965 fi
24966 else
24967 wxUSE_LIBJPEG=sys
24968 fi
24969 fi
24970 fi
24971fi
24972
24973
24974TIFF_LINK=
24975TIFF_PREREQ_LINKS=-lm
24976if test "$wxUSE_LIBTIFF" != "no" ; then
24977 cat >>confdefs.h <<\_ACEOF
24978#define wxUSE_LIBTIFF 1
24979_ACEOF
24980
24981
24982 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24983 if test "$wxUSE_LIBJPEG" = "sys"; then
24984 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24985 fi
24986 if test "$wxUSE_ZLIB" = "sys"; then
24987 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24988 fi
24989 if test "${ac_cv_header_tiffio_h+set}" = set; then
24990 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24991echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24992if test "${ac_cv_header_tiffio_h+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24994fi
24995echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24996echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24997else
24998 # Is the header compilable?
24999echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25000echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25001cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007$ac_includes_default
25008#include <tiffio.h>
25009_ACEOF
25010rm -f conftest.$ac_objext
25011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25012 (eval $ac_compile) 2>conftest.er1
a848cd7e 25013 ac_status=$?
ac1cb8d3
VS
25014 grep -v '^ *+' conftest.er1 >conftest.err
25015 rm -f conftest.er1
25016 cat conftest.err >&5
a848cd7e
SC
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
3565d135
RR
25019 { ac_try='test -z "$ac_c_werror_flag"
25020 || test ! -s conftest.err'
ac1cb8d3
VS
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; } &&
25026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028 (eval $ac_try) 2>&5
25029 ac_status=$?
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); }; }; then
25032 ac_header_compiler=yes
25033else
25034 echo "$as_me: failed program was:" >&5
25035sed 's/^/| /' conftest.$ac_ext >&5
25036
25037ac_header_compiler=no
25038fi
ac1cb8d3 25039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25041echo "${ECHO_T}$ac_header_compiler" >&6
25042
25043# Is the header present?
25044echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25045echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25046cat >conftest.$ac_ext <<_ACEOF
25047/* confdefs.h. */
25048_ACEOF
25049cat confdefs.h >>conftest.$ac_ext
25050cat >>conftest.$ac_ext <<_ACEOF
25051/* end confdefs.h. */
25052#include <tiffio.h>
25053_ACEOF
25054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25056 ac_status=$?
25057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } >/dev/null; then
25062 if test -s conftest.err; then
25063 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25065 else
25066 ac_cpp_err=
25067 fi
25068else
25069 ac_cpp_err=yes
25070fi
25071if test -z "$ac_cpp_err"; then
25072 ac_header_preproc=yes
25073else
25074 echo "$as_me: failed program was:" >&5
25075sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 ac_header_preproc=no
25078fi
25079rm -f conftest.err conftest.$ac_ext
25080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25081echo "${ECHO_T}$ac_header_preproc" >&6
25082
25083# So? What about this header?
ac1cb8d3
VS
25084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25085 yes:no: )
a848cd7e
SC
25086 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25087echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25088 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25089echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25090 ac_header_preproc=yes
a848cd7e 25091 ;;
ac1cb8d3 25092 no:yes:* )
a848cd7e
SC
25093 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25094echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25095 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25096echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25098echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25099 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25100echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25101 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25102echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25103 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25104echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25105 (
25106 cat <<\_ASBOX
ac1cb8d3
VS
25107## ----------------------------------------- ##
25108## Report this to wx-dev@lists.wxwidgets.org ##
25109## ----------------------------------------- ##
a848cd7e
SC
25110_ASBOX
25111 ) |
25112 sed "s/^/$as_me: WARNING: /" >&2
25113 ;;
25114esac
25115echo "$as_me:$LINENO: checking for tiffio.h" >&5
25116echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25117if test "${ac_cv_header_tiffio_h+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25119else
25120 ac_cv_header_tiffio_h=$ac_header_preproc
25121fi
25122echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25123echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25124
25125fi
25126if test $ac_cv_header_tiffio_h = yes; then
25127
25128 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25129echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25130if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25132else
25133 ac_check_lib_save_LIBS=$LIBS
25134LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25135cat >conftest.$ac_ext <<_ACEOF
25136/* confdefs.h. */
25137_ACEOF
25138cat confdefs.h >>conftest.$ac_ext
25139cat >>conftest.$ac_ext <<_ACEOF
25140/* end confdefs.h. */
25141
25142/* Override any gcc2 internal prototype to avoid an error. */
25143#ifdef __cplusplus
25144extern "C"
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 TIFFError ();
25149int
25150main ()
25151{
25152TIFFError ();
25153 ;
25154 return 0;
25155}
25156_ACEOF
25157rm -f conftest.$ac_objext conftest$ac_exeext
25158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25159 (eval $ac_link) 2>conftest.er1
a848cd7e 25160 ac_status=$?
ac1cb8d3
VS
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
a848cd7e
SC
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } &&
3565d135
RR
25166 { ac_try='test -z "$ac_c_werror_flag"
25167 || test ! -s conftest.err'
ac1cb8d3
VS
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_lib_tiff_TIFFError=yes
25180else
25181 echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184ac_cv_lib_tiff_TIFFError=no
25185fi
ac1cb8d3
VS
25186rm -f conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25188LIBS=$ac_check_lib_save_LIBS
25189fi
25190echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25191echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25192if test $ac_cv_lib_tiff_TIFFError = yes; then
25193 TIFF_LINK=" -ltiff"
25194fi
25195
25196
25197
25198fi
25199
25200
25201
25202 if test "x$TIFF_LINK" = "x" ; then
25203 if test "$wxUSE_LIBTIFF" = "sys" ; then
25204 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25205echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25206 { (exit 1); exit 1; }; }
25207 else
25208 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25209echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25210 wxUSE_LIBTIFF=builtin
25211 fi
25212 else
25213 wxUSE_LIBTIFF=sys
25214 fi
25215 fi
25216fi
25217
25218
47a7e797
MW
25219if test "$wxUSE_WCHAR_T" != "yes"; then
25220 if test "$wxUSE_EXPAT" != "no"; then
25221 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25222echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25223 wxUSE_EXPAT=no
25224 fi
25225 if test "$wxUSE_XML" != "no"; then
25226 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25227echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25228 wxUSE_XML=no
25229 fi
25230fi
25231
a848cd7e
SC
25232if test "$wxUSE_EXPAT" != "no"; then
25233 wxUSE_XML=yes
25234 cat >>confdefs.h <<\_ACEOF
25235#define wxUSE_EXPAT 1
25236_ACEOF
25237
25238 cat >>confdefs.h <<\_ACEOF
25239#define wxUSE_XML 1
25240_ACEOF
25241
25242
25243 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25244 if test "${ac_cv_header_expat_h+set}" = set; then
25245 echo "$as_me:$LINENO: checking for expat.h" >&5
25246echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25247if test "${ac_cv_header_expat_h+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25249fi
25250echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25251echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25252else
25253 # Is the header compilable?
25254echo "$as_me:$LINENO: checking expat.h usability" >&5
25255echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25256cat >conftest.$ac_ext <<_ACEOF
25257/* confdefs.h. */
25258_ACEOF
25259cat confdefs.h >>conftest.$ac_ext
25260cat >>conftest.$ac_ext <<_ACEOF
25261/* end confdefs.h. */
25262$ac_includes_default
25263#include <expat.h>
25264_ACEOF
25265rm -f conftest.$ac_objext
25266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25267 (eval $ac_compile) 2>conftest.er1
a848cd7e 25268 ac_status=$?
ac1cb8d3
VS
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
a848cd7e
SC
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } &&
3565d135
RR
25274 { ac_try='test -z "$ac_c_werror_flag"
25275 || test ! -s conftest.err'
ac1cb8d3
VS
25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277 (eval $ac_try) 2>&5
25278 ac_status=$?
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; } &&
25281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; }; then
25287 ac_header_compiler=yes
25288else
25289 echo "$as_me: failed program was:" >&5
25290sed 's/^/| /' conftest.$ac_ext >&5
25291
25292ac_header_compiler=no
25293fi
ac1cb8d3 25294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25296echo "${ECHO_T}$ac_header_compiler" >&6
25297
25298# Is the header present?
25299echo "$as_me:$LINENO: checking expat.h presence" >&5
25300echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25301cat >conftest.$ac_ext <<_ACEOF
25302/* confdefs.h. */
25303_ACEOF
25304cat confdefs.h >>conftest.$ac_ext
25305cat >>conftest.$ac_ext <<_ACEOF
25306/* end confdefs.h. */
25307#include <expat.h>
25308_ACEOF
25309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25311 ac_status=$?
25312 grep -v '^ *+' conftest.er1 >conftest.err
25313 rm -f conftest.er1
25314 cat conftest.err >&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } >/dev/null; then
25317 if test -s conftest.err; then
25318 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25320 else
25321 ac_cpp_err=
25322 fi
25323else
25324 ac_cpp_err=yes
25325fi
25326if test -z "$ac_cpp_err"; then
25327 ac_header_preproc=yes
25328else
25329 echo "$as_me: failed program was:" >&5
25330sed 's/^/| /' conftest.$ac_ext >&5
25331
25332 ac_header_preproc=no
25333fi
25334rm -f conftest.err conftest.$ac_ext
25335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25336echo "${ECHO_T}$ac_header_preproc" >&6
25337
25338# So? What about this header?
ac1cb8d3
VS
25339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25340 yes:no: )
a848cd7e
SC
25341 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25342echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25343 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25344echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25345 ac_header_preproc=yes
a848cd7e 25346 ;;
ac1cb8d3 25347 no:yes:* )
a848cd7e
SC
25348 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25349echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25350 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25351echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25352 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25353echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25354 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25355echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25356 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25357echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25358 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25359echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25360 (
25361 cat <<\_ASBOX
ac1cb8d3
VS
25362## ----------------------------------------- ##
25363## Report this to wx-dev@lists.wxwidgets.org ##
25364## ----------------------------------------- ##
a848cd7e
SC
25365_ASBOX
25366 ) |
25367 sed "s/^/$as_me: WARNING: /" >&2
25368 ;;
25369esac
25370echo "$as_me:$LINENO: checking for expat.h" >&5
25371echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25372if test "${ac_cv_header_expat_h+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375 ac_cv_header_expat_h=$ac_header_preproc
25376fi
25377echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25378echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25379
25380fi
25381if test $ac_cv_header_expat_h = yes; then
25382 found_expat_h=1
25383fi
25384
25385
25386 if test "x$found_expat_h" = "x1"; then
25387 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25388echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25389if test "${wx_cv_expat_is_not_broken+set}" = set; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25391else
25392
25393
25394
25395 ac_ext=cc
25396ac_cpp='$CXXCPP $CPPFLAGS'
25397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25400
25401 cat >conftest.$ac_ext <<_ACEOF
25402/* confdefs.h. */
25403_ACEOF
25404cat confdefs.h >>conftest.$ac_ext
25405cat >>conftest.$ac_ext <<_ACEOF
25406/* end confdefs.h. */
25407#include <expat.h>
25408int
25409main ()
25410{
25411
25412 ;
25413 return 0;
25414}
25415_ACEOF
25416rm -f conftest.$ac_objext
25417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25418 (eval $ac_compile) 2>conftest.er1
a848cd7e 25419 ac_status=$?
ac1cb8d3
VS
25420 grep -v '^ *+' conftest.er1 >conftest.err
25421 rm -f conftest.er1
25422 cat conftest.err >&5
a848cd7e
SC
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
3565d135
RR
25425 { ac_try='test -z "$ac_cxx_werror_flag"
25426 || test ! -s conftest.err'
ac1cb8d3
VS
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; } &&
25432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 wx_cv_expat_is_not_broken=yes
25439else
25440 echo "$as_me: failed program was:" >&5
25441sed 's/^/| /' conftest.$ac_ext >&5
25442
25443wx_cv_expat_is_not_broken=no
25444
25445fi
ac1cb8d3 25446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25447 ac_ext=c
25448ac_cpp='$CPP $CPPFLAGS'
25449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25451ac_compiler_gnu=$ac_cv_c_compiler_gnu
25452
25453
25454
25455fi
25456echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25457echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25458 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25459 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25460echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25461if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lexpat $LIBS"
25466cat >conftest.$ac_ext <<_ACEOF
25467/* confdefs.h. */
25468_ACEOF
25469cat confdefs.h >>conftest.$ac_ext
25470cat >>conftest.$ac_ext <<_ACEOF
25471/* end confdefs.h. */
25472
25473/* Override any gcc2 internal prototype to avoid an error. */
25474#ifdef __cplusplus
25475extern "C"
25476#endif
25477/* We use char because int might match the return type of a gcc2
25478 builtin and then its argument prototype would still apply. */
25479char XML_ParserCreate ();
25480int
25481main ()
25482{
25483XML_ParserCreate ();
25484 ;
25485 return 0;
25486}
25487_ACEOF
25488rm -f conftest.$ac_objext conftest$ac_exeext
25489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25490 (eval $ac_link) 2>conftest.er1
a848cd7e 25491 ac_status=$?
ac1cb8d3
VS
25492 grep -v '^ *+' conftest.er1 >conftest.err
25493 rm -f conftest.er1
25494 cat conftest.err >&5
a848cd7e
SC
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } &&
3565d135
RR
25497 { ac_try='test -z "$ac_c_werror_flag"
25498 || test ! -s conftest.err'
ac1cb8d3
VS
25499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25500 (eval $ac_try) 2>&5
25501 ac_status=$?
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; } &&
25504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; }; then
25510 ac_cv_lib_expat_XML_ParserCreate=yes
25511else
25512 echo "$as_me: failed program was:" >&5
25513sed 's/^/| /' conftest.$ac_ext >&5
25514
25515ac_cv_lib_expat_XML_ParserCreate=no
25516fi
ac1cb8d3
VS
25517rm -f conftest.err conftest.$ac_objext \
25518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25519LIBS=$ac_check_lib_save_LIBS
25520fi
25521echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25522echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25523if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25524 EXPAT_LINK=" -lexpat"
25525fi
25526
25527 fi
25528 fi
25529 if test "x$EXPAT_LINK" = "x" ; then
25530 if test "$wxUSE_EXPAT" = "sys" ; then
25531 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25532echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25533 { (exit 1); exit 1; }; }
25534 else
25535 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25536echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25537 wxUSE_EXPAT=builtin
25538 fi
25539 else
25540 wxUSE_EXPAT=sys
25541 fi
25542 fi
25543 if test "$wxUSE_EXPAT" = "builtin" ; then
25544
25545
25546subdirs="$subdirs src/expat"
25547
25548 fi
25549fi
25550
25551
25552
25553if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25554 if test "${ac_cv_header_mspack_h+set}" = set; then
25555 echo "$as_me:$LINENO: checking for mspack.h" >&5
25556echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25557if test "${ac_cv_header_mspack_h+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25559fi
25560echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25561echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25562else
25563 # Is the header compilable?
25564echo "$as_me:$LINENO: checking mspack.h usability" >&5
25565echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25566cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
25572$ac_includes_default
25573#include <mspack.h>
25574_ACEOF
25575rm -f conftest.$ac_objext
25576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25577 (eval $ac_compile) 2>conftest.er1
a848cd7e 25578 ac_status=$?
ac1cb8d3
VS
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
a848cd7e
SC
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
3565d135
RR
25584 { ac_try='test -z "$ac_c_werror_flag"
25585 || test ! -s conftest.err'
ac1cb8d3
VS
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; } &&
25591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25597 ac_header_compiler=yes
25598else
25599 echo "$as_me: failed program was:" >&5
25600sed 's/^/| /' conftest.$ac_ext >&5
25601
25602ac_header_compiler=no
25603fi
ac1cb8d3 25604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25606echo "${ECHO_T}$ac_header_compiler" >&6
25607
25608# Is the header present?
25609echo "$as_me:$LINENO: checking mspack.h presence" >&5
25610echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25611cat >conftest.$ac_ext <<_ACEOF
25612/* confdefs.h. */
25613_ACEOF
25614cat confdefs.h >>conftest.$ac_ext
25615cat >>conftest.$ac_ext <<_ACEOF
25616/* end confdefs.h. */
25617#include <mspack.h>
25618_ACEOF
25619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25621 ac_status=$?
25622 grep -v '^ *+' conftest.er1 >conftest.err
25623 rm -f conftest.er1
25624 cat conftest.err >&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } >/dev/null; then
25627 if test -s conftest.err; then
25628 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25630 else
25631 ac_cpp_err=
25632 fi
25633else
25634 ac_cpp_err=yes
25635fi
25636if test -z "$ac_cpp_err"; then
25637 ac_header_preproc=yes
25638else
25639 echo "$as_me: failed program was:" >&5
25640sed 's/^/| /' conftest.$ac_ext >&5
25641
25642 ac_header_preproc=no
25643fi
25644rm -f conftest.err conftest.$ac_ext
25645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25646echo "${ECHO_T}$ac_header_preproc" >&6
25647
25648# So? What about this header?
ac1cb8d3
VS
25649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25650 yes:no: )
a848cd7e
SC
25651 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25652echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25653 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25654echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25655 ac_header_preproc=yes
a848cd7e 25656 ;;
ac1cb8d3 25657 no:yes:* )
a848cd7e
SC
25658 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25659echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25660 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25661echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25662 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25663echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25664 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25665echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25666 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25667echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25668 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25669echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25670 (
25671 cat <<\_ASBOX
ac1cb8d3
VS
25672## ----------------------------------------- ##
25673## Report this to wx-dev@lists.wxwidgets.org ##
25674## ----------------------------------------- ##
a848cd7e
SC
25675_ASBOX
25676 ) |
25677 sed "s/^/$as_me: WARNING: /" >&2
25678 ;;
25679esac
25680echo "$as_me:$LINENO: checking for mspack.h" >&5
25681echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25682if test "${ac_cv_header_mspack_h+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25684else
25685 ac_cv_header_mspack_h=$ac_header_preproc
25686fi
25687echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25688echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25689
25690fi
25691if test $ac_cv_header_mspack_h = yes; then
25692 found_mspack_h=1
25693fi
25694
25695
25696 if test "x$found_mspack_h" = "x1"; then
25697 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25698echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25699if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25701else
25702 ac_check_lib_save_LIBS=$LIBS
25703LIBS="-lmspack $LIBS"
25704cat >conftest.$ac_ext <<_ACEOF
25705/* confdefs.h. */
25706_ACEOF
25707cat confdefs.h >>conftest.$ac_ext
25708cat >>conftest.$ac_ext <<_ACEOF
25709/* end confdefs.h. */
25710
25711/* Override any gcc2 internal prototype to avoid an error. */
25712#ifdef __cplusplus
25713extern "C"
25714#endif
25715/* We use char because int might match the return type of a gcc2
25716 builtin and then its argument prototype would still apply. */
25717char mspack_create_chm_decompressor ();
25718int
25719main ()
25720{
25721mspack_create_chm_decompressor ();
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726rm -f conftest.$ac_objext conftest$ac_exeext
25727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25728 (eval $ac_link) 2>conftest.er1
a848cd7e 25729 ac_status=$?
ac1cb8d3
VS
25730 grep -v '^ *+' conftest.er1 >conftest.err
25731 rm -f conftest.er1
25732 cat conftest.err >&5
a848cd7e
SC
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } &&
3565d135
RR
25735 { ac_try='test -z "$ac_c_werror_flag"
25736 || test ! -s conftest.err'
ac1cb8d3
VS
25737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); }; } &&
25742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; }; then
25748 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25749else
25750 echo "$as_me: failed program was:" >&5
25751sed 's/^/| /' conftest.$ac_ext >&5
25752
25753ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25754fi
ac1cb8d3
VS
25755rm -f conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25757LIBS=$ac_check_lib_save_LIBS
25758fi
25759echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25760echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25761if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25762 MSPACK_LINK=" -lmspack"
25763fi
25764
25765 fi
25766 if test "x$MSPACK_LINK" = "x" ; then
25767 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25768 fi
25769fi
25770
25771if test "$wxUSE_LIBMSPACK" != "no"; then
25772 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25773#define wxUSE_LIBMSPACK 1
25774_ACEOF
25775
a848cd7e
SC
25776fi
25777
25778
25779
25780AFMINSTALL=
25781WIN32INSTALL=
25782
25783TOOLKIT=
25784TOOLKIT_INCLUDE=
25785WIDGET_SET=
25786
25787if test "$USE_WIN32" = 1 ; then
25788
25789for ac_header in w32api.h
25790do
25791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25792if eval "test \"\${$as_ac_Header+set}\" = set"; then
25793 echo "$as_me:$LINENO: checking for $ac_header" >&5
25794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25795if eval "test \"\${$as_ac_Header+set}\" = set"; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25797fi
25798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25800else
25801 # Is the header compilable?
25802echo "$as_me:$LINENO: checking $ac_header usability" >&5
25803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25804cat >conftest.$ac_ext <<_ACEOF
25805/* confdefs.h. */
25806_ACEOF
25807cat confdefs.h >>conftest.$ac_ext
25808cat >>conftest.$ac_ext <<_ACEOF
25809/* end confdefs.h. */
25810$ac_includes_default
25811#include <$ac_header>
25812_ACEOF
25813rm -f conftest.$ac_objext
25814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25815 (eval $ac_compile) 2>conftest.er1
a848cd7e 25816 ac_status=$?
ac1cb8d3
VS
25817 grep -v '^ *+' conftest.er1 >conftest.err
25818 rm -f conftest.er1
25819 cat conftest.err >&5
a848cd7e
SC
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } &&
3565d135
RR
25822 { ac_try='test -z "$ac_c_werror_flag"
25823 || test ! -s conftest.err'
ac1cb8d3
VS
25824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25826 ac_status=$?
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; } &&
25829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831 (eval $ac_try) 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; }; then
25835 ac_header_compiler=yes
25836else
25837 echo "$as_me: failed program was:" >&5
25838sed 's/^/| /' conftest.$ac_ext >&5
25839
25840ac_header_compiler=no
25841fi
ac1cb8d3 25842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25844echo "${ECHO_T}$ac_header_compiler" >&6
25845
25846# Is the header present?
25847echo "$as_me:$LINENO: checking $ac_header presence" >&5
25848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25849cat >conftest.$ac_ext <<_ACEOF
25850/* confdefs.h. */
25851_ACEOF
25852cat confdefs.h >>conftest.$ac_ext
25853cat >>conftest.$ac_ext <<_ACEOF
25854/* end confdefs.h. */
25855#include <$ac_header>
25856_ACEOF
25857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25859 ac_status=$?
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } >/dev/null; then
25865 if test -s conftest.err; then
25866 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25868 else
25869 ac_cpp_err=
25870 fi
25871else
25872 ac_cpp_err=yes
25873fi
25874if test -z "$ac_cpp_err"; then
25875 ac_header_preproc=yes
25876else
25877 echo "$as_me: failed program was:" >&5
25878sed 's/^/| /' conftest.$ac_ext >&5
25879
25880 ac_header_preproc=no
25881fi
25882rm -f conftest.err conftest.$ac_ext
25883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25884echo "${ECHO_T}$ac_header_preproc" >&6
25885
25886# So? What about this header?
ac1cb8d3
VS
25887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25888 yes:no: )
a848cd7e
SC
25889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25893 ac_header_preproc=yes
a848cd7e 25894 ;;
ac1cb8d3 25895 no:yes:* )
a848cd7e
SC
25896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25903echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25908 (
25909 cat <<\_ASBOX
ac1cb8d3
VS
25910## ----------------------------------------- ##
25911## Report this to wx-dev@lists.wxwidgets.org ##
25912## ----------------------------------------- ##
a848cd7e
SC
25913_ASBOX
25914 ) |
25915 sed "s/^/$as_me: WARNING: /" >&2
25916 ;;
25917esac
25918echo "$as_me:$LINENO: checking for $ac_header" >&5
25919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25920if eval "test \"\${$as_ac_Header+set}\" = set"; then
25921 echo $ECHO_N "(cached) $ECHO_C" >&6
25922else
ac1cb8d3 25923 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25924fi
25925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25927
25928fi
25929if test `eval echo '${'$as_ac_Header'}'` = yes; then
25930 cat >>confdefs.h <<_ACEOF
25931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25932_ACEOF
25933
25934fi
25935
25936done
25937
25938 if test "${ac_cv_header_windows_h+set}" = set; then
25939 echo "$as_me:$LINENO: checking for windows.h" >&5
25940echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25941if test "${ac_cv_header_windows_h+set}" = set; then
25942 echo $ECHO_N "(cached) $ECHO_C" >&6
25943fi
25944echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25945echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25946else
25947 # Is the header compilable?
25948echo "$as_me:$LINENO: checking windows.h usability" >&5
25949echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25950cat >conftest.$ac_ext <<_ACEOF
25951/* confdefs.h. */
25952_ACEOF
25953cat confdefs.h >>conftest.$ac_ext
25954cat >>conftest.$ac_ext <<_ACEOF
25955/* end confdefs.h. */
25956$ac_includes_default
25957#include <windows.h>
25958_ACEOF
25959rm -f conftest.$ac_objext
25960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25961 (eval $ac_compile) 2>conftest.er1
a848cd7e 25962 ac_status=$?
ac1cb8d3
VS
25963 grep -v '^ *+' conftest.er1 >conftest.err
25964 rm -f conftest.er1
25965 cat conftest.err >&5
a848cd7e
SC
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } &&
3565d135
RR
25968 { ac_try='test -z "$ac_c_werror_flag"
25969 || test ! -s conftest.err'
ac1cb8d3
VS
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25978 ac_status=$?
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; }; then
25981 ac_header_compiler=yes
25982else
25983 echo "$as_me: failed program was:" >&5
25984sed 's/^/| /' conftest.$ac_ext >&5
25985
25986ac_header_compiler=no
25987fi
ac1cb8d3 25988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25990echo "${ECHO_T}$ac_header_compiler" >&6
25991
25992# Is the header present?
25993echo "$as_me:$LINENO: checking windows.h presence" >&5
25994echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25995cat >conftest.$ac_ext <<_ACEOF
25996/* confdefs.h. */
25997_ACEOF
25998cat confdefs.h >>conftest.$ac_ext
25999cat >>conftest.$ac_ext <<_ACEOF
26000/* end confdefs.h. */
26001#include <windows.h>
26002_ACEOF
26003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26005 ac_status=$?
26006 grep -v '^ *+' conftest.er1 >conftest.err
26007 rm -f conftest.er1
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } >/dev/null; then
26011 if test -s conftest.err; then
26012 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26014 else
26015 ac_cpp_err=
26016 fi
26017else
26018 ac_cpp_err=yes
26019fi
26020if test -z "$ac_cpp_err"; then
26021 ac_header_preproc=yes
26022else
26023 echo "$as_me: failed program was:" >&5
26024sed 's/^/| /' conftest.$ac_ext >&5
26025
26026 ac_header_preproc=no
26027fi
26028rm -f conftest.err conftest.$ac_ext
26029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26030echo "${ECHO_T}$ac_header_preproc" >&6
26031
26032# So? What about this header?
ac1cb8d3
VS
26033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26034 yes:no: )
a848cd7e
SC
26035 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26036echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26037 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26038echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26039 ac_header_preproc=yes
a848cd7e 26040 ;;
ac1cb8d3 26041 no:yes:* )
a848cd7e
SC
26042 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26043echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26044 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26045echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26046 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26047echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26048 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26049echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26050 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26051echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26052 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26053echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26054 (
26055 cat <<\_ASBOX
ac1cb8d3
VS
26056## ----------------------------------------- ##
26057## Report this to wx-dev@lists.wxwidgets.org ##
26058## ----------------------------------------- ##
a848cd7e
SC
26059_ASBOX
26060 ) |
26061 sed "s/^/$as_me: WARNING: /" >&2
26062 ;;
26063esac
26064echo "$as_me:$LINENO: checking for windows.h" >&5
26065echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26066if test "${ac_cv_header_windows_h+set}" = set; then
26067 echo $ECHO_N "(cached) $ECHO_C" >&6
26068else
26069 ac_cv_header_windows_h=$ac_header_preproc
26070fi
26071echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26072echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26073
26074fi
26075if test $ac_cv_header_windows_h = yes; then
26076 :
26077else
26078
26079 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26080echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26081 { (exit 1); exit 1; }; }
26082
26083fi
26084
26085
26086
26087 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26088
26089 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26090 LIBS="$LIBS -loleacc"
26091 fi
26092
26093 case "${host}" in
26094 *-*-cygwin* )
26095 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26096 esac
26097
26098 if test "$wxUSE_ODBC" = "sys" ; then
26099 wxUSE_ODBC = "yes"
26100 fi
26101 if test "$wxUSE_ODBC" = "yes" ; then
26102 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26103 cat >>confdefs.h <<\_ACEOF
26104#define wxUSE_ODBC 1
26105_ACEOF
26106
26107 fi
26108
370d2fd7 26109 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26110 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26111
004ee6da 26112 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26113
a848cd7e
SC
26114 WIN32INSTALL=win32install
26115fi
26116
26117if test "$wxUSE_GUI" = "yes"; then
26118 USE_GUI=1
26119
26120 GUI_TK_LIBRARY=
26121
26122 WXGTK12=
26123 WXGTK127=
26124 WXGTK20=
26125 WXGPE=
26126
207bc66c
RN
26127 if test "$wxUSE_COCOA" = 1 ; then
26128 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26129 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26130echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26131 wxUSE_PRINTING_ARCHITECTURE=no
26132 fi
26133 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26134 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26135echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26136 wxUSE_DRAG_AND_DROP=no
26137 fi
26138 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26139 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26140echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26141 wxUSE_DRAGIMAGE=no
26142 fi
26143 fi
26144
a848cd7e
SC
26145 if test "$wxUSE_MSW" = 1 ; then
26146 TOOLKIT=MSW
26147 GUIDIST=MSW_DIST
26148
ceec2216 26149 case "${host}" in
a848cd7e
SC
26150 *-*-mingw32* )
26151 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26152 esac
26153 fi
26154
26155 if test "$wxUSE_GTK" = 1; then
26156 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26157echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26158
26159 gtk_version_cached=1
26160 if test "${wx_cv_lib_gtk+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26162else
26163
26164 gtk_version_cached=0
26165 echo "$as_me:$LINENO: result: " >&5
26166echo "${ECHO_T}" >&6
26167
26168 GTK_MODULES=
26169 if test "$wxUSE_THREADS" = "yes"; then
26170 GTK_MODULES=gthread
26171 fi
26172
f597b41c 26173 wx_cv_lib_gtk=
5001df0d
MW
26174 if test "x$wxGTK_VERSION" != "x1"
26175 then
26176 case "${host}" in
26177 *-*-solaris2* )
26178 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26179 enable_gtktest=no
5001df0d
MW
26180 fi
26181 esac
26182
a848cd7e
SC
26183 # Check whether --enable-gtktest or --disable-gtktest was given.
26184if test "${enable_gtktest+set}" = set; then
26185 enableval="$enable_gtktest"
26186
26187else
26188 enable_gtktest=yes
26189fi;
26190
26191 pkg_config_args=gtk+-2.0
26192 for module in . $GTK_MODULES
26193 do
26194 case "$module" in
26195 gthread)
26196 pkg_config_args="$pkg_config_args gthread-2.0"
26197 ;;
26198 esac
26199 done
26200
26201 no_gtk=""
26202
26203 # Extract the first word of "pkg-config", so it can be a program name with args.
26204set dummy pkg-config; ac_word=$2
26205echo "$as_me:$LINENO: checking for $ac_word" >&5
26206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26207if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26208 echo $ECHO_N "(cached) $ECHO_C" >&6
26209else
26210 case $PKG_CONFIG in
26211 [\\/]* | ?:[\\/]*)
26212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26213 ;;
26214 *)
26215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26216for as_dir in $PATH
26217do
26218 IFS=$as_save_IFS
26219 test -z "$as_dir" && as_dir=.
26220 for ac_exec_ext in '' $ac_executable_extensions; do
26221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26222 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26224 break 2
26225 fi
26226done
26227done
26228
26229 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26230 ;;
26231esac
26232fi
26233PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26234
26235if test -n "$PKG_CONFIG"; then
26236 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26237echo "${ECHO_T}$PKG_CONFIG" >&6
26238else
26239 echo "$as_me:$LINENO: result: no" >&5
26240echo "${ECHO_T}no" >&6
26241fi
26242
26243
26244 if test x$PKG_CONFIG != xno ; then
26245 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26246 :
26247 else
c2218763 26248 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26249 no_gtk=yes
26250 PKG_CONFIG=no
26251 fi
26252 else
26253 no_gtk=yes
26254 fi
26255
26256 min_gtk_version=2.0.0
26257 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26258echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26259
26260 if test x$PKG_CONFIG != xno ; then
26261 ## don't try to run the test against uninstalled libtool libs
26262 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26263 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26264 enable_gtktest=no
26265 fi
26266
26267 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26268 :
26269 else
26270 no_gtk=yes
26271 fi
26272 fi
26273
26274 if test x"$no_gtk" = x ; then
26275 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26276 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26277 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26278 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26279 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26280 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26281 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26282 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26283 if test "x$enable_gtktest" = "xyes" ; then
26284 ac_save_CFLAGS="$CFLAGS"
26285 ac_save_LIBS="$LIBS"
26286 CFLAGS="$CFLAGS $GTK_CFLAGS"
26287 LIBS="$GTK_LIBS $LIBS"
26288 rm -f conf.gtktest
26289 if test "$cross_compiling" = yes; then
26290 echo $ac_n "cross compiling; assumed OK... $ac_c"
26291else
26292 cat >conftest.$ac_ext <<_ACEOF
26293/* confdefs.h. */
26294_ACEOF
26295cat confdefs.h >>conftest.$ac_ext
26296cat >>conftest.$ac_ext <<_ACEOF
26297/* end confdefs.h. */
26298
26299#include <gtk/gtk.h>
26300#include <stdio.h>
26301#include <stdlib.h>
26302
26303int
26304main ()
26305{
26306 int major, minor, micro;
26307 char *tmp_version;
26308
26309 system ("touch conf.gtktest");
26310
26311 /* HP/UX 9 (%@#!) writes to sscanf strings */
26312 tmp_version = g_strdup("$min_gtk_version");
26313 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26314 printf("%s, bad version string\n", "$min_gtk_version");
26315 exit(1);
26316 }
26317
26318 if ((gtk_major_version != $gtk_config_major_version) ||
26319 (gtk_minor_version != $gtk_config_minor_version) ||
26320 (gtk_micro_version != $gtk_config_micro_version))
26321 {
26322 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26323 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26324 gtk_major_version, gtk_minor_version, gtk_micro_version);
26325 printf ("*** was found! If pkg-config was correct, then it is best\n");
26326 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26327 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26328 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26329 printf("*** required on your system.\n");
26330 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26331 printf("*** to point to the correct configuration files\n");
26332 }
26333 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26334 (gtk_minor_version != GTK_MINOR_VERSION) ||
26335 (gtk_micro_version != GTK_MICRO_VERSION))
26336 {
26337 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26338 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26339 printf("*** library (version %d.%d.%d)\n",
26340 gtk_major_version, gtk_minor_version, gtk_micro_version);
26341 }
26342 else
26343 {
26344 if ((gtk_major_version > major) ||
26345 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26346 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26347 {
26348 return 0;
26349 }
26350 else
26351 {
26352 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26353 gtk_major_version, gtk_minor_version, gtk_micro_version);
26354 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26355 major, minor, micro);
26356 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26357 printf("***\n");
26358 printf("*** If you have already installed a sufficiently new version, this error\n");
26359 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26360 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26361 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26362 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26363 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26364 printf("*** so that the correct libraries are found at run-time))\n");
26365 }
26366 }
26367 return 1;
26368}
26369
26370_ACEOF
26371rm -f conftest$ac_exeext
26372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26373 (eval $ac_link) 2>&5
26374 ac_status=$?
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; }; then
26382 :
26383else
26384 echo "$as_me: program exited with status $ac_status" >&5
26385echo "$as_me: failed program was:" >&5
26386sed 's/^/| /' conftest.$ac_ext >&5
26387
26388( exit $ac_status )
26389no_gtk=yes
26390fi
ac1cb8d3 26391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26392fi
26393 CFLAGS="$ac_save_CFLAGS"
26394 LIBS="$ac_save_LIBS"
26395 fi
26396 fi
26397 if test "x$no_gtk" = x ; then
26398 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26399echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26400 wx_cv_lib_gtk=2.0
26401 else
26402 echo "$as_me:$LINENO: result: no" >&5
26403echo "${ECHO_T}no" >&6
26404 if test "$PKG_CONFIG" = "no" ; then
26405 echo "*** A new enough version of pkg-config was not found."
26406 echo "*** See http://pkgconfig.sourceforge.net"
26407 else
26408 if test -f conf.gtktest ; then
26409 :
26410 else
26411 echo "*** Could not run GTK+ test program, checking why..."
26412 ac_save_CFLAGS="$CFLAGS"
26413 ac_save_LIBS="$LIBS"
26414 CFLAGS="$CFLAGS $GTK_CFLAGS"
26415 LIBS="$LIBS $GTK_LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26417/* confdefs.h. */
26418_ACEOF
26419cat confdefs.h >>conftest.$ac_ext
26420cat >>conftest.$ac_ext <<_ACEOF
26421/* end confdefs.h. */
26422
26423#include <gtk/gtk.h>
26424#include <stdio.h>
26425
26426int
26427main ()
26428{
26429 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26430 ;
26431 return 0;
26432}
26433_ACEOF
26434rm -f conftest.$ac_objext conftest$ac_exeext
26435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26436 (eval $ac_link) 2>conftest.er1
a848cd7e 26437 ac_status=$?
ac1cb8d3
VS
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
26440 cat conftest.err >&5
a848cd7e
SC
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } &&
3565d135
RR
26443 { ac_try='test -z "$ac_c_werror_flag"
26444 || test ! -s conftest.err'
ac1cb8d3
VS
26445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); }; } &&
26450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); }; }; then
26456 echo "*** The test program compiled, but did not run. This usually means"
26457 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26458 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26459 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26460 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26461 echo "*** is required on your system"
26462 echo "***"
26463 echo "*** If you have an old version installed, it is best to remove it, although"
26464 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26465else
26466 echo "$as_me: failed program was:" >&5
26467sed 's/^/| /' conftest.$ac_ext >&5
26468
26469 echo "*** The test program failed to compile or link. See the file config.log for the"
26470 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26471fi
ac1cb8d3
VS
26472rm -f conftest.err conftest.$ac_objext \
26473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26474 CFLAGS="$ac_save_CFLAGS"
26475 LIBS="$ac_save_LIBS"
26476 fi
26477 fi
26478 GTK_CFLAGS=""
26479 GTK_LIBS=""
26480 :
26481 fi
26482
26483
26484 rm -f conf.gtktest
26485
5001df0d
MW
26486
26487 case "${host}" in
26488 *-*-solaris2* )
26489 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26490 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26491 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26492 fi
26493 if test "$wxUSE_SHARED" != "yes"; then
26494 GTK_LIBS="$GTK_LIBS -lX11"
26495 fi
26496 esac
f597b41c
MW
26497 fi
26498
f34ca037
MW
26499 if test -z "$wx_cv_lib_gtk"; then
26500 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26501
26502# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26503if test "${with_gtk_prefix+set}" = set; then
26504 withval="$with_gtk_prefix"
26505 gtk_config_prefix="$withval"
26506else
26507 gtk_config_prefix=""
26508fi;
26509
26510# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26511if test "${with_gtk_exec_prefix+set}" = set; then
26512 withval="$with_gtk_exec_prefix"
26513 gtk_config_exec_prefix="$withval"
26514else
26515 gtk_config_exec_prefix=""
26516fi;
26517# Check whether --enable-gtktest or --disable-gtktest was given.
26518if test "${enable_gtktest+set}" = set; then
26519 enableval="$enable_gtktest"
26520
26521else
26522 enable_gtktest=yes
26523fi;
26524
26525 for module in . $GTK_MODULES
26526 do
26527 case "$module" in
26528 gthread)
26529 gtk_config_args="$gtk_config_args gthread"
26530 ;;
26531 esac
26532 done
26533
26534 if test x$gtk_config_exec_prefix != x ; then
26535 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26536 if test x${GTK_CONFIG+set} != xset ; then
26537 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26538 fi
26539 fi
26540 if test x$gtk_config_prefix != x ; then
26541 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26542 if test x${GTK_CONFIG+set} != xset ; then
26543 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26544 fi
26545 fi
26546
26547 # Extract the first word of "gtk-config", so it can be a program name with args.
26548set dummy gtk-config; ac_word=$2
26549echo "$as_me:$LINENO: checking for $ac_word" >&5
26550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26551if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26553else
26554 case $GTK_CONFIG in
26555 [\\/]* | ?:[\\/]*)
26556 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26557 ;;
26558 *)
26559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26560for as_dir in $PATH
26561do
26562 IFS=$as_save_IFS
26563 test -z "$as_dir" && as_dir=.
26564 for ac_exec_ext in '' $ac_executable_extensions; do
26565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26566 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26568 break 2
26569 fi
26570done
26571done
26572
26573 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26574 ;;
26575esac
26576fi
26577GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26578
26579if test -n "$GTK_CONFIG"; then
26580 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26581echo "${ECHO_T}$GTK_CONFIG" >&6
26582else
26583 echo "$as_me:$LINENO: result: no" >&5
26584echo "${ECHO_T}no" >&6
26585fi
26586
26587 min_gtk_version=1.2.7
26588 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26589echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26590 no_gtk=""
26591 if test "$GTK_CONFIG" = "no" ; then
26592 no_gtk=yes
26593 else
26594 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26595 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26596 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26597 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26598 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26599 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26600 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26601 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26602 if test "x$enable_gtktest" = "xyes" ; then
26603 ac_save_CFLAGS="$CFLAGS"
26604 ac_save_LIBS="$LIBS"
26605 CFLAGS="$CFLAGS $GTK_CFLAGS"
26606 LIBS="$GTK_LIBS $LIBS"
26607 rm -f conf.gtktest
26608 if test "$cross_compiling" = yes; then
26609 echo $ac_n "cross compiling; assumed OK... $ac_c"
26610else
26611 cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617
26618#include <gtk/gtk.h>
26619#include <stdio.h>
26620#include <stdlib.h>
26621
26622int
26623main ()
26624{
26625 int major, minor, micro;
26626 char *tmp_version;
26627
26628 system ("touch conf.gtktest");
26629
26630 /* HP/UX 9 (%@#!) writes to sscanf strings */
26631 tmp_version = g_strdup("$min_gtk_version");
26632 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26633 printf("%s, bad version string\n", "$min_gtk_version");
26634 exit(1);
26635 }
26636
26637 if ((gtk_major_version != $gtk_config_major_version) ||
26638 (gtk_minor_version != $gtk_config_minor_version) ||
26639 (gtk_micro_version != $gtk_config_micro_version))
26640 {
26641 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26642 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26643 gtk_major_version, gtk_minor_version, gtk_micro_version);
26644 printf ("*** was found! If gtk-config was correct, then it is best\n");
26645 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26646 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26647 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26648 printf("*** required on your system.\n");
26649 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26650 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26651 printf("*** before re-running configure\n");
26652 }
26653#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26654 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26655 (gtk_minor_version != GTK_MINOR_VERSION) ||
26656 (gtk_micro_version != GTK_MICRO_VERSION))
26657 {
26658 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26659 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26660 printf("*** library (version %d.%d.%d)\n",
26661 gtk_major_version, gtk_minor_version, gtk_micro_version);
26662 }
26663#endif /* defined (GTK_MAJOR_VERSION) ... */
26664 else
26665 {
26666 if ((gtk_major_version > major) ||
26667 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26668 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26669 {
26670 return 0;
26671 }
26672 else
26673 {
26674 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26675 gtk_major_version, gtk_minor_version, gtk_micro_version);
26676 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26677 major, minor, micro);
26678 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26679 printf("***\n");
26680 printf("*** If you have already installed a sufficiently new version, this error\n");
26681 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26682 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26683 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26684 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26685 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26686 printf("*** so that the correct libraries are found at run-time))\n");
26687 }
26688 }
26689 return 1;
26690}
26691
26692_ACEOF
26693rm -f conftest$ac_exeext
26694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26695 (eval $ac_link) 2>&5
26696 ac_status=$?
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26700 (eval $ac_try) 2>&5
26701 ac_status=$?
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); }; }; then
26704 :
26705else
26706 echo "$as_me: program exited with status $ac_status" >&5
26707echo "$as_me: failed program was:" >&5
26708sed 's/^/| /' conftest.$ac_ext >&5
26709
26710( exit $ac_status )
26711no_gtk=yes
26712fi
ac1cb8d3 26713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26714fi
26715 CFLAGS="$ac_save_CFLAGS"
26716 LIBS="$ac_save_LIBS"
26717 fi
26718 fi
26719 if test "x$no_gtk" = x ; then
26720 echo "$as_me:$LINENO: result: yes" >&5
26721echo "${ECHO_T}yes" >&6
26722 wx_cv_lib_gtk=1.2.7
26723 else
26724 echo "$as_me:$LINENO: result: no" >&5
26725echo "${ECHO_T}no" >&6
26726 if test "$GTK_CONFIG" = "no" ; then
26727 echo "*** The gtk-config script installed by GTK could not be found"
26728 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26729 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26730 echo "*** full path to gtk-config."
26731 else
26732 if test -f conf.gtktest ; then
26733 :
26734 else
26735 echo "*** Could not run GTK test program, checking why..."
26736 CFLAGS="$CFLAGS $GTK_CFLAGS"
26737 LIBS="$LIBS $GTK_LIBS"
26738 cat >conftest.$ac_ext <<_ACEOF
26739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
26744
26745#include <gtk/gtk.h>
26746#include <stdio.h>
26747
26748int
26749main ()
26750{
26751 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26752 ;
26753 return 0;
26754}
26755_ACEOF
26756rm -f conftest.$ac_objext conftest$ac_exeext
26757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26758 (eval $ac_link) 2>conftest.er1
a848cd7e 26759 ac_status=$?
ac1cb8d3
VS
26760 grep -v '^ *+' conftest.er1 >conftest.err
26761 rm -f conftest.er1
26762 cat conftest.err >&5
a848cd7e
SC
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); } &&
3565d135
RR
26765 { ac_try='test -z "$ac_c_werror_flag"
26766 || test ! -s conftest.err'
ac1cb8d3
VS
26767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768 (eval $ac_try) 2>&5
26769 ac_status=$?
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; } &&
26772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774 (eval $ac_try) 2>&5
26775 ac_status=$?
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); }; }; then
26778 echo "*** The test program compiled, but did not run. This usually means"
26779 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26780 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26781 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26782 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26783 echo "*** is required on your system"
26784 echo "***"
26785 echo "*** If you have an old version installed, it is best to remove it, although"
26786 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26787 echo "***"
26788 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26789 echo "*** came with the system with the command"
26790 echo "***"
26791 echo "*** rpm --erase --nodeps gtk gtk-devel"
26792else
26793 echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796 echo "*** The test program failed to compile or link. See the file config.log for the"
26797 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26798 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26799 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26800fi
ac1cb8d3
VS
26801rm -f conftest.err conftest.$ac_objext \
26802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26803 CFLAGS="$ac_save_CFLAGS"
26804 LIBS="$ac_save_LIBS"
26805 fi
26806 fi
26807 GTK_CFLAGS=""
26808 GTK_LIBS=""
26809 :
26810 fi
26811
26812
26813 rm -f conf.gtktest
26814
26815
f34ca037 26816 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26817
26818# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26819if test "${with_gtk_prefix+set}" = set; then
26820 withval="$with_gtk_prefix"
26821 gtk_config_prefix="$withval"
26822else
26823 gtk_config_prefix=""
26824fi;
26825
26826# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26827if test "${with_gtk_exec_prefix+set}" = set; then
26828 withval="$with_gtk_exec_prefix"
26829 gtk_config_exec_prefix="$withval"
26830else
26831 gtk_config_exec_prefix=""
26832fi;
26833# Check whether --enable-gtktest or --disable-gtktest was given.
26834if test "${enable_gtktest+set}" = set; then
26835 enableval="$enable_gtktest"
26836
26837else
26838 enable_gtktest=yes
26839fi;
26840
26841 for module in . $GTK_MODULES
26842 do
26843 case "$module" in
26844 gthread)
26845 gtk_config_args="$gtk_config_args gthread"
26846 ;;
26847 esac
26848 done
26849
26850 if test x$gtk_config_exec_prefix != x ; then
26851 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26852 if test x${GTK_CONFIG+set} != xset ; then
26853 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26854 fi
26855 fi
26856 if test x$gtk_config_prefix != x ; then
26857 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26858 if test x${GTK_CONFIG+set} != xset ; then
26859 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26860 fi
26861 fi
26862
26863 # Extract the first word of "gtk-config", so it can be a program name with args.
26864set dummy gtk-config; ac_word=$2
26865echo "$as_me:$LINENO: checking for $ac_word" >&5
26866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26867if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26869else
26870 case $GTK_CONFIG in
26871 [\\/]* | ?:[\\/]*)
26872 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26873 ;;
26874 *)
26875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26876for as_dir in $PATH
26877do
26878 IFS=$as_save_IFS
26879 test -z "$as_dir" && as_dir=.
26880 for ac_exec_ext in '' $ac_executable_extensions; do
26881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26882 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26884 break 2
26885 fi
26886done
26887done
26888
26889 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26890 ;;
26891esac
26892fi
26893GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26894
26895if test -n "$GTK_CONFIG"; then
26896 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26897echo "${ECHO_T}$GTK_CONFIG" >&6
26898else
26899 echo "$as_me:$LINENO: result: no" >&5
26900echo "${ECHO_T}no" >&6
26901fi
26902
26903 min_gtk_version=1.2.3
26904 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26905echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26906 no_gtk=""
26907 if test "$GTK_CONFIG" = "no" ; then
26908 no_gtk=yes
26909 else
26910 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26911 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26912 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26914 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26916 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26918 if test "x$enable_gtktest" = "xyes" ; then
26919 ac_save_CFLAGS="$CFLAGS"
26920 ac_save_LIBS="$LIBS"
26921 CFLAGS="$CFLAGS $GTK_CFLAGS"
26922 LIBS="$GTK_LIBS $LIBS"
26923 rm -f conf.gtktest
26924 if test "$cross_compiling" = yes; then
26925 echo $ac_n "cross compiling; assumed OK... $ac_c"
26926else
26927 cat >conftest.$ac_ext <<_ACEOF
26928/* confdefs.h. */
26929_ACEOF
26930cat confdefs.h >>conftest.$ac_ext
26931cat >>conftest.$ac_ext <<_ACEOF
26932/* end confdefs.h. */
26933
26934#include <gtk/gtk.h>
26935#include <stdio.h>
26936#include <stdlib.h>
26937
26938int
26939main ()
26940{
26941 int major, minor, micro;
26942 char *tmp_version;
26943
26944 system ("touch conf.gtktest");
26945
26946 /* HP/UX 9 (%@#!) writes to sscanf strings */
26947 tmp_version = g_strdup("$min_gtk_version");
26948 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26949 printf("%s, bad version string\n", "$min_gtk_version");
26950 exit(1);
26951 }
26952
26953 if ((gtk_major_version != $gtk_config_major_version) ||
26954 (gtk_minor_version != $gtk_config_minor_version) ||
26955 (gtk_micro_version != $gtk_config_micro_version))
26956 {
26957 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26958 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26959 gtk_major_version, gtk_minor_version, gtk_micro_version);
26960 printf ("*** was found! If gtk-config was correct, then it is best\n");
26961 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26962 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26963 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26964 printf("*** required on your system.\n");
26965 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26966 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26967 printf("*** before re-running configure\n");
26968 }
26969#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26970 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26971 (gtk_minor_version != GTK_MINOR_VERSION) ||
26972 (gtk_micro_version != GTK_MICRO_VERSION))
26973 {
26974 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26975 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26976 printf("*** library (version %d.%d.%d)\n",
26977 gtk_major_version, gtk_minor_version, gtk_micro_version);
26978 }
26979#endif /* defined (GTK_MAJOR_VERSION) ... */
26980 else
26981 {
26982 if ((gtk_major_version > major) ||
26983 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26984 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26985 {
26986 return 0;
26987 }
26988 else
26989 {
26990 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26991 gtk_major_version, gtk_minor_version, gtk_micro_version);
26992 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26993 major, minor, micro);
26994 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26995 printf("***\n");
26996 printf("*** If you have already installed a sufficiently new version, this error\n");
26997 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26998 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26999 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27000 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27001 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27002 printf("*** so that the correct libraries are found at run-time))\n");
27003 }
27004 }
27005 return 1;
27006}
27007
27008_ACEOF
27009rm -f conftest$ac_exeext
27010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27011 (eval $ac_link) 2>&5
27012 ac_status=$?
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27017 ac_status=$?
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27020 :
27021else
27022 echo "$as_me: program exited with status $ac_status" >&5
27023echo "$as_me: failed program was:" >&5
27024sed 's/^/| /' conftest.$ac_ext >&5
27025
27026( exit $ac_status )
27027no_gtk=yes
27028fi
ac1cb8d3 27029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27030fi
27031 CFLAGS="$ac_save_CFLAGS"
27032 LIBS="$ac_save_LIBS"
27033 fi
27034 fi
27035 if test "x$no_gtk" = x ; then
27036 echo "$as_me:$LINENO: result: yes" >&5
27037echo "${ECHO_T}yes" >&6
27038 wx_cv_lib_gtk=1.2.3
27039 else
27040 echo "$as_me:$LINENO: result: no" >&5
27041echo "${ECHO_T}no" >&6
27042 if test "$GTK_CONFIG" = "no" ; then
27043 echo "*** The gtk-config script installed by GTK could not be found"
27044 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27045 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27046 echo "*** full path to gtk-config."
27047 else
27048 if test -f conf.gtktest ; then
27049 :
27050 else
27051 echo "*** Could not run GTK test program, checking why..."
27052 CFLAGS="$CFLAGS $GTK_CFLAGS"
27053 LIBS="$LIBS $GTK_LIBS"
27054 cat >conftest.$ac_ext <<_ACEOF
27055/* confdefs.h. */
27056_ACEOF
27057cat confdefs.h >>conftest.$ac_ext
27058cat >>conftest.$ac_ext <<_ACEOF
27059/* end confdefs.h. */
27060
27061#include <gtk/gtk.h>
27062#include <stdio.h>
27063
27064int
27065main ()
27066{
27067 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27068 ;
27069 return 0;
27070}
27071_ACEOF
27072rm -f conftest.$ac_objext conftest$ac_exeext
27073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27074 (eval $ac_link) 2>conftest.er1
a848cd7e 27075 ac_status=$?
ac1cb8d3
VS
27076 grep -v '^ *+' conftest.er1 >conftest.err
27077 rm -f conftest.er1
27078 cat conftest.err >&5
a848cd7e
SC
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } &&
3565d135
RR
27081 { ac_try='test -z "$ac_c_werror_flag"
27082 || test ! -s conftest.err'
ac1cb8d3
VS
27083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084 (eval $ac_try) 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; } &&
27088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090 (eval $ac_try) 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; }; then
27094 echo "*** The test program compiled, but did not run. This usually means"
27095 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27096 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27097 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27098 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27099 echo "*** is required on your system"
27100 echo "***"
27101 echo "*** If you have an old version installed, it is best to remove it, although"
27102 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27103 echo "***"
27104 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27105 echo "*** came with the system with the command"
27106 echo "***"
27107 echo "*** rpm --erase --nodeps gtk gtk-devel"
27108else
27109 echo "$as_me: failed program was:" >&5
27110sed 's/^/| /' conftest.$ac_ext >&5
27111
27112 echo "*** The test program failed to compile or link. See the file config.log for the"
27113 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27114 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27115 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27116fi
ac1cb8d3
VS
27117rm -f conftest.err conftest.$ac_objext \
27118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27119 CFLAGS="$ac_save_CFLAGS"
27120 LIBS="$ac_save_LIBS"
27121 fi
27122 fi
27123 GTK_CFLAGS=""
27124 GTK_LIBS=""
27125 :
27126 fi
27127
27128
27129 rm -f conf.gtktest
27130
f34ca037 27131 fi
a848cd7e
SC
27132 fi
27133 fi
27134
27135 if test -z "$wx_cv_lib_gtk"; then
27136 wx_cv_lib_gtk=none
27137 else
27138 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27139 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27140 fi
27141
27142
27143fi
27144
27145
27146 if test "$gtk_version_cached" = 1; then
27147 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27148echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27149 fi
27150
27151 case "$wx_cv_lib_gtk" in
27152 2.0) WXGTK20=1
27153 TOOLKIT_VERSION=2
27154 ;;
27155 1.2.7) WXGTK127=1
27156 WXGTK12=1
27157 ;;
27158 1.2.3) WXGTK12=1
27159 ;;
27160 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27161The development files for GTK+ were not found. For GTK+ 2, please
27162ensure that pkg-config is in the path and that gtk+-2.0.pc is
27163installed. For GTK+ 1.2 please check that gtk-config is in the path,
27164and that the version is 1.2.3 or above. Also check that the
27165libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27166--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27167 " >&5
27168echo "$as_me: error:
f597b41c
MW
27169The development files for GTK+ were not found. For GTK+ 2, please
27170ensure that pkg-config is in the path and that gtk+-2.0.pc is
27171installed. For GTK+ 1.2 please check that gtk-config is in the path,
27172and that the version is 1.2.3 or above. Also check that the
27173libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27174--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27175 " >&2;}
27176 { (exit 1); exit 1; }; }
27177 ;;
27178 esac
27179
27180 if test "$WXGTK20" = 1; then
304205f1
VS
27181 save_CFLAGS="$CFLAGS"
27182 save_LIBS="$LIBS"
c92ad099 27183 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27184 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27185
d12aef51
VZ
27186 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27187echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27188 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
304205f1 27194
d12aef51 27195 #include <gtk/gtk.h>
304205f1 27196
d12aef51
VZ
27197int
27198main ()
27199{
304205f1 27200
d12aef51 27201 void *f = gtk_icon_size_lookup;
abc736fd
MW
27202
27203 ;
27204 return 0;
27205}
27206_ACEOF
27207rm -f conftest.$ac_objext
27208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27209 (eval $ac_compile) 2>conftest.er1
27210 ac_status=$?
27211 grep -v '^ *+' conftest.er1 >conftest.err
27212 rm -f conftest.er1
27213 cat conftest.err >&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } &&
3565d135
RR
27216 { ac_try='test -z "$ac_c_werror_flag"
27217 || test ! -s conftest.err'
abc736fd
MW
27218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219 (eval $ac_try) 2>&5
27220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest.$ac_objext'
27224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225 (eval $ac_try) 2>&5
27226 ac_status=$?
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); }; }; then
27229
27230 echo "$as_me:$LINENO: result: no" >&5
27231echo "${ECHO_T}no" >&6
27232
27233else
27234 echo "$as_me: failed program was:" >&5
27235sed 's/^/| /' conftest.$ac_ext >&5
27236
27237
27238 cat >>confdefs.h <<\_ACEOF
27239#define NEED_GTK_ICON_SIZE_LOOKUP 1
27240_ACEOF
27241
27242 echo "$as_me:$LINENO: result: yes" >&5
27243echo "${ECHO_T}yes" >&6
27244
27245fi
27246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27247
9755e73b
VS
27248 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27249echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27250 cat >conftest.$ac_ext <<_ACEOF
27251/* confdefs.h. */
27252_ACEOF
27253cat confdefs.h >>conftest.$ac_ext
27254cat >>conftest.$ac_ext <<_ACEOF
27255/* end confdefs.h. */
27256
27257 #include <gtk/gtk.h>
27258
27259int
27260main ()
27261{
27262
27263 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27264 Not GTK+ 2.4
9755e73b
VS
27265 #endif
27266
27267 ;
27268 return 0;
27269}
27270_ACEOF
27271rm -f conftest.$ac_objext
27272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273 (eval $ac_compile) 2>conftest.er1
27274 ac_status=$?
27275 grep -v '^ *+' conftest.er1 >conftest.err
27276 rm -f conftest.er1
27277 cat conftest.err >&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } &&
3565d135
RR
27280 { ac_try='test -z "$ac_c_werror_flag"
27281 || test ! -s conftest.err'
9755e73b
VS
27282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283 (eval $ac_try) 2>&5
27284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest.$ac_objext'
27288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289 (eval $ac_try) 2>&5
27290 ac_status=$?
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; }; then
27293
27294 cat >>confdefs.h <<\_ACEOF
27295#define __WXGTK24__ 1
27296_ACEOF
27297
27298 echo "$as_me:$LINENO: result: yes" >&5
27299echo "${ECHO_T}yes" >&6
27300
27301else
27302 echo "$as_me: failed program was:" >&5
27303sed 's/^/| /' conftest.$ac_ext >&5
27304
27305
27306 echo "$as_me:$LINENO: result: no" >&5
27307echo "${ECHO_T}no" >&6
27308
27309fi
27310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27311
304205f1
VS
27312 CFLAGS="$save_CFLAGS"
27313 LIBS="$save_LIBS"
a848cd7e
SC
27314 else
27315 if test "$wxUSE_UNICODE" = "yes"; then
27316 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27317echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27318 wxUSE_UNICODE=no
27319 fi
27320 fi
27321
27322 if test "$USE_DARWIN" != 1; then
27323
27324for ac_func in poll
27325do
27326as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27327echo "$as_me:$LINENO: checking for $ac_func" >&5
27328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27329if eval "test \"\${$as_ac_var+set}\" = set"; then
27330 echo $ECHO_N "(cached) $ECHO_C" >&6
27331else
27332 cat >conftest.$ac_ext <<_ACEOF
27333/* confdefs.h. */
27334_ACEOF
27335cat confdefs.h >>conftest.$ac_ext
27336cat >>conftest.$ac_ext <<_ACEOF
27337/* end confdefs.h. */
ac1cb8d3
VS
27338/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27340#define $ac_func innocuous_$ac_func
27341
a848cd7e
SC
27342/* System header to define __stub macros and hopefully few prototypes,
27343 which can conflict with char $ac_func (); below.
27344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27345 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27346
a848cd7e
SC
27347#ifdef __STDC__
27348# include <limits.h>
27349#else
27350# include <assert.h>
27351#endif
ac1cb8d3
VS
27352
27353#undef $ac_func
27354
a848cd7e
SC
27355/* Override any gcc2 internal prototype to avoid an error. */
27356#ifdef __cplusplus
27357extern "C"
27358{
27359#endif
27360/* We use char because int might match the return type of a gcc2
27361 builtin and then its argument prototype would still apply. */
27362char $ac_func ();
27363/* The GNU C library defines this for functions which it implements
27364 to always fail with ENOSYS. Some functions are actually named
27365 something starting with __ and the normal name is an alias. */
27366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27367choke me
27368#else
27369char (*f) () = $ac_func;
27370#endif
27371#ifdef __cplusplus
27372}
27373#endif
27374
27375int
27376main ()
27377{
27378return f != $ac_func;
27379 ;
27380 return 0;
27381}
27382_ACEOF
27383rm -f conftest.$ac_objext conftest$ac_exeext
27384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27385 (eval $ac_link) 2>conftest.er1
a848cd7e 27386 ac_status=$?
ac1cb8d3
VS
27387 grep -v '^ *+' conftest.er1 >conftest.err
27388 rm -f conftest.er1
27389 cat conftest.err >&5
a848cd7e
SC
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); } &&
3565d135
RR
27392 { ac_try='test -z "$ac_c_werror_flag"
27393 || test ! -s conftest.err'
ac1cb8d3
VS
27394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395 (eval $ac_try) 2>&5
27396 ac_status=$?
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; } &&
27399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; }; then
27405 eval "$as_ac_var=yes"
27406else
27407 echo "$as_me: failed program was:" >&5
27408sed 's/^/| /' conftest.$ac_ext >&5
27409
27410eval "$as_ac_var=no"
27411fi
ac1cb8d3
VS
27412rm -f conftest.err conftest.$ac_objext \
27413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27414fi
27415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27417if test `eval echo '${'$as_ac_var'}'` = yes; then
27418 cat >>confdefs.h <<_ACEOF
27419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27420_ACEOF
27421
27422fi
27423done
27424
27425 fi
27426
27427 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27428 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27429
27430 AFMINSTALL=afminstall
27431 TOOLKIT=GTK
27432 GUIDIST=GTK_DIST
27433
27434 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27435echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27436if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27437 echo $ECHO_N "(cached) $ECHO_C" >&6
27438else
27439 ac_check_lib_save_LIBS=$LIBS
27440LIBS="-lgdk $LIBS"
27441cat >conftest.$ac_ext <<_ACEOF
27442/* confdefs.h. */
27443_ACEOF
27444cat confdefs.h >>conftest.$ac_ext
27445cat >>conftest.$ac_ext <<_ACEOF
27446/* end confdefs.h. */
27447
27448/* Override any gcc2 internal prototype to avoid an error. */
27449#ifdef __cplusplus
27450extern "C"
27451#endif
27452/* We use char because int might match the return type of a gcc2
27453 builtin and then its argument prototype would still apply. */
27454char gdk_im_open ();
27455int
27456main ()
27457{
27458gdk_im_open ();
27459 ;
27460 return 0;
27461}
27462_ACEOF
27463rm -f conftest.$ac_objext conftest$ac_exeext
27464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27465 (eval $ac_link) 2>conftest.er1
a848cd7e 27466 ac_status=$?
ac1cb8d3
VS
27467 grep -v '^ *+' conftest.er1 >conftest.err
27468 rm -f conftest.er1
27469 cat conftest.err >&5
a848cd7e
SC
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } &&
3565d135
RR
27472 { ac_try='test -z "$ac_c_werror_flag"
27473 || test ! -s conftest.err'
ac1cb8d3
VS
27474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; } &&
27479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27485 ac_cv_lib_gdk_gdk_im_open=yes
27486else
27487 echo "$as_me: failed program was:" >&5
27488sed 's/^/| /' conftest.$ac_ext >&5
27489
27490ac_cv_lib_gdk_gdk_im_open=no
27491fi
ac1cb8d3
VS
27492rm -f conftest.err conftest.$ac_objext \
27493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27494LIBS=$ac_check_lib_save_LIBS
27495fi
27496echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27497echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27498if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27499 cat >>confdefs.h <<\_ACEOF
27500#define HAVE_XIM 1
27501_ACEOF
27502
27503fi
27504
27505
27506
27507 if test "$wxUSE_GPE" = "yes"; then
27508 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27509echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27510
0ad5d837
VZ
27511 ac_find_libraries=
27512 for ac_dir in $SEARCH_LIB;
a848cd7e 27513 do
3eca31dc 27514 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27515 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27516 ac_find_libraries=$ac_dir
27517 break 2
27518 fi
27519 done
27520 done
27521
27522 if test "$ac_find_libraries" != "" ; then
27523
0ad5d837 27524 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27525 ac_path_to_link=""
27526 else
0ad5d837
VZ
27527 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27528 result=$?
27529 if test $result = 0; then
27530 ac_path_to_link=""
27531 else
27532 ac_path_to_link=" -L$ac_find_libraries"
27533 fi
a848cd7e
SC
27534 fi
27535
27536 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27537 WXGPE=1
0ad5d837
VZ
27538 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27539echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27540 else
27541 echo "$as_me:$LINENO: result: not found" >&5
27542echo "${ECHO_T}not found" >&6
27543 fi
27544
27545 fi
27546 fi
27547
27548 if test "$wxUSE_MGL" = 1; then
27549 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27550echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27551 if test "x$MGL_ROOT" = x ; then
27552 echo "$as_me:$LINENO: result: not found" >&5
27553echo "${ECHO_T}not found" >&6
27554 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27555echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27556 { (exit 1); exit 1; }; }
27557 else
27558 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27559echo "${ECHO_T}$MGL_ROOT" >&6
27560 fi
27561
27562 echo "$as_me:$LINENO: checking for libmgl location" >&5
27563echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27564 case "${host}" in
27565 *-*-linux* )
27566 if test "x$wxUSE_SHARED" = xyes ; then
27567 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27568 else
27569 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27570 fi
27571 ;;
27572 *-pc-msdosdjgpp )
27573 mgl_os_candidates="dos32/dj2"
27574 ;;
27575 *)
27576 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27577echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27578 { (exit 1); exit 1; }; }
27579 esac
27580
27581 mgl_lib_type=""
27582 mgl_os=""
27583
27584 for mgl_os_i in $mgl_os_candidates ; do
27585 if test "x$mgl_os" = x ; then
27586 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27587 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27588 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27589 mgl_lib_type=debug
27590 mgl_os=$mgl_os_i
27591 fi
27592 fi
27593 if test "x$mgl_lib_type" = x ; then
27594 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27595 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27596 mgl_lib_type=release
27597 mgl_os=$mgl_os_i
27598 fi
27599 fi
27600 fi
27601 done
27602
27603 if test "x$mgl_os" = x ; then
27604 echo "$as_me:$LINENO: result: not found" >&5
27605echo "${ECHO_T}not found" >&6
27606 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27607echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27608 { (exit 1); exit 1; }; }
27609 fi
27610 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27611echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27612
27613 wxUSE_UNIVERSAL="yes"
27614
27615 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27616 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27617
27618 AFMINSTALL=afminstall
27619 TOOLKIT=MGL
27620 GUIDIST=MGL_DIST
27621 fi
27622
27623 if test "$wxUSE_MICROWIN" = 1; then
27624 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27625echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27626 if test "x$MICROWINDOWS" = x ; then
27627 echo "$as_me:$LINENO: result: not found" >&5
27628echo "${ECHO_T}not found" >&6
27629 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27630echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27631 { (exit 1); exit 1; }; }
27632 else
27633 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27634echo "${ECHO_T}$MICROWINDOWS" >&6
27635 fi
27636
27637 if test -f $MICROWINDOWS/lib/libmwin.a; then
27638 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27639echo "${ECHO_T}MicroWindows' libraries found." >&6
27640 else
27641 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27642echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27643 { (exit 1); exit 1; }; }
27644 fi
27645
27646 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27647 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27648
27649 wxUSE_UNIVERSAL="yes"
27650
27651 AFMINSTALL=afminstall
27652 TOOLKIT=MICROWIN
27653 GUIDIST=MICROWIN_DIST
27654
27655 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27656 fi
27657
74b84332 27658 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3565d135 27659 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27660echo $ECHO_N "checking for X... $ECHO_C" >&6
27661
27662
27663# Check whether --with-x or --without-x was given.
27664if test "${with_x+set}" = set; then
27665 withval="$with_x"
27666
27667fi;
27668# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27669if test "x$with_x" = xno; then
27670 # The user explicitly disabled X.
27671 have_x=disabled
27672else
27673 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27674 # Both variables are already set.
27675 have_x=yes
27676 else
27677 if test "${ac_cv_have_x+set}" = set; then
27678 echo $ECHO_N "(cached) $ECHO_C" >&6
27679else
27680 # One or both of the vars are not set, and there is no cached value.
27681ac_x_includes=no ac_x_libraries=no
27682rm -fr conftest.dir
27683if mkdir conftest.dir; then
27684 cd conftest.dir
27685 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27686 cat >Imakefile <<'_ACEOF'
27687acfindx:
27688 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27689_ACEOF
27690 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27691 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27692 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27693 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27694 for ac_extension in a so sl; do
27695 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27696 test -f $ac_im_libdir/libX11.$ac_extension; then
27697 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27698 fi
27699 done
27700 # Screen out bogus values from the imake configuration. They are
27701 # bogus both because they are the default anyway, and because
27702 # using them would break gcc on systems where it needs fixed includes.
27703 case $ac_im_incroot in
27704 /usr/include) ;;
27705 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27706 esac
27707 case $ac_im_usrlibdir in
27708 /usr/lib | /lib) ;;
27709 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27710 esac
27711 fi
27712 cd ..
27713 rm -fr conftest.dir
27714fi
27715
27716# Standard set of common directories for X headers.
27717# Check X11 before X11Rn because it is often a symlink to the current release.
27718ac_x_header_dirs='
27719/usr/X11/include
27720/usr/X11R6/include
27721/usr/X11R5/include
27722/usr/X11R4/include
27723
27724/usr/include/X11
27725/usr/include/X11R6
27726/usr/include/X11R5
27727/usr/include/X11R4
27728
27729/usr/local/X11/include
27730/usr/local/X11R6/include
27731/usr/local/X11R5/include
27732/usr/local/X11R4/include
27733
27734/usr/local/include/X11
27735/usr/local/include/X11R6
27736/usr/local/include/X11R5
27737/usr/local/include/X11R4
27738
27739/usr/X386/include
27740/usr/x386/include
27741/usr/XFree86/include/X11
27742
27743/usr/include
27744/usr/local/include
27745/usr/unsupported/include
27746/usr/athena/include
27747/usr/local/x11r5/include
27748/usr/lpp/Xamples/include
27749
27750/usr/openwin/include
27751/usr/openwin/share/include'
27752
27753if test "$ac_x_includes" = no; then
3565d135 27754 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27755 # First, try using that file with no special directory specified.
27756 cat >conftest.$ac_ext <<_ACEOF
27757/* confdefs.h. */
27758_ACEOF
27759cat confdefs.h >>conftest.$ac_ext
27760cat >>conftest.$ac_ext <<_ACEOF
27761/* end confdefs.h. */
3565d135 27762#include <X11/Intrinsic.h>
a848cd7e
SC
27763_ACEOF
27764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27766 ac_status=$?
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } >/dev/null; then
27772 if test -s conftest.err; then
27773 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27775 else
27776 ac_cpp_err=
27777 fi
27778else
27779 ac_cpp_err=yes
27780fi
27781if test -z "$ac_cpp_err"; then
27782 # We can compile using X headers with no special include directory.
27783ac_x_includes=
27784else
27785 echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
27788 for ac_dir in $ac_x_header_dirs; do
3565d135 27789 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
27790 ac_x_includes=$ac_dir
27791 break
27792 fi
27793done
27794fi
27795rm -f conftest.err conftest.$ac_ext
27796fi # $ac_x_includes = no
27797
27798if test "$ac_x_libraries" = no; then
27799 # Check for the libraries.
27800 # See if we find them without any special options.
27801 # Don't add to $LIBS permanently.
27802 ac_save_LIBS=$LIBS
3565d135 27803 LIBS="-lXt $LIBS"
a848cd7e
SC
27804 cat >conftest.$ac_ext <<_ACEOF
27805/* confdefs.h. */
27806_ACEOF
27807cat confdefs.h >>conftest.$ac_ext
27808cat >>conftest.$ac_ext <<_ACEOF
27809/* end confdefs.h. */
3565d135 27810#include <X11/Intrinsic.h>
a848cd7e
SC
27811int
27812main ()
27813{
3565d135 27814XtMalloc (0)
a848cd7e
SC
27815 ;
27816 return 0;
27817}
27818_ACEOF
27819rm -f conftest.$ac_objext conftest$ac_exeext
27820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27821 (eval $ac_link) 2>conftest.er1
a848cd7e 27822 ac_status=$?
ac1cb8d3
VS
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
a848cd7e
SC
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } &&
3565d135
RR
27828 { ac_try='test -z "$ac_c_werror_flag"
27829 || test ! -s conftest.err'
ac1cb8d3
VS
27830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831 (eval $ac_try) 2>&5
27832 ac_status=$?
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); }; } &&
27835 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 LIBS=$ac_save_LIBS
27842# We can link X programs with no special library path.
27843ac_x_libraries=
27844else
27845 echo "$as_me: failed program was:" >&5
27846sed 's/^/| /' conftest.$ac_ext >&5
27847
27848LIBS=$ac_save_LIBS
27849for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27850do
27851 # Don't even attempt the hair of trying to link an X program!
27852 for ac_extension in a so sl; do
3565d135 27853 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
27854 ac_x_libraries=$ac_dir
27855 break 2
27856 fi
27857 done
27858done
27859fi
ac1cb8d3
VS
27860rm -f conftest.err conftest.$ac_objext \
27861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27862fi # $ac_x_libraries = no
27863
27864if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27865 # Didn't find X anywhere. Cache the known absence of X.
27866 ac_cv_have_x="have_x=no"
27867else
27868 # Record where we found X for the cache.
27869 ac_cv_have_x="have_x=yes \
ac1cb8d3 27870 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27871fi
27872fi
27873
27874 fi
27875 eval "$ac_cv_have_x"
27876fi # $with_x != no
27877
27878if test "$have_x" != yes; then
27879 echo "$as_me:$LINENO: result: $have_x" >&5
27880echo "${ECHO_T}$have_x" >&6
27881 no_x=yes
27882else
27883 # If each of the values was on the command line, it overrides each guess.
27884 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27885 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27886 # Update the cache value to reflect the command line values.
27887 ac_cv_have_x="have_x=yes \
27888 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3565d135
RR
27889 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27890echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27891fi
27892
27893if test "$no_x" = yes; then
27894 # Not all programs may use this symbol, but it does not hurt to define it.
27895
27896cat >>confdefs.h <<\_ACEOF
27897#define X_DISPLAY_MISSING 1
27898_ACEOF
27899
27900 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27901else
27902 if test -n "$x_includes"; then
27903 X_CFLAGS="$X_CFLAGS -I$x_includes"
27904 fi
27905
27906 # It would also be nice to do this for all -L options, not just this one.
27907 if test -n "$x_libraries"; then
27908 X_LIBS="$X_LIBS -L$x_libraries"
27909 # For Solaris; some versions of Sun CC require a space after -R and
27910 # others require no space. Words are not sufficient . . . .
27911 case `(uname -sr) 2>/dev/null` in
27912 "SunOS 5"*)
27913 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27914echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27915 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27916 cat >conftest.$ac_ext <<_ACEOF
27917/* confdefs.h. */
27918_ACEOF
27919cat confdefs.h >>conftest.$ac_ext
27920cat >>conftest.$ac_ext <<_ACEOF
27921/* end confdefs.h. */
27922
27923int
27924main ()
27925{
27926
27927 ;
27928 return 0;
27929}
27930_ACEOF
27931rm -f conftest.$ac_objext conftest$ac_exeext
27932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27933 (eval $ac_link) 2>conftest.er1
a848cd7e 27934 ac_status=$?
ac1cb8d3
VS
27935 grep -v '^ *+' conftest.er1 >conftest.err
27936 rm -f conftest.er1
27937 cat conftest.err >&5
a848cd7e
SC
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } &&
3565d135
RR
27940 { ac_try='test -z "$ac_c_werror_flag"
27941 || test ! -s conftest.err'
ac1cb8d3
VS
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; } &&
27947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; }; then
27953 ac_R_nospace=yes
27954else
27955 echo "$as_me: failed program was:" >&5
27956sed 's/^/| /' conftest.$ac_ext >&5
27957
27958ac_R_nospace=no
27959fi
ac1cb8d3
VS
27960rm -f conftest.err conftest.$ac_objext \
27961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27962 if test $ac_R_nospace = yes; then
27963 echo "$as_me:$LINENO: result: no" >&5
27964echo "${ECHO_T}no" >&6
27965 X_LIBS="$X_LIBS -R$x_libraries"
27966 else
27967 LIBS="$ac_xsave_LIBS -R $x_libraries"
27968 cat >conftest.$ac_ext <<_ACEOF
27969/* confdefs.h. */
27970_ACEOF
27971cat confdefs.h >>conftest.$ac_ext
27972cat >>conftest.$ac_ext <<_ACEOF
27973/* end confdefs.h. */
27974
27975int
27976main ()
27977{
27978
27979 ;
27980 return 0;
27981}
27982_ACEOF
27983rm -f conftest.$ac_objext conftest$ac_exeext
27984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27985 (eval $ac_link) 2>conftest.er1
a848cd7e 27986 ac_status=$?
ac1cb8d3
VS
27987 grep -v '^ *+' conftest.er1 >conftest.err
27988 rm -f conftest.er1
27989 cat conftest.err >&5
a848cd7e
SC
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
3565d135
RR
27992 { ac_try='test -z "$ac_c_werror_flag"
27993 || test ! -s conftest.err'
ac1cb8d3
VS
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28002 ac_status=$?
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ac_R_space=yes
28006else
28007 echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
28010ac_R_space=no
28011fi
ac1cb8d3
VS
28012rm -f conftest.err conftest.$ac_objext \
28013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28014 if test $ac_R_space = yes; then
28015 echo "$as_me:$LINENO: result: yes" >&5
28016echo "${ECHO_T}yes" >&6
28017 X_LIBS="$X_LIBS -R $x_libraries"
28018 else
28019 echo "$as_me:$LINENO: result: neither works" >&5
28020echo "${ECHO_T}neither works" >&6
28021 fi
28022 fi
28023 LIBS=$ac_xsave_LIBS
28024 esac
28025 fi
28026
28027 # Check for system-dependent libraries X programs must link with.
28028 # Do this before checking for the system-independent R6 libraries
28029 # (-lICE), since we may need -lsocket or whatever for X linking.
28030
28031 if test "$ISC" = yes; then
28032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28033 else
28034 # Martyn Johnson says this is needed for Ultrix, if the X
28035 # libraries were built with DECnet support. And Karl Berry says
28036 # the Alpha needs dnet_stub (dnet does not exist).
28037 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28038 cat >conftest.$ac_ext <<_ACEOF
28039/* confdefs.h. */
28040_ACEOF
28041cat confdefs.h >>conftest.$ac_ext
28042cat >>conftest.$ac_ext <<_ACEOF
28043/* end confdefs.h. */
28044
28045/* Override any gcc2 internal prototype to avoid an error. */
28046#ifdef __cplusplus
28047extern "C"
28048#endif
28049/* We use char because int might match the return type of a gcc2
28050 builtin and then its argument prototype would still apply. */
28051char XOpenDisplay ();
28052int
28053main ()
28054{
28055XOpenDisplay ();
28056 ;
28057 return 0;
28058}
28059_ACEOF
28060rm -f conftest.$ac_objext conftest$ac_exeext
28061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28062 (eval $ac_link) 2>conftest.er1
a848cd7e 28063 ac_status=$?
ac1cb8d3
VS
28064 grep -v '^ *+' conftest.er1 >conftest.err
28065 rm -f conftest.er1
28066 cat conftest.err >&5
a848cd7e
SC
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
3565d135
RR
28069 { ac_try='test -z "$ac_c_werror_flag"
28070 || test ! -s conftest.err'
ac1cb8d3
VS
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078 (eval $ac_try) 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; }; then
28082 :
28083else
28084 echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28088echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28089if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092 ac_check_lib_save_LIBS=$LIBS
28093LIBS="-ldnet $LIBS"
28094cat >conftest.$ac_ext <<_ACEOF
28095/* confdefs.h. */
28096_ACEOF
28097cat confdefs.h >>conftest.$ac_ext
28098cat >>conftest.$ac_ext <<_ACEOF
28099/* end confdefs.h. */
28100
28101/* Override any gcc2 internal prototype to avoid an error. */
28102#ifdef __cplusplus
28103extern "C"
28104#endif
28105/* We use char because int might match the return type of a gcc2
28106 builtin and then its argument prototype would still apply. */
28107char dnet_ntoa ();
28108int
28109main ()
28110{
28111dnet_ntoa ();
28112 ;
28113 return 0;
28114}
28115_ACEOF
28116rm -f conftest.$ac_objext conftest$ac_exeext
28117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28118 (eval $ac_link) 2>conftest.er1
a848cd7e 28119 ac_status=$?
ac1cb8d3
VS
28120 grep -v '^ *+' conftest.er1 >conftest.err
28121 rm -f conftest.er1
28122 cat conftest.err >&5
a848cd7e
SC
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } &&
3565d135
RR
28125 { ac_try='test -z "$ac_c_werror_flag"
28126 || test ! -s conftest.err'
ac1cb8d3
VS
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28129 ac_status=$?
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; } &&
28132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134 (eval $ac_try) 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; }; then
28138 ac_cv_lib_dnet_dnet_ntoa=yes
28139else
28140 echo "$as_me: failed program was:" >&5
28141sed 's/^/| /' conftest.$ac_ext >&5
28142
28143ac_cv_lib_dnet_dnet_ntoa=no
28144fi
ac1cb8d3
VS
28145rm -f conftest.err conftest.$ac_objext \
28146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28147LIBS=$ac_check_lib_save_LIBS
28148fi
28149echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28150echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28151if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28152 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28153fi
28154
28155 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28156 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28157echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28158if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28159 echo $ECHO_N "(cached) $ECHO_C" >&6
28160else
28161 ac_check_lib_save_LIBS=$LIBS
28162LIBS="-ldnet_stub $LIBS"
28163cat >conftest.$ac_ext <<_ACEOF
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169
28170/* Override any gcc2 internal prototype to avoid an error. */
28171#ifdef __cplusplus
28172extern "C"
28173#endif
28174/* We use char because int might match the return type of a gcc2
28175 builtin and then its argument prototype would still apply. */
28176char dnet_ntoa ();
28177int
28178main ()
28179{
28180dnet_ntoa ();
28181 ;
28182 return 0;
28183}
28184_ACEOF
28185rm -f conftest.$ac_objext conftest$ac_exeext
28186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28187 (eval $ac_link) 2>conftest.er1
a848cd7e 28188 ac_status=$?
ac1cb8d3
VS
28189 grep -v '^ *+' conftest.er1 >conftest.err
28190 rm -f conftest.er1
28191 cat conftest.err >&5
a848cd7e
SC
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } &&
3565d135
RR
28194 { ac_try='test -z "$ac_c_werror_flag"
28195 || test ! -s conftest.err'
ac1cb8d3
VS
28196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197 (eval $ac_try) 2>&5
28198 ac_status=$?
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; } &&
28201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28207 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28208else
28209 echo "$as_me: failed program was:" >&5
28210sed 's/^/| /' conftest.$ac_ext >&5
28211
28212ac_cv_lib_dnet_stub_dnet_ntoa=no
28213fi
ac1cb8d3
VS
28214rm -f conftest.err conftest.$ac_objext \
28215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28216LIBS=$ac_check_lib_save_LIBS
28217fi
28218echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28219echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28220if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28222fi
28223
28224 fi
28225fi
ac1cb8d3
VS
28226rm -f conftest.err conftest.$ac_objext \
28227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28228 LIBS="$ac_xsave_LIBS"
28229
28230 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28231 # to get the SysV transport functions.
28232 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28233 # needs -lnsl.
28234 # The nsl library prevents programs from opening the X display
28235 # on Irix 5.2, according to T.E. Dickey.
28236 # The functions gethostbyname, getservbyname, and inet_addr are
28237 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28238 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28239echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28240if test "${ac_cv_func_gethostbyname+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243 cat >conftest.$ac_ext <<_ACEOF
28244/* confdefs.h. */
28245_ACEOF
28246cat confdefs.h >>conftest.$ac_ext
28247cat >>conftest.$ac_ext <<_ACEOF
28248/* end confdefs.h. */
ac1cb8d3
VS
28249/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28251#define gethostbyname innocuous_gethostbyname
28252
a848cd7e
SC
28253/* System header to define __stub macros and hopefully few prototypes,
28254 which can conflict with char gethostbyname (); below.
28255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28257
a848cd7e
SC
28258#ifdef __STDC__
28259# include <limits.h>
28260#else
28261# include <assert.h>
28262#endif
ac1cb8d3
VS
28263
28264#undef gethostbyname
28265
a848cd7e
SC
28266/* Override any gcc2 internal prototype to avoid an error. */
28267#ifdef __cplusplus
28268extern "C"
28269{
28270#endif
28271/* We use char because int might match the return type of a gcc2
28272 builtin and then its argument prototype would still apply. */
28273char gethostbyname ();
28274/* The GNU C library defines this for functions which it implements
28275 to always fail with ENOSYS. Some functions are actually named
28276 something starting with __ and the normal name is an alias. */
28277#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28278choke me
28279#else
28280char (*f) () = gethostbyname;
28281#endif
28282#ifdef __cplusplus
28283}
28284#endif
28285
28286int
28287main ()
28288{
28289return f != gethostbyname;
28290 ;
28291 return 0;
28292}
28293_ACEOF
28294rm -f conftest.$ac_objext conftest$ac_exeext
28295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28296 (eval $ac_link) 2>conftest.er1
a848cd7e 28297 ac_status=$?
ac1cb8d3
VS
28298 grep -v '^ *+' conftest.er1 >conftest.err
28299 rm -f conftest.er1
28300 cat conftest.err >&5
a848cd7e
SC
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
3565d135
RR
28303 { ac_try='test -z "$ac_c_werror_flag"
28304 || test ! -s conftest.err'
ac1cb8d3
VS
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; } &&
28310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28316 ac_cv_func_gethostbyname=yes
28317else
28318 echo "$as_me: failed program was:" >&5
28319sed 's/^/| /' conftest.$ac_ext >&5
28320
28321ac_cv_func_gethostbyname=no
28322fi
ac1cb8d3
VS
28323rm -f conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28325fi
28326echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28327echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28328
28329 if test $ac_cv_func_gethostbyname = no; then
28330 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28331echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28332if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28333 echo $ECHO_N "(cached) $ECHO_C" >&6
28334else
28335 ac_check_lib_save_LIBS=$LIBS
28336LIBS="-lnsl $LIBS"
28337cat >conftest.$ac_ext <<_ACEOF
28338/* confdefs.h. */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h. */
28343
28344/* Override any gcc2 internal prototype to avoid an error. */
28345#ifdef __cplusplus
28346extern "C"
28347#endif
28348/* We use char because int might match the return type of a gcc2
28349 builtin and then its argument prototype would still apply. */
28350char gethostbyname ();
28351int
28352main ()
28353{
28354gethostbyname ();
28355 ;
28356 return 0;
28357}
28358_ACEOF
28359rm -f conftest.$ac_objext conftest$ac_exeext
28360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28361 (eval $ac_link) 2>conftest.er1
28362 ac_status=$?
28363 grep -v '^ *+' conftest.er1 >conftest.err
28364 rm -f conftest.er1
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } &&
3565d135
RR
28368 { ac_try='test -z "$ac_c_werror_flag"
28369 || test ! -s conftest.err'
ac1cb8d3
VS
28370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; } &&
28375 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28381 ac_cv_lib_nsl_gethostbyname=yes
28382else
28383 echo "$as_me: failed program was:" >&5
28384sed 's/^/| /' conftest.$ac_ext >&5
28385
28386ac_cv_lib_nsl_gethostbyname=no
28387fi
28388rm -f conftest.err conftest.$ac_objext \
28389 conftest$ac_exeext conftest.$ac_ext
28390LIBS=$ac_check_lib_save_LIBS
28391fi
28392echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28393echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28394if test $ac_cv_lib_nsl_gethostbyname = yes; then
28395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28396fi
28397
28398 if test $ac_cv_lib_nsl_gethostbyname = no; then
28399 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28400echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28401if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28402 echo $ECHO_N "(cached) $ECHO_C" >&6
28403else
28404 ac_check_lib_save_LIBS=$LIBS
28405LIBS="-lbsd $LIBS"
28406cat >conftest.$ac_ext <<_ACEOF
28407/* confdefs.h. */
28408_ACEOF
28409cat confdefs.h >>conftest.$ac_ext
28410cat >>conftest.$ac_ext <<_ACEOF
28411/* end confdefs.h. */
28412
28413/* Override any gcc2 internal prototype to avoid an error. */
28414#ifdef __cplusplus
28415extern "C"
28416#endif
28417/* We use char because int might match the return type of a gcc2
28418 builtin and then its argument prototype would still apply. */
28419char gethostbyname ();
28420int
28421main ()
28422{
28423gethostbyname ();
28424 ;
28425 return 0;
28426}
28427_ACEOF
28428rm -f conftest.$ac_objext conftest$ac_exeext
28429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28430 (eval $ac_link) 2>conftest.er1
a848cd7e 28431 ac_status=$?
ac1cb8d3
VS
28432 grep -v '^ *+' conftest.er1 >conftest.err
28433 rm -f conftest.er1
28434 cat conftest.err >&5
a848cd7e
SC
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
3565d135
RR
28437 { ac_try='test -z "$ac_c_werror_flag"
28438 || test ! -s conftest.err'
a848cd7e
SC
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28441 ac_status=$?
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28443 (exit $ac_status); }; } &&
28444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446 (eval $ac_try) 2>&5
28447 ac_status=$?
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; }; then
28450 ac_cv_lib_bsd_gethostbyname=yes
28451else
28452 echo "$as_me: failed program was:" >&5
28453sed 's/^/| /' conftest.$ac_ext >&5
28454
28455ac_cv_lib_bsd_gethostbyname=no
28456fi
ac1cb8d3
VS
28457rm -f conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28459LIBS=$ac_check_lib_save_LIBS
28460fi
28461echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28462echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28463if test $ac_cv_lib_bsd_gethostbyname = yes; then
28464 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28465fi
28466
28467 fi
28468 fi
28469
28470 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28471 # socket/setsockopt and other routines are undefined under SCO ODT
28472 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28473 # on later versions), says Simon Leinen: it contains gethostby*
28474 # variants that don't use the name server (or something). -lsocket
28475 # must be given before -lnsl if both are needed. We assume that
28476 # if connect needs -lnsl, so does gethostbyname.
28477 echo "$as_me:$LINENO: checking for connect" >&5
28478echo $ECHO_N "checking for connect... $ECHO_C" >&6
28479if test "${ac_cv_func_connect+set}" = set; then
28480 echo $ECHO_N "(cached) $ECHO_C" >&6
28481else
28482 cat >conftest.$ac_ext <<_ACEOF
28483/* confdefs.h. */
28484_ACEOF
28485cat confdefs.h >>conftest.$ac_ext
28486cat >>conftest.$ac_ext <<_ACEOF
28487/* end confdefs.h. */
ac1cb8d3
VS
28488/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28490#define connect innocuous_connect
28491
a848cd7e
SC
28492/* System header to define __stub macros and hopefully few prototypes,
28493 which can conflict with char connect (); below.
28494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28496
a848cd7e
SC
28497#ifdef __STDC__
28498# include <limits.h>
28499#else
28500# include <assert.h>
28501#endif
ac1cb8d3
VS
28502
28503#undef connect
28504
a848cd7e
SC
28505/* Override any gcc2 internal prototype to avoid an error. */
28506#ifdef __cplusplus
28507extern "C"
28508{
28509#endif
28510/* We use char because int might match the return type of a gcc2
28511 builtin and then its argument prototype would still apply. */
28512char connect ();
28513/* The GNU C library defines this for functions which it implements
28514 to always fail with ENOSYS. Some functions are actually named
28515 something starting with __ and the normal name is an alias. */
28516#if defined (__stub_connect) || defined (__stub___connect)
28517choke me
28518#else
28519char (*f) () = connect;
28520#endif
28521#ifdef __cplusplus
28522}
28523#endif
28524
28525int
28526main ()
28527{
28528return f != connect;
28529 ;
28530 return 0;
28531}
28532_ACEOF
28533rm -f conftest.$ac_objext conftest$ac_exeext
28534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28535 (eval $ac_link) 2>conftest.er1
a848cd7e 28536 ac_status=$?
ac1cb8d3
VS
28537 grep -v '^ *+' conftest.er1 >conftest.err
28538 rm -f conftest.er1
28539 cat conftest.err >&5
a848cd7e
SC
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } &&
3565d135
RR
28542 { ac_try='test -z "$ac_c_werror_flag"
28543 || test ! -s conftest.err'
ac1cb8d3
VS
28544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545 (eval $ac_try) 2>&5
28546 ac_status=$?
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); }; } &&
28549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; }; then
28555 ac_cv_func_connect=yes
28556else
28557 echo "$as_me: failed program was:" >&5
28558sed 's/^/| /' conftest.$ac_ext >&5
28559
28560ac_cv_func_connect=no
28561fi
ac1cb8d3
VS
28562rm -f conftest.err conftest.$ac_objext \
28563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28564fi
28565echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28566echo "${ECHO_T}$ac_cv_func_connect" >&6
28567
28568 if test $ac_cv_func_connect = no; then
28569 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28570echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28571if test "${ac_cv_lib_socket_connect+set}" = set; then
28572 echo $ECHO_N "(cached) $ECHO_C" >&6
28573else
28574 ac_check_lib_save_LIBS=$LIBS
28575LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28576cat >conftest.$ac_ext <<_ACEOF
28577/* confdefs.h. */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h. */
28582
28583/* Override any gcc2 internal prototype to avoid an error. */
28584#ifdef __cplusplus
28585extern "C"
28586#endif
28587/* We use char because int might match the return type of a gcc2
28588 builtin and then its argument prototype would still apply. */
28589char connect ();
28590int
28591main ()
28592{
28593connect ();
28594 ;
28595 return 0;
28596}
28597_ACEOF
28598rm -f conftest.$ac_objext conftest$ac_exeext
28599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28600 (eval $ac_link) 2>conftest.er1
a848cd7e 28601 ac_status=$?
ac1cb8d3
VS
28602 grep -v '^ *+' conftest.er1 >conftest.err
28603 rm -f conftest.er1
28604 cat conftest.err >&5
a848cd7e
SC
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); } &&
3565d135
RR
28607 { ac_try='test -z "$ac_c_werror_flag"
28608 || test ! -s conftest.err'
ac1cb8d3
VS
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_lib_socket_connect=yes
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625ac_cv_lib_socket_connect=no
28626fi
ac1cb8d3
VS
28627rm -f conftest.err conftest.$ac_objext \
28628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28629LIBS=$ac_check_lib_save_LIBS
28630fi
28631echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28632echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28633if test $ac_cv_lib_socket_connect = yes; then
28634 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28635fi
28636
28637 fi
28638
28639 # Guillermo Gomez says -lposix is necessary on A/UX.
28640 echo "$as_me:$LINENO: checking for remove" >&5
28641echo $ECHO_N "checking for remove... $ECHO_C" >&6
28642if test "${ac_cv_func_remove+set}" = set; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28644else
28645 cat >conftest.$ac_ext <<_ACEOF
28646/* confdefs.h. */
28647_ACEOF
28648cat confdefs.h >>conftest.$ac_ext
28649cat >>conftest.$ac_ext <<_ACEOF
28650/* end confdefs.h. */
ac1cb8d3
VS
28651/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28653#define remove innocuous_remove
28654
a848cd7e
SC
28655/* System header to define __stub macros and hopefully few prototypes,
28656 which can conflict with char remove (); below.
28657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28658 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28659
a848cd7e
SC
28660#ifdef __STDC__
28661# include <limits.h>
28662#else
28663# include <assert.h>
28664#endif
ac1cb8d3
VS
28665
28666#undef remove
28667
a848cd7e
SC
28668/* Override any gcc2 internal prototype to avoid an error. */
28669#ifdef __cplusplus
28670extern "C"
28671{
28672#endif
28673/* We use char because int might match the return type of a gcc2
28674 builtin and then its argument prototype would still apply. */
28675char remove ();
28676/* The GNU C library defines this for functions which it implements
28677 to always fail with ENOSYS. Some functions are actually named
28678 something starting with __ and the normal name is an alias. */
28679#if defined (__stub_remove) || defined (__stub___remove)
28680choke me
28681#else
28682char (*f) () = remove;
28683#endif
28684#ifdef __cplusplus
28685}
28686#endif
28687
28688int
28689main ()
28690{
28691return f != remove;
28692 ;
28693 return 0;
28694}
28695_ACEOF
28696rm -f conftest.$ac_objext conftest$ac_exeext
28697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28698 (eval $ac_link) 2>conftest.er1
a848cd7e 28699 ac_status=$?
ac1cb8d3
VS
28700 grep -v '^ *+' conftest.er1 >conftest.err
28701 rm -f conftest.er1
28702 cat conftest.err >&5
a848cd7e
SC
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } &&
3565d135
RR
28705 { ac_try='test -z "$ac_c_werror_flag"
28706 || test ! -s conftest.err'
ac1cb8d3
VS
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; } &&
28712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 ac_cv_func_remove=yes
28719else
28720 echo "$as_me: failed program was:" >&5
28721sed 's/^/| /' conftest.$ac_ext >&5
28722
28723ac_cv_func_remove=no
28724fi
ac1cb8d3
VS
28725rm -f conftest.err conftest.$ac_objext \
28726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28727fi
28728echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28729echo "${ECHO_T}$ac_cv_func_remove" >&6
28730
28731 if test $ac_cv_func_remove = no; then
28732 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28733echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28734if test "${ac_cv_lib_posix_remove+set}" = set; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28736else
28737 ac_check_lib_save_LIBS=$LIBS
28738LIBS="-lposix $LIBS"
28739cat >conftest.$ac_ext <<_ACEOF
28740/* confdefs.h. */
28741_ACEOF
28742cat confdefs.h >>conftest.$ac_ext
28743cat >>conftest.$ac_ext <<_ACEOF
28744/* end confdefs.h. */
28745
28746/* Override any gcc2 internal prototype to avoid an error. */
28747#ifdef __cplusplus
28748extern "C"
28749#endif
28750/* We use char because int might match the return type of a gcc2
28751 builtin and then its argument prototype would still apply. */
28752char remove ();
28753int
28754main ()
28755{
28756remove ();
28757 ;
28758 return 0;
28759}
28760_ACEOF
28761rm -f conftest.$ac_objext conftest$ac_exeext
28762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28763 (eval $ac_link) 2>conftest.er1
a848cd7e 28764 ac_status=$?
ac1cb8d3
VS
28765 grep -v '^ *+' conftest.er1 >conftest.err
28766 rm -f conftest.er1
28767 cat conftest.err >&5
a848cd7e
SC
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } &&
3565d135
RR
28770 { ac_try='test -z "$ac_c_werror_flag"
28771 || test ! -s conftest.err'
ac1cb8d3
VS
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; } &&
28777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_cv_lib_posix_remove=yes
28784else
28785 echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
28788ac_cv_lib_posix_remove=no
28789fi
ac1cb8d3
VS
28790rm -f conftest.err conftest.$ac_objext \
28791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28792LIBS=$ac_check_lib_save_LIBS
28793fi
28794echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28795echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28796if test $ac_cv_lib_posix_remove = yes; then
28797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28798fi
28799
28800 fi
28801
28802 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28803 echo "$as_me:$LINENO: checking for shmat" >&5
28804echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28805if test "${ac_cv_func_shmat+set}" = set; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28807else
28808 cat >conftest.$ac_ext <<_ACEOF
28809/* confdefs.h. */
28810_ACEOF
28811cat confdefs.h >>conftest.$ac_ext
28812cat >>conftest.$ac_ext <<_ACEOF
28813/* end confdefs.h. */
ac1cb8d3
VS
28814/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28816#define shmat innocuous_shmat
28817
a848cd7e
SC
28818/* System header to define __stub macros and hopefully few prototypes,
28819 which can conflict with char shmat (); below.
28820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28821 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28822
a848cd7e
SC
28823#ifdef __STDC__
28824# include <limits.h>
28825#else
28826# include <assert.h>
28827#endif
ac1cb8d3
VS
28828
28829#undef shmat
28830
a848cd7e
SC
28831/* Override any gcc2 internal prototype to avoid an error. */
28832#ifdef __cplusplus
28833extern "C"
28834{
28835#endif
28836/* We use char because int might match the return type of a gcc2
28837 builtin and then its argument prototype would still apply. */
28838char shmat ();
28839/* The GNU C library defines this for functions which it implements
28840 to always fail with ENOSYS. Some functions are actually named
28841 something starting with __ and the normal name is an alias. */
28842#if defined (__stub_shmat) || defined (__stub___shmat)
28843choke me
28844#else
28845char (*f) () = shmat;
28846#endif
28847#ifdef __cplusplus
28848}
28849#endif
28850
28851int
28852main ()
28853{
28854return f != shmat;
28855 ;
28856 return 0;
28857}
28858_ACEOF
28859rm -f conftest.$ac_objext conftest$ac_exeext
28860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28861 (eval $ac_link) 2>conftest.er1
a848cd7e 28862 ac_status=$?
ac1cb8d3
VS
28863 grep -v '^ *+' conftest.er1 >conftest.err
28864 rm -f conftest.er1
28865 cat conftest.err >&5
a848cd7e
SC
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
3565d135
RR
28868 { ac_try='test -z "$ac_c_werror_flag"
28869 || test ! -s conftest.err'
ac1cb8d3
VS
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; } &&
28875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28877 (eval $ac_try) 2>&5
28878 ac_status=$?
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); }; }; then
28881 ac_cv_func_shmat=yes
28882else
28883 echo "$as_me: failed program was:" >&5
28884sed 's/^/| /' conftest.$ac_ext >&5
28885
28886ac_cv_func_shmat=no
28887fi
ac1cb8d3
VS
28888rm -f conftest.err conftest.$ac_objext \
28889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28890fi
28891echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28892echo "${ECHO_T}$ac_cv_func_shmat" >&6
28893
28894 if test $ac_cv_func_shmat = no; then
28895 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28896echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28897if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28898 echo $ECHO_N "(cached) $ECHO_C" >&6
28899else
28900 ac_check_lib_save_LIBS=$LIBS
28901LIBS="-lipc $LIBS"
28902cat >conftest.$ac_ext <<_ACEOF
28903/* confdefs.h. */
28904_ACEOF
28905cat confdefs.h >>conftest.$ac_ext
28906cat >>conftest.$ac_ext <<_ACEOF
28907/* end confdefs.h. */
28908
28909/* Override any gcc2 internal prototype to avoid an error. */
28910#ifdef __cplusplus
28911extern "C"
28912#endif
28913/* We use char because int might match the return type of a gcc2
28914 builtin and then its argument prototype would still apply. */
28915char shmat ();
28916int
28917main ()
28918{
28919shmat ();
28920 ;
28921 return 0;
28922}
28923_ACEOF
28924rm -f conftest.$ac_objext conftest$ac_exeext
28925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28926 (eval $ac_link) 2>conftest.er1
a848cd7e 28927 ac_status=$?
ac1cb8d3
VS
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
a848cd7e
SC
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } &&
3565d135
RR
28933 { ac_try='test -z "$ac_c_werror_flag"
28934 || test ! -s conftest.err'
ac1cb8d3
VS
28935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28936 (eval $ac_try) 2>&5
28937 ac_status=$?
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; } &&
28940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; }; then
28946 ac_cv_lib_ipc_shmat=yes
28947else
28948 echo "$as_me: failed program was:" >&5
28949sed 's/^/| /' conftest.$ac_ext >&5
28950
28951ac_cv_lib_ipc_shmat=no
28952fi
ac1cb8d3
VS
28953rm -f conftest.err conftest.$ac_objext \
28954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28955LIBS=$ac_check_lib_save_LIBS
28956fi
28957echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28958echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28959if test $ac_cv_lib_ipc_shmat = yes; then
28960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28961fi
28962
28963 fi
28964 fi
28965
28966 # Check for libraries that X11R6 Xt/Xaw programs need.
28967 ac_save_LDFLAGS=$LDFLAGS
28968 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28969 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28970 # check for ICE first), but we must link in the order -lSM -lICE or
28971 # we get undefined symbols. So assume we have SM if we have ICE.
28972 # These have to be linked with before -lX11, unlike the other
28973 # libraries we check for below, so use a different variable.
28974 # John Interrante, Karl Berry
28975 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28976echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28977if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28979else
28980 ac_check_lib_save_LIBS=$LIBS
28981LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28982cat >conftest.$ac_ext <<_ACEOF
28983/* confdefs.h. */
28984_ACEOF
28985cat confdefs.h >>conftest.$ac_ext
28986cat >>conftest.$ac_ext <<_ACEOF
28987/* end confdefs.h. */
28988
28989/* Override any gcc2 internal prototype to avoid an error. */
28990#ifdef __cplusplus
28991extern "C"
28992#endif
28993/* We use char because int might match the return type of a gcc2
28994 builtin and then its argument prototype would still apply. */
28995char IceConnectionNumber ();
28996int
28997main ()
28998{
28999IceConnectionNumber ();
29000 ;
29001 return 0;
29002}
29003_ACEOF
29004rm -f conftest.$ac_objext conftest$ac_exeext
29005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29006 (eval $ac_link) 2>conftest.er1
a848cd7e 29007 ac_status=$?
ac1cb8d3
VS
29008 grep -v '^ *+' conftest.er1 >conftest.err
29009 rm -f conftest.er1
29010 cat conftest.err >&5
a848cd7e
SC
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
3565d135
RR
29013 { ac_try='test -z "$ac_c_werror_flag"
29014 || test ! -s conftest.err'
ac1cb8d3
VS
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_cv_lib_ICE_IceConnectionNumber=yes
29027else
29028 echo "$as_me: failed program was:" >&5
29029sed 's/^/| /' conftest.$ac_ext >&5
29030
29031ac_cv_lib_ICE_IceConnectionNumber=no
29032fi
ac1cb8d3
VS
29033rm -f conftest.err conftest.$ac_objext \
29034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29035LIBS=$ac_check_lib_save_LIBS
29036fi
29037echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29038echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29039if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29040 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29041fi
29042
29043 LDFLAGS=$ac_save_LDFLAGS
29044
29045fi
29046
29047
29048 if test "$no_x" = "yes"; then
89d90d6d
VZ
29049 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29050echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29051 { (exit 1); exit 1; }; }
a848cd7e
SC
29052 fi
29053
74b84332
VS
29054 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29055 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29056 AFMINSTALL=afminstall
29057 COMPILED_X_PROGRAM=0
29058
74b84332
VS
29059 fi
29060
29061 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29062 if test "$wxUSE_NANOX" = "yes"; then
29063 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29064echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29065 if test "x$MICROWIN" = x ; then
29066 echo "$as_me:$LINENO: result: not found" >&5
29067echo "${ECHO_T}not found" >&6
29068 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29069echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29070 { (exit 1); exit 1; }; }
29071 else
29072 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29073echo "${ECHO_T}$MICROWIN" >&6
29074 cat >>confdefs.h <<\_ACEOF
29075#define wxUSE_NANOX 1
29076_ACEOF
29077
29078 fi
29079 fi
29080
29081 if test "$wxUSE_UNICODE" = "yes"; then
29082
29083 succeeded=no
29084
29085 if test -z "$PKG_CONFIG"; then
29086 # Extract the first word of "pkg-config", so it can be a program name with args.
29087set dummy pkg-config; ac_word=$2
29088echo "$as_me:$LINENO: checking for $ac_word" >&5
29089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29090if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29092else
29093 case $PKG_CONFIG in
29094 [\\/]* | ?:[\\/]*)
29095 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29096 ;;
29097 *)
29098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29099for as_dir in $PATH
29100do
29101 IFS=$as_save_IFS
29102 test -z "$as_dir" && as_dir=.
29103 for ac_exec_ext in '' $ac_executable_extensions; do
29104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29105 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29107 break 2
29108 fi
29109done
29110done
29111
29112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29113 ;;
29114esac
29115fi
29116PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29117
29118if test -n "$PKG_CONFIG"; then
29119 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29120echo "${ECHO_T}$PKG_CONFIG" >&6
29121else
29122 echo "$as_me:$LINENO: result: no" >&5
29123echo "${ECHO_T}no" >&6
29124fi
29125
29126 fi
29127
29128 if test "$PKG_CONFIG" = "no" ; then
29129 echo "*** The pkg-config script could not be found. Make sure it is"
29130 echo "*** in your path, or set the PKG_CONFIG environment variable"
29131 echo "*** to the full path to pkg-config."
29132 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29133 else
29134 PKG_CONFIG_MIN_VERSION=0.9.0
29135 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29136 echo "$as_me:$LINENO: checking for pangox" >&5
29137echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29138
29139 if $PKG_CONFIG --exists "pangox" ; then
29140 echo "$as_me:$LINENO: result: yes" >&5
29141echo "${ECHO_T}yes" >&6
29142 succeeded=yes
29143
29144 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29145echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29146 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29147 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29148echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29149
29150 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29151echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29152 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29153 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29154echo "${ECHO_T}$PANGOX_LIBS" >&6
29155 else
29156 PANGOX_CFLAGS=""
29157 PANGOX_LIBS=""
29158 ## If we have a custom action on failure, don't print errors, but
29159 ## do set a variable so people can do so.
29160 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29161
29162 fi
29163
29164
29165
29166 else
29167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29169 fi
29170 fi
29171
29172 if test $succeeded = yes; then
29173
c92ad099 29174 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29175 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29176
29177 else
29178
29179 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29180echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29181 { (exit 1); exit 1; }; }
29182
29183
29184 fi
29185
29186
29187 succeeded=no
29188
29189 if test -z "$PKG_CONFIG"; then
29190 # Extract the first word of "pkg-config", so it can be a program name with args.
29191set dummy pkg-config; ac_word=$2
29192echo "$as_me:$LINENO: checking for $ac_word" >&5
29193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29194if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29195 echo $ECHO_N "(cached) $ECHO_C" >&6
29196else
29197 case $PKG_CONFIG in
29198 [\\/]* | ?:[\\/]*)
29199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29200 ;;
29201 *)
29202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29203for as_dir in $PATH
29204do
29205 IFS=$as_save_IFS
29206 test -z "$as_dir" && as_dir=.
29207 for ac_exec_ext in '' $ac_executable_extensions; do
29208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29211 break 2
29212 fi
29213done
29214done
29215
29216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29217 ;;
29218esac
29219fi
29220PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29221
29222if test -n "$PKG_CONFIG"; then
29223 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29224echo "${ECHO_T}$PKG_CONFIG" >&6
29225else
29226 echo "$as_me:$LINENO: result: no" >&5
29227echo "${ECHO_T}no" >&6
29228fi
29229
29230 fi
29231
29232 if test "$PKG_CONFIG" = "no" ; then
29233 echo "*** The pkg-config script could not be found. Make sure it is"
29234 echo "*** in your path, or set the PKG_CONFIG environment variable"
29235 echo "*** to the full path to pkg-config."
29236 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29237 else
29238 PKG_CONFIG_MIN_VERSION=0.9.0
29239 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29240 echo "$as_me:$LINENO: checking for pangoft2" >&5
29241echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29242
29243 if $PKG_CONFIG --exists "pangoft2" ; then
29244 echo "$as_me:$LINENO: result: yes" >&5
29245echo "${ECHO_T}yes" >&6
29246 succeeded=yes
29247
29248 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29249echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29250 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29251 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29252echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29253
29254 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29255echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29256 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29257 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29258echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29259 else
29260 PANGOFT2_CFLAGS=""
29261 PANGOFT2_LIBS=""
29262 ## If we have a custom action on failure, don't print errors, but
29263 ## do set a variable so people can do so.
29264 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29265
29266 fi
29267
29268
29269
29270 else
29271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29273 fi
29274 fi
29275
29276 if test $succeeded = yes; then
29277
c92ad099 29278 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29279 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29280
29281 else
29282
29283 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29284echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29285 wxUSE_PRINTING_ARCHITECTURE="no"
29286
29287
29288 fi
29289
29290
29291 succeeded=no
29292
29293 if test -z "$PKG_CONFIG"; then
29294 # Extract the first word of "pkg-config", so it can be a program name with args.
29295set dummy pkg-config; ac_word=$2
29296echo "$as_me:$LINENO: checking for $ac_word" >&5
29297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29298if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29299 echo $ECHO_N "(cached) $ECHO_C" >&6
29300else
29301 case $PKG_CONFIG in
29302 [\\/]* | ?:[\\/]*)
29303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29304 ;;
29305 *)
29306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29307for as_dir in $PATH
29308do
29309 IFS=$as_save_IFS
29310 test -z "$as_dir" && as_dir=.
29311 for ac_exec_ext in '' $ac_executable_extensions; do
29312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29315 break 2
29316 fi
29317done
29318done
29319
29320 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29321 ;;
29322esac
29323fi
29324PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29325
29326if test -n "$PKG_CONFIG"; then
29327 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29328echo "${ECHO_T}$PKG_CONFIG" >&6
29329else
29330 echo "$as_me:$LINENO: result: no" >&5
29331echo "${ECHO_T}no" >&6
29332fi
29333
29334 fi
29335
29336 if test "$PKG_CONFIG" = "no" ; then
29337 echo "*** The pkg-config script could not be found. Make sure it is"
29338 echo "*** in your path, or set the PKG_CONFIG environment variable"
29339 echo "*** to the full path to pkg-config."
29340 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29341 else
29342 PKG_CONFIG_MIN_VERSION=0.9.0
29343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29344 echo "$as_me:$LINENO: checking for pangoxft" >&5
29345echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29346
29347 if $PKG_CONFIG --exists "pangoxft" ; then
29348 echo "$as_me:$LINENO: result: yes" >&5
29349echo "${ECHO_T}yes" >&6
29350 succeeded=yes
29351
29352 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29353echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29354 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29355 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29356echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29357
29358 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29359echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29360 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29361 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29362echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29363 else
29364 PANGOXFT_CFLAGS=""
29365 PANGOXFT_LIBS=""
29366 ## If we have a custom action on failure, don't print errors, but
29367 ## do set a variable so people can do so.
29368 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29369
29370 fi
29371
29372
29373
29374 else
29375 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29376 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29377 fi
29378 fi
29379
29380 if test $succeeded = yes; then
29381
4ae1af05
MB
29382 cat >>confdefs.h <<\_ACEOF
29383#define HAVE_PANGO_XFT 1
29384_ACEOF
29385
c92ad099 29386 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29387 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29388
29389 else
29390
29391 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29392echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29393
29394
29395 fi
29396
304205f1
VS
29397 save_CFLAGS="$CFLAGS"
29398 save_LIBS="$LIBS"
c92ad099 29399 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29400 LIBS="$LIBS $PANGOX_LIBS"
29401
29402for ac_func in pango_font_family_is_monospace
29403do
29404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29405echo "$as_me:$LINENO: checking for $ac_func" >&5
29406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29407if eval "test \"\${$as_ac_var+set}\" = set"; then
29408 echo $ECHO_N "(cached) $ECHO_C" >&6
29409else
29410 cat >conftest.$ac_ext <<_ACEOF
29411/* confdefs.h. */
29412_ACEOF
29413cat confdefs.h >>conftest.$ac_ext
29414cat >>conftest.$ac_ext <<_ACEOF
29415/* end confdefs.h. */
29416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29418#define $ac_func innocuous_$ac_func
29419
29420/* System header to define __stub macros and hopefully few prototypes,
29421 which can conflict with char $ac_func (); below.
29422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29423 <limits.h> exists even on freestanding compilers. */
29424
29425#ifdef __STDC__
29426# include <limits.h>
29427#else
29428# include <assert.h>
29429#endif
29430
29431#undef $ac_func
29432
29433/* Override any gcc2 internal prototype to avoid an error. */
29434#ifdef __cplusplus
29435extern "C"
29436{
29437#endif
29438/* We use char because int might match the return type of a gcc2
29439 builtin and then its argument prototype would still apply. */
29440char $ac_func ();
29441/* The GNU C library defines this for functions which it implements
29442 to always fail with ENOSYS. Some functions are actually named
29443 something starting with __ and the normal name is an alias. */
29444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29445choke me
29446#else
29447char (*f) () = $ac_func;
29448#endif
29449#ifdef __cplusplus
29450}
29451#endif
29452
29453int
29454main ()
29455{
29456return f != $ac_func;
29457 ;
29458 return 0;
29459}
29460_ACEOF
29461rm -f conftest.$ac_objext conftest$ac_exeext
29462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29463 (eval $ac_link) 2>conftest.er1
29464 ac_status=$?
29465 grep -v '^ *+' conftest.er1 >conftest.err
29466 rm -f conftest.er1
29467 cat conftest.err >&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); } &&
3565d135
RR
29470 { ac_try='test -z "$ac_c_werror_flag"
29471 || test ! -s conftest.err'
304205f1
VS
29472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473 (eval $ac_try) 2>&5
29474 ac_status=$?
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; } &&
29477 { ac_try='test -s conftest$ac_exeext'
29478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479 (eval $ac_try) 2>&5
29480 ac_status=$?
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); }; }; then
29483 eval "$as_ac_var=yes"
29484else
29485 echo "$as_me: failed program was:" >&5
29486sed 's/^/| /' conftest.$ac_ext >&5
29487
29488eval "$as_ac_var=no"
29489fi
29490rm -f conftest.err conftest.$ac_objext \
29491 conftest$ac_exeext conftest.$ac_ext
29492fi
29493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29495if test `eval echo '${'$as_ac_var'}'` = yes; then
29496 cat >>confdefs.h <<_ACEOF
29497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29498_ACEOF
29499
29500fi
29501done
29502
29503 CFLAGS="$save_CFLAGS"
29504 LIBS="$save_LIBS"
a848cd7e
SC
29505 fi
29506
29507 wxUSE_UNIVERSAL="yes"
29508
29509 if test "$wxUSE_NANOX" = "yes"; then
29510 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29511 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"
29512 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29513 else
29514 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29515 fi
29516
a848cd7e
SC
29517 TOOLKIT=X11
29518 GUIDIST=X11_DIST
29519 fi
29520
29521 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29522 if test "$wxUSE_UNICODE" = "yes"; then
29523 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29524echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29525 { (exit 1); exit 1; }; }
29526 fi
29527
74b84332
VS
29528 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29529echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29530
74b84332
VS
29531ac_find_includes=
29532for ac_dir in $SEARCH_INCLUDE /usr/include;
29533 do
29534 if test -f "$ac_dir/Xm/Xm.h"; then
29535 ac_find_includes=$ac_dir
29536 break
29537 fi
29538 done
a848cd7e 29539
74b84332
VS
29540 if test "$ac_find_includes" != "" ; then
29541 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29542echo "${ECHO_T}found in $ac_find_includes" >&6
29543
29544 if test "x$ac_find_includes" = "x/usr/include"; then
29545 ac_path_to_include=""
29546 else
29547 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29548 result=$?
29549 if test $result = 0; then
29550 ac_path_to_include=""
29551 else
29552 ac_path_to_include=" -I$ac_find_includes"
29553 fi
a848cd7e
SC
29554 fi
29555
74b84332
VS
29556 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29557 else
e051b34e 29558 save_CFLAGS=$CFLAGS
c92ad099 29559 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29560
74b84332 29561 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29562/* confdefs.h. */
29563_ACEOF
29564cat confdefs.h >>conftest.$ac_ext
29565cat >>conftest.$ac_ext <<_ACEOF
29566/* end confdefs.h. */
29567
74b84332
VS
29568 #include <Xm/Xm.h>
29569
a848cd7e
SC
29570int
29571main ()
29572{
29573
74b84332
VS
29574 int version;
29575 version = xmUseVersion;
29576
a848cd7e
SC
29577 ;
29578 return 0;
29579}
29580_ACEOF
74b84332
VS
29581rm -f conftest.$ac_objext
29582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29583 (eval $ac_compile) 2>conftest.er1
a848cd7e 29584 ac_status=$?
ac1cb8d3
VS
29585 grep -v '^ *+' conftest.er1 >conftest.err
29586 rm -f conftest.er1
29587 cat conftest.err >&5
a848cd7e
SC
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); } &&
3565d135
RR
29590 { ac_try='test -z "$ac_c_werror_flag"
29591 || test ! -s conftest.err'
ac1cb8d3
VS
29592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593 (eval $ac_try) 2>&5
29594 ac_status=$?
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; } &&
74b84332 29597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; }; then
74b84332
VS
29603
29604 echo "$as_me:$LINENO: result: found in default search path" >&5
29605echo "${ECHO_T}found in default search path" >&6
29606 COMPILED_X_PROGRAM=1
29607
a848cd7e
SC
29608else
29609 echo "$as_me: failed program was:" >&5
29610sed 's/^/| /' conftest.$ac_ext >&5
29611
a848cd7e 29612
74b84332
VS
29613 echo "$as_me:$LINENO: result: no" >&5
29614echo "${ECHO_T}no" >&6
e051b34e
MW
29615 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29616echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29617 { (exit 1); exit 1; }; }
a848cd7e 29618
a848cd7e 29619
a848cd7e 29620fi
74b84332 29621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29622
29623 CFLAGS=$save_CFLAGS
74b84332
VS
29624 fi
29625
0ad5d837
VZ
29626
29627 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29628echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29629
0ad5d837
VZ
29630 ac_find_libraries=
29631 for ac_dir in $SEARCH_LIB;
74b84332 29632 do
3eca31dc 29633 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29634 if test -f "$ac_dir/libXm.$ac_extension"; then
29635 ac_find_libraries=$ac_dir
29636 break 2
a848cd7e 29637 fi
74b84332
VS
29638 done
29639 done
a848cd7e 29640
0ad5d837
VZ
29641
29642 if test "x$ac_find_libraries" != "x" ; then
29643 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29644echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29645
74b84332 29646
0ad5d837 29647 if test "$ac_find_libraries" = "default location"; then
74b84332 29648 ac_path_to_link=""
a848cd7e 29649 else
0ad5d837
VZ
29650 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29651 result=$?
29652 if test $result = 0; then
29653 ac_path_to_link=""
29654 else
29655 ac_path_to_link=" -L$ac_find_libraries"
29656 fi
74b84332
VS
29657 fi
29658
0ad5d837
VZ
29659 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29660 else
29661 save_CFLAGS=$CFLAGS
c92ad099 29662 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29663 save_LIBS="$LIBS"
29664 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29665
0ad5d837 29666 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29667/* confdefs.h. */
29668_ACEOF
29669cat confdefs.h >>conftest.$ac_ext
29670cat >>conftest.$ac_ext <<_ACEOF
29671/* end confdefs.h. */
29672
0ad5d837 29673 #include <Xm/Xm.h>
74b84332 29674
a848cd7e
SC
29675int
29676main ()
29677{
74b84332 29678
0ad5d837
VZ
29679 int version;
29680 version = xmUseVersion;
74b84332 29681
a848cd7e
SC
29682 ;
29683 return 0;
29684}
29685_ACEOF
0ad5d837
VZ
29686rm -f conftest.$ac_objext conftest$ac_exeext
29687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29688 (eval $ac_link) 2>conftest.er1
a848cd7e 29689 ac_status=$?
ac1cb8d3
VS
29690 grep -v '^ *+' conftest.er1 >conftest.err
29691 rm -f conftest.er1
29692 cat conftest.err >&5
a848cd7e
SC
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } &&
3565d135
RR
29695 { ac_try='test -z "$ac_c_werror_flag"
29696 || test ! -s conftest.err'
ac1cb8d3
VS
29697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698 (eval $ac_try) 2>&5
29699 ac_status=$?
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); }; } &&
0ad5d837 29702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; }; then
74b84332 29708
0ad5d837 29709 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29710echo "${ECHO_T}found in default search path" >&6
0ad5d837 29711 COMPILED_X_PROGRAM=1
74b84332 29712
a848cd7e
SC
29713else
29714 echo "$as_me: failed program was:" >&5
29715sed 's/^/| /' conftest.$ac_ext >&5
29716
74b84332 29717
6f9cf1e6 29718 echo "$as_me:$LINENO: result: no" >&5
74b84332 29719echo "${ECHO_T}no" >&6
6f9cf1e6 29720 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29721echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29722 { (exit 1); exit 1; }; }
29723
29724
29725fi
0ad5d837
VZ
29726rm -f conftest.err conftest.$ac_objext \
29727 conftest$ac_exeext conftest.$ac_ext
74b84332 29728
0ad5d837 29729 CFLAGS=$save_CFLAGS
6f9cf1e6 29730 LIBS="$save_LIBS"
74b84332
VS
29731 fi
29732
29733 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29734echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29735 libp_link=""
29736 libsm_ice_link=""
29737 libs_found=0
29738 for libp in "" " -lXp"; do
29739 if test "$libs_found" = "0"; then
29740 for libsm_ice in "" " -lSM -lICE"; do
29741 if test "$libs_found" = "0"; then
29742 save_LIBS="$LIBS"
29743 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29744 save_CFLAGS=$CFLAGS
c92ad099 29745 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29746
29747 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29748/* confdefs.h. */
29749_ACEOF
29750cat confdefs.h >>conftest.$ac_ext
29751cat >>conftest.$ac_ext <<_ACEOF
29752/* end confdefs.h. */
29753
74b84332
VS
29754 #include <Xm/Xm.h>
29755 #include <Xm/List.h>
29756
a848cd7e
SC
29757int
29758main ()
29759{
74b84332
VS
29760
29761 XmString string = NULL;
29762 Widget w = NULL;
29763 int position = 0;
29764 XmListAddItem(w, string, position);
29765
a848cd7e
SC
29766 ;
29767 return 0;
29768}
29769_ACEOF
29770rm -f conftest.$ac_objext conftest$ac_exeext
29771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29772 (eval $ac_link) 2>conftest.er1
a848cd7e 29773 ac_status=$?
ac1cb8d3
VS
29774 grep -v '^ *+' conftest.er1 >conftest.err
29775 rm -f conftest.er1
29776 cat conftest.err >&5
a848cd7e
SC
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
3565d135
RR
29779 { ac_try='test -z "$ac_c_werror_flag"
29780 || test ! -s conftest.err'
ac1cb8d3
VS
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; } &&
29786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29789 ac_status=$?
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; }; then
29792
29793 libp_link="$libp"
29794 libsm_ice_link="$libsm_ice"
29795 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29796echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29797 libs_found=1
29798
29799else
29800 echo "$as_me: failed program was:" >&5
29801sed 's/^/| /' conftest.$ac_ext >&5
29802
29803
29804
29805fi
ac1cb8d3
VS
29806rm -f conftest.err conftest.$ac_objext \
29807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29808
29809 LIBS="$save_LIBS"
29810 CFLAGS=$save_CFLAGS
29811 fi
29812 done
29813 fi
29814 done
29815
29816 if test "$libs_found" = "0"; then
29817 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29818echo "${ECHO_T}can't find the right libraries" >&6
29819 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29820echo "$as_me: error: can't link a simple motif program" >&2;}
29821 { (exit 1); exit 1; }; }
29822 fi
29823
62fa8b3a
MW
29824 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29825echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29826if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29827 echo $ECHO_N "(cached) $ECHO_C" >&6
29828else
29829 ac_check_lib_save_LIBS=$LIBS
29830LIBS="-lSgm $LIBS"
29831cat >conftest.$ac_ext <<_ACEOF
29832/* confdefs.h. */
29833_ACEOF
29834cat confdefs.h >>conftest.$ac_ext
29835cat >>conftest.$ac_ext <<_ACEOF
29836/* end confdefs.h. */
29837
29838/* Override any gcc2 internal prototype to avoid an error. */
29839#ifdef __cplusplus
29840extern "C"
29841#endif
29842/* We use char because int might match the return type of a gcc2
29843 builtin and then its argument prototype would still apply. */
29844char SgCreateList ();
29845int
29846main ()
29847{
29848SgCreateList ();
29849 ;
29850 return 0;
29851}
29852_ACEOF
29853rm -f conftest.$ac_objext conftest$ac_exeext
29854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29855 (eval $ac_link) 2>conftest.er1
29856 ac_status=$?
29857 grep -v '^ *+' conftest.er1 >conftest.err
29858 rm -f conftest.er1
29859 cat conftest.err >&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } &&
3565d135
RR
29862 { ac_try='test -z "$ac_c_werror_flag"
29863 || test ! -s conftest.err'
62fa8b3a
MW
29864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29866 ac_status=$?
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest$ac_exeext'
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29872 ac_status=$?
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; }; then
29875 ac_cv_lib_Sgm_SgCreateList=yes
29876else
29877 echo "$as_me: failed program was:" >&5
29878sed 's/^/| /' conftest.$ac_ext >&5
29879
29880ac_cv_lib_Sgm_SgCreateList=no
29881fi
29882rm -f conftest.err conftest.$ac_objext \
29883 conftest$ac_exeext conftest.$ac_ext
29884LIBS=$ac_check_lib_save_LIBS
29885fi
29886echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29887echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29888if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29889 libsgm_link=" -lSgm"
29890fi
29891
29892
a848cd7e 29893 save_CFLAGS=$CFLAGS
c92ad099 29894 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29895
a848cd7e
SC
29896 echo "$as_me:$LINENO: checking for Motif 2" >&5
29897echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29898if test "${wx_cv_lib_motif2+set}" = set; then
29899 echo $ECHO_N "(cached) $ECHO_C" >&6
29900else
29901 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29902/* confdefs.h. */
29903_ACEOF
29904cat confdefs.h >>conftest.$ac_ext
29905cat >>conftest.$ac_ext <<_ACEOF
29906/* end confdefs.h. */
29907
0ad5d837 29908 #include <Xm/Xm.h>
a848cd7e
SC
29909
29910int
29911main ()
29912{
29913
0ad5d837
VZ
29914 #if XmVersion < 2000
29915 Not Motif 2
29916 #endif
a848cd7e
SC
29917
29918 ;
29919 return 0;
29920}
29921_ACEOF
29922rm -f conftest.$ac_objext
29923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29924 (eval $ac_compile) 2>conftest.er1
a848cd7e 29925 ac_status=$?
ac1cb8d3
VS
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
a848cd7e
SC
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
3565d135
RR
29931 { ac_try='test -z "$ac_c_werror_flag"
29932 || test ! -s conftest.err'
ac1cb8d3
VS
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
0ad5d837 29944 wx_cv_lib_motif2="yes"
a848cd7e
SC
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
0ad5d837
VZ
29949wx_cv_lib_motif2="no"
29950fi
29951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29952fi
29953echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29954echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29955 if test "$wx_cv_lib_motif2" = "yes"; then
29956 cat >>confdefs.h <<\_ACEOF
29957#define __WXMOTIF20__ 1
29958_ACEOF
a848cd7e 29959
0ad5d837
VZ
29960 else
29961 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29962#define __WXMOTIF20__ 0
29963_ACEOF
29964
0ad5d837 29965 fi
2113bc77
MW
29966
29967 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29968echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29969if test "${wx_cv_lib_lesstif+set}" = set; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29971else
29972 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29973/* confdefs.h. */
29974_ACEOF
29975cat confdefs.h >>conftest.$ac_ext
29976cat >>conftest.$ac_ext <<_ACEOF
29977/* end confdefs.h. */
29978
0ad5d837 29979 #include <Xm/Xm.h>
2113bc77
MW
29980
29981int
29982main ()
29983{
29984
0ad5d837
VZ
29985 #if !defined(LesstifVersion) || LesstifVersion <= 0
29986 Not Lesstif
29987 #endif
2113bc77
MW
29988
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest.$ac_objext
29994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29995 (eval $ac_compile) 2>conftest.er1
29996 ac_status=$?
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
3565d135
RR
30002 { ac_try='test -z "$ac_c_werror_flag"
30003 || test ! -s conftest.err'
2113bc77
MW
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; }; then
0ad5d837 30015 wx_cv_lib_lesstif="yes"
2113bc77
MW
30016else
30017 echo "$as_me: failed program was:" >&5
30018sed 's/^/| /' conftest.$ac_ext >&5
30019
0ad5d837
VZ
30020wx_cv_lib_lesstif="no"
30021fi
30022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30023
0ad5d837
VZ
30024fi
30025echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30026echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30027 if test "$wx_cv_lib_lesstif" = "yes"; then
30028 cat >>confdefs.h <<\_ACEOF
30029#define __WXLESSTIF__ 1
30030_ACEOF
30031
30032 else
30033 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30034#define __WXLESSTIF__ 0
30035_ACEOF
30036
0ad5d837 30037 fi
2113bc77 30038
a848cd7e
SC
30039 CFLAGS=$save_CFLAGS
30040
62fa8b3a 30041 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30042 TOOLKIT=MOTIF
30043 GUIDIST=MOTIF_DIST
30044 fi
30045
74b84332 30046 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30047 if test "$wxUSE_LIBXPM" = "sys"; then
30048 echo "$as_me:$LINENO: checking for Xpm library" >&5
30049echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30050
0ad5d837
VZ
30051 ac_find_libraries=
30052 for ac_dir in $SEARCH_LIB;
a848cd7e 30053 do
3eca31dc 30054 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30055 if test -f "$ac_dir/libXpm.$ac_extension"; then
30056 ac_find_libraries=$ac_dir
30057 break 2
30058 fi
30059 done
30060 done
30061
30062 if test "$ac_find_libraries" != "" ; then
30063
0ad5d837 30064 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30065 ac_path_to_link=""
30066 else
0ad5d837
VZ
30067 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30068 result=$?
30069 if test $result = 0; then
30070 ac_path_to_link=""
30071 else
30072 ac_path_to_link=" -L$ac_find_libraries"
30073 fi
a848cd7e
SC
30074 fi
30075
30076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30077 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30078echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30079
30080 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30081echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30082if test "${wx_cv_x11_xpm_h+set}" = set; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30084else
30085
30086 save_CFLAGS=$CFLAGS
c92ad099 30087 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30088
30089 cat >conftest.$ac_ext <<_ACEOF
30090/* confdefs.h. */
30091_ACEOF
30092cat confdefs.h >>conftest.$ac_ext
30093cat >>conftest.$ac_ext <<_ACEOF
30094/* end confdefs.h. */
30095
30096 #include <X11/xpm.h>
30097
30098int
30099main ()
30100{
30101
30102 int version;
30103 version = XpmLibraryVersion();
30104
30105 ;
30106 return 0;
30107}
30108_ACEOF
30109rm -f conftest.$ac_objext
30110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30111 (eval $ac_compile) 2>conftest.er1
a848cd7e 30112 ac_status=$?
ac1cb8d3
VS
30113 grep -v '^ *+' conftest.er1 >conftest.err
30114 rm -f conftest.er1
30115 cat conftest.err >&5
a848cd7e
SC
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); } &&
3565d135
RR
30118 { ac_try='test -z "$ac_c_werror_flag"
30119 || test ! -s conftest.err'
ac1cb8d3
VS
30120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121 (eval $ac_try) 2>&5
30122 ac_status=$?
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; } &&
30125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; }; then
30131 wx_cv_x11_xpm_h=yes
30132else
30133 echo "$as_me: failed program was:" >&5
30134sed 's/^/| /' conftest.$ac_ext >&5
30135
30136wx_cv_x11_xpm_h=no
30137
30138fi
ac1cb8d3 30139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30140
30141 CFLAGS=$save_CFLAGS
30142
30143
30144fi
30145echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30146echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30147
30148 if test $wx_cv_x11_xpm_h = "yes"; then
30149 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30150 cat >>confdefs.h <<\_ACEOF
30151#define wxHAVE_LIB_XPM 1
30152_ACEOF
30153
30154 else
30155 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30156echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30157 fi
30158 fi
30159
30160 fi
30161
30162 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30163echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30164if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166else
30167 ac_check_lib_save_LIBS=$LIBS
30168LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30169cat >conftest.$ac_ext <<_ACEOF
30170/* confdefs.h. */
30171_ACEOF
30172cat confdefs.h >>conftest.$ac_ext
30173cat >>conftest.$ac_ext <<_ACEOF
30174/* end confdefs.h. */
30175
30176/* Override any gcc2 internal prototype to avoid an error. */
30177#ifdef __cplusplus
30178extern "C"
30179#endif
30180/* We use char because int might match the return type of a gcc2
30181 builtin and then its argument prototype would still apply. */
30182char XShapeQueryExtension ();
30183int
30184main ()
30185{
30186XShapeQueryExtension ();
30187 ;
30188 return 0;
30189}
30190_ACEOF
30191rm -f conftest.$ac_objext conftest$ac_exeext
30192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30193 (eval $ac_link) 2>conftest.er1
a848cd7e 30194 ac_status=$?
ac1cb8d3
VS
30195 grep -v '^ *+' conftest.er1 >conftest.err
30196 rm -f conftest.er1
30197 cat conftest.err >&5
a848cd7e
SC
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); } &&
3565d135
RR
30200 { ac_try='test -z "$ac_c_werror_flag"
30201 || test ! -s conftest.err'
ac1cb8d3
VS
30202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30203 (eval $ac_try) 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30209 (eval $ac_try) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); }; }; then
30213 ac_cv_lib_Xext_XShapeQueryExtension=yes
30214else
30215 echo "$as_me: failed program was:" >&5
30216sed 's/^/| /' conftest.$ac_ext >&5
30217
30218ac_cv_lib_Xext_XShapeQueryExtension=no
30219fi
ac1cb8d3
VS
30220rm -f conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30222LIBS=$ac_check_lib_save_LIBS
30223fi
30224echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30225echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30226if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30227
30228 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30229 wxHAVE_XEXT_LIB=1
30230
30231fi
30232
30233
30234 if test "$wxHAVE_XEXT_LIB" = 1; then
30235 save_CFLAGS="$CFLAGS"
c92ad099 30236 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30237
30238 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30239echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30240 cat >conftest.$ac_ext <<_ACEOF
30241/* confdefs.h. */
30242_ACEOF
30243cat confdefs.h >>conftest.$ac_ext
30244cat >>conftest.$ac_ext <<_ACEOF
30245/* end confdefs.h. */
30246
30247 #include <X11/Xlib.h>
30248 #include <X11/extensions/shape.h>
30249
30250int
30251main ()
30252{
30253
30254 int dummy1, dummy2;
30255 XShapeQueryExtension((Display*)NULL,
30256 (int*)NULL, (int*)NULL);
30257
30258 ;
30259 return 0;
30260}
30261_ACEOF
30262rm -f conftest.$ac_objext
30263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30264 (eval $ac_compile) 2>conftest.er1
a848cd7e 30265 ac_status=$?
ac1cb8d3
VS
30266 grep -v '^ *+' conftest.er1 >conftest.err
30267 rm -f conftest.er1
30268 cat conftest.err >&5
a848cd7e
SC
30269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270 (exit $ac_status); } &&
3565d135
RR
30271 { ac_try='test -z "$ac_c_werror_flag"
30272 || test ! -s conftest.err'
ac1cb8d3
VS
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
30284
30285 cat >>confdefs.h <<\_ACEOF
30286#define HAVE_XSHAPE 1
30287_ACEOF
30288
30289 echo "$as_me:$LINENO: result: found" >&5
30290echo "${ECHO_T}found" >&6
30291
30292else
30293 echo "$as_me: failed program was:" >&5
30294sed 's/^/| /' conftest.$ac_ext >&5
30295
30296
30297 echo "$as_me:$LINENO: result: not found" >&5
30298echo "${ECHO_T}not found" >&6
30299
30300fi
ac1cb8d3 30301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30302 CFLAGS="$save_CFLAGS"
30303
30304 fi
30305 fi
30306
30307 if test "$wxUSE_MAC" = 1; then
30308 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30309echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30310 if test "$GCC" = yes; then
30311 echo "$as_me:$LINENO: result: gcc" >&5
30312echo "${ECHO_T}gcc" >&6
30313 CPPFLAGS_PASCAL="-fpascal-strings"
30314 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30315 echo "$as_me:$LINENO: result: xlc" >&5
30316echo "${ECHO_T}xlc" >&6
30317 CPPFLAGS_PASCAL="-qmacpstr"
30318 else
30319 echo "$as_me:$LINENO: result: none" >&5
30320echo "${ECHO_T}none" >&6
30321 fi
30322
1e9e8aba 30323 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30324 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30325 else
c92ad099 30326 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30327 fi
a848cd7e 30328
a848cd7e
SC
30329 TOOLKIT=MAC
30330 GUIDIST=MACX_DIST
dd21ced8 30331 WXBASEPORT="_carbon"
a848cd7e
SC
30332 fi
30333
30334 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30335 TOOLKIT=COCOA
30336 GUIDIST=COCOA_DIST
30337 fi
30338
30339 if test "$wxUSE_PM" = 1; then
30340 TOOLKIT=PM
de59c161
RD
30341 GUIDIST=PM_DIST
30342 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30343echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30344if test "${wx_cv_spbcdata+set}" = set; then
30345 echo $ECHO_N "(cached) $ECHO_C" >&6
30346else
30347
30348 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30349/* confdefs.h. */
30350_ACEOF
30351cat confdefs.h >>conftest.$ac_ext
30352cat >>conftest.$ac_ext <<_ACEOF
30353/* end confdefs.h. */
30354
30355 #define INCL_PM
30356 #include <os2.h>
30357
30358int
30359main ()
30360{
30361
30362 SPBCDATA test;
30363
30364 ;
30365 return 0;
30366}
30367_ACEOF
30368rm -f conftest.$ac_objext
30369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30370 (eval $ac_compile) 2>conftest.er1
de59c161 30371 ac_status=$?
ac1cb8d3
VS
30372 grep -v '^ *+' conftest.er1 >conftest.err
30373 rm -f conftest.er1
30374 cat conftest.err >&5
de59c161
RD
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } &&
3565d135
RR
30377 { ac_try='test -z "$ac_c_werror_flag"
30378 || test ! -s conftest.err'
ac1cb8d3
VS
30379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380 (eval $ac_try) 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; } &&
30384 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30386 (eval $ac_try) 2>&5
30387 ac_status=$?
30388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389 (exit $ac_status); }; }; then
30390 wx_cv_spbcdata=yes
30391else
30392 echo "$as_me: failed program was:" >&5
30393sed 's/^/| /' conftest.$ac_ext >&5
30394
30395wx_cv_spbcdata=no
30396
30397fi
ac1cb8d3 30398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30399
30400
30401fi
30402echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30403echo "${ECHO_T}$wx_cv_spbcdata" >&6
30404
30405 if test $wx_cv_spbcdata = "yes"; then
30406 cat >>confdefs.h <<\_ACEOF
30407#define HAVE_SPBCDATA 1
30408_ACEOF
30409
30410 fi
a848cd7e
SC
30411 fi
30412
30413 if test "$TOOLKIT" = "PM" ; then
30414 TOOLKIT_DIR="os2"
30415 else
30416 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30417 fi
30418
a848cd7e 30419 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30420 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30421 WIDGET_SET=univ
a848cd7e
SC
30422 fi
30423
30424 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30425 DISTDIR="wx\$(TOOLKIT)"
30426else
30427 USE_GUI=0
30428
30429 TOOLKIT_DIR="base"
30430
30431 if test "$USE_WIN32" = 1 ; then
a848cd7e 30432 TOOLKIT="MSW"
a848cd7e
SC
30433 fi
30434
a848cd7e
SC
30435 GUIDIST="BASE_DIST"
30436 DISTDIR="wxBase"
30437fi
30438
30439
d12aef51
VZ
30440if test "$wxUSE_GUI" = "yes"; then
30441 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30442
30443for ac_header in X11/Xlib.h
30444do
30445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30446if eval "test \"\${$as_ac_Header+set}\" = set"; then
30447 echo "$as_me:$LINENO: checking for $ac_header" >&5
30448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30449if eval "test \"\${$as_ac_Header+set}\" = set"; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30451fi
30452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30454else
30455 # Is the header compilable?
30456echo "$as_me:$LINENO: checking $ac_header usability" >&5
30457echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30458cat >conftest.$ac_ext <<_ACEOF
30459/* confdefs.h. */
30460_ACEOF
30461cat confdefs.h >>conftest.$ac_ext
30462cat >>conftest.$ac_ext <<_ACEOF
30463/* end confdefs.h. */
30464$ac_includes_default
30465#include <$ac_header>
30466_ACEOF
30467rm -f conftest.$ac_objext
30468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30469 (eval $ac_compile) 2>conftest.er1
30470 ac_status=$?
30471 grep -v '^ *+' conftest.er1 >conftest.err
30472 rm -f conftest.er1
30473 cat conftest.err >&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } &&
3565d135
RR
30476 { ac_try='test -z "$ac_c_werror_flag"
30477 || test ! -s conftest.err'
d12aef51
VZ
30478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479 (eval $ac_try) 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; } &&
30483 { ac_try='test -s conftest.$ac_objext'
30484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30485 (eval $ac_try) 2>&5
30486 ac_status=$?
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); }; }; then
30489 ac_header_compiler=yes
30490else
30491 echo "$as_me: failed program was:" >&5
30492sed 's/^/| /' conftest.$ac_ext >&5
30493
30494ac_header_compiler=no
30495fi
30496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30498echo "${ECHO_T}$ac_header_compiler" >&6
30499
30500# Is the header present?
30501echo "$as_me:$LINENO: checking $ac_header presence" >&5
30502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30503cat >conftest.$ac_ext <<_ACEOF
30504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
30509#include <$ac_header>
30510_ACEOF
30511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30513 ac_status=$?
30514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } >/dev/null; then
30519 if test -s conftest.err; then
30520 ac_cpp_err=$ac_c_preproc_warn_flag
30521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30522 else
30523 ac_cpp_err=
30524 fi
30525else
30526 ac_cpp_err=yes
30527fi
30528if test -z "$ac_cpp_err"; then
30529 ac_header_preproc=yes
30530else
30531 echo "$as_me: failed program was:" >&5
30532sed 's/^/| /' conftest.$ac_ext >&5
30533
30534 ac_header_preproc=no
30535fi
30536rm -f conftest.err conftest.$ac_ext
30537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30538echo "${ECHO_T}$ac_header_preproc" >&6
30539
30540# So? What about this header?
30541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30542 yes:no: )
30543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30547 ac_header_preproc=yes
30548 ;;
30549 no:yes:* )
30550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30562 (
30563 cat <<\_ASBOX
30564## ----------------------------------------- ##
30565## Report this to wx-dev@lists.wxwidgets.org ##
30566## ----------------------------------------- ##
30567_ASBOX
30568 ) |
30569 sed "s/^/$as_me: WARNING: /" >&2
30570 ;;
30571esac
30572echo "$as_me:$LINENO: checking for $ac_header" >&5
30573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30574if eval "test \"\${$as_ac_Header+set}\" = set"; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30576else
30577 eval "$as_ac_Header=\$ac_header_preproc"
30578fi
30579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30581
30582fi
30583if test `eval echo '${'$as_ac_Header'}'` = yes; then
30584 cat >>confdefs.h <<_ACEOF
30585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30586_ACEOF
30587
30588fi
30589
30590done
30591
30592
30593for ac_header in X11/XKBlib.h
30594do
30595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30596echo "$as_me:$LINENO: checking for $ac_header" >&5
30597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30598if eval "test \"\${$as_ac_Header+set}\" = set"; then
30599 echo $ECHO_N "(cached) $ECHO_C" >&6
30600else
30601 cat >conftest.$ac_ext <<_ACEOF
30602/* confdefs.h. */
30603_ACEOF
30604cat confdefs.h >>conftest.$ac_ext
30605cat >>conftest.$ac_ext <<_ACEOF
30606/* end confdefs.h. */
30607
30608 #if HAVE_X11_XLIB_H
30609 #include <X11/Xlib.h>
30610 #endif
30611
30612
30613#include <$ac_header>
30614_ACEOF
30615rm -f conftest.$ac_objext
30616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30617 (eval $ac_compile) 2>conftest.er1
30618 ac_status=$?
30619 grep -v '^ *+' conftest.er1 >conftest.err
30620 rm -f conftest.er1
30621 cat conftest.err >&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); } &&
3565d135
RR
30624 { ac_try='test -z "$ac_c_werror_flag"
30625 || test ! -s conftest.err'
d12aef51
VZ
30626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30627 (eval $ac_try) 2>&5
30628 ac_status=$?
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); }; } &&
30631 { ac_try='test -s conftest.$ac_objext'
30632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633 (eval $ac_try) 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637 eval "$as_ac_Header=yes"
30638else
30639 echo "$as_me: failed program was:" >&5
30640sed 's/^/| /' conftest.$ac_ext >&5
30641
30642eval "$as_ac_Header=no"
30643fi
30644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30645fi
30646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30648if test `eval echo '${'$as_ac_Header'}'` = yes; then
30649 cat >>confdefs.h <<_ACEOF
30650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30651_ACEOF
30652
30653fi
30654
30655done
30656
30657 fi
30658fi
30659
a848cd7e
SC
30660
30661
30662IODBC_C_SRC=""
30663
30664
30665if test "$TOOLKIT" != "MSW" ; then
30666
30667 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30668
30669 if test "${ac_cv_header_sql_h+set}" = set; then
30670 echo "$as_me:$LINENO: checking for sql.h" >&5
30671echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30672if test "${ac_cv_header_sql_h+set}" = set; then
30673 echo $ECHO_N "(cached) $ECHO_C" >&6
30674fi
30675echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30676echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30677else
30678 # Is the header compilable?
30679echo "$as_me:$LINENO: checking sql.h usability" >&5
30680echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30681cat >conftest.$ac_ext <<_ACEOF
30682/* confdefs.h. */
30683_ACEOF
30684cat confdefs.h >>conftest.$ac_ext
30685cat >>conftest.$ac_ext <<_ACEOF
30686/* end confdefs.h. */
30687$ac_includes_default
30688#include <sql.h>
30689_ACEOF
30690rm -f conftest.$ac_objext
30691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30692 (eval $ac_compile) 2>conftest.er1
a848cd7e 30693 ac_status=$?
ac1cb8d3
VS
30694 grep -v '^ *+' conftest.er1 >conftest.err
30695 rm -f conftest.er1
30696 cat conftest.err >&5
a848cd7e
SC
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); } &&
3565d135
RR
30699 { ac_try='test -z "$ac_c_werror_flag"
30700 || test ! -s conftest.err'
ac1cb8d3
VS
30701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702 (eval $ac_try) 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; } &&
30706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708 (eval $ac_try) 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; }; then
30712 ac_header_compiler=yes
30713else
30714 echo "$as_me: failed program was:" >&5
30715sed 's/^/| /' conftest.$ac_ext >&5
30716
30717ac_header_compiler=no
30718fi
ac1cb8d3 30719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30721echo "${ECHO_T}$ac_header_compiler" >&6
30722
30723# Is the header present?
30724echo "$as_me:$LINENO: checking sql.h presence" >&5
30725echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30726cat >conftest.$ac_ext <<_ACEOF
30727/* confdefs.h. */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h. */
30732#include <sql.h>
30733_ACEOF
30734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30736 ac_status=$?
30737 grep -v '^ *+' conftest.er1 >conftest.err
30738 rm -f conftest.er1
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } >/dev/null; then
30742 if test -s conftest.err; then
30743 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30745 else
30746 ac_cpp_err=
30747 fi
30748else
30749 ac_cpp_err=yes
30750fi
30751if test -z "$ac_cpp_err"; then
30752 ac_header_preproc=yes
30753else
30754 echo "$as_me: failed program was:" >&5
30755sed 's/^/| /' conftest.$ac_ext >&5
30756
30757 ac_header_preproc=no
30758fi
30759rm -f conftest.err conftest.$ac_ext
30760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30761echo "${ECHO_T}$ac_header_preproc" >&6
30762
30763# So? What about this header?
ac1cb8d3
VS
30764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30765 yes:no: )
a848cd7e
SC
30766 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30767echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30768 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30769echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30770 ac_header_preproc=yes
a848cd7e 30771 ;;
ac1cb8d3 30772 no:yes:* )
a848cd7e
SC
30773 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30774echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30775 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30776echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30778echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30779 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30780echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30781 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30782echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30783 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30784echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30785 (
30786 cat <<\_ASBOX
ac1cb8d3
VS
30787## ----------------------------------------- ##
30788## Report this to wx-dev@lists.wxwidgets.org ##
30789## ----------------------------------------- ##
a848cd7e
SC
30790_ASBOX
30791 ) |
30792 sed "s/^/$as_me: WARNING: /" >&2
30793 ;;
30794esac
30795echo "$as_me:$LINENO: checking for sql.h" >&5
30796echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30797if test "${ac_cv_header_sql_h+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799else
30800 ac_cv_header_sql_h=$ac_header_preproc
30801fi
30802echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30803echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30804
30805fi
30806if test $ac_cv_header_sql_h = yes; then
30807 found_sql_h=1
30808fi
30809
30810
30811 if test "x$found_sql_h" = "x1" ; then
30812 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30813echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30814if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30815 echo $ECHO_N "(cached) $ECHO_C" >&6
30816else
30817 ac_check_lib_save_LIBS=$LIBS
30818LIBS="-liodbc $LIBS"
30819cat >conftest.$ac_ext <<_ACEOF
30820/* confdefs.h. */
30821_ACEOF
30822cat confdefs.h >>conftest.$ac_ext
30823cat >>conftest.$ac_ext <<_ACEOF
30824/* end confdefs.h. */
30825
30826/* Override any gcc2 internal prototype to avoid an error. */
30827#ifdef __cplusplus
30828extern "C"
30829#endif
30830/* We use char because int might match the return type of a gcc2
30831 builtin and then its argument prototype would still apply. */
30832char SQLAllocEnv ();
30833int
30834main ()
30835{
30836SQLAllocEnv ();
30837 ;
30838 return 0;
30839}
30840_ACEOF
30841rm -f conftest.$ac_objext conftest$ac_exeext
30842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30843 (eval $ac_link) 2>conftest.er1
a848cd7e 30844 ac_status=$?
ac1cb8d3
VS
30845 grep -v '^ *+' conftest.er1 >conftest.err
30846 rm -f conftest.er1
30847 cat conftest.err >&5
a848cd7e
SC
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
3565d135
RR
30850 { ac_try='test -z "$ac_c_werror_flag"
30851 || test ! -s conftest.err'
ac1cb8d3
VS
30852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853 (eval $ac_try) 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; } &&
30857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30859 (eval $ac_try) 2>&5
30860 ac_status=$?
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); }; }; then
30863 ac_cv_lib_iodbc_SQLAllocEnv=yes
30864else
30865 echo "$as_me: failed program was:" >&5
30866sed 's/^/| /' conftest.$ac_ext >&5
30867
30868ac_cv_lib_iodbc_SQLAllocEnv=no
30869fi
ac1cb8d3
VS
30870rm -f conftest.err conftest.$ac_objext \
30871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30872LIBS=$ac_check_lib_save_LIBS
30873fi
30874echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30875echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30876if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30877 ODBC_LINK=" -liodbc"
30878else
30879
30880 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30881echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30882if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30883 echo $ECHO_N "(cached) $ECHO_C" >&6
30884else
30885 ac_check_lib_save_LIBS=$LIBS
30886LIBS="-lunixodbc $LIBS"
30887cat >conftest.$ac_ext <<_ACEOF
30888/* confdefs.h. */
30889_ACEOF
30890cat confdefs.h >>conftest.$ac_ext
30891cat >>conftest.$ac_ext <<_ACEOF
30892/* end confdefs.h. */
30893
30894/* Override any gcc2 internal prototype to avoid an error. */
30895#ifdef __cplusplus
30896extern "C"
30897#endif
30898/* We use char because int might match the return type of a gcc2
30899 builtin and then its argument prototype would still apply. */
30900char SQLAllocEnv ();
30901int
30902main ()
30903{
30904SQLAllocEnv ();
30905 ;
30906 return 0;
30907}
30908_ACEOF
30909rm -f conftest.$ac_objext conftest$ac_exeext
30910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30911 (eval $ac_link) 2>conftest.er1
a848cd7e 30912 ac_status=$?
ac1cb8d3
VS
30913 grep -v '^ *+' conftest.er1 >conftest.err
30914 rm -f conftest.er1
30915 cat conftest.err >&5
a848cd7e
SC
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } &&
3565d135
RR
30918 { ac_try='test -z "$ac_c_werror_flag"
30919 || test ! -s conftest.err'
ac1cb8d3
VS
30920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30921 (eval $ac_try) 2>&5
30922 ac_status=$?
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); }; } &&
30925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927 (eval $ac_try) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; }; then
30931 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30932else
30933 echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
30936ac_cv_lib_unixodbc_SQLAllocEnv=no
30937fi
ac1cb8d3
VS
30938rm -f conftest.err conftest.$ac_objext \
30939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30940LIBS=$ac_check_lib_save_LIBS
30941fi
30942echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30943echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30944if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30945 ODBC_LINK=" -lunixodbc"
30946else
30947
30948 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30949echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30950if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30951 echo $ECHO_N "(cached) $ECHO_C" >&6
30952else
30953 ac_check_lib_save_LIBS=$LIBS
30954LIBS="-lodbc $LIBS"
30955cat >conftest.$ac_ext <<_ACEOF
30956/* confdefs.h. */
30957_ACEOF
30958cat confdefs.h >>conftest.$ac_ext
30959cat >>conftest.$ac_ext <<_ACEOF
30960/* end confdefs.h. */
30961
30962/* Override any gcc2 internal prototype to avoid an error. */
30963#ifdef __cplusplus
30964extern "C"
30965#endif
30966/* We use char because int might match the return type of a gcc2
30967 builtin and then its argument prototype would still apply. */
30968char SQLAllocEnv ();
30969int
30970main ()
30971{
30972SQLAllocEnv ();
30973 ;
30974 return 0;
30975}
30976_ACEOF
30977rm -f conftest.$ac_objext conftest$ac_exeext
30978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30979 (eval $ac_link) 2>conftest.er1
a848cd7e 30980 ac_status=$?
ac1cb8d3
VS
30981 grep -v '^ *+' conftest.er1 >conftest.err
30982 rm -f conftest.er1
30983 cat conftest.err >&5
a848cd7e
SC
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } &&
3565d135
RR
30986 { ac_try='test -z "$ac_c_werror_flag"
30987 || test ! -s conftest.err'
ac1cb8d3
VS
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; } &&
30993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30995 (eval $ac_try) 2>&5
30996 ac_status=$?
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); }; }; then
30999 ac_cv_lib_odbc_SQLAllocEnv=yes
31000else
31001 echo "$as_me: failed program was:" >&5
31002sed 's/^/| /' conftest.$ac_ext >&5
31003
31004ac_cv_lib_odbc_SQLAllocEnv=no
31005fi
ac1cb8d3
VS
31006rm -f conftest.err conftest.$ac_objext \
31007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31008LIBS=$ac_check_lib_save_LIBS
31009fi
31010echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31011echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31012if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31013 ODBC_LINK=" -lodbc"
31014fi
31015
31016
31017fi
31018
31019
31020fi
31021
31022 fi
31023 if test "x$ODBC_LINK" = "x" ; then
31024 if test "$wxUSE_ODBC" = "sys" ; then
31025 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31026echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31027 { (exit 1); exit 1; }; }
31028 else
31029 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31030echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31031 wxUSE_ODBC=builtin
31032 fi
31033 else
31034 wxUSE_ODBC=sys
31035 fi
31036 fi
a848cd7e 31037
2da0c077
RD
31038 if test "$wxUSE_ODBC" = "builtin" ; then
31039 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31040#define wxUSE_BUILTIN_IODBC 1
31041_ACEOF
31042
a848cd7e
SC
31043 fi
31044fi
31045
2da0c077
RD
31046if test "$wxUSE_ODBC" != "no" ; then
31047 cat >>confdefs.h <<\_ACEOF
31048#define wxUSE_ODBC 1
31049_ACEOF
31050
31051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31052
5ff751d6 31053 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31054fi
a848cd7e 31055
01cb68df 31056
a848cd7e 31057if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31058 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31059 echo "$as_me:$LINENO: checking for Xinerama" >&5
31060echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31061
0ad5d837
VZ
31062 ac_find_libraries=
31063 for ac_dir in $SEARCH_LIB;
31064 do
31065 for ac_extension in a so sl dylib dll.a; do
31066 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31067 ac_find_libraries=$ac_dir
31068 break 2
31069 fi
31070 done
31071 done
31072
a848cd7e
SC
31073 if test "$ac_find_libraries" != "" ; then
31074
0ad5d837 31075 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31076 ac_path_to_link=""
31077 else
0ad5d837
VZ
31078 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31079 result=$?
31080 if test $result = 0; then
31081 ac_path_to_link=""
31082 else
31083 ac_path_to_link=" -L$ac_find_libraries"
31084 fi
a848cd7e
SC
31085 fi
31086
31087 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31088 LDFLAGS="$LDFLAGS $ac_path_to_link"
31089 fi
31090 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31091 echo "$as_me:$LINENO: result: yes" >&5
31092echo "${ECHO_T}yes" >&6
31093
31094 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31095echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31096
0ad5d837
VZ
31097 ac_find_libraries=
31098 for ac_dir in $SEARCH_LIB;
a848cd7e 31099 do
3eca31dc 31100 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31101 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31102 ac_find_libraries=$ac_dir
31103 break 2
31104 fi
31105 done
31106 done
31107
31108 if test "$ac_find_libraries" != "" ; then
31109 echo "$as_me:$LINENO: result: yes" >&5
31110echo "${ECHO_T}yes" >&6
31111
31112for ac_header in X11/extensions/xf86vmode.h
31113do
31114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31115echo "$as_me:$LINENO: checking for $ac_header" >&5
31116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31117if eval "test \"\${$as_ac_Header+set}\" = set"; then
31118 echo $ECHO_N "(cached) $ECHO_C" >&6
31119else
31120 cat >conftest.$ac_ext <<_ACEOF
31121/* confdefs.h. */
31122_ACEOF
31123cat confdefs.h >>conftest.$ac_ext
31124cat >>conftest.$ac_ext <<_ACEOF
31125/* end confdefs.h. */
31126
31127 #if HAVE_X11_XLIB_H
31128 #include <X11/Xlib.h>
31129 #endif
31130
31131
31132#include <$ac_header>
31133_ACEOF
31134rm -f conftest.$ac_objext
31135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31136 (eval $ac_compile) 2>conftest.er1
a848cd7e 31137 ac_status=$?
ac1cb8d3
VS
31138 grep -v '^ *+' conftest.er1 >conftest.err
31139 rm -f conftest.er1
31140 cat conftest.err >&5
a848cd7e
SC
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); } &&
3565d135
RR
31143 { ac_try='test -z "$ac_c_werror_flag"
31144 || test ! -s conftest.err'
ac1cb8d3
VS
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 eval "$as_ac_Header=yes"
31157else
31158 echo "$as_me: failed program was:" >&5
31159sed 's/^/| /' conftest.$ac_ext >&5
31160
31161eval "$as_ac_Header=no"
31162fi
ac1cb8d3 31163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31164fi
31165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31167if test `eval echo '${'$as_ac_Header'}'` = yes; then
31168 cat >>confdefs.h <<_ACEOF
31169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31170_ACEOF
31171
31172 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31173
31174fi
31175
31176done
31177
31178 else
31179 echo "$as_me:$LINENO: result: no" >&5
31180echo "${ECHO_T}no" >&6
31181 fi
31182
31183 else
31184 echo "$as_me:$LINENO: result: no" >&5
31185echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31186 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31187echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31188 wxUSE_DISPLAY="no"
31189 fi
01cb68df
RG
31190 elif test "$wxUSE_MSW" = 1; then
31191
31192
31193for ac_header in multimon.h ddraw.h
31194do
31195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31196echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31198if eval "test \"\${$as_ac_Header+set}\" = set"; then
31199 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31200else
5294a27e 31201 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31202/* confdefs.h. */
31203_ACEOF
31204cat confdefs.h >>conftest.$ac_ext
31205cat >>conftest.$ac_ext <<_ACEOF
31206/* end confdefs.h. */
5294a27e
VZ
31207#include <windows.h>
31208
01cb68df
RG
31209#include <$ac_header>
31210_ACEOF
31211rm -f conftest.$ac_objext
31212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31213 (eval $ac_compile) 2>conftest.er1
01cb68df 31214 ac_status=$?
ac1cb8d3
VS
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
01cb68df
RG
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
3565d135
RR
31220 { ac_try='test -z "$ac_c_werror_flag"
31221 || test ! -s conftest.err'
ac1cb8d3
VS
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; } &&
31227 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31229 (eval $ac_try) 2>&5
31230 ac_status=$?
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
5294a27e 31233 eval "$as_ac_Header=yes"
01cb68df
RG
31234else
31235 echo "$as_me: failed program was:" >&5
31236sed 's/^/| /' conftest.$ac_ext >&5
31237
5294a27e 31238eval "$as_ac_Header=no"
01cb68df 31239fi
ac1cb8d3 31240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31241fi
31242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31244if test `eval echo '${'$as_ac_Header'}'` = yes; then
31245 cat >>confdefs.h <<_ACEOF
31246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31247_ACEOF
31248
31249else
31250
5294a27e
VZ
31251 wxUSE_DISPLAY="no"
31252 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 31253echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
31254
31255fi
31256
31257done
31258
a848cd7e
SC
31259 fi
31260fi
31261
31262
31263USE_OPENGL=0
31264if test "$wxUSE_OPENGL" = "yes"; then
31265 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31266 OPENGL_LIBS="-framework OpenGL -framework AGL"
31267 elif test "$wxUSE_MSW" = 1; then
31268 OPENGL_LIBS="-lopengl32 -lglu32"
31269 else
31270
31271
31272ac_find_includes=
31273for ac_dir in $SEARCH_INCLUDE /usr/include;
31274 do
31275 if test -f "$ac_dir/GL/gl.h"; then
31276 ac_find_includes=$ac_dir
31277 break
31278 fi
31279 done
31280
31281 if test "$ac_find_includes" != "" ; then
31282 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31283echo "${ECHO_T}found in $ac_find_includes" >&6
31284
31285 if test "x$ac_find_includes" = "x/usr/include"; then
31286 ac_path_to_include=""
31287 else
31288 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31289 result=$?
31290 if test $result = 0; then
31291 ac_path_to_include=""
31292 else
31293 ac_path_to_include=" -I$ac_find_includes"
31294 fi
31295 fi
31296
c92ad099 31297 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31298 fi
31299
31300 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31301 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31302echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31303if test "${ac_cv_header_GL_gl_h+set}" = set; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31305fi
31306echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31307echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31308else
31309 # Is the header compilable?
31310echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31311echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31312cat >conftest.$ac_ext <<_ACEOF
31313/* confdefs.h. */
31314_ACEOF
31315cat confdefs.h >>conftest.$ac_ext
31316cat >>conftest.$ac_ext <<_ACEOF
31317/* end confdefs.h. */
31318$ac_includes_default
31319#include <GL/gl.h>
31320_ACEOF
31321rm -f conftest.$ac_objext
31322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31323 (eval $ac_compile) 2>conftest.er1
a848cd7e 31324 ac_status=$?
ac1cb8d3
VS
31325 grep -v '^ *+' conftest.er1 >conftest.err
31326 rm -f conftest.er1
31327 cat conftest.err >&5
a848cd7e
SC
31328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31329 (exit $ac_status); } &&
3565d135
RR
31330 { ac_try='test -z "$ac_c_werror_flag"
31331 || test ! -s conftest.err'
ac1cb8d3
VS
31332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31333 (eval $ac_try) 2>&5
31334 ac_status=$?
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; } &&
31337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31339 (eval $ac_try) 2>&5
31340 ac_status=$?
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); }; }; then
31343 ac_header_compiler=yes
31344else
31345 echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
31348ac_header_compiler=no
31349fi
ac1cb8d3 31350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31352echo "${ECHO_T}$ac_header_compiler" >&6
31353
31354# Is the header present?
31355echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31356echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31357cat >conftest.$ac_ext <<_ACEOF
31358/* confdefs.h. */
31359_ACEOF
31360cat confdefs.h >>conftest.$ac_ext
31361cat >>conftest.$ac_ext <<_ACEOF
31362/* end confdefs.h. */
31363#include <GL/gl.h>
31364_ACEOF
31365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31367 ac_status=$?
31368 grep -v '^ *+' conftest.er1 >conftest.err
31369 rm -f conftest.er1
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } >/dev/null; then
31373 if test -s conftest.err; then
31374 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31376 else
31377 ac_cpp_err=
31378 fi
31379else
31380 ac_cpp_err=yes
31381fi
31382if test -z "$ac_cpp_err"; then
31383 ac_header_preproc=yes
31384else
31385 echo "$as_me: failed program was:" >&5
31386sed 's/^/| /' conftest.$ac_ext >&5
31387
31388 ac_header_preproc=no
31389fi
31390rm -f conftest.err conftest.$ac_ext
31391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31392echo "${ECHO_T}$ac_header_preproc" >&6
31393
31394# So? What about this header?
ac1cb8d3
VS
31395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31396 yes:no: )
a848cd7e
SC
31397 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31398echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31399 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31400echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31401 ac_header_preproc=yes
a848cd7e 31402 ;;
ac1cb8d3 31403 no:yes:* )
a848cd7e
SC
31404 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31405echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31406 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31407echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31408 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31409echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31410 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31411echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31412 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31413echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31414 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31415echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31416 (
31417 cat <<\_ASBOX
ac1cb8d3
VS
31418## ----------------------------------------- ##
31419## Report this to wx-dev@lists.wxwidgets.org ##
31420## ----------------------------------------- ##
a848cd7e
SC
31421_ASBOX
31422 ) |
31423 sed "s/^/$as_me: WARNING: /" >&2
31424 ;;
31425esac
31426echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31427echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31428if test "${ac_cv_header_GL_gl_h+set}" = set; then
31429 echo $ECHO_N "(cached) $ECHO_C" >&6
31430else
31431 ac_cv_header_GL_gl_h=$ac_header_preproc
31432fi
31433echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31434echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31435
31436fi
31437if test $ac_cv_header_GL_gl_h = yes; then
31438
31439 found_gl=0
31440
31441 echo "$as_me:$LINENO: checking for -lGL" >&5
31442echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31443
0ad5d837
VZ
31444 ac_find_libraries=
31445 for ac_dir in $SEARCH_LIB;
a848cd7e 31446 do
3eca31dc 31447 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31448 if test -f "$ac_dir/libGL.$ac_extension"; then
31449 ac_find_libraries=$ac_dir
31450 break 2
31451 fi
31452 done
31453 done
31454
31455 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31456 echo "$as_me:$LINENO: result: yes" >&5
31457echo "${ECHO_T}yes" >&6
31458
a848cd7e 31459
0ad5d837 31460 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31461 ac_path_to_link=""
31462 else
0ad5d837
VZ
31463 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31464 result=$?
31465 if test $result = 0; then
31466 ac_path_to_link=""
31467 else
31468 ac_path_to_link=" -L$ac_find_libraries"
31469 fi
a848cd7e
SC
31470 fi
31471
31472 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31473 LDFLAGS_GL="$ac_path_to_link"
31474 fi
31475
69120ee4
VZ
31476 echo "$as_me:$LINENO: checking for -lGLU" >&5
31477echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31478
0ad5d837
VZ
31479 ac_find_libraries=
31480 for ac_dir in $SEARCH_LIB;
31481 do
31482 for ac_extension in a so sl dylib dll.a; do
31483 if test -f "$ac_dir/libGLU.$ac_extension"; then
31484 ac_find_libraries=$ac_dir
31485 break 2
31486 fi
31487 done
31488 done
31489
a848cd7e
SC
31490 if test "$ac_find_libraries" != "" ; then
31491
0ad5d837 31492 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31493 ac_path_to_link=""
31494 else
0ad5d837
VZ
31495 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31496 result=$?
31497 if test $result = 0; then
31498 ac_path_to_link=""
31499 else
31500 ac_path_to_link=" -L$ac_find_libraries"
31501 fi
a848cd7e
SC
31502 fi
31503
31504 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31505 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31506 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31507 fi
31508
31509 found_gl=1
31510 OPENGL_LIBS="-lGL -lGLU"
31511 echo "$as_me:$LINENO: result: yes" >&5
31512echo "${ECHO_T}yes" >&6
69120ee4
VZ
31513 else
31514 echo "$as_me:$LINENO: result: no" >&5
31515echo "${ECHO_T}no" >&6
a848cd7e 31516 fi
69120ee4
VZ
31517 else
31518 echo "$as_me:$LINENO: result: no" >&5
31519echo "${ECHO_T}no" >&6
a848cd7e
SC
31520 fi
31521
31522 if test "$found_gl" != 1; then
a848cd7e
SC
31523 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31524echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31525
0ad5d837
VZ
31526 ac_find_libraries=
31527 for ac_dir in $SEARCH_LIB;
a848cd7e 31528 do
3eca31dc 31529 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31530 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31531 ac_find_libraries=$ac_dir
31532 break 2
31533 fi
31534 done
31535 done
31536
31537 if test "$ac_find_libraries" != "" ; then
31538
0ad5d837 31539 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31540 ac_path_to_link=""
31541 else
0ad5d837
VZ
31542 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31543 result=$?
31544 if test $result = 0; then
31545 ac_path_to_link=""
31546 else
31547 ac_path_to_link=" -L$ac_find_libraries"
31548 fi
a848cd7e
SC
31549 fi
31550
31551 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31552 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31553 echo "$as_me:$LINENO: result: yes" >&5
31554echo "${ECHO_T}yes" >&6
31555 else
31556 echo "$as_me:$LINENO: result: no" >&5
31557echo "${ECHO_T}no" >&6
31558 fi
31559 fi
31560
31561fi
31562
31563
31564
31565 if test "x$OPENGL_LIBS" = "x"; then
31566 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31567echo "$as_me: error: OpenGL libraries not available" >&2;}
31568 { (exit 1); exit 1; }; }
31569 fi
31570 fi
31571
31572 if test "$wxUSE_OPENGL" = "yes"; then
31573 USE_OPENGL=1
31574 cat >>confdefs.h <<\_ACEOF
31575#define wxUSE_OPENGL 1
31576_ACEOF
31577
31578 cat >>confdefs.h <<\_ACEOF
31579#define wxUSE_GLCANVAS 1
31580_ACEOF
31581
31582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31583 fi
31584fi
31585
a848cd7e
SC
31586
31587if test -n "$TOOLKIT" ; then
31588 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31589fi
31590
a848cd7e
SC
31591
31592
31593if test "$wxUSE_SHARED" = "yes"; then
31594 case "${host}" in
31595 *-pc-msdosdjgpp )
31596 wxUSE_SHARED=no
31597 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31598echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31599 ;;
31600 esac
31601fi
31602
a848cd7e 31603if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31604
31605
31606 found_versioning=no
31607
31608
31609 if test $found_versioning = no ; then
31610 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31611echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31612if test "${wx_cv_version_script+set}" = set; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614else
31615
31616 echo "VER_1 { *; };" >conftest.sym
31617 echo "int main() { return 0; }" >conftest.cpp
31618
31619 if { ac_try='
31620 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31621 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623 (eval $ac_try) 2>&5
31624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; } ; then
31627 if test -s conftest.stderr ; then
31628 wx_cv_version_script=no
31629 else
31630 wx_cv_version_script=yes
31631 fi
31632 else
31633 wx_cv_version_script=no
31634 fi
e5d4b470
MW
31635
31636 if test $wx_cv_version_script = yes
31637 then
31638 echo "struct B { virtual ~B() { } }; \
31639 struct D : public B { }; \
31640 void F() { D d; }" > conftest.cpp
31641
31642 if { ac_try='
31643 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31644 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646 (eval $ac_try) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); }; } &&
31650 { ac_try='
31651 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31652 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654 (eval $ac_try) 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; }
31658 then
31659 if { ac_try='
31660 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31661 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }
31667 then
31668 wx_cv_version_script=yes
31669 else
31670 wx_cv_version_script=no
31671 fi
31672 fi
31673 fi
31674
a848cd7e 31675 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31676 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31677
31678fi
31679echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31680echo "${ECHO_T}$wx_cv_version_script" >&6
31681 if test $wx_cv_version_script = yes ; then
31682 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31683 fi
31684 fi
31685
31686
31687 case "${host}" in
31688 *-*-linux* | *-*-gnu* )
31689 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31690 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31691 ;;
a848cd7e
SC
31692
31693 *-*-solaris2* )
31694 if test "$GCC" = yes ; then
c92ad099 31695 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31696
31697 saveLdflags="$LDFLAGS"
31698 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31699 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31700echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31701 cat >conftest.$ac_ext <<_ACEOF
31702/* confdefs.h. */
31703_ACEOF
31704cat confdefs.h >>conftest.$ac_ext
31705cat >>conftest.$ac_ext <<_ACEOF
31706/* end confdefs.h. */
31707
31708int
31709main ()
31710{
31711
31712 ;
31713 return 0;
31714}
31715_ACEOF
31716rm -f conftest.$ac_objext conftest$ac_exeext
31717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31718 (eval $ac_link) 2>conftest.er1
a848cd7e 31719 ac_status=$?
ac1cb8d3
VS
31720 grep -v '^ *+' conftest.er1 >conftest.err
31721 rm -f conftest.er1
31722 cat conftest.err >&5
a848cd7e
SC
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } &&
3565d135
RR
31725 { ac_try='test -z "$ac_c_werror_flag"
31726 || test ! -s conftest.err'
ac1cb8d3
VS
31727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31728 (eval $ac_try) 2>&5
31729 ac_status=$?
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); }; } &&
31732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31734 (eval $ac_try) 2>&5
31735 ac_status=$?
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; }; then
31738
31739 echo "$as_me:$LINENO: result: yes" >&5
31740echo "${ECHO_T}yes" >&6
31741 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31742 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31743
31744else
31745 echo "$as_me: failed program was:" >&5
31746sed 's/^/| /' conftest.$ac_ext >&5
31747
31748
31749 echo "$as_me:$LINENO: result: no" >&5
31750echo "${ECHO_T}no" >&6
31751 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31752echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31753 LDFLAGS="$saveLdflags -Wl,-R,/"
31754 cat >conftest.$ac_ext <<_ACEOF
31755/* confdefs.h. */
31756_ACEOF
31757cat confdefs.h >>conftest.$ac_ext
31758cat >>conftest.$ac_ext <<_ACEOF
31759/* end confdefs.h. */
31760
31761int
31762main ()
31763{
31764
31765 ;
31766 return 0;
31767}
31768_ACEOF
31769rm -f conftest.$ac_objext conftest$ac_exeext
31770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31771 (eval $ac_link) 2>conftest.er1
a848cd7e 31772 ac_status=$?
ac1cb8d3
VS
31773 grep -v '^ *+' conftest.er1 >conftest.err
31774 rm -f conftest.er1
31775 cat conftest.err >&5
a848cd7e
SC
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); } &&
3565d135
RR
31778 { ac_try='test -z "$ac_c_werror_flag"
31779 || test ! -s conftest.err'
ac1cb8d3
VS
31780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781 (eval $ac_try) 2>&5
31782 ac_status=$?
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; } &&
31785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31787 (eval $ac_try) 2>&5
31788 ac_status=$?
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); }; }; then
31791
ffa0583f 31792 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31793echo "${ECHO_T}yes" >&6
ffa0583f
RL
31794 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31795 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31796
a848cd7e
SC
31797else
31798 echo "$as_me: failed program was:" >&5
31799sed 's/^/| /' conftest.$ac_ext >&5
31800
31801
31802 echo "$as_me:$LINENO: result: no" >&5
31803echo "${ECHO_T}no" >&6
31804
31805fi
ac1cb8d3
VS
31806rm -f conftest.err conftest.$ac_objext \
31807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31808
31809fi
ac1cb8d3
VS
31810rm -f conftest.err conftest.$ac_objext \
31811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31812 LDFLAGS="$saveLdflags"
31813 else
a848cd7e 31814 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31815 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31816 fi
31817 ;;
31818
cfda0ea8 31819 *-*-darwin* )
0caebc27
MW
31820 install_name_tool=`which install_name_tool`
31821 if test "$install_name_tool" -a -x "$install_name_tool"; then
31822 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31823 cat <<EOF >change-install-names
a848cd7e
SC
31824#!/bin/sh
31825libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31826inst_cmd="install_name_tool "
31827for i in \${libnames} ; do
31828 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31829done
31830\${inst_cmd} \${3}
31831EOF
0caebc27
MW
31832 chmod +x change-install-names
31833 fi
a848cd7e
SC
31834 ;;
31835
31836 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31837 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31838 ;;
a848cd7e 31839
81f90336
MW
31840 *-*-hpux* )
31841 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31842 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31843 ;;
81f90336 31844
a848cd7e 31845 esac
ceec2216 31846
ffa0583f
RL
31847 if test $wxUSE_RPATH = "no"; then
31848 SAMPLES_RPATH_FLAG=''
31849 SAMPLES_RPATH_POSTLINK=''
31850 WXCONFIG_RPATH=''
31851 fi
31852
31853 SHARED=1
31854
31855else
31856
ceec2216
RL
31857 config_linkage_component="-static"
31858 SHARED=0
ffa0583f 31859
ceec2216 31860fi
a848cd7e 31861
a848cd7e 31862
ceec2216
RL
31863UNICODE=0
31864lib_unicode_suffix=
31865WX_CHARTYPE="ansi"
31866if test "$wxUSE_UNICODE" = "yes"; then
31867 lib_unicode_suffix=u
31868 WX_CHARTYPE="unicode"
31869 UNICODE=1
a848cd7e
SC
31870fi
31871
ceec2216
RL
31872lib_debug_suffix=
31873WX_DEBUGTYPE="release"
31874DEBUG_FLAG=0
31875if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31876 lib_debug_suffix=d
31877 WX_DEBUGTYPE="debug"
31878 DEBUG_FLAG=1
31879fi
a848cd7e 31880
ceec2216
RL
31881WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31882WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31883
ceec2216
RL
31884DEBUG_INFO=0
31885if test "$wxUSE_DEBUG_INFO" = "yes"; then
31886 DEBUG_INFO=1
31887fi
a848cd7e 31888
ceec2216 31889WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31890
ceec2216 31891TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31892
ceec2216 31893TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31894
ceec2216
RL
31895if test "$cross_compiling" = "yes"; then
31896 HOST_SUFFIX="-$host_alias"
31897 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31898 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31899fi
31900
dd21ced8 31901WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31902if test "${TOOLKIT_DIR}" = "os2"; then
31903 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31904else
31905 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31906fi
ceec2216
RL
31907
31908
31909
1d1af5ea
DE
31910if test "$wxUSE_COCOA" = 1; then
31911
31912
31913 ac_ext=c
31914ac_cpp='$CPP $CPPFLAGS'
31915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31917ac_compiler_gnu=$ac_cv_c_compiler_gnu
31918
31919ac_ext=m
31920
31921 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31922echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31923 cat >conftest.$ac_ext <<_ACEOF
31924/* confdefs.h. */
31925_ACEOF
31926cat confdefs.h >>conftest.$ac_ext
31927cat >>conftest.$ac_ext <<_ACEOF
31928/* end confdefs.h. */
31929#include <AppKit/NSEvent.h>
31930#include <CoreFoundation/CoreFoundation.h>
31931
31932int
31933main ()
31934{
31935
31936 ;
31937 return 0;
31938}
31939_ACEOF
31940rm -f conftest.$ac_objext
31941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31942 (eval $ac_compile) 2>conftest.er1
31943 ac_status=$?
31944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } &&
3565d135
RR
31949 { ac_try='test -z "$ac_c_werror_flag"
31950 || test ! -s conftest.err'
1d1af5ea
DE
31951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31952 (eval $ac_try) 2>&5
31953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; } &&
31956 { ac_try='test -s conftest.$ac_objext'
31957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31958 (eval $ac_try) 2>&5
31959 ac_status=$?
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
31962 echo "$as_me:$LINENO: result: no" >&5
31963echo "${ECHO_T}no" >&6
31964else
31965 echo "$as_me: failed program was:" >&5
31966sed 's/^/| /' conftest.$ac_ext >&5
31967
31968echo "$as_me:$LINENO: result: yes" >&5
31969echo "${ECHO_T}yes" >&6
31970 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31971echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31972 cat >conftest.$ac_ext <<_ACEOF
31973/* confdefs.h. */
31974_ACEOF
31975cat confdefs.h >>conftest.$ac_ext
31976cat >>conftest.$ac_ext <<_ACEOF
31977/* end confdefs.h. */
31978#define __Point__ 1
31979#include <AppKit/NSEvent.h>
31980#include <CoreFoundation/CoreFoundation.h>
31981
31982int
31983main ()
31984{
31985
31986 ;
31987 return 0;
31988}
31989_ACEOF
31990rm -f conftest.$ac_objext
31991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31992 (eval $ac_compile) 2>conftest.er1
31993 ac_status=$?
31994 grep -v '^ *+' conftest.er1 >conftest.err
31995 rm -f conftest.er1
31996 cat conftest.err >&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); } &&
3565d135
RR
31999 { ac_try='test -z "$ac_c_werror_flag"
32000 || test ! -s conftest.err'
1d1af5ea
DE
32001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32002 (eval $ac_try) 2>&5
32003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; } &&
32006 { ac_try='test -s conftest.$ac_objext'
32007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008 (eval $ac_try) 2>&5
32009 ac_status=$?
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; }; then
32012 echo "$as_me:$LINENO: result: yes" >&5
32013echo "${ECHO_T}yes" >&6
32014 cat >>confdefs.h <<\_ACEOF
32015#define __Point__ 1
32016_ACEOF
32017
32018
32019else
32020 echo "$as_me: failed program was:" >&5
32021sed 's/^/| /' conftest.$ac_ext >&5
32022
32023{ { echo "$as_me:$LINENO: error: no
32024See \`config.log' for more details." >&5
32025echo "$as_me: error: no
32026See \`config.log' for more details." >&2;}
32027 { (exit 1); exit 1; }; }
32028
32029fi
32030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32031
32032fi
32033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32034 ac_ext=c
32035ac_cpp='$CPP $CPPFLAGS'
32036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32038ac_compiler_gnu=$ac_cv_c_compiler_gnu
32039
32040fi
32041
a848cd7e 32042if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32043 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32044 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32045
a848cd7e 32046 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32047
32048 # Extract the first word of "Rez", so it can be a program name with args.
32049set dummy Rez; ac_word=$2
32050echo "$as_me:$LINENO: checking for $ac_word" >&5
32051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32052if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32053 echo $ECHO_N "(cached) $ECHO_C" >&6
32054else
8ced02f6
DE
32055 if test -n "$REZ"; then
32056 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32057else
32058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32059for as_dir in $PATH
32060do
32061 IFS=$as_save_IFS
32062 test -z "$as_dir" && as_dir=.
32063 for ac_exec_ext in '' $ac_executable_extensions; do
32064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32065 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32067 break 2
32068 fi
32069done
32070done
32071
8ced02f6 32072 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32073fi
32074fi
8ced02f6
DE
32075REZ=$ac_cv_prog_REZ
32076if test -n "$REZ"; then
32077 echo "$as_me:$LINENO: result: $REZ" >&5
32078echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32079else
32080 echo "$as_me:$LINENO: result: no" >&5
32081echo "${ECHO_T}no" >&6
32082fi
32083
32084 # Extract the first word of "DeRez", so it can be a program name with args.
32085set dummy DeRez; ac_word=$2
32086echo "$as_me:$LINENO: checking for $ac_word" >&5
32087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32088if test "${ac_cv_prog_DEREZ+set}" = set; then
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32090else
32091 if test -n "$DEREZ"; then
32092 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32093else
32094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32095for as_dir in $PATH
32096do
32097 IFS=$as_save_IFS
32098 test -z "$as_dir" && as_dir=.
32099 for ac_exec_ext in '' $ac_executable_extensions; do
32100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32101 ac_cv_prog_DEREZ="DeRez"
32102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32103 break 2
32104 fi
32105done
32106done
32107
32108 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32109fi
32110fi
32111DEREZ=$ac_cv_prog_DEREZ
32112if test -n "$DEREZ"; then
32113 echo "$as_me:$LINENO: result: $DEREZ" >&5
32114echo "${ECHO_T}$DEREZ" >&6
32115else
32116 echo "$as_me:$LINENO: result: no" >&5
32117echo "${ECHO_T}no" >&6
32118fi
32119
32120 # Extract the first word of "SetFile", so it can be a program name with args.
32121set dummy SetFile; ac_word=$2
32122echo "$as_me:$LINENO: checking for $ac_word" >&5
32123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32124if test "${ac_cv_prog_SETFILE+set}" = set; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32126else
32127 if test -n "$SETFILE"; then
32128 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32129else
32130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32131for as_dir in $PATH
32132do
32133 IFS=$as_save_IFS
32134 test -z "$as_dir" && as_dir=.
32135 for ac_exec_ext in '' $ac_executable_extensions; do
32136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32137 ac_cv_prog_SETFILE="SetFile"
32138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32139 break 2
32140 fi
32141done
32142done
32143
32144 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32145fi
32146fi
32147SETFILE=$ac_cv_prog_SETFILE
32148if test -n "$SETFILE"; then
32149 echo "$as_me:$LINENO: result: $SETFILE" >&5
32150echo "${ECHO_T}$SETFILE" >&6
32151else
32152 echo "$as_me:$LINENO: result: no" >&5
32153echo "${ECHO_T}no" >&6
32154fi
32155
32156
32157 MACSETFILE="\$(SETFILE)"
32158
32159 if test "$wxUSE_MAC" = 1; then
8ced02f6 32160 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32161 RESCOMP="$REZ"
32162 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32163 else
004ee6da
RL
32164 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32165 RESCOMP="echo -n \| $REZ"
32166 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32167 fi
004ee6da 32168
a848cd7e 32169else
ffa0583f 32170 MACSETFILE="@true"
a848cd7e 32171
8ced02f6 32172 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32173 RESCOMP="emxbind"
32174 WXCONFIG_RESFLAGS="-ep"
32175
32176 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32177 else
8ced02f6 32178 POSTLINK_COMMAND="@true"
a848cd7e 32179 fi
004ee6da 32180
a848cd7e
SC
32181fi
32182
32183
32184
32185echo "$as_me:$LINENO: checking for mode_t" >&5
32186echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32187if test "${ac_cv_type_mode_t+set}" = set; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32189else
32190 cat >conftest.$ac_ext <<_ACEOF
32191/* confdefs.h. */
32192_ACEOF
32193cat confdefs.h >>conftest.$ac_ext
32194cat >>conftest.$ac_ext <<_ACEOF
32195/* end confdefs.h. */
32196$ac_includes_default
32197int
32198main ()
32199{
32200if ((mode_t *) 0)
32201 return 0;
32202if (sizeof (mode_t))
32203 return 0;
32204 ;
32205 return 0;
32206}
32207_ACEOF
32208rm -f conftest.$ac_objext
32209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32210 (eval $ac_compile) 2>conftest.er1
a848cd7e 32211 ac_status=$?
ac1cb8d3
VS
32212 grep -v '^ *+' conftest.er1 >conftest.err
32213 rm -f conftest.er1
32214 cat conftest.err >&5
a848cd7e
SC
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); } &&
3565d135
RR
32217 { ac_try='test -z "$ac_c_werror_flag"
32218 || test ! -s conftest.err'
ac1cb8d3
VS
32219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32220 (eval $ac_try) 2>&5
32221 ac_status=$?
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); }; } &&
32224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32226 (eval $ac_try) 2>&5
32227 ac_status=$?
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); }; }; then
32230 ac_cv_type_mode_t=yes
32231else
32232 echo "$as_me: failed program was:" >&5
32233sed 's/^/| /' conftest.$ac_ext >&5
32234
32235ac_cv_type_mode_t=no
32236fi
ac1cb8d3 32237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32238fi
32239echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32240echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32241if test $ac_cv_type_mode_t = yes; then
32242 :
32243else
32244
32245cat >>confdefs.h <<_ACEOF
32246#define mode_t int
32247_ACEOF
32248
32249fi
32250
32251echo "$as_me:$LINENO: checking for off_t" >&5
32252echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32253if test "${ac_cv_type_off_t+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32255else
32256 cat >conftest.$ac_ext <<_ACEOF
32257/* confdefs.h. */
32258_ACEOF
32259cat confdefs.h >>conftest.$ac_ext
32260cat >>conftest.$ac_ext <<_ACEOF
32261/* end confdefs.h. */
32262$ac_includes_default
32263int
32264main ()
32265{
32266if ((off_t *) 0)
32267 return 0;
32268if (sizeof (off_t))
32269 return 0;
32270 ;
32271 return 0;
32272}
32273_ACEOF
32274rm -f conftest.$ac_objext
32275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32276 (eval $ac_compile) 2>conftest.er1
a848cd7e 32277 ac_status=$?
ac1cb8d3
VS
32278 grep -v '^ *+' conftest.er1 >conftest.err
32279 rm -f conftest.er1
32280 cat conftest.err >&5
a848cd7e
SC
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); } &&
3565d135
RR
32283 { ac_try='test -z "$ac_c_werror_flag"
32284 || test ! -s conftest.err'
ac1cb8d3
VS
32285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286 (eval $ac_try) 2>&5
32287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; } &&
32290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292 (eval $ac_try) 2>&5
32293 ac_status=$?
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); }; }; then
32296 ac_cv_type_off_t=yes
32297else
32298 echo "$as_me: failed program was:" >&5
32299sed 's/^/| /' conftest.$ac_ext >&5
32300
32301ac_cv_type_off_t=no
32302fi
ac1cb8d3 32303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32304fi
32305echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32306echo "${ECHO_T}$ac_cv_type_off_t" >&6
32307if test $ac_cv_type_off_t = yes; then
32308 :
32309else
32310
32311cat >>confdefs.h <<_ACEOF
32312#define off_t long
32313_ACEOF
32314
32315fi
32316
32317echo "$as_me:$LINENO: checking for pid_t" >&5
32318echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32319if test "${ac_cv_type_pid_t+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322 cat >conftest.$ac_ext <<_ACEOF
32323/* confdefs.h. */
32324_ACEOF
32325cat confdefs.h >>conftest.$ac_ext
32326cat >>conftest.$ac_ext <<_ACEOF
32327/* end confdefs.h. */
32328$ac_includes_default
32329int
32330main ()
32331{
32332if ((pid_t *) 0)
32333 return 0;
32334if (sizeof (pid_t))
32335 return 0;
32336 ;
32337 return 0;
32338}
32339_ACEOF
32340rm -f conftest.$ac_objext
32341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32342 (eval $ac_compile) 2>conftest.er1
a848cd7e 32343 ac_status=$?
ac1cb8d3
VS
32344 grep -v '^ *+' conftest.er1 >conftest.err
32345 rm -f conftest.er1
32346 cat conftest.err >&5
a848cd7e
SC
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); } &&
3565d135
RR
32349 { ac_try='test -z "$ac_c_werror_flag"
32350 || test ! -s conftest.err'
ac1cb8d3
VS
32351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32352 (eval $ac_try) 2>&5
32353 ac_status=$?
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); }; } &&
32356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32358 (eval $ac_try) 2>&5
32359 ac_status=$?
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; }; then
32362 ac_cv_type_pid_t=yes
32363else
32364 echo "$as_me: failed program was:" >&5
32365sed 's/^/| /' conftest.$ac_ext >&5
32366
32367ac_cv_type_pid_t=no
32368fi
ac1cb8d3 32369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32370fi
32371echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32372echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32373if test $ac_cv_type_pid_t = yes; then
32374 :
32375else
32376
32377cat >>confdefs.h <<_ACEOF
32378#define pid_t int
32379_ACEOF
32380
32381fi
32382
32383echo "$as_me:$LINENO: checking for size_t" >&5
32384echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32385if test "${ac_cv_type_size_t+set}" = set; then
32386 echo $ECHO_N "(cached) $ECHO_C" >&6
32387else
32388 cat >conftest.$ac_ext <<_ACEOF
32389/* confdefs.h. */
32390_ACEOF
32391cat confdefs.h >>conftest.$ac_ext
32392cat >>conftest.$ac_ext <<_ACEOF
32393/* end confdefs.h. */
32394$ac_includes_default
32395int
32396main ()
32397{
32398if ((size_t *) 0)
32399 return 0;
32400if (sizeof (size_t))
32401 return 0;
32402 ;
32403 return 0;
32404}
32405_ACEOF
32406rm -f conftest.$ac_objext
32407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32408 (eval $ac_compile) 2>conftest.er1
a848cd7e 32409 ac_status=$?
ac1cb8d3
VS
32410 grep -v '^ *+' conftest.er1 >conftest.err
32411 rm -f conftest.er1
32412 cat conftest.err >&5
a848cd7e
SC
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); } &&
3565d135
RR
32415 { ac_try='test -z "$ac_c_werror_flag"
32416 || test ! -s conftest.err'
ac1cb8d3
VS
32417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418 (eval $ac_try) 2>&5
32419 ac_status=$?
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); }; } &&
32422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424 (eval $ac_try) 2>&5
32425 ac_status=$?
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); }; }; then
32428 ac_cv_type_size_t=yes
32429else
32430 echo "$as_me: failed program was:" >&5
32431sed 's/^/| /' conftest.$ac_ext >&5
32432
32433ac_cv_type_size_t=no
32434fi
ac1cb8d3 32435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32436fi
32437echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32438echo "${ECHO_T}$ac_cv_type_size_t" >&6
32439if test $ac_cv_type_size_t = yes; then
32440 :
32441else
32442
32443cat >>confdefs.h <<_ACEOF
32444#define size_t unsigned
32445_ACEOF
32446
32447fi
32448
32449echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32450echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32451if test "${ac_cv_type_uid_t+set}" = set; then
32452 echo $ECHO_N "(cached) $ECHO_C" >&6
32453else
32454 cat >conftest.$ac_ext <<_ACEOF
32455/* confdefs.h. */
32456_ACEOF
32457cat confdefs.h >>conftest.$ac_ext
32458cat >>conftest.$ac_ext <<_ACEOF
32459/* end confdefs.h. */
32460#include <sys/types.h>
32461
32462_ACEOF
32463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32464 $EGREP "uid_t" >/dev/null 2>&1; then
32465 ac_cv_type_uid_t=yes
32466else
32467 ac_cv_type_uid_t=no
32468fi
32469rm -f conftest*
32470
32471fi
32472echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32473echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32474if test $ac_cv_type_uid_t = no; then
32475
32476cat >>confdefs.h <<\_ACEOF
32477#define uid_t int
32478_ACEOF
32479
32480
32481cat >>confdefs.h <<\_ACEOF
32482#define gid_t int
32483_ACEOF
32484
32485fi
32486
32487
d51253e8
RL
32488echo "$as_me:$LINENO: checking for ssize_t" >&5
32489echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32490if test "${ac_cv_type_ssize_t+set}" = set; then
32491 echo $ECHO_N "(cached) $ECHO_C" >&6
32492else
32493 cat >conftest.$ac_ext <<_ACEOF
32494/* confdefs.h. */
32495_ACEOF
32496cat confdefs.h >>conftest.$ac_ext
32497cat >>conftest.$ac_ext <<_ACEOF
32498/* end confdefs.h. */
32499$ac_includes_default
32500int
32501main ()
32502{
32503if ((ssize_t *) 0)
32504 return 0;
32505if (sizeof (ssize_t))
32506 return 0;
32507 ;
32508 return 0;
32509}
32510_ACEOF
32511rm -f conftest.$ac_objext
32512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32513 (eval $ac_compile) 2>conftest.er1
32514 ac_status=$?
32515 grep -v '^ *+' conftest.er1 >conftest.err
32516 rm -f conftest.er1
32517 cat conftest.err >&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); } &&
3565d135
RR
32520 { ac_try='test -z "$ac_c_werror_flag"
32521 || test ! -s conftest.err'
d51253e8
RL
32522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32523 (eval $ac_try) 2>&5
32524 ac_status=$?
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); }; } &&
32527 { ac_try='test -s conftest.$ac_objext'
32528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529 (eval $ac_try) 2>&5
32530 ac_status=$?
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); }; }; then
32533 ac_cv_type_ssize_t=yes
32534else
32535 echo "$as_me: failed program was:" >&5
32536sed 's/^/| /' conftest.$ac_ext >&5
32537
32538ac_cv_type_ssize_t=no
32539fi
32540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32541fi
32542echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32543echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32544if test $ac_cv_type_ssize_t = yes; then
32545
32546cat >>confdefs.h <<_ACEOF
32547#define HAVE_SSIZE_T 1
32548_ACEOF
32549
32550
32551fi
32552
32553
a848cd7e
SC
32554
32555
32556ac_ext=cc
32557ac_cpp='$CXXCPP $CPPFLAGS'
32558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32561
32562echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32563echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32564if test "${wx_cv_size_t_is_uint+set}" = set; then
32565 echo $ECHO_N "(cached) $ECHO_C" >&6
32566else
32567
32568 cat >conftest.$ac_ext <<_ACEOF
32569/* confdefs.h. */
32570_ACEOF
32571cat confdefs.h >>conftest.$ac_ext
32572cat >>conftest.$ac_ext <<_ACEOF
32573/* end confdefs.h. */
32574#include <stddef.h>
32575int
32576main ()
32577{
32578
32579 return 0; }
32580
32581 struct Foo { void foo(size_t); void foo(unsigned int); };
32582
32583 int bar() {
32584
32585 ;
32586 return 0;
32587}
32588_ACEOF
32589rm -f conftest.$ac_objext
32590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32591 (eval $ac_compile) 2>conftest.er1
a848cd7e 32592 ac_status=$?
ac1cb8d3
VS
32593 grep -v '^ *+' conftest.er1 >conftest.err
32594 rm -f conftest.er1
32595 cat conftest.err >&5
a848cd7e
SC
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
3565d135
RR
32598 { ac_try='test -z "$ac_cxx_werror_flag"
32599 || test ! -s conftest.err'
ac1cb8d3
VS
32600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32601 (eval $ac_try) 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; } &&
32605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32607 (eval $ac_try) 2>&5
32608 ac_status=$?
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 (exit $ac_status); }; }; then
32611 wx_cv_size_t_is_uint=no
32612else
32613 echo "$as_me: failed program was:" >&5
32614sed 's/^/| /' conftest.$ac_ext >&5
32615
32616wx_cv_size_t_is_uint=yes
32617
32618fi
ac1cb8d3 32619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32620
32621
32622fi
32623echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32624echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32625
32626if test "$wx_cv_size_t_is_uint" = "yes"; then
32627 cat >>confdefs.h <<\_ACEOF
32628#define wxSIZE_T_IS_UINT 1
32629_ACEOF
32630
32631else
32632 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32633echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32634if test "${wx_cv_size_t_is_ulong+set}" = set; then
32635 echo $ECHO_N "(cached) $ECHO_C" >&6
32636else
32637 cat >conftest.$ac_ext <<_ACEOF
32638/* confdefs.h. */
32639_ACEOF
32640cat confdefs.h >>conftest.$ac_ext
32641cat >>conftest.$ac_ext <<_ACEOF
32642/* end confdefs.h. */
32643#include <stddef.h>
32644int
32645main ()
32646{
32647
32648 return 0; }
32649
32650 struct Foo { void foo(size_t); void foo(unsigned long); };
32651
32652 int bar() {
32653
32654 ;
32655 return 0;
32656}
32657_ACEOF
32658rm -f conftest.$ac_objext
32659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32660 (eval $ac_compile) 2>conftest.er1
a848cd7e 32661 ac_status=$?
ac1cb8d3
VS
32662 grep -v '^ *+' conftest.er1 >conftest.err
32663 rm -f conftest.er1
32664 cat conftest.err >&5
a848cd7e
SC
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } &&
3565d135
RR
32667 { ac_try='test -z "$ac_cxx_werror_flag"
32668 || test ! -s conftest.err'
ac1cb8d3
VS
32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670 (eval $ac_try) 2>&5
32671 ac_status=$?
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); }; } &&
32674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676 (eval $ac_try) 2>&5
32677 ac_status=$?
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); }; }; then
32680 wx_cv_size_t_is_ulong=no
32681else
32682 echo "$as_me: failed program was:" >&5
32683sed 's/^/| /' conftest.$ac_ext >&5
32684
32685wx_cv_size_t_is_ulong=yes
32686
32687fi
ac1cb8d3 32688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32689
32690fi
32691echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32692echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32693
32694 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32695 cat >>confdefs.h <<\_ACEOF
32696#define wxSIZE_T_IS_ULONG 1
32697_ACEOF
32698
32699 fi
32700fi
32701
32702ac_ext=c
32703ac_cpp='$CPP $CPPFLAGS'
32704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707
32708
32709
32710echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32711echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32712if test "${wx_cv_struct_pw_gecos+set}" = set; then
32713 echo $ECHO_N "(cached) $ECHO_C" >&6
32714else
32715
32716 cat >conftest.$ac_ext <<_ACEOF
32717/* confdefs.h. */
32718_ACEOF
32719cat confdefs.h >>conftest.$ac_ext
32720cat >>conftest.$ac_ext <<_ACEOF
32721/* end confdefs.h. */
32722#include <pwd.h>
32723int
32724main ()
32725{
32726
32727 char *p;
32728 struct passwd *pw;
32729 p = pw->pw_gecos;
32730
32731 ;
32732 return 0;
32733}
32734_ACEOF
32735rm -f conftest.$ac_objext
32736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32737 (eval $ac_compile) 2>conftest.er1
a848cd7e 32738 ac_status=$?
ac1cb8d3
VS
32739 grep -v '^ *+' conftest.er1 >conftest.err
32740 rm -f conftest.er1
32741 cat conftest.err >&5
a848cd7e
SC
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); } &&
3565d135
RR
32744 { ac_try='test -z "$ac_c_werror_flag"
32745 || test ! -s conftest.err'
ac1cb8d3
VS
32746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747 (eval $ac_try) 2>&5
32748 ac_status=$?
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); }; } &&
32751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753 (eval $ac_try) 2>&5
32754 ac_status=$?
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; }; then
32757
32758 wx_cv_struct_pw_gecos=yes
32759
32760else
32761 echo "$as_me: failed program was:" >&5
32762sed 's/^/| /' conftest.$ac_ext >&5
32763
32764
32765 wx_cv_struct_pw_gecos=no
32766
32767
32768fi
ac1cb8d3 32769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32770
32771
32772fi
32773echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32774echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32775
32776if test "$wx_cv_struct_pw_gecos" = "yes"; then
32777 cat >>confdefs.h <<\_ACEOF
32778#define HAVE_PW_GECOS 1
32779_ACEOF
32780
32781fi
32782
32783
47a7e797 32784if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32785 cat >>confdefs.h <<\_ACEOF
32786#define wxUSE_WCHAR_T 1
32787_ACEOF
32788
32789
32790 WCSLEN_FOUND=0
32791 WCHAR_LINK=
32792
32793for ac_func in wcslen
32794do
32795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32796echo "$as_me:$LINENO: checking for $ac_func" >&5
32797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32798if eval "test \"\${$as_ac_var+set}\" = set"; then
32799 echo $ECHO_N "(cached) $ECHO_C" >&6
32800else
32801 cat >conftest.$ac_ext <<_ACEOF
32802/* confdefs.h. */
32803_ACEOF
32804cat confdefs.h >>conftest.$ac_ext
32805cat >>conftest.$ac_ext <<_ACEOF
32806/* end confdefs.h. */
ac1cb8d3
VS
32807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32809#define $ac_func innocuous_$ac_func
32810
a848cd7e
SC
32811/* System header to define __stub macros and hopefully few prototypes,
32812 which can conflict with char $ac_func (); below.
32813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32814 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32815
a848cd7e
SC
32816#ifdef __STDC__
32817# include <limits.h>
32818#else
32819# include <assert.h>
32820#endif
ac1cb8d3
VS
32821
32822#undef $ac_func
32823
a848cd7e
SC
32824/* Override any gcc2 internal prototype to avoid an error. */
32825#ifdef __cplusplus
32826extern "C"
32827{
32828#endif
32829/* We use char because int might match the return type of a gcc2
32830 builtin and then its argument prototype would still apply. */
32831char $ac_func ();
32832/* The GNU C library defines this for functions which it implements
32833 to always fail with ENOSYS. Some functions are actually named
32834 something starting with __ and the normal name is an alias. */
32835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32836choke me
32837#else
32838char (*f) () = $ac_func;
32839#endif
32840#ifdef __cplusplus
32841}
32842#endif
32843
32844int
32845main ()
32846{
32847return f != $ac_func;
32848 ;
32849 return 0;
32850}
32851_ACEOF
32852rm -f conftest.$ac_objext conftest$ac_exeext
32853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32854 (eval $ac_link) 2>conftest.er1
a848cd7e 32855 ac_status=$?
ac1cb8d3
VS
32856 grep -v '^ *+' conftest.er1 >conftest.err
32857 rm -f conftest.er1
32858 cat conftest.err >&5
a848cd7e
SC
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); } &&
3565d135
RR
32861 { ac_try='test -z "$ac_c_werror_flag"
32862 || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 eval "$as_ac_var=yes"
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879eval "$as_ac_var=no"
32880fi
ac1cb8d3
VS
32881rm -f conftest.err conftest.$ac_objext \
32882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32883fi
32884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32886if test `eval echo '${'$as_ac_var'}'` = yes; then
32887 cat >>confdefs.h <<_ACEOF
32888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32889_ACEOF
32890 WCSLEN_FOUND=1
32891fi
32892done
32893
32894
32895 if test "$WCSLEN_FOUND" = 0; then
32896 if test "$TOOLKIT" = "MSW"; then
32897 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32898echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32899if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32900 echo $ECHO_N "(cached) $ECHO_C" >&6
32901else
32902 ac_check_lib_save_LIBS=$LIBS
32903LIBS="-lmsvcrt $LIBS"
32904cat >conftest.$ac_ext <<_ACEOF
32905/* confdefs.h. */
32906_ACEOF
32907cat confdefs.h >>conftest.$ac_ext
32908cat >>conftest.$ac_ext <<_ACEOF
32909/* end confdefs.h. */
32910
32911/* Override any gcc2 internal prototype to avoid an error. */
32912#ifdef __cplusplus
32913extern "C"
32914#endif
32915/* We use char because int might match the return type of a gcc2
32916 builtin and then its argument prototype would still apply. */
32917char wcslen ();
32918int
32919main ()
32920{
32921wcslen ();
32922 ;
32923 return 0;
32924}
32925_ACEOF
32926rm -f conftest.$ac_objext conftest$ac_exeext
32927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32928 (eval $ac_link) 2>conftest.er1
a848cd7e 32929 ac_status=$?
ac1cb8d3
VS
32930 grep -v '^ *+' conftest.er1 >conftest.err
32931 rm -f conftest.er1
32932 cat conftest.err >&5
a848cd7e
SC
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); } &&
3565d135
RR
32935 { ac_try='test -z "$ac_c_werror_flag"
32936 || test ! -s conftest.err'
ac1cb8d3
VS
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32939 ac_status=$?
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; } &&
32942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; }; then
32948 ac_cv_lib_msvcrt_wcslen=yes
32949else
32950 echo "$as_me: failed program was:" >&5
32951sed 's/^/| /' conftest.$ac_ext >&5
32952
32953ac_cv_lib_msvcrt_wcslen=no
32954fi
ac1cb8d3
VS
32955rm -f conftest.err conftest.$ac_objext \
32956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32957LIBS=$ac_check_lib_save_LIBS
32958fi
32959echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32960echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32961if test $ac_cv_lib_msvcrt_wcslen = yes; then
32962 WCHAR_OK=1
32963fi
32964
32965 else
32966 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32967echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32968if test "${ac_cv_lib_w_wcslen+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32970else
32971 ac_check_lib_save_LIBS=$LIBS
32972LIBS="-lw $LIBS"
32973cat >conftest.$ac_ext <<_ACEOF
32974/* confdefs.h. */
32975_ACEOF
32976cat confdefs.h >>conftest.$ac_ext
32977cat >>conftest.$ac_ext <<_ACEOF
32978/* end confdefs.h. */
32979
32980/* Override any gcc2 internal prototype to avoid an error. */
32981#ifdef __cplusplus
32982extern "C"
32983#endif
32984/* We use char because int might match the return type of a gcc2
32985 builtin and then its argument prototype would still apply. */
32986char wcslen ();
32987int
32988main ()
32989{
32990wcslen ();
32991 ;
32992 return 0;
32993}
32994_ACEOF
32995rm -f conftest.$ac_objext conftest$ac_exeext
32996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32997 (eval $ac_link) 2>conftest.er1
a848cd7e 32998 ac_status=$?
ac1cb8d3
VS
32999 grep -v '^ *+' conftest.er1 >conftest.err
33000 rm -f conftest.er1
33001 cat conftest.err >&5
a848cd7e
SC
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); } &&
3565d135
RR
33004 { ac_try='test -z "$ac_c_werror_flag"
33005 || test ! -s conftest.err'
ac1cb8d3
VS
33006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007 (eval $ac_try) 2>&5
33008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
33017 ac_cv_lib_w_wcslen=yes
33018else
33019 echo "$as_me: failed program was:" >&5
33020sed 's/^/| /' conftest.$ac_ext >&5
33021
33022ac_cv_lib_w_wcslen=no
33023fi
ac1cb8d3
VS
33024rm -f conftest.err conftest.$ac_objext \
33025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33026LIBS=$ac_check_lib_save_LIBS
33027fi
33028echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33029echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33030if test $ac_cv_lib_w_wcslen = yes; then
33031
33032 WCHAR_LINK=" -lw"
33033 WCSLEN_FOUND=1
33034
33035fi
33036
33037 fi
33038 fi
33039
33040 if test "$WCSLEN_FOUND" = 1; then
33041 cat >>confdefs.h <<\_ACEOF
33042#define HAVE_WCSLEN 1
33043_ACEOF
33044
33045 fi
33046
efdf6afe 33047 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33048 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33049 fi
33050
efdf6afe
VZ
33051 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33052echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33053if test "${ac_cv_type_mbstate_t+set}" = set; then
33054 echo $ECHO_N "(cached) $ECHO_C" >&6
33055else
33056 cat >conftest.$ac_ext <<_ACEOF
33057/* confdefs.h. */
33058_ACEOF
33059cat confdefs.h >>conftest.$ac_ext
33060cat >>conftest.$ac_ext <<_ACEOF
33061/* end confdefs.h. */
33062#include <wchar.h>
33063
33064int
33065main ()
33066{
33067if ((mbstate_t *) 0)
33068 return 0;
33069if (sizeof (mbstate_t))
33070 return 0;
33071 ;
33072 return 0;
33073}
33074_ACEOF
33075rm -f conftest.$ac_objext
33076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33077 (eval $ac_compile) 2>conftest.er1
33078 ac_status=$?
33079 grep -v '^ *+' conftest.er1 >conftest.err
33080 rm -f conftest.er1
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
3565d135
RR
33084 { ac_try='test -z "$ac_c_werror_flag"
33085 || test ! -s conftest.err'
efdf6afe
VZ
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093 (eval $ac_try) 2>&5
33094 ac_status=$?
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; }; then
33097 ac_cv_type_mbstate_t=yes
33098else
33099 echo "$as_me: failed program was:" >&5
33100sed 's/^/| /' conftest.$ac_ext >&5
33101
33102ac_cv_type_mbstate_t=no
33103fi
33104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33105fi
33106echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33107echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33108if test $ac_cv_type_mbstate_t = yes; then
33109
33110cat >>confdefs.h <<_ACEOF
33111#define HAVE_MBSTATE_T 1
33112_ACEOF
33113
a848cd7e
SC
33114
33115for ac_func in wcsrtombs
33116do
33117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33118echo "$as_me:$LINENO: checking for $ac_func" >&5
33119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33120if eval "test \"\${$as_ac_var+set}\" = set"; then
33121 echo $ECHO_N "(cached) $ECHO_C" >&6
33122else
33123 cat >conftest.$ac_ext <<_ACEOF
33124/* confdefs.h. */
33125_ACEOF
33126cat confdefs.h >>conftest.$ac_ext
33127cat >>conftest.$ac_ext <<_ACEOF
33128/* end confdefs.h. */
ac1cb8d3
VS
33129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33131#define $ac_func innocuous_$ac_func
33132
a848cd7e
SC
33133/* System header to define __stub macros and hopefully few prototypes,
33134 which can conflict with char $ac_func (); below.
33135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33136 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33137
a848cd7e
SC
33138#ifdef __STDC__
33139# include <limits.h>
33140#else
33141# include <assert.h>
33142#endif
ac1cb8d3
VS
33143
33144#undef $ac_func
33145
a848cd7e
SC
33146/* Override any gcc2 internal prototype to avoid an error. */
33147#ifdef __cplusplus
33148extern "C"
33149{
33150#endif
33151/* We use char because int might match the return type of a gcc2
33152 builtin and then its argument prototype would still apply. */
33153char $ac_func ();
33154/* The GNU C library defines this for functions which it implements
33155 to always fail with ENOSYS. Some functions are actually named
33156 something starting with __ and the normal name is an alias. */
33157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33158choke me
33159#else
33160char (*f) () = $ac_func;
33161#endif
33162#ifdef __cplusplus
33163}
33164#endif
33165
33166int
33167main ()
33168{
33169return f != $ac_func;
33170 ;
33171 return 0;
33172}
33173_ACEOF
33174rm -f conftest.$ac_objext conftest$ac_exeext
33175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33176 (eval $ac_link) 2>conftest.er1
a848cd7e 33177 ac_status=$?
ac1cb8d3
VS
33178 grep -v '^ *+' conftest.er1 >conftest.err
33179 rm -f conftest.er1
33180 cat conftest.err >&5
a848cd7e
SC
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); } &&
3565d135
RR
33183 { ac_try='test -z "$ac_c_werror_flag"
33184 || test ! -s conftest.err'
ac1cb8d3
VS
33185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33186 (eval $ac_try) 2>&5
33187 ac_status=$?
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); }; } &&
33190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192 (eval $ac_try) 2>&5
33193 ac_status=$?
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196 eval "$as_ac_var=yes"
33197else
33198 echo "$as_me: failed program was:" >&5
33199sed 's/^/| /' conftest.$ac_ext >&5
33200
33201eval "$as_ac_var=no"
33202fi
ac1cb8d3
VS
33203rm -f conftest.err conftest.$ac_objext \
33204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33205fi
33206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33208if test `eval echo '${'$as_ac_var'}'` = yes; then
33209 cat >>confdefs.h <<_ACEOF
33210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33211_ACEOF
33212
33213fi
33214done
33215
efdf6afe
VZ
33216fi
33217
a848cd7e
SC
33218else
33219 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33220echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33221fi
33222
33223
33224
33225ac_ext=cc
33226ac_cpp='$CXXCPP $CPPFLAGS'
33227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33230
33231
33232
4a767dd5
VZ
33233
33234for ac_func in snprintf vsnprintf
a848cd7e
SC
33235do
33236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33237echo "$as_me:$LINENO: checking for $ac_func" >&5
33238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33239if eval "test \"\${$as_ac_var+set}\" = set"; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33241else
33242 cat >conftest.$ac_ext <<_ACEOF
33243/* confdefs.h. */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h. */
ac1cb8d3
VS
33248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33250#define $ac_func innocuous_$ac_func
33251
a848cd7e
SC
33252/* System header to define __stub macros and hopefully few prototypes,
33253 which can conflict with char $ac_func (); below.
33254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33256
a848cd7e
SC
33257#ifdef __STDC__
33258# include <limits.h>
33259#else
33260# include <assert.h>
33261#endif
ac1cb8d3
VS
33262
33263#undef $ac_func
33264
a848cd7e
SC
33265/* Override any gcc2 internal prototype to avoid an error. */
33266#ifdef __cplusplus
33267extern "C"
33268{
33269#endif
33270/* We use char because int might match the return type of a gcc2
33271 builtin and then its argument prototype would still apply. */
33272char $ac_func ();
33273/* The GNU C library defines this for functions which it implements
33274 to always fail with ENOSYS. Some functions are actually named
33275 something starting with __ and the normal name is an alias. */
33276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33277choke me
33278#else
33279char (*f) () = $ac_func;
33280#endif
33281#ifdef __cplusplus
33282}
33283#endif
33284
33285int
33286main ()
33287{
33288return f != $ac_func;
33289 ;
33290 return 0;
33291}
33292_ACEOF
33293rm -f conftest.$ac_objext conftest$ac_exeext
33294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33295 (eval $ac_link) 2>conftest.er1
a848cd7e 33296 ac_status=$?
ac1cb8d3
VS
33297 grep -v '^ *+' conftest.er1 >conftest.err
33298 rm -f conftest.er1
33299 cat conftest.err >&5
a848cd7e
SC
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); } &&
3565d135
RR
33302 { ac_try='test -z "$ac_cxx_werror_flag"
33303 || test ! -s conftest.err'
ac1cb8d3
VS
33304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33305 (eval $ac_try) 2>&5
33306 ac_status=$?
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); }; } &&
33309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33311 (eval $ac_try) 2>&5
33312 ac_status=$?
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); }; }; then
33315 eval "$as_ac_var=yes"
33316else
33317 echo "$as_me: failed program was:" >&5
33318sed 's/^/| /' conftest.$ac_ext >&5
33319
33320eval "$as_ac_var=no"
33321fi
ac1cb8d3
VS
33322rm -f conftest.err conftest.$ac_objext \
33323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33324fi
33325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33327if test `eval echo '${'$as_ac_var'}'` = yes; then
33328 cat >>confdefs.h <<_ACEOF
33329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33330_ACEOF
33331
33332fi
33333done
33334
33335
33336if test "$ac_cv_func_vsnprintf" = "yes"; then
33337 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33338echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33339if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33340 echo $ECHO_N "(cached) $ECHO_C" >&6
33341else
33342
efdf6afe 33343 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33344/* confdefs.h. */
33345_ACEOF
33346cat confdefs.h >>conftest.$ac_ext
33347cat >>conftest.$ac_ext <<_ACEOF
33348/* end confdefs.h. */
33349
33350 #include <stdio.h>
33351 #include <stdarg.h>
efdf6afe
VZ
33352 #ifdef __MSL__
33353 #if __MSL__ >= 0x6000
33354 namespace std {}
33355 using namespace std;
33356 #endif
33357 #endif
a848cd7e
SC
33358
33359int
33360main ()
33361{
33362
33363 char *buf;
33364 va_list ap;
62fa8b3a 33365 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33366
33367 ;
33368 return 0;
33369}
33370_ACEOF
33371rm -f conftest.$ac_objext
33372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33373 (eval $ac_compile) 2>conftest.er1
33374 ac_status=$?
33375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
3565d135
RR
33380 { ac_try='test -z "$ac_cxx_werror_flag"
33381 || test ! -s conftest.err'
c122b164
DE
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'
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_func_vsnprintf_decl=yes
33394else
33395 echo "$as_me: failed program was:" >&5
33396sed 's/^/| /' conftest.$ac_ext >&5
33397
a848cd7e
SC
33398wx_cv_func_vsnprintf_decl=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_func_vsnprintf_decl" >&5
33406echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33407
33408 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33409 cat >>confdefs.h <<\_ACEOF
33410#define HAVE_VSNPRINTF_DECL 1
33411_ACEOF
33412
62fa8b3a
MW
33413
33414 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33415echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33416if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33418else
33419
33420 cat >conftest.$ac_ext <<_ACEOF
33421/* confdefs.h. */
33422_ACEOF
33423cat confdefs.h >>conftest.$ac_ext
33424cat >>conftest.$ac_ext <<_ACEOF
33425/* end confdefs.h. */
33426
33427 #include <stdio.h>
33428 #include <stdarg.h>
33429 #ifdef __MSL__
33430 #if __MSL__ >= 0x6000
33431 namespace std {}
33432 using namespace std;
33433 #endif
33434 #endif
33435
33436int
33437main ()
33438{
33439
33440 char *buf;
33441 va_list ap;
33442 const char *fmt = "%s";
33443 vsnprintf(buf, 10u, fmt, ap);
33444
33445 ;
33446 return 0;
33447}
33448_ACEOF
33449rm -f conftest.$ac_objext
33450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33451 (eval $ac_compile) 2>conftest.er1
33452 ac_status=$?
33453 grep -v '^ *+' conftest.er1 >conftest.err
33454 rm -f conftest.er1
33455 cat conftest.err >&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); } &&
3565d135
RR
33458 { ac_try='test -z "$ac_cxx_werror_flag"
33459 || test ! -s conftest.err'
62fa8b3a
MW
33460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33461 (eval $ac_try) 2>&5
33462 ac_status=$?
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); }; } &&
33465 { ac_try='test -s conftest.$ac_objext'
33466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33467 (eval $ac_try) 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; }; then
33471 wx_cv_func_broken_vsnprintf_decl=no
33472else
33473 echo "$as_me: failed program was:" >&5
33474sed 's/^/| /' conftest.$ac_ext >&5
33475
33476wx_cv_func_broken_vsnprintf_decl=yes
33477
33478fi
33479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33480
33481
33482fi
33483echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33484echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33485
33486 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33487 cat >>confdefs.h <<\_ACEOF
33488#define HAVE_BROKEN_VSNPRINTF_DECL 1
33489_ACEOF
33490
33491 fi
a848cd7e
SC
33492 fi
33493fi
33494
4a767dd5
VZ
33495if test "$ac_cv_func_snprintf" = "yes"; then
33496 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33497echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33498if test "${wx_cv_func_snprintf_decl+set}" = set; then
33499 echo $ECHO_N "(cached) $ECHO_C" >&6
33500else
33501
33502 cat >conftest.$ac_ext <<_ACEOF
33503/* confdefs.h. */
33504_ACEOF
33505cat confdefs.h >>conftest.$ac_ext
33506cat >>conftest.$ac_ext <<_ACEOF
33507/* end confdefs.h. */
33508
33509 #include <stdio.h>
33510 #include <stdarg.h>
33511 #ifdef __MSL__
33512 #if __MSL__ >= 0x6000
33513 namespace std {}
33514 using namespace std;
33515 #endif
33516 #endif
33517
33518int
33519main ()
33520{
33521
33522 char *buf;
62fa8b3a 33523 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33524
33525 ;
33526 return 0;
33527}
33528_ACEOF
33529rm -f conftest.$ac_objext
33530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33531 (eval $ac_compile) 2>conftest.er1
33532 ac_status=$?
33533 grep -v '^ *+' conftest.er1 >conftest.err
33534 rm -f conftest.er1
33535 cat conftest.err >&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); } &&
3565d135
RR
33538 { ac_try='test -z "$ac_cxx_werror_flag"
33539 || test ! -s conftest.err'
4a767dd5
VZ
33540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541 (eval $ac_try) 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; } &&
33545 { ac_try='test -s conftest.$ac_objext'
33546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33547 (eval $ac_try) 2>&5
33548 ac_status=$?
33549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550 (exit $ac_status); }; }; then
33551 wx_cv_func_snprintf_decl=yes
33552else
33553 echo "$as_me: failed program was:" >&5
33554sed 's/^/| /' conftest.$ac_ext >&5
33555
33556wx_cv_func_snprintf_decl=no
33557
33558fi
33559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33560
33561
33562fi
33563echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33564echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33565
33566 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33567 cat >>confdefs.h <<\_ACEOF
33568#define HAVE_SNPRINTF_DECL 1
33569_ACEOF
33570
62fa8b3a
MW
33571
33572 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33573echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33574if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33576else
33577
33578 cat >conftest.$ac_ext <<_ACEOF
33579/* confdefs.h. */
33580_ACEOF
33581cat confdefs.h >>conftest.$ac_ext
33582cat >>conftest.$ac_ext <<_ACEOF
33583/* end confdefs.h. */
33584
33585 #include <stdio.h>
33586 #include <stdarg.h>
33587 #ifdef __MSL__
33588 #if __MSL__ >= 0x6000
33589 namespace std {}
33590 using namespace std;
33591 #endif
33592 #endif
33593
33594int
33595main ()
33596{
33597
33598 char *buf;
33599 const char *fmt = "%s";
33600 snprintf(buf, 10u, fmt, "wx");
33601
33602 ;
33603 return 0;
33604}
33605_ACEOF
33606rm -f conftest.$ac_objext
33607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33608 (eval $ac_compile) 2>conftest.er1
33609 ac_status=$?
33610 grep -v '^ *+' conftest.er1 >conftest.err
33611 rm -f conftest.er1
33612 cat conftest.err >&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); } &&
3565d135
RR
33615 { ac_try='test -z "$ac_cxx_werror_flag"
33616 || test ! -s conftest.err'
62fa8b3a
MW
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest.$ac_objext'
33623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33624 (eval $ac_try) 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
33628 wx_cv_func_broken_snprintf_decl=no
33629else
33630 echo "$as_me: failed program was:" >&5
33631sed 's/^/| /' conftest.$ac_ext >&5
33632
33633wx_cv_func_broken_snprintf_decl=yes
33634
33635fi
33636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33637
33638
33639fi
33640echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33641echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33642
33643 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33644 cat >>confdefs.h <<\_ACEOF
33645#define HAVE_BROKEN_SNPRINTF_DECL 1
33646_ACEOF
33647
33648 fi
4a767dd5
VZ
33649 fi
33650fi
33651
a848cd7e
SC
33652if test "$wxUSE_UNICODE" = yes; then
33653
33654
33655
fbe47c7b
VS
33656
33657
33658
33659for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33660do
33661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33662echo "$as_me:$LINENO: checking for $ac_func" >&5
33663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33664if eval "test \"\${$as_ac_var+set}\" = set"; then
33665 echo $ECHO_N "(cached) $ECHO_C" >&6
33666else
33667 cat >conftest.$ac_ext <<_ACEOF
33668/* confdefs.h. */
33669_ACEOF
33670cat confdefs.h >>conftest.$ac_ext
33671cat >>conftest.$ac_ext <<_ACEOF
33672/* end confdefs.h. */
ac1cb8d3
VS
33673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33675#define $ac_func innocuous_$ac_func
33676
a848cd7e
SC
33677/* System header to define __stub macros and hopefully few prototypes,
33678 which can conflict with char $ac_func (); below.
33679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33681
a848cd7e
SC
33682#ifdef __STDC__
33683# include <limits.h>
33684#else
33685# include <assert.h>
33686#endif
ac1cb8d3
VS
33687
33688#undef $ac_func
33689
a848cd7e
SC
33690/* Override any gcc2 internal prototype to avoid an error. */
33691#ifdef __cplusplus
33692extern "C"
33693{
33694#endif
33695/* We use char because int might match the return type of a gcc2
33696 builtin and then its argument prototype would still apply. */
33697char $ac_func ();
33698/* The GNU C library defines this for functions which it implements
33699 to always fail with ENOSYS. Some functions are actually named
33700 something starting with __ and the normal name is an alias. */
33701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33702choke me
33703#else
33704char (*f) () = $ac_func;
33705#endif
33706#ifdef __cplusplus
33707}
33708#endif
33709
33710int
33711main ()
33712{
33713return f != $ac_func;
33714 ;
33715 return 0;
33716}
33717_ACEOF
33718rm -f conftest.$ac_objext conftest$ac_exeext
33719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33720 (eval $ac_link) 2>conftest.er1
a848cd7e 33721 ac_status=$?
ac1cb8d3
VS
33722 grep -v '^ *+' conftest.er1 >conftest.err
33723 rm -f conftest.er1
33724 cat conftest.err >&5
a848cd7e
SC
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } &&
3565d135
RR
33727 { ac_try='test -z "$ac_cxx_werror_flag"
33728 || test ! -s conftest.err'
ac1cb8d3
VS
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33731 ac_status=$?
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; } &&
33734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736 (eval $ac_try) 2>&5
33737 ac_status=$?
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 eval "$as_ac_var=yes"
33741else
33742 echo "$as_me: failed program was:" >&5
33743sed 's/^/| /' conftest.$ac_ext >&5
33744
33745eval "$as_ac_var=no"
33746fi
ac1cb8d3
VS
33747rm -f conftest.err conftest.$ac_objext \
33748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33749fi
33750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33752if test `eval echo '${'$as_ac_var'}'` = yes; then
33753 cat >>confdefs.h <<_ACEOF
33754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33755_ACEOF
33756
33757fi
33758done
33759
33760
33761 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33762echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33763 cat >conftest.$ac_ext <<_ACEOF
33764/* confdefs.h. */
33765_ACEOF
33766cat confdefs.h >>conftest.$ac_ext
33767cat >>conftest.$ac_ext <<_ACEOF
33768/* end confdefs.h. */
33769#include <wchar.h>
33770int
33771main ()
33772{
33773&_vsnwprintf;
33774 ;
33775 return 0;
33776}
33777_ACEOF
33778rm -f conftest.$ac_objext
33779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33780 (eval $ac_compile) 2>conftest.er1
a848cd7e 33781 ac_status=$?
ac1cb8d3
VS
33782 grep -v '^ *+' conftest.er1 >conftest.err
33783 rm -f conftest.er1
33784 cat conftest.err >&5
a848cd7e
SC
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } &&
3565d135
RR
33787 { ac_try='test -z "$ac_cxx_werror_flag"
33788 || test ! -s conftest.err'
ac1cb8d3
VS
33789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790 (eval $ac_try) 2>&5
33791 ac_status=$?
33792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793 (exit $ac_status); }; } &&
33794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796 (eval $ac_try) 2>&5
33797 ac_status=$?
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); }; }; then
33800 echo "$as_me:$LINENO: result: yes" >&5
33801echo "${ECHO_T}yes" >&6
33802 cat >>confdefs.h <<\_ACEOF
33803#define HAVE__VSNWPRINTF 1
33804_ACEOF
33805
33806else
33807 echo "$as_me: failed program was:" >&5
33808sed 's/^/| /' conftest.$ac_ext >&5
33809
33810echo "$as_me:$LINENO: result: no" >&5
33811echo "${ECHO_T}no" >&6
33812fi
ac1cb8d3 33813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33814fi
33815
33816ac_ext=c
33817ac_cpp='$CPP $CPPFLAGS'
33818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33820ac_compiler_gnu=$ac_cv_c_compiler_gnu
33821
33822
6ebeb4c7
VZ
33823if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33824
33825for ac_func in fnmatch
33826do
33827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33828echo "$as_me:$LINENO: checking for $ac_func" >&5
33829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33830if eval "test \"\${$as_ac_var+set}\" = set"; then
33831 echo $ECHO_N "(cached) $ECHO_C" >&6
33832else
33833 cat >conftest.$ac_ext <<_ACEOF
33834/* confdefs.h. */
33835_ACEOF
33836cat confdefs.h >>conftest.$ac_ext
33837cat >>conftest.$ac_ext <<_ACEOF
33838/* end confdefs.h. */
33839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33841#define $ac_func innocuous_$ac_func
33842
33843/* System header to define __stub macros and hopefully few prototypes,
33844 which can conflict with char $ac_func (); below.
33845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33846 <limits.h> exists even on freestanding compilers. */
33847
33848#ifdef __STDC__
33849# include <limits.h>
33850#else
33851# include <assert.h>
33852#endif
33853
33854#undef $ac_func
33855
33856/* Override any gcc2 internal prototype to avoid an error. */
33857#ifdef __cplusplus
33858extern "C"
33859{
33860#endif
33861/* We use char because int might match the return type of a gcc2
33862 builtin and then its argument prototype would still apply. */
33863char $ac_func ();
33864/* The GNU C library defines this for functions which it implements
33865 to always fail with ENOSYS. Some functions are actually named
33866 something starting with __ and the normal name is an alias. */
33867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33868choke me
33869#else
33870char (*f) () = $ac_func;
33871#endif
33872#ifdef __cplusplus
33873}
33874#endif
33875
33876int
33877main ()
33878{
33879return f != $ac_func;
33880 ;
33881 return 0;
33882}
33883_ACEOF
33884rm -f conftest.$ac_objext conftest$ac_exeext
33885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33886 (eval $ac_link) 2>conftest.er1
33887 ac_status=$?
33888 grep -v '^ *+' conftest.er1 >conftest.err
33889 rm -f conftest.er1
33890 cat conftest.err >&5
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); } &&
3565d135
RR
33893 { ac_try='test -z "$ac_c_werror_flag"
33894 || test ! -s conftest.err'
6ebeb4c7
VZ
33895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33896 (eval $ac_try) 2>&5
33897 ac_status=$?
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); }; } &&
33900 { ac_try='test -s conftest$ac_exeext'
33901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33902 (eval $ac_try) 2>&5
33903 ac_status=$?
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; }; then
33906 eval "$as_ac_var=yes"
33907else
33908 echo "$as_me: failed program was:" >&5
33909sed 's/^/| /' conftest.$ac_ext >&5
33910
33911eval "$as_ac_var=no"
33912fi
33913rm -f conftest.err conftest.$ac_objext \
33914 conftest$ac_exeext conftest.$ac_ext
33915fi
33916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33918if test `eval echo '${'$as_ac_var'}'` = yes; then
33919 cat >>confdefs.h <<_ACEOF
33920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33921_ACEOF
33922
33923fi
33924done
33925
33926fi
33927
33928if test "$wxUSE_FILE" = "yes"; then
33929
33930for ac_func in fsync
33931do
33932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33933echo "$as_me:$LINENO: checking for $ac_func" >&5
33934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33935if eval "test \"\${$as_ac_var+set}\" = set"; then
33936 echo $ECHO_N "(cached) $ECHO_C" >&6
33937else
33938 cat >conftest.$ac_ext <<_ACEOF
33939/* confdefs.h. */
33940_ACEOF
33941cat confdefs.h >>conftest.$ac_ext
33942cat >>conftest.$ac_ext <<_ACEOF
33943/* end confdefs.h. */
33944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33946#define $ac_func innocuous_$ac_func
33947
33948/* System header to define __stub macros and hopefully few prototypes,
33949 which can conflict with char $ac_func (); below.
33950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33951 <limits.h> exists even on freestanding compilers. */
33952
33953#ifdef __STDC__
33954# include <limits.h>
33955#else
33956# include <assert.h>
33957#endif
33958
33959#undef $ac_func
33960
33961/* Override any gcc2 internal prototype to avoid an error. */
33962#ifdef __cplusplus
33963extern "C"
33964{
33965#endif
33966/* We use char because int might match the return type of a gcc2
33967 builtin and then its argument prototype would still apply. */
33968char $ac_func ();
33969/* The GNU C library defines this for functions which it implements
33970 to always fail with ENOSYS. Some functions are actually named
33971 something starting with __ and the normal name is an alias. */
33972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33973choke me
33974#else
33975char (*f) () = $ac_func;
33976#endif
33977#ifdef __cplusplus
33978}
33979#endif
33980
33981int
33982main ()
33983{
33984return f != $ac_func;
33985 ;
33986 return 0;
33987}
33988_ACEOF
33989rm -f conftest.$ac_objext conftest$ac_exeext
33990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33991 (eval $ac_link) 2>conftest.er1
33992 ac_status=$?
33993 grep -v '^ *+' conftest.er1 >conftest.err
33994 rm -f conftest.er1
33995 cat conftest.err >&5
33996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997 (exit $ac_status); } &&
3565d135
RR
33998 { ac_try='test -z "$ac_c_werror_flag"
33999 || test ! -s conftest.err'
6ebeb4c7
VZ
34000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34001 (eval $ac_try) 2>&5
34002 ac_status=$?
34003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004 (exit $ac_status); }; } &&
34005 { ac_try='test -s conftest$ac_exeext'
34006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34007 (eval $ac_try) 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; }; then
34011 eval "$as_ac_var=yes"
34012else
34013 echo "$as_me: failed program was:" >&5
34014sed 's/^/| /' conftest.$ac_ext >&5
34015
34016eval "$as_ac_var=no"
34017fi
34018rm -f conftest.err conftest.$ac_objext \
34019 conftest$ac_exeext conftest.$ac_ext
34020fi
34021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34022echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34023if test `eval echo '${'$as_ac_var'}'` = yes; then
34024 cat >>confdefs.h <<_ACEOF
34025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34026_ACEOF
34027
34028fi
34029done
34030
34031fi
a848cd7e
SC
34032
34033
34034if test "$TOOLKIT" != "MSW"; then
34035
34036
34037
34038
34039ac_ext=cc
34040ac_cpp='$CXXCPP $CPPFLAGS'
34041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34044
34045
34046
34047
34048# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34049if test "${with_libiconv_prefix+set}" = set; then
34050 withval="$with_libiconv_prefix"
34051
34052 for dir in `echo "$withval" | tr : ' '`; do
34053 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34054 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34055 done
34056
34057fi;
34058
34059 echo "$as_me:$LINENO: checking for iconv" >&5
34060echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34061if test "${am_cv_func_iconv+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34063else
34064
34065 am_cv_func_iconv="no, consider installing GNU libiconv"
34066 am_cv_lib_iconv=no
34067 cat >conftest.$ac_ext <<_ACEOF
34068/* confdefs.h. */
34069_ACEOF
34070cat confdefs.h >>conftest.$ac_ext
34071cat >>conftest.$ac_ext <<_ACEOF
34072/* end confdefs.h. */
34073#include <stdlib.h>
34074#include <iconv.h>
34075int
34076main ()
34077{
34078iconv_t cd = iconv_open("","");
34079 iconv(cd,NULL,NULL,NULL,NULL);
34080 iconv_close(cd);
34081 ;
34082 return 0;
34083}
34084_ACEOF
34085rm -f conftest.$ac_objext conftest$ac_exeext
34086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34087 (eval $ac_link) 2>conftest.er1
a848cd7e 34088 ac_status=$?
ac1cb8d3
VS
34089 grep -v '^ *+' conftest.er1 >conftest.err
34090 rm -f conftest.er1
34091 cat conftest.err >&5
a848cd7e
SC
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } &&
3565d135
RR
34094 { ac_try='test -z "$ac_cxx_werror_flag"
34095 || test ! -s conftest.err'
ac1cb8d3
VS
34096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34097 (eval $ac_try) 2>&5
34098 ac_status=$?
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); }; } &&
34101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; }; then
34107 am_cv_func_iconv=yes
34108else
34109 echo "$as_me: failed program was:" >&5
34110sed 's/^/| /' conftest.$ac_ext >&5
34111
34112fi
ac1cb8d3
VS
34113rm -f conftest.err conftest.$ac_objext \
34114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34115 if test "$am_cv_func_iconv" != yes; then
34116 am_save_LIBS="$LIBS"
34117 LIBS="$LIBS -liconv"
34118 cat >conftest.$ac_ext <<_ACEOF
34119/* confdefs.h. */
34120_ACEOF
34121cat confdefs.h >>conftest.$ac_ext
34122cat >>conftest.$ac_ext <<_ACEOF
34123/* end confdefs.h. */
34124#include <stdlib.h>
34125#include <iconv.h>
34126int
34127main ()
34128{
34129iconv_t cd = iconv_open("","");
34130 iconv(cd,NULL,NULL,NULL,NULL);
34131 iconv_close(cd);
34132 ;
34133 return 0;
34134}
34135_ACEOF
34136rm -f conftest.$ac_objext conftest$ac_exeext
34137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34138 (eval $ac_link) 2>conftest.er1
a848cd7e 34139 ac_status=$?
ac1cb8d3
VS
34140 grep -v '^ *+' conftest.er1 >conftest.err
34141 rm -f conftest.er1
34142 cat conftest.err >&5
a848cd7e
SC
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } &&
3565d135
RR
34145 { ac_try='test -z "$ac_cxx_werror_flag"
34146 || test ! -s conftest.err'
ac1cb8d3
VS
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; } &&
34152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; }; then
34158 am_cv_lib_iconv=yes
34159 am_cv_func_iconv=yes
34160else
34161 echo "$as_me: failed program was:" >&5
34162sed 's/^/| /' conftest.$ac_ext >&5
34163
34164fi
ac1cb8d3
VS
34165rm -f conftest.err conftest.$ac_objext \
34166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34167 LIBS="$am_save_LIBS"
34168 fi
34169
34170fi
34171echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34172echo "${ECHO_T}$am_cv_func_iconv" >&6
34173 if test "$am_cv_func_iconv" = yes; then
34174
34175cat >>confdefs.h <<\_ACEOF
34176#define HAVE_ICONV 1
34177_ACEOF
34178
34179 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34180echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34181if test "${wx_cv_func_iconv_const+set}" = set; then
34182 echo $ECHO_N "(cached) $ECHO_C" >&6
34183else
34184 cat >conftest.$ac_ext <<_ACEOF
34185/* confdefs.h. */
34186_ACEOF
34187cat confdefs.h >>conftest.$ac_ext
34188cat >>conftest.$ac_ext <<_ACEOF
34189/* end confdefs.h. */
34190
34191#include <stdlib.h>
34192#include <iconv.h>
34193extern
34194#ifdef __cplusplus
34195"C"
34196#endif
34197#if defined(__STDC__) || defined(__cplusplus)
34198size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34199#else
34200size_t iconv();
34201#endif
34202
34203int
34204main ()
34205{
34206
34207 ;
34208 return 0;
34209}
34210_ACEOF
34211rm -f conftest.$ac_objext
34212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34213 (eval $ac_compile) 2>conftest.er1
a848cd7e 34214 ac_status=$?
ac1cb8d3
VS
34215 grep -v '^ *+' conftest.er1 >conftest.err
34216 rm -f conftest.er1
34217 cat conftest.err >&5
a848cd7e
SC
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); } &&
3565d135
RR
34220 { ac_try='test -z "$ac_cxx_werror_flag"
34221 || test ! -s conftest.err'
ac1cb8d3
VS
34222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34223 (eval $ac_try) 2>&5
34224 ac_status=$?
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); }; } &&
34227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34229 (eval $ac_try) 2>&5
34230 ac_status=$?
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); }; }; then
34233 wx_cv_func_iconv_const="no"
34234else
34235 echo "$as_me: failed program was:" >&5
34236sed 's/^/| /' conftest.$ac_ext >&5
34237
34238wx_cv_func_iconv_const="yes"
34239
34240fi
ac1cb8d3 34241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34242
34243fi
34244echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34245echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34246
34247 iconv_const=
34248 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34249 iconv_const="const"
34250 fi
34251
34252
34253cat >>confdefs.h <<_ACEOF
34254#define ICONV_CONST $iconv_const
34255_ACEOF
34256
34257 fi
34258 LIBICONV=
34259 if test "$am_cv_lib_iconv" = yes; then
34260 LIBICONV="-liconv"
34261 fi
34262
34263
34264LIBS="$LIBICONV $LIBS"
34265ac_ext=c
34266ac_cpp='$CPP $CPPFLAGS'
34267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34269ac_compiler_gnu=$ac_cv_c_compiler_gnu
34270
34271
34272if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34273
34274for ac_func in sigaction
34275do
34276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34277echo "$as_me:$LINENO: checking for $ac_func" >&5
34278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34279if eval "test \"\${$as_ac_var+set}\" = set"; then
34280 echo $ECHO_N "(cached) $ECHO_C" >&6
34281else
34282 cat >conftest.$ac_ext <<_ACEOF
34283/* confdefs.h. */
34284_ACEOF
34285cat confdefs.h >>conftest.$ac_ext
34286cat >>conftest.$ac_ext <<_ACEOF
34287/* end confdefs.h. */
ac1cb8d3
VS
34288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34290#define $ac_func innocuous_$ac_func
34291
a848cd7e
SC
34292/* System header to define __stub macros and hopefully few prototypes,
34293 which can conflict with char $ac_func (); below.
34294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34295 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34296
a848cd7e
SC
34297#ifdef __STDC__
34298# include <limits.h>
34299#else
34300# include <assert.h>
34301#endif
ac1cb8d3
VS
34302
34303#undef $ac_func
34304
a848cd7e
SC
34305/* Override any gcc2 internal prototype to avoid an error. */
34306#ifdef __cplusplus
34307extern "C"
34308{
34309#endif
34310/* We use char because int might match the return type of a gcc2
34311 builtin and then its argument prototype would still apply. */
34312char $ac_func ();
34313/* The GNU C library defines this for functions which it implements
34314 to always fail with ENOSYS. Some functions are actually named
34315 something starting with __ and the normal name is an alias. */
34316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34317choke me
34318#else
34319char (*f) () = $ac_func;
34320#endif
34321#ifdef __cplusplus
34322}
34323#endif
34324
34325int
34326main ()
34327{
34328return f != $ac_func;
34329 ;
34330 return 0;
34331}
34332_ACEOF
34333rm -f conftest.$ac_objext conftest$ac_exeext
34334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34335 (eval $ac_link) 2>conftest.er1
a848cd7e 34336 ac_status=$?
ac1cb8d3
VS
34337 grep -v '^ *+' conftest.er1 >conftest.err
34338 rm -f conftest.er1
34339 cat conftest.err >&5
a848cd7e
SC
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); } &&
3565d135
RR
34342 { ac_try='test -z "$ac_c_werror_flag"
34343 || test ! -s conftest.err'
ac1cb8d3
VS
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34346 ac_status=$?
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; } &&
34349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351 (eval $ac_try) 2>&5
34352 ac_status=$?
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); }; }; then
34355 eval "$as_ac_var=yes"
34356else
34357 echo "$as_me: failed program was:" >&5
34358sed 's/^/| /' conftest.$ac_ext >&5
34359
34360eval "$as_ac_var=no"
34361fi
ac1cb8d3
VS
34362rm -f conftest.err conftest.$ac_objext \
34363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34364fi
34365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34367if test `eval echo '${'$as_ac_var'}'` = yes; then
34368 cat >>confdefs.h <<_ACEOF
34369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34370_ACEOF
34371
34372fi
34373done
34374
34375
34376 if test "$ac_cv_func_sigaction" = "no"; then
34377 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34378echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34379 wxUSE_ON_FATAL_EXCEPTION=no
34380 fi
34381
34382 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34383
34384
34385 ac_ext=cc
34386ac_cpp='$CXXCPP $CPPFLAGS'
34387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34390
34391
34392 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34393echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34394if test "${wx_cv_type_sa_handler+set}" = set; then
34395 echo $ECHO_N "(cached) $ECHO_C" >&6
34396else
34397
34398 cat >conftest.$ac_ext <<_ACEOF
34399/* confdefs.h. */
34400_ACEOF
34401cat confdefs.h >>conftest.$ac_ext
34402cat >>conftest.$ac_ext <<_ACEOF
34403/* end confdefs.h. */
34404#include <signal.h>
34405int
34406main ()
34407{
34408
34409 extern void testSigHandler(int);
34410
34411 struct sigaction sa;
34412 sa.sa_handler = testSigHandler;
34413
34414 ;
34415 return 0;
34416}
34417_ACEOF
34418rm -f conftest.$ac_objext
34419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34420 (eval $ac_compile) 2>conftest.er1
a848cd7e 34421 ac_status=$?
ac1cb8d3
VS
34422 grep -v '^ *+' conftest.er1 >conftest.err
34423 rm -f conftest.er1
34424 cat conftest.err >&5
a848cd7e
SC
34425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426 (exit $ac_status); } &&
3565d135
RR
34427 { ac_try='test -z "$ac_cxx_werror_flag"
34428 || test ! -s conftest.err'
ac1cb8d3
VS
34429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34430 (eval $ac_try) 2>&5
34431 ac_status=$?
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); }; } &&
34434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; }; then
34440
34441 wx_cv_type_sa_handler=int
34442
34443else
34444 echo "$as_me: failed program was:" >&5
34445sed 's/^/| /' conftest.$ac_ext >&5
34446
34447
34448 wx_cv_type_sa_handler=void
34449
34450fi
ac1cb8d3 34451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34452
34453fi
34454echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34455echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34456
34457 ac_ext=c
34458ac_cpp='$CPP $CPPFLAGS'
34459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34461ac_compiler_gnu=$ac_cv_c_compiler_gnu
34462
34463
34464 cat >>confdefs.h <<_ACEOF
34465#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34466_ACEOF
34467
34468 fi
34469fi
34470
eaff0f0d
VZ
34471if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34472
34473
34474 ac_ext=cc
34475ac_cpp='$CXXCPP $CPPFLAGS'
34476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34479
34480
34481 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34482echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34483if test "${wx_cv_func_backtrace+set}" = set; then
34484 echo $ECHO_N "(cached) $ECHO_C" >&6
34485else
34486
34487 cat >conftest.$ac_ext <<_ACEOF
34488/* confdefs.h. */
34489_ACEOF
34490cat confdefs.h >>conftest.$ac_ext
34491cat >>conftest.$ac_ext <<_ACEOF
34492/* end confdefs.h. */
34493#include <execinfo.h>
34494int
34495main ()
34496{
34497
34498 void *trace[1];
34499 char **messages;
34500
34501 backtrace(trace, 1);
34502 messages = backtrace_symbols(trace, 1);
34503
34504 ;
34505 return 0;
34506}
34507_ACEOF
34508rm -f conftest.$ac_objext
34509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34510 (eval $ac_compile) 2>conftest.er1
34511 ac_status=$?
34512 grep -v '^ *+' conftest.er1 >conftest.err
34513 rm -f conftest.er1
34514 cat conftest.err >&5
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); } &&
3565d135
RR
34517 { ac_try='test -z "$ac_cxx_werror_flag"
34518 || test ! -s conftest.err'
eaff0f0d
VZ
34519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520 (eval $ac_try) 2>&5
34521 ac_status=$?
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); }; } &&
34524 { ac_try='test -s conftest.$ac_objext'
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34527 ac_status=$?
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; }; then
34530 wx_cv_func_backtrace=yes
34531else
34532 echo "$as_me: failed program was:" >&5
34533sed 's/^/| /' conftest.$ac_ext >&5
34534
34535wx_cv_func_backtrace=no
34536
34537fi
34538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34539
34540
34541fi
34542echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34543echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34544
34545
34546 if test "$wx_cv_func_backtrace" = "no"; then
34547 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34548echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34549 wxUSE_STACKWALKER=no
34550 else
34551 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34552echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34553if test "${wx_cv_func_cxa_demangle+set}" = set; then
34554 echo $ECHO_N "(cached) $ECHO_C" >&6
34555else
34556
34557 cat >conftest.$ac_ext <<_ACEOF
34558/* confdefs.h. */
34559_ACEOF
34560cat confdefs.h >>conftest.$ac_ext
34561cat >>conftest.$ac_ext <<_ACEOF
34562/* end confdefs.h. */
34563#include <cxxabi.h>
34564int
34565main ()
34566{
34567
34568 int rc;
34569 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34570
34571 ;
34572 return 0;
34573}
34574_ACEOF
dfe0c803
JS
34575rm -f conftest.$ac_objext conftest$ac_exeext
34576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34577 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34578 ac_status=$?
34579 grep -v '^ *+' conftest.er1 >conftest.err
34580 rm -f conftest.er1
34581 cat conftest.err >&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } &&
3565d135
RR
34584 { ac_try='test -z "$ac_cxx_werror_flag"
34585 || test ! -s conftest.err'
eaff0f0d
VZ
34586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34587 (eval $ac_try) 2>&5
34588 ac_status=$?
34589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34590 (exit $ac_status); }; } &&
dfe0c803 34591 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34593 (eval $ac_try) 2>&5
34594 ac_status=$?
34595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34596 (exit $ac_status); }; }; then
34597 wx_cv_func_cxa_demangle=yes
34598else
34599 echo "$as_me: failed program was:" >&5
34600sed 's/^/| /' conftest.$ac_ext >&5
34601
34602wx_cv_func_cxa_demangle=no
34603
34604fi
dfe0c803
JS
34605rm -f conftest.err conftest.$ac_objext \
34606 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34607
34608
34609fi
34610echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34611echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34612
34613 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34614 cat >>confdefs.h <<\_ACEOF
34615#define HAVE_CXA_DEMANGLE 1
34616_ACEOF
34617
34618 fi
34619 fi
34620
34621 ac_ext=c
34622ac_cpp='$CPP $CPPFLAGS'
34623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34625ac_compiler_gnu=$ac_cv_c_compiler_gnu
34626
34627fi
34628
898beab1
DE
34629if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34630 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34631echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34632 wxUSE_STACKWALKER=no
34633fi
34634
34635
a848cd7e
SC
34636
34637
34638for ac_func in mkstemp mktemp
34639do
34640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34641echo "$as_me:$LINENO: checking for $ac_func" >&5
34642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34643if eval "test \"\${$as_ac_var+set}\" = set"; then
34644 echo $ECHO_N "(cached) $ECHO_C" >&6
34645else
34646 cat >conftest.$ac_ext <<_ACEOF
34647/* confdefs.h. */
34648_ACEOF
34649cat confdefs.h >>conftest.$ac_ext
34650cat >>conftest.$ac_ext <<_ACEOF
34651/* end confdefs.h. */
ac1cb8d3
VS
34652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34654#define $ac_func innocuous_$ac_func
34655
a848cd7e
SC
34656/* System header to define __stub macros and hopefully few prototypes,
34657 which can conflict with char $ac_func (); below.
34658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34659 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34660
a848cd7e
SC
34661#ifdef __STDC__
34662# include <limits.h>
34663#else
34664# include <assert.h>
34665#endif
ac1cb8d3
VS
34666
34667#undef $ac_func
34668
a848cd7e
SC
34669/* Override any gcc2 internal prototype to avoid an error. */
34670#ifdef __cplusplus
34671extern "C"
34672{
34673#endif
34674/* We use char because int might match the return type of a gcc2
34675 builtin and then its argument prototype would still apply. */
34676char $ac_func ();
34677/* The GNU C library defines this for functions which it implements
34678 to always fail with ENOSYS. Some functions are actually named
34679 something starting with __ and the normal name is an alias. */
34680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34681choke me
34682#else
34683char (*f) () = $ac_func;
34684#endif
34685#ifdef __cplusplus
34686}
34687#endif
34688
34689int
34690main ()
34691{
34692return f != $ac_func;
34693 ;
34694 return 0;
34695}
34696_ACEOF
34697rm -f conftest.$ac_objext conftest$ac_exeext
34698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34699 (eval $ac_link) 2>conftest.er1
a848cd7e 34700 ac_status=$?
ac1cb8d3
VS
34701 grep -v '^ *+' conftest.er1 >conftest.err
34702 rm -f conftest.er1
34703 cat conftest.err >&5
a848cd7e
SC
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); } &&
3565d135
RR
34706 { ac_try='test -z "$ac_c_werror_flag"
34707 || test ! -s conftest.err'
ac1cb8d3
VS
34708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34709 (eval $ac_try) 2>&5
34710 ac_status=$?
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); }; } &&
34713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715 (eval $ac_try) 2>&5
34716 ac_status=$?
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); }; }; then
34719 eval "$as_ac_var=yes"
34720else
34721 echo "$as_me: failed program was:" >&5
34722sed 's/^/| /' conftest.$ac_ext >&5
34723
34724eval "$as_ac_var=no"
34725fi
ac1cb8d3
VS
34726rm -f conftest.err conftest.$ac_objext \
34727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34728fi
34729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34731if test `eval echo '${'$as_ac_var'}'` = yes; then
34732 cat >>confdefs.h <<_ACEOF
34733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34734_ACEOF
34735 break
34736fi
34737done
34738
34739
34740echo "$as_me:$LINENO: checking for statfs" >&5
34741echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34742if test "${wx_cv_func_statfs+set}" = set; then
34743 echo $ECHO_N "(cached) $ECHO_C" >&6
34744else
34745 cat >conftest.$ac_ext <<_ACEOF
34746/* confdefs.h. */
34747_ACEOF
34748cat confdefs.h >>conftest.$ac_ext
34749cat >>conftest.$ac_ext <<_ACEOF
34750/* end confdefs.h. */
34751
34752 #if defined(__BSD__)
84ae7ca4
VZ
34753 #include <sys/param.h>
34754 #include <sys/mount.h>
a848cd7e 34755 #else
84ae7ca4 34756 #include <sys/vfs.h>
a848cd7e
SC
34757 #endif
34758
34759int
34760main ()
34761{
34762
34763 long l;
34764 struct statfs fs;
34765 statfs("/", &fs);
34766 l = fs.f_bsize;
34767 l += fs.f_blocks;
34768 l += fs.f_bavail;
34769
34770 ;
34771 return 0;
34772}
34773_ACEOF
34774rm -f conftest.$ac_objext
34775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34776 (eval $ac_compile) 2>conftest.er1
a848cd7e 34777 ac_status=$?
ac1cb8d3
VS
34778 grep -v '^ *+' conftest.er1 >conftest.err
34779 rm -f conftest.er1
34780 cat conftest.err >&5
a848cd7e
SC
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); } &&
3565d135
RR
34783 { ac_try='test -z "$ac_c_werror_flag"
34784 || test ! -s conftest.err'
ac1cb8d3
VS
34785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786 (eval $ac_try) 2>&5
34787 ac_status=$?
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); }; } &&
34790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34792 (eval $ac_try) 2>&5
34793 ac_status=$?
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); }; }; then
84ae7ca4 34796 wx_cv_func_statfs=yes
a848cd7e
SC
34797else
34798 echo "$as_me: failed program was:" >&5
34799sed 's/^/| /' conftest.$ac_ext >&5
34800
84ae7ca4 34801wx_cv_func_statfs=no
a848cd7e
SC
34802
34803fi
ac1cb8d3 34804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34805
34806fi
34807echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34808echo "${ECHO_T}$wx_cv_func_statfs" >&6
34809
34810if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34811
34812
34813 ac_ext=cc
34814ac_cpp='$CXXCPP $CPPFLAGS'
34815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34818
34819 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34820echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34821if test "${wx_cv_func_statfs_decl+set}" = set; then
34822 echo $ECHO_N "(cached) $ECHO_C" >&6
34823else
0683aca6
VZ
34824 cat >conftest.$ac_ext <<_ACEOF
34825/* confdefs.h. */
34826_ACEOF
34827cat confdefs.h >>conftest.$ac_ext
34828cat >>conftest.$ac_ext <<_ACEOF
34829/* end confdefs.h. */
84ae7ca4 34830
0683aca6
VZ
34831 #if defined(__BSD__)
34832 #include <sys/param.h>
34833 #include <sys/mount.h>
34834 #else
34835 #include <sys/vfs.h>
34836 #endif
34837
34838int
34839main ()
34840{
34841
34842 struct statfs fs;
34843 statfs("", &fs);
34844
34845 ;
34846 return 0;
34847}
34848_ACEOF
34849rm -f conftest.$ac_objext
34850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34851 (eval $ac_compile) 2>conftest.er1
34852 ac_status=$?
34853 grep -v '^ *+' conftest.er1 >conftest.err
34854 rm -f conftest.er1
34855 cat conftest.err >&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } &&
3565d135
RR
34858 { ac_try='test -z "$ac_cxx_werror_flag"
34859 || test ! -s conftest.err'
0683aca6
VZ
34860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34861 (eval $ac_try) 2>&5
34862 ac_status=$?
34863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864 (exit $ac_status); }; } &&
34865 { ac_try='test -s conftest.$ac_objext'
34866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867 (eval $ac_try) 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 wx_cv_func_statfs_decl=yes
34872else
34873 echo "$as_me: failed program was:" >&5
34874sed 's/^/| /' conftest.$ac_ext >&5
34875
34876wx_cv_func_statfs_decl=no
34877
34878fi
34879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34880
34881fi
34882echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34883echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34884 ac_ext=c
34885ac_cpp='$CPP $CPPFLAGS'
34886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34888ac_compiler_gnu=$ac_cv_c_compiler_gnu
34889
34890
34891 if test "$wx_cv_func_statfs_decl" = "yes"; then
34892 cat >>confdefs.h <<\_ACEOF
34893#define HAVE_STATFS_DECL 1
34894_ACEOF
34895
34896 fi
34897
a848cd7e
SC
34898 wx_cv_type_statvfs_t="struct statfs"
34899 cat >>confdefs.h <<\_ACEOF
34900#define HAVE_STATFS 1
34901_ACEOF
34902
34903else
34904 echo "$as_me:$LINENO: checking for statvfs" >&5
34905echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34906if test "${wx_cv_func_statvfs+set}" = set; then
34907 echo $ECHO_N "(cached) $ECHO_C" >&6
34908else
34909 cat >conftest.$ac_ext <<_ACEOF
34910/* confdefs.h. */
34911_ACEOF
34912cat confdefs.h >>conftest.$ac_ext
34913cat >>conftest.$ac_ext <<_ACEOF
34914/* end confdefs.h. */
34915
34916 #include <stddef.h>
34917 #include <sys/statvfs.h>
34918
34919int
34920main ()
34921{
34922
34923 statvfs("/", NULL);
34924
34925 ;
34926 return 0;
34927}
34928_ACEOF
34929rm -f conftest.$ac_objext
34930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34931 (eval $ac_compile) 2>conftest.er1
a848cd7e 34932 ac_status=$?
ac1cb8d3
VS
34933 grep -v '^ *+' conftest.er1 >conftest.err
34934 rm -f conftest.er1
34935 cat conftest.err >&5
a848cd7e
SC
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); } &&
3565d135
RR
34938 { ac_try='test -z "$ac_c_werror_flag"
34939 || test ! -s conftest.err'
ac1cb8d3
VS
34940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941 (eval $ac_try) 2>&5
34942 ac_status=$?
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); }; } &&
34945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34947 (eval $ac_try) 2>&5
34948 ac_status=$?
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); }; }; then
34951 wx_cv_func_statvfs=yes
34952else
34953 echo "$as_me: failed program was:" >&5
34954sed 's/^/| /' conftest.$ac_ext >&5
34955
34956wx_cv_func_statvfs=no
34957
34958fi
ac1cb8d3 34959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34960
34961fi
34962echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34963echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34964
34965 if test "$wx_cv_func_statvfs" = "yes"; then
34966
34967
34968 ac_ext=cc
34969ac_cpp='$CXXCPP $CPPFLAGS'
34970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34973
34974
34975 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34976echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34977if test "${wx_cv_type_statvfs_t+set}" = set; then
34978 echo $ECHO_N "(cached) $ECHO_C" >&6
34979else
34980 cat >conftest.$ac_ext <<_ACEOF
34981/* confdefs.h. */
34982_ACEOF
34983cat confdefs.h >>conftest.$ac_ext
34984cat >>conftest.$ac_ext <<_ACEOF
34985/* end confdefs.h. */
34986
34987 #include <sys/statvfs.h>
34988
34989int
34990main ()
34991{
34992
34993 long l;
34994 statvfs_t fs;
34995 statvfs("/", &fs);
34996 l = fs.f_bsize;
34997 l += fs.f_blocks;
34998 l += fs.f_bavail;
34999
35000 ;
35001 return 0;
35002}
35003_ACEOF
35004rm -f conftest.$ac_objext
35005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35006 (eval $ac_compile) 2>conftest.er1
a848cd7e 35007 ac_status=$?
ac1cb8d3
VS
35008 grep -v '^ *+' conftest.er1 >conftest.err
35009 rm -f conftest.er1
35010 cat conftest.err >&5
a848cd7e
SC
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); } &&
3565d135
RR
35013 { ac_try='test -z "$ac_cxx_werror_flag"
35014 || test ! -s conftest.err'
ac1cb8d3
VS
35015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35016 (eval $ac_try) 2>&5
35017 ac_status=$?
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); }; } &&
35020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35022 (eval $ac_try) 2>&5
35023 ac_status=$?
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); }; }; then
35026 wx_cv_type_statvfs_t=statvfs_t
35027else
35028 echo "$as_me: failed program was:" >&5
35029sed 's/^/| /' conftest.$ac_ext >&5
35030
35031
35032 cat >conftest.$ac_ext <<_ACEOF
35033/* confdefs.h. */
35034_ACEOF
35035cat confdefs.h >>conftest.$ac_ext
35036cat >>conftest.$ac_ext <<_ACEOF
35037/* end confdefs.h. */
35038
35039 #include <sys/statvfs.h>
35040
35041int
35042main ()
35043{
35044
35045 long l;
35046 struct statvfs fs;
35047 statvfs("/", &fs);
35048 l = fs.f_bsize;
35049 l += fs.f_blocks;
35050 l += fs.f_bavail;
35051
35052 ;
35053 return 0;
35054}
35055_ACEOF
35056rm -f conftest.$ac_objext
35057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35058 (eval $ac_compile) 2>conftest.er1
a848cd7e 35059 ac_status=$?
ac1cb8d3
VS
35060 grep -v '^ *+' conftest.er1 >conftest.err
35061 rm -f conftest.er1
35062 cat conftest.err >&5
a848cd7e
SC
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); } &&
3565d135
RR
35065 { ac_try='test -z "$ac_cxx_werror_flag"
35066 || test ! -s conftest.err'
ac1cb8d3
VS
35067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35068 (eval $ac_try) 2>&5
35069 ac_status=$?
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); }; } &&
35072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35074 (eval $ac_try) 2>&5
35075 ac_status=$?
35076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); }; }; then
35078 wx_cv_type_statvfs_t="struct statvfs"
35079else
35080 echo "$as_me: failed program was:" >&5
35081sed 's/^/| /' conftest.$ac_ext >&5
35082
35083wx_cv_type_statvfs_t="unknown"
35084
35085fi
ac1cb8d3 35086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35087
35088
35089fi
ac1cb8d3 35090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35091
35092fi
35093echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35094echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35095
35096 ac_ext=c
35097ac_cpp='$CPP $CPPFLAGS'
35098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35100ac_compiler_gnu=$ac_cv_c_compiler_gnu
35101
35102
35103 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35104 cat >>confdefs.h <<\_ACEOF
35105#define HAVE_STATVFS 1
35106_ACEOF
35107
35108 fi
35109 else
35110 wx_cv_type_statvfs_t="unknown"
35111 fi
35112fi
35113
35114if test "$wx_cv_type_statvfs_t" != "unknown"; then
35115 cat >>confdefs.h <<_ACEOF
35116#define WX_STATFS_T $wx_cv_type_statvfs_t
35117_ACEOF
35118
35119else
35120 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35121echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35122fi
35123
35124if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35125
35126
35127for ac_func in fcntl flock
35128do
35129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35130echo "$as_me:$LINENO: checking for $ac_func" >&5
35131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35132if eval "test \"\${$as_ac_var+set}\" = set"; then
35133 echo $ECHO_N "(cached) $ECHO_C" >&6
35134else
35135 cat >conftest.$ac_ext <<_ACEOF
35136/* confdefs.h. */
35137_ACEOF
35138cat confdefs.h >>conftest.$ac_ext
35139cat >>conftest.$ac_ext <<_ACEOF
35140/* end confdefs.h. */
ac1cb8d3
VS
35141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35143#define $ac_func innocuous_$ac_func
35144
a848cd7e
SC
35145/* System header to define __stub macros and hopefully few prototypes,
35146 which can conflict with char $ac_func (); below.
35147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35148 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35149
a848cd7e
SC
35150#ifdef __STDC__
35151# include <limits.h>
35152#else
35153# include <assert.h>
35154#endif
ac1cb8d3
VS
35155
35156#undef $ac_func
35157
a848cd7e
SC
35158/* Override any gcc2 internal prototype to avoid an error. */
35159#ifdef __cplusplus
35160extern "C"
35161{
35162#endif
35163/* We use char because int might match the return type of a gcc2
35164 builtin and then its argument prototype would still apply. */
35165char $ac_func ();
35166/* The GNU C library defines this for functions which it implements
35167 to always fail with ENOSYS. Some functions are actually named
35168 something starting with __ and the normal name is an alias. */
35169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35170choke me
35171#else
35172char (*f) () = $ac_func;
35173#endif
35174#ifdef __cplusplus
35175}
35176#endif
35177
35178int
35179main ()
35180{
35181return f != $ac_func;
35182 ;
35183 return 0;
35184}
35185_ACEOF
35186rm -f conftest.$ac_objext conftest$ac_exeext
35187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35188 (eval $ac_link) 2>conftest.er1
a848cd7e 35189 ac_status=$?
ac1cb8d3
VS
35190 grep -v '^ *+' conftest.er1 >conftest.err
35191 rm -f conftest.er1
35192 cat conftest.err >&5
a848cd7e
SC
35193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194 (exit $ac_status); } &&
3565d135
RR
35195 { ac_try='test -z "$ac_c_werror_flag"
35196 || test ! -s conftest.err'
ac1cb8d3
VS
35197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198 (eval $ac_try) 2>&5
35199 ac_status=$?
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); }; } &&
35202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35208 eval "$as_ac_var=yes"
35209else
35210 echo "$as_me: failed program was:" >&5
35211sed 's/^/| /' conftest.$ac_ext >&5
35212
35213eval "$as_ac_var=no"
35214fi
ac1cb8d3
VS
35215rm -f conftest.err conftest.$ac_objext \
35216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35217fi
35218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35220if test `eval echo '${'$as_ac_var'}'` = yes; then
35221 cat >>confdefs.h <<_ACEOF
35222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35223_ACEOF
35224 break
35225fi
35226done
35227
35228
35229 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35230 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35231echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35232 wxUSE_SNGLINST_CHECKER=no
35233 fi
35234fi
35235
35236
35237for ac_func in timegm
35238do
35239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35240echo "$as_me:$LINENO: checking for $ac_func" >&5
35241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35242if eval "test \"\${$as_ac_var+set}\" = set"; then
35243 echo $ECHO_N "(cached) $ECHO_C" >&6
35244else
35245 cat >conftest.$ac_ext <<_ACEOF
35246/* confdefs.h. */
35247_ACEOF
35248cat confdefs.h >>conftest.$ac_ext
35249cat >>conftest.$ac_ext <<_ACEOF
35250/* end confdefs.h. */
ac1cb8d3
VS
35251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35253#define $ac_func innocuous_$ac_func
35254
a848cd7e
SC
35255/* System header to define __stub macros and hopefully few prototypes,
35256 which can conflict with char $ac_func (); below.
35257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35259
a848cd7e
SC
35260#ifdef __STDC__
35261# include <limits.h>
35262#else
35263# include <assert.h>
35264#endif
ac1cb8d3
VS
35265
35266#undef $ac_func
35267
a848cd7e
SC
35268/* Override any gcc2 internal prototype to avoid an error. */
35269#ifdef __cplusplus
35270extern "C"
35271{
35272#endif
35273/* We use char because int might match the return type of a gcc2
35274 builtin and then its argument prototype would still apply. */
35275char $ac_func ();
35276/* The GNU C library defines this for functions which it implements
35277 to always fail with ENOSYS. Some functions are actually named
35278 something starting with __ and the normal name is an alias. */
35279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35280choke me
35281#else
35282char (*f) () = $ac_func;
35283#endif
35284#ifdef __cplusplus
35285}
35286#endif
35287
35288int
35289main ()
35290{
35291return f != $ac_func;
35292 ;
35293 return 0;
35294}
35295_ACEOF
35296rm -f conftest.$ac_objext conftest$ac_exeext
35297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35298 (eval $ac_link) 2>conftest.er1
a848cd7e 35299 ac_status=$?
ac1cb8d3
VS
35300 grep -v '^ *+' conftest.er1 >conftest.err
35301 rm -f conftest.er1
35302 cat conftest.err >&5
a848cd7e
SC
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); } &&
3565d135
RR
35305 { ac_try='test -z "$ac_c_werror_flag"
35306 || test ! -s conftest.err'
ac1cb8d3
VS
35307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35308 (eval $ac_try) 2>&5
35309 ac_status=$?
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); }; } &&
35312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35315 ac_status=$?
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; }; then
35318 eval "$as_ac_var=yes"
35319else
35320 echo "$as_me: failed program was:" >&5
35321sed 's/^/| /' conftest.$ac_ext >&5
35322
35323eval "$as_ac_var=no"
35324fi
ac1cb8d3
VS
35325rm -f conftest.err conftest.$ac_objext \
35326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35327fi
35328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35330if test `eval echo '${'$as_ac_var'}'` = yes; then
35331 cat >>confdefs.h <<_ACEOF
35332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35333_ACEOF
35334
35335fi
35336done
35337
35338
35339
35340
35341for ac_func in putenv setenv
35342do
35343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35344echo "$as_me:$LINENO: checking for $ac_func" >&5
35345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35346if eval "test \"\${$as_ac_var+set}\" = set"; then
35347 echo $ECHO_N "(cached) $ECHO_C" >&6
35348else
35349 cat >conftest.$ac_ext <<_ACEOF
35350/* confdefs.h. */
35351_ACEOF
35352cat confdefs.h >>conftest.$ac_ext
35353cat >>conftest.$ac_ext <<_ACEOF
35354/* end confdefs.h. */
ac1cb8d3
VS
35355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35357#define $ac_func innocuous_$ac_func
35358
a848cd7e
SC
35359/* System header to define __stub macros and hopefully few prototypes,
35360 which can conflict with char $ac_func (); below.
35361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35363
a848cd7e
SC
35364#ifdef __STDC__
35365# include <limits.h>
35366#else
35367# include <assert.h>
35368#endif
ac1cb8d3
VS
35369
35370#undef $ac_func
35371
a848cd7e
SC
35372/* Override any gcc2 internal prototype to avoid an error. */
35373#ifdef __cplusplus
35374extern "C"
35375{
35376#endif
35377/* We use char because int might match the return type of a gcc2
35378 builtin and then its argument prototype would still apply. */
35379char $ac_func ();
35380/* The GNU C library defines this for functions which it implements
35381 to always fail with ENOSYS. Some functions are actually named
35382 something starting with __ and the normal name is an alias. */
35383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35384choke me
35385#else
35386char (*f) () = $ac_func;
35387#endif
35388#ifdef __cplusplus
35389}
35390#endif
35391
35392int
35393main ()
35394{
35395return f != $ac_func;
35396 ;
35397 return 0;
35398}
35399_ACEOF
35400rm -f conftest.$ac_objext conftest$ac_exeext
35401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35402 (eval $ac_link) 2>conftest.er1
a848cd7e 35403 ac_status=$?
ac1cb8d3
VS
35404 grep -v '^ *+' conftest.er1 >conftest.err
35405 rm -f conftest.er1
35406 cat conftest.err >&5
a848cd7e
SC
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); } &&
3565d135
RR
35409 { ac_try='test -z "$ac_c_werror_flag"
35410 || test ! -s conftest.err'
ac1cb8d3
VS
35411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412 (eval $ac_try) 2>&5
35413 ac_status=$?
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); }; } &&
35416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418 (eval $ac_try) 2>&5
35419 ac_status=$?
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); }; }; then
35422 eval "$as_ac_var=yes"
35423else
35424 echo "$as_me: failed program was:" >&5
35425sed 's/^/| /' conftest.$ac_ext >&5
35426
35427eval "$as_ac_var=no"
35428fi
ac1cb8d3
VS
35429rm -f conftest.err conftest.$ac_objext \
35430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35431fi
35432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35434if test `eval echo '${'$as_ac_var'}'` = yes; then
35435 cat >>confdefs.h <<_ACEOF
35436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35437_ACEOF
35438 break
35439fi
35440done
35441
35442
35443HAVE_SOME_SLEEP_FUNC=0
35444if test "$USE_BEOS" = 1; then
35445 cat >>confdefs.h <<\_ACEOF
35446#define HAVE_SLEEP 1
35447_ACEOF
35448
35449 HAVE_SOME_SLEEP_FUNC=1
35450fi
35451
35452if test "$USE_DARWIN" = 1; then
35453 cat >>confdefs.h <<\_ACEOF
35454#define HAVE_USLEEP 1
35455_ACEOF
35456
35457 HAVE_SOME_SLEEP_FUNC=1
35458fi
35459
35460if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35461 POSIX4_LINK=
35462
35463for ac_func in nanosleep
35464do
35465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35466echo "$as_me:$LINENO: checking for $ac_func" >&5
35467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35468if eval "test \"\${$as_ac_var+set}\" = set"; then
35469 echo $ECHO_N "(cached) $ECHO_C" >&6
35470else
35471 cat >conftest.$ac_ext <<_ACEOF
35472/* confdefs.h. */
35473_ACEOF
35474cat confdefs.h >>conftest.$ac_ext
35475cat >>conftest.$ac_ext <<_ACEOF
35476/* end confdefs.h. */
ac1cb8d3
VS
35477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35479#define $ac_func innocuous_$ac_func
35480
a848cd7e
SC
35481/* System header to define __stub macros and hopefully few prototypes,
35482 which can conflict with char $ac_func (); below.
35483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35484 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35485
a848cd7e
SC
35486#ifdef __STDC__
35487# include <limits.h>
35488#else
35489# include <assert.h>
35490#endif
ac1cb8d3
VS
35491
35492#undef $ac_func
35493
a848cd7e
SC
35494/* Override any gcc2 internal prototype to avoid an error. */
35495#ifdef __cplusplus
35496extern "C"
35497{
35498#endif
35499/* We use char because int might match the return type of a gcc2
35500 builtin and then its argument prototype would still apply. */
35501char $ac_func ();
35502/* The GNU C library defines this for functions which it implements
35503 to always fail with ENOSYS. Some functions are actually named
35504 something starting with __ and the normal name is an alias. */
35505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35506choke me
35507#else
35508char (*f) () = $ac_func;
35509#endif
35510#ifdef __cplusplus
35511}
35512#endif
35513
35514int
35515main ()
35516{
35517return f != $ac_func;
35518 ;
35519 return 0;
35520}
35521_ACEOF
35522rm -f conftest.$ac_objext conftest$ac_exeext
35523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35524 (eval $ac_link) 2>conftest.er1
a848cd7e 35525 ac_status=$?
ac1cb8d3
VS
35526 grep -v '^ *+' conftest.er1 >conftest.err
35527 rm -f conftest.er1
35528 cat conftest.err >&5
a848cd7e
SC
35529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530 (exit $ac_status); } &&
3565d135
RR
35531 { ac_try='test -z "$ac_c_werror_flag"
35532 || test ! -s conftest.err'
ac1cb8d3
VS
35533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35534 (eval $ac_try) 2>&5
35535 ac_status=$?
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); }; } &&
35538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35540 (eval $ac_try) 2>&5
35541 ac_status=$?
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); }; }; then
35544 eval "$as_ac_var=yes"
35545else
35546 echo "$as_me: failed program was:" >&5
35547sed 's/^/| /' conftest.$ac_ext >&5
35548
35549eval "$as_ac_var=no"
35550fi
ac1cb8d3
VS
35551rm -f conftest.err conftest.$ac_objext \
35552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35553fi
35554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35556if test `eval echo '${'$as_ac_var'}'` = yes; then
35557 cat >>confdefs.h <<_ACEOF
35558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35559_ACEOF
35560 cat >>confdefs.h <<\_ACEOF
35561#define HAVE_NANOSLEEP 1
35562_ACEOF
35563
35564else
35565
35566 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35567echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35568if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35569 echo $ECHO_N "(cached) $ECHO_C" >&6
35570else
35571 ac_check_lib_save_LIBS=$LIBS
35572LIBS="-lposix4 $LIBS"
35573cat >conftest.$ac_ext <<_ACEOF
35574/* confdefs.h. */
35575_ACEOF
35576cat confdefs.h >>conftest.$ac_ext
35577cat >>conftest.$ac_ext <<_ACEOF
35578/* end confdefs.h. */
35579
35580/* Override any gcc2 internal prototype to avoid an error. */
35581#ifdef __cplusplus
35582extern "C"
35583#endif
35584/* We use char because int might match the return type of a gcc2
35585 builtin and then its argument prototype would still apply. */
35586char nanosleep ();
35587int
35588main ()
35589{
35590nanosleep ();
35591 ;
35592 return 0;
35593}
35594_ACEOF
35595rm -f conftest.$ac_objext conftest$ac_exeext
35596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35597 (eval $ac_link) 2>conftest.er1
a848cd7e 35598 ac_status=$?
ac1cb8d3
VS
35599 grep -v '^ *+' conftest.er1 >conftest.err
35600 rm -f conftest.er1
35601 cat conftest.err >&5
a848cd7e
SC
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } &&
3565d135
RR
35604 { ac_try='test -z "$ac_c_werror_flag"
35605 || test ! -s conftest.err'
ac1cb8d3
VS
35606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35607 (eval $ac_try) 2>&5
35608 ac_status=$?
35609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610 (exit $ac_status); }; } &&
35611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35613 (eval $ac_try) 2>&5
35614 ac_status=$?
35615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616 (exit $ac_status); }; }; then
35617 ac_cv_lib_posix4_nanosleep=yes
35618else
35619 echo "$as_me: failed program was:" >&5
35620sed 's/^/| /' conftest.$ac_ext >&5
35621
35622ac_cv_lib_posix4_nanosleep=no
35623fi
ac1cb8d3
VS
35624rm -f conftest.err conftest.$ac_objext \
35625 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35626LIBS=$ac_check_lib_save_LIBS
35627fi
35628echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35629echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35630if test $ac_cv_lib_posix4_nanosleep = yes; then
35631
35632 cat >>confdefs.h <<\_ACEOF
35633#define HAVE_NANOSLEEP 1
35634_ACEOF
35635
35636 POSIX4_LINK=" -lposix4"
35637
35638else
35639
35640
35641for ac_func in usleep
35642do
35643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35644echo "$as_me:$LINENO: checking for $ac_func" >&5
35645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35646if eval "test \"\${$as_ac_var+set}\" = set"; then
35647 echo $ECHO_N "(cached) $ECHO_C" >&6
35648else
35649 cat >conftest.$ac_ext <<_ACEOF
35650/* confdefs.h. */
35651_ACEOF
35652cat confdefs.h >>conftest.$ac_ext
35653cat >>conftest.$ac_ext <<_ACEOF
35654/* end confdefs.h. */
ac1cb8d3
VS
35655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35657#define $ac_func innocuous_$ac_func
35658
a848cd7e
SC
35659/* System header to define __stub macros and hopefully few prototypes,
35660 which can conflict with char $ac_func (); below.
35661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35662 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35663
a848cd7e
SC
35664#ifdef __STDC__
35665# include <limits.h>
35666#else
35667# include <assert.h>
35668#endif
ac1cb8d3
VS
35669
35670#undef $ac_func
35671
a848cd7e
SC
35672/* Override any gcc2 internal prototype to avoid an error. */
35673#ifdef __cplusplus
35674extern "C"
35675{
35676#endif
35677/* We use char because int might match the return type of a gcc2
35678 builtin and then its argument prototype would still apply. */
35679char $ac_func ();
35680/* The GNU C library defines this for functions which it implements
35681 to always fail with ENOSYS. Some functions are actually named
35682 something starting with __ and the normal name is an alias. */
35683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35684choke me
35685#else
35686char (*f) () = $ac_func;
35687#endif
35688#ifdef __cplusplus
35689}
35690#endif
35691
35692int
35693main ()
35694{
35695return f != $ac_func;
35696 ;
35697 return 0;
35698}
35699_ACEOF
35700rm -f conftest.$ac_objext conftest$ac_exeext
35701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35702 (eval $ac_link) 2>conftest.er1
a848cd7e 35703 ac_status=$?
ac1cb8d3
VS
35704 grep -v '^ *+' conftest.er1 >conftest.err
35705 rm -f conftest.er1
35706 cat conftest.err >&5
a848cd7e
SC
35707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708 (exit $ac_status); } &&
3565d135
RR
35709 { ac_try='test -z "$ac_c_werror_flag"
35710 || test ! -s conftest.err'
ac1cb8d3
VS
35711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35712 (eval $ac_try) 2>&5
35713 ac_status=$?
35714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35715 (exit $ac_status); }; } &&
35716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35718 (eval $ac_try) 2>&5
35719 ac_status=$?
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); }; }; then
35722 eval "$as_ac_var=yes"
35723else
35724 echo "$as_me: failed program was:" >&5
35725sed 's/^/| /' conftest.$ac_ext >&5
35726
35727eval "$as_ac_var=no"
35728fi
ac1cb8d3
VS
35729rm -f conftest.err conftest.$ac_objext \
35730 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35731fi
35732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35734if test `eval echo '${'$as_ac_var'}'` = yes; then
35735 cat >>confdefs.h <<_ACEOF
35736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35737_ACEOF
35738 cat >>confdefs.h <<\_ACEOF
35739#define HAVE_USLEEP 1
35740_ACEOF
35741
35742else
35743 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35744echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35745
35746fi
35747done
35748
35749
35750
35751fi
35752
35753
35754
35755fi
35756done
35757
35758fi
35759
35760
35761
35762for ac_func in uname gethostname
35763do
35764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35765echo "$as_me:$LINENO: checking for $ac_func" >&5
35766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35767if eval "test \"\${$as_ac_var+set}\" = set"; then
35768 echo $ECHO_N "(cached) $ECHO_C" >&6
35769else
35770 cat >conftest.$ac_ext <<_ACEOF
35771/* confdefs.h. */
35772_ACEOF
35773cat confdefs.h >>conftest.$ac_ext
35774cat >>conftest.$ac_ext <<_ACEOF
35775/* end confdefs.h. */
ac1cb8d3
VS
35776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35778#define $ac_func innocuous_$ac_func
35779
a848cd7e
SC
35780/* System header to define __stub macros and hopefully few prototypes,
35781 which can conflict with char $ac_func (); below.
35782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35784
a848cd7e
SC
35785#ifdef __STDC__
35786# include <limits.h>
35787#else
35788# include <assert.h>
35789#endif
ac1cb8d3
VS
35790
35791#undef $ac_func
35792
a848cd7e
SC
35793/* Override any gcc2 internal prototype to avoid an error. */
35794#ifdef __cplusplus
35795extern "C"
35796{
35797#endif
35798/* We use char because int might match the return type of a gcc2
35799 builtin and then its argument prototype would still apply. */
35800char $ac_func ();
35801/* The GNU C library defines this for functions which it implements
35802 to always fail with ENOSYS. Some functions are actually named
35803 something starting with __ and the normal name is an alias. */
35804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35805choke me
35806#else
35807char (*f) () = $ac_func;
35808#endif
35809#ifdef __cplusplus
35810}
35811#endif
35812
35813int
35814main ()
35815{
35816return f != $ac_func;
35817 ;
35818 return 0;
35819}
35820_ACEOF
35821rm -f conftest.$ac_objext conftest$ac_exeext
35822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35823 (eval $ac_link) 2>conftest.er1
a848cd7e 35824 ac_status=$?
ac1cb8d3
VS
35825 grep -v '^ *+' conftest.er1 >conftest.err
35826 rm -f conftest.er1
35827 cat conftest.err >&5
a848cd7e
SC
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); } &&
3565d135
RR
35830 { ac_try='test -z "$ac_c_werror_flag"
35831 || test ! -s conftest.err'
ac1cb8d3
VS
35832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833 (eval $ac_try) 2>&5
35834 ac_status=$?
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); }; } &&
35837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35839 (eval $ac_try) 2>&5
35840 ac_status=$?
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); }; }; then
35843 eval "$as_ac_var=yes"
35844else
35845 echo "$as_me: failed program was:" >&5
35846sed 's/^/| /' conftest.$ac_ext >&5
35847
35848eval "$as_ac_var=no"
35849fi
ac1cb8d3
VS
35850rm -f conftest.err conftest.$ac_objext \
35851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35852fi
35853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35855if test `eval echo '${'$as_ac_var'}'` = yes; then
35856 cat >>confdefs.h <<_ACEOF
35857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35858_ACEOF
35859 break
35860fi
35861done
35862
35863
35864
35865
35866ac_ext=cc
35867ac_cpp='$CXXCPP $CPPFLAGS'
35868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35871
35872
35873
35874for ac_func in strtok_r
35875do
35876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35877echo "$as_me:$LINENO: checking for $ac_func" >&5
35878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35879if eval "test \"\${$as_ac_var+set}\" = set"; then
35880 echo $ECHO_N "(cached) $ECHO_C" >&6
35881else
35882 cat >conftest.$ac_ext <<_ACEOF
35883/* confdefs.h. */
35884_ACEOF
35885cat confdefs.h >>conftest.$ac_ext
35886cat >>conftest.$ac_ext <<_ACEOF
35887/* end confdefs.h. */
ac1cb8d3
VS
35888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35890#define $ac_func innocuous_$ac_func
35891
a848cd7e
SC
35892/* System header to define __stub macros and hopefully few prototypes,
35893 which can conflict with char $ac_func (); below.
35894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35895 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35896
a848cd7e
SC
35897#ifdef __STDC__
35898# include <limits.h>
35899#else
35900# include <assert.h>
35901#endif
ac1cb8d3
VS
35902
35903#undef $ac_func
35904
a848cd7e
SC
35905/* Override any gcc2 internal prototype to avoid an error. */
35906#ifdef __cplusplus
35907extern "C"
35908{
35909#endif
35910/* We use char because int might match the return type of a gcc2
35911 builtin and then its argument prototype would still apply. */
35912char $ac_func ();
35913/* The GNU C library defines this for functions which it implements
35914 to always fail with ENOSYS. Some functions are actually named
35915 something starting with __ and the normal name is an alias. */
35916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35917choke me
35918#else
35919char (*f) () = $ac_func;
35920#endif
35921#ifdef __cplusplus
35922}
35923#endif
35924
35925int
35926main ()
35927{
35928return f != $ac_func;
35929 ;
35930 return 0;
35931}
35932_ACEOF
35933rm -f conftest.$ac_objext conftest$ac_exeext
35934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35935 (eval $ac_link) 2>conftest.er1
a848cd7e 35936 ac_status=$?
ac1cb8d3
VS
35937 grep -v '^ *+' conftest.er1 >conftest.err
35938 rm -f conftest.er1
35939 cat conftest.err >&5
a848cd7e
SC
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); } &&
3565d135
RR
35942 { ac_try='test -z "$ac_cxx_werror_flag"
35943 || test ! -s conftest.err'
ac1cb8d3
VS
35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945 (eval $ac_try) 2>&5
35946 ac_status=$?
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); }; } &&
35949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; }; then
35955 eval "$as_ac_var=yes"
35956else
35957 echo "$as_me: failed program was:" >&5
35958sed 's/^/| /' conftest.$ac_ext >&5
35959
35960eval "$as_ac_var=no"
35961fi
ac1cb8d3
VS
35962rm -f conftest.err conftest.$ac_objext \
35963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35964fi
35965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35967if test `eval echo '${'$as_ac_var'}'` = yes; then
35968 cat >>confdefs.h <<_ACEOF
35969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35970_ACEOF
35971
35972fi
35973done
35974
35975
35976ac_ext=c
35977ac_cpp='$CPP $CPPFLAGS'
35978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35980ac_compiler_gnu=$ac_cv_c_compiler_gnu
35981
35982
35983INET_LINK=
35984
35985for ac_func in inet_addr
35986do
35987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35988echo "$as_me:$LINENO: checking for $ac_func" >&5
35989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35990if eval "test \"\${$as_ac_var+set}\" = set"; then
35991 echo $ECHO_N "(cached) $ECHO_C" >&6
35992else
35993 cat >conftest.$ac_ext <<_ACEOF
35994/* confdefs.h. */
35995_ACEOF
35996cat confdefs.h >>conftest.$ac_ext
35997cat >>conftest.$ac_ext <<_ACEOF
35998/* end confdefs.h. */
ac1cb8d3
VS
35999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36001#define $ac_func innocuous_$ac_func
36002
a848cd7e
SC
36003/* System header to define __stub macros and hopefully few prototypes,
36004 which can conflict with char $ac_func (); below.
36005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36006 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36007
a848cd7e
SC
36008#ifdef __STDC__
36009# include <limits.h>
36010#else
36011# include <assert.h>
36012#endif
ac1cb8d3
VS
36013
36014#undef $ac_func
36015
a848cd7e
SC
36016/* Override any gcc2 internal prototype to avoid an error. */
36017#ifdef __cplusplus
36018extern "C"
36019{
36020#endif
36021/* We use char because int might match the return type of a gcc2
36022 builtin and then its argument prototype would still apply. */
36023char $ac_func ();
36024/* The GNU C library defines this for functions which it implements
36025 to always fail with ENOSYS. Some functions are actually named
36026 something starting with __ and the normal name is an alias. */
36027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36028choke me
36029#else
36030char (*f) () = $ac_func;
36031#endif
36032#ifdef __cplusplus
36033}
36034#endif
36035
36036int
36037main ()
36038{
36039return f != $ac_func;
36040 ;
36041 return 0;
36042}
36043_ACEOF
36044rm -f conftest.$ac_objext conftest$ac_exeext
36045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36046 (eval $ac_link) 2>conftest.er1
a848cd7e 36047 ac_status=$?
ac1cb8d3
VS
36048 grep -v '^ *+' conftest.er1 >conftest.err
36049 rm -f conftest.er1
36050 cat conftest.err >&5
a848cd7e
SC
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); } &&
3565d135
RR
36053 { ac_try='test -z "$ac_c_werror_flag"
36054 || test ! -s conftest.err'
ac1cb8d3
VS
36055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056 (eval $ac_try) 2>&5
36057 ac_status=$?
36058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059 (exit $ac_status); }; } &&
36060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36062 (eval $ac_try) 2>&5
36063 ac_status=$?
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); }; }; then
36066 eval "$as_ac_var=yes"
36067else
36068 echo "$as_me: failed program was:" >&5
36069sed 's/^/| /' conftest.$ac_ext >&5
36070
36071eval "$as_ac_var=no"
36072fi
ac1cb8d3
VS
36073rm -f conftest.err conftest.$ac_objext \
36074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36075fi
36076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36078if test `eval echo '${'$as_ac_var'}'` = yes; then
36079 cat >>confdefs.h <<_ACEOF
36080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36081_ACEOF
36082 cat >>confdefs.h <<\_ACEOF
36083#define HAVE_INET_ADDR 1
36084_ACEOF
36085
36086else
36087
36088 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36089echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36090if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36091 echo $ECHO_N "(cached) $ECHO_C" >&6
36092else
36093 ac_check_lib_save_LIBS=$LIBS
36094LIBS="-lnsl $LIBS"
36095cat >conftest.$ac_ext <<_ACEOF
36096/* confdefs.h. */
36097_ACEOF
36098cat confdefs.h >>conftest.$ac_ext
36099cat >>conftest.$ac_ext <<_ACEOF
36100/* end confdefs.h. */
36101
36102/* Override any gcc2 internal prototype to avoid an error. */
36103#ifdef __cplusplus
36104extern "C"
36105#endif
36106/* We use char because int might match the return type of a gcc2
36107 builtin and then its argument prototype would still apply. */
36108char inet_addr ();
36109int
36110main ()
36111{
36112inet_addr ();
36113 ;
36114 return 0;
36115}
36116_ACEOF
36117rm -f conftest.$ac_objext conftest$ac_exeext
36118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36119 (eval $ac_link) 2>conftest.er1
a848cd7e 36120 ac_status=$?
ac1cb8d3
VS
36121 grep -v '^ *+' conftest.er1 >conftest.err
36122 rm -f conftest.er1
36123 cat conftest.err >&5
a848cd7e
SC
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); } &&
3565d135
RR
36126 { ac_try='test -z "$ac_c_werror_flag"
36127 || test ! -s conftest.err'
ac1cb8d3
VS
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36130 ac_status=$?
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; } &&
36133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135 (eval $ac_try) 2>&5
36136 ac_status=$?
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); }; }; then
36139 ac_cv_lib_nsl_inet_addr=yes
36140else
36141 echo "$as_me: failed program was:" >&5
36142sed 's/^/| /' conftest.$ac_ext >&5
36143
36144ac_cv_lib_nsl_inet_addr=no
36145fi
ac1cb8d3
VS
36146rm -f conftest.err conftest.$ac_objext \
36147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36148LIBS=$ac_check_lib_save_LIBS
36149fi
36150echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36151echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36152if test $ac_cv_lib_nsl_inet_addr = yes; then
36153 INET_LINK="nsl"
36154else
36155
36156 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36157echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36158if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36159 echo $ECHO_N "(cached) $ECHO_C" >&6
36160else
36161 ac_check_lib_save_LIBS=$LIBS
36162LIBS="-lresolv $LIBS"
36163cat >conftest.$ac_ext <<_ACEOF
36164/* confdefs.h. */
36165_ACEOF
36166cat confdefs.h >>conftest.$ac_ext
36167cat >>conftest.$ac_ext <<_ACEOF
36168/* end confdefs.h. */
36169
36170/* Override any gcc2 internal prototype to avoid an error. */
36171#ifdef __cplusplus
36172extern "C"
36173#endif
36174/* We use char because int might match the return type of a gcc2
36175 builtin and then its argument prototype would still apply. */
36176char inet_addr ();
36177int
36178main ()
36179{
36180inet_addr ();
36181 ;
36182 return 0;
36183}
36184_ACEOF
36185rm -f conftest.$ac_objext conftest$ac_exeext
36186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36187 (eval $ac_link) 2>conftest.er1
a848cd7e 36188 ac_status=$?
ac1cb8d3
VS
36189 grep -v '^ *+' conftest.er1 >conftest.err
36190 rm -f conftest.er1
36191 cat conftest.err >&5
a848cd7e
SC
36192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193 (exit $ac_status); } &&
3565d135
RR
36194 { ac_try='test -z "$ac_c_werror_flag"
36195 || test ! -s conftest.err'
ac1cb8d3
VS
36196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36197 (eval $ac_try) 2>&5
36198 ac_status=$?
36199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200 (exit $ac_status); }; } &&
36201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36203 (eval $ac_try) 2>&5
36204 ac_status=$?
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); }; }; then
36207 ac_cv_lib_resolv_inet_addr=yes
36208else
36209 echo "$as_me: failed program was:" >&5
36210sed 's/^/| /' conftest.$ac_ext >&5
36211
36212ac_cv_lib_resolv_inet_addr=no
36213fi
ac1cb8d3
VS
36214rm -f conftest.err conftest.$ac_objext \
36215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36216LIBS=$ac_check_lib_save_LIBS
36217fi
36218echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36219echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36220if test $ac_cv_lib_resolv_inet_addr = yes; then
36221 INET_LINK="resolv"
36222else
36223
36224 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36225echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36226if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36227 echo $ECHO_N "(cached) $ECHO_C" >&6
36228else
36229 ac_check_lib_save_LIBS=$LIBS
36230LIBS="-lsocket $LIBS"
36231cat >conftest.$ac_ext <<_ACEOF
36232/* confdefs.h. */
36233_ACEOF
36234cat confdefs.h >>conftest.$ac_ext
36235cat >>conftest.$ac_ext <<_ACEOF
36236/* end confdefs.h. */
36237
36238/* Override any gcc2 internal prototype to avoid an error. */
36239#ifdef __cplusplus
36240extern "C"
36241#endif
36242/* We use char because int might match the return type of a gcc2
36243 builtin and then its argument prototype would still apply. */
36244char inet_addr ();
36245int
36246main ()
36247{
36248inet_addr ();
36249 ;
36250 return 0;
36251}
36252_ACEOF
36253rm -f conftest.$ac_objext conftest$ac_exeext
36254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36255 (eval $ac_link) 2>conftest.er1
a848cd7e 36256 ac_status=$?
ac1cb8d3
VS
36257 grep -v '^ *+' conftest.er1 >conftest.err
36258 rm -f conftest.er1
36259 cat conftest.err >&5
a848cd7e
SC
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); } &&
3565d135
RR
36262 { ac_try='test -z "$ac_c_werror_flag"
36263 || test ! -s conftest.err'
ac1cb8d3
VS
36264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36265 (eval $ac_try) 2>&5
36266 ac_status=$?
36267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268 (exit $ac_status); }; } &&
36269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36271 (eval $ac_try) 2>&5
36272 ac_status=$?
36273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36274 (exit $ac_status); }; }; then
36275 ac_cv_lib_socket_inet_addr=yes
36276else
36277 echo "$as_me: failed program was:" >&5
36278sed 's/^/| /' conftest.$ac_ext >&5
36279
36280ac_cv_lib_socket_inet_addr=no
36281fi
ac1cb8d3
VS
36282rm -f conftest.err conftest.$ac_objext \
36283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36284LIBS=$ac_check_lib_save_LIBS
36285fi
36286echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36287echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36288if test $ac_cv_lib_socket_inet_addr = yes; then
36289 INET_LINK="socket"
36290
36291fi
36292
36293
36294
36295fi
36296
36297
36298
36299fi
36300
36301
36302
36303fi
36304done
36305
36306
36307
36308for ac_func in inet_aton
36309do
36310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36311echo "$as_me:$LINENO: checking for $ac_func" >&5
36312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36313if eval "test \"\${$as_ac_var+set}\" = set"; then
36314 echo $ECHO_N "(cached) $ECHO_C" >&6
36315else
36316 cat >conftest.$ac_ext <<_ACEOF
36317/* confdefs.h. */
36318_ACEOF
36319cat confdefs.h >>conftest.$ac_ext
36320cat >>conftest.$ac_ext <<_ACEOF
36321/* end confdefs.h. */
ac1cb8d3
VS
36322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36324#define $ac_func innocuous_$ac_func
36325
a848cd7e
SC
36326/* System header to define __stub macros and hopefully few prototypes,
36327 which can conflict with char $ac_func (); below.
36328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36329 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36330
a848cd7e
SC
36331#ifdef __STDC__
36332# include <limits.h>
36333#else
36334# include <assert.h>
36335#endif
ac1cb8d3
VS
36336
36337#undef $ac_func
36338
a848cd7e
SC
36339/* Override any gcc2 internal prototype to avoid an error. */
36340#ifdef __cplusplus
36341extern "C"
36342{
36343#endif
36344/* We use char because int might match the return type of a gcc2
36345 builtin and then its argument prototype would still apply. */
36346char $ac_func ();
36347/* The GNU C library defines this for functions which it implements
36348 to always fail with ENOSYS. Some functions are actually named
36349 something starting with __ and the normal name is an alias. */
36350#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36351choke me
36352#else
36353char (*f) () = $ac_func;
36354#endif
36355#ifdef __cplusplus
36356}
36357#endif
36358
36359int
36360main ()
36361{
36362return f != $ac_func;
36363 ;
36364 return 0;
36365}
36366_ACEOF
36367rm -f conftest.$ac_objext conftest$ac_exeext
36368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36369 (eval $ac_link) 2>conftest.er1
a848cd7e 36370 ac_status=$?
ac1cb8d3
VS
36371 grep -v '^ *+' conftest.er1 >conftest.err
36372 rm -f conftest.er1
36373 cat conftest.err >&5
a848cd7e
SC
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); } &&
3565d135
RR
36376 { ac_try='test -z "$ac_c_werror_flag"
36377 || test ! -s conftest.err'
ac1cb8d3
VS
36378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36379 (eval $ac_try) 2>&5
36380 ac_status=$?
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); }; } &&
36383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36385 (eval $ac_try) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); }; }; then
36389 eval "$as_ac_var=yes"
36390else
36391 echo "$as_me: failed program was:" >&5
36392sed 's/^/| /' conftest.$ac_ext >&5
36393
36394eval "$as_ac_var=no"
36395fi
ac1cb8d3
VS
36396rm -f conftest.err conftest.$ac_objext \
36397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36398fi
36399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36400echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36401if test `eval echo '${'$as_ac_var'}'` = yes; then
36402 cat >>confdefs.h <<_ACEOF
36403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36404_ACEOF
36405 cat >>confdefs.h <<\_ACEOF
36406#define HAVE_INET_ATON 1
36407_ACEOF
36408
36409else
36410
36411 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36412echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36413echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36414if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36415 echo $ECHO_N "(cached) $ECHO_C" >&6
36416else
36417 ac_check_lib_save_LIBS=$LIBS
36418LIBS="-l$INET_LINK $LIBS"
36419cat >conftest.$ac_ext <<_ACEOF
36420/* confdefs.h. */
36421_ACEOF
36422cat confdefs.h >>conftest.$ac_ext
36423cat >>conftest.$ac_ext <<_ACEOF
36424/* end confdefs.h. */
36425
36426/* Override any gcc2 internal prototype to avoid an error. */
36427#ifdef __cplusplus
36428extern "C"
36429#endif
36430/* We use char because int might match the return type of a gcc2
36431 builtin and then its argument prototype would still apply. */
36432char inet_aton ();
36433int
36434main ()
36435{
36436inet_aton ();
36437 ;
36438 return 0;
36439}
36440_ACEOF
36441rm -f conftest.$ac_objext conftest$ac_exeext
36442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36443 (eval $ac_link) 2>conftest.er1
a848cd7e 36444 ac_status=$?
ac1cb8d3
VS
36445 grep -v '^ *+' conftest.er1 >conftest.err
36446 rm -f conftest.er1
36447 cat conftest.err >&5
a848cd7e
SC
36448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); } &&
3565d135
RR
36450 { ac_try='test -z "$ac_c_werror_flag"
36451 || test ! -s conftest.err'
ac1cb8d3
VS
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; } &&
36457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36459 (eval $ac_try) 2>&5
36460 ac_status=$?
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); }; }; then
36463 eval "$as_ac_Lib=yes"
36464else
36465 echo "$as_me: failed program was:" >&5
36466sed 's/^/| /' conftest.$ac_ext >&5
36467
36468eval "$as_ac_Lib=no"
36469fi
ac1cb8d3
VS
36470rm -f conftest.err conftest.$ac_objext \
36471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36472LIBS=$ac_check_lib_save_LIBS
36473fi
36474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36475echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36476if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define HAVE_INET_ATON 1
36479_ACEOF
36480
36481fi
36482
36483
36484fi
36485done
36486
36487
36488if test "x$INET_LINK" != "x"; then
36489 cat >>confdefs.h <<\_ACEOF
36490#define HAVE_INET_ADDR 1
36491_ACEOF
36492
36493 INET_LINK=" -l$INET_LINK"
36494fi
36495
36496fi
36497
36498
36499
36500EXTRALIBS_ESD=
36501echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36502echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36503if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36504 echo $ECHO_N "(cached) $ECHO_C" >&6
36505else
36506 ac_check_lib_save_LIBS=$LIBS
36507LIBS="-lesd $LIBS"
36508cat >conftest.$ac_ext <<_ACEOF
36509/* confdefs.h. */
36510_ACEOF
36511cat confdefs.h >>conftest.$ac_ext
36512cat >>conftest.$ac_ext <<_ACEOF
36513/* end confdefs.h. */
36514
36515/* Override any gcc2 internal prototype to avoid an error. */
36516#ifdef __cplusplus
36517extern "C"
36518#endif
36519/* We use char because int might match the return type of a gcc2
36520 builtin and then its argument prototype would still apply. */
36521char esd_close ();
36522int
36523main ()
36524{
36525esd_close ();
36526 ;
36527 return 0;
36528}
36529_ACEOF
36530rm -f conftest.$ac_objext conftest$ac_exeext
36531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36532 (eval $ac_link) 2>conftest.er1
a848cd7e 36533 ac_status=$?
ac1cb8d3
VS
36534 grep -v '^ *+' conftest.er1 >conftest.err
36535 rm -f conftest.er1
36536 cat conftest.err >&5
a848cd7e
SC
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); } &&
3565d135
RR
36539 { ac_try='test -z "$ac_c_werror_flag"
36540 || test ! -s conftest.err'
ac1cb8d3
VS
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } &&
36546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; }; then
36552 ac_cv_lib_esd_esd_close=yes
36553else
36554 echo "$as_me: failed program was:" >&5
36555sed 's/^/| /' conftest.$ac_ext >&5
36556
36557ac_cv_lib_esd_esd_close=no
36558fi
ac1cb8d3
VS
36559rm -f conftest.err conftest.$ac_objext \
36560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36561LIBS=$ac_check_lib_save_LIBS
36562fi
36563echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36564echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36565if test $ac_cv_lib_esd_esd_close = yes; then
36566
36567
36568for ac_header in esd.h
36569do
36570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36571if eval "test \"\${$as_ac_Header+set}\" = set"; then
36572 echo "$as_me:$LINENO: checking for $ac_header" >&5
36573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36574if eval "test \"\${$as_ac_Header+set}\" = set"; then
36575 echo $ECHO_N "(cached) $ECHO_C" >&6
36576fi
36577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36579else
36580 # Is the header compilable?
36581echo "$as_me:$LINENO: checking $ac_header usability" >&5
36582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36583cat >conftest.$ac_ext <<_ACEOF
36584/* confdefs.h. */
36585_ACEOF
36586cat confdefs.h >>conftest.$ac_ext
36587cat >>conftest.$ac_ext <<_ACEOF
36588/* end confdefs.h. */
36589$ac_includes_default
36590#include <$ac_header>
36591_ACEOF
36592rm -f conftest.$ac_objext
36593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36594 (eval $ac_compile) 2>conftest.er1
a848cd7e 36595 ac_status=$?
ac1cb8d3
VS
36596 grep -v '^ *+' conftest.er1 >conftest.err
36597 rm -f conftest.er1
36598 cat conftest.err >&5
a848cd7e
SC
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); } &&
3565d135
RR
36601 { ac_try='test -z "$ac_c_werror_flag"
36602 || test ! -s conftest.err'
ac1cb8d3
VS
36603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36604 (eval $ac_try) 2>&5
36605 ac_status=$?
36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); }; } &&
36608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36610 (eval $ac_try) 2>&5
36611 ac_status=$?
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); }; }; then
36614 ac_header_compiler=yes
36615else
36616 echo "$as_me: failed program was:" >&5
36617sed 's/^/| /' conftest.$ac_ext >&5
36618
36619ac_header_compiler=no
36620fi
ac1cb8d3 36621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36623echo "${ECHO_T}$ac_header_compiler" >&6
36624
36625# Is the header present?
36626echo "$as_me:$LINENO: checking $ac_header presence" >&5
36627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36628cat >conftest.$ac_ext <<_ACEOF
36629/* confdefs.h. */
36630_ACEOF
36631cat confdefs.h >>conftest.$ac_ext
36632cat >>conftest.$ac_ext <<_ACEOF
36633/* end confdefs.h. */
36634#include <$ac_header>
36635_ACEOF
36636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36638 ac_status=$?
36639 grep -v '^ *+' conftest.er1 >conftest.err
36640 rm -f conftest.er1
36641 cat conftest.err >&5
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); } >/dev/null; then
36644 if test -s conftest.err; then
36645 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36647 else
36648 ac_cpp_err=
36649 fi
36650else
36651 ac_cpp_err=yes
36652fi
36653if test -z "$ac_cpp_err"; then
36654 ac_header_preproc=yes
36655else
36656 echo "$as_me: failed program was:" >&5
36657sed 's/^/| /' conftest.$ac_ext >&5
36658
36659 ac_header_preproc=no
36660fi
36661rm -f conftest.err conftest.$ac_ext
36662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36663echo "${ECHO_T}$ac_header_preproc" >&6
36664
36665# So? What about this header?
ac1cb8d3
VS
36666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36667 yes:no: )
a848cd7e
SC
36668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36672 ac_header_preproc=yes
a848cd7e 36673 ;;
ac1cb8d3 36674 no:yes:* )
a848cd7e
SC
36675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36687 (
36688 cat <<\_ASBOX
ac1cb8d3
VS
36689## ----------------------------------------- ##
36690## Report this to wx-dev@lists.wxwidgets.org ##
36691## ----------------------------------------- ##
a848cd7e
SC
36692_ASBOX
36693 ) |
36694 sed "s/^/$as_me: WARNING: /" >&2
36695 ;;
36696esac
36697echo "$as_me:$LINENO: checking for $ac_header" >&5
36698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36699if eval "test \"\${$as_ac_Header+set}\" = set"; then
36700 echo $ECHO_N "(cached) $ECHO_C" >&6
36701else
ac1cb8d3 36702 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36703fi
36704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36706
36707fi
36708if test `eval echo '${'$as_ac_Header'}'` = yes; then
36709 cat >>confdefs.h <<_ACEOF
36710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36711_ACEOF
36712
36713 EXTRALIBS_ESD="-lesd"
36714
36715fi
36716
36717done
36718
36719
36720fi
36721
36722
36723
36724echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36725echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36726cat >conftest.$ac_ext <<_ACEOF
36727/* confdefs.h. */
36728_ACEOF
36729cat confdefs.h >>conftest.$ac_ext
36730cat >>conftest.$ac_ext <<_ACEOF
36731/* end confdefs.h. */
36732#ifdef __linux__
36733 #include <linux/cdrom.h>
36734 #else
36735 /* For Solaris */
36736 #include <sys/cdio.h>
36737 #endif
36738
36739int
36740main ()
36741{
36742struct cdrom_tocentry entry, old_entry;
36743 ;
36744 return 0;
36745}
36746_ACEOF
36747rm -f conftest.$ac_objext
36748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36749 (eval $ac_compile) 2>conftest.er1
a848cd7e 36750 ac_status=$?
ac1cb8d3
VS
36751 grep -v '^ *+' conftest.er1 >conftest.err
36752 rm -f conftest.er1
36753 cat conftest.err >&5
a848cd7e
SC
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
3565d135
RR
36756 { ac_try='test -z "$ac_c_werror_flag"
36757 || test ! -s conftest.err'
ac1cb8d3
VS
36758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759 (eval $ac_try) 2>&5
36760 ac_status=$?
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); }; } &&
36763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765 (eval $ac_try) 2>&5
36766 ac_status=$?
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); }; }; then
36769 echo "$as_me:$LINENO: result: yes" >&5
36770echo "${ECHO_T}yes" >&6
36771 cat >>confdefs.h <<\_ACEOF
36772#define HAVE_KNOWN_CDROM_INTERFACE 1
36773_ACEOF
36774
36775else
36776 echo "$as_me: failed program was:" >&5
36777sed 's/^/| /' conftest.$ac_ext >&5
36778
36779echo "$as_me:$LINENO: result: no" >&5
36780echo "${ECHO_T}no" >&6
36781fi
ac1cb8d3 36782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36783
36784
36785cat >confcache <<\_ACEOF
36786# This file is a shell script that caches the results of configure
36787# tests run on this system so they can be shared between configure
36788# scripts and configure runs, see configure's option --config-cache.
36789# It is not useful on other systems. If it contains results you don't
36790# want to keep, you may remove or edit it.
36791#
36792# config.status only pays attention to the cache file if you give it
36793# the --recheck option to rerun configure.
36794#
36795# `ac_cv_env_foo' variables (set or unset) will be overridden when
36796# loading this file, other *unset* `ac_cv_foo' will be assigned the
36797# following values.
36798
36799_ACEOF
36800
36801# The following way of writing the cache mishandles newlines in values,
36802# but we know of no workaround that is simple, portable, and efficient.
36803# So, don't put newlines in cache variables' values.
36804# Ultrix sh set writes to stderr and can't be redirected directly,
36805# and sets the high bit in the cache file unless we assign to the vars.
36806{
36807 (set) 2>&1 |
36808 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36809 *ac_space=\ *)
36810 # `set' does not quote correctly, so add quotes (double-quote
36811 # substitution turns \\\\ into \\, and sed turns \\ into \).
36812 sed -n \
ac1cb8d3
VS
36813 "s/'/'\\\\''/g;
36814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36815 ;;
36816 *)
36817 # `set' quotes correctly as required by POSIX, so do not add quotes.
36818 sed -n \
ac1cb8d3 36819 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36820 ;;
36821 esac;
36822} |
36823 sed '
36824 t clear
36825 : clear
36826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36827 t end
36828 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36829 : end' >>confcache
36830if diff $cache_file confcache >/dev/null 2>&1; then :; else
36831 if test -w $cache_file; then
36832 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36833 cat confcache >$cache_file
36834 else
36835 echo "not updating unwritable cache $cache_file"
36836 fi
36837fi
36838rm -f confcache
36839
36840
a848cd7e
SC
36841if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36842
36843
36844 THREADS_LINK=
36845 THREADS_CFLAGS=
36846
36847 if test "$wxUSE_THREADS" = "yes" ; then
36848 if test "$USE_BEOS" = 1; then
36849 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36850echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36851 wxUSE_THREADS="no"
36852 fi
36853 fi
36854
36855 if test "$wxUSE_THREADS" = "yes" ; then
36856
36857
36858 THREAD_OPTS="-pthread"
36859 case "${host}" in
36860 *-*-solaris2* | *-*-sunos4* )
36861 if test "x$GCC" = "xyes"; then
36862 THREAD_OPTS="-pthreads $THREAD_OPTS"
36863 else
36864 THREAD_OPTS="-mt $THREAD_OPTS"
36865 fi
36866 ;;
36867 *-*-freebsd*)
36868 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36869 ;;
36870 *-*-darwin* | *-*-cygwin* )
36871 THREAD_OPTS=""
36872 ;;
36873 *-*-aix*)
36874 THREAD_OPTS="pthreads"
36875 ;;
36876 *-hp-hpux* )
00421666
MW
36877 if test "x$GCC" = "xyes"; then
36878 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36879 THREAD_OPTS=""
36880 else
0093c2fc 36881 THREAD_OPTS="-mt"
a848cd7e
SC
36882 fi
36883 ;;
36884
36885 *-*-irix* )
36886 if test "x$GCC" = "xyes"; then
36887 THREAD_OPTS=""
36888 fi
36889 ;;
36890
36891 *-*-*UnixWare*)
36892 if test "x$GCC" != "xyes"; then
36893 THREAD_OPTS="-Ethread"
36894 fi
36895 ;;
36896 esac
36897
36898 THREAD_OPTS="$THREAD_OPTS pthread none"
36899
36900 THREADS_OK=no
36901 for flag in $THREAD_OPTS; do
36902 case $flag in
36903 none)
36904 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36905echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36906 ;;
36907
36908 -*)
36909 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36910echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36911 THREADS_CFLAGS="$flag"
36912 ;;
36913
36914 *)
36915 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36916echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36917 THREADS_LINK="-l$flag"
36918 ;;
36919 esac
36920
36921 save_LIBS="$LIBS"
36922 save_CFLAGS="$CFLAGS"
36923 LIBS="$THREADS_LINK $LIBS"
36924 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36925
36926 cat >conftest.$ac_ext <<_ACEOF
36927/* confdefs.h. */
36928_ACEOF
36929cat confdefs.h >>conftest.$ac_ext
36930cat >>conftest.$ac_ext <<_ACEOF
36931/* end confdefs.h. */
36932#include <pthread.h>
36933int
36934main ()
36935{
36936pthread_create(0,0,0,0);
36937 ;
36938 return 0;
36939}
36940_ACEOF
36941rm -f conftest.$ac_objext conftest$ac_exeext
36942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36943 (eval $ac_link) 2>conftest.er1
a848cd7e 36944 ac_status=$?
ac1cb8d3
VS
36945 grep -v '^ *+' conftest.er1 >conftest.err
36946 rm -f conftest.er1
36947 cat conftest.err >&5
a848cd7e
SC
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); } &&
3565d135
RR
36950 { ac_try='test -z "$ac_c_werror_flag"
36951 || test ! -s conftest.err'
ac1cb8d3
VS
36952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36953 (eval $ac_try) 2>&5
36954 ac_status=$?
36955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956 (exit $ac_status); }; } &&
36957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36959 (eval $ac_try) 2>&5
36960 ac_status=$?
36961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962 (exit $ac_status); }; }; then
36963 THREADS_OK=yes
36964else
36965 echo "$as_me: failed program was:" >&5
36966sed 's/^/| /' conftest.$ac_ext >&5
36967
36968fi
ac1cb8d3
VS
36969rm -f conftest.err conftest.$ac_objext \
36970 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36971
36972 LIBS="$save_LIBS"
36973 CFLAGS="$save_CFLAGS"
36974
36975 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36976echo "${ECHO_T}$THREADS_OK" >&6
36977 if test "x$THREADS_OK" = "xyes"; then
36978 break;
36979 fi
36980
36981 THREADS_LINK=""
36982 THREADS_CFLAGS=""
36983 done
36984
36985 if test "x$THREADS_OK" != "xyes"; then
36986 wxUSE_THREADS=no
36987 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36988echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36989 else
36990 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36991 LIBS="$THREADS_LINK $LIBS"
36992
36993 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36994echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36995 flag=no
36996 case "${host}" in
36997 *-aix*)
36998 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36999 flag="-D_THREAD_SAFE"
37000 ;;
37001 *-freebsd*)
37002 flag="-D_THREAD_SAFE"
37003 ;;
37004 *-hp-hpux* )
37005 flag="-D_REENTRANT"
37006 if test "x$GCC" != "xyes"; then
37007 flag="$flag -D_RWSTD_MULTI_THREAD"
37008 fi
37009 ;;
37010 *solaris* | alpha*-osf*)
37011 flag="-D_REENTRANT"
37012 ;;
37013 esac
37014 echo "$as_me:$LINENO: result: ${flag}" >&5
37015echo "${ECHO_T}${flag}" >&6
37016 if test "x$flag" != xno; then
37017 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
37018 fi
37019
5ff751d6 37020 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
37021 fi
37022 fi
37023
37024 if test "$wxUSE_THREADS" = "yes" ; then
37025
37026for ac_func in thr_setconcurrency
37027do
37028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37029echo "$as_me:$LINENO: checking for $ac_func" >&5
37030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37031if eval "test \"\${$as_ac_var+set}\" = set"; then
37032 echo $ECHO_N "(cached) $ECHO_C" >&6
37033else
37034 cat >conftest.$ac_ext <<_ACEOF
37035/* confdefs.h. */
37036_ACEOF
37037cat confdefs.h >>conftest.$ac_ext
37038cat >>conftest.$ac_ext <<_ACEOF
37039/* end confdefs.h. */
ac1cb8d3
VS
37040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37042#define $ac_func innocuous_$ac_func
37043
a848cd7e
SC
37044/* System header to define __stub macros and hopefully few prototypes,
37045 which can conflict with char $ac_func (); below.
37046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37047 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37048
a848cd7e
SC
37049#ifdef __STDC__
37050# include <limits.h>
37051#else
37052# include <assert.h>
37053#endif
ac1cb8d3
VS
37054
37055#undef $ac_func
37056
a848cd7e
SC
37057/* Override any gcc2 internal prototype to avoid an error. */
37058#ifdef __cplusplus
37059extern "C"
37060{
37061#endif
37062/* We use char because int might match the return type of a gcc2
37063 builtin and then its argument prototype would still apply. */
37064char $ac_func ();
37065/* The GNU C library defines this for functions which it implements
37066 to always fail with ENOSYS. Some functions are actually named
37067 something starting with __ and the normal name is an alias. */
37068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37069choke me
37070#else
37071char (*f) () = $ac_func;
37072#endif
37073#ifdef __cplusplus
37074}
37075#endif
37076
37077int
37078main ()
37079{
37080return f != $ac_func;
37081 ;
37082 return 0;
37083}
37084_ACEOF
37085rm -f conftest.$ac_objext conftest$ac_exeext
37086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37087 (eval $ac_link) 2>conftest.er1
a848cd7e 37088 ac_status=$?
ac1cb8d3
VS
37089 grep -v '^ *+' conftest.er1 >conftest.err
37090 rm -f conftest.er1
37091 cat conftest.err >&5
a848cd7e
SC
37092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 (exit $ac_status); } &&
3565d135
RR
37094 { ac_try='test -z "$ac_c_werror_flag"
37095 || test ! -s conftest.err'
ac1cb8d3
VS
37096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37097 (eval $ac_try) 2>&5
37098 ac_status=$?
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); }; } &&
37101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37104 ac_status=$?
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; }; then
37107 eval "$as_ac_var=yes"
37108else
37109 echo "$as_me: failed program was:" >&5
37110sed 's/^/| /' conftest.$ac_ext >&5
37111
37112eval "$as_ac_var=no"
37113fi
ac1cb8d3
VS
37114rm -f conftest.err conftest.$ac_objext \
37115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37116fi
37117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37119if test `eval echo '${'$as_ac_var'}'` = yes; then
37120 cat >>confdefs.h <<_ACEOF
37121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37122_ACEOF
37123
37124fi
37125done
37126
37127
6ebeb4c7
VZ
37128 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37129echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37130if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37131 echo $ECHO_N "(cached) $ECHO_C" >&6
37132else
37133
37134 cat >conftest.$ac_ext <<_ACEOF
37135/* confdefs.h. */
37136_ACEOF
37137cat confdefs.h >>conftest.$ac_ext
37138cat >>conftest.$ac_ext <<_ACEOF
37139/* end confdefs.h. */
37140#include <pthread.h>
37141 void ThreadCleanupFunc(void *p);
37142
37143int
37144main ()
37145{
37146
37147 void *p;
37148 pthread_cleanup_push(ThreadCleanupFunc, p);
37149 pthread_cleanup_pop(0);
37150
37151 ;
37152 return 0;
37153}
37154_ACEOF
37155rm -f conftest.$ac_objext
37156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37157 (eval $ac_compile) 2>conftest.er1
37158 ac_status=$?
37159 grep -v '^ *+' conftest.er1 >conftest.err
37160 rm -f conftest.er1
37161 cat conftest.err >&5
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); } &&
3565d135
RR
37164 { ac_try='test -z "$ac_c_werror_flag"
37165 || test ! -s conftest.err'
6ebeb4c7
VZ
37166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37167 (eval $ac_try) 2>&5
37168 ac_status=$?
37169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170 (exit $ac_status); }; } &&
37171 { ac_try='test -s conftest.$ac_objext'
37172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37173 (eval $ac_try) 2>&5
37174 ac_status=$?
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); }; }; then
37177
37178 wx_cv_func_pthread_cleanup=yes
37179
37180else
37181 echo "$as_me: failed program was:" >&5
37182sed 's/^/| /' conftest.$ac_ext >&5
37183
37184
37185 wx_cv_func_pthread_cleanup=no
37186
37187
37188fi
37189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37190
37191fi
37192echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37193echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37194 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37195 cat >>confdefs.h <<\_ACEOF
37196#define wxHAVE_PTHREAD_CLEANUP 1
37197_ACEOF
37198
37199 fi
37200
a848cd7e
SC
37201
37202for ac_header in sched.h
37203do
37204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37205if eval "test \"\${$as_ac_Header+set}\" = set"; then
37206 echo "$as_me:$LINENO: checking for $ac_header" >&5
37207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37208if eval "test \"\${$as_ac_Header+set}\" = set"; then
37209 echo $ECHO_N "(cached) $ECHO_C" >&6
37210fi
37211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37213else
37214 # Is the header compilable?
37215echo "$as_me:$LINENO: checking $ac_header usability" >&5
37216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37217cat >conftest.$ac_ext <<_ACEOF
37218/* confdefs.h. */
37219_ACEOF
37220cat confdefs.h >>conftest.$ac_ext
37221cat >>conftest.$ac_ext <<_ACEOF
37222/* end confdefs.h. */
37223$ac_includes_default
37224#include <$ac_header>
37225_ACEOF
37226rm -f conftest.$ac_objext
37227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37228 (eval $ac_compile) 2>conftest.er1
a848cd7e 37229 ac_status=$?
ac1cb8d3
VS
37230 grep -v '^ *+' conftest.er1 >conftest.err
37231 rm -f conftest.er1
37232 cat conftest.err >&5
a848cd7e
SC
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); } &&
3565d135
RR
37235 { ac_try='test -z "$ac_c_werror_flag"
37236 || test ! -s conftest.err'
ac1cb8d3
VS
37237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238 (eval $ac_try) 2>&5
37239 ac_status=$?
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); }; } &&
37242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37248 ac_header_compiler=yes
37249else
37250 echo "$as_me: failed program was:" >&5
37251sed 's/^/| /' conftest.$ac_ext >&5
37252
37253ac_header_compiler=no
37254fi
ac1cb8d3 37255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37257echo "${ECHO_T}$ac_header_compiler" >&6
37258
37259# Is the header present?
37260echo "$as_me:$LINENO: checking $ac_header presence" >&5
37261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37262cat >conftest.$ac_ext <<_ACEOF
37263/* confdefs.h. */
37264_ACEOF
37265cat confdefs.h >>conftest.$ac_ext
37266cat >>conftest.$ac_ext <<_ACEOF
37267/* end confdefs.h. */
37268#include <$ac_header>
37269_ACEOF
37270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37272 ac_status=$?
37273 grep -v '^ *+' conftest.er1 >conftest.err
37274 rm -f conftest.er1
37275 cat conftest.err >&5
37276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277 (exit $ac_status); } >/dev/null; then
37278 if test -s conftest.err; then
37279 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37281 else
37282 ac_cpp_err=
37283 fi
37284else
37285 ac_cpp_err=yes
37286fi
37287if test -z "$ac_cpp_err"; then
37288 ac_header_preproc=yes
37289else
37290 echo "$as_me: failed program was:" >&5
37291sed 's/^/| /' conftest.$ac_ext >&5
37292
37293 ac_header_preproc=no
37294fi
37295rm -f conftest.err conftest.$ac_ext
37296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37297echo "${ECHO_T}$ac_header_preproc" >&6
37298
37299# So? What about this header?
ac1cb8d3
VS
37300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37301 yes:no: )
a848cd7e
SC
37302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37306 ac_header_preproc=yes
a848cd7e 37307 ;;
ac1cb8d3 37308 no:yes:* )
a848cd7e
SC
37309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37321 (
37322 cat <<\_ASBOX
ac1cb8d3
VS
37323## ----------------------------------------- ##
37324## Report this to wx-dev@lists.wxwidgets.org ##
37325## ----------------------------------------- ##
a848cd7e
SC
37326_ASBOX
37327 ) |
37328 sed "s/^/$as_me: WARNING: /" >&2
37329 ;;
37330esac
37331echo "$as_me:$LINENO: checking for $ac_header" >&5
37332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37333if eval "test \"\${$as_ac_Header+set}\" = set"; then
37334 echo $ECHO_N "(cached) $ECHO_C" >&6
37335else
ac1cb8d3 37336 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37337fi
37338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37340
37341fi
37342if test `eval echo '${'$as_ac_Header'}'` = yes; then
37343 cat >>confdefs.h <<_ACEOF
37344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37345_ACEOF
37346
37347fi
37348
37349done
37350
37351 if test "$ac_cv_header_sched_h" = "yes"; then
37352 echo "$as_me:$LINENO: checking for sched_yield" >&5
37353echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37354if test "${ac_cv_func_sched_yield+set}" = set; then
37355 echo $ECHO_N "(cached) $ECHO_C" >&6
37356else
37357 cat >conftest.$ac_ext <<_ACEOF
37358/* confdefs.h. */
37359_ACEOF
37360cat confdefs.h >>conftest.$ac_ext
37361cat >>conftest.$ac_ext <<_ACEOF
37362/* end confdefs.h. */
ac1cb8d3
VS
37363/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37365#define sched_yield innocuous_sched_yield
37366
a848cd7e
SC
37367/* System header to define __stub macros and hopefully few prototypes,
37368 which can conflict with char sched_yield (); below.
37369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37370 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37371
a848cd7e
SC
37372#ifdef __STDC__
37373# include <limits.h>
37374#else
37375# include <assert.h>
37376#endif
ac1cb8d3
VS
37377
37378#undef sched_yield
37379
a848cd7e
SC
37380/* Override any gcc2 internal prototype to avoid an error. */
37381#ifdef __cplusplus
37382extern "C"
37383{
37384#endif
37385/* We use char because int might match the return type of a gcc2
37386 builtin and then its argument prototype would still apply. */
37387char sched_yield ();
37388/* The GNU C library defines this for functions which it implements
37389 to always fail with ENOSYS. Some functions are actually named
37390 something starting with __ and the normal name is an alias. */
37391#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37392choke me
37393#else
37394char (*f) () = sched_yield;
37395#endif
37396#ifdef __cplusplus
37397}
37398#endif
37399
37400int
37401main ()
37402{
37403return f != sched_yield;
37404 ;
37405 return 0;
37406}
37407_ACEOF
37408rm -f conftest.$ac_objext conftest$ac_exeext
37409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37410 (eval $ac_link) 2>conftest.er1
a848cd7e 37411 ac_status=$?
ac1cb8d3
VS
37412 grep -v '^ *+' conftest.er1 >conftest.err
37413 rm -f conftest.er1
37414 cat conftest.err >&5
a848cd7e
SC
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); } &&
3565d135
RR
37417 { ac_try='test -z "$ac_c_werror_flag"
37418 || test ! -s conftest.err'
ac1cb8d3
VS
37419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420 (eval $ac_try) 2>&5
37421 ac_status=$?
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); }; } &&
37424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37426 (eval $ac_try) 2>&5
37427 ac_status=$?
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); }; }; then
37430 ac_cv_func_sched_yield=yes
37431else
37432 echo "$as_me: failed program was:" >&5
37433sed 's/^/| /' conftest.$ac_ext >&5
37434
37435ac_cv_func_sched_yield=no
37436fi
ac1cb8d3
VS
37437rm -f conftest.err conftest.$ac_objext \
37438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37439fi
37440echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37441echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37442if test $ac_cv_func_sched_yield = yes; then
37443 cat >>confdefs.h <<\_ACEOF
37444#define HAVE_SCHED_YIELD 1
37445_ACEOF
37446
37447else
37448
37449 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37450echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37451if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37452 echo $ECHO_N "(cached) $ECHO_C" >&6
37453else
37454 ac_check_lib_save_LIBS=$LIBS
37455LIBS="-lposix4 $LIBS"
37456cat >conftest.$ac_ext <<_ACEOF
37457/* confdefs.h. */
37458_ACEOF
37459cat confdefs.h >>conftest.$ac_ext
37460cat >>conftest.$ac_ext <<_ACEOF
37461/* end confdefs.h. */
37462
37463/* Override any gcc2 internal prototype to avoid an error. */
37464#ifdef __cplusplus
37465extern "C"
37466#endif
37467/* We use char because int might match the return type of a gcc2
37468 builtin and then its argument prototype would still apply. */
37469char sched_yield ();
37470int
37471main ()
37472{
37473sched_yield ();
37474 ;
37475 return 0;
37476}
37477_ACEOF
37478rm -f conftest.$ac_objext conftest$ac_exeext
37479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37480 (eval $ac_link) 2>conftest.er1
a848cd7e 37481 ac_status=$?
ac1cb8d3
VS
37482 grep -v '^ *+' conftest.er1 >conftest.err
37483 rm -f conftest.er1
37484 cat conftest.err >&5
a848cd7e
SC
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); } &&
3565d135
RR
37487 { ac_try='test -z "$ac_c_werror_flag"
37488 || test ! -s conftest.err'
ac1cb8d3
VS
37489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490 (eval $ac_try) 2>&5
37491 ac_status=$?
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); }; } &&
37494 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37496 (eval $ac_try) 2>&5
37497 ac_status=$?
37498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499 (exit $ac_status); }; }; then
37500 ac_cv_lib_posix4_sched_yield=yes
37501else
37502 echo "$as_me: failed program was:" >&5
37503sed 's/^/| /' conftest.$ac_ext >&5
37504
37505ac_cv_lib_posix4_sched_yield=no
37506fi
ac1cb8d3
VS
37507rm -f conftest.err conftest.$ac_objext \
37508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37509LIBS=$ac_check_lib_save_LIBS
37510fi
37511echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37512echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37513if test $ac_cv_lib_posix4_sched_yield = yes; then
37514 cat >>confdefs.h <<\_ACEOF
37515#define HAVE_SCHED_YIELD 1
37516_ACEOF
37517 POSIX4_LINK=" -lposix4"
37518else
37519 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37520echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37521
37522fi
37523
37524
37525
37526fi
37527
37528 fi
37529
37530 HAVE_PRIOR_FUNCS=0
37531 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37532echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37533if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37534 echo $ECHO_N "(cached) $ECHO_C" >&6
37535else
37536 cat >conftest.$ac_ext <<_ACEOF
37537/* confdefs.h. */
37538_ACEOF
37539cat confdefs.h >>conftest.$ac_ext
37540cat >>conftest.$ac_ext <<_ACEOF
37541/* end confdefs.h. */
ac1cb8d3
VS
37542/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37544#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37545
a848cd7e
SC
37546/* System header to define __stub macros and hopefully few prototypes,
37547 which can conflict with char pthread_attr_getschedpolicy (); below.
37548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37549 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37550
a848cd7e
SC
37551#ifdef __STDC__
37552# include <limits.h>
37553#else
37554# include <assert.h>
37555#endif
ac1cb8d3
VS
37556
37557#undef pthread_attr_getschedpolicy
37558
a848cd7e
SC
37559/* Override any gcc2 internal prototype to avoid an error. */
37560#ifdef __cplusplus
37561extern "C"
37562{
37563#endif
37564/* We use char because int might match the return type of a gcc2
37565 builtin and then its argument prototype would still apply. */
37566char pthread_attr_getschedpolicy ();
37567/* The GNU C library defines this for functions which it implements
37568 to always fail with ENOSYS. Some functions are actually named
37569 something starting with __ and the normal name is an alias. */
37570#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37571choke me
37572#else
37573char (*f) () = pthread_attr_getschedpolicy;
37574#endif
37575#ifdef __cplusplus
37576}
37577#endif
37578
37579int
37580main ()
37581{
37582return f != pthread_attr_getschedpolicy;
37583 ;
37584 return 0;
37585}
37586_ACEOF
37587rm -f conftest.$ac_objext conftest$ac_exeext
37588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37589 (eval $ac_link) 2>conftest.er1
a848cd7e 37590 ac_status=$?
ac1cb8d3
VS
37591 grep -v '^ *+' conftest.er1 >conftest.err
37592 rm -f conftest.er1
37593 cat conftest.err >&5
a848cd7e
SC
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); } &&
3565d135
RR
37596 { ac_try='test -z "$ac_c_werror_flag"
37597 || test ! -s conftest.err'
ac1cb8d3
VS
37598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37599 (eval $ac_try) 2>&5
37600 ac_status=$?
37601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602 (exit $ac_status); }; } &&
37603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605 (eval $ac_try) 2>&5
37606 ac_status=$?
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; }; then
37609 ac_cv_func_pthread_attr_getschedpolicy=yes
37610else
37611 echo "$as_me: failed program was:" >&5
37612sed 's/^/| /' conftest.$ac_ext >&5
37613
37614ac_cv_func_pthread_attr_getschedpolicy=no
37615fi
ac1cb8d3
VS
37616rm -f conftest.err conftest.$ac_objext \
37617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37618fi
37619echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37620echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37621if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37622 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37623echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37624if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37625 echo $ECHO_N "(cached) $ECHO_C" >&6
37626else
37627 cat >conftest.$ac_ext <<_ACEOF
37628/* confdefs.h. */
37629_ACEOF
37630cat confdefs.h >>conftest.$ac_ext
37631cat >>conftest.$ac_ext <<_ACEOF
37632/* end confdefs.h. */
ac1cb8d3
VS
37633/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37635#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37636
a848cd7e
SC
37637/* System header to define __stub macros and hopefully few prototypes,
37638 which can conflict with char pthread_attr_setschedparam (); below.
37639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37640 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37641
a848cd7e
SC
37642#ifdef __STDC__
37643# include <limits.h>
37644#else
37645# include <assert.h>
37646#endif
ac1cb8d3
VS
37647
37648#undef pthread_attr_setschedparam
37649
a848cd7e
SC
37650/* Override any gcc2 internal prototype to avoid an error. */
37651#ifdef __cplusplus
37652extern "C"
37653{
37654#endif
37655/* We use char because int might match the return type of a gcc2
37656 builtin and then its argument prototype would still apply. */
37657char pthread_attr_setschedparam ();
37658/* The GNU C library defines this for functions which it implements
37659 to always fail with ENOSYS. Some functions are actually named
37660 something starting with __ and the normal name is an alias. */
37661#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37662choke me
37663#else
37664char (*f) () = pthread_attr_setschedparam;
37665#endif
37666#ifdef __cplusplus
37667}
37668#endif
37669
37670int
37671main ()
37672{
37673return f != pthread_attr_setschedparam;
37674 ;
37675 return 0;
37676}
37677_ACEOF
37678rm -f conftest.$ac_objext conftest$ac_exeext
37679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37680 (eval $ac_link) 2>conftest.er1
a848cd7e 37681 ac_status=$?
ac1cb8d3
VS
37682 grep -v '^ *+' conftest.er1 >conftest.err
37683 rm -f conftest.er1
37684 cat conftest.err >&5
a848cd7e
SC
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); } &&
3565d135
RR
37687 { ac_try='test -z "$ac_c_werror_flag"
37688 || test ! -s conftest.err'
ac1cb8d3
VS
37689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690 (eval $ac_try) 2>&5
37691 ac_status=$?
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); }; } &&
37694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37696 (eval $ac_try) 2>&5
37697 ac_status=$?
37698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699 (exit $ac_status); }; }; then
37700 ac_cv_func_pthread_attr_setschedparam=yes
37701else
37702 echo "$as_me: failed program was:" >&5
37703sed 's/^/| /' conftest.$ac_ext >&5
37704
37705ac_cv_func_pthread_attr_setschedparam=no
37706fi
ac1cb8d3
VS
37707rm -f conftest.err conftest.$ac_objext \
37708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37709fi
37710echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37711echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37712if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37713 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37714echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37715if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37716 echo $ECHO_N "(cached) $ECHO_C" >&6
37717else
37718 cat >conftest.$ac_ext <<_ACEOF
37719/* confdefs.h. */
37720_ACEOF
37721cat confdefs.h >>conftest.$ac_ext
37722cat >>conftest.$ac_ext <<_ACEOF
37723/* end confdefs.h. */
ac1cb8d3
VS
37724/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37726#define sched_get_priority_max innocuous_sched_get_priority_max
37727
a848cd7e
SC
37728/* System header to define __stub macros and hopefully few prototypes,
37729 which can conflict with char sched_get_priority_max (); below.
37730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37731 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37732
a848cd7e
SC
37733#ifdef __STDC__
37734# include <limits.h>
37735#else
37736# include <assert.h>
37737#endif
ac1cb8d3
VS
37738
37739#undef sched_get_priority_max
37740
a848cd7e
SC
37741/* Override any gcc2 internal prototype to avoid an error. */
37742#ifdef __cplusplus
37743extern "C"
37744{
37745#endif
37746/* We use char because int might match the return type of a gcc2
37747 builtin and then its argument prototype would still apply. */
37748char sched_get_priority_max ();
37749/* The GNU C library defines this for functions which it implements
37750 to always fail with ENOSYS. Some functions are actually named
37751 something starting with __ and the normal name is an alias. */
37752#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37753choke me
37754#else
37755char (*f) () = sched_get_priority_max;
37756#endif
37757#ifdef __cplusplus
37758}
37759#endif
37760
37761int
37762main ()
37763{
37764return f != sched_get_priority_max;
37765 ;
37766 return 0;
37767}
37768_ACEOF
37769rm -f conftest.$ac_objext conftest$ac_exeext
37770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37771 (eval $ac_link) 2>conftest.er1
a848cd7e 37772 ac_status=$?
ac1cb8d3
VS
37773 grep -v '^ *+' conftest.er1 >conftest.err
37774 rm -f conftest.er1
37775 cat conftest.err >&5
a848cd7e
SC
37776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 (exit $ac_status); } &&
3565d135
RR
37778 { ac_try='test -z "$ac_c_werror_flag"
37779 || test ! -s conftest.err'
ac1cb8d3
VS
37780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37781 (eval $ac_try) 2>&5
37782 ac_status=$?
37783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784 (exit $ac_status); }; } &&
37785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37787 (eval $ac_try) 2>&5
37788 ac_status=$?
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); }; }; then
37791 ac_cv_func_sched_get_priority_max=yes
37792else
37793 echo "$as_me: failed program was:" >&5
37794sed 's/^/| /' conftest.$ac_ext >&5
37795
37796ac_cv_func_sched_get_priority_max=no
37797fi
ac1cb8d3
VS
37798rm -f conftest.err conftest.$ac_objext \
37799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37800fi
37801echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37802echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37803if test $ac_cv_func_sched_get_priority_max = yes; then
37804 HAVE_PRIOR_FUNCS=1
37805else
37806 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37807echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37808if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37809 echo $ECHO_N "(cached) $ECHO_C" >&6
37810else
37811 ac_check_lib_save_LIBS=$LIBS
37812LIBS="-lposix4 $LIBS"
37813cat >conftest.$ac_ext <<_ACEOF
37814/* confdefs.h. */
37815_ACEOF
37816cat confdefs.h >>conftest.$ac_ext
37817cat >>conftest.$ac_ext <<_ACEOF
37818/* end confdefs.h. */
37819
37820/* Override any gcc2 internal prototype to avoid an error. */
37821#ifdef __cplusplus
37822extern "C"
37823#endif
37824/* We use char because int might match the return type of a gcc2
37825 builtin and then its argument prototype would still apply. */
37826char sched_get_priority_max ();
37827int
37828main ()
37829{
37830sched_get_priority_max ();
37831 ;
37832 return 0;
37833}
37834_ACEOF
37835rm -f conftest.$ac_objext conftest$ac_exeext
37836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37837 (eval $ac_link) 2>conftest.er1
a848cd7e 37838 ac_status=$?
ac1cb8d3
VS
37839 grep -v '^ *+' conftest.er1 >conftest.err
37840 rm -f conftest.er1
37841 cat conftest.err >&5
a848cd7e
SC
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); } &&
3565d135
RR
37844 { ac_try='test -z "$ac_c_werror_flag"
37845 || test ! -s conftest.err'
ac1cb8d3
VS
37846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37847 (eval $ac_try) 2>&5
37848 ac_status=$?
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); }; } &&
37851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37853 (eval $ac_try) 2>&5
37854 ac_status=$?
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856 (exit $ac_status); }; }; then
37857 ac_cv_lib_posix4_sched_get_priority_max=yes
37858else
37859 echo "$as_me: failed program was:" >&5
37860sed 's/^/| /' conftest.$ac_ext >&5
37861
37862ac_cv_lib_posix4_sched_get_priority_max=no
37863fi
ac1cb8d3
VS
37864rm -f conftest.err conftest.$ac_objext \
37865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37866LIBS=$ac_check_lib_save_LIBS
37867fi
37868echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37869echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37870if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37871
37872 HAVE_PRIOR_FUNCS=1
37873 POSIX4_LINK=" -lposix4"
37874
37875fi
37876
37877
37878fi
37879
37880
37881fi
37882
37883
37884fi
37885
37886
37887 if test "$HAVE_PRIOR_FUNCS" = 1; then
37888 cat >>confdefs.h <<\_ACEOF
37889#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37890_ACEOF
37891
37892 else
37893 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37894echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37895 fi
37896
37897 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37898echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37899if test "${ac_cv_func_pthread_cancel+set}" = set; then
37900 echo $ECHO_N "(cached) $ECHO_C" >&6
37901else
37902 cat >conftest.$ac_ext <<_ACEOF
37903/* confdefs.h. */
37904_ACEOF
37905cat confdefs.h >>conftest.$ac_ext
37906cat >>conftest.$ac_ext <<_ACEOF
37907/* end confdefs.h. */
ac1cb8d3
VS
37908/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37910#define pthread_cancel innocuous_pthread_cancel
37911
a848cd7e
SC
37912/* System header to define __stub macros and hopefully few prototypes,
37913 which can conflict with char pthread_cancel (); below.
37914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37916
a848cd7e
SC
37917#ifdef __STDC__
37918# include <limits.h>
37919#else
37920# include <assert.h>
37921#endif
ac1cb8d3
VS
37922
37923#undef pthread_cancel
37924
a848cd7e
SC
37925/* Override any gcc2 internal prototype to avoid an error. */
37926#ifdef __cplusplus
37927extern "C"
37928{
37929#endif
37930/* We use char because int might match the return type of a gcc2
37931 builtin and then its argument prototype would still apply. */
37932char pthread_cancel ();
37933/* The GNU C library defines this for functions which it implements
37934 to always fail with ENOSYS. Some functions are actually named
37935 something starting with __ and the normal name is an alias. */
37936#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37937choke me
37938#else
37939char (*f) () = pthread_cancel;
37940#endif
37941#ifdef __cplusplus
37942}
37943#endif
37944
37945int
37946main ()
37947{
37948return f != pthread_cancel;
37949 ;
37950 return 0;
37951}
37952_ACEOF
37953rm -f conftest.$ac_objext conftest$ac_exeext
37954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37955 (eval $ac_link) 2>conftest.er1
a848cd7e 37956 ac_status=$?
ac1cb8d3
VS
37957 grep -v '^ *+' conftest.er1 >conftest.err
37958 rm -f conftest.er1
37959 cat conftest.err >&5
a848cd7e
SC
37960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961 (exit $ac_status); } &&
3565d135
RR
37962 { ac_try='test -z "$ac_c_werror_flag"
37963 || test ! -s conftest.err'
ac1cb8d3
VS
37964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965 (eval $ac_try) 2>&5
37966 ac_status=$?
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); }; } &&
37969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971 (eval $ac_try) 2>&5
37972 ac_status=$?
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); }; }; then
37975 ac_cv_func_pthread_cancel=yes
37976else
37977 echo "$as_me: failed program was:" >&5
37978sed 's/^/| /' conftest.$ac_ext >&5
37979
37980ac_cv_func_pthread_cancel=no
37981fi
ac1cb8d3
VS
37982rm -f conftest.err conftest.$ac_objext \
37983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37984fi
37985echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37986echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37987if test $ac_cv_func_pthread_cancel = yes; then
37988 cat >>confdefs.h <<\_ACEOF
37989#define HAVE_PTHREAD_CANCEL 1
37990_ACEOF
37991
37992else
37993 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37994echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37995fi
37996
37997
abc736fd
MW
37998 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37999echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38000if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38001 echo $ECHO_N "(cached) $ECHO_C" >&6
38002else
38003 cat >conftest.$ac_ext <<_ACEOF
38004/* confdefs.h. */
38005_ACEOF
38006cat confdefs.h >>conftest.$ac_ext
38007cat >>conftest.$ac_ext <<_ACEOF
38008/* end confdefs.h. */
38009/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38011#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38012
38013/* System header to define __stub macros and hopefully few prototypes,
38014 which can conflict with char pthread_attr_setstacksize (); below.
38015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38016 <limits.h> exists even on freestanding compilers. */
38017
38018#ifdef __STDC__
38019# include <limits.h>
38020#else
38021# include <assert.h>
38022#endif
38023
38024#undef pthread_attr_setstacksize
38025
38026/* Override any gcc2 internal prototype to avoid an error. */
38027#ifdef __cplusplus
38028extern "C"
38029{
38030#endif
38031/* We use char because int might match the return type of a gcc2
38032 builtin and then its argument prototype would still apply. */
38033char pthread_attr_setstacksize ();
38034/* The GNU C library defines this for functions which it implements
38035 to always fail with ENOSYS. Some functions are actually named
38036 something starting with __ and the normal name is an alias. */
38037#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38038choke me
38039#else
38040char (*f) () = pthread_attr_setstacksize;
38041#endif
38042#ifdef __cplusplus
38043}
38044#endif
38045
38046int
38047main ()
38048{
38049return f != pthread_attr_setstacksize;
38050 ;
38051 return 0;
38052}
38053_ACEOF
38054rm -f conftest.$ac_objext conftest$ac_exeext
38055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38056 (eval $ac_link) 2>conftest.er1
38057 ac_status=$?
38058 grep -v '^ *+' conftest.er1 >conftest.err
38059 rm -f conftest.er1
38060 cat conftest.err >&5
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); } &&
3565d135
RR
38063 { ac_try='test -z "$ac_c_werror_flag"
38064 || test ! -s conftest.err'
abc736fd
MW
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38067 ac_status=$?
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; } &&
38070 { ac_try='test -s conftest$ac_exeext'
38071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38072 (eval $ac_try) 2>&5
38073 ac_status=$?
38074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075 (exit $ac_status); }; }; then
38076 ac_cv_func_pthread_attr_setstacksize=yes
38077else
38078 echo "$as_me: failed program was:" >&5
38079sed 's/^/| /' conftest.$ac_ext >&5
38080
38081ac_cv_func_pthread_attr_setstacksize=no
38082fi
38083rm -f conftest.err conftest.$ac_objext \
38084 conftest$ac_exeext conftest.$ac_ext
38085fi
38086echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38087echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38088if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38089 cat >>confdefs.h <<\_ACEOF
38090#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38091_ACEOF
38092
38093fi
38094
a848cd7e
SC
38095
38096
38097 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38098echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38099if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38100 echo $ECHO_N "(cached) $ECHO_C" >&6
38101else
38102
38103 cat >conftest.$ac_ext <<_ACEOF
38104/* confdefs.h. */
38105_ACEOF
38106cat confdefs.h >>conftest.$ac_ext
38107cat >>conftest.$ac_ext <<_ACEOF
38108/* end confdefs.h. */
38109#include <pthread.h>
38110int
38111main ()
38112{
38113
38114 pthread_mutexattr_t attr;
38115 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38116
38117 ;
38118 return 0;
38119}
38120_ACEOF
38121rm -f conftest.$ac_objext
38122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38123 (eval $ac_compile) 2>conftest.er1
a848cd7e 38124 ac_status=$?
ac1cb8d3
VS
38125 grep -v '^ *+' conftest.er1 >conftest.err
38126 rm -f conftest.er1
38127 cat conftest.err >&5
a848cd7e
SC
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } &&
3565d135
RR
38130 { ac_try='test -z "$ac_c_werror_flag"
38131 || test ! -s conftest.err'
ac1cb8d3
VS
38132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133 (eval $ac_try) 2>&5
38134 ac_status=$?
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); }; } &&
38137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139 (eval $ac_try) 2>&5
38140 ac_status=$?
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); }; }; then
123dca7d 38143 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38144else
38145 echo "$as_me: failed program was:" >&5
38146sed 's/^/| /' conftest.$ac_ext >&5
38147
123dca7d 38148wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38149
38150fi
ac1cb8d3 38151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38152
38153fi
38154echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38155echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38156
38157 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38158 cat >>confdefs.h <<\_ACEOF
38159#define HAVE_PTHREAD_MUTEXATTR_T 1
38160_ACEOF
38161
123dca7d
VZ
38162
38163 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38164echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38165if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38166 echo $ECHO_N "(cached) $ECHO_C" >&6
38167else
38168
38169 cat >conftest.$ac_ext <<_ACEOF
38170/* confdefs.h. */
38171_ACEOF
38172cat confdefs.h >>conftest.$ac_ext
38173cat >>conftest.$ac_ext <<_ACEOF
38174/* end confdefs.h. */
38175#include <pthread.h>
38176int
38177main ()
38178{
38179
38180 pthread_mutexattr_t attr;
38181 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38182
38183 ;
38184 return 0;
38185}
38186_ACEOF
38187rm -f conftest.$ac_objext
38188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38189 (eval $ac_compile) 2>conftest.er1
38190 ac_status=$?
38191 grep -v '^ *+' conftest.er1 >conftest.err
38192 rm -f conftest.er1
38193 cat conftest.err >&5
38194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38195 (exit $ac_status); } &&
3565d135
RR
38196 { ac_try='test -z "$ac_c_werror_flag"
38197 || test ! -s conftest.err'
123dca7d
VZ
38198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38199 (eval $ac_try) 2>&5
38200 ac_status=$?
38201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38202 (exit $ac_status); }; } &&
38203 { ac_try='test -s conftest.$ac_objext'
38204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38205 (eval $ac_try) 2>&5
38206 ac_status=$?
38207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); }; }; then
38209 wx_cv_func_pthread_mutexattr_settype_decl=yes
38210else
38211 echo "$as_me: failed program was:" >&5
38212sed 's/^/| /' conftest.$ac_ext >&5
38213
38214wx_cv_func_pthread_mutexattr_settype_decl=no
38215
38216fi
38217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38218
38219fi
38220echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38221echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38222 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38223 cat >>confdefs.h <<\_ACEOF
38224#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38225_ACEOF
38226
38227 fi
a848cd7e
SC
38228 else
38229 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38230echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38231if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38232 echo $ECHO_N "(cached) $ECHO_C" >&6
38233else
38234
38235 cat >conftest.$ac_ext <<_ACEOF
38236/* confdefs.h. */
38237_ACEOF
38238cat confdefs.h >>conftest.$ac_ext
38239cat >>conftest.$ac_ext <<_ACEOF
38240/* end confdefs.h. */
38241#include <pthread.h>
38242int
38243main ()
38244{
38245
38246 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38247
38248 ;
38249 return 0;
38250}
38251_ACEOF
38252rm -f conftest.$ac_objext
38253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38254 (eval $ac_compile) 2>conftest.er1
a848cd7e 38255 ac_status=$?
ac1cb8d3
VS
38256 grep -v '^ *+' conftest.er1 >conftest.err
38257 rm -f conftest.er1
38258 cat conftest.err >&5
a848cd7e
SC
38259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); } &&
3565d135
RR
38261 { ac_try='test -z "$ac_c_werror_flag"
38262 || test ! -s conftest.err'
ac1cb8d3
VS
38263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38264 (eval $ac_try) 2>&5
38265 ac_status=$?
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); }; } &&
38268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38270 (eval $ac_try) 2>&5
38271 ac_status=$?
38272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38273 (exit $ac_status); }; }; then
38274
38275 wx_cv_type_pthread_rec_mutex_init=yes
38276
38277else
38278 echo "$as_me: failed program was:" >&5
38279sed 's/^/| /' conftest.$ac_ext >&5
38280
38281
38282 wx_cv_type_pthread_rec_mutex_init=no
38283
38284
38285fi
ac1cb8d3 38286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38287
38288fi
38289echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38290echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38291 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38292 cat >>confdefs.h <<\_ACEOF
38293#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38294_ACEOF
38295
38296 else
38297 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38298echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38299 fi
38300 fi
38301 fi
38302
38303else
38304 if test "$wxUSE_THREADS" = "yes" ; then
38305 case "${host}" in
38306 *-*-mingw32* )
38307 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38308echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38309if test "${wx_cv_cflags_mthread+set}" = set; then
38310 echo $ECHO_N "(cached) $ECHO_C" >&6
38311else
38312
38313 CFLAGS_OLD="$CFLAGS"
c92ad099 38314 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38315 cat >conftest.$ac_ext <<_ACEOF
38316/* confdefs.h. */
38317_ACEOF
38318cat confdefs.h >>conftest.$ac_ext
38319cat >>conftest.$ac_ext <<_ACEOF
38320/* end confdefs.h. */
38321
38322int
38323main ()
38324{
38325
38326 ;
38327 return 0;
38328}
38329_ACEOF
38330rm -f conftest.$ac_objext
38331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38332 (eval $ac_compile) 2>conftest.er1
a848cd7e 38333 ac_status=$?
ac1cb8d3
VS
38334 grep -v '^ *+' conftest.er1 >conftest.err
38335 rm -f conftest.er1
38336 cat conftest.err >&5
a848cd7e
SC
38337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338 (exit $ac_status); } &&
3565d135
RR
38339 { ac_try='test -z "$ac_c_werror_flag"
38340 || test ! -s conftest.err'
ac1cb8d3
VS
38341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38342 (eval $ac_try) 2>&5
38343 ac_status=$?
38344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345 (exit $ac_status); }; } &&
38346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38348 (eval $ac_try) 2>&5
38349 ac_status=$?
38350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38351 (exit $ac_status); }; }; then
38352 wx_cv_cflags_mthread=yes
38353else
38354 echo "$as_me: failed program was:" >&5
38355sed 's/^/| /' conftest.$ac_ext >&5
38356
38357wx_cv_cflags_mthread=no
38358
38359fi
ac1cb8d3 38360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38361
38362
38363fi
38364echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38365echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38366
38367 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38368 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38369 LDFLAGS="$LDFLAGS -mthreads"
38370 else
38371 CFLAGS="$CFLAGS_OLD"
38372 fi
38373 ;;
38374 *-pc-os2*emx )
5ff751d6
VZ
38375 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38376 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38377 LDFLAGS="$LDFLAGS -Zmt"
38378 ;;
38379 esac
38380 fi
38381fi
38382
004ee6da
RL
38383echo "$as_me:$LINENO: checking for localtime_r" >&5
38384echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38385if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38386 echo $ECHO_N "(cached) $ECHO_C" >&6
38387else
38388 cat >conftest.$ac_ext <<_ACEOF
38389/* confdefs.h. */
38390_ACEOF
38391cat confdefs.h >>conftest.$ac_ext
38392cat >>conftest.$ac_ext <<_ACEOF
38393/* end confdefs.h. */
004ee6da 38394/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38396#define localtime_r innocuous_localtime_r
ac1cb8d3 38397
a848cd7e 38398/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38399 which can conflict with char localtime_r (); below.
a848cd7e
SC
38400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38401 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38402
a848cd7e
SC
38403#ifdef __STDC__
38404# include <limits.h>
38405#else
38406# include <assert.h>
38407#endif
ac1cb8d3 38408
004ee6da 38409#undef localtime_r
ac1cb8d3 38410
a848cd7e
SC
38411/* Override any gcc2 internal prototype to avoid an error. */
38412#ifdef __cplusplus
38413extern "C"
38414{
38415#endif
38416/* We use char because int might match the return type of a gcc2
38417 builtin and then its argument prototype would still apply. */
004ee6da 38418char localtime_r ();
a848cd7e
SC
38419/* The GNU C library defines this for functions which it implements
38420 to always fail with ENOSYS. Some functions are actually named
38421 something starting with __ and the normal name is an alias. */
004ee6da 38422#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38423choke me
38424#else
004ee6da 38425char (*f) () = localtime_r;
a848cd7e
SC
38426#endif
38427#ifdef __cplusplus
38428}
38429#endif
38430
38431int
38432main ()
38433{
004ee6da
RL
38434return f != localtime_r;
38435 ;
38436 return 0;
38437}
38438_ACEOF
38439rm -f conftest.$ac_objext conftest$ac_exeext
38440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38441 (eval $ac_link) 2>conftest.er1
38442 ac_status=$?
38443 grep -v '^ *+' conftest.er1 >conftest.err
38444 rm -f conftest.er1
38445 cat conftest.err >&5
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); } &&
3565d135
RR
38448 { ac_try='test -z "$ac_c_werror_flag"
38449 || test ! -s conftest.err'
004ee6da
RL
38450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38451 (eval $ac_try) 2>&5
38452 ac_status=$?
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); }; } &&
38455 { ac_try='test -s conftest$ac_exeext'
38456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38457 (eval $ac_try) 2>&5
38458 ac_status=$?
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); }; }; then
38461 ac_cv_func_localtime_r=yes
38462else
38463 echo "$as_me: failed program was:" >&5
38464sed 's/^/| /' conftest.$ac_ext >&5
38465
38466ac_cv_func_localtime_r=no
38467fi
38468rm -f conftest.err conftest.$ac_objext \
38469 conftest$ac_exeext conftest.$ac_ext
38470fi
38471echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38472echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38473if test $ac_cv_func_localtime_r = yes; then
38474 cat >>confdefs.h <<\_ACEOF
38475#define HAVE_LOCALTIME_R 1
38476_ACEOF
38477
38478fi
38479
38480echo "$as_me:$LINENO: checking for gmtime_r" >&5
38481echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38482if test "${ac_cv_func_gmtime_r+set}" = set; then
38483 echo $ECHO_N "(cached) $ECHO_C" >&6
38484else
38485 cat >conftest.$ac_ext <<_ACEOF
38486/* confdefs.h. */
38487_ACEOF
38488cat confdefs.h >>conftest.$ac_ext
38489cat >>conftest.$ac_ext <<_ACEOF
38490/* end confdefs.h. */
38491/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38493#define gmtime_r innocuous_gmtime_r
38494
38495/* System header to define __stub macros and hopefully few prototypes,
38496 which can conflict with char gmtime_r (); below.
38497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38498 <limits.h> exists even on freestanding compilers. */
38499
38500#ifdef __STDC__
38501# include <limits.h>
38502#else
38503# include <assert.h>
38504#endif
38505
38506#undef gmtime_r
38507
38508/* Override any gcc2 internal prototype to avoid an error. */
38509#ifdef __cplusplus
38510extern "C"
38511{
38512#endif
38513/* We use char because int might match the return type of a gcc2
38514 builtin and then its argument prototype would still apply. */
38515char gmtime_r ();
38516/* The GNU C library defines this for functions which it implements
38517 to always fail with ENOSYS. Some functions are actually named
38518 something starting with __ and the normal name is an alias. */
38519#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38520choke me
38521#else
38522char (*f) () = gmtime_r;
38523#endif
38524#ifdef __cplusplus
38525}
38526#endif
38527
38528int
38529main ()
38530{
38531return f != gmtime_r;
38532 ;
38533 return 0;
38534}
38535_ACEOF
38536rm -f conftest.$ac_objext conftest$ac_exeext
38537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38538 (eval $ac_link) 2>conftest.er1
38539 ac_status=$?
38540 grep -v '^ *+' conftest.er1 >conftest.err
38541 rm -f conftest.er1
38542 cat conftest.err >&5
38543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544 (exit $ac_status); } &&
3565d135
RR
38545 { ac_try='test -z "$ac_c_werror_flag"
38546 || test ! -s conftest.err'
004ee6da
RL
38547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38548 (eval $ac_try) 2>&5
38549 ac_status=$?
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); }; } &&
38552 { ac_try='test -s conftest$ac_exeext'
38553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38554 (eval $ac_try) 2>&5
38555 ac_status=$?
38556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557 (exit $ac_status); }; }; then
38558 ac_cv_func_gmtime_r=yes
38559else
38560 echo "$as_me: failed program was:" >&5
38561sed 's/^/| /' conftest.$ac_ext >&5
38562
38563ac_cv_func_gmtime_r=no
38564fi
38565rm -f conftest.err conftest.$ac_objext \
38566 conftest$ac_exeext conftest.$ac_ext
38567fi
38568echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38569echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38570if test $ac_cv_func_gmtime_r = yes; then
38571 cat >>confdefs.h <<\_ACEOF
38572#define HAVE_GMTIME_R 1
38573_ACEOF
38574
38575fi
38576
38577echo "$as_me:$LINENO: checking for readdir_r" >&5
38578echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38579if test "${ac_cv_func_readdir_r+set}" = set; then
38580 echo $ECHO_N "(cached) $ECHO_C" >&6
38581else
38582 cat >conftest.$ac_ext <<_ACEOF
38583/* confdefs.h. */
38584_ACEOF
38585cat confdefs.h >>conftest.$ac_ext
38586cat >>conftest.$ac_ext <<_ACEOF
38587/* end confdefs.h. */
38588/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38590#define readdir_r innocuous_readdir_r
38591
38592/* System header to define __stub macros and hopefully few prototypes,
38593 which can conflict with char readdir_r (); below.
38594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38595 <limits.h> exists even on freestanding compilers. */
38596
38597#ifdef __STDC__
38598# include <limits.h>
38599#else
38600# include <assert.h>
38601#endif
38602
38603#undef readdir_r
38604
38605/* Override any gcc2 internal prototype to avoid an error. */
38606#ifdef __cplusplus
38607extern "C"
38608{
38609#endif
38610/* We use char because int might match the return type of a gcc2
38611 builtin and then its argument prototype would still apply. */
38612char readdir_r ();
38613/* The GNU C library defines this for functions which it implements
38614 to always fail with ENOSYS. Some functions are actually named
38615 something starting with __ and the normal name is an alias. */
38616#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38617choke me
38618#else
38619char (*f) () = readdir_r;
38620#endif
38621#ifdef __cplusplus
38622}
38623#endif
38624
38625int
38626main ()
38627{
38628return f != readdir_r;
38629 ;
38630 return 0;
38631}
38632_ACEOF
38633rm -f conftest.$ac_objext conftest$ac_exeext
38634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38635 (eval $ac_link) 2>conftest.er1
38636 ac_status=$?
38637 grep -v '^ *+' conftest.er1 >conftest.err
38638 rm -f conftest.er1
38639 cat conftest.err >&5
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); } &&
3565d135
RR
38642 { ac_try='test -z "$ac_c_werror_flag"
38643 || test ! -s conftest.err'
004ee6da
RL
38644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38645 (eval $ac_try) 2>&5
38646 ac_status=$?
38647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38648 (exit $ac_status); }; } &&
38649 { ac_try='test -s conftest$ac_exeext'
38650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38651 (eval $ac_try) 2>&5
38652 ac_status=$?
38653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654 (exit $ac_status); }; }; then
38655 ac_cv_func_readdir_r=yes
38656else
38657 echo "$as_me: failed program was:" >&5
38658sed 's/^/| /' conftest.$ac_ext >&5
38659
38660ac_cv_func_readdir_r=no
38661fi
38662rm -f conftest.err conftest.$ac_objext \
38663 conftest$ac_exeext conftest.$ac_ext
38664fi
38665echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38666echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38667if test $ac_cv_func_readdir_r = yes; then
38668 cat >>confdefs.h <<\_ACEOF
38669#define HAVE_READDIR_R 1
38670_ACEOF
38671
38672fi
38673
38674echo "$as_me:$LINENO: checking for getaddrinfo" >&5
38675echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
38676if test "${ac_cv_func_getaddrinfo+set}" = set; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38678else
38679 cat >conftest.$ac_ext <<_ACEOF
38680/* confdefs.h. */
38681_ACEOF
38682cat confdefs.h >>conftest.$ac_ext
38683cat >>conftest.$ac_ext <<_ACEOF
38684/* end confdefs.h. */
38685/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
38686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38687#define getaddrinfo innocuous_getaddrinfo
38688
38689/* System header to define __stub macros and hopefully few prototypes,
38690 which can conflict with char getaddrinfo (); below.
38691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38692 <limits.h> exists even on freestanding compilers. */
38693
38694#ifdef __STDC__
38695# include <limits.h>
38696#else
38697# include <assert.h>
38698#endif
38699
38700#undef getaddrinfo
38701
38702/* Override any gcc2 internal prototype to avoid an error. */
38703#ifdef __cplusplus
38704extern "C"
38705{
38706#endif
38707/* We use char because int might match the return type of a gcc2
38708 builtin and then its argument prototype would still apply. */
38709char getaddrinfo ();
38710/* The GNU C library defines this for functions which it implements
38711 to always fail with ENOSYS. Some functions are actually named
38712 something starting with __ and the normal name is an alias. */
38713#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
38714choke me
38715#else
38716char (*f) () = getaddrinfo;
38717#endif
38718#ifdef __cplusplus
38719}
38720#endif
38721
38722int
38723main ()
38724{
38725return f != getaddrinfo;
38726 ;
38727 return 0;
38728}
38729_ACEOF
38730rm -f conftest.$ac_objext conftest$ac_exeext
38731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38732 (eval $ac_link) 2>conftest.er1
38733 ac_status=$?
38734 grep -v '^ *+' conftest.er1 >conftest.err
38735 rm -f conftest.er1
38736 cat conftest.err >&5
38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738 (exit $ac_status); } &&
3565d135
RR
38739 { ac_try='test -z "$ac_c_werror_flag"
38740 || test ! -s conftest.err'
004ee6da
RL
38741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38742 (eval $ac_try) 2>&5
38743 ac_status=$?
38744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745 (exit $ac_status); }; } &&
38746 { ac_try='test -s conftest$ac_exeext'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38748 (eval $ac_try) 2>&5
38749 ac_status=$?
38750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
38752 ac_cv_func_getaddrinfo=yes
38753else
38754 echo "$as_me: failed program was:" >&5
38755sed 's/^/| /' conftest.$ac_ext >&5
38756
38757ac_cv_func_getaddrinfo=no
38758fi
38759rm -f conftest.err conftest.$ac_objext \
38760 conftest$ac_exeext conftest.$ac_ext
38761fi
38762echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
38763echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
38764if test $ac_cv_func_getaddrinfo = yes; then
38765 cat >>confdefs.h <<\_ACEOF
38766#define HAVE_GETADDRINFO 1
38767_ACEOF
38768
38769else
38770
38771
38772 ac_ext=c
38773ac_cpp='$CPP $CPPFLAGS'
38774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38776ac_compiler_gnu=$ac_cv_c_compiler_gnu
38777
38778 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38779echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38780
38781 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38782 echo $ECHO_N "(cached) $ECHO_C" >&6
38783else
38784
38785
38786################################################################
38787
38788ac_cv_func_which_gethostbyname_r=unknown
38789
38790#
38791# ONE ARGUMENT (sanity check)
38792#
38793
38794# This should fail, as there is no variant of gethostbyname_r() that takes
38795# a single argument. If it actually compiles, then we can assume that
38796# netdb.h is not declaring the function, and the compiler is thereby
38797# assuming an implicit prototype. In which case, we're out of luck.
38798#
38799cat >conftest.$ac_ext <<_ACEOF
38800/* confdefs.h. */
38801_ACEOF
38802cat confdefs.h >>conftest.$ac_ext
38803cat >>conftest.$ac_ext <<_ACEOF
38804/* end confdefs.h. */
38805#include <netdb.h>
38806int
38807main ()
38808{
38809
38810 char *name = "www.gnu.org";
38811 (void)gethostbyname_r(name) /* ; */
38812
38813 ;
38814 return 0;
38815}
38816_ACEOF
38817rm -f conftest.$ac_objext
38818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38819 (eval $ac_compile) 2>conftest.er1
38820 ac_status=$?
38821 grep -v '^ *+' conftest.er1 >conftest.err
38822 rm -f conftest.er1
38823 cat conftest.err >&5
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); } &&
3565d135
RR
38826 { ac_try='test -z "$ac_c_werror_flag"
38827 || test ! -s conftest.err'
004ee6da
RL
38828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829 (eval $ac_try) 2>&5
38830 ac_status=$?
38831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832 (exit $ac_status); }; } &&
38833 { ac_try='test -s conftest.$ac_objext'
38834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38835 (eval $ac_try) 2>&5
38836 ac_status=$?
38837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38838 (exit $ac_status); }; }; then
38839 ac_cv_func_which_gethostbyname_r=no
38840else
38841 echo "$as_me: failed program was:" >&5
38842sed 's/^/| /' conftest.$ac_ext >&5
38843
38844fi
38845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38846
38847#
38848# SIX ARGUMENTS
38849# (e.g. Linux)
38850#
38851
38852if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38853
38854cat >conftest.$ac_ext <<_ACEOF
38855/* confdefs.h. */
38856_ACEOF
38857cat confdefs.h >>conftest.$ac_ext
38858cat >>conftest.$ac_ext <<_ACEOF
38859/* end confdefs.h. */
38860#include <netdb.h>
38861int
38862main ()
38863{
38864
38865 char *name = "www.gnu.org";
38866 struct hostent ret, *retp;
38867 char buf[1024];
38868 int buflen = 1024;
38869 int my_h_errno;
38870 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38871
38872 ;
38873 return 0;
38874}
38875_ACEOF
38876rm -f conftest.$ac_objext
38877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38878 (eval $ac_compile) 2>conftest.er1
38879 ac_status=$?
38880 grep -v '^ *+' conftest.er1 >conftest.err
38881 rm -f conftest.er1
38882 cat conftest.err >&5
38883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38884 (exit $ac_status); } &&
3565d135
RR
38885 { ac_try='test -z "$ac_c_werror_flag"
38886 || test ! -s conftest.err'
004ee6da
RL
38887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38888 (eval $ac_try) 2>&5
38889 ac_status=$?
38890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38891 (exit $ac_status); }; } &&
38892 { ac_try='test -s conftest.$ac_objext'
38893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894 (eval $ac_try) 2>&5
38895 ac_status=$?
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); }; }; then
38898 ac_cv_func_which_gethostbyname_r=six
38899else
38900 echo "$as_me: failed program was:" >&5
38901sed 's/^/| /' conftest.$ac_ext >&5
38902
38903fi
38904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38905
38906fi
38907
38908#
38909# FIVE ARGUMENTS
38910# (e.g. Solaris)
38911#
38912
38913if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38914
38915cat >conftest.$ac_ext <<_ACEOF
38916/* confdefs.h. */
38917_ACEOF
38918cat confdefs.h >>conftest.$ac_ext
38919cat >>conftest.$ac_ext <<_ACEOF
38920/* end confdefs.h. */
38921#include <netdb.h>
38922int
38923main ()
38924{
38925
38926 char *name = "www.gnu.org";
38927 struct hostent ret;
38928 char buf[1024];
38929 int buflen = 1024;
38930 int my_h_errno;
38931 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38932
38933 ;
38934 return 0;
38935}
38936_ACEOF
38937rm -f conftest.$ac_objext
38938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38939 (eval $ac_compile) 2>conftest.er1
38940 ac_status=$?
38941 grep -v '^ *+' conftest.er1 >conftest.err
38942 rm -f conftest.er1
38943 cat conftest.err >&5
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); } &&
3565d135
RR
38946 { ac_try='test -z "$ac_c_werror_flag"
38947 || test ! -s conftest.err'
004ee6da
RL
38948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38949 (eval $ac_try) 2>&5
38950 ac_status=$?
38951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952 (exit $ac_status); }; } &&
38953 { ac_try='test -s conftest.$ac_objext'
38954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38955 (eval $ac_try) 2>&5
38956 ac_status=$?
38957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958 (exit $ac_status); }; }; then
38959 ac_cv_func_which_gethostbyname_r=five
38960else
38961 echo "$as_me: failed program was:" >&5
38962sed 's/^/| /' conftest.$ac_ext >&5
38963
38964fi
38965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38966
38967fi
38968
38969#
38970# THREE ARGUMENTS
38971# (e.g. AIX, HP-UX, Tru64)
38972#
38973
38974if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38975
38976cat >conftest.$ac_ext <<_ACEOF
38977/* confdefs.h. */
38978_ACEOF
38979cat confdefs.h >>conftest.$ac_ext
38980cat >>conftest.$ac_ext <<_ACEOF
38981/* end confdefs.h. */
38982#include <netdb.h>
38983int
38984main ()
38985{
38986
38987 char *name = "www.gnu.org";
38988 struct hostent ret;
38989 struct hostent_data data;
38990 (void)gethostbyname_r(name, &ret, &data) /* ; */
38991
38992 ;
38993 return 0;
38994}
38995_ACEOF
38996rm -f conftest.$ac_objext
38997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38998 (eval $ac_compile) 2>conftest.er1
38999 ac_status=$?
39000 grep -v '^ *+' conftest.er1 >conftest.err
39001 rm -f conftest.er1
39002 cat conftest.err >&5
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); } &&
3565d135
RR
39005 { ac_try='test -z "$ac_c_werror_flag"
39006 || test ! -s conftest.err'
004ee6da
RL
39007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008 (eval $ac_try) 2>&5
39009 ac_status=$?
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); }; } &&
39012 { ac_try='test -s conftest.$ac_objext'
39013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014 (eval $ac_try) 2>&5
39015 ac_status=$?
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); }; }; then
39018 ac_cv_func_which_gethostbyname_r=three
39019else
39020 echo "$as_me: failed program was:" >&5
39021sed 's/^/| /' conftest.$ac_ext >&5
39022
39023fi
39024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39025
39026fi
39027
39028################################################################
39029
39030
39031fi
39032
39033case "$ac_cv_func_which_gethostbyname_r" in
39034 three)
39035 echo "$as_me:$LINENO: result: three" >&5
39036echo "${ECHO_T}three" >&6
39037 cat >>confdefs.h <<\_ACEOF
39038#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39039_ACEOF
39040
39041 ;;
39042
39043 five)
39044 echo "$as_me:$LINENO: result: five" >&5
39045echo "${ECHO_T}five" >&6
39046 cat >>confdefs.h <<\_ACEOF
39047#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39048_ACEOF
39049
39050 ;;
39051
39052 six)
39053 echo "$as_me:$LINENO: result: six" >&5
39054echo "${ECHO_T}six" >&6
39055 cat >>confdefs.h <<\_ACEOF
39056#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39057_ACEOF
39058
39059 ;;
39060
39061 no)
39062 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39063echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39064 ;;
39065
39066 unknown)
39067 echo "$as_me:$LINENO: result: can't tell" >&5
39068echo "${ECHO_T}can't tell" >&6
39069 ;;
39070
39071 *)
39072 { { echo "$as_me:$LINENO: error: internal error" >&5
39073echo "$as_me: error: internal error" >&2;}
39074 { (exit 1); exit 1; }; }
39075 ;;
39076esac
39077
39078ac_ext=c
39079ac_cpp='$CPP $CPPFLAGS'
39080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39082ac_compiler_gnu=$ac_cv_c_compiler_gnu
39083
39084
39085
39086 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39087 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39088 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39089echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39090if test "${ac_cv_func_gethostbyname+set}" = set; then
39091 echo $ECHO_N "(cached) $ECHO_C" >&6
39092else
39093 cat >conftest.$ac_ext <<_ACEOF
39094/* confdefs.h. */
39095_ACEOF
39096cat confdefs.h >>conftest.$ac_ext
39097cat >>conftest.$ac_ext <<_ACEOF
39098/* end confdefs.h. */
39099/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39101#define gethostbyname innocuous_gethostbyname
39102
39103/* System header to define __stub macros and hopefully few prototypes,
39104 which can conflict with char gethostbyname (); below.
39105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39106 <limits.h> exists even on freestanding compilers. */
39107
39108#ifdef __STDC__
39109# include <limits.h>
39110#else
39111# include <assert.h>
39112#endif
39113
39114#undef gethostbyname
39115
39116/* Override any gcc2 internal prototype to avoid an error. */
39117#ifdef __cplusplus
39118extern "C"
39119{
39120#endif
39121/* We use char because int might match the return type of a gcc2
39122 builtin and then its argument prototype would still apply. */
39123char gethostbyname ();
39124/* The GNU C library defines this for functions which it implements
39125 to always fail with ENOSYS. Some functions are actually named
39126 something starting with __ and the normal name is an alias. */
39127#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39128choke me
39129#else
39130char (*f) () = gethostbyname;
39131#endif
39132#ifdef __cplusplus
39133}
39134#endif
39135
39136int
39137main ()
39138{
39139return f != gethostbyname;
39140 ;
39141 return 0;
39142}
39143_ACEOF
39144rm -f conftest.$ac_objext conftest$ac_exeext
39145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39146 (eval $ac_link) 2>conftest.er1
39147 ac_status=$?
39148 grep -v '^ *+' conftest.er1 >conftest.err
39149 rm -f conftest.er1
39150 cat conftest.err >&5
39151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152 (exit $ac_status); } &&
3565d135
RR
39153 { ac_try='test -z "$ac_c_werror_flag"
39154 || test ! -s conftest.err'
004ee6da
RL
39155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156 (eval $ac_try) 2>&5
39157 ac_status=$?
39158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159 (exit $ac_status); }; } &&
39160 { ac_try='test -s conftest$ac_exeext'
39161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162 (eval $ac_try) 2>&5
39163 ac_status=$?
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); }; }; then
39166 ac_cv_func_gethostbyname=yes
39167else
39168 echo "$as_me: failed program was:" >&5
39169sed 's/^/| /' conftest.$ac_ext >&5
39170
39171ac_cv_func_gethostbyname=no
39172fi
39173rm -f conftest.err conftest.$ac_objext \
39174 conftest$ac_exeext conftest.$ac_ext
39175fi
39176echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39177echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39178if test $ac_cv_func_gethostbyname = yes; then
39179 cat >>confdefs.h <<\_ACEOF
39180#define HAVE_GETHOSTBYNAME 1
39181_ACEOF
39182
39183fi
39184
39185 fi
39186 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39187echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
39188if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
39189 echo $ECHO_N "(cached) $ECHO_C" >&6
39190else
39191
39192echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39193echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
39194if test "${ac_cv_func_getservbyname_r+set}" = set; then
39195 echo $ECHO_N "(cached) $ECHO_C" >&6
39196else
39197 cat >conftest.$ac_ext <<_ACEOF
39198/* confdefs.h. */
39199_ACEOF
39200cat confdefs.h >>conftest.$ac_ext
39201cat >>conftest.$ac_ext <<_ACEOF
39202/* end confdefs.h. */
39203/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39205#define getservbyname_r innocuous_getservbyname_r
39206
39207/* System header to define __stub macros and hopefully few prototypes,
39208 which can conflict with char getservbyname_r (); below.
39209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39210 <limits.h> exists even on freestanding compilers. */
39211
39212#ifdef __STDC__
39213# include <limits.h>
39214#else
39215# include <assert.h>
39216#endif
39217
39218#undef getservbyname_r
39219
39220/* Override any gcc2 internal prototype to avoid an error. */
39221#ifdef __cplusplus
39222extern "C"
39223{
39224#endif
39225/* We use char because int might match the return type of a gcc2
39226 builtin and then its argument prototype would still apply. */
39227char getservbyname_r ();
39228/* The GNU C library defines this for functions which it implements
39229 to always fail with ENOSYS. Some functions are actually named
39230 something starting with __ and the normal name is an alias. */
39231#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39232choke me
39233#else
39234char (*f) () = getservbyname_r;
39235#endif
39236#ifdef __cplusplus
39237}
39238#endif
39239
39240int
39241main ()
39242{
39243return f != getservbyname_r;
39244 ;
39245 return 0;
39246}
39247_ACEOF
39248rm -f conftest.$ac_objext conftest$ac_exeext
39249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39250 (eval $ac_link) 2>conftest.er1
39251 ac_status=$?
39252 grep -v '^ *+' conftest.er1 >conftest.err
39253 rm -f conftest.er1
39254 cat conftest.err >&5
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); } &&
3565d135
RR
39257 { ac_try='test -z "$ac_c_werror_flag"
39258 || test ! -s conftest.err'
004ee6da
RL
39259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39260 (eval $ac_try) 2>&5
39261 ac_status=$?
39262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263 (exit $ac_status); }; } &&
39264 { ac_try='test -s conftest$ac_exeext'
39265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39266 (eval $ac_try) 2>&5
39267 ac_status=$?
39268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269 (exit $ac_status); }; }; then
39270 ac_cv_func_getservbyname_r=yes
39271else
39272 echo "$as_me: failed program was:" >&5
39273sed 's/^/| /' conftest.$ac_ext >&5
39274
39275ac_cv_func_getservbyname_r=no
39276fi
39277rm -f conftest.err conftest.$ac_objext \
39278 conftest$ac_exeext conftest.$ac_ext
39279fi
39280echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39281echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39282if test $ac_cv_func_getservbyname_r = yes; then
39283
39284 cat >conftest.$ac_ext <<_ACEOF
39285/* confdefs.h. */
39286_ACEOF
39287cat confdefs.h >>conftest.$ac_ext
39288cat >>conftest.$ac_ext <<_ACEOF
39289/* end confdefs.h. */
39290
39291# include <netdb.h>
39292
39293int
39294main ()
39295{
39296
39297
39298 char *name;
39299 char *proto;
39300 struct servent *se;
39301 struct servent_data data;
39302 (void) getservbyname_r(name, proto, se, &data);
39303
39304
39305 ;
39306 return 0;
39307}
39308_ACEOF
39309rm -f conftest.$ac_objext
39310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39311 (eval $ac_compile) 2>conftest.er1
39312 ac_status=$?
39313 grep -v '^ *+' conftest.er1 >conftest.err
39314 rm -f conftest.er1
39315 cat conftest.err >&5
39316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317 (exit $ac_status); } &&
3565d135
RR
39318 { ac_try='test -z "$ac_c_werror_flag"
39319 || test ! -s conftest.err'
004ee6da
RL
39320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321 (eval $ac_try) 2>&5
39322 ac_status=$?
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); }; } &&
39325 { ac_try='test -s conftest.$ac_objext'
39326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39327 (eval $ac_try) 2>&5
39328 ac_status=$?
39329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330 (exit $ac_status); }; }; then
39331 ac_cv_func_which_getservbyname_r=four
39332else
39333 echo "$as_me: failed program was:" >&5
39334sed 's/^/| /' conftest.$ac_ext >&5
39335
39336
39337 cat >conftest.$ac_ext <<_ACEOF
39338/* confdefs.h. */
39339_ACEOF
39340cat confdefs.h >>conftest.$ac_ext
39341cat >>conftest.$ac_ext <<_ACEOF
39342/* end confdefs.h. */
39343
39344# include <netdb.h>
39345
39346int
39347main ()
39348{
39349
39350 char *name;
39351 char *proto;
39352 struct servent *se, *res;
39353 char buffer[2048];
39354 int buflen = 2048;
39355 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
39356
39357 ;
39358 return 0;
39359}
39360_ACEOF
39361rm -f conftest.$ac_objext
39362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39363 (eval $ac_compile) 2>conftest.er1
39364 ac_status=$?
39365 grep -v '^ *+' conftest.er1 >conftest.err
39366 rm -f conftest.er1
39367 cat conftest.err >&5
39368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369 (exit $ac_status); } &&
3565d135
RR
39370 { ac_try='test -z "$ac_c_werror_flag"
39371 || test ! -s conftest.err'
004ee6da
RL
39372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39373 (eval $ac_try) 2>&5
39374 ac_status=$?
39375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376 (exit $ac_status); }; } &&
39377 { ac_try='test -s conftest.$ac_objext'
39378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39379 (eval $ac_try) 2>&5
39380 ac_status=$?
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); }; }; then
39383 ac_cv_func_which_getservbyname_r=six
39384else
39385 echo "$as_me: failed program was:" >&5
39386sed 's/^/| /' conftest.$ac_ext >&5
39387
39388
39389 cat >conftest.$ac_ext <<_ACEOF
39390/* confdefs.h. */
39391_ACEOF
39392cat confdefs.h >>conftest.$ac_ext
39393cat >>conftest.$ac_ext <<_ACEOF
39394/* end confdefs.h. */
39395
39396# include <netdb.h>
39397
39398int
39399main ()
39400{
39401
39402 char *name;
39403 char *proto;
39404 struct servent *se;
39405 char buffer[2048];
39406 int buflen = 2048;
39407 (void) getservbyname_r(name, proto, se, buffer, buflen)
39408
39409 ;
39410 return 0;
39411}
39412_ACEOF
39413rm -f conftest.$ac_objext
39414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39415 (eval $ac_compile) 2>conftest.er1
39416 ac_status=$?
39417 grep -v '^ *+' conftest.er1 >conftest.err
39418 rm -f conftest.er1
39419 cat conftest.err >&5
39420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39421 (exit $ac_status); } &&
3565d135
RR
39422 { ac_try='test -z "$ac_c_werror_flag"
39423 || test ! -s conftest.err'
004ee6da
RL
39424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39425 (eval $ac_try) 2>&5
39426 ac_status=$?
39427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428 (exit $ac_status); }; } &&
39429 { ac_try='test -s conftest.$ac_objext'
39430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39431 (eval $ac_try) 2>&5
39432 ac_status=$?
39433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434 (exit $ac_status); }; }; then
39435 ac_cv_func_which_getservbyname_r=five
39436else
39437 echo "$as_me: failed program was:" >&5
39438sed 's/^/| /' conftest.$ac_ext >&5
39439
39440ac_cv_func_which_getservbyname_r=no
39441fi
39442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39443
39444
39445
39446
39447fi
39448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39449
39450
39451fi
39452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39453
39454else
39455 ac_cv_func_which_getservbyname_r=no
39456fi
39457
39458fi
39459echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
39460echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
39461
39462if test $ac_cv_func_which_getservbyname_r = six; then
39463 cat >>confdefs.h <<\_ACEOF
39464#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39465_ACEOF
39466
39467elif test $ac_cv_func_which_getservbyname_r = five; then
39468 cat >>confdefs.h <<\_ACEOF
39469#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39470_ACEOF
39471
39472elif test $ac_cv_func_which_getservbyname_r = four; then
39473 cat >>confdefs.h <<\_ACEOF
39474#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39475_ACEOF
39476
39477
39478fi
39479
39480
39481 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39482 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39483
39484for ac_func in getservbyname
39485do
39486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39487echo "$as_me:$LINENO: checking for $ac_func" >&5
39488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39489if eval "test \"\${$as_ac_var+set}\" = set"; then
39490 echo $ECHO_N "(cached) $ECHO_C" >&6
39491else
39492 cat >conftest.$ac_ext <<_ACEOF
39493/* confdefs.h. */
39494_ACEOF
39495cat confdefs.h >>conftest.$ac_ext
39496cat >>conftest.$ac_ext <<_ACEOF
39497/* end confdefs.h. */
39498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39500#define $ac_func innocuous_$ac_func
39501
39502/* System header to define __stub macros and hopefully few prototypes,
39503 which can conflict with char $ac_func (); below.
39504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39505 <limits.h> exists even on freestanding compilers. */
39506
39507#ifdef __STDC__
39508# include <limits.h>
39509#else
39510# include <assert.h>
39511#endif
39512
39513#undef $ac_func
39514
39515/* Override any gcc2 internal prototype to avoid an error. */
39516#ifdef __cplusplus
39517extern "C"
39518{
39519#endif
39520/* We use char because int might match the return type of a gcc2
39521 builtin and then its argument prototype would still apply. */
39522char $ac_func ();
39523/* The GNU C library defines this for functions which it implements
39524 to always fail with ENOSYS. Some functions are actually named
39525 something starting with __ and the normal name is an alias. */
39526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39527choke me
39528#else
39529char (*f) () = $ac_func;
39530#endif
39531#ifdef __cplusplus
39532}
39533#endif
39534
39535int
39536main ()
39537{
39538return f != $ac_func;
39539 ;
39540 return 0;
39541}
39542_ACEOF
39543rm -f conftest.$ac_objext conftest$ac_exeext
39544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39545 (eval $ac_link) 2>conftest.er1
39546 ac_status=$?
39547 grep -v '^ *+' conftest.er1 >conftest.err
39548 rm -f conftest.er1
39549 cat conftest.err >&5
39550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551 (exit $ac_status); } &&
3565d135
RR
39552 { ac_try='test -z "$ac_c_werror_flag"
39553 || test ! -s conftest.err'
004ee6da
RL
39554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39555 (eval $ac_try) 2>&5
39556 ac_status=$?
39557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558 (exit $ac_status); }; } &&
39559 { ac_try='test -s conftest$ac_exeext'
39560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39561 (eval $ac_try) 2>&5
39562 ac_status=$?
39563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39564 (exit $ac_status); }; }; then
39565 eval "$as_ac_var=yes"
39566else
39567 echo "$as_me: failed program was:" >&5
39568sed 's/^/| /' conftest.$ac_ext >&5
39569
39570eval "$as_ac_var=no"
39571fi
39572rm -f conftest.err conftest.$ac_objext \
39573 conftest$ac_exeext conftest.$ac_ext
39574fi
39575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39577if test `eval echo '${'$as_ac_var'}'` = yes; then
39578 cat >>confdefs.h <<_ACEOF
39579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39580_ACEOF
39581 cat >>confdefs.h <<\_ACEOF
39582#define HAVE_GETSERVBYNAME 1
39583_ACEOF
39584
39585fi
39586done
39587
39588 fi
39589
39590
39591fi
39592
39593
39594if test "$wxUSE_THREADS" = "yes"; then
39595 cat >>confdefs.h <<\_ACEOF
39596#define wxUSE_THREADS 1
39597_ACEOF
39598
39599
39600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39601else
39602 if test "$ac_cv_func_strtok_r" = "yes"; then
39603 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39604echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39605 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39606 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39607 echo "$as_me:$LINENO: result: yes" >&5
39608echo "${ECHO_T}yes" >&6
39609 else
39610 echo "$as_me:$LINENO: result: no" >&5
39611echo "${ECHO_T}no" >&6
39612 fi
39613 fi
39614fi
39615
39616if test "$WXGTK20" = 1 ; then
39617 cat >>confdefs.h <<_ACEOF
39618#define __WXGTK20__ $WXGTK20
39619_ACEOF
39620
39621 WXGTK12=1
39622fi
39623
39624if test "$WXGTK12" = 1 ; then
39625 cat >>confdefs.h <<_ACEOF
39626#define __WXGTK12__ $WXGTK12
39627_ACEOF
39628
39629fi
39630
39631if test "$WXGTK127" = 1 ; then
39632 cat >>confdefs.h <<_ACEOF
39633#define __WXGTK127__ $WXGTK127
39634_ACEOF
39635
39636fi
39637
39638if test "$WXGPE" = 1 ; then
39639 cat >>confdefs.h <<_ACEOF
39640#define __WXGPE__ $WXGPE
39641_ACEOF
39642
39643fi
39644
39645DEBUG_CFLAGS=
39646if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39647 DEBUG_CFLAGS="-g"
39648 wxUSE_OPTIMISE=no
39649fi
39650
39651if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39652 wxUSE_DEBUG_INFO=yes
39653 if test "$GCC" = yes; then
39654 DEBUG_CFLAGS="-ggdb"
39655 fi
39656fi
39657
39658if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39659 cat >>confdefs.h <<\_ACEOF
39660#define WXDEBUG 1
39661_ACEOF
39662
39663 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39664else
39665 if test "$wxUSE_GTK" = 1 ; then
c92ad099 39666 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
004ee6da
RL
39667 fi
39668fi
39669
39670if test "$wxUSE_MEM_TRACING" = "yes" ; then
39671 cat >>confdefs.h <<\_ACEOF
39672#define wxUSE_MEMORY_TRACING 1
39673_ACEOF
39674
39675 cat >>confdefs.h <<\_ACEOF
39676#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39677_ACEOF
39678
39679 cat >>confdefs.h <<\_ACEOF
39680#define wxUSE_DEBUG_NEW_ALWAYS 1
39681_ACEOF
39682
39683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39684fi
39685
39686if test "$wxUSE_DMALLOC" = "yes" ; then
39687 DMALLOC_LIBS="-ldmallocthcxx"
39688fi
39689
39690PROFILE_FLAGS=
39691if test "$wxUSE_PROFILE" = "yes" ; then
39692 PROFILE_FLAGS=" -pg"
39693fi
39694
39695if test "$GCC" = "yes" ; then
39696 if test "$wxUSE_NO_RTTI" = "yes" ; then
39697 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39698 fi
39699 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39700 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39701 fi
39702 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39703 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39704 fi
39705
39706 case "${host}" in
39707 powerpc*-*-aix* )
39708 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39709 ;;
39710 *-hppa* )
39711 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39712 ;;
39713 esac
39714fi
39715
39716OPTIMISE_CFLAGS=
39717if test "$wxUSE_OPTIMISE" = "no" ; then
39718 if test "$GCC" = yes ; then
39719 OPTIMISE_CFLAGS="-O0"
39720 fi
39721else
39722 if test "$GCC" = yes ; then
39723 OPTIMISE_CFLAGS="-O2"
39724 else
39725 OPTIMISE_CFLAGS="-O"
39726 fi
39727fi
39728
39729
39730if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39731 cat >>confdefs.h <<\_ACEOF
39732#define WXWIN_COMPATIBILITY_2_4 1
39733_ACEOF
39734
39735
39736 WXWIN_COMPATIBILITY_2_6="yes"
39737fi
39738
39739if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39740 cat >>confdefs.h <<\_ACEOF
39741#define WXWIN_COMPATIBILITY_2_6 1
39742_ACEOF
39743
39744fi
39745
39746
39747if test "$wxUSE_GUI" = "yes"; then
39748 cat >>confdefs.h <<\_ACEOF
39749#define wxUSE_GUI 1
39750_ACEOF
39751
39752
39753 fi
39754
39755
39756if test "$wxUSE_UNIX" = "yes"; then
39757 cat >>confdefs.h <<\_ACEOF
39758#define wxUSE_UNIX 1
39759_ACEOF
39760
39761fi
39762
39763
39764if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39765
39766 HAVE_DL_FUNCS=0
39767 HAVE_SHL_FUNCS=0
39768 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39769 if test "$USE_DARWIN" = 1; then
39770 HAVE_DL_FUNCS=1
39771 elif test "$USE_DOS" = 1; then
39772 HAVE_DL_FUNCS=0
39773 else
39774
39775for ac_func in dlopen
39776do
39777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39778echo "$as_me:$LINENO: checking for $ac_func" >&5
39779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39780if eval "test \"\${$as_ac_var+set}\" = set"; then
39781 echo $ECHO_N "(cached) $ECHO_C" >&6
39782else
39783 cat >conftest.$ac_ext <<_ACEOF
39784/* confdefs.h. */
39785_ACEOF
39786cat confdefs.h >>conftest.$ac_ext
39787cat >>conftest.$ac_ext <<_ACEOF
39788/* end confdefs.h. */
39789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39791#define $ac_func innocuous_$ac_func
39792
39793/* System header to define __stub macros and hopefully few prototypes,
39794 which can conflict with char $ac_func (); below.
39795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39796 <limits.h> exists even on freestanding compilers. */
39797
39798#ifdef __STDC__
39799# include <limits.h>
39800#else
39801# include <assert.h>
39802#endif
39803
39804#undef $ac_func
39805
39806/* Override any gcc2 internal prototype to avoid an error. */
39807#ifdef __cplusplus
39808extern "C"
39809{
39810#endif
39811/* We use char because int might match the return type of a gcc2
39812 builtin and then its argument prototype would still apply. */
39813char $ac_func ();
39814/* The GNU C library defines this for functions which it implements
39815 to always fail with ENOSYS. Some functions are actually named
39816 something starting with __ and the normal name is an alias. */
39817#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39818choke me
39819#else
39820char (*f) () = $ac_func;
39821#endif
39822#ifdef __cplusplus
39823}
39824#endif
39825
39826int
39827main ()
39828{
39829return f != $ac_func;
a848cd7e
SC
39830 ;
39831 return 0;
39832}
39833_ACEOF
39834rm -f conftest.$ac_objext conftest$ac_exeext
39835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39836 (eval $ac_link) 2>conftest.er1
a848cd7e 39837 ac_status=$?
ac1cb8d3
VS
39838 grep -v '^ *+' conftest.er1 >conftest.err
39839 rm -f conftest.er1
39840 cat conftest.err >&5
a848cd7e
SC
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); } &&
3565d135
RR
39843 { ac_try='test -z "$ac_c_werror_flag"
39844 || test ! -s conftest.err'
ac1cb8d3
VS
39845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39846 (eval $ac_try) 2>&5
39847 ac_status=$?
39848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849 (exit $ac_status); }; } &&
39850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39852 (eval $ac_try) 2>&5
39853 ac_status=$?
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); }; }; then
39856 eval "$as_ac_var=yes"
39857else
39858 echo "$as_me: failed program was:" >&5
39859sed 's/^/| /' conftest.$ac_ext >&5
39860
39861eval "$as_ac_var=no"
39862fi
ac1cb8d3
VS
39863rm -f conftest.err conftest.$ac_objext \
39864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39865fi
39866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39868if test `eval echo '${'$as_ac_var'}'` = yes; then
39869 cat >>confdefs.h <<_ACEOF
39870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39871_ACEOF
39872
39873 cat >>confdefs.h <<\_ACEOF
39874#define HAVE_DLOPEN 1
39875_ACEOF
39876
39877 HAVE_DL_FUNCS=1
39878
39879else
39880
39881 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39882echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39883if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39884 echo $ECHO_N "(cached) $ECHO_C" >&6
39885else
39886 ac_check_lib_save_LIBS=$LIBS
39887LIBS="-ldl $LIBS"
39888cat >conftest.$ac_ext <<_ACEOF
39889/* confdefs.h. */
39890_ACEOF
39891cat confdefs.h >>conftest.$ac_ext
39892cat >>conftest.$ac_ext <<_ACEOF
39893/* end confdefs.h. */
39894
39895/* Override any gcc2 internal prototype to avoid an error. */
39896#ifdef __cplusplus
39897extern "C"
39898#endif
39899/* We use char because int might match the return type of a gcc2
39900 builtin and then its argument prototype would still apply. */
39901char dlopen ();
39902int
39903main ()
39904{
39905dlopen ();
39906 ;
39907 return 0;
39908}
39909_ACEOF
39910rm -f conftest.$ac_objext conftest$ac_exeext
39911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39912 (eval $ac_link) 2>conftest.er1
a848cd7e 39913 ac_status=$?
ac1cb8d3
VS
39914 grep -v '^ *+' conftest.er1 >conftest.err
39915 rm -f conftest.er1
39916 cat conftest.err >&5
a848cd7e
SC
39917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); } &&
3565d135
RR
39919 { ac_try='test -z "$ac_c_werror_flag"
39920 || test ! -s conftest.err'
ac1cb8d3
VS
39921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39922 (eval $ac_try) 2>&5
39923 ac_status=$?
39924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925 (exit $ac_status); }; } &&
39926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39928 (eval $ac_try) 2>&5
39929 ac_status=$?
39930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); }; }; then
39932 ac_cv_lib_dl_dlopen=yes
39933else
39934 echo "$as_me: failed program was:" >&5
39935sed 's/^/| /' conftest.$ac_ext >&5
39936
39937ac_cv_lib_dl_dlopen=no
39938fi
ac1cb8d3
VS
39939rm -f conftest.err conftest.$ac_objext \
39940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39941LIBS=$ac_check_lib_save_LIBS
39942fi
39943echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39944echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39945if test $ac_cv_lib_dl_dlopen = yes; then
39946
39947 cat >>confdefs.h <<\_ACEOF
39948#define HAVE_DLOPEN 1
39949_ACEOF
39950
39951 HAVE_DL_FUNCS=1
39952 DL_LINK=" -ldl$DL_LINK"
39953
39954else
39955
39956
39957for ac_func in shl_load
39958do
39959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39960echo "$as_me:$LINENO: checking for $ac_func" >&5
39961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39962if eval "test \"\${$as_ac_var+set}\" = set"; then
39963 echo $ECHO_N "(cached) $ECHO_C" >&6
39964else
39965 cat >conftest.$ac_ext <<_ACEOF
39966/* confdefs.h. */
39967_ACEOF
39968cat confdefs.h >>conftest.$ac_ext
39969cat >>conftest.$ac_ext <<_ACEOF
39970/* end confdefs.h. */
ac1cb8d3
VS
39971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39973#define $ac_func innocuous_$ac_func
39974
a848cd7e
SC
39975/* System header to define __stub macros and hopefully few prototypes,
39976 which can conflict with char $ac_func (); below.
39977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39978 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39979
a848cd7e
SC
39980#ifdef __STDC__
39981# include <limits.h>
39982#else
39983# include <assert.h>
39984#endif
ac1cb8d3
VS
39985
39986#undef $ac_func
39987
a848cd7e
SC
39988/* Override any gcc2 internal prototype to avoid an error. */
39989#ifdef __cplusplus
39990extern "C"
39991{
39992#endif
39993/* We use char because int might match the return type of a gcc2
39994 builtin and then its argument prototype would still apply. */
39995char $ac_func ();
39996/* The GNU C library defines this for functions which it implements
39997 to always fail with ENOSYS. Some functions are actually named
39998 something starting with __ and the normal name is an alias. */
39999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40000choke me
40001#else
40002char (*f) () = $ac_func;
40003#endif
40004#ifdef __cplusplus
40005}
40006#endif
40007
40008int
40009main ()
40010{
40011return f != $ac_func;
40012 ;
40013 return 0;
40014}
40015_ACEOF
40016rm -f conftest.$ac_objext conftest$ac_exeext
40017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40018 (eval $ac_link) 2>conftest.er1
a848cd7e 40019 ac_status=$?
ac1cb8d3
VS
40020 grep -v '^ *+' conftest.er1 >conftest.err
40021 rm -f conftest.er1
40022 cat conftest.err >&5
a848cd7e
SC
40023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024 (exit $ac_status); } &&
3565d135
RR
40025 { ac_try='test -z "$ac_c_werror_flag"
40026 || test ! -s conftest.err'
ac1cb8d3
VS
40027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40028 (eval $ac_try) 2>&5
40029 ac_status=$?
40030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031 (exit $ac_status); }; } &&
40032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40034 (eval $ac_try) 2>&5
40035 ac_status=$?
40036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40037 (exit $ac_status); }; }; then
40038 eval "$as_ac_var=yes"
40039else
40040 echo "$as_me: failed program was:" >&5
40041sed 's/^/| /' conftest.$ac_ext >&5
40042
40043eval "$as_ac_var=no"
40044fi
ac1cb8d3
VS
40045rm -f conftest.err conftest.$ac_objext \
40046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40047fi
40048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40050if test `eval echo '${'$as_ac_var'}'` = yes; then
40051 cat >>confdefs.h <<_ACEOF
40052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40053_ACEOF
40054
40055 cat >>confdefs.h <<\_ACEOF
40056#define HAVE_SHL_LOAD 1
40057_ACEOF
40058
40059 HAVE_SHL_FUNCS=1
40060
40061else
40062
40063 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40064echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40065if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40066 echo $ECHO_N "(cached) $ECHO_C" >&6
40067else
40068 ac_check_lib_save_LIBS=$LIBS
40069LIBS="-lshl_load $LIBS"
40070cat >conftest.$ac_ext <<_ACEOF
40071/* confdefs.h. */
40072_ACEOF
40073cat confdefs.h >>conftest.$ac_ext
40074cat >>conftest.$ac_ext <<_ACEOF
40075/* end confdefs.h. */
40076
40077/* Override any gcc2 internal prototype to avoid an error. */
40078#ifdef __cplusplus
40079extern "C"
40080#endif
40081/* We use char because int might match the return type of a gcc2
40082 builtin and then its argument prototype would still apply. */
40083char dld ();
40084int
40085main ()
40086{
40087dld ();
40088 ;
40089 return 0;
40090}
40091_ACEOF
40092rm -f conftest.$ac_objext conftest$ac_exeext
40093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40094 (eval $ac_link) 2>conftest.er1
a848cd7e 40095 ac_status=$?
ac1cb8d3
VS
40096 grep -v '^ *+' conftest.er1 >conftest.err
40097 rm -f conftest.er1
40098 cat conftest.err >&5
a848cd7e
SC
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); } &&
3565d135
RR
40101 { ac_try='test -z "$ac_c_werror_flag"
40102 || test ! -s conftest.err'
ac1cb8d3
VS
40103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40104 (eval $ac_try) 2>&5
40105 ac_status=$?
40106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107 (exit $ac_status); }; } &&
40108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40110 (eval $ac_try) 2>&5
40111 ac_status=$?
40112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113 (exit $ac_status); }; }; then
40114 ac_cv_lib_shl_load_dld=yes
40115else
40116 echo "$as_me: failed program was:" >&5
40117sed 's/^/| /' conftest.$ac_ext >&5
40118
40119ac_cv_lib_shl_load_dld=no
40120fi
ac1cb8d3
VS
40121rm -f conftest.err conftest.$ac_objext \
40122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40123LIBS=$ac_check_lib_save_LIBS
40124fi
40125echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40126echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40127if test $ac_cv_lib_shl_load_dld = yes; then
40128
40129 HAVE_SHL_FUNCS=1
40130 DL_LINK=" -ldld$DL_LINK"
40131
40132fi
40133
40134
40135fi
40136done
40137
40138
40139fi
40140
40141
40142fi
40143done
40144
40145
40146 if test "$HAVE_DL_FUNCS" = 1; then
40147
40148for ac_func in dlerror
40149do
40150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40151echo "$as_me:$LINENO: checking for $ac_func" >&5
40152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40153if eval "test \"\${$as_ac_var+set}\" = set"; then
40154 echo $ECHO_N "(cached) $ECHO_C" >&6
40155else
40156 cat >conftest.$ac_ext <<_ACEOF
40157/* confdefs.h. */
40158_ACEOF
40159cat confdefs.h >>conftest.$ac_ext
40160cat >>conftest.$ac_ext <<_ACEOF
40161/* end confdefs.h. */
ac1cb8d3
VS
40162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40164#define $ac_func innocuous_$ac_func
40165
a848cd7e
SC
40166/* System header to define __stub macros and hopefully few prototypes,
40167 which can conflict with char $ac_func (); below.
40168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40169 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40170
a848cd7e
SC
40171#ifdef __STDC__
40172# include <limits.h>
40173#else
40174# include <assert.h>
40175#endif
ac1cb8d3
VS
40176
40177#undef $ac_func
40178
a848cd7e
SC
40179/* Override any gcc2 internal prototype to avoid an error. */
40180#ifdef __cplusplus
40181extern "C"
40182{
40183#endif
40184/* We use char because int might match the return type of a gcc2
40185 builtin and then its argument prototype would still apply. */
40186char $ac_func ();
40187/* The GNU C library defines this for functions which it implements
40188 to always fail with ENOSYS. Some functions are actually named
40189 something starting with __ and the normal name is an alias. */
40190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40191choke me
40192#else
40193char (*f) () = $ac_func;
40194#endif
40195#ifdef __cplusplus
40196}
40197#endif
40198
40199int
40200main ()
40201{
40202return f != $ac_func;
40203 ;
40204 return 0;
40205}
40206_ACEOF
40207rm -f conftest.$ac_objext conftest$ac_exeext
40208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40209 (eval $ac_link) 2>conftest.er1
a848cd7e 40210 ac_status=$?
ac1cb8d3
VS
40211 grep -v '^ *+' conftest.er1 >conftest.err
40212 rm -f conftest.er1
40213 cat conftest.err >&5
a848cd7e
SC
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); } &&
3565d135
RR
40216 { ac_try='test -z "$ac_c_werror_flag"
40217 || test ! -s conftest.err'
ac1cb8d3
VS
40218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40219 (eval $ac_try) 2>&5
40220 ac_status=$?
40221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40222 (exit $ac_status); }; } &&
40223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40225 (eval $ac_try) 2>&5
40226 ac_status=$?
40227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40228 (exit $ac_status); }; }; then
40229 eval "$as_ac_var=yes"
40230else
40231 echo "$as_me: failed program was:" >&5
40232sed 's/^/| /' conftest.$ac_ext >&5
40233
40234eval "$as_ac_var=no"
40235fi
ac1cb8d3
VS
40236rm -f conftest.err conftest.$ac_objext \
40237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40238fi
40239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40241if test `eval echo '${'$as_ac_var'}'` = yes; then
40242 cat >>confdefs.h <<_ACEOF
40243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40244_ACEOF
40245 cat >>confdefs.h <<\_ACEOF
40246#define HAVE_DLERROR 1
40247_ACEOF
40248
40249else
40250
40251 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40252echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40253if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40254 echo $ECHO_N "(cached) $ECHO_C" >&6
40255else
40256 ac_check_lib_save_LIBS=$LIBS
40257LIBS="-ldl $LIBS"
40258cat >conftest.$ac_ext <<_ACEOF
40259/* confdefs.h. */
40260_ACEOF
40261cat confdefs.h >>conftest.$ac_ext
40262cat >>conftest.$ac_ext <<_ACEOF
40263/* end confdefs.h. */
40264
40265/* Override any gcc2 internal prototype to avoid an error. */
40266#ifdef __cplusplus
40267extern "C"
40268#endif
40269/* We use char because int might match the return type of a gcc2
40270 builtin and then its argument prototype would still apply. */
40271char dlerror ();
40272int
40273main ()
40274{
40275dlerror ();
40276 ;
40277 return 0;
40278}
40279_ACEOF
40280rm -f conftest.$ac_objext conftest$ac_exeext
40281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40282 (eval $ac_link) 2>conftest.er1
a848cd7e 40283 ac_status=$?
ac1cb8d3
VS
40284 grep -v '^ *+' conftest.er1 >conftest.err
40285 rm -f conftest.er1
40286 cat conftest.err >&5
a848cd7e
SC
40287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288 (exit $ac_status); } &&
3565d135
RR
40289 { ac_try='test -z "$ac_c_werror_flag"
40290 || test ! -s conftest.err'
ac1cb8d3
VS
40291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40292 (eval $ac_try) 2>&5
40293 ac_status=$?
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); }; } &&
40296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40298 (eval $ac_try) 2>&5
40299 ac_status=$?
40300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40301 (exit $ac_status); }; }; then
40302 ac_cv_lib_dl_dlerror=yes
40303else
40304 echo "$as_me: failed program was:" >&5
40305sed 's/^/| /' conftest.$ac_ext >&5
40306
40307ac_cv_lib_dl_dlerror=no
40308fi
ac1cb8d3
VS
40309rm -f conftest.err conftest.$ac_objext \
40310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40311LIBS=$ac_check_lib_save_LIBS
40312fi
40313echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40314echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40315if test $ac_cv_lib_dl_dlerror = yes; then
40316 cat >>confdefs.h <<\_ACEOF
40317#define HAVE_DLERROR 1
40318_ACEOF
40319
40320fi
40321
40322
40323
40324fi
40325done
40326
40327 fi
40328 fi
40329
40330 if test "$HAVE_DL_FUNCS" = 0; then
40331 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40332 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40333 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40334echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40335 wxUSE_DYNAMIC_LOADER=no
40336 wxUSE_DYNLIB_CLASS=no
40337 else
40338 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40339echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40340 fi
40341 fi
40342 fi
40343 fi
40344fi
40345
40346if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40347 cat >>confdefs.h <<\_ACEOF
40348#define wxUSE_DYNAMIC_LOADER 1
40349_ACEOF
40350
40351fi
40352if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40353 cat >>confdefs.h <<\_ACEOF
40354#define wxUSE_DYNLIB_CLASS 1
40355_ACEOF
40356
40357fi
40358
40359
40360
40361if test "$wxUSE_PLUGINS" = "yes" ; then
40362 if test "$wxUSE_SHARED" = "no" ; then
40363 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40364echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40365 wxUSE_PLUGINS=no
40366 fi
40367 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40368 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40369echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40370 wxUSE_PLUGINS=no
40371 fi
40372 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40373 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40374echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40375 wxUSE_PLUGINS=no
40376 fi
40377 if test "$wxUSE_PLUGINS" = "yes" ; then
40378 cat >>confdefs.h <<\_ACEOF
40379#define wxUSE_PLUGINS 1
40380_ACEOF
40381
40382 fi
40383fi
40384
40385
40386if test "$wxUSE_STL" = "yes"; then
40387 cat >>confdefs.h <<\_ACEOF
40388#define wxUSE_STL 1
40389_ACEOF
40390
40391fi
40392
40393if test "$wxUSE_APPLE_IEEE" = "yes"; then
40394 cat >>confdefs.h <<\_ACEOF
40395#define wxUSE_APPLE_IEEE 1
40396_ACEOF
40397
40398fi
40399
40400if test "$wxUSE_TIMER" = "yes"; then
40401 cat >>confdefs.h <<\_ACEOF
40402#define wxUSE_TIMER 1
40403_ACEOF
40404
40405fi
40406
9c112555 40407if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40408 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40409echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40410if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40411 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40412else
d12aef51
VZ
40413
40414 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40415/* confdefs.h. */
40416_ACEOF
40417cat confdefs.h >>conftest.$ac_ext
40418cat >>conftest.$ac_ext <<_ACEOF
40419/* end confdefs.h. */
d12aef51
VZ
40420
40421 #include <sys/soundcard.h>
40422
40423int
40424main ()
40425{
40426
40427 ioctl(0, SNDCTL_DSP_SYNC, 0);
40428
40429 ;
40430 return 0;
40431}
a848cd7e 40432_ACEOF
d12aef51
VZ
40433rm -f conftest.$ac_objext conftest$ac_exeext
40434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40435 (eval $ac_link) 2>conftest.er1
a848cd7e 40436 ac_status=$?
ac1cb8d3
VS
40437 grep -v '^ *+' conftest.er1 >conftest.err
40438 rm -f conftest.er1
40439 cat conftest.err >&5
a848cd7e
SC
40440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441 (exit $ac_status); } &&
3565d135
RR
40442 { ac_try='test -z "$ac_c_werror_flag"
40443 || test ! -s conftest.err'
ac1cb8d3
VS
40444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40445 (eval $ac_try) 2>&5
40446 ac_status=$?
40447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40448 (exit $ac_status); }; } &&
d12aef51 40449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40451 (eval $ac_try) 2>&5
40452 ac_status=$?
40453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454 (exit $ac_status); }; }; then
d12aef51 40455 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40456else
40457 echo "$as_me: failed program was:" >&5
40458sed 's/^/| /' conftest.$ac_ext >&5
40459
a848cd7e 40460
d12aef51
VZ
40461 saveLibs="$LIBS"
40462 LIBS="$saveLibs -lossaudio"
40463 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40464/* confdefs.h. */
40465_ACEOF
40466cat confdefs.h >>conftest.$ac_ext
40467cat >>conftest.$ac_ext <<_ACEOF
40468/* end confdefs.h. */
d12aef51
VZ
40469
40470 #include <sys/soundcard.h>
40471
40472int
40473main ()
40474{
40475
40476 ioctl(0, SNDCTL_DSP_SYNC, 0);
40477
40478 ;
40479 return 0;
40480}
a848cd7e 40481_ACEOF
d12aef51
VZ
40482rm -f conftest.$ac_objext conftest$ac_exeext
40483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40484 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40485 ac_status=$?
40486 grep -v '^ *+' conftest.er1 >conftest.err
40487 rm -f conftest.er1
40488 cat conftest.err >&5
40489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40490 (exit $ac_status); } &&
3565d135
RR
40491 { ac_try='test -z "$ac_c_werror_flag"
40492 || test ! -s conftest.err'
d12aef51
VZ
40493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40494 (eval $ac_try) 2>&5
40495 ac_status=$?
40496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497 (exit $ac_status); }; } &&
40498 { ac_try='test -s conftest$ac_exeext'
40499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40500 (eval $ac_try) 2>&5
40501 ac_status=$?
40502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503 (exit $ac_status); }; }; then
40504 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40505else
40506 echo "$as_me: failed program was:" >&5
40507sed 's/^/| /' conftest.$ac_ext >&5
40508
a848cd7e 40509
d12aef51
VZ
40510 LIBS="$saveLibs"
40511 ac_cv_header_sys_soundcard=no
40512
40513
a848cd7e 40514fi
d12aef51
VZ
40515rm -f conftest.err conftest.$ac_objext \
40516 conftest$ac_exeext conftest.$ac_ext
40517
a848cd7e
SC
40518
40519fi
d12aef51
VZ
40520rm -f conftest.err conftest.$ac_objext \
40521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40522
40523fi
d12aef51
VZ
40524echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40525echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40526
d12aef51
VZ
40527 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40528 cat >>confdefs.h <<\_ACEOF
40529#define HAVE_SYS_SOUNDCARD_H 1
40530_ACEOF
a848cd7e 40531
d12aef51
VZ
40532 else
40533 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40534 fi
9c112555
MW
40535fi
40536WITH_PLUGIN_SDL=0
40537if test "$wxUSE_SOUND" = "yes"; then
40538 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40539 if test "$wxUSE_LIBSDL" != "no"; then
40540
40541# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40542if test "${with_sdl_prefix+set}" = set; then
40543 withval="$with_sdl_prefix"
40544 sdl_prefix="$withval"
40545else
40546 sdl_prefix=""
40547fi;
40548
40549# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40550if test "${with_sdl_exec_prefix+set}" = set; then
40551 withval="$with_sdl_exec_prefix"
40552 sdl_exec_prefix="$withval"
40553else
40554 sdl_exec_prefix=""
40555fi;
40556# Check whether --enable-sdltest or --disable-sdltest was given.
40557if test "${enable_sdltest+set}" = set; then
40558 enableval="$enable_sdltest"
40559
40560else
40561 enable_sdltest=yes
40562fi;
40563
40564 if test x$sdl_exec_prefix != x ; then
40565 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40566 if test x${SDL_CONFIG+set} != xset ; then
40567 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40568 fi
40569 fi
40570 if test x$sdl_prefix != x ; then
40571 sdl_args="$sdl_args --prefix=$sdl_prefix"
40572 if test x${SDL_CONFIG+set} != xset ; then
40573 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40574 fi
40575 fi
40576
40577
40578 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40579 # Extract the first word of "sdl-config", so it can be a program name with args.
40580set dummy sdl-config; ac_word=$2
40581echo "$as_me:$LINENO: checking for $ac_word" >&5
40582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40583if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40584 echo $ECHO_N "(cached) $ECHO_C" >&6
40585else
40586 case $SDL_CONFIG in
40587 [\\/]* | ?:[\\/]*)
40588 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40589 ;;
40590 *)
40591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40592for as_dir in $PATH
40593do
40594 IFS=$as_save_IFS
40595 test -z "$as_dir" && as_dir=.
40596 for ac_exec_ext in '' $ac_executable_extensions; do
40597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40598 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40600 break 2
40601 fi
40602done
40603done
40604
40605 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40606 ;;
40607esac
40608fi
40609SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40610
40611if test -n "$SDL_CONFIG"; then
40612 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40613echo "${ECHO_T}$SDL_CONFIG" >&6
40614else
40615 echo "$as_me:$LINENO: result: no" >&5
40616echo "${ECHO_T}no" >&6
40617fi
40618
40619 min_sdl_version=1.2.0
40620 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40621echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40622 no_sdl=""
40623 if test "$SDL_CONFIG" = "no" ; then
40624 no_sdl=yes
40625 else
40626 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40627 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40628
40629 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40630 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40631 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40632 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40633 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40634 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40635 if test "x$enable_sdltest" = "xyes" ; then
40636 ac_save_CFLAGS="$CFLAGS"
94acd38e 40637 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40638 ac_save_LIBS="$LIBS"
40639 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40640 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40641 LIBS="$LIBS $SDL_LIBS"
40642 rm -f conf.sdltest
40643 if test "$cross_compiling" = yes; then
40644 echo $ac_n "cross compiling; assumed OK... $ac_c"
40645else
40646 cat >conftest.$ac_ext <<_ACEOF
40647/* confdefs.h. */
40648_ACEOF
40649cat confdefs.h >>conftest.$ac_ext
40650cat >>conftest.$ac_ext <<_ACEOF
40651/* end confdefs.h. */
40652
40653#include <stdio.h>
40654#include <stdlib.h>
40655#include <string.h>
40656#include "SDL.h"
40657
40658char*
40659my_strdup (char *str)
40660{
40661 char *new_str;
40662
40663 if (str)
40664 {
40665 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40666 strcpy (new_str, str);
40667 }
40668 else
40669 new_str = NULL;
40670
40671 return new_str;
40672}
40673
40674int main (int argc, char *argv[])
40675{
40676 int major, minor, micro;
40677 char *tmp_version;
40678
40679 /* This hangs on some systems (?)
40680 system ("touch conf.sdltest");
40681 */
40682 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40683
40684 /* HP/UX 9 (%@#!) writes to sscanf strings */
40685 tmp_version = my_strdup("$min_sdl_version");
40686 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40687 printf("%s, bad version string\n", "$min_sdl_version");
40688 exit(1);
40689 }
40690
40691 if (($sdl_major_version > major) ||
40692 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40693 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40694 {
40695 return 0;
40696 }
40697 else
40698 {
40699 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40700 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40701 printf("*** best to upgrade to the required version.\n");
40702 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40703 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40704 printf("*** config.cache before re-running configure\n");
40705 return 1;
40706 }
40707}
40708
40709
40710_ACEOF
40711rm -f conftest$ac_exeext
40712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40713 (eval $ac_link) 2>&5
40714 ac_status=$?
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40718 (eval $ac_try) 2>&5
40719 ac_status=$?
40720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721 (exit $ac_status); }; }; then
40722 :
40723else
40724 echo "$as_me: program exited with status $ac_status" >&5
40725echo "$as_me: failed program was:" >&5
40726sed 's/^/| /' conftest.$ac_ext >&5
40727
40728( exit $ac_status )
40729no_sdl=yes
40730fi
ac1cb8d3 40731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40732fi
40733 CFLAGS="$ac_save_CFLAGS"
94acd38e 40734 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40735 LIBS="$ac_save_LIBS"
40736 fi
40737 fi
40738 if test "x$no_sdl" = x ; then
40739 echo "$as_me:$LINENO: result: yes" >&5
40740echo "${ECHO_T}yes" >&6
40741
40742 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40743 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40744 cat >>confdefs.h <<\_ACEOF
40745#define wxUSE_LIBSDL 1
40746_ACEOF
40747
40748
40749 else
40750 echo "$as_me:$LINENO: result: no" >&5
40751echo "${ECHO_T}no" >&6
40752 if test "$SDL_CONFIG" = "no" ; then
40753 echo "*** The sdl-config script installed by SDL could not be found"
40754 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40755 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40756 echo "*** full path to sdl-config."
40757 else
40758 if test -f conf.sdltest ; then
40759 :
40760 else
40761 echo "*** Could not run SDL test program, checking why..."
40762 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40763 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40764 LIBS="$LIBS $SDL_LIBS"
40765 cat >conftest.$ac_ext <<_ACEOF
40766/* confdefs.h. */
40767_ACEOF
40768cat confdefs.h >>conftest.$ac_ext
40769cat >>conftest.$ac_ext <<_ACEOF
40770/* end confdefs.h. */
40771
40772#include <stdio.h>
40773#include "SDL.h"
40774
40775int main(int argc, char *argv[])
40776{ return 0; }
40777#undef main
40778#define main K_and_R_C_main
40779
40780int
40781main ()
40782{
40783 return 0;
40784 ;
40785 return 0;
40786}
40787_ACEOF
40788rm -f conftest.$ac_objext conftest$ac_exeext
40789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40790 (eval $ac_link) 2>conftest.er1
a848cd7e 40791 ac_status=$?
ac1cb8d3
VS
40792 grep -v '^ *+' conftest.er1 >conftest.err
40793 rm -f conftest.er1
40794 cat conftest.err >&5
a848cd7e
SC
40795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); } &&
3565d135
RR
40797 { ac_try='test -z "$ac_c_werror_flag"
40798 || test ! -s conftest.err'
ac1cb8d3
VS
40799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800 (eval $ac_try) 2>&5
40801 ac_status=$?
40802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803 (exit $ac_status); }; } &&
40804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40807 ac_status=$?
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; }; then
40810 echo "*** The test program compiled, but did not run. This usually means"
40811 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40812 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40813 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40814 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40815 echo "*** is required on your system"
40816 echo "***"
40817 echo "*** If you have an old version installed, it is best to remove it, although"
40818 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40819else
40820 echo "$as_me: failed program was:" >&5
40821sed 's/^/| /' conftest.$ac_ext >&5
40822
40823 echo "*** The test program failed to compile or link. See the file config.log for the"
40824 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40825 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40826 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40827fi
ac1cb8d3
VS
40828rm -f conftest.err conftest.$ac_objext \
40829 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40830 CFLAGS="$ac_save_CFLAGS"
94acd38e 40831 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40832 LIBS="$ac_save_LIBS"
40833 fi
40834 fi
40835 SDL_CFLAGS=""
40836 SDL_LIBS=""
40837 wxUSE_LIBSDL="no"
40838 fi
40839
40840
40841 rm -f conf.sdltest
40842
40843 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40844 WITH_PLUGIN_SDL=1
40845 fi
40846 fi
40847 fi
40848
40849 cat >>confdefs.h <<\_ACEOF
40850#define wxUSE_SOUND 1
40851_ACEOF
40852
40853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40854fi
40855
d1c38808
VZ
40856if test "$WXGTK20" = 1; then
40857 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40858 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40859
40860
40861 succeeded=no
40862
40863 if test -z "$PKG_CONFIG"; then
40864 # Extract the first word of "pkg-config", so it can be a program name with args.
40865set dummy pkg-config; ac_word=$2
40866echo "$as_me:$LINENO: checking for $ac_word" >&5
40867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40868if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40869 echo $ECHO_N "(cached) $ECHO_C" >&6
40870else
40871 case $PKG_CONFIG in
40872 [\\/]* | ?:[\\/]*)
40873 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40874 ;;
40875 *)
40876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40877for as_dir in $PATH
40878do
40879 IFS=$as_save_IFS
40880 test -z "$as_dir" && as_dir=.
40881 for ac_exec_ext in '' $ac_executable_extensions; do
40882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40883 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40885 break 2
40886 fi
40887done
40888done
40889
40890 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40891 ;;
40892esac
40893fi
40894PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40895
40896if test -n "$PKG_CONFIG"; then
40897 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40898echo "${ECHO_T}$PKG_CONFIG" >&6
40899else
40900 echo "$as_me:$LINENO: result: no" >&5
40901echo "${ECHO_T}no" >&6
40902fi
40903
40904 fi
40905
40906 if test "$PKG_CONFIG" = "no" ; then
40907 echo "*** The pkg-config script could not be found. Make sure it is"
40908 echo "*** in your path, or set the PKG_CONFIG environment variable"
40909 echo "*** to the full path to pkg-config."
40910 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40911 else
40912 PKG_CONFIG_MIN_VERSION=0.9.0
40913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40914 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40915echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40916
ffa762ff 40917 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40918 echo "$as_me:$LINENO: result: yes" >&5
40919echo "${ECHO_T}yes" >&6
40920 succeeded=yes
40921
40922 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40923echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40924 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40925 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40926echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40927
40928 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40929echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40930 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40931 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40932echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40933 else
40934 LIBGNOMEPRINTUI_CFLAGS=""
40935 LIBGNOMEPRINTUI_LIBS=""
40936 ## If we have a custom action on failure, don't print errors, but
40937 ## do set a variable so people can do so.
ffa762ff 40938 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40939
40940 fi
40941
40942
40943
40944 else
40945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40947 fi
40948 fi
40949
40950 if test $succeeded = yes; then
40951
c92ad099 40952 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40953 cat >>confdefs.h <<\_ACEOF
40954#define wxUSE_LIBGNOMEPRINT 1
40955_ACEOF
40956
40957
40958 else
40959
40960 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40961echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40962 wxUSE_LIBGNOMEPRINT="no"
40963
40964
40965 fi
40966
40967 fi
40968 fi
40969fi
40970
3565d135
RR
40971if test "$WXGTK20" = 1; then
40972 if test "$wxUSE_LIBHILDON" = "yes" ; then
40973
40974 succeeded=no
40975
40976 if test -z "$PKG_CONFIG"; then
40977 # Extract the first word of "pkg-config", so it can be a program name with args.
40978set dummy pkg-config; ac_word=$2
40979echo "$as_me:$LINENO: checking for $ac_word" >&5
40980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40981if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40982 echo $ECHO_N "(cached) $ECHO_C" >&6
40983else
40984 case $PKG_CONFIG in
40985 [\\/]* | ?:[\\/]*)
40986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40987 ;;
40988 *)
40989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40990for as_dir in $PATH
40991do
40992 IFS=$as_save_IFS
40993 test -z "$as_dir" && as_dir=.
40994 for ac_exec_ext in '' $ac_executable_extensions; do
40995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40996 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40998 break 2
40999 fi
41000done
41001done
41002
41003 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41004 ;;
41005esac
41006fi
41007PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41008
41009if test -n "$PKG_CONFIG"; then
41010 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41011echo "${ECHO_T}$PKG_CONFIG" >&6
41012else
41013 echo "$as_me:$LINENO: result: no" >&5
41014echo "${ECHO_T}no" >&6
41015fi
41016
41017 fi
41018
41019 if test "$PKG_CONFIG" = "no" ; then
41020 echo "*** The pkg-config script could not be found. Make sure it is"
41021 echo "*** in your path, or set the PKG_CONFIG environment variable"
41022 echo "*** to the full path to pkg-config."
41023 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41024 else
41025 PKG_CONFIG_MIN_VERSION=0.9.0
41026 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41027 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41028echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41029
41030 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41031 echo "$as_me:$LINENO: result: yes" >&5
41032echo "${ECHO_T}yes" >&6
41033 succeeded=yes
41034
41035 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41036echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41037 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41038 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41039echo "${ECHO_T}$HILDON_CFLAGS" >&6
41040
41041 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41042echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41043 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41044 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41045echo "${ECHO_T}$HILDON_LIBS" >&6
41046 else
41047 HILDON_CFLAGS=""
41048 HILDON_LIBS=""
41049 ## If we have a custom action on failure, don't print errors, but
41050 ## do set a variable so people can do so.
41051 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41052
41053 fi
41054
41055
41056
41057 else
41058 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41059 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41060 fi
41061 fi
41062
41063 if test $succeeded = yes; then
41064
41065 EXTRALIBS_HILDON="$HILDON_LIBS"
41066 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41067 cat >>confdefs.h <<\_ACEOF
41068#define wxUSE_LIBHILDON 1
41069_ACEOF
41070
41071
41072 else
41073
41074 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41075echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41076 wxUSE_LIBHILDON="no"
41077
41078
41079 fi
41080
41081 fi
41082fi
d1c38808 41083
a848cd7e
SC
41084if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41085 cat >>confdefs.h <<\_ACEOF
41086#define wxUSE_CMDLINE_PARSER 1
41087_ACEOF
41088
41089fi
41090
41091if test "$wxUSE_STOPWATCH" = "yes"; then
41092 cat >>confdefs.h <<\_ACEOF
41093#define wxUSE_STOPWATCH 1
41094_ACEOF
41095
41096fi
41097
41098if test "$wxUSE_DATETIME" = "yes"; then
41099 cat >>confdefs.h <<\_ACEOF
41100#define wxUSE_DATETIME 1
41101_ACEOF
41102
41103fi
41104
41105if test "$wxUSE_FILE" = "yes"; then
41106 cat >>confdefs.h <<\_ACEOF
41107#define wxUSE_FILE 1
41108_ACEOF
41109
41110fi
41111
41112if test "$wxUSE_FFILE" = "yes"; then
41113 cat >>confdefs.h <<\_ACEOF
41114#define wxUSE_FFILE 1
41115_ACEOF
41116
41117fi
41118
41119if test "$wxUSE_FILESYSTEM" = "yes"; then
41120 cat >>confdefs.h <<\_ACEOF
41121#define wxUSE_FILESYSTEM 1
41122_ACEOF
41123
41124fi
41125
41126if test "$wxUSE_FS_ZIP" = "yes"; then
41127 cat >>confdefs.h <<\_ACEOF
41128#define wxUSE_FS_ZIP 1
41129_ACEOF
41130
41131fi
41132
9e8e867f 41133if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41134 cat >>confdefs.h <<\_ACEOF
9e8e867f 41135#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41136_ACEOF
41137
41138fi
41139
41140if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41141 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41142 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41143echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41144 elif test "$wxUSE_ZLIB" = "no"; then
41145 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41146echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41147 else
41148 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41149#define wxUSE_ZIPSTREAM 1
41150_ACEOF
41151
81f90336 41152 fi
a848cd7e
SC
41153fi
41154
a848cd7e 41155if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41156 if test "$USE_UNIX" != 1; then
41157 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41158echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41159 wxUSE_ON_FATAL_EXCEPTION=no
41160 else
41161 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41162#define wxUSE_ON_FATAL_EXCEPTION 1
41163_ACEOF
41164
18228ab4 41165 fi
a848cd7e
SC
41166fi
41167
eaff0f0d
VZ
41168if test "$wxUSE_STACKWALKER" = "yes"; then
41169 cat >>confdefs.h <<\_ACEOF
41170#define wxUSE_STACKWALKER 1
41171_ACEOF
41172
41173fi
41174
36b6448c 41175if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41176 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41177 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41178echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41179 wxUSE_DEBUGREPORT=no
41180 else
41181 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41182#define wxUSE_DEBUGREPORT 1
41183_ACEOF
41184
21dfc162
MW
41185 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41187 fi
dfe0c803 41188 fi
36b6448c
VZ
41189fi
41190
a848cd7e
SC
41191if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41192 cat >>confdefs.h <<\_ACEOF
41193#define wxUSE_SNGLINST_CHECKER 1
41194_ACEOF
41195
41196fi
41197
41198if test "$wxUSE_BUSYINFO" = "yes"; then
41199 cat >>confdefs.h <<\_ACEOF
41200#define wxUSE_BUSYINFO 1
41201_ACEOF
41202
41203fi
41204
41205if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41206 cat >>confdefs.h <<\_ACEOF
41207#define wxUSE_STD_IOSTREAM 1
41208_ACEOF
41209
41210fi
41211
59746b65
MW
41212if test "$wxUSE_STD_STRING" = "yes"; then
41213 cat >>confdefs.h <<\_ACEOF
41214#define wxUSE_STD_STRING 1
41215_ACEOF
41216
41217fi
41218
07158944
VZ
41219if test "$wxUSE_STDPATHS" = "yes"; then
41220 cat >>confdefs.h <<\_ACEOF
41221#define wxUSE_STDPATHS 1
41222_ACEOF
41223
41224fi
41225
a848cd7e
SC
41226if test "$wxUSE_TEXTBUFFER" = "yes"; then
41227 cat >>confdefs.h <<\_ACEOF
41228#define wxUSE_TEXTBUFFER 1
41229_ACEOF
41230
41231fi
41232
41233if test "$wxUSE_TEXTFILE" = "yes"; then
41234 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41235 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41236echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41237 else
41238 cat >>confdefs.h <<\_ACEOF
41239#define wxUSE_TEXTFILE 1
41240_ACEOF
41241
41242 fi
41243fi
41244
41245if test "$wxUSE_CONFIG" = "yes" ; then
41246 if test "$wxUSE_TEXTFILE" != "yes"; then
41247 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41248echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41249 else
41250 cat >>confdefs.h <<\_ACEOF
41251#define wxUSE_CONFIG 1
89be85c2
VS
41252_ACEOF
41253
41254 cat >>confdefs.h <<\_ACEOF
41255#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41256_ACEOF
41257
41258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41259 fi
41260fi
41261
41262if test "$wxUSE_INTL" = "yes" ; then
41263 if test "$wxUSE_FILE" != "yes"; then
41264 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41265echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41266 else
41267 cat >>confdefs.h <<\_ACEOF
41268#define wxUSE_INTL 1
41269_ACEOF
41270
41271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41272 GUIDIST="$GUIDIST INTL_DIST"
41273 fi
41274fi
41275
41276if test "$wxUSE_LOG" = "yes"; then
41277 cat >>confdefs.h <<\_ACEOF
41278#define wxUSE_LOG 1
41279_ACEOF
41280
41281
41282 if test "$wxUSE_LOGGUI" = "yes"; then
41283 cat >>confdefs.h <<\_ACEOF
41284#define wxUSE_LOGGUI 1
41285_ACEOF
41286
41287 fi
41288
41289 if test "$wxUSE_LOGWINDOW" = "yes"; then
41290 cat >>confdefs.h <<\_ACEOF
41291#define wxUSE_LOGWINDOW 1
41292_ACEOF
41293
41294 fi
41295
41296 if test "$wxUSE_LOGDIALOG" = "yes"; then
41297 cat >>confdefs.h <<\_ACEOF
41298#define wxUSE_LOG_DIALOG 1
41299_ACEOF
41300
41301 fi
0b78747f
MW
41302
41303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41304fi
41305
41306if test "$wxUSE_LONGLONG" = "yes"; then
41307 cat >>confdefs.h <<\_ACEOF
41308#define wxUSE_LONGLONG 1
41309_ACEOF
41310
41311fi
41312
41313if test "$wxUSE_GEOMETRY" = "yes"; then
41314 cat >>confdefs.h <<\_ACEOF
41315#define wxUSE_GEOMETRY 1
41316_ACEOF
41317
41318fi
41319
a848cd7e
SC
41320if test "$wxUSE_STREAMS" = "yes" ; then
41321 cat >>confdefs.h <<\_ACEOF
41322#define wxUSE_STREAMS 1
41323_ACEOF
41324
41325fi
41326
41327
41328if test "$wxUSE_DATETIME" = "yes"; then
41329
41330for ac_func in strptime
41331do
41332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41333echo "$as_me:$LINENO: checking for $ac_func" >&5
41334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41335if eval "test \"\${$as_ac_var+set}\" = set"; then
41336 echo $ECHO_N "(cached) $ECHO_C" >&6
41337else
41338 cat >conftest.$ac_ext <<_ACEOF
41339/* confdefs.h. */
41340_ACEOF
41341cat confdefs.h >>conftest.$ac_ext
41342cat >>conftest.$ac_ext <<_ACEOF
41343/* end confdefs.h. */
ac1cb8d3
VS
41344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41346#define $ac_func innocuous_$ac_func
41347
a848cd7e
SC
41348/* System header to define __stub macros and hopefully few prototypes,
41349 which can conflict with char $ac_func (); below.
41350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41351 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41352
a848cd7e
SC
41353#ifdef __STDC__
41354# include <limits.h>
41355#else
41356# include <assert.h>
41357#endif
ac1cb8d3
VS
41358
41359#undef $ac_func
41360
a848cd7e
SC
41361/* Override any gcc2 internal prototype to avoid an error. */
41362#ifdef __cplusplus
41363extern "C"
41364{
41365#endif
41366/* We use char because int might match the return type of a gcc2
41367 builtin and then its argument prototype would still apply. */
41368char $ac_func ();
41369/* The GNU C library defines this for functions which it implements
41370 to always fail with ENOSYS. Some functions are actually named
41371 something starting with __ and the normal name is an alias. */
41372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41373choke me
41374#else
41375char (*f) () = $ac_func;
41376#endif
41377#ifdef __cplusplus
41378}
41379#endif
41380
41381int
41382main ()
41383{
41384return f != $ac_func;
41385 ;
41386 return 0;
41387}
41388_ACEOF
41389rm -f conftest.$ac_objext conftest$ac_exeext
41390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41391 (eval $ac_link) 2>conftest.er1
a848cd7e 41392 ac_status=$?
ac1cb8d3
VS
41393 grep -v '^ *+' conftest.er1 >conftest.err
41394 rm -f conftest.er1
41395 cat conftest.err >&5
a848cd7e
SC
41396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41397 (exit $ac_status); } &&
3565d135
RR
41398 { ac_try='test -z "$ac_c_werror_flag"
41399 || test ! -s conftest.err'
ac1cb8d3
VS
41400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41401 (eval $ac_try) 2>&5
41402 ac_status=$?
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); }; } &&
41405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41407 (eval $ac_try) 2>&5
41408 ac_status=$?
41409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); }; }; then
41411 eval "$as_ac_var=yes"
41412else
41413 echo "$as_me: failed program was:" >&5
41414sed 's/^/| /' conftest.$ac_ext >&5
41415
41416eval "$as_ac_var=no"
41417fi
ac1cb8d3
VS
41418rm -f conftest.err conftest.$ac_objext \
41419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41420fi
41421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41423if test `eval echo '${'$as_ac_var'}'` = yes; then
41424 cat >>confdefs.h <<_ACEOF
41425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41426_ACEOF
41427
41428fi
41429done
41430
f536f005
VZ
41431 if test "$ac_cv_func_strptime" = "yes"; then
41432 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41433echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41434if test "${wx_cv_func_strptime_decl+set}" = set; then
41435 echo $ECHO_N "(cached) $ECHO_C" >&6
41436else
41437
41438
41439
41440 ac_ext=cc
41441ac_cpp='$CXXCPP $CPPFLAGS'
41442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41445
41446 cat >conftest.$ac_ext <<_ACEOF
41447/* confdefs.h. */
41448_ACEOF
41449cat confdefs.h >>conftest.$ac_ext
41450cat >>conftest.$ac_ext <<_ACEOF
41451/* end confdefs.h. */
41452
41453 #include <time.h>
41454
41455int
41456main ()
41457{
41458
41459 struct tm t;
41460 strptime("foo", "bar", &t);
41461
41462 ;
41463 return 0;
41464}
41465_ACEOF
41466rm -f conftest.$ac_objext
41467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41468 (eval $ac_compile) 2>conftest.er1
41469 ac_status=$?
41470 grep -v '^ *+' conftest.er1 >conftest.err
41471 rm -f conftest.er1
41472 cat conftest.err >&5
41473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474 (exit $ac_status); } &&
3565d135
RR
41475 { ac_try='test -z "$ac_cxx_werror_flag"
41476 || test ! -s conftest.err'
f536f005
VZ
41477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478 (eval $ac_try) 2>&5
41479 ac_status=$?
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); }; } &&
41482 { ac_try='test -s conftest.$ac_objext'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41485 ac_status=$?
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41488 wx_cv_func_strptime_decl=yes
41489else
41490 echo "$as_me: failed program was:" >&5
41491sed 's/^/| /' conftest.$ac_ext >&5
41492
41493wx_cv_func_strptime_decl=no
41494
41495fi
41496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41497 ac_ext=c
41498ac_cpp='$CPP $CPPFLAGS'
41499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41501ac_compiler_gnu=$ac_cv_c_compiler_gnu
41502
41503
41504
41505fi
41506echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41507echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41508 fi
41509 if test "$wx_cv_func_strptime_decl" = "yes"; then
41510 cat >>confdefs.h <<\_ACEOF
41511#define HAVE_STRPTIME_DECL 1
41512_ACEOF
41513
41514 fi
a848cd7e
SC
41515
41516 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41517echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41518if test "${wx_cv_var_timezone+set}" = set; then
41519 echo $ECHO_N "(cached) $ECHO_C" >&6
41520else
41521
41522 cat >conftest.$ac_ext <<_ACEOF
41523/* confdefs.h. */
41524_ACEOF
41525cat confdefs.h >>conftest.$ac_ext
41526cat >>conftest.$ac_ext <<_ACEOF
41527/* end confdefs.h. */
41528
41529 #include <time.h>
41530
41531int
41532main ()
41533{
41534
41535 int tz;
41536 tz = timezone;
41537
41538 ;
41539 return 0;
41540}
41541_ACEOF
41542rm -f conftest.$ac_objext
41543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41544 (eval $ac_compile) 2>conftest.er1
a848cd7e 41545 ac_status=$?
ac1cb8d3
VS
41546 grep -v '^ *+' conftest.er1 >conftest.err
41547 rm -f conftest.er1
41548 cat conftest.err >&5
a848cd7e
SC
41549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41550 (exit $ac_status); } &&
3565d135
RR
41551 { ac_try='test -z "$ac_c_werror_flag"
41552 || test ! -s conftest.err'
ac1cb8d3
VS
41553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41554 (eval $ac_try) 2>&5
41555 ac_status=$?
41556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41557 (exit $ac_status); }; } &&
41558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41560 (eval $ac_try) 2>&5
41561 ac_status=$?
41562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41563 (exit $ac_status); }; }; then
41564
41565 wx_cv_var_timezone=timezone
41566
41567else
41568 echo "$as_me: failed program was:" >&5
41569sed 's/^/| /' conftest.$ac_ext >&5
41570
41571
41572 cat >conftest.$ac_ext <<_ACEOF
41573/* confdefs.h. */
41574_ACEOF
41575cat confdefs.h >>conftest.$ac_ext
41576cat >>conftest.$ac_ext <<_ACEOF
41577/* end confdefs.h. */
41578
41579 #include <time.h>
41580
41581int
41582main ()
41583{
41584
41585 int tz;
41586 tz = _timezone;
41587
41588 ;
41589 return 0;
41590}
41591_ACEOF
41592rm -f conftest.$ac_objext
41593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41594 (eval $ac_compile) 2>conftest.er1
a848cd7e 41595 ac_status=$?
ac1cb8d3
VS
41596 grep -v '^ *+' conftest.er1 >conftest.err
41597 rm -f conftest.er1
41598 cat conftest.err >&5
a848cd7e
SC
41599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600 (exit $ac_status); } &&
3565d135
RR
41601 { ac_try='test -z "$ac_c_werror_flag"
41602 || test ! -s conftest.err'
ac1cb8d3
VS
41603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41604 (eval $ac_try) 2>&5
41605 ac_status=$?
41606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607 (exit $ac_status); }; } &&
41608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41610 (eval $ac_try) 2>&5
41611 ac_status=$?
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); }; }; then
41614
41615 wx_cv_var_timezone=_timezone
41616
41617else
41618 echo "$as_me: failed program was:" >&5
41619sed 's/^/| /' conftest.$ac_ext >&5
41620
41621
41622 cat >conftest.$ac_ext <<_ACEOF
41623/* confdefs.h. */
41624_ACEOF
41625cat confdefs.h >>conftest.$ac_ext
41626cat >>conftest.$ac_ext <<_ACEOF
41627/* end confdefs.h. */
41628
41629 #include <time.h>
41630
41631int
41632main ()
41633{
41634
41635 int tz;
41636 tz = __timezone;
41637
41638 ;
41639 return 0;
41640}
41641_ACEOF
41642rm -f conftest.$ac_objext
41643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41644 (eval $ac_compile) 2>conftest.er1
a848cd7e 41645 ac_status=$?
ac1cb8d3
VS
41646 grep -v '^ *+' conftest.er1 >conftest.err
41647 rm -f conftest.er1
41648 cat conftest.err >&5
a848cd7e
SC
41649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650 (exit $ac_status); } &&
3565d135
RR
41651 { ac_try='test -z "$ac_c_werror_flag"
41652 || test ! -s conftest.err'
ac1cb8d3
VS
41653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41654 (eval $ac_try) 2>&5
41655 ac_status=$?
41656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41657 (exit $ac_status); }; } &&
41658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41660 (eval $ac_try) 2>&5
41661 ac_status=$?
41662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663 (exit $ac_status); }; }; then
41664
41665 wx_cv_var_timezone=__timezone
41666
41667else
41668 echo "$as_me: failed program was:" >&5
41669sed 's/^/| /' conftest.$ac_ext >&5
41670
41671
41672 if test "$USE_DOS" = 0 ; then
41673 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41674echo "$as_me: WARNING: no timezone variable" >&2;}
41675 fi
41676
41677
41678fi
ac1cb8d3 41679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41680
41681
41682fi
ac1cb8d3 41683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41684
41685
41686fi
ac1cb8d3 41687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41688
41689
41690fi
41691echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41692echo "${ECHO_T}$wx_cv_var_timezone" >&6
41693
41694 if test "x$wx_cv_var_timezone" != x ; then
41695 cat >>confdefs.h <<_ACEOF
41696#define WX_TIMEZONE $wx_cv_var_timezone
41697_ACEOF
41698
41699 fi
41700
41701
41702for ac_func in localtime
41703do
41704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41705echo "$as_me:$LINENO: checking for $ac_func" >&5
41706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41707if eval "test \"\${$as_ac_var+set}\" = set"; then
41708 echo $ECHO_N "(cached) $ECHO_C" >&6
41709else
41710 cat >conftest.$ac_ext <<_ACEOF
41711/* confdefs.h. */
41712_ACEOF
41713cat confdefs.h >>conftest.$ac_ext
41714cat >>conftest.$ac_ext <<_ACEOF
41715/* end confdefs.h. */
ac1cb8d3
VS
41716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41718#define $ac_func innocuous_$ac_func
41719
a848cd7e
SC
41720/* System header to define __stub macros and hopefully few prototypes,
41721 which can conflict with char $ac_func (); below.
41722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41723 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41724
a848cd7e
SC
41725#ifdef __STDC__
41726# include <limits.h>
41727#else
41728# include <assert.h>
41729#endif
ac1cb8d3
VS
41730
41731#undef $ac_func
41732
a848cd7e
SC
41733/* Override any gcc2 internal prototype to avoid an error. */
41734#ifdef __cplusplus
41735extern "C"
41736{
41737#endif
41738/* We use char because int might match the return type of a gcc2
41739 builtin and then its argument prototype would still apply. */
41740char $ac_func ();
41741/* The GNU C library defines this for functions which it implements
41742 to always fail with ENOSYS. Some functions are actually named
41743 something starting with __ and the normal name is an alias. */
41744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41745choke me
41746#else
41747char (*f) () = $ac_func;
41748#endif
41749#ifdef __cplusplus
41750}
41751#endif
41752
41753int
41754main ()
41755{
41756return f != $ac_func;
41757 ;
41758 return 0;
41759}
41760_ACEOF
41761rm -f conftest.$ac_objext conftest$ac_exeext
41762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41763 (eval $ac_link) 2>conftest.er1
a848cd7e 41764 ac_status=$?
ac1cb8d3
VS
41765 grep -v '^ *+' conftest.er1 >conftest.err
41766 rm -f conftest.er1
41767 cat conftest.err >&5
a848cd7e
SC
41768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41769 (exit $ac_status); } &&
3565d135
RR
41770 { ac_try='test -z "$ac_c_werror_flag"
41771 || test ! -s conftest.err'
ac1cb8d3
VS
41772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773 (eval $ac_try) 2>&5
41774 ac_status=$?
41775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776 (exit $ac_status); }; } &&
41777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41779 (eval $ac_try) 2>&5
41780 ac_status=$?
41781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782 (exit $ac_status); }; }; then
41783 eval "$as_ac_var=yes"
41784else
41785 echo "$as_me: failed program was:" >&5
41786sed 's/^/| /' conftest.$ac_ext >&5
41787
41788eval "$as_ac_var=no"
41789fi
ac1cb8d3
VS
41790rm -f conftest.err conftest.$ac_objext \
41791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41792fi
41793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41795if test `eval echo '${'$as_ac_var'}'` = yes; then
41796 cat >>confdefs.h <<_ACEOF
41797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41798_ACEOF
41799
41800fi
41801done
41802
41803
41804 if test "$ac_cv_func_localtime" = "yes"; then
41805 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41806echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41807if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41808 echo $ECHO_N "(cached) $ECHO_C" >&6
41809else
41810
41811 cat >conftest.$ac_ext <<_ACEOF
41812/* confdefs.h. */
41813_ACEOF
41814cat confdefs.h >>conftest.$ac_ext
41815cat >>conftest.$ac_ext <<_ACEOF
41816/* end confdefs.h. */
41817
41818 #include <time.h>
41819
41820int
41821main ()
41822{
41823
41824 struct tm tm;
41825 tm.tm_gmtoff++;
41826
41827 ;
41828 return 0;
41829}
41830_ACEOF
41831rm -f conftest.$ac_objext
41832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41833 (eval $ac_compile) 2>conftest.er1
a848cd7e 41834 ac_status=$?
ac1cb8d3
VS
41835 grep -v '^ *+' conftest.er1 >conftest.err
41836 rm -f conftest.er1
41837 cat conftest.err >&5
a848cd7e
SC
41838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839 (exit $ac_status); } &&
3565d135
RR
41840 { ac_try='test -z "$ac_c_werror_flag"
41841 || test ! -s conftest.err'
ac1cb8d3
VS
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; } &&
41847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41849 (eval $ac_try) 2>&5
41850 ac_status=$?
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); }; }; then
41853
41854 wx_cv_struct_tm_has_gmtoff=yes
41855
41856else
41857 echo "$as_me: failed program was:" >&5
41858sed 's/^/| /' conftest.$ac_ext >&5
41859
41860wx_cv_struct_tm_has_gmtoff=no
41861
41862fi
ac1cb8d3 41863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41864
41865fi
41866echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41867echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41868 fi
41869
41870 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41871 cat >>confdefs.h <<\_ACEOF
41872#define WX_GMTOFF_IN_TM 1
41873_ACEOF
41874
41875 fi
41876
41877
41878
41879for ac_func in gettimeofday ftime
41880do
41881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41882echo "$as_me:$LINENO: checking for $ac_func" >&5
41883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41884if eval "test \"\${$as_ac_var+set}\" = set"; then
41885 echo $ECHO_N "(cached) $ECHO_C" >&6
41886else
41887 cat >conftest.$ac_ext <<_ACEOF
41888/* confdefs.h. */
41889_ACEOF
41890cat confdefs.h >>conftest.$ac_ext
41891cat >>conftest.$ac_ext <<_ACEOF
41892/* end confdefs.h. */
ac1cb8d3
VS
41893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41895#define $ac_func innocuous_$ac_func
41896
a848cd7e
SC
41897/* System header to define __stub macros and hopefully few prototypes,
41898 which can conflict with char $ac_func (); below.
41899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41900 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41901
a848cd7e
SC
41902#ifdef __STDC__
41903# include <limits.h>
41904#else
41905# include <assert.h>
41906#endif
ac1cb8d3
VS
41907
41908#undef $ac_func
41909
a848cd7e
SC
41910/* Override any gcc2 internal prototype to avoid an error. */
41911#ifdef __cplusplus
41912extern "C"
41913{
41914#endif
41915/* We use char because int might match the return type of a gcc2
41916 builtin and then its argument prototype would still apply. */
41917char $ac_func ();
41918/* The GNU C library defines this for functions which it implements
41919 to always fail with ENOSYS. Some functions are actually named
41920 something starting with __ and the normal name is an alias. */
41921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41922choke me
41923#else
41924char (*f) () = $ac_func;
41925#endif
41926#ifdef __cplusplus
41927}
41928#endif
41929
41930int
41931main ()
41932{
41933return f != $ac_func;
41934 ;
41935 return 0;
41936}
41937_ACEOF
41938rm -f conftest.$ac_objext conftest$ac_exeext
41939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41940 (eval $ac_link) 2>conftest.er1
a848cd7e 41941 ac_status=$?
ac1cb8d3
VS
41942 grep -v '^ *+' conftest.er1 >conftest.err
41943 rm -f conftest.er1
41944 cat conftest.err >&5
a848cd7e
SC
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); } &&
3565d135
RR
41947 { ac_try='test -z "$ac_c_werror_flag"
41948 || test ! -s conftest.err'
ac1cb8d3
VS
41949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41950 (eval $ac_try) 2>&5
41951 ac_status=$?
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); }; } &&
41954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956 (eval $ac_try) 2>&5
41957 ac_status=$?
41958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959 (exit $ac_status); }; }; then
41960 eval "$as_ac_var=yes"
41961else
41962 echo "$as_me: failed program was:" >&5
41963sed 's/^/| /' conftest.$ac_ext >&5
41964
41965eval "$as_ac_var=no"
41966fi
ac1cb8d3
VS
41967rm -f conftest.err conftest.$ac_objext \
41968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41969fi
41970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41972if test `eval echo '${'$as_ac_var'}'` = yes; then
41973 cat >>confdefs.h <<_ACEOF
41974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41975_ACEOF
41976 break
41977fi
41978done
41979
41980
41981 if test "$ac_cv_func_gettimeofday" = "yes"; then
41982 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41983echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41984if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41985 echo $ECHO_N "(cached) $ECHO_C" >&6
41986else
41987
41988
41989
41990 ac_ext=cc
41991ac_cpp='$CXXCPP $CPPFLAGS'
41992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41995
41996
41997 cat >conftest.$ac_ext <<_ACEOF
41998/* confdefs.h. */
41999_ACEOF
42000cat confdefs.h >>conftest.$ac_ext
42001cat >>conftest.$ac_ext <<_ACEOF
42002/* end confdefs.h. */
42003
42004 #include <sys/time.h>
42005 #include <unistd.h>
42006
42007int
42008main ()
42009{
42010
42011 struct timeval tv;
42012 gettimeofday(&tv, NULL);
42013
42014 ;
42015 return 0;
42016}
42017_ACEOF
42018rm -f conftest.$ac_objext
42019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42020 (eval $ac_compile) 2>conftest.er1
a848cd7e 42021 ac_status=$?
ac1cb8d3
VS
42022 grep -v '^ *+' conftest.er1 >conftest.err
42023 rm -f conftest.er1
42024 cat conftest.err >&5
a848cd7e
SC
42025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42026 (exit $ac_status); } &&
3565d135
RR
42027 { ac_try='test -z "$ac_cxx_werror_flag"
42028 || test ! -s conftest.err'
ac1cb8d3
VS
42029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42030 (eval $ac_try) 2>&5
42031 ac_status=$?
42032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033 (exit $ac_status); }; } &&
42034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42036 (eval $ac_try) 2>&5
42037 ac_status=$?
42038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); }; }; then
42040 wx_cv_func_gettimeofday_has_2_args=yes
42041else
42042 echo "$as_me: failed program was:" >&5
42043sed 's/^/| /' conftest.$ac_ext >&5
42044
42045cat >conftest.$ac_ext <<_ACEOF
42046/* confdefs.h. */
42047_ACEOF
42048cat confdefs.h >>conftest.$ac_ext
42049cat >>conftest.$ac_ext <<_ACEOF
42050/* end confdefs.h. */
42051
42052 #include <sys/time.h>
42053 #include <unistd.h>
42054
42055int
42056main ()
42057{
42058
42059 struct timeval tv;
42060 gettimeofday(&tv);
42061
42062 ;
42063 return 0;
42064}
42065_ACEOF
42066rm -f conftest.$ac_objext
42067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42068 (eval $ac_compile) 2>conftest.er1
a848cd7e 42069 ac_status=$?
ac1cb8d3
VS
42070 grep -v '^ *+' conftest.er1 >conftest.err
42071 rm -f conftest.er1
42072 cat conftest.err >&5
a848cd7e
SC
42073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074 (exit $ac_status); } &&
3565d135
RR
42075 { ac_try='test -z "$ac_cxx_werror_flag"
42076 || test ! -s conftest.err'
ac1cb8d3
VS
42077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42078 (eval $ac_try) 2>&5
42079 ac_status=$?
42080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081 (exit $ac_status); }; } &&
42082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42084 (eval $ac_try) 2>&5
42085 ac_status=$?
42086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087 (exit $ac_status); }; }; then
42088 wx_cv_func_gettimeofday_has_2_args=no
42089else
42090 echo "$as_me: failed program was:" >&5
42091sed 's/^/| /' conftest.$ac_ext >&5
42092
42093
42094 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42095echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42096 wx_cv_func_gettimeofday_has_2_args=unknown
42097
42098
42099fi
ac1cb8d3 42100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42101
42102fi
ac1cb8d3 42103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42104 ac_ext=c
42105ac_cpp='$CPP $CPPFLAGS'
42106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42108ac_compiler_gnu=$ac_cv_c_compiler_gnu
42109
42110
42111fi
42112echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42113echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42114
42115 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42116 cat >>confdefs.h <<\_ACEOF
42117#define WX_GETTIMEOFDAY_NO_TZ 1
42118_ACEOF
42119
42120 fi
42121 fi
42122
42123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42124fi
42125
42126
42127if test "$wxUSE_SOCKETS" = "yes"; then
42128 if test "$wxUSE_MGL" = "1"; then
42129 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42130echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42131 wxUSE_SOCKETS="no"
42132 fi
42133fi
42134
42135if test "$wxUSE_SOCKETS" = "yes"; then
42136 if test "$TOOLKIT" != "MSW"; then
42137 echo "$as_me:$LINENO: checking for socket" >&5
42138echo $ECHO_N "checking for socket... $ECHO_C" >&6
42139if test "${ac_cv_func_socket+set}" = set; then
42140 echo $ECHO_N "(cached) $ECHO_C" >&6
42141else
42142 cat >conftest.$ac_ext <<_ACEOF
42143/* confdefs.h. */
42144_ACEOF
42145cat confdefs.h >>conftest.$ac_ext
42146cat >>conftest.$ac_ext <<_ACEOF
42147/* end confdefs.h. */
ac1cb8d3
VS
42148/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42150#define socket innocuous_socket
42151
a848cd7e
SC
42152/* System header to define __stub macros and hopefully few prototypes,
42153 which can conflict with char socket (); below.
42154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42155 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42156
a848cd7e
SC
42157#ifdef __STDC__
42158# include <limits.h>
42159#else
42160# include <assert.h>
42161#endif
ac1cb8d3
VS
42162
42163#undef socket
42164
a848cd7e
SC
42165/* Override any gcc2 internal prototype to avoid an error. */
42166#ifdef __cplusplus
42167extern "C"
42168{
42169#endif
42170/* We use char because int might match the return type of a gcc2
42171 builtin and then its argument prototype would still apply. */
42172char socket ();
42173/* The GNU C library defines this for functions which it implements
42174 to always fail with ENOSYS. Some functions are actually named
42175 something starting with __ and the normal name is an alias. */
42176#if defined (__stub_socket) || defined (__stub___socket)
42177choke me
42178#else
42179char (*f) () = socket;
42180#endif
42181#ifdef __cplusplus
42182}
42183#endif
42184
42185int
42186main ()
42187{
42188return f != socket;
42189 ;
42190 return 0;
42191}
42192_ACEOF
42193rm -f conftest.$ac_objext conftest$ac_exeext
42194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42195 (eval $ac_link) 2>conftest.er1
a848cd7e 42196 ac_status=$?
ac1cb8d3
VS
42197 grep -v '^ *+' conftest.er1 >conftest.err
42198 rm -f conftest.er1
42199 cat conftest.err >&5
a848cd7e
SC
42200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42201 (exit $ac_status); } &&
3565d135
RR
42202 { ac_try='test -z "$ac_c_werror_flag"
42203 || test ! -s conftest.err'
ac1cb8d3
VS
42204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42205 (eval $ac_try) 2>&5
42206 ac_status=$?
42207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208 (exit $ac_status); }; } &&
42209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42211 (eval $ac_try) 2>&5
42212 ac_status=$?
42213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42214 (exit $ac_status); }; }; then
42215 ac_cv_func_socket=yes
42216else
42217 echo "$as_me: failed program was:" >&5
42218sed 's/^/| /' conftest.$ac_ext >&5
42219
42220ac_cv_func_socket=no
42221fi
ac1cb8d3
VS
42222rm -f conftest.err conftest.$ac_objext \
42223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42224fi
42225echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42226echo "${ECHO_T}$ac_cv_func_socket" >&6
42227if test $ac_cv_func_socket = yes; then
42228 :
42229else
42230
42231 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42232echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42233if test "${ac_cv_lib_socket_socket+set}" = set; then
42234 echo $ECHO_N "(cached) $ECHO_C" >&6
42235else
42236 ac_check_lib_save_LIBS=$LIBS
42237LIBS="-lsocket $LIBS"
42238cat >conftest.$ac_ext <<_ACEOF
42239/* confdefs.h. */
42240_ACEOF
42241cat confdefs.h >>conftest.$ac_ext
42242cat >>conftest.$ac_ext <<_ACEOF
42243/* end confdefs.h. */
42244
42245/* Override any gcc2 internal prototype to avoid an error. */
42246#ifdef __cplusplus
42247extern "C"
42248#endif
42249/* We use char because int might match the return type of a gcc2
42250 builtin and then its argument prototype would still apply. */
42251char socket ();
42252int
42253main ()
42254{
42255socket ();
42256 ;
42257 return 0;
42258}
42259_ACEOF
42260rm -f conftest.$ac_objext conftest$ac_exeext
42261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42262 (eval $ac_link) 2>conftest.er1
a848cd7e 42263 ac_status=$?
ac1cb8d3
VS
42264 grep -v '^ *+' conftest.er1 >conftest.err
42265 rm -f conftest.er1
42266 cat conftest.err >&5
a848cd7e
SC
42267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268 (exit $ac_status); } &&
3565d135
RR
42269 { ac_try='test -z "$ac_c_werror_flag"
42270 || test ! -s conftest.err'
ac1cb8d3
VS
42271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42272 (eval $ac_try) 2>&5
42273 ac_status=$?
42274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275 (exit $ac_status); }; } &&
42276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42278 (eval $ac_try) 2>&5
42279 ac_status=$?
42280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281 (exit $ac_status); }; }; then
42282 ac_cv_lib_socket_socket=yes
42283else
42284 echo "$as_me: failed program was:" >&5
42285sed 's/^/| /' conftest.$ac_ext >&5
42286
42287ac_cv_lib_socket_socket=no
42288fi
ac1cb8d3
VS
42289rm -f conftest.err conftest.$ac_objext \
42290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42291LIBS=$ac_check_lib_save_LIBS
42292fi
42293echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42294echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42295if test $ac_cv_lib_socket_socket = yes; then
42296 if test "$INET_LINK" != " -lsocket"; then
42297 INET_LINK="$INET_LINK -lsocket"
42298 fi
42299else
42300
42301 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42302echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42303 wxUSE_SOCKETS=no
42304
42305
42306fi
42307
42308
42309
42310fi
42311
42312 fi
42313fi
42314
42315if test "$wxUSE_SOCKETS" = "yes" ; then
42316 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
42317 ac_ext=cc
42318ac_cpp='$CXXCPP $CPPFLAGS'
42319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42322
42323 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42324echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42325if test "${wx_cv_type_getsockname3+set}" = set; then
42326 echo $ECHO_N "(cached) $ECHO_C" >&6
42327else
42328
42329 cat >conftest.$ac_ext <<_ACEOF
42330/* confdefs.h. */
42331_ACEOF
42332cat confdefs.h >>conftest.$ac_ext
42333cat >>conftest.$ac_ext <<_ACEOF
42334/* end confdefs.h. */
42335
42336 #include <sys/types.h>
42337 #include <sys/socket.h>
42338
42339int
42340main ()
42341{
42342
42343 socklen_t len;
42344 getsockname(0, 0, &len);
42345
42346 ;
42347 return 0;
42348}
42349_ACEOF
42350rm -f conftest.$ac_objext
42351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42352 (eval $ac_compile) 2>conftest.er1
a848cd7e 42353 ac_status=$?
ac1cb8d3
VS
42354 grep -v '^ *+' conftest.er1 >conftest.err
42355 rm -f conftest.er1
42356 cat conftest.err >&5
a848cd7e
SC
42357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358 (exit $ac_status); } &&
3565d135
RR
42359 { ac_try='test -z "$ac_cxx_werror_flag"
42360 || test ! -s conftest.err'
ac1cb8d3
VS
42361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42362 (eval $ac_try) 2>&5
42363 ac_status=$?
42364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365 (exit $ac_status); }; } &&
42366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42368 (eval $ac_try) 2>&5
42369 ac_status=$?
42370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42371 (exit $ac_status); }; }; then
42372 wx_cv_type_getsockname3=socklen_t
42373else
42374 echo "$as_me: failed program was:" >&5
42375sed 's/^/| /' conftest.$ac_ext >&5
42376
42377
6459a506 42378 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42379 if test "$GCC" = yes ; then
c92ad099 42380 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42381 fi
42382
42383 cat >conftest.$ac_ext <<_ACEOF
42384/* confdefs.h. */
42385_ACEOF
42386cat confdefs.h >>conftest.$ac_ext
42387cat >>conftest.$ac_ext <<_ACEOF
42388/* end confdefs.h. */
42389
42390 #include <sys/types.h>
42391 #include <sys/socket.h>
42392
42393int
42394main ()
42395{
42396
42397 size_t len;
42398 getsockname(0, 0, &len);
42399
42400 ;
42401 return 0;
42402}
42403_ACEOF
42404rm -f conftest.$ac_objext
42405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42406 (eval $ac_compile) 2>conftest.er1
a848cd7e 42407 ac_status=$?
ac1cb8d3
VS
42408 grep -v '^ *+' conftest.er1 >conftest.err
42409 rm -f conftest.er1
42410 cat conftest.err >&5
a848cd7e
SC
42411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42412 (exit $ac_status); } &&
3565d135
RR
42413 { ac_try='test -z "$ac_cxx_werror_flag"
42414 || test ! -s conftest.err'
ac1cb8d3
VS
42415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42416 (eval $ac_try) 2>&5
42417 ac_status=$?
42418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42419 (exit $ac_status); }; } &&
42420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42422 (eval $ac_try) 2>&5
42423 ac_status=$?
42424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425 (exit $ac_status); }; }; then
42426 wx_cv_type_getsockname3=size_t
42427else
42428 echo "$as_me: failed program was:" >&5
42429sed 's/^/| /' conftest.$ac_ext >&5
42430
42431cat >conftest.$ac_ext <<_ACEOF
42432/* confdefs.h. */
42433_ACEOF
42434cat confdefs.h >>conftest.$ac_ext
42435cat >>conftest.$ac_ext <<_ACEOF
42436/* end confdefs.h. */
42437
42438 #include <sys/types.h>
42439 #include <sys/socket.h>
42440
42441int
42442main ()
42443{
42444
42445 int len;
42446 getsockname(0, 0, &len);
42447
42448 ;
42449 return 0;
42450}
42451_ACEOF
42452rm -f conftest.$ac_objext
42453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42454 (eval $ac_compile) 2>conftest.er1
a848cd7e 42455 ac_status=$?
ac1cb8d3
VS
42456 grep -v '^ *+' conftest.er1 >conftest.err
42457 rm -f conftest.er1
42458 cat conftest.err >&5
a848cd7e
SC
42459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42460 (exit $ac_status); } &&
3565d135
RR
42461 { ac_try='test -z "$ac_cxx_werror_flag"
42462 || test ! -s conftest.err'
ac1cb8d3
VS
42463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42464 (eval $ac_try) 2>&5
42465 ac_status=$?
42466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42467 (exit $ac_status); }; } &&
42468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42470 (eval $ac_try) 2>&5
42471 ac_status=$?
42472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42473 (exit $ac_status); }; }; then
42474 wx_cv_type_getsockname3=int
42475else
42476 echo "$as_me: failed program was:" >&5
42477sed 's/^/| /' conftest.$ac_ext >&5
42478
42479wx_cv_type_getsockname3=unknown
42480
42481fi
ac1cb8d3 42482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42483
42484fi
ac1cb8d3 42485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42486
6459a506 42487 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42488
42489
42490fi
ac1cb8d3 42491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42492
42493fi
42494echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42495echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42496
42497 if test "$wx_cv_type_getsockname3" = "unknown"; then
42498 wxUSE_SOCKETS=no
42499 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42500echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42501 else
42502 cat >>confdefs.h <<_ACEOF
9e03e02d 42503#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42504_ACEOF
42505
42506 fi
42507 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42508echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42509if test "${wx_cv_type_getsockopt5+set}" = set; then
42510 echo $ECHO_N "(cached) $ECHO_C" >&6
42511else
42512
42513 cat >conftest.$ac_ext <<_ACEOF
42514/* confdefs.h. */
42515_ACEOF
42516cat confdefs.h >>conftest.$ac_ext
42517cat >>conftest.$ac_ext <<_ACEOF
42518/* end confdefs.h. */
42519
42520 #include <sys/types.h>
42521 #include <sys/socket.h>
42522
42523int
42524main ()
42525{
42526
42527 socklen_t len;
42528 getsockopt(0, 0, 0, 0, &len);
42529
42530 ;
42531 return 0;
42532}
42533_ACEOF
42534rm -f conftest.$ac_objext
42535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42536 (eval $ac_compile) 2>conftest.er1
42537 ac_status=$?
42538 grep -v '^ *+' conftest.er1 >conftest.err
42539 rm -f conftest.er1
42540 cat conftest.err >&5
42541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542 (exit $ac_status); } &&
3565d135
RR
42543 { ac_try='test -z "$ac_cxx_werror_flag"
42544 || test ! -s conftest.err'
5b674b9d
DE
42545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42546 (eval $ac_try) 2>&5
42547 ac_status=$?
42548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42549 (exit $ac_status); }; } &&
42550 { ac_try='test -s conftest.$ac_objext'
42551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42552 (eval $ac_try) 2>&5
42553 ac_status=$?
42554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555 (exit $ac_status); }; }; then
42556 wx_cv_type_getsockopt5=socklen_t
42557else
42558 echo "$as_me: failed program was:" >&5
42559sed 's/^/| /' conftest.$ac_ext >&5
42560
42561
6459a506 42562 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42563 if test "$GCC" = yes ; then
c92ad099 42564 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42565 fi
42566
42567 cat >conftest.$ac_ext <<_ACEOF
42568/* confdefs.h. */
42569_ACEOF
42570cat confdefs.h >>conftest.$ac_ext
42571cat >>conftest.$ac_ext <<_ACEOF
42572/* end confdefs.h. */
42573
42574 #include <sys/types.h>
42575 #include <sys/socket.h>
42576
42577int
42578main ()
42579{
42580
42581 size_t len;
42582 getsockopt(0, 0, 0, 0, &len);
42583
42584 ;
42585 return 0;
42586}
42587_ACEOF
42588rm -f conftest.$ac_objext
42589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42590 (eval $ac_compile) 2>conftest.er1
42591 ac_status=$?
42592 grep -v '^ *+' conftest.er1 >conftest.err
42593 rm -f conftest.er1
42594 cat conftest.err >&5
42595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596 (exit $ac_status); } &&
3565d135
RR
42597 { ac_try='test -z "$ac_cxx_werror_flag"
42598 || test ! -s conftest.err'
5b674b9d
DE
42599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42600 (eval $ac_try) 2>&5
42601 ac_status=$?
42602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603 (exit $ac_status); }; } &&
42604 { ac_try='test -s conftest.$ac_objext'
42605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42606 (eval $ac_try) 2>&5
42607 ac_status=$?
42608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609 (exit $ac_status); }; }; then
42610 wx_cv_type_getsockopt5=size_t
42611else
42612 echo "$as_me: failed program was:" >&5
42613sed 's/^/| /' conftest.$ac_ext >&5
42614
42615cat >conftest.$ac_ext <<_ACEOF
42616/* confdefs.h. */
42617_ACEOF
42618cat confdefs.h >>conftest.$ac_ext
42619cat >>conftest.$ac_ext <<_ACEOF
42620/* end confdefs.h. */
42621
42622 #include <sys/types.h>
42623 #include <sys/socket.h>
42624
42625int
42626main ()
42627{
42628
42629 int len;
42630 getsockopt(0, 0, 0, 0, &len);
42631
42632 ;
42633 return 0;
42634}
42635_ACEOF
42636rm -f conftest.$ac_objext
42637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42638 (eval $ac_compile) 2>conftest.er1
42639 ac_status=$?
42640 grep -v '^ *+' conftest.er1 >conftest.err
42641 rm -f conftest.er1
42642 cat conftest.err >&5
42643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644 (exit $ac_status); } &&
3565d135
RR
42645 { ac_try='test -z "$ac_cxx_werror_flag"
42646 || test ! -s conftest.err'
5b674b9d
DE
42647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42648 (eval $ac_try) 2>&5
42649 ac_status=$?
42650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651 (exit $ac_status); }; } &&
42652 { ac_try='test -s conftest.$ac_objext'
42653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654 (eval $ac_try) 2>&5
42655 ac_status=$?
42656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; }; then
42658 wx_cv_type_getsockopt5=int
42659else
42660 echo "$as_me: failed program was:" >&5
42661sed 's/^/| /' conftest.$ac_ext >&5
42662
42663wx_cv_type_getsockopt5=unknown
42664
42665fi
42666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42667
42668fi
42669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42670
6459a506 42671 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42672
42673
42674fi
42675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42676
42677fi
42678echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42679echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42680
42681 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42682 wxUSE_SOCKETS=no
42683 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42684echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42685 else
42686 cat >>confdefs.h <<_ACEOF
42687#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42688_ACEOF
42689
42690 fi
4d4ff94c
VZ
42691 ac_ext=c
42692ac_cpp='$CPP $CPPFLAGS'
42693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42695ac_compiler_gnu=$ac_cv_c_compiler_gnu
42696
a848cd7e
SC
42697 fi
42698fi
42699
42700if test "$wxUSE_SOCKETS" = "yes" ; then
42701 cat >>confdefs.h <<\_ACEOF
42702#define wxUSE_SOCKETS 1
42703_ACEOF
42704
42705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42706fi
42707
42708if test "$wxUSE_PROTOCOL" = "yes"; then
42709 if test "$wxUSE_SOCKETS" != "yes"; then
42710 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42711echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42712 wxUSE_PROTOCOL=no
42713 fi
42714fi
42715
42716if test "$wxUSE_PROTOCOL" = "yes"; then
42717 cat >>confdefs.h <<\_ACEOF
42718#define wxUSE_PROTOCOL 1
42719_ACEOF
42720
42721
42722 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42723 cat >>confdefs.h <<\_ACEOF
42724#define wxUSE_PROTOCOL_HTTP 1
42725_ACEOF
42726
42727 fi
42728 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42729 cat >>confdefs.h <<\_ACEOF
42730#define wxUSE_PROTOCOL_FTP 1
42731_ACEOF
42732
42733 fi
42734 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42735 cat >>confdefs.h <<\_ACEOF
42736#define wxUSE_PROTOCOL_FILE 1
42737_ACEOF
42738
42739 fi
42740else
42741 if test "$wxUSE_FS_INET" = "yes"; then
42742 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42743echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42744 wxUSE_FS_INET="no"
42745 fi
42746fi
42747
42748if test "$wxUSE_URL" = "yes"; then
42749 if test "$wxUSE_PROTOCOL" != "yes"; then
42750 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42751echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42752 wxUSE_URL=no
42753 fi
42754 if test "$wxUSE_URL" = "yes"; then
42755 cat >>confdefs.h <<\_ACEOF
42756#define wxUSE_URL 1
42757_ACEOF
42758
42759 fi
42760fi
42761
42762if test "$wxUSE_FS_INET" = "yes"; then
42763 cat >>confdefs.h <<\_ACEOF
42764#define wxUSE_FS_INET 1
42765_ACEOF
42766
42767fi
42768
42769
ee45c548
MW
42770if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42771 wxUSE_JOYSTICK=no
42772
42773 if test "$TOOLKIT" = "MSW"; then
42774 wxUSE_JOYSTICK=yes
42775
42776 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42777 if test "$USE_DARWIN" = 1; then
42778 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42779echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42780 ac_ext=cc
42781ac_cpp='$CXXCPP $CPPFLAGS'
42782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42785
42786 cat >conftest.$ac_ext <<_ACEOF
42787/* confdefs.h. */
42788_ACEOF
42789cat confdefs.h >>conftest.$ac_ext
42790cat >>conftest.$ac_ext <<_ACEOF
42791/* end confdefs.h. */
42792 #include <IOKit/hid/IOHIDLib.h>
42793int
42794main ()
42795{
42796 IOHIDQueueInterface *qi = NULL;
42797 IOHIDCallbackFunction cb = NULL;
42798 qi->setEventCallout(NULL, cb, NULL, NULL);
42799 ;
42800 return 0;
42801}
42802_ACEOF
42803rm -f conftest.$ac_objext
42804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42805 (eval $ac_compile) 2>conftest.er1
42806 ac_status=$?
42807 grep -v '^ *+' conftest.er1 >conftest.err
42808 rm -f conftest.er1
42809 cat conftest.err >&5
42810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42811 (exit $ac_status); } &&
3565d135
RR
42812 { ac_try='test -z "$ac_cxx_werror_flag"
42813 || test ! -s conftest.err'
ee45c548
MW
42814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42815 (eval $ac_try) 2>&5
42816 ac_status=$?
42817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42818 (exit $ac_status); }; } &&
42819 { ac_try='test -s conftest.$ac_objext'
42820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42821 (eval $ac_try) 2>&5
42822 ac_status=$?
42823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824 (exit $ac_status); }; }; then
42825 wxUSE_JOYSTICK=yes
a848cd7e 42826
ee45c548
MW
42827else
42828 echo "$as_me: failed program was:" >&5
42829sed 's/^/| /' conftest.$ac_ext >&5
42830
42831fi
42832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42833 ac_ext=c
42834ac_cpp='$CPP $CPPFLAGS'
42835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42837ac_compiler_gnu=$ac_cv_c_compiler_gnu
42838
42839 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42840echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42841 fi
42842
42843 else
a848cd7e
SC
42844
42845for ac_header in linux/joystick.h
42846do
42847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42848if eval "test \"\${$as_ac_Header+set}\" = set"; then
42849 echo "$as_me:$LINENO: checking for $ac_header" >&5
42850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42851if eval "test \"\${$as_ac_Header+set}\" = set"; then
42852 echo $ECHO_N "(cached) $ECHO_C" >&6
42853fi
42854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42856else
42857 # Is the header compilable?
42858echo "$as_me:$LINENO: checking $ac_header usability" >&5
42859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42860cat >conftest.$ac_ext <<_ACEOF
42861/* confdefs.h. */
42862_ACEOF
42863cat confdefs.h >>conftest.$ac_ext
42864cat >>conftest.$ac_ext <<_ACEOF
42865/* end confdefs.h. */
42866$ac_includes_default
42867#include <$ac_header>
42868_ACEOF
42869rm -f conftest.$ac_objext
42870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42871 (eval $ac_compile) 2>conftest.er1
a848cd7e 42872 ac_status=$?
ac1cb8d3
VS
42873 grep -v '^ *+' conftest.er1 >conftest.err
42874 rm -f conftest.er1
42875 cat conftest.err >&5
a848cd7e
SC
42876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42877 (exit $ac_status); } &&
3565d135
RR
42878 { ac_try='test -z "$ac_c_werror_flag"
42879 || test ! -s conftest.err'
ac1cb8d3
VS
42880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42881 (eval $ac_try) 2>&5
42882 ac_status=$?
42883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884 (exit $ac_status); }; } &&
42885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42887 (eval $ac_try) 2>&5
42888 ac_status=$?
42889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42890 (exit $ac_status); }; }; then
42891 ac_header_compiler=yes
42892else
42893 echo "$as_me: failed program was:" >&5
42894sed 's/^/| /' conftest.$ac_ext >&5
42895
42896ac_header_compiler=no
42897fi
ac1cb8d3 42898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42900echo "${ECHO_T}$ac_header_compiler" >&6
42901
42902# Is the header present?
42903echo "$as_me:$LINENO: checking $ac_header presence" >&5
42904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42905cat >conftest.$ac_ext <<_ACEOF
42906/* confdefs.h. */
42907_ACEOF
42908cat confdefs.h >>conftest.$ac_ext
42909cat >>conftest.$ac_ext <<_ACEOF
42910/* end confdefs.h. */
42911#include <$ac_header>
42912_ACEOF
42913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42915 ac_status=$?
42916 grep -v '^ *+' conftest.er1 >conftest.err
42917 rm -f conftest.er1
42918 cat conftest.err >&5
42919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); } >/dev/null; then
42921 if test -s conftest.err; then
42922 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42924 else
42925 ac_cpp_err=
42926 fi
42927else
42928 ac_cpp_err=yes
42929fi
42930if test -z "$ac_cpp_err"; then
42931 ac_header_preproc=yes
42932else
42933 echo "$as_me: failed program was:" >&5
42934sed 's/^/| /' conftest.$ac_ext >&5
42935
42936 ac_header_preproc=no
42937fi
42938rm -f conftest.err conftest.$ac_ext
42939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42940echo "${ECHO_T}$ac_header_preproc" >&6
42941
42942# So? What about this header?
ac1cb8d3
VS
42943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42944 yes:no: )
a848cd7e
SC
42945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42949 ac_header_preproc=yes
a848cd7e 42950 ;;
ac1cb8d3 42951 no:yes:* )
a848cd7e
SC
42952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42964 (
42965 cat <<\_ASBOX
ac1cb8d3
VS
42966## ----------------------------------------- ##
42967## Report this to wx-dev@lists.wxwidgets.org ##
42968## ----------------------------------------- ##
a848cd7e
SC
42969_ASBOX
42970 ) |
42971 sed "s/^/$as_me: WARNING: /" >&2
42972 ;;
42973esac
42974echo "$as_me:$LINENO: checking for $ac_header" >&5
42975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42976if eval "test \"\${$as_ac_Header+set}\" = set"; then
42977 echo $ECHO_N "(cached) $ECHO_C" >&6
42978else
ac1cb8d3 42979 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42980fi
42981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42983
42984fi
42985if test `eval echo '${'$as_ac_Header'}'` = yes; then
42986 cat >>confdefs.h <<_ACEOF
42987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42988_ACEOF
ee45c548 42989 wxUSE_JOYSTICK=yes
a848cd7e
SC
42990fi
42991
42992done
42993
ee45c548 42994 fi
4cb1d3da 42995
ee45c548
MW
42996 if test "$wxUSE_JOYSTICK" = "yes"; then
42997 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42998#define wxUSE_JOYSTICK 1
42999_ACEOF
43000
ee45c548
MW
43001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43002 else
43003 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43004echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43005 fi
43006fi
43007
43008
43009
43010if test "$wxUSE_FONTMAP" = "yes" ; then
43011 cat >>confdefs.h <<\_ACEOF
43012#define wxUSE_FONTMAP 1
43013_ACEOF
43014
43015fi
43016
43017if test "$wxUSE_UNICODE" = "yes" ; then
43018 cat >>confdefs.h <<\_ACEOF
43019#define wxUSE_UNICODE 1
43020_ACEOF
43021
43022
43023 if test "$USE_WIN32" != 1; then
43024 wxUSE_UNICODE_MSLU=no
43025 fi
43026
43027 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43028 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43029echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43030if test "${ac_cv_lib_unicows_main+set}" = set; then
43031 echo $ECHO_N "(cached) $ECHO_C" >&6
43032else
43033 ac_check_lib_save_LIBS=$LIBS
43034LIBS="-lunicows $LIBS"
43035cat >conftest.$ac_ext <<_ACEOF
43036/* confdefs.h. */
43037_ACEOF
43038cat confdefs.h >>conftest.$ac_ext
43039cat >>conftest.$ac_ext <<_ACEOF
43040/* end confdefs.h. */
43041
43042
43043int
43044main ()
43045{
43046main ();
43047 ;
43048 return 0;
43049}
43050_ACEOF
43051rm -f conftest.$ac_objext conftest$ac_exeext
43052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43053 (eval $ac_link) 2>conftest.er1
a848cd7e 43054 ac_status=$?
ac1cb8d3
VS
43055 grep -v '^ *+' conftest.er1 >conftest.err
43056 rm -f conftest.er1
43057 cat conftest.err >&5
a848cd7e
SC
43058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43059 (exit $ac_status); } &&
3565d135
RR
43060 { ac_try='test -z "$ac_c_werror_flag"
43061 || test ! -s conftest.err'
ac1cb8d3
VS
43062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43063 (eval $ac_try) 2>&5
43064 ac_status=$?
43065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066 (exit $ac_status); }; } &&
43067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43069 (eval $ac_try) 2>&5
43070 ac_status=$?
43071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072 (exit $ac_status); }; }; then
43073 ac_cv_lib_unicows_main=yes
43074else
43075 echo "$as_me: failed program was:" >&5
43076sed 's/^/| /' conftest.$ac_ext >&5
43077
43078ac_cv_lib_unicows_main=no
43079fi
ac1cb8d3
VS
43080rm -f conftest.err conftest.$ac_objext \
43081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43082LIBS=$ac_check_lib_save_LIBS
43083fi
43084echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43085echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43086if test $ac_cv_lib_unicows_main = yes; then
43087
43088 cat >>confdefs.h <<\_ACEOF
43089#define wxUSE_UNICODE_MSLU 1
43090_ACEOF
43091
43092
43093else
43094
43095 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43096 Applications will only run on Windows NT/2000/XP!" >&5
43097echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43098 Applications will only run on Windows NT/2000/XP!" >&2;}
43099 wxUSE_UNICODE_MSLU=no
43100
43101fi
43102
43103 fi
43104fi
43105
43106if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43107 cat >>confdefs.h <<\_ACEOF
43108#define wxUSE_EXPERIMENTAL_PRINTF 1
43109_ACEOF
43110
43111fi
43112
43113
43114if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43115 cat >>confdefs.h <<\_ACEOF
43116#define wxUSE_POSTSCRIPT 1
43117_ACEOF
43118
43119fi
43120
43121cat >>confdefs.h <<\_ACEOF
43122#define wxUSE_AFM_FOR_POSTSCRIPT 1
43123_ACEOF
43124
43125
43126cat >>confdefs.h <<\_ACEOF
43127#define wxUSE_NORMALIZED_PS_FONTS 1
43128_ACEOF
43129
43130
43131
43132if test "$wxUSE_CONSTRAINTS" = "yes"; then
43133 cat >>confdefs.h <<\_ACEOF
43134#define wxUSE_CONSTRAINTS 1
43135_ACEOF
43136
43137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43138fi
43139
8a7b1113
VZ
43140if test "$wxUSE_MDI" = "yes"; then
43141 cat >>confdefs.h <<\_ACEOF
43142#define wxUSE_MDI 1
43143_ACEOF
43144
43145
43146 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43147 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43148#define wxUSE_MDI_ARCHITECTURE 1
43149_ACEOF
43150
8a7b1113
VZ
43151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43152 fi
a848cd7e
SC
43153fi
43154
43155if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43156 cat >>confdefs.h <<\_ACEOF
43157#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43158_ACEOF
43159
43160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43161 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43163 fi
43164fi
43165
43166if test "$wxUSE_HELP" = "yes"; then
43167 cat >>confdefs.h <<\_ACEOF
43168#define wxUSE_HELP 1
43169_ACEOF
43170
43171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43172
43173 if test "$wxUSE_MSW" = 1; then
43174 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43175 cat >>confdefs.h <<\_ACEOF
43176#define wxUSE_MS_HTML_HELP 1
43177_ACEOF
43178
43179 fi
43180 fi
43181
43182 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43183 if test "$wxUSE_HTML" = "yes"; then
43184 cat >>confdefs.h <<\_ACEOF
43185#define wxUSE_WXHTML_HELP 1
43186_ACEOF
43187
43188 else
43189 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43190echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43191 wxUSE_WXHTML_HELP=no
43192 fi
43193 fi
43194fi
43195
43196if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43197 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43198 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43199echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43200 else
43201 cat >>confdefs.h <<\_ACEOF
43202#define wxUSE_PRINTING_ARCHITECTURE 1
43203_ACEOF
43204
43205 fi
43206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43207fi
43208
43209if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43210 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43211echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43212 { (exit 1); exit 1; }; }
43213fi
43214
43215
efdf6afe
VZ
43216if test "$wxUSE_METAFILE" = "yes"; then
43217 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43218 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43219echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43220 wxUSE_METAFILE=no
43221 fi
43222fi
43223
43224
a848cd7e
SC
43225if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43226 -o "$wxUSE_CLIPBOARD" = "yes" \
43227 -o "$wxUSE_OLE" = "yes" \
43228 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43229
43230for ac_header in ole2.h
43231do
43232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43233if eval "test \"\${$as_ac_Header+set}\" = set"; then
43234 echo "$as_me:$LINENO: checking for $ac_header" >&5
43235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43236if eval "test \"\${$as_ac_Header+set}\" = set"; then
43237 echo $ECHO_N "(cached) $ECHO_C" >&6
43238fi
43239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43241else
43242 # Is the header compilable?
43243echo "$as_me:$LINENO: checking $ac_header usability" >&5
43244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43245cat >conftest.$ac_ext <<_ACEOF
43246/* confdefs.h. */
43247_ACEOF
43248cat confdefs.h >>conftest.$ac_ext
43249cat >>conftest.$ac_ext <<_ACEOF
43250/* end confdefs.h. */
43251$ac_includes_default
43252#include <$ac_header>
43253_ACEOF
43254rm -f conftest.$ac_objext
43255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43256 (eval $ac_compile) 2>conftest.er1
a848cd7e 43257 ac_status=$?
ac1cb8d3
VS
43258 grep -v '^ *+' conftest.er1 >conftest.err
43259 rm -f conftest.er1
43260 cat conftest.err >&5
a848cd7e
SC
43261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262 (exit $ac_status); } &&
3565d135
RR
43263 { ac_try='test -z "$ac_c_werror_flag"
43264 || test ! -s conftest.err'
ac1cb8d3
VS
43265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43266 (eval $ac_try) 2>&5
43267 ac_status=$?
43268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269 (exit $ac_status); }; } &&
43270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43272 (eval $ac_try) 2>&5
43273 ac_status=$?
43274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275 (exit $ac_status); }; }; then
43276 ac_header_compiler=yes
43277else
43278 echo "$as_me: failed program was:" >&5
43279sed 's/^/| /' conftest.$ac_ext >&5
43280
43281ac_header_compiler=no
43282fi
ac1cb8d3 43283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43285echo "${ECHO_T}$ac_header_compiler" >&6
43286
43287# Is the header present?
43288echo "$as_me:$LINENO: checking $ac_header presence" >&5
43289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43290cat >conftest.$ac_ext <<_ACEOF
43291/* confdefs.h. */
43292_ACEOF
43293cat confdefs.h >>conftest.$ac_ext
43294cat >>conftest.$ac_ext <<_ACEOF
43295/* end confdefs.h. */
43296#include <$ac_header>
43297_ACEOF
43298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43300 ac_status=$?
43301 grep -v '^ *+' conftest.er1 >conftest.err
43302 rm -f conftest.er1
43303 cat conftest.err >&5
43304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305 (exit $ac_status); } >/dev/null; then
43306 if test -s conftest.err; then
43307 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 43308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
43309 else
43310 ac_cpp_err=
43311 fi
43312else
43313 ac_cpp_err=yes
43314fi
43315if test -z "$ac_cpp_err"; then
43316 ac_header_preproc=yes
43317else
43318 echo "$as_me: failed program was:" >&5
43319sed 's/^/| /' conftest.$ac_ext >&5
43320
43321 ac_header_preproc=no
43322fi
43323rm -f conftest.err conftest.$ac_ext
43324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43325echo "${ECHO_T}$ac_header_preproc" >&6
43326
43327# So? What about this header?
ac1cb8d3
VS
43328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43329 yes:no: )
a848cd7e
SC
43330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43334 ac_header_preproc=yes
a848cd7e 43335 ;;
ac1cb8d3 43336 no:yes:* )
a848cd7e
SC
43337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43349 (
43350 cat <<\_ASBOX
ac1cb8d3
VS
43351## ----------------------------------------- ##
43352## Report this to wx-dev@lists.wxwidgets.org ##
43353## ----------------------------------------- ##
a848cd7e
SC
43354_ASBOX
43355 ) |
43356 sed "s/^/$as_me: WARNING: /" >&2
43357 ;;
43358esac
43359echo "$as_me:$LINENO: checking for $ac_header" >&5
43360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43361if eval "test \"\${$as_ac_Header+set}\" = set"; then
43362 echo $ECHO_N "(cached) $ECHO_C" >&6
43363else
ac1cb8d3 43364 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43365fi
43366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43368
43369fi
43370if test `eval echo '${'$as_ac_Header'}'` = yes; then
43371 cat >>confdefs.h <<_ACEOF
43372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43373_ACEOF
43374
43375fi
43376
43377done
43378
43379
43380 if test "$ac_cv_header_ole2_h" = "yes" ; then
43381 if test "$GCC" = yes ; then
43382
43383
43384 ac_ext=cc
43385ac_cpp='$CXXCPP $CPPFLAGS'
43386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43389
43390
43391 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43392echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43393 cat >conftest.$ac_ext <<_ACEOF
43394/* confdefs.h. */
43395_ACEOF
43396cat confdefs.h >>conftest.$ac_ext
43397cat >>conftest.$ac_ext <<_ACEOF
43398/* end confdefs.h. */
43399#include <windows.h>
43400 #include <ole2.h>
43401int
43402main ()
43403{
43404
43405 ;
43406 return 0;
43407}
43408_ACEOF
43409rm -f conftest.$ac_objext
43410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43411 (eval $ac_compile) 2>conftest.er1
a848cd7e 43412 ac_status=$?
ac1cb8d3
VS
43413 grep -v '^ *+' conftest.er1 >conftest.err
43414 rm -f conftest.er1
43415 cat conftest.err >&5
a848cd7e
SC
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); } &&
3565d135
RR
43418 { ac_try='test -z "$ac_cxx_werror_flag"
43419 || test ! -s conftest.err'
ac1cb8d3
VS
43420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43421 (eval $ac_try) 2>&5
43422 ac_status=$?
43423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43424 (exit $ac_status); }; } &&
43425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43427 (eval $ac_try) 2>&5
43428 ac_status=$?
43429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430 (exit $ac_status); }; }; then
43431 echo "$as_me:$LINENO: result: no" >&5
43432echo "${ECHO_T}no" >&6
43433else
43434 echo "$as_me: failed program was:" >&5
43435sed 's/^/| /' conftest.$ac_ext >&5
43436
43437echo "$as_me:$LINENO: result: yes" >&5
43438echo "${ECHO_T}yes" >&6
5ff751d6 43439 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43440fi
ac1cb8d3 43441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43442 ac_ext=c
43443ac_cpp='$CPP $CPPFLAGS'
43444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43446ac_compiler_gnu=$ac_cv_c_compiler_gnu
43447
a848cd7e
SC
43448 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43449 if test "$wxUSE_OLE" = "yes" ; then
43450 cat >>confdefs.h <<\_ACEOF
43451#define wxUSE_OLE 1
43452_ACEOF
43453
0b78747f 43454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43455 fi
43456 fi
43457
43458 if test "$wxUSE_DATAOBJ" = "yes" ; then
43459 cat >>confdefs.h <<\_ACEOF
43460#define wxUSE_DATAOBJ 1
43461_ACEOF
43462
43463 fi
43464 else
43465 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43466echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43467
43468 wxUSE_CLIPBOARD=no
43469 wxUSE_DRAG_AND_DROP=no
43470 wxUSE_DATAOBJ=no
43471 wxUSE_OLE=no
43472 fi
43473
43474 if test "$wxUSE_METAFILE" = "yes"; then
43475 cat >>confdefs.h <<\_ACEOF
43476#define wxUSE_METAFILE 1
43477_ACEOF
43478
43479
43480 cat >>confdefs.h <<\_ACEOF
43481#define wxUSE_ENH_METAFILE 1
43482_ACEOF
43483
43484 fi
43485fi
43486
43487if test "$wxUSE_IPC" = "yes"; then
0b78747f 43488 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43489 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43490echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43491 wxUSE_IPC=no
a848cd7e
SC
43492 fi
43493
0b78747f
MW
43494 if test "$wxUSE_IPC" = "yes"; then
43495 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43496#define wxUSE_IPC 1
43497_ACEOF
43498
0b78747f
MW
43499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43500 fi
a848cd7e
SC
43501fi
43502
eb730a0c 43503if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43504 if test "$wxUSE_MGL" = 1; then
43505 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43506echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43507 wxUSE_DATAOBJ=no
43508 else
43509 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43510#define wxUSE_DATAOBJ 1
43511_ACEOF
43512
2113bc77 43513 fi
eb730a0c
JS
43514else
43515 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43516echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43517 wxUSE_CLIPBOARD=no
43518 wxUSE_DRAG_AND_DROP=no
43519fi
43520
a848cd7e
SC
43521if test "$wxUSE_CLIPBOARD" = "yes"; then
43522 if test "$wxUSE_MGL" = 1; then
43523 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43524echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43525 wxUSE_CLIPBOARD=no
43526 fi
43527
43528 if test "$wxUSE_CLIPBOARD" = "yes"; then
43529 cat >>confdefs.h <<\_ACEOF
43530#define wxUSE_CLIPBOARD 1
43531_ACEOF
43532
a848cd7e
SC
43533 fi
43534fi
43535
43536if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43537 if test "$wxUSE_GTK" = 1; then
43538 if test "$WXGTK12" != 1; then
43539 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43540echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43541 wxUSE_DRAG_AND_DROP=no
43542 fi
43543 fi
43544
43545 if test "$wxUSE_MOTIF" = 1; then
43546 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43547echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43548 wxUSE_DRAG_AND_DROP=no
43549 fi
43550
43551 if test "$wxUSE_X11" = 1; then
43552 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43553echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43554 wxUSE_DRAG_AND_DROP=no
43555 fi
43556
43557 if test "$wxUSE_MGL" = 1; then
43558 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43559echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43560 wxUSE_DRAG_AND_DROP=no
43561 fi
43562
43563 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43564 cat >>confdefs.h <<\_ACEOF
43565#define wxUSE_DRAG_AND_DROP 1
43566_ACEOF
43567
43568 fi
43569
43570fi
43571
43572if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43574fi
43575
43576if test "$wxUSE_SPLINES" = "yes" ; then
43577 cat >>confdefs.h <<\_ACEOF
43578#define wxUSE_SPLINES 1
43579_ACEOF
43580
43581fi
43582
fbe2ca43
SN
43583if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43584 cat >>confdefs.h <<\_ACEOF
43585#define wxUSE_MOUSEWHEEL 1
43586_ACEOF
43587
43588fi
43589
a848cd7e
SC
43590
43591USES_CONTROLS=0
43592if test "$wxUSE_CONTROLS" = "yes"; then
43593 USES_CONTROLS=1
43594fi
43595
43596if test "$wxUSE_ACCEL" = "yes"; then
43597 cat >>confdefs.h <<\_ACEOF
43598#define wxUSE_ACCEL 1
43599_ACEOF
43600
43601 USES_CONTROLS=1
43602fi
43603
43604if test "$wxUSE_BUTTON" = "yes"; then
43605 cat >>confdefs.h <<\_ACEOF
43606#define wxUSE_BUTTON 1
43607_ACEOF
43608
43609 USES_CONTROLS=1
43610fi
43611
43612if test "$wxUSE_BMPBUTTON" = "yes"; then
43613 cat >>confdefs.h <<\_ACEOF
43614#define wxUSE_BMPBUTTON 1
43615_ACEOF
43616
43617 USES_CONTROLS=1
43618fi
43619
43620if test "$wxUSE_CALCTRL" = "yes"; then
43621 cat >>confdefs.h <<\_ACEOF
43622#define wxUSE_CALENDARCTRL 1
43623_ACEOF
43624
43625 USES_CONTROLS=1
43626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43627fi
43628
43629if test "$wxUSE_CARET" = "yes"; then
43630 cat >>confdefs.h <<\_ACEOF
43631#define wxUSE_CARET 1
43632_ACEOF
43633
43634 USES_CONTROLS=1
43635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43636fi
43637
43638if test "$wxUSE_COMBOBOX" = "yes"; then
43639 cat >>confdefs.h <<\_ACEOF
43640#define wxUSE_COMBOBOX 1
43641_ACEOF
43642
43643 USES_CONTROLS=1
43644fi
43645
43646if test "$wxUSE_CHOICE" = "yes"; then
43647 cat >>confdefs.h <<\_ACEOF
43648#define wxUSE_CHOICE 1
43649_ACEOF
43650
43651 USES_CONTROLS=1
43652fi
43653
92bbdbcd
WS
43654if test "$wxUSE_CHOICEBOOK" = "yes"; then
43655 cat >>confdefs.h <<\_ACEOF
43656#define wxUSE_CHOICEBOOK 1
43657_ACEOF
43658
43659 USES_CONTROLS=1
43660fi
43661
a848cd7e
SC
43662if test "$wxUSE_CHECKBOX" = "yes"; then
43663 cat >>confdefs.h <<\_ACEOF
43664#define wxUSE_CHECKBOX 1
43665_ACEOF
43666
43667 USES_CONTROLS=1
43668fi
43669
43670if test "$wxUSE_CHECKLST" = "yes"; then
43671 cat >>confdefs.h <<\_ACEOF
43672#define wxUSE_CHECKLISTBOX 1
43673_ACEOF
43674
43675 USES_CONTROLS=1
43676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43677fi
43678
da98e9be
VZ
43679if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43680 cat >>confdefs.h <<\_ACEOF
43681#define wxUSE_DATEPICKCTRL 1
43682_ACEOF
43683
43684 USES_CONTROLS=1
43685fi
43686
a848cd7e
SC
43687if test "$wxUSE_DISPLAY" = "yes"; then
43688 cat >>confdefs.h <<\_ACEOF
43689#define wxUSE_DISPLAY 1
43690_ACEOF
43691
0b78747f 43692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43693fi
43694
43695if test "$wxUSE_GAUGE" = "yes"; then
43696 cat >>confdefs.h <<\_ACEOF
43697#define wxUSE_GAUGE 1
43698_ACEOF
43699
43700 USES_CONTROLS=1
43701fi
43702
43703if test "$wxUSE_GRID" = "yes"; then
43704 cat >>confdefs.h <<\_ACEOF
43705#define wxUSE_GRID 1
43706_ACEOF
43707
43708 USES_CONTROLS=1
43709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43710fi
43711
20e34ecc
RR
43712if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43713 cat >>confdefs.h <<\_ACEOF
43714#define wxUSE_DATAVIEWCTRL 1
43715_ACEOF
43716
43717 USES_CONTROLS=1
43718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43719fi
43720
a848cd7e
SC
43721if test "$wxUSE_IMAGLIST" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define wxUSE_IMAGLIST 1
43724_ACEOF
43725
43726fi
43727
43728if test "$wxUSE_LISTBOOK" = "yes"; then
43729 cat >>confdefs.h <<\_ACEOF
43730#define wxUSE_LISTBOOK 1
43731_ACEOF
43732
43733 USES_CONTROLS=1
43734fi
43735
43736if test "$wxUSE_LISTBOX" = "yes"; then
43737 cat >>confdefs.h <<\_ACEOF
43738#define wxUSE_LISTBOX 1
43739_ACEOF
43740
43741 USES_CONTROLS=1
0b78747f 43742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43743fi
43744
43745if test "$wxUSE_LISTCTRL" = "yes"; then
43746 if test "$wxUSE_IMAGLIST" = "yes"; then
43747 cat >>confdefs.h <<\_ACEOF
43748#define wxUSE_LISTCTRL 1
43749_ACEOF
43750
43751 USES_CONTROLS=1
43752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43753 else
43754 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43755echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43756 fi
43757fi
43758
43759if test "$wxUSE_NOTEBOOK" = "yes"; then
43760 cat >>confdefs.h <<\_ACEOF
43761#define wxUSE_NOTEBOOK 1
43762_ACEOF
43763
43764 USES_CONTROLS=1
43765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43766fi
43767
43768
43769if test "$wxUSE_RADIOBOX" = "yes"; then
43770 cat >>confdefs.h <<\_ACEOF
43771#define wxUSE_RADIOBOX 1
43772_ACEOF
43773
43774 USES_CONTROLS=1
43775fi
43776
43777if test "$wxUSE_RADIOBTN" = "yes"; then
43778 cat >>confdefs.h <<\_ACEOF
43779#define wxUSE_RADIOBTN 1
43780_ACEOF
43781
43782 USES_CONTROLS=1
43783fi
43784
43785if test "$wxUSE_SASH" = "yes"; then
43786 cat >>confdefs.h <<\_ACEOF
43787#define wxUSE_SASH 1
43788_ACEOF
43789
43790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43791fi
43792
43793if test "$wxUSE_SCROLLBAR" = "yes"; then
43794 cat >>confdefs.h <<\_ACEOF
43795#define wxUSE_SCROLLBAR 1
43796_ACEOF
43797
43798 USES_CONTROLS=1
43799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43800fi
43801
43802if test "$wxUSE_SLIDER" = "yes"; then
43803 cat >>confdefs.h <<\_ACEOF
43804#define wxUSE_SLIDER 1
43805_ACEOF
43806
43807 USES_CONTROLS=1
43808fi
43809
43810if test "$wxUSE_SPINBTN" = "yes"; then
43811 cat >>confdefs.h <<\_ACEOF
43812#define wxUSE_SPINBTN 1
43813_ACEOF
43814
43815 USES_CONTROLS=1
43816fi
43817
43818if test "$wxUSE_SPINCTRL" = "yes"; then
43819 cat >>confdefs.h <<\_ACEOF
43820#define wxUSE_SPINCTRL 1
43821_ACEOF
43822
43823 USES_CONTROLS=1
43824fi
43825
43826if test "$wxUSE_SPLITTER" = "yes"; then
43827 cat >>confdefs.h <<\_ACEOF
43828#define wxUSE_SPLITTER 1
43829_ACEOF
43830
43831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43832fi
43833
43834if test "$wxUSE_STATBMP" = "yes"; then
43835 cat >>confdefs.h <<\_ACEOF
43836#define wxUSE_STATBMP 1
43837_ACEOF
43838
43839 USES_CONTROLS=1
43840fi
43841
43842if test "$wxUSE_STATBOX" = "yes"; then
43843 cat >>confdefs.h <<\_ACEOF
43844#define wxUSE_STATBOX 1
43845_ACEOF
43846
43847 USES_CONTROLS=1
43848fi
43849
43850if test "$wxUSE_STATTEXT" = "yes"; then
43851 cat >>confdefs.h <<\_ACEOF
43852#define wxUSE_STATTEXT 1
43853_ACEOF
43854
43855 USES_CONTROLS=1
43856fi
43857
43858if test "$wxUSE_STATLINE" = "yes"; then
43859 cat >>confdefs.h <<\_ACEOF
43860#define wxUSE_STATLINE 1
43861_ACEOF
43862
43863 USES_CONTROLS=1
43864fi
43865
43866if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43867 cat >>confdefs.h <<\_ACEOF
43868#define wxUSE_NATIVE_STATUSBAR 1
43869_ACEOF
43870
a848cd7e
SC
43871 cat >>confdefs.h <<\_ACEOF
43872#define wxUSE_STATUSBAR 1
43873_ACEOF
43874
43875 USES_CONTROLS=1
43876
43877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43878fi
43879
43880if test "$wxUSE_TABDIALOG" = "yes"; then
43881 cat >>confdefs.h <<\_ACEOF
43882#define wxUSE_TAB_DIALOG 1
43883_ACEOF
43884
a848cd7e
SC
43885fi
43886
43887if test "$wxUSE_TEXTCTRL" = "yes"; then
43888 cat >>confdefs.h <<\_ACEOF
43889#define wxUSE_TEXTCTRL 1
43890_ACEOF
43891
43892 USES_CONTROLS=1
43893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43894fi
43895
43896if test "$wxUSE_TOGGLEBTN" = "yes"; then
43897 if test "$wxUSE_COCOA" = 1 ; then
43898 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43899echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43900 wxUSE_TOGGLEBTN=no
43901 fi
43902 if test "$wxUSE_UNIVERSAL" = "yes"; then
43903 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43904echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43905 wxUSE_TOGGLEBTN=no
43906 fi
43907
43908 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43909 cat >>confdefs.h <<\_ACEOF
43910#define wxUSE_TOGGLEBTN 1
43911_ACEOF
43912
43913 USES_CONTROLS=1
43914 fi
43915fi
43916
43917if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43918 cat >>confdefs.h <<\_ACEOF
43919#define wxUSE_TOOLBAR_SIMPLE 1
43920_ACEOF
43921
43922 wxUSE_TOOLBAR="yes"
43923 USES_CONTROLS=1
43924fi
43925
43926if test "$wxUSE_TOOLBAR" = "yes"; then
43927 cat >>confdefs.h <<\_ACEOF
43928#define wxUSE_TOOLBAR 1
43929_ACEOF
43930
43931 USES_CONTROLS=1
43932
43933 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43934 wxUSE_TOOLBAR_NATIVE="yes"
43935 fi
43936
43937 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43938 cat >>confdefs.h <<\_ACEOF
43939#define wxUSE_TOOLBAR_NATIVE 1
43940_ACEOF
43941
43942 USES_CONTROLS=1
43943 fi
43944
43945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43946fi
43947
43948if test "$wxUSE_TOOLTIPS" = "yes"; then
43949 if test "$wxUSE_MOTIF" = 1; then
43950 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43951echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43952 else
43953 if test "$wxUSE_UNIVERSAL" = "yes"; then
43954 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43955echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43956 else
43957 cat >>confdefs.h <<\_ACEOF
43958#define wxUSE_TOOLTIPS 1
43959_ACEOF
43960
43961 fi
43962 fi
43963fi
43964
0093c2fc
VZ
43965if test "$wxUSE_TREEBOOK" = "yes"; then
43966 cat >>confdefs.h <<\_ACEOF
43967#define wxUSE_TREEBOOK 1
43968_ACEOF
43969
43970 USES_CONTROLS=1
43971fi
43972
a848cd7e
SC
43973if test "$wxUSE_TREECTRL" = "yes"; then
43974 if test "$wxUSE_IMAGLIST" = "yes"; then
43975 cat >>confdefs.h <<\_ACEOF
43976#define wxUSE_TREECTRL 1
43977_ACEOF
43978
43979 USES_CONTROLS=1
43980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43981 else
43982 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43983echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43984 fi
43985fi
43986
43987if test "$wxUSE_POPUPWIN" = "yes"; then
43988 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43989 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43990echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43991 else
43992 if test "$wxUSE_PM" = 1; then
43993 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43994echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43995 else
43996 cat >>confdefs.h <<\_ACEOF
43997#define wxUSE_POPUPWIN 1
43998_ACEOF
43999
0b78747f 44000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44001
44002 USES_CONTROLS=1
44003 fi
44004 fi
44005fi
44006
0dcd06dd 44007if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44008 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44009 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44010echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44011 else
44012 cat >>confdefs.h <<\_ACEOF
44013#define wxUSE_DIALUP_MANAGER 1
44014_ACEOF
44015
44016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44017 fi
44018fi
44019
a848cd7e
SC
44020if test "$wxUSE_TIPWINDOW" = "yes"; then
44021 if test "$wxUSE_PM" = 1; then
44022 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44023echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44024 else
44025 cat >>confdefs.h <<\_ACEOF
44026#define wxUSE_TIPWINDOW 1
44027_ACEOF
44028
44029 fi
44030fi
44031
44032if test "$USES_CONTROLS" = 1; then
44033 cat >>confdefs.h <<\_ACEOF
44034#define wxUSE_CONTROLS 1
44035_ACEOF
44036
44037fi
44038
44039
44040if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44041 cat >>confdefs.h <<\_ACEOF
44042#define wxUSE_ACCESSIBILITY 1
44043_ACEOF
44044
44045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44046fi
44047
38b4a946
VZ
44048if test "$wxUSE_DC_CACHEING" = "yes"; then
44049 cat >>confdefs.h <<\_ACEOF
44050#define wxUSE_DC_CACHEING 1
44051_ACEOF
44052
44053fi
44054
a848cd7e
SC
44055if test "$wxUSE_DRAGIMAGE" = "yes"; then
44056 cat >>confdefs.h <<\_ACEOF
44057#define wxUSE_DRAGIMAGE 1
44058_ACEOF
44059
44060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44061fi
44062
44063if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44064 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44065 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44066echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44067 else
44068 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44069#define wxUSE_EXCEPTIONS 1
44070_ACEOF
44071
07bea8f0
VS
44072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44073 fi
a848cd7e
SC
44074fi
44075
44076USE_HTML=0
44077if test "$wxUSE_HTML" = "yes"; then
44078 cat >>confdefs.h <<\_ACEOF
44079#define wxUSE_HTML 1
44080_ACEOF
44081
44082 USE_HTML=1
44083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44084 if test "$wxUSE_MAC" = 1; then
44085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44086 fi
a848cd7e 44087fi
646b6ec1 44088if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44089 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44090 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44091 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44092 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44093echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44094if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44095 echo $ECHO_N "(cached) $ECHO_C" >&6
44096else
44097 cat >conftest.$ac_ext <<_ACEOF
44098/* confdefs.h. */
44099_ACEOF
44100cat confdefs.h >>conftest.$ac_ext
44101cat >>conftest.$ac_ext <<_ACEOF
44102/* end confdefs.h. */
44103#include <Carbon/Carbon.h>
44104
44105#include <WebKit/HIWebView.h>
44106_ACEOF
44107rm -f conftest.$ac_objext
44108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44109 (eval $ac_compile) 2>conftest.er1
44110 ac_status=$?
44111 grep -v '^ *+' conftest.er1 >conftest.err
44112 rm -f conftest.er1
44113 cat conftest.err >&5
44114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115 (exit $ac_status); } &&
3565d135
RR
44116 { ac_try='test -z "$ac_c_werror_flag"
44117 || test ! -s conftest.err'
07bea8f0
VS
44118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44119 (eval $ac_try) 2>&5
44120 ac_status=$?
44121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122 (exit $ac_status); }; } &&
44123 { ac_try='test -s conftest.$ac_objext'
44124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44125 (eval $ac_try) 2>&5
44126 ac_status=$?
44127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128 (exit $ac_status); }; }; then
44129 ac_cv_header_WebKit_HIWebView_h=yes
44130else
44131 echo "$as_me: failed program was:" >&5
44132sed 's/^/| /' conftest.$ac_ext >&5
44133
44134ac_cv_header_WebKit_HIWebView_h=no
44135fi
44136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44137fi
44138echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44139echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44140if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44141
44142 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44143#define wxUSE_WEBKIT 1
44144_ACEOF
44145
07bea8f0
VS
44146 WEBKIT_LINK="-framework WebKit"
44147
44148else
44149
44150 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44151echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44152 wxUSE_WEBKIT=no
44153
646b6ec1
VS
44154fi
44155
07bea8f0
VS
44156
44157 CPPFLAGS="$old_CPPFLAGS"
44158 elif test "$wxUSE_COCOA" = 1; then
44159 cat >>confdefs.h <<\_ACEOF
44160#define wxUSE_WEBKIT 1
44161_ACEOF
44162
44163 else
44164 wxUSE_WEBKIT=no
44165 fi
44166fi
44167
9a8f0513
VS
44168USE_XRC=0
44169if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44170 if test "$wxUSE_XML" != "yes"; then
44171 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44172echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44173 wxUSE_XRC=no
44174 else
44175 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44176#define wxUSE_XRC 1
44177_ACEOF
44178
d2ebf0b7
VS
44179 USE_XRC=1
44180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44181 fi
9a8f0513 44182fi
07bea8f0 44183
a848cd7e
SC
44184if test "$wxUSE_MENUS" = "yes"; then
44185 cat >>confdefs.h <<\_ACEOF
44186#define wxUSE_MENUS 1
44187_ACEOF
44188
44189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44190fi
44191
44192if test "$wxUSE_METAFILE" = "yes"; then
44193 cat >>confdefs.h <<\_ACEOF
44194#define wxUSE_METAFILE 1
44195_ACEOF
44196
44197fi
44198
44199if test "$wxUSE_MIMETYPE" = "yes"; then
44200 cat >>confdefs.h <<\_ACEOF
44201#define wxUSE_MIMETYPE 1
44202_ACEOF
44203
44204fi
44205
44206if test "$wxUSE_MINIFRAME" = "yes"; then
44207 cat >>confdefs.h <<\_ACEOF
44208#define wxUSE_MINIFRAME 1
44209_ACEOF
44210
44211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44212fi
44213
44214if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44215 cat >>confdefs.h <<\_ACEOF
44216#define wxUSE_SYSTEM_OPTIONS 1
44217_ACEOF
44218
44219 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44220 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44222 fi
44223fi
44224
44225
44226if test "$wxUSE_VALIDATORS" = "yes"; then
44227 cat >>confdefs.h <<\_ACEOF
44228#define wxUSE_VALIDATORS 1
44229_ACEOF
44230
44231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44232fi
44233
44234if test "$wxUSE_PALETTE" = "yes" ; then
44235 cat >>confdefs.h <<\_ACEOF
44236#define wxUSE_PALETTE 1
44237_ACEOF
44238
44239fi
44240
44241if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44242 LIBS=" -lunicows $LIBS"
44243fi
44244
91dea314
MW
44245USE_RICHTEXT=0
44246if test "$wxUSE_RICHTEXT" = "yes"; then
44247 cat >>confdefs.h <<\_ACEOF
44248#define wxUSE_RICHTEXT 1
44249_ACEOF
44250
44251 USE_RICHTEXT=1
44252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44253fi
44254
a848cd7e
SC
44255
44256if test "$wxUSE_IMAGE" = "yes" ; then
44257 cat >>confdefs.h <<\_ACEOF
44258#define wxUSE_IMAGE 1
44259_ACEOF
44260
44261
44262 if test "$wxUSE_GIF" = "yes" ; then
44263 cat >>confdefs.h <<\_ACEOF
44264#define wxUSE_GIF 1
44265_ACEOF
44266
44267 fi
44268
44269 if test "$wxUSE_PCX" = "yes" ; then
44270 cat >>confdefs.h <<\_ACEOF
44271#define wxUSE_PCX 1
44272_ACEOF
44273
44274 fi
44275
44276 if test "$wxUSE_IFF" = "yes" ; then
44277 cat >>confdefs.h <<\_ACEOF
44278#define wxUSE_IFF 1
44279_ACEOF
44280
44281 fi
44282
44283 if test "$wxUSE_PNM" = "yes" ; then
44284 cat >>confdefs.h <<\_ACEOF
44285#define wxUSE_PNM 1
44286_ACEOF
44287
44288 fi
44289
44290 if test "$wxUSE_XPM" = "yes" ; then
44291 cat >>confdefs.h <<\_ACEOF
44292#define wxUSE_XPM 1
44293_ACEOF
44294
44295 fi
44296
44297 if test "$wxUSE_ICO_CUR" = "yes" ; then
44298 cat >>confdefs.h <<\_ACEOF
44299#define wxUSE_ICO_CUR 1
44300_ACEOF
44301
44302 fi
44303fi
44304
44305
44306if test "$wxUSE_CHOICEDLG" = "yes"; then
44307 cat >>confdefs.h <<\_ACEOF
44308#define wxUSE_CHOICEDLG 1
44309_ACEOF
44310
44311fi
44312
44313if test "$wxUSE_COLOURDLG" = "yes"; then
44314 cat >>confdefs.h <<\_ACEOF
44315#define wxUSE_COLOURDLG 1
44316_ACEOF
44317
44318fi
44319
44320if test "$wxUSE_FILEDLG" = "yes"; then
44321 cat >>confdefs.h <<\_ACEOF
44322#define wxUSE_FILEDLG 1
44323_ACEOF
44324
44325fi
44326
44327if test "$wxUSE_FINDREPLDLG" = "yes"; then
44328 cat >>confdefs.h <<\_ACEOF
44329#define wxUSE_FINDREPLDLG 1
44330_ACEOF
44331
44332fi
44333
44334if test "$wxUSE_FONTDLG" = "yes"; then
44335 cat >>confdefs.h <<\_ACEOF
44336#define wxUSE_FONTDLG 1
44337_ACEOF
44338
44339fi
44340
44341if test "$wxUSE_DIRDLG" = "yes"; then
44342 if test "$wxUSE_TREECTRL" != "yes"; then
44343 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44344echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44345 else
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_DIRDLG 1
44348_ACEOF
44349
44350 fi
44351fi
44352
44353if test "$wxUSE_MSGDLG" = "yes"; then
44354 cat >>confdefs.h <<\_ACEOF
44355#define wxUSE_MSGDLG 1
44356_ACEOF
44357
44358fi
44359
44360if test "$wxUSE_NUMBERDLG" = "yes"; then
44361 cat >>confdefs.h <<\_ACEOF
44362#define wxUSE_NUMBERDLG 1
44363_ACEOF
44364
44365fi
44366
44367if test "$wxUSE_PROGRESSDLG" = "yes"; then
44368 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44369 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44370echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44371 else
44372 cat >>confdefs.h <<\_ACEOF
44373#define wxUSE_PROGRESSDLG 1
44374_ACEOF
44375
44376 fi
44377fi
44378
44379if test "$wxUSE_SPLASH" = "yes"; then
44380 cat >>confdefs.h <<\_ACEOF
44381#define wxUSE_SPLASH 1
44382_ACEOF
44383
2057db16 44384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44385fi
44386
44387if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44388 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44389 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44390echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44391 else
44392 cat >>confdefs.h <<\_ACEOF
44393#define wxUSE_STARTUP_TIPS 1
44394_ACEOF
44395
44396 fi
44397fi
44398
44399if test "$wxUSE_TEXTDLG" = "yes"; then
44400 cat >>confdefs.h <<\_ACEOF
44401#define wxUSE_TEXTDLG 1
44402_ACEOF
44403
44404fi
44405
44406if test "$wxUSE_WIZARDDLG" = "yes"; then
44407 cat >>confdefs.h <<\_ACEOF
44408#define wxUSE_WIZARDDLG 1
44409_ACEOF
44410
44411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44412fi
44413
44414
ce756cb0 44415if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44416 if test "$wxUSE_GTK" = 1; then
44417 wxUSE_GSTREAMER="yes"
44418
ce756cb0 44419
dae87f93 44420 succeeded=no
ce756cb0 44421
dae87f93
RN
44422 if test -z "$PKG_CONFIG"; then
44423 # Extract the first word of "pkg-config", so it can be a program name with args.
44424set dummy pkg-config; ac_word=$2
44425echo "$as_me:$LINENO: checking for $ac_word" >&5
44426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44427if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44428 echo $ECHO_N "(cached) $ECHO_C" >&6
44429else
44430 case $PKG_CONFIG in
44431 [\\/]* | ?:[\\/]*)
44432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44433 ;;
44434 *)
44435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44436for as_dir in $PATH
44437do
44438 IFS=$as_save_IFS
44439 test -z "$as_dir" && as_dir=.
44440 for ac_exec_ext in '' $ac_executable_extensions; do
44441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44444 break 2
44445 fi
44446done
44447done
44448
44449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44450 ;;
44451esac
44452fi
44453PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44454
44455if test -n "$PKG_CONFIG"; then
44456 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44457echo "${ECHO_T}$PKG_CONFIG" >&6
44458else
44459 echo "$as_me:$LINENO: result: no" >&5
44460echo "${ECHO_T}no" >&6
44461fi
44462
44463 fi
44464
44465 if test "$PKG_CONFIG" = "no" ; then
44466 echo "*** The pkg-config script could not be found. Make sure it is"
44467 echo "*** in your path, or set the PKG_CONFIG environment variable"
44468 echo "*** to the full path to pkg-config."
44469 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44470 else
44471 PKG_CONFIG_MIN_VERSION=0.9.0
44472 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44473 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
44474echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
44475
44476 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
44477 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44478echo "${ECHO_T}yes" >&6
dae87f93 44479 succeeded=yes
ce756cb0 44480
dae87f93
RN
44481 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
44482echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
44483 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
44484 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
44485echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
44486
44487 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
44488echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
44489 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
44490 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
44491echo "${ECHO_T}$GSTREAMER_LIBS" >&6
44492 else
44493 GSTREAMER_CFLAGS=""
44494 GSTREAMER_LIBS=""
44495 ## If we have a custom action on failure, don't print errors, but
44496 ## do set a variable so people can do so.
44497 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 44498
dae87f93
RN
44499 fi
44500
44501
44502
44503 else
44504 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44505 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44506 fi
44507 fi
44508
44509 if test $succeeded = yes; then
44510
c92ad099 44511 CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS"
dae87f93 44512 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 44513
ce756cb0 44514 else
dae87f93
RN
44515
44516 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
44517echo "$as_me: WARNING: GStreamer installation not found" >&2;}
44518 wxUSE_GSTREAMER="no"
44519
44520 fi
44521
44522
44523
44524
44525
44526 if test "x$GST_INSPECT" == "x"; then
44527 # Extract the first word of "gst-inspect", so it can be a program name with args.
44528set dummy gst-inspect; ac_word=$2
44529echo "$as_me:$LINENO: checking for $ac_word" >&5
44530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44531if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
44532 echo $ECHO_N "(cached) $ECHO_C" >&6
44533else
44534 if test -n "$GST_INSPECT"; then
44535 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
44536else
44537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44538for as_dir in $PATH
44539do
44540 IFS=$as_save_IFS
44541 test -z "$as_dir" && as_dir=.
44542 for ac_exec_ext in '' $ac_executable_extensions; do
44543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44544 ac_cv_prog_GST_INSPECT="gst-inspect"
44545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44546 break 2
ce756cb0 44547 fi
dae87f93
RN
44548done
44549done
44550
44551fi
44552fi
44553GST_INSPECT=$ac_cv_prog_GST_INSPECT
44554if test -n "$GST_INSPECT"; then
44555 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
44556echo "${ECHO_T}$GST_INSPECT" >&6
44557else
44558 echo "$as_me:$LINENO: result: no" >&5
44559echo "${ECHO_T}no" >&6
44560fi
44561
44562 fi
44563
44564 if test "x$GST_INSPECT" != "x"; then
44565 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
44566echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
44567 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
44568 echo "$as_me:$LINENO: result: found." >&5
44569echo "${ECHO_T}found." >&6
ce756cb0 44570
ce756cb0 44571 else
dae87f93
RN
44572 echo "$as_me:$LINENO: result: not found." >&5
44573echo "${ECHO_T}not found." >&6
44574
44575 wxUSE_GSTREAMER="no"
44576 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
44577echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
44578
44579 fi
44580 fi
44581
44582
44583 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
44584echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
44585if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
44586 echo $ECHO_N "(cached) $ECHO_C" >&6
44587else
44588 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
44589/* confdefs.h. */
44590_ACEOF
44591cat confdefs.h >>conftest.$ac_ext
44592cat >>conftest.$ac_ext <<_ACEOF
44593/* end confdefs.h. */
dae87f93 44594#include <gst/gst.h>
ce756cb0 44595
dae87f93 44596#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
44597_ACEOF
44598rm -f conftest.$ac_objext
44599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44600 (eval $ac_compile) 2>conftest.er1
44601 ac_status=$?
44602 grep -v '^ *+' conftest.er1 >conftest.err
44603 rm -f conftest.er1
44604 cat conftest.err >&5
44605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606 (exit $ac_status); } &&
3565d135
RR
44607 { ac_try='test -z "$ac_c_werror_flag"
44608 || test ! -s conftest.err'
ce756cb0
RN
44609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44610 (eval $ac_try) 2>&5
44611 ac_status=$?
44612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44613 (exit $ac_status); }; } &&
44614 { ac_try='test -s conftest.$ac_objext'
44615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44616 (eval $ac_try) 2>&5
44617 ac_status=$?
44618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44619 (exit $ac_status); }; }; then
dae87f93 44620 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
44621else
44622 echo "$as_me: failed program was:" >&5
44623sed 's/^/| /' conftest.$ac_ext >&5
44624
dae87f93 44625ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
44626fi
44627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
44628fi
44629echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
44630echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
44631if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
44632 :
44633else
ce756cb0 44634
dae87f93
RN
44635 wxUSE_GSTREAMER="no"
44636 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
44637echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 44638
dae87f93 44639fi
ce756cb0 44640
dae87f93
RN
44641
44642
44643 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
44644echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
44645
0ad5d837
VZ
44646 ac_find_libraries=
44647 for ac_dir in $SEARCH_LIB;
ce756cb0 44648 do
3eca31dc 44649 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
44650 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
44651 ac_find_libraries=$ac_dir
44652 break 2
44653 fi
44654 done
44655 done
44656
ce756cb0 44657
dae87f93
RN
44658 if test "$ac_find_libraries" = "" ; then
44659 echo "$as_me:$LINENO: result: no" >&5
44660echo "${ECHO_T}no" >&6
44661 wxUSE_GSTREAMER="no"
44662 else
44663 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44664echo "${ECHO_T}yes" >&6
dae87f93 44665 fi
ce756cb0 44666
dae87f93
RN
44667 if test "$wxUSE_GSTREAMER" = "yes"; then
44668 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44669#define wxUSE_GSTREAMER 1
44670_ACEOF
44671
dae87f93
RN
44672 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44673echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44674 fi
44675 fi
44676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44677 cat >>confdefs.h <<\_ACEOF
44678#define wxUSE_MEDIACTRL 1
44679_ACEOF
44680
44681fi
44682
44683
a848cd7e
SC
44684if test "$cross_compiling" = "yes"; then
44685 OSINFO="\"$host\""
44686else
44687 OSINFO=`uname -s -r -m`
44688 OSINFO="\"$OSINFO\""
44689fi
44690
44691cat >>confdefs.h <<_ACEOF
44692#define WXWIN_OS_DESCRIPTION $OSINFO
44693_ACEOF
44694
44695
44696
44697if test "x$prefix" != "xNONE"; then
44698 wxPREFIX=$prefix
44699else
44700 wxPREFIX=$ac_default_prefix
44701fi
44702
44703cat >>confdefs.h <<_ACEOF
44704#define wxINSTALL_PREFIX "$wxPREFIX"
44705_ACEOF
44706
44707
a848cd7e
SC
44708
44709
44710CORE_BASE_LIBS="net base"
44711CORE_GUI_LIBS="adv core"
44712
44713if test "$wxUSE_XML" = "yes" ; then
44714 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44715fi
44716if test "$wxUSE_ODBC" != "no" ; then
44717 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44718 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44719fi
44720if test "$wxUSE_HTML" = "yes" ; then
44721 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44722fi
61639efb
VZ
44723if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44724 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44725fi
9a8f0513
VS
44726if test "$wxUSE_XRC" = "yes" ; then
44727 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44728fi
a848cd7e
SC
44729
44730if test "$wxUSE_GUI" != "yes"; then
44731 CORE_GUI_LIBS=""
44732fi
44733
44734
44735
44736
44737
44738
44739
44740
44741if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44742 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44743 if test "$USE_DARWIN" = 1; then
44744 LDFLAGS="$LDFLAGS -framework QuickTime"
44745 else
44746 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44747 fi
07bea8f0 44748 fi
5dcf30a0 44749 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44750 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44751 else
44752 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44753 fi
a848cd7e
SC
44754fi
44755if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44756 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44757 if test "$wxUSE_MEDIACTRL" = "yes"; then
44758 LDFLAGS="$LDFLAGS -framework QuickTime"
44759 fi
a848cd7e 44760fi
19b27e78
MW
44761if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44762 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44763fi
a848cd7e
SC
44764
44765
44766LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44767
44768have_cos=0
44769have_floor=0
44770
44771for ac_func in cos
44772do
44773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44774echo "$as_me:$LINENO: checking for $ac_func" >&5
44775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44776if eval "test \"\${$as_ac_var+set}\" = set"; then
44777 echo $ECHO_N "(cached) $ECHO_C" >&6
44778else
44779 cat >conftest.$ac_ext <<_ACEOF
44780/* confdefs.h. */
44781_ACEOF
44782cat confdefs.h >>conftest.$ac_ext
44783cat >>conftest.$ac_ext <<_ACEOF
44784/* end confdefs.h. */
ac1cb8d3
VS
44785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44787#define $ac_func innocuous_$ac_func
44788
a848cd7e
SC
44789/* System header to define __stub macros and hopefully few prototypes,
44790 which can conflict with char $ac_func (); below.
44791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44793
a848cd7e
SC
44794#ifdef __STDC__
44795# include <limits.h>
44796#else
44797# include <assert.h>
44798#endif
ac1cb8d3
VS
44799
44800#undef $ac_func
44801
a848cd7e
SC
44802/* Override any gcc2 internal prototype to avoid an error. */
44803#ifdef __cplusplus
44804extern "C"
44805{
44806#endif
44807/* We use char because int might match the return type of a gcc2
44808 builtin and then its argument prototype would still apply. */
44809char $ac_func ();
44810/* The GNU C library defines this for functions which it implements
44811 to always fail with ENOSYS. Some functions are actually named
44812 something starting with __ and the normal name is an alias. */
44813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44814choke me
44815#else
44816char (*f) () = $ac_func;
44817#endif
44818#ifdef __cplusplus
44819}
44820#endif
44821
44822int
44823main ()
44824{
44825return f != $ac_func;
44826 ;
44827 return 0;
44828}
44829_ACEOF
44830rm -f conftest.$ac_objext conftest$ac_exeext
44831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44832 (eval $ac_link) 2>conftest.er1
a848cd7e 44833 ac_status=$?
ac1cb8d3
VS
44834 grep -v '^ *+' conftest.er1 >conftest.err
44835 rm -f conftest.er1
44836 cat conftest.err >&5
a848cd7e
SC
44837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44838 (exit $ac_status); } &&
3565d135
RR
44839 { ac_try='test -z "$ac_c_werror_flag"
44840 || test ! -s conftest.err'
ac1cb8d3
VS
44841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44842 (eval $ac_try) 2>&5
44843 ac_status=$?
44844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44845 (exit $ac_status); }; } &&
44846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44848 (eval $ac_try) 2>&5
44849 ac_status=$?
44850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851 (exit $ac_status); }; }; then
44852 eval "$as_ac_var=yes"
44853else
44854 echo "$as_me: failed program was:" >&5
44855sed 's/^/| /' conftest.$ac_ext >&5
44856
44857eval "$as_ac_var=no"
44858fi
ac1cb8d3
VS
44859rm -f conftest.err conftest.$ac_objext \
44860 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44861fi
44862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44863echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44864if test `eval echo '${'$as_ac_var'}'` = yes; then
44865 cat >>confdefs.h <<_ACEOF
44866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44867_ACEOF
44868 have_cos=1
44869fi
44870done
44871
44872
44873for ac_func in floor
44874do
44875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44876echo "$as_me:$LINENO: checking for $ac_func" >&5
44877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44878if eval "test \"\${$as_ac_var+set}\" = set"; then
44879 echo $ECHO_N "(cached) $ECHO_C" >&6
44880else
44881 cat >conftest.$ac_ext <<_ACEOF
44882/* confdefs.h. */
44883_ACEOF
44884cat confdefs.h >>conftest.$ac_ext
44885cat >>conftest.$ac_ext <<_ACEOF
44886/* end confdefs.h. */
ac1cb8d3
VS
44887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44889#define $ac_func innocuous_$ac_func
44890
a848cd7e
SC
44891/* System header to define __stub macros and hopefully few prototypes,
44892 which can conflict with char $ac_func (); below.
44893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44894 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44895
a848cd7e
SC
44896#ifdef __STDC__
44897# include <limits.h>
44898#else
44899# include <assert.h>
44900#endif
ac1cb8d3
VS
44901
44902#undef $ac_func
44903
a848cd7e
SC
44904/* Override any gcc2 internal prototype to avoid an error. */
44905#ifdef __cplusplus
44906extern "C"
44907{
44908#endif
44909/* We use char because int might match the return type of a gcc2
44910 builtin and then its argument prototype would still apply. */
44911char $ac_func ();
44912/* The GNU C library defines this for functions which it implements
44913 to always fail with ENOSYS. Some functions are actually named
44914 something starting with __ and the normal name is an alias. */
44915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44916choke me
44917#else
44918char (*f) () = $ac_func;
44919#endif
44920#ifdef __cplusplus
44921}
44922#endif
44923
44924int
44925main ()
44926{
44927return f != $ac_func;
44928 ;
44929 return 0;
44930}
44931_ACEOF
44932rm -f conftest.$ac_objext conftest$ac_exeext
44933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44934 (eval $ac_link) 2>conftest.er1
a848cd7e 44935 ac_status=$?
ac1cb8d3
VS
44936 grep -v '^ *+' conftest.er1 >conftest.err
44937 rm -f conftest.er1
44938 cat conftest.err >&5
a848cd7e
SC
44939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44940 (exit $ac_status); } &&
3565d135
RR
44941 { ac_try='test -z "$ac_c_werror_flag"
44942 || test ! -s conftest.err'
ac1cb8d3
VS
44943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44944 (eval $ac_try) 2>&5
44945 ac_status=$?
44946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44947 (exit $ac_status); }; } &&
44948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44950 (eval $ac_try) 2>&5
44951 ac_status=$?
44952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44953 (exit $ac_status); }; }; then
44954 eval "$as_ac_var=yes"
44955else
44956 echo "$as_me: failed program was:" >&5
44957sed 's/^/| /' conftest.$ac_ext >&5
44958
44959eval "$as_ac_var=no"
44960fi
ac1cb8d3
VS
44961rm -f conftest.err conftest.$ac_objext \
44962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44963fi
44964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44966if test `eval echo '${'$as_ac_var'}'` = yes; then
44967 cat >>confdefs.h <<_ACEOF
44968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44969_ACEOF
44970 have_floor=1
44971fi
44972done
44973
44974echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44975echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44976if test "$have_cos" = 1 -a "$have_floor" = 1; then
44977 echo "$as_me:$LINENO: result: yes" >&5
44978echo "${ECHO_T}yes" >&6
44979else
44980 echo "$as_me:$LINENO: result: no" >&5
44981echo "${ECHO_T}no" >&6
44982 LIBS="$LIBS -lm"
44983 # use different functions to avoid configure caching
44984 have_sin=0
44985 have_ceil=0
44986
44987for ac_func in sin
44988do
44989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44990echo "$as_me:$LINENO: checking for $ac_func" >&5
44991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44992if eval "test \"\${$as_ac_var+set}\" = set"; then
44993 echo $ECHO_N "(cached) $ECHO_C" >&6
44994else
44995 cat >conftest.$ac_ext <<_ACEOF
44996/* confdefs.h. */
44997_ACEOF
44998cat confdefs.h >>conftest.$ac_ext
44999cat >>conftest.$ac_ext <<_ACEOF
45000/* end confdefs.h. */
ac1cb8d3
VS
45001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45003#define $ac_func innocuous_$ac_func
45004
a848cd7e
SC
45005/* System header to define __stub macros and hopefully few prototypes,
45006 which can conflict with char $ac_func (); below.
45007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45008 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45009
a848cd7e
SC
45010#ifdef __STDC__
45011# include <limits.h>
45012#else
45013# include <assert.h>
45014#endif
ac1cb8d3
VS
45015
45016#undef $ac_func
45017
a848cd7e
SC
45018/* Override any gcc2 internal prototype to avoid an error. */
45019#ifdef __cplusplus
45020extern "C"
45021{
45022#endif
45023/* We use char because int might match the return type of a gcc2
45024 builtin and then its argument prototype would still apply. */
45025char $ac_func ();
45026/* The GNU C library defines this for functions which it implements
45027 to always fail with ENOSYS. Some functions are actually named
45028 something starting with __ and the normal name is an alias. */
45029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45030choke me
45031#else
45032char (*f) () = $ac_func;
45033#endif
45034#ifdef __cplusplus
45035}
45036#endif
45037
45038int
45039main ()
45040{
45041return f != $ac_func;
45042 ;
45043 return 0;
45044}
45045_ACEOF
45046rm -f conftest.$ac_objext conftest$ac_exeext
45047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45048 (eval $ac_link) 2>conftest.er1
a848cd7e 45049 ac_status=$?
ac1cb8d3
VS
45050 grep -v '^ *+' conftest.er1 >conftest.err
45051 rm -f conftest.er1
45052 cat conftest.err >&5
a848cd7e
SC
45053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45054 (exit $ac_status); } &&
3565d135
RR
45055 { ac_try='test -z "$ac_c_werror_flag"
45056 || test ! -s conftest.err'
ac1cb8d3
VS
45057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45058 (eval $ac_try) 2>&5
45059 ac_status=$?
45060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45061 (exit $ac_status); }; } &&
45062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45064 (eval $ac_try) 2>&5
45065 ac_status=$?
45066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45067 (exit $ac_status); }; }; then
45068 eval "$as_ac_var=yes"
45069else
45070 echo "$as_me: failed program was:" >&5
45071sed 's/^/| /' conftest.$ac_ext >&5
45072
45073eval "$as_ac_var=no"
45074fi
ac1cb8d3
VS
45075rm -f conftest.err conftest.$ac_objext \
45076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45077fi
45078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45080if test `eval echo '${'$as_ac_var'}'` = yes; then
45081 cat >>confdefs.h <<_ACEOF
45082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45083_ACEOF
45084 have_sin=1
45085fi
45086done
45087
45088
45089for ac_func in ceil
45090do
45091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45092echo "$as_me:$LINENO: checking for $ac_func" >&5
45093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45094if eval "test \"\${$as_ac_var+set}\" = set"; then
45095 echo $ECHO_N "(cached) $ECHO_C" >&6
45096else
45097 cat >conftest.$ac_ext <<_ACEOF
45098/* confdefs.h. */
45099_ACEOF
45100cat confdefs.h >>conftest.$ac_ext
45101cat >>conftest.$ac_ext <<_ACEOF
45102/* end confdefs.h. */
ac1cb8d3
VS
45103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45105#define $ac_func innocuous_$ac_func
45106
a848cd7e
SC
45107/* System header to define __stub macros and hopefully few prototypes,
45108 which can conflict with char $ac_func (); below.
45109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45110 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 45111
a848cd7e
SC
45112#ifdef __STDC__
45113# include <limits.h>
45114#else
45115# include <assert.h>
45116#endif
ac1cb8d3
VS
45117
45118#undef $ac_func
45119
a848cd7e
SC
45120/* Override any gcc2 internal prototype to avoid an error. */
45121#ifdef __cplusplus
45122extern "C"
45123{
45124#endif
45125/* We use char because int might match the return type of a gcc2
45126 builtin and then its argument prototype would still apply. */
45127char $ac_func ();
45128/* The GNU C library defines this for functions which it implements
45129 to always fail with ENOSYS. Some functions are actually named
45130 something starting with __ and the normal name is an alias. */
45131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45132choke me
45133#else
45134char (*f) () = $ac_func;
45135#endif
45136#ifdef __cplusplus
45137}
45138#endif
45139
45140int
45141main ()
45142{
45143return f != $ac_func;
45144 ;
45145 return 0;
45146}
45147_ACEOF
45148rm -f conftest.$ac_objext conftest$ac_exeext
45149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45150 (eval $ac_link) 2>conftest.er1
a848cd7e 45151 ac_status=$?
ac1cb8d3
VS
45152 grep -v '^ *+' conftest.er1 >conftest.err
45153 rm -f conftest.er1
45154 cat conftest.err >&5
a848cd7e
SC
45155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45156 (exit $ac_status); } &&
3565d135
RR
45157 { ac_try='test -z "$ac_c_werror_flag"
45158 || test ! -s conftest.err'
ac1cb8d3
VS
45159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45160 (eval $ac_try) 2>&5
45161 ac_status=$?
45162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45163 (exit $ac_status); }; } &&
45164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45166 (eval $ac_try) 2>&5
45167 ac_status=$?
45168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45169 (exit $ac_status); }; }; then
45170 eval "$as_ac_var=yes"
45171else
45172 echo "$as_me: failed program was:" >&5
45173sed 's/^/| /' conftest.$ac_ext >&5
45174
45175eval "$as_ac_var=no"
45176fi
ac1cb8d3
VS
45177rm -f conftest.err conftest.$ac_objext \
45178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45179fi
45180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45182if test `eval echo '${'$as_ac_var'}'` = yes; then
45183 cat >>confdefs.h <<_ACEOF
45184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45185_ACEOF
45186 have_ceil=1
45187fi
45188done
45189
45190 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
45191echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
45192 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
45193 echo "$as_me:$LINENO: result: yes" >&5
45194echo "${ECHO_T}yes" >&6
45195 else
45196 echo "$as_me:$LINENO: result: no" >&5
45197echo "${ECHO_T}no" >&6
45198 # not sure we should warn the user, crash, etc.
45199 fi
45200fi
45201
45202if test "$wxUSE_GUI" = "yes"; then
45203
45204
8bce5cda
MW
45205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45206 dynamic erase event exec font image minimal mobile \
45207 mobile/wxedit mobile/styles propsize render \
45208 richedit rotate shaped vscroll widgets"
a848cd7e
SC
45209
45210 if test "$wxUSE_MONOLITHIC" != "yes"; then
45211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45212 fi
0b78747f 45213 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45215 if test "$wxUSE_UNIVERSAL" != "yes"; then
45216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45217 fi
45218 fi
45219 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45221 fi
a848cd7e
SC
45222else
45223 SAMPLES_SUBDIRS="console"
45224fi
45225
45226
48f625bc 45227if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45228 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45229elif test "$GCC" = yes ; then
45230 CWARNINGS="-Wall -Wundef"
45231fi
45232
48f625bc 45233if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45234 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45235elif test "$GXX" = yes ; then
45236 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45237fi
a848cd7e 45238
a848cd7e 45239
5ff751d6
VZ
45240WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45241WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45242
45243
c92ad099 45244CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45245 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45246 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45247 $CPPFLAGS `
5ff751d6 45248
8aeeb05c 45249C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45250CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45251CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45252
45253WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45254
a848cd7e 45255
95986553
DE
45256if test "x$MWCC" = "xyes"; then
45257
45258 CC="$CC -cwd source -I-"
45259 CXX="$CXX -cwd source -I-"
45260fi
45261
a848cd7e 45262
0c3c69fc 45263LIBS=`echo $LIBS`
a848cd7e
SC
45264EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45265EXTRALIBS_XML="$EXPAT_LINK"
45266EXTRALIBS_HTML="$MSPACK_LINK"
45267EXTRALIBS_ODBC="$ODBC_LINK"
45268if test "$wxUSE_GUI" = "yes"; then
3565d135 45269 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45270fi
45271if test "$wxUSE_OPENGL" = "yes"; then
45272 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45273fi
45274
8aeeb05c 45275LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45276
5ff751d6 45277WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45278
45279if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45280 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45281fi
45282if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45283 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45284fi
45285if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45286 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45287fi
45288if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45289 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45290fi
45291if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45292 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45293fi
45294if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45295 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45296fi
45297if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45298 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45299fi
45300
45301for i in $wxconfig_3rdparty ; do
5ff751d6 45302 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45303done
45304
45305
45306if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45307 WXUNIV=1
45308else
45309 WXUNIV=0
45310fi
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320if test $wxUSE_MONOLITHIC = "yes" ; then
45321 MONOLITHIC=1
45322else
45323 MONOLITHIC=0
45324fi
45325
45326if test $wxUSE_PLUGINS = "yes" ; then
45327 USE_PLUGINS=1
45328else
45329 USE_PLUGINS=0
45330fi
45331
45332if test $wxUSE_ODBC != "no" ; then
45333 USE_ODBC=1
45334else
45335 USE_ODBC=0
45336fi
45337
16358932
VZ
45338if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45339 USE_QA=1
45340else
45341 USE_QA=0
45342fi
45343
a848cd7e
SC
45344if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45345 OFFICIAL_BUILD=1
45346else
45347 OFFICIAL_BUILD=0
45348fi
45349
45350
45351
45352
45353
45354
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
ceec2216 45368
d1c38808 45369
3565d135 45370
a848cd7e
SC
45371
45372
45373TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45374
45375
45376
45377
45378
45379
45380
45381
4d4ff94c
VZ
45382case "$TOOLKIT" in
45383 GTK)
45384 TOOLKIT_USER="GTK+"
45385 if test "$WXGTK20" = 1; then
45386 TOOLKIT_USER="$TOOLKIT_USER 2"
45387 fi
9a8f0513 45388 ;;
4d4ff94c
VZ
45389
45390 *)
45391 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45392 ;;
4d4ff94c 45393esac
a848cd7e 45394
fb00f58d
JS
45395if test "$wxUSE_WINE" = "yes"; then
45396 BAKEFILE_FORCE_PLATFORM=win32
45397fi
45398
9a8f0513 45399
1e9e8aba
DE
45400
45401
a848cd7e
SC
45402 if test "x$BAKEFILE_HOST" = "x"; then
45403 BAKEFILE_HOST="${host}"
45404 fi
45405
45406 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45407
45408 if test -n "$ac_tool_prefix"; then
45409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45410set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45411echo "$as_me:$LINENO: checking for $ac_word" >&5
45412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45413if test "${ac_cv_prog_RANLIB+set}" = set; then
45414 echo $ECHO_N "(cached) $ECHO_C" >&6
45415else
45416 if test -n "$RANLIB"; then
45417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45418else
45419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45420for as_dir in $PATH
45421do
45422 IFS=$as_save_IFS
45423 test -z "$as_dir" && as_dir=.
45424 for ac_exec_ext in '' $ac_executable_extensions; do
45425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45428 break 2
45429 fi
45430done
45431done
45432
45433fi
45434fi
45435RANLIB=$ac_cv_prog_RANLIB
45436if test -n "$RANLIB"; then
45437 echo "$as_me:$LINENO: result: $RANLIB" >&5
45438echo "${ECHO_T}$RANLIB" >&6
45439else
45440 echo "$as_me:$LINENO: result: no" >&5
45441echo "${ECHO_T}no" >&6
45442fi
45443
45444fi
45445if test -z "$ac_cv_prog_RANLIB"; then
45446 ac_ct_RANLIB=$RANLIB
45447 # Extract the first word of "ranlib", so it can be a program name with args.
45448set dummy ranlib; ac_word=$2
45449echo "$as_me:$LINENO: checking for $ac_word" >&5
45450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45451if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45452 echo $ECHO_N "(cached) $ECHO_C" >&6
45453else
45454 if test -n "$ac_ct_RANLIB"; then
45455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45456else
45457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45458for as_dir in $PATH
45459do
45460 IFS=$as_save_IFS
45461 test -z "$as_dir" && as_dir=.
45462 for ac_exec_ext in '' $ac_executable_extensions; do
45463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45464 ac_cv_prog_ac_ct_RANLIB="ranlib"
45465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45466 break 2
45467 fi
45468done
45469done
45470
45471 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45472fi
45473fi
45474ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45475if test -n "$ac_ct_RANLIB"; then
45476 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45477echo "${ECHO_T}$ac_ct_RANLIB" >&6
45478else
45479 echo "$as_me:$LINENO: result: no" >&5
45480echo "${ECHO_T}no" >&6
45481fi
45482
45483 RANLIB=$ac_ct_RANLIB
45484else
45485 RANLIB="$ac_cv_prog_RANLIB"
45486fi
45487
45488 # Find a good install program. We prefer a C program (faster),
45489# so one script is as good as another. But avoid the broken or
45490# incompatible versions:
45491# SysV /etc/install, /usr/sbin/install
45492# SunOS /usr/etc/install
45493# IRIX /sbin/install
45494# AIX /bin/install
45495# AmigaOS /C/install, which installs bootblocks on floppy discs
45496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45499# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45500# ./install, which can be erroneously created by make from ./install.sh.
45501echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45502echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45503if test -z "$INSTALL"; then
45504if test "${ac_cv_path_install+set}" = set; then
45505 echo $ECHO_N "(cached) $ECHO_C" >&6
45506else
45507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45508for as_dir in $PATH
45509do
45510 IFS=$as_save_IFS
45511 test -z "$as_dir" && as_dir=.
45512 # Account for people who put trailing slashes in PATH elements.
45513case $as_dir/ in
45514 ./ | .// | /cC/* | \
45515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45517 /usr/ucb/* ) ;;
45518 *)
45519 # OSF1 and SCO ODT 3.0 have their own names for install.
45520 # Don't use installbsd from OSF since it installs stuff as root
45521 # by default.
45522 for ac_prog in ginstall scoinst install; do
45523 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45525 if test $ac_prog = install &&
45526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45527 # AIX install. It has an incompatible calling convention.
45528 :
45529 elif test $ac_prog = install &&
45530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45531 # program-specific install script used by HP pwplus--don't use.
45532 :
45533 else
45534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45535 break 3
45536 fi
45537 fi
a848cd7e
SC
45538 done
45539 done
45540 ;;
45541esac
45542done
45543
45544
45545fi
45546 if test "${ac_cv_path_install+set}" = set; then
45547 INSTALL=$ac_cv_path_install
45548 else
45549 # As a last resort, use the slow shell script. We don't cache a
45550 # path for INSTALL within a source directory, because that will
45551 # break other packages using the cache if that directory is
45552 # removed, or if the path is relative.
45553 INSTALL=$ac_install_sh
45554 fi
45555fi
45556echo "$as_me:$LINENO: result: $INSTALL" >&5
45557echo "${ECHO_T}$INSTALL" >&6
45558
45559# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45560# It thinks the first close brace ends the variable substitution.
45561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45562
45563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45564
45565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45566
45567 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45568echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45569LN_S=$as_ln_s
45570if test "$LN_S" = "ln -s"; then
45571 echo "$as_me:$LINENO: result: yes" >&5
45572echo "${ECHO_T}yes" >&6
45573else
45574 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45575echo "${ECHO_T}no, using $LN_S" >&6
45576fi
45577
45578
45579 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45580echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45581set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45582if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45583 echo $ECHO_N "(cached) $ECHO_C" >&6
45584else
45585 cat >conftest.make <<\_ACEOF
45586all:
45587 @echo 'ac_maketemp="$(MAKE)"'
45588_ACEOF
45589# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45590eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45591if test -n "$ac_maketemp"; then
45592 eval ac_cv_prog_make_${ac_make}_set=yes
45593else
45594 eval ac_cv_prog_make_${ac_make}_set=no
45595fi
45596rm -f conftest.make
45597fi
45598if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45599 echo "$as_me:$LINENO: result: yes" >&5
45600echo "${ECHO_T}yes" >&6
45601 SET_MAKE=
45602else
45603 echo "$as_me:$LINENO: result: no" >&5
45604echo "${ECHO_T}no" >&6
45605 SET_MAKE="MAKE=${MAKE-make}"
45606fi
45607
45608
45609
45610 if test -n "$ac_tool_prefix"; then
45611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45612set dummy ${ac_tool_prefix}ar; ac_word=$2
45613echo "$as_me:$LINENO: checking for $ac_word" >&5
45614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45615if test "${ac_cv_prog_AR+set}" = set; then
45616 echo $ECHO_N "(cached) $ECHO_C" >&6
45617else
45618 if test -n "$AR"; then
45619 ac_cv_prog_AR="$AR" # Let the user override the test.
45620else
45621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45622for as_dir in $PATH
45623do
45624 IFS=$as_save_IFS
45625 test -z "$as_dir" && as_dir=.
45626 for ac_exec_ext in '' $ac_executable_extensions; do
45627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45628 ac_cv_prog_AR="${ac_tool_prefix}ar"
45629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45630 break 2
45631 fi
45632done
45633done
45634
45635fi
45636fi
45637AR=$ac_cv_prog_AR
45638if test -n "$AR"; then
45639 echo "$as_me:$LINENO: result: $AR" >&5
45640echo "${ECHO_T}$AR" >&6
45641else
45642 echo "$as_me:$LINENO: result: no" >&5
45643echo "${ECHO_T}no" >&6
45644fi
45645
45646fi
45647if test -z "$ac_cv_prog_AR"; then
45648 ac_ct_AR=$AR
45649 # Extract the first word of "ar", so it can be a program name with args.
45650set dummy ar; ac_word=$2
45651echo "$as_me:$LINENO: checking for $ac_word" >&5
45652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45653if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45654 echo $ECHO_N "(cached) $ECHO_C" >&6
45655else
45656 if test -n "$ac_ct_AR"; then
45657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45658else
45659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45660for as_dir in $PATH
45661do
45662 IFS=$as_save_IFS
45663 test -z "$as_dir" && as_dir=.
45664 for ac_exec_ext in '' $ac_executable_extensions; do
45665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45666 ac_cv_prog_ac_ct_AR="ar"
45667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45668 break 2
45669 fi
45670done
45671done
45672
45673 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45674fi
45675fi
45676ac_ct_AR=$ac_cv_prog_ac_ct_AR
45677if test -n "$ac_ct_AR"; then
45678 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45679echo "${ECHO_T}$ac_ct_AR" >&6
45680else
45681 echo "$as_me:$LINENO: result: no" >&5
45682echo "${ECHO_T}no" >&6
45683fi
45684
45685 AR=$ac_ct_AR
45686else
45687 AR="$ac_cv_prog_AR"
45688fi
45689
45690 if test -n "$ac_tool_prefix"; then
45691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45692set dummy ${ac_tool_prefix}strip; ac_word=$2
45693echo "$as_me:$LINENO: checking for $ac_word" >&5
45694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45695if test "${ac_cv_prog_STRIP+set}" = set; then
45696 echo $ECHO_N "(cached) $ECHO_C" >&6
45697else
45698 if test -n "$STRIP"; then
45699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45700else
45701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45702for as_dir in $PATH
45703do
45704 IFS=$as_save_IFS
45705 test -z "$as_dir" && as_dir=.
45706 for ac_exec_ext in '' $ac_executable_extensions; do
45707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45710 break 2
45711 fi
45712done
45713done
45714
45715fi
45716fi
45717STRIP=$ac_cv_prog_STRIP
45718if test -n "$STRIP"; then
45719 echo "$as_me:$LINENO: result: $STRIP" >&5
45720echo "${ECHO_T}$STRIP" >&6
45721else
45722 echo "$as_me:$LINENO: result: no" >&5
45723echo "${ECHO_T}no" >&6
45724fi
45725
45726fi
45727if test -z "$ac_cv_prog_STRIP"; then
45728 ac_ct_STRIP=$STRIP
45729 # Extract the first word of "strip", so it can be a program name with args.
45730set dummy strip; ac_word=$2
45731echo "$as_me:$LINENO: checking for $ac_word" >&5
45732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45733if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45734 echo $ECHO_N "(cached) $ECHO_C" >&6
45735else
45736 if test -n "$ac_ct_STRIP"; then
45737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45738else
45739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45740for as_dir in $PATH
45741do
45742 IFS=$as_save_IFS
45743 test -z "$as_dir" && as_dir=.
45744 for ac_exec_ext in '' $ac_executable_extensions; do
45745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45746 ac_cv_prog_ac_ct_STRIP="strip"
45747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45748 break 2
45749 fi
45750done
45751done
45752
45753 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45754fi
45755fi
45756ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45757if test -n "$ac_ct_STRIP"; then
45758 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45759echo "${ECHO_T}$ac_ct_STRIP" >&6
45760else
45761 echo "$as_me:$LINENO: result: no" >&5
45762echo "${ECHO_T}no" >&6
45763fi
45764
45765 STRIP=$ac_ct_STRIP
45766else
45767 STRIP="$ac_cv_prog_STRIP"
45768fi
45769
45770 if test -n "$ac_tool_prefix"; then
45771 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45772set dummy ${ac_tool_prefix}nm; ac_word=$2
45773echo "$as_me:$LINENO: checking for $ac_word" >&5
45774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45775if test "${ac_cv_prog_NM+set}" = set; then
45776 echo $ECHO_N "(cached) $ECHO_C" >&6
45777else
45778 if test -n "$NM"; then
45779 ac_cv_prog_NM="$NM" # Let the user override the test.
45780else
45781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45782for as_dir in $PATH
45783do
45784 IFS=$as_save_IFS
45785 test -z "$as_dir" && as_dir=.
45786 for ac_exec_ext in '' $ac_executable_extensions; do
45787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45788 ac_cv_prog_NM="${ac_tool_prefix}nm"
45789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45790 break 2
45791 fi
45792done
45793done
45794
45795fi
45796fi
45797NM=$ac_cv_prog_NM
45798if test -n "$NM"; then
45799 echo "$as_me:$LINENO: result: $NM" >&5
45800echo "${ECHO_T}$NM" >&6
45801else
45802 echo "$as_me:$LINENO: result: no" >&5
45803echo "${ECHO_T}no" >&6
45804fi
45805
45806fi
45807if test -z "$ac_cv_prog_NM"; then
45808 ac_ct_NM=$NM
45809 # Extract the first word of "nm", so it can be a program name with args.
45810set dummy nm; ac_word=$2
45811echo "$as_me:$LINENO: checking for $ac_word" >&5
45812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45813if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45814 echo $ECHO_N "(cached) $ECHO_C" >&6
45815else
45816 if test -n "$ac_ct_NM"; then
45817 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45818else
45819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45820for as_dir in $PATH
45821do
45822 IFS=$as_save_IFS
45823 test -z "$as_dir" && as_dir=.
45824 for ac_exec_ext in '' $ac_executable_extensions; do
45825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45826 ac_cv_prog_ac_ct_NM="nm"
45827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45828 break 2
45829 fi
45830done
45831done
45832
45833 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45834fi
45835fi
45836ac_ct_NM=$ac_cv_prog_ac_ct_NM
45837if test -n "$ac_ct_NM"; then
45838 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45839echo "${ECHO_T}$ac_ct_NM" >&6
45840else
45841 echo "$as_me:$LINENO: result: no" >&5
45842echo "${ECHO_T}no" >&6
45843fi
45844
45845 NM=$ac_ct_NM
45846else
45847 NM="$ac_cv_prog_NM"
45848fi
45849
45850
45851 case ${BAKEFILE_HOST} in
45852 *-hp-hpux* )
1e9e8aba 45853 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45854 ;;
45855 *) INSTALL_DIR="$INSTALL -d"
45856 ;;
45857 esac
45858
45859
45860 LDFLAGS_GUI=
45861 case ${BAKEFILE_HOST} in
45862 *-*-cygwin* | *-*-mingw32* )
45863 LDFLAGS_GUI="-mwindows"
45864 esac
45865
45866
45867 fi
45868
45869 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45870echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45871if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45872 echo $ECHO_N "(cached) $ECHO_C" >&6
45873else
45874
45875 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45876 egrep -s GNU > /dev/null); then
45877 bakefile_cv_prog_makeisgnu="yes"
45878 else
45879 bakefile_cv_prog_makeisgnu="no"
45880 fi
45881
45882fi
45883echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45884echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45885
45886 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45887 IF_GNU_MAKE=""
45888 else
45889 IF_GNU_MAKE="#"
45890 fi
45891
45892
45893
45894 PLATFORM_UNIX=0
45895 PLATFORM_WIN32=0
45896 PLATFORM_MSDOS=0
45897 PLATFORM_MAC=0
1e9e8aba 45898 PLATFORM_MACOS=0
a848cd7e
SC
45899 PLATFORM_MACOSX=0
45900 PLATFORM_OS2=0
1e9e8aba 45901 PLATFORM_BEOS=0
a848cd7e
SC
45902
45903 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45904 case "${BAKEFILE_HOST}" in
810b94f0 45905 *-*-mingw32* )
a848cd7e
SC
45906 PLATFORM_WIN32=1
45907 ;;
45908 *-pc-msdosdjgpp )
45909 PLATFORM_MSDOS=1
45910 ;;
45911 *-pc-os2_emx | *-pc-os2-emx )
45912 PLATFORM_OS2=1
45913 ;;
47bd5406 45914 *-*-darwin* )
a848cd7e
SC
45915 PLATFORM_MAC=1
45916 PLATFORM_MACOSX=1
45917 ;;
1e9e8aba
DE
45918 *-*-beos* )
45919 PLATFORM_BEOS=1
45920 ;;
45921 powerpc-apple-macos* )
45922 PLATFORM_MAC=1
45923 PLATFORM_MACOS=1
45924 ;;
a848cd7e
SC
45925 * )
45926 PLATFORM_UNIX=1
45927 ;;
45928 esac
45929 else
45930 case "$BAKEFILE_FORCE_PLATFORM" in
45931 win32 )
45932 PLATFORM_WIN32=1
45933 ;;
45934 msdos )
45935 PLATFORM_MSDOS=1
45936 ;;
45937 os2 )
45938 PLATFORM_OS2=1
45939 ;;
45940 darwin )
45941 PLATFORM_MAC=1
45942 PLATFORM_MACOSX=1
45943 ;;
45944 unix )
45945 PLATFORM_UNIX=1
45946 ;;
1e9e8aba
DE
45947 beos )
45948 PLATFORM_BEOS=1
45949 ;;
a848cd7e
SC
45950 * )
45951 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45952echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45953 { (exit 1); exit 1; }; }
45954 ;;
45955 esac
45956 fi
45957
45958
45959
45960
45961
45962
45963
45964
45965
1e9e8aba
DE
45966
45967
a848cd7e
SC
45968 # Check whether --enable-omf or --disable-omf was given.
45969if test "${enable_omf+set}" = set; then
45970 enableval="$enable_omf"
45971 bk_os2_use_omf="$enableval"
45972fi;
45973
45974 case "${BAKEFILE_HOST}" in
45975 *-*-darwin* )
47bd5406
VZ
45976 if test "x$GCC" = "xyes"; then
45977 CFLAGS="$CFLAGS -fno-common"
45978 CXXFLAGS="$CXXFLAGS -fno-common"
45979 fi
45980 if test "x$XLCC" = "xyes"; then
45981 CFLAGS="$CFLAGS -qnocommon"
45982 CXXFLAGS="$CXXFLAGS -qnocommon"
45983 fi
a848cd7e
SC
45984 ;;
45985
45986 *-pc-os2_emx | *-pc-os2-emx )
45987 if test "x$bk_os2_use_omf" = "xyes" ; then
45988 AR=emxomfar
45989 RANLIB=:
45990 LDFLAGS="-Zomf $LDFLAGS"
45991 CFLAGS="-Zomf $CFLAGS"
45992 CXXFLAGS="-Zomf $CXXFLAGS"
45993 OS2_LIBEXT="lib"
45994 else
45995 OS2_LIBEXT="a"
45996 fi
45997 ;;
1e9e8aba
DE
45998
45999 i*86-*-beos* )
46000 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46001 ;;
a848cd7e
SC
46002 esac
46003
46004
46005 SO_SUFFIX="so"
46006 SO_SUFFIX_MODULE="so"
46007 EXEEXT=""
46008 LIBPREFIX="lib"
46009 LIBEXT=".a"
46010 DLLPREFIX="lib"
46011 DLLPREFIX_MODULE=""
46012 DLLIMP_SUFFIX=""
810b94f0 46013 dlldir="$libdir"
a848cd7e
SC
46014
46015 case "${BAKEFILE_HOST}" in
46016 *-hp-hpux* )
46017 SO_SUFFIX="sl"
46018 SO_SUFFIX_MODULE="sl"
46019 ;;
46020 *-*-aix* )
46021 SO_SUFFIX="a"
46022 SO_SUFFIX_MODULE="a"
46023 ;;
810b94f0
MW
46024 *-*-cygwin* )
46025 SO_SUFFIX="dll"
46026 SO_SUFFIX_MODULE="dll"
46027 DLLIMP_SUFFIX="dll.a"
46028 EXEEXT=".exe"
46029 DLLPREFIX="cyg"
46030 dlldir="$bindir"
46031 ;;
46032 *-*-mingw32* )
a848cd7e
SC
46033 SO_SUFFIX="dll"
46034 SO_SUFFIX_MODULE="dll"
46035 DLLIMP_SUFFIX="dll.a"
46036 EXEEXT=".exe"
46037 DLLPREFIX=""
810b94f0 46038 dlldir="$bindir"
a848cd7e
SC
46039 ;;
46040 *-pc-msdosdjgpp )
46041 EXEEXT=".exe"
46042 DLLPREFIX=""
810b94f0 46043 dlldir="$bindir"
a848cd7e
SC
46044 ;;
46045 *-pc-os2_emx | *-pc-os2-emx )
46046 SO_SUFFIX="dll"
46047 SO_SUFFIX_MODULE="dll"
46048 DLLIMP_SUFFIX=$OS2_LIBEXT
46049 EXEEXT=".exe"
46050 DLLPREFIX=""
46051 LIBPREFIX=""
46052 LIBEXT=".$OS2_LIBEXT"
810b94f0 46053 dlldir="$bindir"
a848cd7e 46054 ;;
47bd5406 46055 *-*-darwin* )
a848cd7e
SC
46056 SO_SUFFIX="dylib"
46057 SO_SUFFIX_MODULE="bundle"
46058 ;;
46059 esac
46060
46061 if test "x$DLLIMP_SUFFIX" = "x" ; then
46062 DLLIMP_SUFFIX="$SO_SUFFIX"
46063 fi
46064
46065
46066
46067
46068
46069
46070
46071
46072
46073
46074
810b94f0 46075
1e9e8aba
DE
46076 PIC_FLAG=""
46077 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46078 PIC_FLAG="-fPIC"
46079 fi
46080
1e9e8aba
DE
46081 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46082 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46083 WINDOWS_IMPLIB=0
1e9e8aba 46084
a848cd7e
SC
46085 case "${BAKEFILE_HOST}" in
46086 *-hp-hpux* )
1e9e8aba 46087 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46088 LDFLAGS="$LDFLAGS -L/usr/lib"
46089
46090 SHARED_LD_CC="${CC} -b -o"
46091 SHARED_LD_CXX="${CXX} -b -o"
46092 PIC_FLAG="+Z"
46093 fi
46094 ;;
46095
46096 *-*-linux* )
46097 if test "x$GCC" != "xyes"; then
46098 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46099echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46100if test "${bakefile_cv_prog_icc+set}" = set; then
46101 echo $ECHO_N "(cached) $ECHO_C" >&6
46102else
46103
46104 cat >conftest.$ac_ext <<_ACEOF
46105/* confdefs.h. */
46106_ACEOF
46107cat confdefs.h >>conftest.$ac_ext
46108cat >>conftest.$ac_ext <<_ACEOF
46109/* end confdefs.h. */
46110
46111int
46112main ()
46113{
46114
46115 #ifndef __INTEL_COMPILER
46116 #error Not icc
46117 #endif
46118
46119 ;
46120 return 0;
46121}
46122_ACEOF
46123rm -f conftest.$ac_objext
46124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46125 (eval $ac_compile) 2>conftest.er1
a848cd7e 46126 ac_status=$?
ac1cb8d3
VS
46127 grep -v '^ *+' conftest.er1 >conftest.err
46128 rm -f conftest.er1
46129 cat conftest.err >&5
a848cd7e
SC
46130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46131 (exit $ac_status); } &&
3565d135
RR
46132 { ac_try='test -z "$ac_c_werror_flag"
46133 || test ! -s conftest.err'
ac1cb8d3
VS
46134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46135 (eval $ac_try) 2>&5
46136 ac_status=$?
46137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46138 (exit $ac_status); }; } &&
46139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46141 (eval $ac_try) 2>&5
46142 ac_status=$?
46143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46144 (exit $ac_status); }; }; then
46145 bakefile_cv_prog_icc=yes
46146else
46147 echo "$as_me: failed program was:" >&5
46148sed 's/^/| /' conftest.$ac_ext >&5
46149
46150bakefile_cv_prog_icc=no
46151
46152fi
ac1cb8d3 46153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46154
46155fi
46156echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46157echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46158 if test "$bakefile_cv_prog_icc" = "yes"; then
46159 PIC_FLAG="-KPIC"
46160 fi
46161 fi
46162 ;;
46163
46164 *-*-solaris2* )
46165 if test "x$GCC" != xyes ; then
46166 SHARED_LD_CC="${CC} -G -o"
46167 SHARED_LD_CXX="${CXX} -G -o"
46168 PIC_FLAG="-KPIC"
46169 fi
46170 ;;
46171
46172 *-*-darwin* )
46173
473276a9
VS
46174D='$'
46175cat <<EOF >shared-ld-sh
a848cd7e
SC
46176#!/bin/sh
46177#-----------------------------------------------------------------------------
46178#-- Name: distrib/mac/shared-ld-sh
46179#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46180#-- Author: Gilles Depeyrot
46181#-- Copyright: (c) 2002 Gilles Depeyrot
46182#-- Licence: any use permitted
46183#-----------------------------------------------------------------------------
46184
46185verbose=0
46186args=""
46187objects=""
46188linking_flag="-dynamiclib"
810b94f0 46189ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46190
473276a9
VS
46191while test ${D}# -gt 0; do
46192 case ${D}1 in
a848cd7e
SC
46193
46194 -v)
46195 verbose=1
46196 ;;
46197
46198 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46199 # collect these options and values
473276a9 46200 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46201 shift
46202 ;;
46203
810b94f0
MW
46204 -s|-Wl,*)
46205 # collect these load args
46206 ldargs="${D}{ldargs} ${D}1"
2113bc77 46207 ;;
810b94f0
MW
46208
46209 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46210 # collect these options
473276a9 46211 args="${D}{args} ${D}1"
a848cd7e
SC
46212 ;;
46213
46214 -dynamiclib|-bundle)
473276a9 46215 linking_flag="${D}1"
a848cd7e
SC
46216 ;;
46217
46218 -*)
473276a9 46219 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46220 exit 1
46221 ;;
46222
46223 *.o | *.a | *.dylib)
46224 # collect object files
473276a9 46225 objects="${D}{objects} ${D}1"
a848cd7e
SC
46226 ;;
46227
46228 *)
473276a9 46229 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46230 exit 1
46231 ;;
46232
46233 esac
46234 shift
46235done
46236
810b94f0
MW
46237status=0
46238
a848cd7e
SC
46239#
46240# Link one module containing all the others
46241#
473276a9 46242if test ${D}{verbose} = 1; then
810b94f0 46243 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46244fi
810b94f0 46245c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46246status=${D}?
a848cd7e
SC
46247
46248#
810b94f0
MW
46249# Link the shared library from the single module created, but only if the
46250# previous command didn't fail:
a848cd7e 46251#
810b94f0
MW
46252if test ${D}{status} = 0; then
46253 if test ${D}{verbose} = 1; then
46254 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46255 fi
46256 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46257 status=${D}?
a848cd7e
SC
46258fi
46259
46260#
46261# Remove intermediate module
46262#
473276a9 46263rm -f master.${D}${D}.o
a848cd7e 46264
810b94f0 46265exit ${D}status
a848cd7e 46266EOF
473276a9 46267
583d6b4b
VZ
46268 chmod +x shared-ld-sh
46269
46270 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46271 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46272
46273
46274 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46275echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46276if test "${bakefile_cv_gcc31+set}" = set; then
46277 echo $ECHO_N "(cached) $ECHO_C" >&6
46278else
46279
46280 cat >conftest.$ac_ext <<_ACEOF
46281/* confdefs.h. */
46282_ACEOF
46283cat confdefs.h >>conftest.$ac_ext
46284cat >>conftest.$ac_ext <<_ACEOF
46285/* end confdefs.h. */
46286
46287int
46288main ()
46289{
46290
46291 #if (__GNUC__ < 3) || \
46292 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46293 #error old gcc
46294 #endif
a848cd7e 46295
583d6b4b
VZ
46296 ;
46297 return 0;
46298}
46299_ACEOF
46300rm -f conftest.$ac_objext
46301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46302 (eval $ac_compile) 2>conftest.er1
46303 ac_status=$?
46304 grep -v '^ *+' conftest.er1 >conftest.err
46305 rm -f conftest.er1
46306 cat conftest.err >&5
46307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46308 (exit $ac_status); } &&
3565d135
RR
46309 { ac_try='test -z "$ac_c_werror_flag"
46310 || test ! -s conftest.err'
583d6b4b
VZ
46311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46312 (eval $ac_try) 2>&5
46313 ac_status=$?
46314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46315 (exit $ac_status); }; } &&
46316 { ac_try='test -s conftest.$ac_objext'
46317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46318 (eval $ac_try) 2>&5
46319 ac_status=$?
46320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46321 (exit $ac_status); }; }; then
46322
46323 bakefile_cv_gcc31=yes
46324
46325else
46326 echo "$as_me: failed program was:" >&5
46327sed 's/^/| /' conftest.$ac_ext >&5
46328
46329
46330 bakefile_cv_gcc31=no
46331
46332
46333fi
46334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46335
46336fi
46337echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46338echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46339 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46340 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46341 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46342 else
46343 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46344 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46345 fi
46346
47bd5406
VZ
46347 if test "x$GCC" == "xyes"; then
46348 PIC_FLAG="-dynamic -fPIC"
46349 fi
46350 if test "x$XLCC" = "xyes"; then
46351 PIC_FLAG="-dynamic -DPIC"
46352 fi
a848cd7e
SC
46353 ;;
46354
46355 *-*-aix* )
f6b50c59 46356 if test "x$GCC" = "xyes"; then
583d6b4b 46357 PIC_FLAG=""
f6b50c59 46358
583d6b4b
VZ
46359 case "${BAKEFILE_HOST}" in
46360 *-*-aix5* )
46361 LD_EXPFULL="-Wl,-bexpfull"
46362 ;;
46363 esac
f6b50c59 46364
583d6b4b
VZ
46365 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46366 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46367 else
46368 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46369set dummy makeC++SharedLib; ac_word=$2
46370echo "$as_me:$LINENO: checking for $ac_word" >&5
46371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46372if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46373 echo $ECHO_N "(cached) $ECHO_C" >&6
46374else
46375 if test -n "$AIX_CXX_LD"; then
46376 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46377else
46378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46379for as_dir in $PATH
46380do
46381 IFS=$as_save_IFS
46382 test -z "$as_dir" && as_dir=.
46383 for ac_exec_ext in '' $ac_executable_extensions; do
46384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46385 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46387 break 2
46388 fi
46389done
46390done
46391
46392 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46393fi
46394fi
46395AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46396if test -n "$AIX_CXX_LD"; then
46397 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46398echo "${ECHO_T}$AIX_CXX_LD" >&6
46399else
46400 echo "$as_me:$LINENO: result: no" >&5
46401echo "${ECHO_T}no" >&6
46402fi
46403
f6b50c59 46404 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46405 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46406 fi
46407 ;;
46408
46409 *-*-beos* )
1e9e8aba
DE
46410 SHARED_LD_CC="${LD} -nostart -o"
46411 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46412 ;;
46413
46414 *-*-irix* )
46415 if test "x$GCC" != "xyes"; then
46416 PIC_FLAG="-KPIC"
46417 fi
46418 ;;
46419
46420 *-*-cygwin* | *-*-mingw32* )
46421 PIC_FLAG=""
1e9e8aba
DE
46422 SHARED_LD_CC="\$(CC) -shared -o"
46423 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46424 WINDOWS_IMPLIB=1
a848cd7e
SC
46425 ;;
46426
46427 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46428 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46429 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46430 PIC_FLAG=""
473276a9
VS
46431
46432D='$'
46433cat <<EOF >dllar.sh
46434#!/bin/sh
46435#
46436# dllar - a tool to build both a .dll and an .a file
46437# from a set of object (.o) files for EMX/OS2.
46438#
46439# Written by Andrew Zabolotny, bit@freya.etu.ru
46440# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46441#
46442# This script will accept a set of files on the command line.
46443# All the public symbols from the .o files will be exported into
46444# a .DEF file, then linker will be run (through gcc) against them to
46445# build a shared library consisting of all given .o files. All libraries
46446# (.a) will be first decompressed into component .o files then act as
46447# described above. You can optionally give a description (-d "description")
46448# which will be put into .DLL. To see the list of accepted options (as well
46449# as command-line format) simply run this program without options. The .DLL
46450# is built to be imported by name (there is no guarantee that new versions
46451# of the library you build will have same ordinals for same symbols).
46452#
46453# dllar is free software; you can redistribute it and/or modify
46454# it under the terms of the GNU General Public License as published by
46455# the Free Software Foundation; either version 2, or (at your option)
46456# any later version.
46457#
46458# dllar is distributed in the hope that it will be useful,
46459# but WITHOUT ANY WARRANTY; without even the implied warranty of
46460# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46461# GNU General Public License for more details.
46462#
46463# You should have received a copy of the GNU General Public License
46464# along with dllar; see the file COPYING. If not, write to the Free
46465# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46466# 02111-1307, USA.
46467
46468# To successfuly run this program you will need:
46469# - Current drive should have LFN support (HPFS, ext2, network, etc)
46470# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46471# - gcc
46472# (used to build the .dll)
46473# - emxexp
46474# (used to create .def file from .o files)
46475# - emximp
46476# (used to create .a file from .def file)
46477# - GNU text utilites (cat, sort, uniq)
46478# used to process emxexp output
46479# - GNU file utilities (mv, rm)
46480# - GNU sed
46481# - lxlite (optional, see flag below)
46482# (used for general .dll cleanup)
46483#
46484
46485flag_USE_LXLITE=1;
46486
46487#
46488# helper functions
46489# basnam, variant of basename, which does _not_ remove the path, _iff_
46490# second argument (suffix to remove) is given
46491basnam(){
46492 case ${D}# in
46493 1)
1e9e8aba 46494 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46495 ;;
46496 2)
46497 echo ${D}1 | sed 's/'${D}2'${D}//'
46498 ;;
46499 *)
46500 echo "error in basnam ${D}*"
46501 exit 8
46502 ;;
46503 esac
46504}
46505
46506# Cleanup temporary files and output
46507CleanUp() {
46508 cd ${D}curDir
46509 for i in ${D}inputFiles ; do
46510 case ${D}i in
46511 *!)
46512 rm -rf \`basnam ${D}i !\`
46513 ;;
46514 *)
46515 ;;
46516 esac
46517 done
46518
46519 # Kill result in case of failure as there is just to many stupid make/nmake
46520 # things out there which doesn't do this.
1e9e8aba 46521 if [ ${D}# -eq 0 ]; then
473276a9
VS
46522 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46523 fi
46524}
46525
46526# Print usage and exit script with rc=1.
46527PrintHelp() {
b1d22ded
DE
46528 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46529 echo ' [-name-mangler-script script.sh]'
46530 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46531 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46532 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46533 echo ' [*.o] [*.a]'
473276a9
VS
46534 echo '*> "output_file" should have no extension.'
46535 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46536 echo ' The import library name is derived from this and is set to "name".a,'
46537 echo ' unless overridden by -import'
46538 echo '*> "importlib_name" should have no extension.'
46539 echo ' If it has the .o, or .a extension, it is automatically removed.'
46540 echo ' This name is used as the import library name and may be longer and'
46541 echo ' more descriptive than the DLL name which has to follow the old '
46542 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46543 echo '*> "script.sh may be given to override the output_file name by a'
46544 echo ' different name. It is mainly useful if the regular make process'
46545 echo ' of some package does not take into account OS/2 restriction of'
46546 echo ' DLL name lengths. It takes the importlib name as input and is'
46547 echo ' supposed to procude a shorter name as output. The script should'
46548 echo ' expect to get importlib_name without extension and should produce'
46549 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46550 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46551 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46552 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46553 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46554 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46555 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46556 echo ' If the last character of a symbol is "*", all symbols beginning'
46557 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46558 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46559 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46560 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46561 echo ' C runtime DLLs.'
b1d22ded 46562 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46563 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46564 echo ' unchanged to GCC at the end of command line.'
46565 echo '*> If you create a DLL from a library and you do not specify -o,'
46566 echo ' the basename for DLL and import library will be set to library name,'
46567 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46568 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46569 echo ' library will be renamed into gcc_s.a.'
46570 echo '--------'
46571 echo 'Example:'
46572 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46573 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46574 CleanUp
46575 exit 1
46576}
46577
46578# Execute a command.
46579# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46580# @Uses Whatever CleanUp() uses.
46581doCommand() {
46582 echo "${D}*"
46583 eval ${D}*
46584 rcCmd=${D}?
46585
1e9e8aba 46586 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46587 echo "command failed, exit code="${D}rcCmd
46588 CleanUp
46589 exit ${D}rcCmd
46590 fi
46591}
46592
46593# main routine
46594# setup globals
46595cmdLine=${D}*
46596outFile=""
46597outimpFile=""
46598inputFiles=""
b1d22ded 46599renameScript=""
473276a9
VS
46600description=""
46601CC=gcc.exe
46602CFLAGS="-s -Zcrtdll"
46603EXTRA_CFLAGS=""
46604EXPORT_BY_ORDINALS=0
46605exclude_symbols=""
46606library_flags=""
46607curDir=\`pwd\`
46608curDirS=curDir
46609case ${D}curDirS in
46610*/)
46611 ;;
46612*)
46613 curDirS=${D}{curDirS}"/"
46614 ;;
46615esac
46616# Parse commandline
46617libsToLink=0
b1d22ded 46618omfLinking=0
1e9e8aba 46619while [ ${D}1 ]; do
473276a9
VS
46620 case ${D}1 in
46621 -ord*)
46622 EXPORT_BY_ORDINALS=1;
46623 ;;
46624 -o*)
46625 shift
46626 outFile=${D}1
46627 ;;
46628 -i*)
46629 shift
46630 outimpFile=${D}1
46631 ;;
b1d22ded
DE
46632 -name-mangler-script)
46633 shift
46634 renameScript=${D}1
46635 ;;
473276a9
VS
46636 -d*)
46637 shift
46638 description=${D}1
46639 ;;
46640 -f*)
46641 shift
46642 CFLAGS=${D}1
46643 ;;
46644 -c*)
46645 shift
46646 CC=${D}1
46647 ;;
46648 -h*)
46649 PrintHelp
46650 ;;
46651 -ex*)
46652 shift
46653 exclude_symbols=${D}{exclude_symbols}${D}1" "
46654 ;;
46655 -libf*)
46656 shift
46657 library_flags=${D}{library_flags}${D}1" "
46658 ;;
46659 -nocrt*)
46660 CFLAGS="-s"
46661 ;;
46662 -nolxl*)
46663 flag_USE_LXLITE=0
46664 ;;
46665 -* | /*)
46666 case ${D}1 in
46667 -L* | -l*)
46668 libsToLink=1
46669 ;;
b1d22ded
DE
46670 -Zomf)
46671 omfLinking=1
46672 ;;
473276a9
VS
46673 *)
46674 ;;
46675 esac
46676 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46677 ;;
b1d22ded
DE
46678 *.dll)
46679 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46680 if [ ${D}omfLinking -eq 1 ]; then
46681 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46682 else
46683 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46684 fi
46685 ;;
473276a9
VS
46686 *)
46687 found=0;
1e9e8aba 46688 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46689 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46690 else
46691 for file in ${D}1 ; do
1e9e8aba 46692 if [ -f ${D}file ]; then
473276a9
VS
46693 inputFiles="${D}{inputFiles} ${D}file"
46694 found=1
46695 fi
46696 done
1e9e8aba 46697 if [ ${D}found -eq 0 ]; then
473276a9
VS
46698 echo "ERROR: No file(s) found: "${D}1
46699 exit 8
46700 fi
46701 fi
46702 ;;
46703 esac
46704 shift
46705done # iterate cmdline words
46706
46707#
1e9e8aba 46708if [ -z "${D}inputFiles" ]; then
473276a9
VS
46709 echo "dllar: no input files"
46710 PrintHelp
46711fi
46712
46713# Now extract all .o files from .a files
46714newInputFiles=""
46715for file in ${D}inputFiles ; do
46716 case ${D}file in
46717 *.a | *.lib)
46718 case ${D}file in
46719 *.a)
46720 suffix=".a"
46721 AR="ar"
46722 ;;
46723 *.lib)
46724 suffix=".lib"
46725 AR="emxomfar"
46726 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46727 ;;
46728 *)
46729 ;;
46730 esac
46731 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46732 mkdir ${D}dirname
1e9e8aba 46733 if [ ${D}? -ne 0 ]; then
473276a9
VS
46734 echo "Failed to create subdirectory ./${D}dirname"
46735 CleanUp
46736 exit 8;
46737 fi
46738 # Append '!' to indicate archive
46739 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46740 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46741 cd ${D}curDir
46742 found=0;
46743 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46744 if [ -f ${D}subfile ]; then
473276a9 46745 found=1
1e9e8aba 46746 if [ -s ${D}subfile ]; then
473276a9
VS
46747 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46748 newInputFiles="${D}newInputFiles ${D}subfile"
46749 fi
46750 fi
46751 done
1e9e8aba
DE
46752 if [ ${D}found -eq 0 ]; then
46753 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46754 fi
46755 ;;
46756 *)
46757 newInputFiles="${D}{newInputFiles} ${D}file"
46758 ;;
46759 esac
46760done
46761inputFiles="${D}newInputFiles"
46762
46763# Output filename(s).
46764do_backup=0;
1e9e8aba 46765if [ -z ${D}outFile ]; then
473276a9
VS
46766 do_backup=1;
46767 set outFile ${D}inputFiles; outFile=${D}2
46768fi
46769
46770# If it is an archive, remove the '!' and the '_%' suffixes
46771case ${D}outFile in
46772*_%!)
46773 outFile=\`basnam ${D}outFile _%!\`
46774 ;;
46775*)
46776 ;;
46777esac
46778case ${D}outFile in
46779*.dll)
46780 outFile=\`basnam ${D}outFile .dll\`
46781 ;;
46782*.DLL)
46783 outFile=\`basnam ${D}outFile .DLL\`
46784 ;;
46785*.o)
46786 outFile=\`basnam ${D}outFile .o\`
46787 ;;
46788*.obj)
46789 outFile=\`basnam ${D}outFile .obj\`
46790 ;;
46791*.a)
46792 outFile=\`basnam ${D}outFile .a\`
46793 ;;
46794*.lib)
46795 outFile=\`basnam ${D}outFile .lib\`
46796 ;;
46797*)
46798 ;;
46799esac
46800case ${D}outimpFile in
46801*.a)
46802 outimpFile=\`basnam ${D}outimpFile .a\`
46803 ;;
46804*.lib)
46805 outimpFile=\`basnam ${D}outimpFile .lib\`
46806 ;;
46807*)
46808 ;;
46809esac
1e9e8aba 46810if [ -z ${D}outimpFile ]; then
473276a9
VS
46811 outimpFile=${D}outFile
46812fi
46813defFile="${D}{outFile}.def"
46814arcFile="${D}{outimpFile}.a"
46815arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46816
46817#create ${D}dllFile as something matching 8.3 restrictions,
46818if [ -z ${D}renameScript ] ; then
46819 dllFile="${D}outFile"
46820else
46821 dllFile=\`${D}renameScript ${D}outimpFile\`
46822fi
473276a9 46823
1e9e8aba
DE
46824if [ ${D}do_backup -ne 0 ] ; then
46825 if [ -f ${D}arcFile ] ; then
473276a9
VS
46826 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46827 fi
1e9e8aba 46828 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46829 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46830 fi
46831fi
46832
46833# Extract public symbols from all the object files.
46834tmpdefFile=${D}{defFile}_%
46835rm -f ${D}tmpdefFile
46836for file in ${D}inputFiles ; do
46837 case ${D}file in
46838 *!)
46839 ;;
46840 *)
46841 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46842 ;;
46843 esac
46844done
46845
46846# Create the def file.
46847rm -f ${D}defFile
46848echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46849dllFile="${D}{dllFile}.dll"
46850if [ ! -z ${D}description ]; then
1e9e8aba 46851 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46852fi
46853echo "EXPORTS" >> ${D}defFile
46854
46855doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46856grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46857
46858# Checks if the export is ok or not.
46859for word in ${D}exclude_symbols; do
46860 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46861 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46862done
46863
46864
1e9e8aba
DE
46865if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46866 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46867 sed '
46868 N
46869 : loop
1e9e8aba 46870 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46871 t loop
46872 ' > ${D}{tmpdefFile}%
46873 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46874else
46875 rm -f ${D}{tmpdefFile}%
46876fi
46877cat ${D}tmpdefFile >> ${D}defFile
46878rm -f ${D}tmpdefFile
46879
46880# Do linking, create implib, and apply lxlite.
46881gccCmdl="";
46882for file in ${D}inputFiles ; do
46883 case ${D}file in
46884 *!)
46885 ;;
46886 *)
46887 gccCmdl="${D}gccCmdl ${D}file"
46888 ;;
46889 esac
46890done
46891doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46892touch "${D}{outFile}.dll"
46893
46894doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46895if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46896 add_flags="";
1e9e8aba 46897 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46898 add_flags="-ynd"
46899 fi
46900 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46901fi
46902doCommand "emxomf -s -l ${D}arcFile"
46903
46904# Successful exit.
46905CleanUp 1
46906exit 0
46907EOF
46908
46909 chmod +x dllar.sh
a848cd7e
SC
46910 ;;
46911
1e9e8aba 46912 powerpc-apple-macos* | \
0ad5d837 46913 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46914 *-*-sunos4* | \
46915 *-*-osf* | \
46916 *-*-dgux5* | \
47a7e797
MW
46917 *-*-sysv5* | \
46918 *-pc-msdosdjgpp )
a848cd7e
SC
46919 ;;
46920
46921 *)
46922 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46923echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46924 { (exit 1); exit 1; }; }
46925 esac
46926
2057db16
VS
46927 if test "x$PIC_FLAG" != "x" ; then
46928 PIC_FLAG="$PIC_FLAG -DPIC"
46929 fi
46930
a848cd7e
SC
46931 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46932 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46933 fi
46934 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46935 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46936 fi
46937
46938
46939
46940
46941
46942
46943
46944
810b94f0 46945
a848cd7e
SC
46946 USE_SOVERSION=0
46947 USE_SOVERLINUX=0
46948 USE_SOVERSOLARIS=0
810b94f0 46949 USE_SOVERCYGWIN=0
a848cd7e
SC
46950 USE_SOSYMLINKS=0
46951 USE_MACVERSION=0
46952 SONAME_FLAG=
46953
46954 case "${BAKEFILE_HOST}" in
0ad5d837 46955 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46956 SONAME_FLAG="-Wl,-soname,"
46957 USE_SOVERSION=1
46958 USE_SOVERLINUX=1
46959 USE_SOSYMLINKS=1
46960 ;;
46961
a848cd7e
SC
46962 *-*-solaris2* )
46963 SONAME_FLAG="-h "
46964 USE_SOVERSION=1
46965 USE_SOVERSOLARIS=1
46966 USE_SOSYMLINKS=1
46967 ;;
46968
46969 *-*-darwin* )
46970 USE_MACVERSION=1
46971 USE_SOVERSION=1
46972 USE_SOSYMLINKS=1
46973 ;;
810b94f0
MW
46974
46975 *-*-cygwin* )
46976 USE_SOVERSION=1
46977 USE_SOVERCYGWIN=1
46978 ;;
a848cd7e
SC
46979 esac
46980
46981
46982
46983
46984
46985
46986
46987
46988
810b94f0 46989
a848cd7e
SC
46990 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46991echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 46992 DEPS_TRACKING=1
a848cd7e
SC
46993
46994 if test "x$GCC" = "xyes"; then
46995 DEPSMODE=gcc
a848cd7e 46996 case "${BAKEFILE_HOST}" in
47bd5406 46997 *-*-darwin* )
0ad5d837 46998 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
46999 ;;
47000 * )
0ad5d837 47001 DEPSFLAG="-MMD"
a848cd7e
SC
47002 ;;
47003 esac
47004 echo "$as_me:$LINENO: result: gcc" >&5
47005echo "${ECHO_T}gcc" >&6
b1d22ded 47006 elif test "x$MWCC" = "xyes"; then
81f90336 47007 DEPSMODE=mwcc
0ad5d837 47008 DEPSFLAG="-MM"
b1d22ded
DE
47009 echo "$as_me:$LINENO: result: mwcc" >&5
47010echo "${ECHO_T}mwcc" >&6
a9e5b1f0 47011 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
47012 DEPSMODE=unixcc
47013 DEPSFLAG="-xM1"
47014 echo "$as_me:$LINENO: result: Sun cc" >&5
47015echo "${ECHO_T}Sun cc" >&6
47016 elif test "x$SGICC" = "xyes"; then
47017 DEPSMODE=unixcc
47018 DEPSFLAG="-M"
47019 echo "$as_me:$LINENO: result: SGI cc" >&5
47020echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
47021 elif test "x$HPCC" = "xyes"; then
47022 DEPSMODE=unixcc
47023 DEPSFLAG="+make"
47024 echo "$as_me:$LINENO: result: HP cc" >&5
47025echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
47026 elif test "x$COMPAQCC" = "xyes"; then
47027 DEPSMODE=gcc
47028 DEPSFLAG="-MD"
47029 echo "$as_me:$LINENO: result: Compaq cc" >&5
47030echo "${ECHO_T}Compaq cc" >&6
a848cd7e 47031 else
3006edc0 47032 DEPS_TRACKING=0
a848cd7e
SC
47033 echo "$as_me:$LINENO: result: none" >&5
47034echo "${ECHO_T}none" >&6
47035 fi
47036
47037 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47038
47039D='$'
47040cat <<EOF >bk-deps
a848cd7e
SC
47041#!/bin/sh
47042
47043# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47044# script. It is used to track C/C++ files dependencies in portable way.
47045#
47046# Permission is given to use this file in any way.
47047
473276a9 47048DEPSMODE=${DEPSMODE}
a848cd7e 47049DEPSDIR=.deps
0ad5d837 47050DEPSFLAG="${DEPSFLAG}"
a848cd7e 47051
473276a9 47052mkdir -p ${D}DEPSDIR
a848cd7e 47053
473276a9 47054if test ${D}DEPSMODE = gcc ; then
0ad5d837 47055 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47056 status=${D}?
47057 if test ${D}{status} != 0 ; then
47058 exit ${D}{status}
a848cd7e
SC
47059 fi
47060 # move created file to the location we want it in:
473276a9
VS
47061 while test ${D}# -gt 0; do
47062 case "${D}1" in
a848cd7e
SC
47063 -o )
47064 shift
473276a9 47065 objfile=${D}1
a848cd7e
SC
47066 ;;
47067 -* )
47068 ;;
47069 * )
473276a9 47070 srcfile=${D}1
a848cd7e
SC
47071 ;;
47072 esac
47073 shift
47074 done
1e9e8aba
DE
47075 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47076 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47077 if test -f ${D}depfile ; then
47078 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47079 rm -f ${D}depfile
a848cd7e 47080 else
a1aa0349 47081 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47082 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47083 if test ! -f ${D}depfile ; then
47084 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47085 depfile="${D}objfile.d"
47086 fi
473276a9
VS
47087 if test -f ${D}depfile ; then
47088 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47089 rm -f ${D}depfile
a848cd7e
SC
47090 fi
47091 fi
47092 exit 0
81f90336 47093elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47094 ${D}* || exit ${D}?
81f90336
MW
47095 # Run mwcc again with -MM and redirect into the dep file we want
47096 # NOTE: We can't use shift here because we need ${D}* to be valid
47097 prevarg=
47098 for arg in ${D}* ; do
47099 if test "${D}prevarg" = "-o"; then
47100 objfile=${D}arg
47101 else
47102 case "${D}arg" in
47103 -* )
47104 ;;
47105 * )
47106 srcfile=${D}arg
47107 ;;
47108 esac
47109 fi
47110 prevarg="${D}arg"
47111 done
0ad5d837 47112 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47113 exit 0
0ad5d837 47114elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47115 ${D}* || exit ${D}?
a9e5b1f0
MW
47116 # Run compiler again with deps flag and redirect into the dep file.
47117 # It doesn't work if the '-o FILE' option is used, but without it the
47118 # dependency file will contain the wrong name for the object. So it is
47119 # removed from the command line, and the dep file is fixed with sed.
47120 cmd=""
47121 while test ${D}# -gt 0; do
47122 case "${D}1" in
47123 -o )
47124 shift
47125 objfile=${D}1
47126 ;;
47127 * )
47128 eval arg${D}#=\\${D}1
47129 cmd="${D}cmd \\${D}arg${D}#"
47130 ;;
47131 esac
47132 shift
47133 done
0ad5d837 47134 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47135 exit 0
a848cd7e 47136else
473276a9
VS
47137 ${D}*
47138 exit ${D}?
a848cd7e
SC
47139fi
47140EOF
473276a9 47141
a848cd7e
SC
47142 chmod +x bk-deps
47143 fi
47144
47145
47146
47147
a848cd7e
SC
47148 case ${BAKEFILE_HOST} in
47149 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47150 if test -n "$ac_tool_prefix"; then
47151 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47152set dummy ${ac_tool_prefix}windres; ac_word=$2
47153echo "$as_me:$LINENO: checking for $ac_word" >&5
47154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47155if test "${ac_cv_prog_WINDRES+set}" = set; then
47156 echo $ECHO_N "(cached) $ECHO_C" >&6
47157else
47158 if test -n "$WINDRES"; then
47159 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47160else
47161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47162for as_dir in $PATH
47163do
47164 IFS=$as_save_IFS
47165 test -z "$as_dir" && as_dir=.
47166 for ac_exec_ext in '' $ac_executable_extensions; do
47167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47168 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47170 break 2
47171 fi
47172done
47173done
47174
47175fi
47176fi
47177WINDRES=$ac_cv_prog_WINDRES
47178if test -n "$WINDRES"; then
47179 echo "$as_me:$LINENO: result: $WINDRES" >&5
47180echo "${ECHO_T}$WINDRES" >&6
47181else
47182 echo "$as_me:$LINENO: result: no" >&5
47183echo "${ECHO_T}no" >&6
47184fi
47185
47186fi
47187if test -z "$ac_cv_prog_WINDRES"; then
47188 ac_ct_WINDRES=$WINDRES
47189 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47190set dummy windres; ac_word=$2
47191echo "$as_me:$LINENO: checking for $ac_word" >&5
47192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47193if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47194 echo $ECHO_N "(cached) $ECHO_C" >&6
47195else
8ced02f6
DE
47196 if test -n "$ac_ct_WINDRES"; then
47197 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47198else
47199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47200for as_dir in $PATH
47201do
47202 IFS=$as_save_IFS
47203 test -z "$as_dir" && as_dir=.
47204 for ac_exec_ext in '' $ac_executable_extensions; do
47205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47206 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47208 break 2
47209 fi
47210done
47211done
47212
a848cd7e
SC
47213fi
47214fi
8ced02f6
DE
47215ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47216if test -n "$ac_ct_WINDRES"; then
47217 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47218echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47219else
47220 echo "$as_me:$LINENO: result: no" >&5
47221echo "${ECHO_T}no" >&6
47222fi
47223
8ced02f6
DE
47224 WINDRES=$ac_ct_WINDRES
47225else
47226 WINDRES="$ac_cv_prog_WINDRES"
47227fi
47228
a848cd7e
SC
47229 ;;
47230
1e9e8aba 47231 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47232 # Extract the first word of "Rez", so it can be a program name with args.
47233set dummy Rez; ac_word=$2
47234echo "$as_me:$LINENO: checking for $ac_word" >&5
47235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47236if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47237 echo $ECHO_N "(cached) $ECHO_C" >&6
47238else
8ced02f6
DE
47239 if test -n "$REZ"; then
47240 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47241else
47242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47243for as_dir in $PATH
47244do
47245 IFS=$as_save_IFS
47246 test -z "$as_dir" && as_dir=.
47247 for ac_exec_ext in '' $ac_executable_extensions; do
47248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47249 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47251 break 2
47252 fi
47253done
47254done
47255
8ced02f6 47256 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47257fi
47258fi
8ced02f6
DE
47259REZ=$ac_cv_prog_REZ
47260if test -n "$REZ"; then
47261 echo "$as_me:$LINENO: result: $REZ" >&5
47262echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47263else
47264 echo "$as_me:$LINENO: result: no" >&5
47265echo "${ECHO_T}no" >&6
47266fi
47267
47268 # Extract the first word of "SetFile", so it can be a program name with args.
47269set dummy SetFile; ac_word=$2
47270echo "$as_me:$LINENO: checking for $ac_word" >&5
47271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47272if test "${ac_cv_prog_SETFILE+set}" = set; then
47273 echo $ECHO_N "(cached) $ECHO_C" >&6
47274else
47275 if test -n "$SETFILE"; then
47276 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47277else
47278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47279for as_dir in $PATH
47280do
47281 IFS=$as_save_IFS
47282 test -z "$as_dir" && as_dir=.
47283 for ac_exec_ext in '' $ac_executable_extensions; do
47284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47285 ac_cv_prog_SETFILE="SetFile"
47286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47287 break 2
47288 fi
47289done
47290done
47291
47292 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47293fi
47294fi
47295SETFILE=$ac_cv_prog_SETFILE
47296if test -n "$SETFILE"; then
47297 echo "$as_me:$LINENO: result: $SETFILE" >&5
47298echo "${ECHO_T}$SETFILE" >&6
47299else
47300 echo "$as_me:$LINENO: result: no" >&5
47301echo "${ECHO_T}no" >&6
47302fi
47303
47304 ;;
47305 esac
47306
47307
47308
47309
47310
8ced02f6 47311
c9469659 47312 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 47313
dcc1b6ad 47314
c9469659 47315BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 47316
646b6ec1 47317
74b84332 47318
a848cd7e
SC
47319 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47320if test "${enable_precomp_headers+set}" = set; then
47321 enableval="$enable_precomp_headers"
47322 bk_use_pch="$enableval"
47323fi;
47324
47325 GCC_PCH=0
47326
5c60e845
MW
47327 case ${BAKEFILE_HOST} in
47328 *-*-cygwin* )
47329 bk_use_pch="no"
47330 ;;
47331 esac
47332
a848cd7e
SC
47333 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47334 if test "x$GCC" = "xyes"; then
47335 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47336echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47337 cat >conftest.$ac_ext <<_ACEOF
47338/* confdefs.h. */
47339_ACEOF
47340cat confdefs.h >>conftest.$ac_ext
47341cat >>conftest.$ac_ext <<_ACEOF
47342/* end confdefs.h. */
47343
47344int
47345main ()
47346{
47347
47348 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47349 #error "no pch support"
47350 #endif
47351 #if (__GNUC__ < 3)
47352 #error "no pch support"
47353 #endif
47354 #if (__GNUC__ == 3) && \
47355 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47356 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
47357 #error "no pch support"
47358 #endif
47359
47360 ;
47361 return 0;
47362}
47363_ACEOF
47364rm -f conftest.$ac_objext
47365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47366 (eval $ac_compile) 2>conftest.er1
a848cd7e 47367 ac_status=$?
ac1cb8d3
VS
47368 grep -v '^ *+' conftest.er1 >conftest.err
47369 rm -f conftest.er1
47370 cat conftest.err >&5
a848cd7e
SC
47371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47372 (exit $ac_status); } &&
3565d135
RR
47373 { ac_try='test -z "$ac_c_werror_flag"
47374 || test ! -s conftest.err'
ac1cb8d3
VS
47375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47376 (eval $ac_try) 2>&5
47377 ac_status=$?
47378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47379 (exit $ac_status); }; } &&
47380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47382 (eval $ac_try) 2>&5
47383 ac_status=$?
47384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47385 (exit $ac_status); }; }; then
47386
47387 echo "$as_me:$LINENO: result: yes" >&5
47388echo "${ECHO_T}yes" >&6
a848cd7e
SC
47389 GCC_PCH=1
47390
47391else
47392 echo "$as_me: failed program was:" >&5
47393sed 's/^/| /' conftest.$ac_ext >&5
47394
47395
47396 echo "$as_me:$LINENO: result: no" >&5
47397echo "${ECHO_T}no" >&6
47398
47399fi
ac1cb8d3 47400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 47401 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
47402
47403D='$'
47404cat <<EOF >bk-make-pch
a848cd7e
SC
47405#!/bin/sh
47406
47407# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47408# script. It is used to generated precompiled headers.
47409#
47410# Permission is given to use this file in any way.
47411
1e9e8aba
DE
47412outfile="${D}{1}"
47413header="${D}{2}"
a848cd7e
SC
47414shift
47415shift
47416
47417compiler=
47418headerfile=
1e9e8aba
DE
47419while test ${D}{#} -gt 0; do
47420 case "${D}{1}" in
a848cd7e 47421 -I* )
1e9e8aba
DE
47422 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47423 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47424 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47425 fi
47426 ;;
47427 esac
1e9e8aba 47428 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
47429 shift
47430done
47431
1e9e8aba
DE
47432if test "x${D}{headerfile}" = "x" ; then
47433 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 47434else
1e9e8aba
DE
47435 if test -f ${D}{outfile} ; then
47436 rm -f ${D}{outfile}
a848cd7e 47437 else
1e9e8aba 47438 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47439 fi
1e9e8aba 47440 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
47441 mkdir -p .deps
47442 # can do this because gcc is >= 3.4:
1e9e8aba
DE
47443 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47444 exit ${D}{?}
a848cd7e
SC
47445fi
47446EOF
1e9e8aba 47447
a848cd7e
SC
47448 chmod +x bk-make-pch
47449 fi
47450 fi
47451 fi
47452
47453
47454
a848cd7e
SC
47455 COND_BUILD_DEBUG="#"
47456 if test "x$BUILD" = "xdebug" ; then
47457 COND_BUILD_DEBUG=""
47458 fi
47459
47460 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47461 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47462 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47463 fi
47464
47465 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47466 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47467 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47468 fi
47469
47470 COND_BUILD_DEBUG_UNICODE_0="#"
47471 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47472 COND_BUILD_DEBUG_UNICODE_0=""
47473 fi
47474
47475 COND_BUILD_DEBUG_UNICODE_1="#"
47476 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47477 COND_BUILD_DEBUG_UNICODE_1=""
47478 fi
47479
47480 COND_BUILD_RELEASE="#"
47481 if test "x$BUILD" = "xrelease" ; then
47482 COND_BUILD_RELEASE=""
47483 fi
47484
47485 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47486 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47487 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47488 fi
47489
47490 COND_BUILD_RELEASE_UNICODE_0="#"
47491 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47492 COND_BUILD_RELEASE_UNICODE_0=""
47493 fi
47494
47495 COND_BUILD_RELEASE_UNICODE_1="#"
47496 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47497 COND_BUILD_RELEASE_UNICODE_1=""
47498 fi
47499
47500 COND_DEBUG_FLAG_1="#"
47501 if test "x$DEBUG_FLAG" = "x1" ; then
47502 COND_DEBUG_FLAG_1=""
47503 fi
47504
47505 COND_DEBUG_INFO_0="#"
47506 if test "x$DEBUG_INFO" = "x0" ; then
47507 COND_DEBUG_INFO_0=""
47508 fi
47509
47510 COND_DEBUG_INFO_1="#"
47511 if test "x$DEBUG_INFO" = "x1" ; then
47512 COND_DEBUG_INFO_1=""
47513 fi
47514
47515 COND_DEPS_TRACKING_0="#"
47516 if test "x$DEPS_TRACKING" = "x0" ; then
47517 COND_DEPS_TRACKING_0=""
47518 fi
47519
47520 COND_DEPS_TRACKING_1="#"
47521 if test "x$DEPS_TRACKING" = "x1" ; then
47522 COND_DEPS_TRACKING_1=""
47523 fi
47524
47525 COND_GCC_PCH_1="#"
47526 if test "x$GCC_PCH" = "x1" ; then
47527 COND_GCC_PCH_1=""
47528 fi
47529
47530 COND_MONOLITHIC_0="#"
47531 if test "x$MONOLITHIC" = "x0" ; then
47532 COND_MONOLITHIC_0=""
47533 fi
47534
47535 COND_MONOLITHIC_0_SHARED_0="#"
47536 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47537 COND_MONOLITHIC_0_SHARED_0=""
47538 fi
47539
47540 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47541 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47542 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47543 fi
47544
90970d69
DE
47545 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47546 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47547 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47548 fi
47549
a848cd7e
SC
47550 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47551 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47552 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47553 fi
47554
6671c68b
VZ
47555 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47556 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47557 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47558 fi
47559
a848cd7e
SC
47560 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47561 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47562 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47563 fi
47564
ceec2216
RL
47565 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47566 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47567 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47568 fi
47569
a848cd7e
SC
47570 COND_MONOLITHIC_0_SHARED_1="#"
47571 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47572 COND_MONOLITHIC_0_SHARED_1=""
47573 fi
47574
47575 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47576 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47577 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47578 fi
47579
90970d69
DE
47580 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47581 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47582 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47583 fi
47584
a848cd7e
SC
47585 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47586 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47587 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47588 fi
47589
6671c68b
VZ
47590 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47591 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47592 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47593 fi
47594
a848cd7e
SC
47595 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47596 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47597 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47598 fi
47599
ceec2216
RL
47600 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47601 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47602 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47603 fi
47604
a848cd7e
SC
47605 COND_MONOLITHIC_0_USE_ODBC_1="#"
47606 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47607 COND_MONOLITHIC_0_USE_ODBC_1=""
47608 fi
47609
47610 COND_MONOLITHIC_1="#"
47611 if test "x$MONOLITHIC" = "x1" ; then
47612 COND_MONOLITHIC_1=""
47613 fi
47614
47615 COND_MONOLITHIC_1_SHARED_0="#"
47616 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47617 COND_MONOLITHIC_1_SHARED_0=""
47618 fi
47619
47620 COND_MONOLITHIC_1_SHARED_1="#"
47621 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47622 COND_MONOLITHIC_1_SHARED_1=""
47623 fi
47624
47625 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47626 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47627 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47628 fi
47629
47630 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47631 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47632 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47633 fi
47634
eb730a0c
JS
47635 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47636 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47637 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47638 fi
47639
a848cd7e
SC
47640 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47641 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47642 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47643 fi
47644
47645 COND_PLATFORM_MACOSX_1="#"
47646 if test "x$PLATFORM_MACOSX" = "x1" ; then
47647 COND_PLATFORM_MACOSX_1=""
47648 fi
47649
a30f955f
VS
47650 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47651 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47652 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47653 fi
47654
a848cd7e
SC
47655 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47656 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47657 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47658 fi
47659
47660 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47661 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47662 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47663 fi
47664
47665 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47666 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47667 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47668 fi
47669
fc480dc1
DE
47670 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47671 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47672 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47673 fi
47674
1e9e8aba
DE
47675 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47676 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47677 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47678 fi
47679
ebee3cd0
VS
47680 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47681 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47682 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47683 fi
47684
47685 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47686 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47687 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47688 fi
47689
a848cd7e
SC
47690 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47691 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47692 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47693 fi
47694
47695 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47696 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47697 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47698 fi
47699
b48a2016
DE
47700 COND_PLATFORM_MACOS_1="#"
47701 if test "x$PLATFORM_MACOS" = "x1" ; then
47702 COND_PLATFORM_MACOS_1=""
47703 fi
47704
083508af
MW
47705 COND_PLATFORM_MAC_1="#"
47706 if test "x$PLATFORM_MAC" = "x1" ; then
47707 COND_PLATFORM_MAC_1=""
47708 fi
47709
83d8eb47
MW
47710 COND_PLATFORM_MSDOS_1="#"
47711 if test "x$PLATFORM_MSDOS" = "x1" ; then
47712 COND_PLATFORM_MSDOS_1=""
47713 fi
47714
a848cd7e
SC
47715 COND_PLATFORM_OS2_1="#"
47716 if test "x$PLATFORM_OS2" = "x1" ; then
47717 COND_PLATFORM_OS2_1=""
47718 fi
47719
47720 COND_PLATFORM_UNIX_0="#"
47721 if test "x$PLATFORM_UNIX" = "x0" ; then
47722 COND_PLATFORM_UNIX_0=""
47723 fi
47724
47725 COND_PLATFORM_UNIX_1="#"
47726 if test "x$PLATFORM_UNIX" = "x1" ; then
47727 COND_PLATFORM_UNIX_1=""
47728 fi
47729
47730 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47731 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47732 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47733 fi
47734
47735 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47736 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47737 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47738 fi
47739
47740 COND_PLATFORM_WIN32_0="#"
47741 if test "x$PLATFORM_WIN32" = "x0" ; then
47742 COND_PLATFORM_WIN32_0=""
47743 fi
47744
47745 COND_PLATFORM_WIN32_1="#"
47746 if test "x$PLATFORM_WIN32" = "x1" ; then
47747 COND_PLATFORM_WIN32_1=""
47748 fi
47749
47750 COND_SHARED_0="#"
47751 if test "x$SHARED" = "x0" ; then
47752 COND_SHARED_0=""
47753 fi
47754
083508af
MW
47755 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47756 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47757 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47758 fi
47759
47760 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47761 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47762 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47763 fi
47764
47765 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47766 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47767 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47768 fi
47769
a848cd7e
SC
47770 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47771 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47772 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47773 fi
47774
47775 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47776 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47777 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47778 fi
47779
47780 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47781 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47782 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47783 fi
47784
47785 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47786 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47787 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47788 fi
47789
083508af
MW
47790 COND_SHARED_0_USE_XRC_1="#"
47791 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47792 COND_SHARED_0_USE_XRC_1=""
47793 fi
47794
a848cd7e
SC
47795 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47796 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47797 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47798 fi
47799
47800 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47801 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47802 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47803 fi
47804
47805 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47806 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47807 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47808 fi
47809
47810 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47811 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47812 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47813 fi
47814
47815 COND_SHARED_1="#"
47816 if test "x$SHARED" = "x1" ; then
47817 COND_SHARED_1=""
47818 fi
47819
47820 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47821 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47822 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47823 fi
47824
083508af
MW
47825 COND_SHARED_1_USE_XRC_1="#"
47826 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47827 COND_SHARED_1_USE_XRC_1=""
47828 fi
47829
a30f955f
VS
47830 COND_TOOLKIT_="#"
47831 if test "x$TOOLKIT" = "x" ; then
47832 COND_TOOLKIT_=""
47833 fi
47834
a848cd7e
SC
47835 COND_TOOLKIT_COCOA="#"
47836 if test "x$TOOLKIT" = "xCOCOA" ; then
47837 COND_TOOLKIT_COCOA=""
47838 fi
47839
a49baeab
DE
47840 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47841 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47842 COND_TOOLKIT_COCOA_USE_GUI_1=""
47843 fi
47844
a848cd7e
SC
47845 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47846 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47847 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47848 fi
47849
47850 COND_TOOLKIT_GTK="#"
47851 if test "x$TOOLKIT" = "xGTK" ; then
47852 COND_TOOLKIT_GTK=""
47853 fi
47854
47855 COND_TOOLKIT_GTK_USE_GUI_1="#"
47856 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47857 COND_TOOLKIT_GTK_USE_GUI_1=""
47858 fi
47859
47860 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
47861 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47862 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
47863 fi
47864
47865 COND_TOOLKIT_MAC="#"
47866 if test "x$TOOLKIT" = "xMAC" ; then
47867 COND_TOOLKIT_MAC=""
47868 fi
47869
47870 COND_TOOLKIT_MAC_USE_GUI_1="#"
47871 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47872 COND_TOOLKIT_MAC_USE_GUI_1=""
47873 fi
47874
47875 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47876 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47877 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47878 fi
47879
47880 COND_TOOLKIT_MGL="#"
47881 if test "x$TOOLKIT" = "xMGL" ; then
47882 COND_TOOLKIT_MGL=""
47883 fi
47884
47885 COND_TOOLKIT_MGL_USE_GUI_1="#"
47886 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47887 COND_TOOLKIT_MGL_USE_GUI_1=""
47888 fi
47889
47890 COND_TOOLKIT_MOTIF="#"
47891 if test "x$TOOLKIT" = "xMOTIF" ; then
47892 COND_TOOLKIT_MOTIF=""
47893 fi
47894
47895 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47896 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47897 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47898 fi
47899
47900 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47901 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47902 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47903 fi
47904
47905 COND_TOOLKIT_MSW="#"
47906 if test "x$TOOLKIT" = "xMSW" ; then
47907 COND_TOOLKIT_MSW=""
47908 fi
47909
47910 COND_TOOLKIT_MSW_USE_GUI_1="#"
47911 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47912 COND_TOOLKIT_MSW_USE_GUI_1=""
47913 fi
47914
47915 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47916 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47917 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47918 fi
47919
0ee4059d
DE
47920 COND_TOOLKIT_MSW_WXUNIV_0="#"
47921 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47922 COND_TOOLKIT_MSW_WXUNIV_0=""
47923 fi
47924
a848cd7e
SC
47925 COND_TOOLKIT_PM="#"
47926 if test "x$TOOLKIT" = "xPM" ; then
47927 COND_TOOLKIT_PM=""
47928 fi
47929
47930 COND_TOOLKIT_PM_USE_GUI_1="#"
47931 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47932 COND_TOOLKIT_PM_USE_GUI_1=""
47933 fi
47934
47935 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47936 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47937 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47938 fi
47939
3fd9c298
DE
47940 COND_TOOLKIT_WINCE="#"
47941 if test "x$TOOLKIT" = "xWINCE" ; then
47942 COND_TOOLKIT_WINCE=""
47943 fi
47944
47945 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47946 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47947 COND_TOOLKIT_WINCE_USE_GUI_1=""
47948 fi
47949
47950 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47951 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47952 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47953 fi
47954
0ee4059d
DE
47955 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47956 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47957 COND_TOOLKIT_WINCE_WXUNIV_0=""
47958 fi
47959
a848cd7e
SC
47960 COND_TOOLKIT_X11="#"
47961 if test "x$TOOLKIT" = "xX11" ; then
47962 COND_TOOLKIT_X11=""
47963 fi
47964
47965 COND_TOOLKIT_X11_USE_GUI_1="#"
47966 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47967 COND_TOOLKIT_X11_USE_GUI_1=""
47968 fi
47969
47970 COND_UNICODE_1="#"
47971 if test "x$UNICODE" = "x1" ; then
47972 COND_UNICODE_1=""
47973 fi
47974
47975 COND_USE_EXCEPTIONS_0="#"
47976 if test "x$USE_EXCEPTIONS" = "x0" ; then
47977 COND_USE_EXCEPTIONS_0=""
47978 fi
47979
47980 COND_USE_EXCEPTIONS_1="#"
47981 if test "x$USE_EXCEPTIONS" = "x1" ; then
47982 COND_USE_EXCEPTIONS_1=""
47983 fi
47984
47985 COND_USE_GUI_0="#"
47986 if test "x$USE_GUI" = "x0" ; then
47987 COND_USE_GUI_0=""
47988 fi
47989
47990 COND_USE_GUI_1="#"
47991 if test "x$USE_GUI" = "x1" ; then
47992 COND_USE_GUI_1=""
47993 fi
47994
47995 COND_USE_GUI_1_WXUNIV_0="#"
47996 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47997 COND_USE_GUI_1_WXUNIV_0=""
47998 fi
47999
48000 COND_USE_GUI_1_WXUNIV_1="#"
48001 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48002 COND_USE_GUI_1_WXUNIV_1=""
48003 fi
48004
48005 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48006 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48007 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48008 fi
48009
48010 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48011 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48012 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48013 fi
48014
48015 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48016 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48017 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48018 fi
48019
083508af
MW
48020 COND_USE_ODBC_1="#"
48021 if test "x$USE_ODBC" = "x1" ; then
48022 COND_USE_ODBC_1=""
48023 fi
48024
48025 COND_USE_OPENGL_1="#"
48026 if test "x$USE_OPENGL" = "x1" ; then
48027 COND_USE_OPENGL_1=""
48028 fi
48029
a848cd7e
SC
48030 COND_USE_PLUGINS_0="#"
48031 if test "x$USE_PLUGINS" = "x0" ; then
48032 COND_USE_PLUGINS_0=""
48033 fi
48034
0b78747f
MW
48035 COND_USE_RTTI_0="#"
48036 if test "x$USE_RTTI" = "x0" ; then
48037 COND_USE_RTTI_0=""
48038 fi
48039
48040 COND_USE_RTTI_1="#"
48041 if test "x$USE_RTTI" = "x1" ; then
48042 COND_USE_RTTI_1=""
48043 fi
48044
a848cd7e
SC
48045 COND_USE_SOSYMLINKS_1="#"
48046 if test "x$USE_SOSYMLINKS" = "x1" ; then
48047 COND_USE_SOSYMLINKS_1=""
48048 fi
48049
eb730a0c
JS
48050 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48051 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48052 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48053 fi
48054
a848cd7e
SC
48055 COND_USE_SOVERLINUX_1="#"
48056 if test "x$USE_SOVERLINUX" = "x1" ; then
48057 COND_USE_SOVERLINUX_1=""
48058 fi
48059
48060 COND_USE_SOVERSION_0="#"
48061 if test "x$USE_SOVERSION" = "x0" ; then
48062 COND_USE_SOVERSION_0=""
48063 fi
48064
48065 COND_USE_SOVERSOLARIS_1="#"
48066 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48067 COND_USE_SOVERSOLARIS_1=""
48068 fi
48069
0b78747f
MW
48070 COND_USE_THREADS_0="#"
48071 if test "x$USE_THREADS" = "x0" ; then
48072 COND_USE_THREADS_0=""
48073 fi
48074
48075 COND_USE_THREADS_1="#"
48076 if test "x$USE_THREADS" = "x1" ; then
48077 COND_USE_THREADS_1=""
48078 fi
48079
a13a7f89
RL
48080 COND_USE_XRC_1="#"
48081 if test "x$USE_XRC" = "x1" ; then
48082 COND_USE_XRC_1=""
48083 fi
48084
eb730a0c
JS
48085 COND_WINDOWS_IMPLIB_1="#"
48086 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48087 COND_WINDOWS_IMPLIB_1=""
48088 fi
48089
a848cd7e
SC
48090 COND_WITH_PLUGIN_SDL_1="#"
48091 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48092 COND_WITH_PLUGIN_SDL_1=""
48093 fi
48094
1e6eb025
VZ
48095 COND_WXUNIV_0="#"
48096 if test "x$WXUNIV" = "x0" ; then
48097 COND_WXUNIV_0=""
48098 fi
48099
a848cd7e
SC
48100 COND_WXUNIV_1="#"
48101 if test "x$WXUNIV" = "x1" ; then
48102 COND_WXUNIV_1=""
48103 fi
48104
48105 COND_WXUSE_EXPAT_BUILTIN="#"
48106 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48107 COND_WXUSE_EXPAT_BUILTIN=""
48108 fi
48109
48110 COND_WXUSE_LIBJPEG_BUILTIN="#"
48111 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48112 COND_WXUSE_LIBJPEG_BUILTIN=""
48113 fi
48114
48115 COND_WXUSE_LIBPNG_BUILTIN="#"
48116 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48117 COND_WXUSE_LIBPNG_BUILTIN=""
48118 fi
48119
48120 COND_WXUSE_LIBTIFF_BUILTIN="#"
48121 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48122 COND_WXUSE_LIBTIFF_BUILTIN=""
48123 fi
48124
48125 COND_WXUSE_ODBC_BUILTIN="#"
48126 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48127 COND_WXUSE_ODBC_BUILTIN=""
48128 fi
48129
48130 COND_WXUSE_REGEX_BUILTIN="#"
48131 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48132 COND_WXUSE_REGEX_BUILTIN=""
48133 fi
48134
48135 COND_WXUSE_ZLIB_BUILTIN="#"
48136 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48137 COND_WXUSE_ZLIB_BUILTIN=""
48138 fi
48139
48140
48141
810b94f0
MW
48142 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48143 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
48144echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
48145 { (exit 1); exit 1; }; }
48146 fi
48147
2057db16
VS
48148 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48149 { { 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
48150echo "$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;}
48151 { (exit 1); exit 1; }; }
48152 fi
48153
a848cd7e 48154
ceec2216
RL
48155if test "$wxUSE_SHARED" = "yes"; then
48156
48157 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48158 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48159
5b674b9d
DE
48160 case "${host}" in
48161 *-pc-os2_emx | *-pc-os2-emx )
48162 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48163 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48164 cp -p ${srcdir}/src/os2/dllnames.sh .
48165 cp -p ${srcdir}/src/os2/dllar.sh .
48166 ;;
48167 esac
ceec2216
RL
48168else
48169
48170 EXE_LINKER="$CXX -o"
48171
48172fi
69120ee4
VZ
48173if test "$wxUSE_OMF" = "yes"; then
48174 case "${host}" in
48175 *-pc-os2_emx | *-pc-os2-emx )
48176 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48177 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48178 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48179 ;;
48180 esac
48181fi
a848cd7e 48182
c08ebc62 48183if test $GCC_PCH = 1 ; then
254e8e29 48184 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48185fi
a848cd7e 48186
5ff751d6 48187WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48188
48189SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48190
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213
48214
48215
48216
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
a848cd7e
SC
48232
48233
48234
48235
48236
48237
48238
48239
48240
48241
48242
48243
a848cd7e
SC
48244
48245
ddd14b14 48246
370d2fd7 48247
8ced02f6 48248
a848cd7e
SC
48249
48250
48251echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48252echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48253set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48254if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48255 echo $ECHO_N "(cached) $ECHO_C" >&6
48256else
48257 cat >conftest.make <<\_ACEOF
48258all:
48259 @echo 'ac_maketemp="$(MAKE)"'
48260_ACEOF
48261# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48262eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48263if test -n "$ac_maketemp"; then
48264 eval ac_cv_prog_make_${ac_make}_set=yes
48265else
48266 eval ac_cv_prog_make_${ac_make}_set=no
48267fi
48268rm -f conftest.make
48269fi
48270if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48271 echo "$as_me:$LINENO: result: yes" >&5
48272echo "${ECHO_T}yes" >&6
48273 SET_MAKE=
48274else
48275 echo "$as_me:$LINENO: result: no" >&5
48276echo "${ECHO_T}no" >&6
48277 SET_MAKE="MAKE=${MAKE-make}"
48278fi
48279
48280
a848cd7e 48281
ceec2216
RL
48282 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48283
a848cd7e 48284
5c60e845
MW
48285if test "$USE_WIN32" = 1; then
48286 ac_config_commands="$ac_config_commands
48287 rcdefs.h
48288 "
48289
48290fi
48291
ceec2216 48292 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48293
a848cd7e 48294
ceec2216 48295 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48296
ceec2216
RL
48297
48298 ac_config_files="$ac_config_files version-script Makefile"
48299
48300
5c60e845 48301 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48302
48303
9103d280 48304
1c14217d 48305if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48306if test "$wxUSE_GUI" = "yes"; then
48307 SUBDIRS="samples demos utils contrib"
48308else SUBDIRS="samples utils"
48309fi
48310
48311
48312
48313# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48314if test "${with_cppunit_prefix+set}" = set; then
48315 withval="$with_cppunit_prefix"
48316 cppunit_config_prefix="$withval"
48317else
48318 cppunit_config_prefix=""
48319fi;
48320
48321# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48322if test "${with_cppunit_exec_prefix+set}" = set; then
48323 withval="$with_cppunit_exec_prefix"
48324 cppunit_config_exec_prefix="$withval"
48325else
48326 cppunit_config_exec_prefix=""
48327fi;
48328
48329 if test x$cppunit_config_exec_prefix != x ; then
48330 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48331 if test x${CPPUNIT_CONFIG+set} != xset ; then
48332 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48333 fi
48334 fi
48335 if test x$cppunit_config_prefix != x ; then
48336 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48337 if test x${CPPUNIT_CONFIG+set} != xset ; then
48338 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48339 fi
48340 fi
48341
48342 # Extract the first word of "cppunit-config", so it can be a program name with args.
48343set dummy cppunit-config; ac_word=$2
48344echo "$as_me:$LINENO: checking for $ac_word" >&5
48345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48346if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48347 echo $ECHO_N "(cached) $ECHO_C" >&6
48348else
48349 case $CPPUNIT_CONFIG in
48350 [\\/]* | ?:[\\/]*)
48351 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48352 ;;
48353 *)
48354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48355for as_dir in $PATH
48356do
48357 IFS=$as_save_IFS
48358 test -z "$as_dir" && as_dir=.
48359 for ac_exec_ext in '' $ac_executable_extensions; do
48360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48361 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48363 break 2
48364 fi
48365done
48366done
48367
48368 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48369 ;;
48370esac
48371fi
48372CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48373
48374if test -n "$CPPUNIT_CONFIG"; then
48375 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48376echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48377else
48378 echo "$as_me:$LINENO: result: no" >&5
48379echo "${ECHO_T}no" >&6
48380fi
48381
48382 cppunit_version_min=1.8.0
48383
48384 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48385echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48386 no_cppunit=""
48387 if test "$CPPUNIT_CONFIG" = "no" ; then
48388 no_cppunit=yes
48389 else
48390 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48391 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48392 cppunit_version=`$CPPUNIT_CONFIG --version`
48393
48394 cppunit_major_version=`echo $cppunit_version | \
48395 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48396 cppunit_minor_version=`echo $cppunit_version | \
48397 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48398 cppunit_micro_version=`echo $cppunit_version | \
48399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48400
48401 cppunit_major_min=`echo $cppunit_version_min | \
48402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48403 cppunit_minor_min=`echo $cppunit_version_min | \
48404 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48405 cppunit_micro_min=`echo $cppunit_version_min | \
48406 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48407
48408 cppunit_version_proper=`expr \
48409 $cppunit_major_version \> $cppunit_major_min \| \
48410 $cppunit_major_version \= $cppunit_major_min \& \
48411 $cppunit_minor_version \> $cppunit_minor_min \| \
48412 $cppunit_major_version \= $cppunit_major_min \& \
48413 $cppunit_minor_version \= $cppunit_minor_min \& \
48414 $cppunit_micro_version \>= $cppunit_micro_min `
48415
48416 if test "$cppunit_version_proper" = "1" ; then
48417 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48418echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48419 else
48420 echo "$as_me:$LINENO: result: no" >&5
48421echo "${ECHO_T}no" >&6
48422 no_cppunit=yes
48423 fi
48424 fi
48425
48426 if test "x$no_cppunit" = x ; then
c2218763 48427 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48428 else
48429 CPPUNIT_CFLAGS=""
48430 CPPUNIT_LIBS=""
c2218763 48431 :
a848cd7e
SC
48432 fi
48433
48434
48435
48436
48437
48438for subdir in `echo $SUBDIRS`; do
48439 if test -d ${srcdir}/${subdir} ; then
48440 if test "$wxUSE_GUI" = "yes"; then
48441 if test ${subdir} = "samples"; then
48442 makefiles="samples/Makefile.in $makefiles"
48443 for sample in `echo $SAMPLES_SUBDIRS`; do
48444 if test -d $srcdir/samples/$sample; then
48445 makefiles="samples/$sample/Makefile.in $makefiles"
48446 fi
48447 done
9c112555
MW
48448 else
48449 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48450 eval "disabled=\$$disabled_var"
48451 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48452 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48453 fi
48454 else if test ${subdir} = "samples"; then
48455 makefiles="samples/Makefile.in samples/console/Makefile.in"
48456 elif test ${subdir} = "utils"; then
6537ccf8
VS
48457 makefiles=""
48458 for util in HelpGen tex2rtf ; do
48459 if test -d $srcdir/utils/$util ; then
48460 makefiles="utils/$util/Makefile.in \
48461 utils/$util/src/Makefile.in \
48462 $makefiles"
48463 fi
48464 done
a848cd7e
SC
48465 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48466 fi
48467 fi
48468
48469 for mkin in $makefiles ; do
48470 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48471 ac_config_files="$ac_config_files $mk"
48472
48473 done
48474 fi
48475done
1c14217d 48476fi
a848cd7e
SC
48477cat >confcache <<\_ACEOF
48478# This file is a shell script that caches the results of configure
48479# tests run on this system so they can be shared between configure
48480# scripts and configure runs, see configure's option --config-cache.
48481# It is not useful on other systems. If it contains results you don't
48482# want to keep, you may remove or edit it.
48483#
48484# config.status only pays attention to the cache file if you give it
48485# the --recheck option to rerun configure.
48486#
48487# `ac_cv_env_foo' variables (set or unset) will be overridden when
48488# loading this file, other *unset* `ac_cv_foo' will be assigned the
48489# following values.
48490
48491_ACEOF
48492
48493# The following way of writing the cache mishandles newlines in values,
48494# but we know of no workaround that is simple, portable, and efficient.
48495# So, don't put newlines in cache variables' values.
48496# Ultrix sh set writes to stderr and can't be redirected directly,
48497# and sets the high bit in the cache file unless we assign to the vars.
48498{
48499 (set) 2>&1 |
48500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48501 *ac_space=\ *)
48502 # `set' does not quote correctly, so add quotes (double-quote
48503 # substitution turns \\\\ into \\, and sed turns \\ into \).
48504 sed -n \
ac1cb8d3
VS
48505 "s/'/'\\\\''/g;
48506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48507 ;;
48508 *)
48509 # `set' quotes correctly as required by POSIX, so do not add quotes.
48510 sed -n \
ac1cb8d3 48511 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48512 ;;
48513 esac;
48514} |
48515 sed '
48516 t clear
48517 : clear
48518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48519 t end
48520 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48521 : end' >>confcache
48522if diff $cache_file confcache >/dev/null 2>&1; then :; else
48523 if test -w $cache_file; then
48524 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48525 cat confcache >$cache_file
48526 else
48527 echo "not updating unwritable cache $cache_file"
48528 fi
48529fi
48530rm -f confcache
48531
48532test "x$prefix" = xNONE && prefix=$ac_default_prefix
48533# Let make expand exec_prefix.
48534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48535
48536# VPATH may cause trouble with some makes, so we remove $(srcdir),
48537# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48538# trailing colons and then remove the whole line if VPATH becomes empty
48539# (actually we leave an empty line to preserve line numbers).
48540if test "x$srcdir" = x.; then
ac1cb8d3 48541 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48542s/:*\$(srcdir):*/:/;
48543s/:*\${srcdir}:*/:/;
48544s/:*@srcdir@:*/:/;
ac1cb8d3 48545s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48546s/:*$//;
ac1cb8d3 48547s/^[^=]*=[ ]*$//;
a848cd7e
SC
48548}'
48549fi
48550
48551DEFS=-DHAVE_CONFIG_H
48552
48553ac_libobjs=
48554ac_ltlibobjs=
48555for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48556 # 1. Remove the extension, and $U if already installed.
48557 ac_i=`echo "$ac_i" |
ac1cb8d3 48558 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48559 # 2. Add them.
48560 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48561 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48562done
48563LIBOBJS=$ac_libobjs
48564
48565LTLIBOBJS=$ac_ltlibobjs
48566
48567
48568
48569: ${CONFIG_STATUS=./config.status}
48570ac_clean_files_save=$ac_clean_files
48571ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48572{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48573echo "$as_me: creating $CONFIG_STATUS" >&6;}
48574cat >$CONFIG_STATUS <<_ACEOF
48575#! $SHELL
48576# Generated by $as_me.
48577# Run this file to recreate the current configuration.
48578# Compiler output produced by configure, useful for debugging
48579# configure, is in config.log if it exists.
48580
48581debug=false
48582ac_cs_recheck=false
48583ac_cs_silent=false
48584SHELL=\${CONFIG_SHELL-$SHELL}
48585_ACEOF
48586
48587cat >>$CONFIG_STATUS <<\_ACEOF
48588## --------------------- ##
48589## M4sh Initialization. ##
48590## --------------------- ##
48591
48592# Be Bourne compatible
48593if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48594 emulate sh
48595 NULLCMD=:
48596 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48597 # is contrary to our usage. Disable this feature.
48598 alias -g '${1+"$@"}'='"$@"'
48599elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48600 set -o posix
48601fi
ac1cb8d3 48602DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48603
48604# Support unset when possible.
ac1cb8d3 48605if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48606 as_unset=unset
48607else
48608 as_unset=false
48609fi
48610
48611
48612# Work around bugs in pre-3.0 UWIN ksh.
48613$as_unset ENV MAIL MAILPATH
48614PS1='$ '
48615PS2='> '
48616PS4='+ '
48617
48618# NLS nuisances.
48619for as_var in \
48620 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48621 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48622 LC_TELEPHONE LC_TIME
48623do
ac1cb8d3 48624 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48625 eval $as_var=C; export $as_var
48626 else
48627 $as_unset $as_var
48628 fi
48629done
48630
48631# Required to use basename.
48632if expr a : '\(a\)' >/dev/null 2>&1; then
48633 as_expr=expr
48634else
48635 as_expr=false
48636fi
48637
48638if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48639 as_basename=basename
48640else
48641 as_basename=false
48642fi
48643
48644
48645# Name of the executable.
48646as_me=`$as_basename "$0" ||
48647$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48648 X"$0" : 'X\(//\)$' \| \
48649 X"$0" : 'X\(/\)$' \| \
48650 . : '\(.\)' 2>/dev/null ||
48651echo X/"$0" |
48652 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48653 /^X\/\(\/\/\)$/{ s//\1/; q; }
48654 /^X\/\(\/\).*/{ s//\1/; q; }
48655 s/.*/./; q'`
48656
48657
48658# PATH needs CR, and LINENO needs CR and PATH.
48659# Avoid depending upon Character Ranges.
48660as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48661as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48662as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48663as_cr_digits='0123456789'
48664as_cr_alnum=$as_cr_Letters$as_cr_digits
48665
48666# The user is always right.
48667if test "${PATH_SEPARATOR+set}" != set; then
48668 echo "#! /bin/sh" >conf$$.sh
48669 echo "exit 0" >>conf$$.sh
48670 chmod +x conf$$.sh
48671 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48672 PATH_SEPARATOR=';'
48673 else
48674 PATH_SEPARATOR=:
48675 fi
48676 rm -f conf$$.sh
48677fi
48678
48679
48680 as_lineno_1=$LINENO
48681 as_lineno_2=$LINENO
48682 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48683 test "x$as_lineno_1" != "x$as_lineno_2" &&
48684 test "x$as_lineno_3" = "x$as_lineno_2" || {
48685 # Find who we are. Look in the path if we contain no path at all
48686 # relative or not.
48687 case $0 in
48688 *[\\/]* ) as_myself=$0 ;;
48689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48690for as_dir in $PATH
48691do
48692 IFS=$as_save_IFS
48693 test -z "$as_dir" && as_dir=.
48694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48695done
48696
48697 ;;
48698 esac
48699 # We did not find ourselves, most probably we were run as `sh COMMAND'
48700 # in which case we are not to be found in the path.
48701 if test "x$as_myself" = x; then
48702 as_myself=$0
48703 fi
48704 if test ! -f "$as_myself"; then
48705 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48706echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48707 { (exit 1); exit 1; }; }
48708 fi
48709 case $CONFIG_SHELL in
48710 '')
48711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48712for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48713do
48714 IFS=$as_save_IFS
48715 test -z "$as_dir" && as_dir=.
48716 for as_base in sh bash ksh sh5; do
48717 case $as_dir in
48718 /*)
48719 if ("$as_dir/$as_base" -c '
48720 as_lineno_1=$LINENO
48721 as_lineno_2=$LINENO
48722 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48723 test "x$as_lineno_1" != "x$as_lineno_2" &&
48724 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48725 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48726 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48727 CONFIG_SHELL=$as_dir/$as_base
48728 export CONFIG_SHELL
48729 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48730 fi;;
48731 esac
48732 done
48733done
48734;;
48735 esac
48736
48737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48738 # uniformly replaced by the line number. The first 'sed' inserts a
48739 # line-number line before each line; the second 'sed' does the real
48740 # work. The second script uses 'N' to pair each line-number line
48741 # with the numbered line, and appends trailing '-' during
48742 # substitution so that $LINENO is not a special case at line end.
48743 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48744 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48745 sed '=' <$as_myself |
48746 sed '
48747 N
48748 s,$,-,
48749 : loop
48750 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48751 t loop
48752 s,-$,,
48753 s,^['$as_cr_digits']*\n,,
48754 ' >$as_me.lineno &&
48755 chmod +x $as_me.lineno ||
48756 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48757echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48758 { (exit 1); exit 1; }; }
48759
48760 # Don't try to exec as it changes $[0], causing all sort of problems
48761 # (the dirname of $[0] is not the place where we might find the
48762 # original and so on. Autoconf is especially sensible to this).
48763 . ./$as_me.lineno
48764 # Exit status is that of the last command.
48765 exit
48766}
48767
48768
48769case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48770 *c*,-n*) ECHO_N= ECHO_C='
48771' ECHO_T=' ' ;;
48772 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48773 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48774esac
48775
48776if expr a : '\(a\)' >/dev/null 2>&1; then
48777 as_expr=expr
48778else
48779 as_expr=false
48780fi
48781
48782rm -f conf$$ conf$$.exe conf$$.file
48783echo >conf$$.file
48784if ln -s conf$$.file conf$$ 2>/dev/null; then
48785 # We could just check for DJGPP; but this test a) works b) is more generic
48786 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48787 if test -f conf$$.exe; then
48788 # Don't use ln at all; we don't have any links
48789 as_ln_s='cp -p'
48790 else
48791 as_ln_s='ln -s'
48792 fi
48793elif ln conf$$.file conf$$ 2>/dev/null; then
48794 as_ln_s=ln
48795else
48796 as_ln_s='cp -p'
48797fi
48798rm -f conf$$ conf$$.exe conf$$.file
48799
48800if mkdir -p . 2>/dev/null; then
48801 as_mkdir_p=:
48802else
ac1cb8d3 48803 test -d ./-p && rmdir ./-p
a848cd7e
SC
48804 as_mkdir_p=false
48805fi
48806
48807as_executable_p="test -f"
48808
48809# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48810as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48811
48812# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48813as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48814
48815
48816# IFS
48817# We need space, tab and new line, in precisely that order.
48818as_nl='
48819'
48820IFS=" $as_nl"
48821
48822# CDPATH.
48823$as_unset CDPATH
48824
48825exec 6>&1
48826
48827# Open the log real soon, to keep \$[0] and so on meaningful, and to
48828# report actual input values of CONFIG_FILES etc. instead of their
48829# values after options handling. Logging --version etc. is OK.
48830exec 5>>config.log
48831{
48832 echo
48833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48834## Running $as_me. ##
48835_ASBOX
48836} >&5
48837cat >&5 <<_CSEOF
48838
dd8df4fc 48839This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48840generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48841
48842 CONFIG_FILES = $CONFIG_FILES
48843 CONFIG_HEADERS = $CONFIG_HEADERS
48844 CONFIG_LINKS = $CONFIG_LINKS
48845 CONFIG_COMMANDS = $CONFIG_COMMANDS
48846 $ $0 $@
48847
48848_CSEOF
48849echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48850echo >&5
48851_ACEOF
48852
48853# Files that config.status was made for.
48854if test -n "$ac_config_files"; then
48855 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48856fi
48857
48858if test -n "$ac_config_headers"; then
48859 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48860fi
48861
48862if test -n "$ac_config_links"; then
48863 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48864fi
48865
48866if test -n "$ac_config_commands"; then
48867 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48868fi
48869
48870cat >>$CONFIG_STATUS <<\_ACEOF
48871
48872ac_cs_usage="\
48873\`$as_me' instantiates files from templates according to the
48874current configuration.
48875
48876Usage: $0 [OPTIONS] [FILE]...
48877
48878 -h, --help print this help, then exit
48879 -V, --version print version number, then exit
48880 -q, --quiet do not print progress messages
48881 -d, --debug don't remove temporary files
48882 --recheck update $as_me by reconfiguring in the same conditions
48883 --file=FILE[:TEMPLATE]
ac1cb8d3 48884 instantiate the configuration file FILE
a848cd7e 48885 --header=FILE[:TEMPLATE]
ac1cb8d3 48886 instantiate the configuration header FILE
a848cd7e
SC
48887
48888Configuration files:
48889$config_files
48890
48891Configuration headers:
48892$config_headers
48893
48894Configuration commands:
48895$config_commands
48896
48897Report bugs to <bug-autoconf@gnu.org>."
48898_ACEOF
48899
48900cat >>$CONFIG_STATUS <<_ACEOF
48901ac_cs_version="\\
dd8df4fc 48902wxWidgets config.status 2.7.0
ac1cb8d3 48903configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48904 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48905
ac1cb8d3 48906Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48907This config.status script is free software; the Free Software Foundation
48908gives unlimited permission to copy, distribute and modify it."
48909srcdir=$srcdir
48910INSTALL="$INSTALL"
48911_ACEOF
48912
48913cat >>$CONFIG_STATUS <<\_ACEOF
48914# If no file are specified by the user, then we need to provide default
48915# value. By we need to know if files were specified by the user.
48916ac_need_defaults=:
48917while test $# != 0
48918do
48919 case $1 in
48920 --*=*)
48921 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48922 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48923 ac_shift=:
48924 ;;
48925 -*)
48926 ac_option=$1
48927 ac_optarg=$2
48928 ac_shift=shift
48929 ;;
48930 *) # This is not an option, so the user has probably given explicit
48931 # arguments.
48932 ac_option=$1
48933 ac_need_defaults=false;;
48934 esac
48935
48936 case $ac_option in
48937 # Handling of the options.
48938_ACEOF
48939cat >>$CONFIG_STATUS <<\_ACEOF
48940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48941 ac_cs_recheck=: ;;
48942 --version | --vers* | -V )
48943 echo "$ac_cs_version"; exit 0 ;;
48944 --he | --h)
48945 # Conflict between --help and --header
48946 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48947Try \`$0 --help' for more information." >&5
48948echo "$as_me: error: ambiguous option: $1
48949Try \`$0 --help' for more information." >&2;}
48950 { (exit 1); exit 1; }; };;
48951 --help | --hel | -h )
48952 echo "$ac_cs_usage"; exit 0 ;;
48953 --debug | --d* | -d )
48954 debug=: ;;
48955 --file | --fil | --fi | --f )
48956 $ac_shift
48957 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48958 ac_need_defaults=false;;
48959 --header | --heade | --head | --hea )
48960 $ac_shift
48961 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48962 ac_need_defaults=false;;
48963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48964 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48965 ac_cs_silent=: ;;
48966
48967 # This is an error.
48968 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48969Try \`$0 --help' for more information." >&5
48970echo "$as_me: error: unrecognized option: $1
48971Try \`$0 --help' for more information." >&2;}
48972 { (exit 1); exit 1; }; } ;;
48973
48974 *) ac_config_targets="$ac_config_targets $1" ;;
48975
48976 esac
48977 shift
48978done
48979
48980ac_configure_extra_args=
48981
48982if $ac_cs_silent; then
48983 exec 6>/dev/null
48984 ac_configure_extra_args="$ac_configure_extra_args --silent"
48985fi
48986
48987_ACEOF
48988cat >>$CONFIG_STATUS <<_ACEOF
48989if \$ac_cs_recheck; then
48990 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48991 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48992fi
48993
48994_ACEOF
48995
48996cat >>$CONFIG_STATUS <<_ACEOF
48997#
48998# INIT-COMMANDS section.
48999#
49000
5c60e845
MW
49001
49002 CPP="$CPP"
49003 infile="$srcdir/include/wx/msw/genrcdefs.h"
49004 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49005
49006
ceec2216
RL
49007 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49008 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49009 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49010 LN_S="${LN_S}"
a848cd7e
SC
49011
49012
49013_ACEOF
49014
49015
49016
49017cat >>$CONFIG_STATUS <<\_ACEOF
49018for ac_config_target in $ac_config_targets
49019do
49020 case "$ac_config_target" in
49021 # Handling of arguments.
ceec2216
RL
49022 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49023 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49024 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49025 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49026 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49027 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49028 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49029 "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
49030 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49031echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49032 { (exit 1); exit 1; }; };;
49033 esac
49034done
49035
49036# If the user did not use the arguments to specify the items to instantiate,
49037# then the envvar interface is used. Set only those that are not.
49038# We use the long form for the default assignment because of an extremely
49039# bizarre bug on SunOS 4.1.3.
49040if $ac_need_defaults; then
49041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49044fi
49045
49046# Have a temporary directory for convenience. Make it in the build tree
49047# simply because there is no reason to put it here, and in addition,
49048# creating and moving files from /tmp can sometimes cause problems.
49049# Create a temporary directory, and hook for its removal unless debugging.
49050$debug ||
49051{
49052 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49053 trap '{ (exit 1); exit 1; }' 1 2 13 15
49054}
49055
49056# Create a (secure) tmp directory for tmp files.
49057
49058{
49059 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49060 test -n "$tmp" && test -d "$tmp"
49061} ||
49062{
49063 tmp=./confstat$$-$RANDOM
49064 (umask 077 && mkdir $tmp)
49065} ||
49066{
49067 echo "$me: cannot create a temporary directory in ." >&2
49068 { (exit 1); exit 1; }
49069}
49070
49071_ACEOF
49072
49073cat >>$CONFIG_STATUS <<_ACEOF
49074
49075#
49076# CONFIG_FILES section.
49077#
49078
49079# No need to generate the scripts if there are no CONFIG_FILES.
49080# This happens for instance when ./config.status config.h
49081if test -n "\$CONFIG_FILES"; then
49082 # Protect against being on the right side of a sed subst in config.status.
49083 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49084 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49085s,@SHELL@,$SHELL,;t t
49086s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49087s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49088s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49089s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49090s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49091s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49092s,@exec_prefix@,$exec_prefix,;t t
49093s,@prefix@,$prefix,;t t
49094s,@program_transform_name@,$program_transform_name,;t t
49095s,@bindir@,$bindir,;t t
49096s,@sbindir@,$sbindir,;t t
49097s,@libexecdir@,$libexecdir,;t t
49098s,@datadir@,$datadir,;t t
49099s,@sysconfdir@,$sysconfdir,;t t
49100s,@sharedstatedir@,$sharedstatedir,;t t
49101s,@localstatedir@,$localstatedir,;t t
49102s,@libdir@,$libdir,;t t
49103s,@includedir@,$includedir,;t t
49104s,@oldincludedir@,$oldincludedir,;t t
49105s,@infodir@,$infodir,;t t
49106s,@mandir@,$mandir,;t t
49107s,@build_alias@,$build_alias,;t t
49108s,@host_alias@,$host_alias,;t t
49109s,@target_alias@,$target_alias,;t t
49110s,@DEFS@,$DEFS,;t t
49111s,@ECHO_C@,$ECHO_C,;t t
49112s,@ECHO_N@,$ECHO_N,;t t
49113s,@ECHO_T@,$ECHO_T,;t t
49114s,@LIBS@,$LIBS,;t t
49115s,@build@,$build,;t t
49116s,@build_cpu@,$build_cpu,;t t
49117s,@build_vendor@,$build_vendor,;t t
49118s,@build_os@,$build_os,;t t
49119s,@host@,$host,;t t
49120s,@host_cpu@,$host_cpu,;t t
49121s,@host_vendor@,$host_vendor,;t t
49122s,@host_os@,$host_os,;t t
49123s,@target@,$target,;t t
49124s,@target_cpu@,$target_cpu,;t t
49125s,@target_vendor@,$target_vendor,;t t
49126s,@target_os@,$target_os,;t t
49127s,@CC@,$CC,;t t
49128s,@CFLAGS@,$CFLAGS,;t t
49129s,@LDFLAGS@,$LDFLAGS,;t t
49130s,@CPPFLAGS@,$CPPFLAGS,;t t
49131s,@ac_ct_CC@,$ac_ct_CC,;t t
49132s,@EXEEXT@,$EXEEXT,;t t
49133s,@OBJEXT@,$OBJEXT,;t t
49134s,@CPP@,$CPP,;t t
49135s,@EGREP@,$EGREP,;t t
49136s,@CXX@,$CXX,;t t
49137s,@CXXFLAGS@,$CXXFLAGS,;t t
49138s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49139s,@RANLIB@,$RANLIB,;t t
49140s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49141s,@AR@,$AR,;t t
8c80d384 49142s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49143s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49144s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49145s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49146s,@STRIP@,$STRIP,;t t
8c80d384 49147s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49148s,@WINDRES@,$WINDRES,;t t
49149s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49150s,@DLLTOOL@,$DLLTOOL,;t t
49151s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49152s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49153s,@LN_S@,$LN_S,;t t
bcaab0f9 49154s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
49155s,@CXXCPP@,$CXXCPP,;t t
49156s,@subdirs@,$subdirs,;t t
49157s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49158s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49159s,@GTK_LIBS@,$GTK_LIBS,;t t
49160s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49161s,@X_CFLAGS@,$X_CFLAGS,;t t
49162s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49163s,@X_LIBS@,$X_LIBS,;t t
49164s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49165s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49166s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49167s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49168s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49169s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49170s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49171s,@REZ@,$REZ,;t t
a848cd7e
SC
49172s,@DEREZ@,$DEREZ,;t t
49173s,@SETFILE@,$SETFILE,;t t
49174s,@LIBICONV@,$LIBICONV,;t t
49175s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49176s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49177s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49178s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49179s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49180s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
3565d135
RR
49181s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49182s,@HILDON_LIBS@,$HILDON_LIBS,;t t
dae87f93
RN
49183s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
49184s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
49185s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
49186s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49187s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49188s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49189s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49190s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49191s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49192s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49193s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49194s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49195s,@VENDOR@,$VENDOR,;t t
49196s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49197s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49198s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49199s,@WXUNIV@,$WXUNIV,;t t
49200s,@MONOLITHIC@,$MONOLITHIC,;t t
49201s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49202s,@EXTRALIBS@,$EXTRALIBS,;t t
49203s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49204s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49205s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49206s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49207s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49208s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49209s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49210s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
3565d135 49211s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49212s,@UNICODE@,$UNICODE,;t t
49213s,@BUILD@,$BUILD,;t t
49214s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49215s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49216s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49217s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49218s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49219s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49220s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49221s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49222s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49223s,@SET_MAKE@,$SET_MAKE,;t t
49224s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49225s,@NM@,$NM,;t t
49226s,@ac_ct_NM@,$ac_ct_NM,;t t
49227s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49228s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49229s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49230s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49231s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49232s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49233s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49234s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49235s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49236s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49237s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49238s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49239s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49240s,@LIBPREFIX@,$LIBPREFIX,;t t
49241s,@LIBEXT@,$LIBEXT,;t t
49242s,@DLLPREFIX@,$DLLPREFIX,;t t
49243s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49244s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49245s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49246s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49247s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49248s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49249s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49250s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49251s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49252s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49253s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49254s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49255s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49256s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49257s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49258s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49259s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49260s,@GCC_PCH@,$GCC_PCH,;t t
49261s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49262s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49263s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49264s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49265s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49266s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49267s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49268s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49269s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49270s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49271s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49272s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49273s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49274s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49275s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49276s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49277s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49278s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49279s,@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 49280s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 49281s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 49282s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49283s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49284s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49285s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49286s,@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 49287s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 49288s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 49289s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49290s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
49291s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49292s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49293s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49294s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49295s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49296s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49297s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49298s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49299s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49300s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49301s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49302s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49303s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49304s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49305s,@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
49306s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49307s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49308s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49309s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49310s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49311s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 49312s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49313s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49314s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49315s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49316s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49317s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49318s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49319s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49320s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49321s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49322s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49323s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49324s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49325s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49326s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49327s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49328s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49329s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49330s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49331s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49332s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49333s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49334s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49335s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49336s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49337s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49338s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49339s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49340s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
49341s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
49342s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
49343s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49344s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49345s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49346s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49347s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49348s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49349s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49350s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49351s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49352s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49353s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49354s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49355s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49356s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49357s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49358s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49359s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49360s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49361s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49362s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49363s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49364s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49365s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49366s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49367s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49368s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49369s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49370s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49371s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49372s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49373s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49374s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49375s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 49376s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49377s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49378s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49379s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49380s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49381s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49382s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49383s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49384s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49385s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49386s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49387s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49388s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49389s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49390s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49391s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49392s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49393s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49394s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49395s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49396s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49397s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49398s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49399s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49400s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49401s,@USE_GUI@,$USE_GUI,;t t
49402s,@AFMINSTALL@,$AFMINSTALL,;t t
49403s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49404s,@TOOLKIT@,$TOOLKIT,;t t
49405s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49406s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49407s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49408s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49409s,@WIDGET_SET@,$WIDGET_SET,;t t
49410s,@WX_RELEASE@,$WX_RELEASE,;t t
49411s,@WX_VERSION@,$WX_VERSION,;t t
49412s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49413s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49414s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49415s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49416s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49417s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49418s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49419s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49420s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49421s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49422s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49423s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49424s,@DISTDIR@,$DISTDIR,;t t
49425s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49426s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49427s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49428s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49429s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49430s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49431s,@RESFLAGS@,$RESFLAGS,;t t
49432s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49433s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49434s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49435s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49436s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49437s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49438s,@GCC@,$GCC,;t t
a848cd7e
SC
49439s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49440s,@LIBOBJS@,$LIBOBJS,;t t
49441s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49442CEOF
49443
49444_ACEOF
49445
49446 cat >>$CONFIG_STATUS <<\_ACEOF
49447 # Split the substitutions into bite-sized pieces for seds with
49448 # small command number limits, like on Digital OSF/1 and HP-UX.
49449 ac_max_sed_lines=48
49450 ac_sed_frag=1 # Number of current file.
49451 ac_beg=1 # First line for current file.
49452 ac_end=$ac_max_sed_lines # Line after last line for current file.
49453 ac_more_lines=:
49454 ac_sed_cmds=
49455 while $ac_more_lines; do
49456 if test $ac_beg -gt 1; then
49457 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49458 else
49459 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49460 fi
49461 if test ! -s $tmp/subs.frag; then
49462 ac_more_lines=false
49463 else
49464 # The purpose of the label and of the branching condition is to
49465 # speed up the sed processing (if there are no `@' at all, there
49466 # is no need to browse any of the substitutions).
49467 # These are the two extra sed commands mentioned above.
49468 (echo ':t
49469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49470 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49471 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49472 else
ac1cb8d3 49473 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49474 fi
49475 ac_sed_frag=`expr $ac_sed_frag + 1`
49476 ac_beg=$ac_end
49477 ac_end=`expr $ac_end + $ac_max_sed_lines`
49478 fi
49479 done
49480 if test -z "$ac_sed_cmds"; then
49481 ac_sed_cmds=cat
49482 fi
49483fi # test -n "$CONFIG_FILES"
49484
49485_ACEOF
49486cat >>$CONFIG_STATUS <<\_ACEOF
49487for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49489 case $ac_file in
49490 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49491 cat >$tmp/stdin
49492 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49493 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49494 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49496 * ) ac_file_in=$ac_file.in ;;
49497 esac
49498
49499 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49500 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49502 X"$ac_file" : 'X\(//\)[^/]' \| \
49503 X"$ac_file" : 'X\(//\)$' \| \
49504 X"$ac_file" : 'X\(/\)' \| \
49505 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49506echo X"$ac_file" |
49507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49509 /^X\(\/\/\)$/{ s//\1/; q; }
49510 /^X\(\/\).*/{ s//\1/; q; }
49511 s/.*/./; q'`
49512 { if $as_mkdir_p; then
49513 mkdir -p "$ac_dir"
49514 else
49515 as_dir="$ac_dir"
49516 as_dirs=
49517 while test ! -d "$as_dir"; do
49518 as_dirs="$as_dir $as_dirs"
49519 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49521 X"$as_dir" : 'X\(//\)[^/]' \| \
49522 X"$as_dir" : 'X\(//\)$' \| \
49523 X"$as_dir" : 'X\(/\)' \| \
49524 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49525echo X"$as_dir" |
49526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49528 /^X\(\/\/\)$/{ s//\1/; q; }
49529 /^X\(\/\).*/{ s//\1/; q; }
49530 s/.*/./; q'`
49531 done
49532 test ! -n "$as_dirs" || mkdir $as_dirs
49533 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49534echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49535 { (exit 1); exit 1; }; }; }
49536
49537 ac_builddir=.
49538
49539if test "$ac_dir" != .; then
49540 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49541 # A "../" for each directory in $ac_dir_suffix.
49542 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49543else
49544 ac_dir_suffix= ac_top_builddir=
49545fi
49546
49547case $srcdir in
49548 .) # No --srcdir option. We are building in place.
49549 ac_srcdir=.
49550 if test -z "$ac_top_builddir"; then
49551 ac_top_srcdir=.
49552 else
49553 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49554 fi ;;
49555 [\\/]* | ?:[\\/]* ) # Absolute path.
49556 ac_srcdir=$srcdir$ac_dir_suffix;
49557 ac_top_srcdir=$srcdir ;;
49558 *) # Relative path.
49559 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49560 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49561esac
ac1cb8d3
VS
49562
49563# Do not use `cd foo && pwd` to compute absolute paths, because
49564# the directories may not exist.
49565case `pwd` in
49566.) ac_abs_builddir="$ac_dir";;
49567*)
49568 case "$ac_dir" in
49569 .) ac_abs_builddir=`pwd`;;
49570 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49571 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49572 esac;;
49573esac
49574case $ac_abs_builddir in
49575.) ac_abs_top_builddir=${ac_top_builddir}.;;
49576*)
49577 case ${ac_top_builddir}. in
49578 .) ac_abs_top_builddir=$ac_abs_builddir;;
49579 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49580 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49581 esac;;
49582esac
49583case $ac_abs_builddir in
49584.) ac_abs_srcdir=$ac_srcdir;;
49585*)
49586 case $ac_srcdir in
49587 .) ac_abs_srcdir=$ac_abs_builddir;;
49588 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49589 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49590 esac;;
49591esac
49592case $ac_abs_builddir in
49593.) ac_abs_top_srcdir=$ac_top_srcdir;;
49594*)
49595 case $ac_top_srcdir in
49596 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49597 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49598 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49599 esac;;
49600esac
a848cd7e
SC
49601
49602
49603 case $INSTALL in
49604 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49605 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49606 esac
49607
3565d135
RR
49608 if test x"$ac_file" != x-; then
49609 { echo "$as_me:$LINENO: creating $ac_file" >&5
49610echo "$as_me: creating $ac_file" >&6;}
49611 rm -f "$ac_file"
49612 fi
a848cd7e
SC
49613 # Let's still pretend it is `configure' which instantiates (i.e., don't
49614 # use $as_me), people would be surprised to read:
49615 # /* config.h. Generated by config.status. */
49616 if test x"$ac_file" = x-; then
49617 configure_input=
49618 else
49619 configure_input="$ac_file. "
49620 fi
49621 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49622 sed 's,.*/,,'` by configure."
a848cd7e
SC
49623
49624 # First look for the input files in the build tree, otherwise in the
49625 # src tree.
49626 ac_file_inputs=`IFS=:
49627 for f in $ac_file_in; do
49628 case $f in
49629 -) echo $tmp/stdin ;;
49630 [\\/$]*)
ac1cb8d3
VS
49631 # Absolute (can't be DOS-style, as IFS=:)
49632 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49633echo "$as_me: error: cannot find input file: $f" >&2;}
49634 { (exit 1); exit 1; }; }
ac1cb8d3 49635 echo "$f";;
a848cd7e 49636 *) # Relative
ac1cb8d3
VS
49637 if test -f "$f"; then
49638 # Build tree
49639 echo "$f"
49640 elif test -f "$srcdir/$f"; then
49641 # Source tree
49642 echo "$srcdir/$f"
49643 else
49644 # /dev/null tree
49645 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49646echo "$as_me: error: cannot find input file: $f" >&2;}
49647 { (exit 1); exit 1; }; }
ac1cb8d3 49648 fi;;
a848cd7e
SC
49649 esac
49650 done` || { (exit 1); exit 1; }
49651_ACEOF
49652cat >>$CONFIG_STATUS <<_ACEOF
49653 sed "$ac_vpsub
49654$extrasub
49655_ACEOF
49656cat >>$CONFIG_STATUS <<\_ACEOF
49657:t
49658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49659s,@configure_input@,$configure_input,;t t
49660s,@srcdir@,$ac_srcdir,;t t
49661s,@abs_srcdir@,$ac_abs_srcdir,;t t
49662s,@top_srcdir@,$ac_top_srcdir,;t t
49663s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49664s,@builddir@,$ac_builddir,;t t
49665s,@abs_builddir@,$ac_abs_builddir,;t t
49666s,@top_builddir@,$ac_top_builddir,;t t
49667s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49668s,@INSTALL@,$ac_INSTALL,;t t
49669" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49670 rm -f $tmp/stdin
49671 if test x"$ac_file" != x-; then
49672 mv $tmp/out $ac_file
49673 else
49674 cat $tmp/out
49675 rm -f $tmp/out
49676 fi
49677
ceec2216
RL
49678 # Run the commands associated with the file.
49679 case $ac_file in
49680 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49681 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49682 esac
a848cd7e
SC
49683done
49684_ACEOF
49685cat >>$CONFIG_STATUS <<\_ACEOF
49686
49687#
49688# CONFIG_HEADER section.
49689#
49690
49691# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49692# NAME is the cpp macro being defined and VALUE is the value it is being given.
49693#
49694# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49695ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49696ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49697ac_dC=' '
49698ac_dD=',;t'
49699# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49700ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49701ac_uB='$,\1#\2define\3'
49702ac_uC=' '
49703ac_uD=',;t'
49704
49705for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49707 case $ac_file in
49708 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49709 cat >$tmp/stdin
49710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49714 * ) ac_file_in=$ac_file.in ;;
49715 esac
49716
49717 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49718echo "$as_me: creating $ac_file" >&6;}
49719
49720 # First look for the input files in the build tree, otherwise in the
49721 # src tree.
49722 ac_file_inputs=`IFS=:
49723 for f in $ac_file_in; do
49724 case $f in
49725 -) echo $tmp/stdin ;;
49726 [\\/$]*)
ac1cb8d3
VS
49727 # Absolute (can't be DOS-style, as IFS=:)
49728 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49729echo "$as_me: error: cannot find input file: $f" >&2;}
49730 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49731 # Do quote $f, to prevent DOS paths from being IFS'd.
49732 echo "$f";;
a848cd7e 49733 *) # Relative
ac1cb8d3
VS
49734 if test -f "$f"; then
49735 # Build tree
49736 echo "$f"
49737 elif test -f "$srcdir/$f"; then
49738 # Source tree
49739 echo "$srcdir/$f"
49740 else
49741 # /dev/null tree
49742 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49743echo "$as_me: error: cannot find input file: $f" >&2;}
49744 { (exit 1); exit 1; }; }
ac1cb8d3 49745 fi;;
a848cd7e
SC
49746 esac
49747 done` || { (exit 1); exit 1; }
49748 # Remove the trailing spaces.
ac1cb8d3 49749 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49750
49751_ACEOF
49752
49753# Transform confdefs.h into two sed scripts, `conftest.defines' and
49754# `conftest.undefs', that substitutes the proper values into
49755# config.h.in to produce config.h. The first handles `#define'
49756# templates, and the second `#undef' templates.
49757# And first: Protect against being on the right side of a sed subst in
49758# config.status. Protect against being in an unquoted here document
49759# in config.status.
49760rm -f conftest.defines conftest.undefs
49761# Using a here document instead of a string reduces the quoting nightmare.
49762# Putting comments in sed scripts is not portable.
49763#
49764# `end' is used to avoid that the second main sed command (meant for
49765# 0-ary CPP macros) applies to n-ary macro definitions.
49766# See the Autoconf documentation for `clear'.
49767cat >confdef2sed.sed <<\_ACEOF
49768s/[\\&,]/\\&/g
49769s,[\\$`],\\&,g
49770t clear
49771: clear
ac1cb8d3 49772s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49773t end
ac1cb8d3 49774s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49775: end
49776_ACEOF
49777# If some macros were called several times there might be several times
49778# the same #defines, which is useless. Nevertheless, we may not want to
49779# sort them, since we want the *last* AC-DEFINE to be honored.
49780uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49781sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49782rm -f confdef2sed.sed
49783
49784# This sed command replaces #undef with comments. This is necessary, for
49785# example, in the case of _POSIX_SOURCE, which is predefined and required
49786# on some systems where configure will not decide to define it.
49787cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49788s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49789_ACEOF
49790
49791# Break up conftest.defines because some shells have a limit on the size
49792# of here documents, and old seds have small limits too (100 cmds).
49793echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49794echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49795echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49796echo ' :' >>$CONFIG_STATUS
49797rm -f conftest.tail
49798while grep . conftest.defines >/dev/null
49799do
49800 # Write a limited-size here document to $tmp/defines.sed.
49801 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49802 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49803 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49804 # Work around the forget-to-reset-the-flag bug.
49805 echo 't clr' >>$CONFIG_STATUS
49806 echo ': clr' >>$CONFIG_STATUS
49807 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49808 echo 'CEOF
49809 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49810 rm -f $tmp/in
49811 mv $tmp/out $tmp/in
49812' >>$CONFIG_STATUS
49813 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49814 rm -f conftest.defines
49815 mv conftest.tail conftest.defines
49816done
49817rm -f conftest.defines
49818echo ' fi # grep' >>$CONFIG_STATUS
49819echo >>$CONFIG_STATUS
49820
49821# Break up conftest.undefs because some shells have a limit on the size
49822# of here documents, and old seds have small limits too (100 cmds).
49823echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49824rm -f conftest.tail
49825while grep . conftest.undefs >/dev/null
49826do
49827 # Write a limited-size here document to $tmp/undefs.sed.
49828 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49829 # Speed up: don't consider the non `#undef'
ac1cb8d3 49830 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49831 # Work around the forget-to-reset-the-flag bug.
49832 echo 't clr' >>$CONFIG_STATUS
49833 echo ': clr' >>$CONFIG_STATUS
49834 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49835 echo 'CEOF
49836 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49837 rm -f $tmp/in
49838 mv $tmp/out $tmp/in
49839' >>$CONFIG_STATUS
49840 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49841 rm -f conftest.undefs
49842 mv conftest.tail conftest.undefs
49843done
49844rm -f conftest.undefs
49845
49846cat >>$CONFIG_STATUS <<\_ACEOF
49847 # Let's still pretend it is `configure' which instantiates (i.e., don't
49848 # use $as_me), people would be surprised to read:
49849 # /* config.h. Generated by config.status. */
49850 if test x"$ac_file" = x-; then
49851 echo "/* Generated by configure. */" >$tmp/config.h
49852 else
49853 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49854 fi
49855 cat $tmp/in >>$tmp/config.h
49856 rm -f $tmp/in
49857 if test x"$ac_file" != x-; then
49858 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49859 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49860echo "$as_me: $ac_file is unchanged" >&6;}
49861 else
49862 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49863$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49864 X"$ac_file" : 'X\(//\)[^/]' \| \
49865 X"$ac_file" : 'X\(//\)$' \| \
49866 X"$ac_file" : 'X\(/\)' \| \
49867 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49868echo X"$ac_file" |
49869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49871 /^X\(\/\/\)$/{ s//\1/; q; }
49872 /^X\(\/\).*/{ s//\1/; q; }
49873 s/.*/./; q'`
49874 { if $as_mkdir_p; then
49875 mkdir -p "$ac_dir"
49876 else
49877 as_dir="$ac_dir"
49878 as_dirs=
49879 while test ! -d "$as_dir"; do
49880 as_dirs="$as_dir $as_dirs"
49881 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49883 X"$as_dir" : 'X\(//\)[^/]' \| \
49884 X"$as_dir" : 'X\(//\)$' \| \
49885 X"$as_dir" : 'X\(/\)' \| \
49886 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49887echo X"$as_dir" |
49888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49890 /^X\(\/\/\)$/{ s//\1/; q; }
49891 /^X\(\/\).*/{ s//\1/; q; }
49892 s/.*/./; q'`
49893 done
49894 test ! -n "$as_dirs" || mkdir $as_dirs
49895 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49896echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49897 { (exit 1); exit 1; }; }; }
49898
49899 rm -f $ac_file
49900 mv $tmp/config.h $ac_file
49901 fi
49902 else
49903 cat $tmp/config.h
49904 rm -f $tmp/config.h
49905 fi
49906done
49907_ACEOF
49908cat >>$CONFIG_STATUS <<\_ACEOF
49909
49910#
49911# CONFIG_COMMANDS section.
49912#
49913for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49914 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49915 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49916 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49917$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49918 X"$ac_dest" : 'X\(//\)[^/]' \| \
49919 X"$ac_dest" : 'X\(//\)$' \| \
49920 X"$ac_dest" : 'X\(/\)' \| \
49921 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49922echo X"$ac_dest" |
49923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49925 /^X\(\/\/\)$/{ s//\1/; q; }
49926 /^X\(\/\).*/{ s//\1/; q; }
49927 s/.*/./; q'`
ac1cb8d3
VS
49928 { if $as_mkdir_p; then
49929 mkdir -p "$ac_dir"
49930 else
49931 as_dir="$ac_dir"
49932 as_dirs=
49933 while test ! -d "$as_dir"; do
49934 as_dirs="$as_dir $as_dirs"
49935 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49937 X"$as_dir" : 'X\(//\)[^/]' \| \
49938 X"$as_dir" : 'X\(//\)$' \| \
49939 X"$as_dir" : 'X\(/\)' \| \
49940 . : '\(.\)' 2>/dev/null ||
49941echo X"$as_dir" |
49942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49944 /^X\(\/\/\)$/{ s//\1/; q; }
49945 /^X\(\/\).*/{ s//\1/; q; }
49946 s/.*/./; q'`
49947 done
49948 test ! -n "$as_dirs" || mkdir $as_dirs
49949 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49950echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49951 { (exit 1); exit 1; }; }; }
49952
a848cd7e
SC
49953 ac_builddir=.
49954
49955if test "$ac_dir" != .; then
49956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49957 # A "../" for each directory in $ac_dir_suffix.
49958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49959else
49960 ac_dir_suffix= ac_top_builddir=
49961fi
49962
49963case $srcdir in
49964 .) # No --srcdir option. We are building in place.
49965 ac_srcdir=.
49966 if test -z "$ac_top_builddir"; then
49967 ac_top_srcdir=.
49968 else
49969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49970 fi ;;
49971 [\\/]* | ?:[\\/]* ) # Absolute path.
49972 ac_srcdir=$srcdir$ac_dir_suffix;
49973 ac_top_srcdir=$srcdir ;;
49974 *) # Relative path.
49975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49977esac
ac1cb8d3
VS
49978
49979# Do not use `cd foo && pwd` to compute absolute paths, because
49980# the directories may not exist.
49981case `pwd` in
49982.) ac_abs_builddir="$ac_dir";;
49983*)
49984 case "$ac_dir" in
49985 .) ac_abs_builddir=`pwd`;;
49986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49988 esac;;
49989esac
49990case $ac_abs_builddir in
49991.) ac_abs_top_builddir=${ac_top_builddir}.;;
49992*)
49993 case ${ac_top_builddir}. in
49994 .) ac_abs_top_builddir=$ac_abs_builddir;;
49995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49997 esac;;
49998esac
49999case $ac_abs_builddir in
50000.) ac_abs_srcdir=$ac_srcdir;;
50001*)
50002 case $ac_srcdir in
50003 .) ac_abs_srcdir=$ac_abs_builddir;;
50004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50006 esac;;
50007esac
50008case $ac_abs_builddir in
50009.) ac_abs_top_srcdir=$ac_top_srcdir;;
50010*)
50011 case $ac_top_srcdir in
50012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50015 esac;;
50016esac
a848cd7e
SC
50017
50018
50019 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50020echo "$as_me: executing $ac_dest commands" >&6;}
50021 case $ac_dest in
5c60e845
MW
50022 rcdefs.h )
50023 mkdir -p $outdir &&
50024 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50025 ;;
ceec2216
RL
50026 wx-config ) rm -f wx-config
50027 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50028 ;;
a848cd7e
SC
50029 esac
50030done
50031_ACEOF
50032
50033cat >>$CONFIG_STATUS <<\_ACEOF
50034
50035{ (exit 0); exit 0; }
50036_ACEOF
50037chmod +x $CONFIG_STATUS
50038ac_clean_files=$ac_clean_files_save
50039
50040
50041# configure is writing to config.log, and then calls config.status.
50042# config.status does its own redirection, appending to config.log.
50043# Unfortunately, on DOS this fails, as config.log is still kept open
50044# by configure, so config.status won't be able to write to it; its
50045# output is simply discarded. So we exec the FD to /dev/null,
50046# effectively closing config.log, so it can be properly (re)opened and
50047# appended to by config.status. When coming back to configure, we
50048# need to make the FD available again.
50049if test "$no_create" != yes; then
50050 ac_cs_success=:
50051 ac_config_status_args=
50052 test "$silent" = yes &&
50053 ac_config_status_args="$ac_config_status_args --quiet"
50054 exec 5>/dev/null
50055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50056 exec 5>>config.log
50057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50058 # would make configure fail if this is the last instruction.
50059 $ac_cs_success || { (exit 1); exit 1; }
50060fi
50061
50062#
50063# CONFIG_SUBDIRS section.
50064#
50065if test "$no_recursion" != yes; then
50066
50067 # Remove --cache-file and --srcdir arguments so they do not pile up.
50068 ac_sub_configure_args=
50069 ac_prev=
50070 for ac_arg in $ac_configure_args; do
50071 if test -n "$ac_prev"; then
50072 ac_prev=
50073 continue
50074 fi
50075 case $ac_arg in
50076 -cache-file | --cache-file | --cache-fil | --cache-fi \
50077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50078 ac_prev=cache_file ;;
50079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50081 | --c=*)
50082 ;;
50083 --config-cache | -C)
50084 ;;
50085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50086 ac_prev=srcdir ;;
50087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50088 ;;
50089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50090 ac_prev=prefix ;;
50091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50092 ;;
50093 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50094 esac
50095 done
50096
50097 # Always prepend --prefix to ensure using the same prefix
50098 # in subdir configurations.
50099 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50100
50101 ac_popdir=`pwd`
50102 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50103
50104 # Do not complain, so a configure script can configure whichever
50105 # parts of a large source tree are present.
50106 test -d $srcdir/$ac_dir || continue
50107
50108 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50109echo "$as_me: configuring in $ac_dir" >&6;}
50110 { if $as_mkdir_p; then
50111 mkdir -p "$ac_dir"
50112 else
50113 as_dir="$ac_dir"
50114 as_dirs=
50115 while test ! -d "$as_dir"; do
50116 as_dirs="$as_dir $as_dirs"
50117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50119 X"$as_dir" : 'X\(//\)[^/]' \| \
50120 X"$as_dir" : 'X\(//\)$' \| \
50121 X"$as_dir" : 'X\(/\)' \| \
50122 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50123echo X"$as_dir" |
50124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50126 /^X\(\/\/\)$/{ s//\1/; q; }
50127 /^X\(\/\).*/{ s//\1/; q; }
50128 s/.*/./; q'`
50129 done
50130 test ! -n "$as_dirs" || mkdir $as_dirs
50131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50133 { (exit 1); exit 1; }; }; }
50134
50135 ac_builddir=.
50136
50137if test "$ac_dir" != .; then
50138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50139 # A "../" for each directory in $ac_dir_suffix.
50140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50141else
50142 ac_dir_suffix= ac_top_builddir=
50143fi
50144
50145case $srcdir in
50146 .) # No --srcdir option. We are building in place.
50147 ac_srcdir=.
50148 if test -z "$ac_top_builddir"; then
50149 ac_top_srcdir=.
50150 else
50151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50152 fi ;;
50153 [\\/]* | ?:[\\/]* ) # Absolute path.
50154 ac_srcdir=$srcdir$ac_dir_suffix;
50155 ac_top_srcdir=$srcdir ;;
50156 *) # Relative path.
50157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50159esac
ac1cb8d3
VS
50160
50161# Do not use `cd foo && pwd` to compute absolute paths, because
50162# the directories may not exist.
50163case `pwd` in
50164.) ac_abs_builddir="$ac_dir";;
50165*)
50166 case "$ac_dir" in
50167 .) ac_abs_builddir=`pwd`;;
50168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50170 esac;;
50171esac
50172case $ac_abs_builddir in
50173.) ac_abs_top_builddir=${ac_top_builddir}.;;
50174*)
50175 case ${ac_top_builddir}. in
50176 .) ac_abs_top_builddir=$ac_abs_builddir;;
50177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50179 esac;;
50180esac
50181case $ac_abs_builddir in
50182.) ac_abs_srcdir=$ac_srcdir;;
50183*)
50184 case $ac_srcdir in
50185 .) ac_abs_srcdir=$ac_abs_builddir;;
50186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50188 esac;;
50189esac
50190case $ac_abs_builddir in
50191.) ac_abs_top_srcdir=$ac_top_srcdir;;
50192*)
50193 case $ac_top_srcdir in
50194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50197 esac;;
50198esac
a848cd7e
SC
50199
50200
50201 cd $ac_dir
50202
50203 # Check for guested configure; otherwise get Cygnus style configure.
50204 if test -f $ac_srcdir/configure.gnu; then
50205 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50206 elif test -f $ac_srcdir/configure; then
50207 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50208 elif test -f $ac_srcdir/configure.in; then
50209 ac_sub_configure=$ac_configure
50210 else
50211 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50212echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50213 ac_sub_configure=
50214 fi
50215
50216 # The recursion is here.
50217 if test -n "$ac_sub_configure"; then
50218 # Make the cache file name correct relative to the subdirectory.
50219 case $cache_file in
50220 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50221 *) # Relative path.
ac1cb8d3 50222 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50223 esac
50224
50225 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50226echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50227 # The eval makes quoting arguments work.
50228 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50229 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50230 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50231echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50232 { (exit 1); exit 1; }; }
50233 fi
50234
3565d135 50235 cd $ac_popdir
a848cd7e
SC
50236 done
50237fi
50238
50239
50240echo
77ffb593 50241echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50242echo ""
4d4ff94c 50243echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50244echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50245
77ffb593
JS
50246echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50247echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50248echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50249
77ffb593 50250echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50251echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50252echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50253
77ffb593 50254echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50255echo " jpeg ${wxUSE_LIBJPEG-none}"
50256echo " png ${wxUSE_LIBPNG-none}"
50257echo " regex ${wxUSE_REGEX}"
50258echo " tiff ${wxUSE_LIBTIFF-none}"
50259if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50260echo " xpm ${wxUSE_LIBXPM-none}"
50261fi
50262echo " zlib ${wxUSE_ZLIB}"
50263echo " odbc ${wxUSE_ODBC}"
50264echo " expat ${wxUSE_EXPAT}"
50265echo " libmspack ${wxUSE_LIBMSPACK}"
50266echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50267echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
3565d135 50268echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50269
50270echo ""
50271