]> git.saurik.com Git - wxWidgets.git/blame - configure
we have dlerror() under Darwin
[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"
91dea314 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 RESCOMP ac_ct_RESCOMP 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 DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_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 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 WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC 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
984 --enable-imaglist use wxImageList class
985 --enable-listbook use wxListbook class
986 --enable-listbox use wxListBox class
987 --enable-listctrl use wxListCtrl class
988 --enable-notebook use wxNotebook class
989 --enable-radiobox use wxRadioBox class
990 --enable-radiobtn use wxRadioButton class
991 --enable-sash use wxSashWindow class
992 --enable-scrollbar use wxScrollBar class and scrollable windows
993 --enable-slider use wxSlider class
994 --enable-spinbtn use wxSpinButton class
995 --enable-spinctrl use wxSpinCtrl class
996 --enable-splitter use wxSplitterWindow class
997 --enable-statbmp use wxStaticBitmap class
998 --enable-statbox use wxStaticBox class
999 --enable-statline use wxStaticLine class
1000 --enable-stattext use wxStaticText class
1001 --enable-statusbar use wxStatusBar class
1002 --enable-tabdialog use wxTabControl class
1003 --enable-textctrl use wxTextCtrl class
1004 --enable-togglebtn use wxToggleButton class
1005 --enable-toolbar use wxToolBar class
1006 --enable-tbarnative use native wxToolBar class
1007 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1008 --enable-treebook use wxTreebook class
a848cd7e
SC
1009 --enable-treectrl use wxTreeCtrl class
1010 --enable-tipwindow use wxTipWindow class
1011 --enable-popupwin use wxPopUpWindow class
1012 --enable-commondlg use all common dialogs
1013 --enable-choicedlg use wxChoiceDialog
1014 --enable-coldlg use wxColourDialog
1015 --enable-filedlg use wxFileDialog
1016 --enable-finddlg use wxFindReplaceDialog
1017 --enable-fontdlg use wxFontDialog
1018 --enable-dirdlg use wxDirDialog
1019 --enable-msgdlg use wxMessageDialog
1020 --enable-numberdlg use wxNumberEntryDialog
1021 --enable-splash use wxSplashScreen
1022 --enable-textdlg use wxTextDialog
1023 --enable-tipdlg use startup tips
1024 --enable-progressdlg use wxProgressDialog
1025 --enable-wizarddlg use wxWizard
1026 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1027 --enable-miniframe use wxMiniFrame class
1028 --enable-tooltips use wxToolTip class
1029 --enable-splines use spline drawing code
fbe2ca43 1030 --enable-mousewheel use mousewheel
a848cd7e
SC
1031 --enable-validators use wxValidator and derived classes
1032 --enable-busyinfo use wxBusyInfo
4cb1d3da 1033 --enable-joystick use wxJoystick
38b4a946 1034 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1035 --enable-dragimage use wxDragImage
1036 --enable-accessibility enable accessibility support
38b4a946 1037 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1038 --enable-palette use wxPalette class
1039 --enable-image use wxImage class
1040 --enable-gif use gif images (GIF file format)
1041 --enable-pcx use pcx images (PCX file format)
1042 --enable-iff use iff images (IFF file format)
1043 --enable-pnm use pnm images (PNM file format)
1044 --enable-xpm use xpm images (XPM file format)
1045 --enable-icocur use Windows ICO and CUR formats
77ffb593 1046 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1047 --enable-vendor=VENDOR vendor name (win32 DLL only)
1048 --disable-largefile omit support for large files
1049 --disable-gtktest do not try to compile and run a test GTK+ program
1050 --disable-gtktest Do not try to compile and run a test GTK program
1051 --disable-sdltest Do not try to compile and run a test SDL program
1052 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1053 --disable-precomp-headers
1054 don't use precompiled headers even if compiler can
a848cd7e
SC
1055
1056Optional Packages:
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1059 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1060 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1061 --with-motif use Motif/Lesstif
1062 --with-mac use Mac OS X
1063 --with-cocoa use Cocoa
1064 --with-wine use Wine
1065 --with-msw use MS-Windows
1066 --with-pm use OS/2 Presentation Manager
1067 --with-mgl use SciTech MGL
1068 --with-microwin use MicroWindows
1069 --with-x11 use X11
1070 --with-libpng use libpng (PNG image format)
1071 --with-libjpeg use libjpeg (JPEG file format)
1072 --with-libtiff use libtiff (TIFF file format)
1073 --with-libxpm use libxpm (XPM file format)
1074 --with-libmspack use libmspack (CHM help files loading)
1075 --with-sdl use SDL for audio on Unix
d51253e8 1076 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1077 --with-opengl use OpenGL (or Mesa)
1078 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1079 --with-regex enable support for wxRegEx class
1080 --with-zlib use zlib for LZW compression
1081 --with-odbc use the IODBC and wxODBC classes
1082 --with-expat enable XML support using expat parser
ceec2216 1083 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1084 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1085 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1086 --with-x use the X Window System
1087 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1088 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1089 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1090 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1091 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1092
1093Some influential environment variables:
dcc1b6ad
VS
1094 CC C compiler command
1095 CFLAGS C compiler flags
1096 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1097 nonstandard directory <lib dir>
1098 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1099 headers in a nonstandard directory <include dir>
1100 CPP C preprocessor
1101 CXX C++ compiler command
1102 CXXFLAGS C++ compiler flags
1103 CXXCPP C++ preprocessor
a848cd7e
SC
1104
1105Use these variables to override the choices made by `configure' or to help
1106it to find libraries and programs with nonstandard names/locations.
1107
77ffb593 1108Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1109_ACEOF
1110fi
1111
1112if test "$ac_init_help" = "recursive"; then
1113 # If there are subdirs, report their specific --help.
1114 ac_popdir=`pwd`
1115 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1116 test -d $ac_dir || continue
1117 ac_builddir=.
1118
1119if test "$ac_dir" != .; then
1120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1121 # A "../" for each directory in $ac_dir_suffix.
1122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1123else
1124 ac_dir_suffix= ac_top_builddir=
1125fi
1126
1127case $srcdir in
1128 .) # No --srcdir option. We are building in place.
1129 ac_srcdir=.
1130 if test -z "$ac_top_builddir"; then
1131 ac_top_srcdir=.
1132 else
1133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1134 fi ;;
1135 [\\/]* | ?:[\\/]* ) # Absolute path.
1136 ac_srcdir=$srcdir$ac_dir_suffix;
1137 ac_top_srcdir=$srcdir ;;
1138 *) # Relative path.
1139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141esac
ac1cb8d3
VS
1142
1143# Do not use `cd foo && pwd` to compute absolute paths, because
1144# the directories may not exist.
1145case `pwd` in
1146.) ac_abs_builddir="$ac_dir";;
1147*)
1148 case "$ac_dir" in
1149 .) ac_abs_builddir=`pwd`;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1151 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_top_builddir=${ac_top_builddir}.;;
1156*)
1157 case ${ac_top_builddir}. in
1158 .) ac_abs_top_builddir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_srcdir=$ac_srcdir;;
1165*)
1166 case $ac_srcdir in
1167 .) ac_abs_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170 esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_srcdir=$ac_top_srcdir;;
1174*)
1175 case $ac_top_srcdir in
1176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1179 esac;;
1180esac
a848cd7e
SC
1181
1182 cd $ac_dir
1183 # Check for guested configure; otherwise get Cygnus style configure.
1184 if test -f $ac_srcdir/configure.gnu; then
1185 echo
1186 $SHELL $ac_srcdir/configure.gnu --help=recursive
1187 elif test -f $ac_srcdir/configure; then
1188 echo
1189 $SHELL $ac_srcdir/configure --help=recursive
1190 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1191 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1192 echo
1193 $ac_configure --help
1194 else
1195 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1196 fi
be665c07 1197 cd $ac_popdir
a848cd7e
SC
1198 done
1199fi
1200
1201test -n "$ac_init_help" && exit 0
1202if $ac_init_version; then
1203 cat <<\_ACEOF
dd8df4fc 1204wxWidgets configure 2.7.0
ac1cb8d3 1205generated by GNU Autoconf 2.59
a848cd7e 1206
ac1cb8d3 1207Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1208This configure script is free software; the Free Software Foundation
1209gives unlimited permission to copy, distribute and modify it.
1210_ACEOF
1211 exit 0
1212fi
1213exec 5>config.log
1214cat >&5 <<_ACEOF
1215This file contains any messages produced by compilers while
1216running configure, to aid debugging if configure makes a mistake.
1217
dd8df4fc 1218It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1219generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1220
1221 $ $0 $@
1222
1223_ACEOF
1224{
1225cat <<_ASUNAME
1226## --------- ##
1227## Platform. ##
1228## --------- ##
1229
1230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235
1236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1238
1239/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1240/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1243/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1244/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1245/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1246
1247_ASUNAME
1248
1249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250for as_dir in $PATH
1251do
1252 IFS=$as_save_IFS
1253 test -z "$as_dir" && as_dir=.
1254 echo "PATH: $as_dir"
1255done
1256
1257} >&5
1258
1259cat >&5 <<_ACEOF
1260
1261
1262## ----------- ##
1263## Core tests. ##
1264## ----------- ##
1265
1266_ACEOF
1267
1268
1269# Keep a trace of the command line.
1270# Strip out --no-create and --no-recursion so they do not pile up.
1271# Strip out --silent because we don't want to record it for future runs.
1272# Also quote any args containing shell meta-characters.
1273# Make two passes to allow for proper duplicate-argument suppression.
1274ac_configure_args=
1275ac_configure_args0=
1276ac_configure_args1=
1277ac_sep=
1278ac_must_keep_next=false
1279for ac_pass in 1 2
1280do
1281 for ac_arg
1282 do
1283 case $ac_arg in
1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1287 continue ;;
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 esac
1291 case $ac_pass in
1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293 2)
1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 if test $ac_must_keep_next = true; then
ac1cb8d3 1296 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1297 else
ac1cb8d3
VS
1298 case $ac_arg in
1299 *=* | --config-cache | -C | -disable-* | --disable-* \
1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 | -with-* | --with-* | -without-* | --without-* | --x)
1303 case "$ac_configure_args0 " in
1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305 esac
1306 ;;
1307 -* ) ac_must_keep_next=true ;;
1308 esac
a848cd7e
SC
1309 fi
1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 # Get rid of the leading space.
1312 ac_sep=" "
1313 ;;
1314 esac
1315 done
1316done
1317$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319
1320# When interrupted or exit'd, cleanup temporary files, and complete
1321# config.log. We remove comments because anyway the quotes in there
1322# would cause problems or look ugly.
1323# WARNING: Be sure not to use single quotes in there, as some shells,
1324# such as our DU 5.0 friend, will then `close' the trap.
1325trap 'exit_status=$?
1326 # Save into config.log some information that might help in debugging.
1327 {
1328 echo
1329
1330 cat <<\_ASBOX
1331## ---------------- ##
1332## Cache variables. ##
1333## ---------------- ##
1334_ASBOX
1335 echo
1336 # The following way of writing the cache mishandles newlines in values,
1337{
1338 (set) 2>&1 |
1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340 *ac_space=\ *)
1341 sed -n \
ac1cb8d3
VS
1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1344 ;;
1345 *)
1346 sed -n \
ac1cb8d3 1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1348 ;;
1349 esac;
1350}
1351 echo
1352
1353 cat <<\_ASBOX
1354## ----------------- ##
1355## Output variables. ##
1356## ----------------- ##
1357_ASBOX
1358 echo
1359 for ac_var in $ac_subst_vars
1360 do
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1363 done | sort
1364 echo
1365
1366 if test -n "$ac_subst_files"; then
1367 cat <<\_ASBOX
1368## ------------- ##
1369## Output files. ##
1370## ------------- ##
1371_ASBOX
1372 echo
1373 for ac_var in $ac_subst_files
1374 do
1375 eval ac_val=$`echo $ac_var`
ac1cb8d3 1376 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1377 done | sort
1378 echo
1379 fi
1380
1381 if test -s confdefs.h; then
1382 cat <<\_ASBOX
1383## ----------- ##
1384## confdefs.h. ##
1385## ----------- ##
1386_ASBOX
1387 echo
1388 sed "/^$/d" confdefs.h | sort
1389 echo
1390 fi
1391 test "$ac_signal" != 0 &&
1392 echo "$as_me: caught signal $ac_signal"
1393 echo "$as_me: exit $exit_status"
1394 } >&5
ac1cb8d3 1395 rm -f core *.core &&
a848cd7e
SC
1396 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1397 exit $exit_status
1398 ' 0
1399for ac_signal in 1 2 13 15; do
1400 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401done
1402ac_signal=0
1403
1404# confdefs.h avoids OS command line length limits that DEFS can exceed.
1405rm -rf conftest* confdefs.h
1406# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407echo >confdefs.h
1408
1409# Predefined preprocessor variables.
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_NAME "$PACKAGE_NAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_VERSION "$PACKAGE_VERSION"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_STRING "$PACKAGE_STRING"
1428_ACEOF
1429
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1433_ACEOF
1434
1435
1436# Let the site file select an alternate cache file if it wants to.
1437# Prefer explicitly selected file to automatically selected ones.
1438if test -z "$CONFIG_SITE"; then
1439 if test "x$prefix" != xNONE; then
1440 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1441 else
1442 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 fi
1444fi
1445for ac_site_file in $CONFIG_SITE; do
1446 if test -r "$ac_site_file"; then
1447 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1448echo "$as_me: loading site script $ac_site_file" >&6;}
1449 sed 's/^/| /' "$ac_site_file" >&5
1450 . "$ac_site_file"
1451 fi
1452done
1453
1454if test -r "$cache_file"; then
1455 # Some versions of bash will fail to source /dev/null (special
1456 # files actually), so we avoid doing that.
1457 if test -f "$cache_file"; then
1458 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1459echo "$as_me: loading cache $cache_file" >&6;}
1460 case $cache_file in
1461 [\\/]* | ?:[\\/]* ) . $cache_file;;
1462 *) . ./$cache_file;;
1463 esac
1464 fi
1465else
1466 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1467echo "$as_me: creating cache $cache_file" >&6;}
1468 >$cache_file
1469fi
1470
1471# Check that the precious variables saved in the cache have kept the same
1472# value.
1473ac_cache_corrupted=false
1474for ac_var in `(set) 2>&1 |
ac1cb8d3 1475 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1477 eval ac_new_set=\$ac_env_${ac_var}_set
1478 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1479 eval ac_new_val="\$ac_env_${ac_var}_value"
1480 case $ac_old_set,$ac_new_set in
1481 set,)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,set)
1486 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1487echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1488 ac_cache_corrupted=: ;;
1489 ,);;
1490 *)
1491 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1492 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1493echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1494 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1495echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1496 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1497echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1498 ac_cache_corrupted=:
a848cd7e
SC
1499 fi;;
1500 esac
1501 # Pass precious variables to config.status.
1502 if test "$ac_new_set" = set; then
1503 case $ac_new_val in
1504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1505 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1506 *) ac_arg=$ac_var=$ac_new_val ;;
1507 esac
1508 case " $ac_configure_args " in
1509 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1510 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1511 esac
1512 fi
1513done
1514if $ac_cache_corrupted; then
1515 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1516echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1517 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1518echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1519 { (exit 1); exit 1; }; }
1520fi
1521
1522ac_ext=c
1523ac_cpp='$CPP $CPPFLAGS'
1524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527
1528
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
1557ac_aux_dir=
1558for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1559 if test -f $ac_dir/install-sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 break
1563 elif test -f $ac_dir/install.sh; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 break
1567 elif test -f $ac_dir/shtool; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1570 break
1571 fi
1572done
1573if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1575echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1576 { (exit 1); exit 1; }; }
1577fi
1578ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582# Make sure we can run config.sub.
1583$ac_config_sub sun4 >/dev/null 2>&1 ||
1584 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1585echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588echo "$as_me:$LINENO: checking build system type" >&5
1589echo $ECHO_N "checking build system type... $ECHO_C" >&6
1590if test "${ac_cv_build+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593 ac_cv_build_alias=$build_alias
1594test -z "$ac_cv_build_alias" &&
1595 ac_cv_build_alias=`$ac_config_guess`
1596test -z "$ac_cv_build_alias" &&
1597 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1598echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1599 { (exit 1); exit 1; }; }
1600ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1607echo "${ECHO_T}$ac_cv_build" >&6
1608build=$ac_cv_build
1609build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614echo "$as_me:$LINENO: checking host system type" >&5
1615echo $ECHO_N "checking host system type... $ECHO_C" >&6
1616if test "${ac_cv_host+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 ac_cv_host_alias=$host_alias
1620test -z "$ac_cv_host_alias" &&
1621 ac_cv_host_alias=$ac_cv_build_alias
1622ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627fi
1628echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1629echo "${ECHO_T}$ac_cv_host" >&6
1630host=$ac_cv_host
1631host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636echo "$as_me:$LINENO: checking target system type" >&5
1637echo $ECHO_N "checking target system type... $ECHO_C" >&6
1638if test "${ac_cv_target+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 ac_cv_target_alias=$target_alias
1642test "x$ac_cv_target_alias" = "x" &&
1643 ac_cv_target_alias=$ac_cv_host_alias
1644ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1646echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1648
1649fi
1650echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1651echo "${ECHO_T}$ac_cv_target" >&6
1652target=$ac_cv_target
1653target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658# The aliases save the names the user supplied, while $host etc.
1659# will get canonicalized.
1660test -n "$target_alias" &&
1661 test "$program_prefix$program_suffix$program_transform_name" = \
1662 NONENONEs,x,x, &&
1663 program_prefix=${target_alias}-
1664
1665
1666
ceec2216 1667wx_major_version_number=2
dd8df4fc
VZ
1668wx_minor_version_number=7
1669wx_release_number=0
1670wx_subrelease_number=0
a848cd7e 1671
ceec2216
RL
1672WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1673WX_VERSION=$WX_RELEASE.$wx_release_number
1674WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1675
ceec2216 1676WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1677
a848cd7e
SC
1678
1679
1680
1681USE_UNIX=1
1682USE_OS2=0
1683USE_WIN32=0
1684USE_DOS=0
1685USE_BEOS=0
1686USE_MAC=0
1687
1688USE_AIX=
1689USE_BSD= USE_DARWIN= USE_FREEBSD=
1690USE_GNU= USE_HPUX=
1691USE_LINUX=
1692USE_NETBSD=
1693USE_OPENBSD=
1694USE_OSF= USE_SGI=
1695USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1696USE_ULTRIX=
1697USE_UNIXWARE=
1698
1699USE_ALPHA=
1700
1701NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1702
1703ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1704
1705DEFAULT_wxUSE_COCOA=0
1706DEFAULT_wxUSE_GTK=0
1707DEFAULT_wxUSE_MAC=0
1708DEFAULT_wxUSE_MGL=0
1709DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_wxUSE_MSW=0
1712DEFAULT_wxUSE_PM=0
1713DEFAULT_wxUSE_X11=0
1714
1715DEFAULT_DEFAULT_wxUSE_COCOA=0
1716DEFAULT_DEFAULT_wxUSE_GTK=0
1717DEFAULT_DEFAULT_wxUSE_MAC=0
1718DEFAULT_DEFAULT_wxUSE_MGL=0
1719DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1720DEFAULT_DEFAULT_wxUSE_MOTIF=0
1721DEFAULT_DEFAULT_wxUSE_MSW=0
1722DEFAULT_DEFAULT_wxUSE_PM=0
1723DEFAULT_DEFAULT_wxUSE_X11=0
1724
1725PROGRAM_EXT=
1726SO_SUFFIX=so
1727SAMPLES_RPATH_FLAG=
1728SAMPLES_RPATH_POSTLINK=
1729
a03b8b04
RD
1730DEFAULT_STD_FLAG=yes
1731
a848cd7e
SC
1732case "${host}" in
1733 *-hp-hpux* )
1734 USE_HPUX=1
1735 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1736 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1737 SO_SUFFIX=sl
1738 cat >>confdefs.h <<\_ACEOF
1739#define __HPUX__ 1
1740_ACEOF
1741
2eef8513
VZ
1742
1743 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
a848cd7e
SC
1744 ;;
1745 *-*-linux* )
1746 USE_LINUX=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __LINUX__ 1
1749_ACEOF
1750
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-gnu* | *-*-k*bsd*-gnu )
1762 USE_GNU=1
1763 TMP=`uname -m`
1764 if test "x$TMP" = "xalpha"; then
1765 USE_ALPHA=1
1766 cat >>confdefs.h <<\_ACEOF
1767#define __ALPHA__ 1
1768_ACEOF
1769
1770 fi
1771 DEFAULT_DEFAULT_wxUSE_GTK=1
1772 ;;
1773 *-*-irix5* | *-*-irix6* )
1774 USE_SGI=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SGI__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SVR4__ 1
1782_ACEOF
1783
1784 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1785 ;;
1786 *-*-solaris2* )
1787 USE_SUN=1
1788 USE_SOLARIS=1
1789 USE_SVR4=1
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SUN__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SOLARIS__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SVR4__ 1
1800_ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1804 ;;
1805 *-*-sunos4* )
1806 USE_SUN=1
1807 USE_SUNOS=1
1808 USE_BSD=1
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SUN__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __SUNOS__ 1
1815_ACEOF
1816
1817 cat >>confdefs.h <<\_ACEOF
1818#define __BSD__ 1
1819_ACEOF
1820
1821 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1822 ;;
1823 *-*-freebsd*)
1824 USE_BSD=1
1825 USE_FREEBSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __FREEBSD__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __BSD__ 1
1832_ACEOF
1833
1834 DEFAULT_DEFAULT_wxUSE_GTK=1
1835 ;;
1836 *-*-openbsd*)
1837 USE_BSD=1
1838 USE_OPENBSD=1
1839 cat >>confdefs.h <<\_ACEOF
1840#define __OPENBSD__ 1
1841_ACEOF
1842
1843 cat >>confdefs.h <<\_ACEOF
1844#define __BSD__ 1
1845_ACEOF
1846
1847 DEFAULT_DEFAULT_wxUSE_GTK=1
1848 ;;
1849 *-*-netbsd*)
1850 USE_BSD=1
1851 USE_NETBSD=1
1852 cat >>confdefs.h <<\_ACEOF
1853#define __NETBSD__ 1
1854_ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857#define __BSD__ 1
1858_ACEOF
1859
1860 DEFAULT_DEFAULT_wxUSE_GTK=1
1861 ;;
1862 *-*-osf* )
1863 USE_ALPHA=1
1864 USE_OSF=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __OSF__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1875 ;;
1876 *-*-dgux5* )
1877 USE_ALPHA=1
1878 USE_SVR4=1
1879 cat >>confdefs.h <<\_ACEOF
1880#define __ALPHA__ 1
1881_ACEOF
1882
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SVR4__ 1
1885_ACEOF
1886
1887 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1888 ;;
1889 *-*-sysv5* )
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SYSV__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902 *-*-aix* )
1903 USE_AIX=1
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 SO_SUFFIX=a
1907 cat >>confdefs.h <<\_ACEOF
1908#define __AIX__ 1
1909_ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SYSV__ 1
1913_ACEOF
1914
1915 cat >>confdefs.h <<\_ACEOF
1916#define __SVR4__ 1
1917_ACEOF
1918
1919 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1920 ;;
1921
1922 *-*-*UnixWare*)
1923 USE_SYSV=1
1924 USE_SVR4=1
1925 USE_UNIXWARE=1
1926 cat >>confdefs.h <<\_ACEOF
1927#define __UNIXWARE__ 1
1928_ACEOF
1929
1930 ;;
1931
1932 *-*-cygwin* | *-*-mingw32* )
1933 SO_SUFFIX=dll
1934 PROGRAM_EXT=".exe"
a848cd7e 1935 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1936 DEFAULT_STD_FLAG=no
a848cd7e
SC
1937 ;;
1938
1939 *-pc-msdosdjgpp )
1940 USE_UNIX=0
1941 USE_DOS=1
1942 cat >>confdefs.h <<\_ACEOF
1943#define __DOS__ 1
1944_ACEOF
1945
1946 PROGRAM_EXT=".exe"
1947 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1948 ;;
1949
1950 *-pc-os2_emx | *-pc-os2-emx )
1951 cat >>confdefs.h <<\_ACEOF
1952#define __EMX__ 1
1953_ACEOF
1954
1955 USE_OS2=1
1956 cat >>confdefs.h <<\_ACEOF
1957#define __OS2__ 1
1958_ACEOF
1959
1960 PROGRAM_EXT=".exe"
1961 DEFAULT_DEFAULT_wxUSE_PM=1
1962 CXX=gcc
1963 LDFLAGS="$LDFLAGS -Zcrtdll"
1964 ac_executable_extensions=".exe"
1965 export ac_executable_extensions
1966 ac_save_IFS="$IFS"
1967 IFS='\\'
1968 ac_TEMP_PATH=
1969 for ac_dir in $PATH; do
1970 IFS=$ac_save_IFS
1971 if test -z "$ac_TEMP_PATH"; then
1972 ac_TEMP_PATH="$ac_dir"
1973 else
1974 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1975 fi
1976 done
1977 export PATH="$ac_TEMP_PATH"
1978 unset ac_TEMP_PATH
a03b8b04 1979 DEFAULT_STD_FLAG=no
a848cd7e
SC
1980 ;;
1981
cfda0ea8 1982 *-*-darwin* )
a848cd7e
SC
1983 USE_BSD=1
1984 USE_DARWIN=1
1985 SO_SUFFIX=dylib
1986 cat >>confdefs.h <<\_ACEOF
1987#define __BSD__ 1
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define __DARWIN__ 1
a848cd7e
SC
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define TARGET_CARBON 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1999 DEFAULT_STD_FLAG=no
a848cd7e 2000 ;;
1e9e8aba
DE
2001 powerpc-apple-macos* )
2002 USE_UNIX=0
2003 ac_cv_c_bigendian=yes
2004 SO_SUFFIX=shlib
2005 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2006 DEFAULT_STD_FLAG=no
1e9e8aba 2007 ;;
a848cd7e
SC
2008
2009 *-*-beos* )
2010 USE_BEOS=1
2011 cat >>confdefs.h <<\_ACEOF
2012#define __BEOS__ 1
2013_ACEOF
2014
2015 ;;
2016
2017 *)
2018 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2019echo "$as_me: error: unknown system type ${host}." >&2;}
2020 { (exit 1); exit 1; }; }
2021esac
2022
2023
2024
2025
2026 wx_arg_cache_file="configarg.cache"
2027 echo "loading argument cache $wx_arg_cache_file"
2028 rm -f ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}.tmp
2030 touch ${wx_arg_cache_file}
2031
2032
2033DEBUG_CONFIGURE=0
2034if test $DEBUG_CONFIGURE = 1; then
2035 DEFAULT_wxUSE_UNIVERSAL=no
2036 DEFAULT_wxUSE_STL=no
2037
2038 DEFAULT_wxUSE_NANOX=no
2039
2040 DEFAULT_wxUSE_THREADS=yes
2041
2042 DEFAULT_wxUSE_SHARED=yes
2043 DEFAULT_wxUSE_OPTIMISE=no
2044 DEFAULT_wxUSE_PROFILE=no
2045 DEFAULT_wxUSE_NO_DEPS=no
2046 DEFAULT_wxUSE_NO_RTTI=no
2047 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2048 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2049 DEFAULT_wxUSE_PERMISSIVE=no
2050 DEFAULT_wxUSE_DEBUG_FLAG=yes
2051 DEFAULT_wxUSE_DEBUG_INFO=yes
2052 DEFAULT_wxUSE_DEBUG_GDB=yes
2053 DEFAULT_wxUSE_MEM_TRACING=no
2054 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2055 DEFAULT_wxUSE_DMALLOC=no
2056 DEFAULT_wxUSE_APPLE_IEEE=no
2057
2058 DEFAULT_wxUSE_EXCEPTIONS=no
2059 DEFAULT_wxUSE_LOG=yes
2060 DEFAULT_wxUSE_LOGWINDOW=no
2061 DEFAULT_wxUSE_LOGGUI=no
2062 DEFAULT_wxUSE_LOGDIALOG=no
2063
2064 DEFAULT_wxUSE_GUI=yes
2065 DEFAULT_wxUSE_CONTROLS=no
2066
2067 DEFAULT_wxUSE_REGEX=no
2068 DEFAULT_wxUSE_XML=no
2069 DEFAULT_wxUSE_EXPAT=no
2070 DEFAULT_wxUSE_ZLIB=no
2071 DEFAULT_wxUSE_LIBPNG=no
2072 DEFAULT_wxUSE_LIBJPEG=no
2073 DEFAULT_wxUSE_LIBTIFF=no
2074 DEFAULT_wxUSE_LIBXPM=no
2075 DEFAULT_wxUSE_LIBMSPACK=no
2076 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2077 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2078 DEFAULT_wxUSE_ODBC=no
2079 DEFAULT_wxUSE_OPENGL=no
2080
2081 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2082 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2083 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2084 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2085 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2086 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2087 DEFAULT_wxUSE_CMDLINE_PARSER=no
2088 DEFAULT_wxUSE_DATETIME=no
2089 DEFAULT_wxUSE_TIMER=no
2090 DEFAULT_wxUSE_STOPWATCH=no
2091 DEFAULT_wxUSE_FILE=no
2092 DEFAULT_wxUSE_FFILE=no
07158944 2093 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2094 DEFAULT_wxUSE_TEXTBUFFER=no
2095 DEFAULT_wxUSE_TEXTFILE=no
2096 DEFAULT_wxUSE_SOUND=no
3b57de8b 2097 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2098 DEFAULT_wxUSE_INTL=no
2099 DEFAULT_wxUSE_CONFIG=no
2100 DEFAULT_wxUSE_FONTMAP=no
2101 DEFAULT_wxUSE_STREAMS=no
2102 DEFAULT_wxUSE_SOCKETS=no
2103 DEFAULT_wxUSE_OLE=no
2104 DEFAULT_wxUSE_DATAOBJ=no
2105 DEFAULT_wxUSE_DIALUP_MANAGER=no
2106 DEFAULT_wxUSE_JOYSTICK=no
2107 DEFAULT_wxUSE_DYNLIB_CLASS=no
2108 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2109 DEFAULT_wxUSE_LONGLONG=no
2110 DEFAULT_wxUSE_GEOMETRY=no
2111
2112 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2113 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2114 DEFAULT_wxUSE_POSTSCRIPT=no
2115
2116 DEFAULT_wxUSE_CLIPBOARD=no
2117 DEFAULT_wxUSE_TOOLTIPS=no
2118 DEFAULT_wxUSE_DRAG_AND_DROP=no
2119 DEFAULT_wxUSE_DRAGIMAGE=no
2120 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2121 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2122
8a7b1113 2123 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2124 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2125 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2126 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2127
2128 DEFAULT_wxUSE_RESOURCES=no
2129 DEFAULT_wxUSE_CONSTRAINTS=no
2130 DEFAULT_wxUSE_IPC=no
2131 DEFAULT_wxUSE_HELP=no
2132 DEFAULT_wxUSE_MS_HTML_HELP=no
2133 DEFAULT_wxUSE_WXHTML_HELP=no
2134 DEFAULT_wxUSE_TREELAYOUT=no
2135 DEFAULT_wxUSE_METAFILE=no
2136 DEFAULT_wxUSE_MIMETYPE=no
2137 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2138 DEFAULT_wxUSE_PROTOCOL=no
2139 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FTP=no
2141 DEFAULT_wxUSE_PROTOCOL_FILE=no
2142 DEFAULT_wxUSE_URL=no
2143
2144 DEFAULT_wxUSE_COMMONDLGS=no
2145 DEFAULT_wxUSE_CHOICEDLG=no
2146 DEFAULT_wxUSE_COLOURDLG=no
2147 DEFAULT_wxUSE_DIRDLG=no
2148 DEFAULT_wxUSE_FILEDLG=no
2149 DEFAULT_wxUSE_FINDREPLDLG=no
2150 DEFAULT_wxUSE_FONTDLG=no
2151 DEFAULT_wxUSE_MSGDLG=no
2152 DEFAULT_wxUSE_NUMBERDLG=no
2153 DEFAULT_wxUSE_TEXTDLG=no
2154 DEFAULT_wxUSE_SPLASH=no
2155 DEFAULT_wxUSE_STARTUP_TIPS=no
2156 DEFAULT_wxUSE_PROGRESSDLG=no
2157 DEFAULT_wxUSE_WIZARDDLG=no
2158
2159 DEFAULT_wxUSE_MENUS=no
2160 DEFAULT_wxUSE_MINIFRAME=no
2161 DEFAULT_wxUSE_HTML=no
91dea314 2162 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2163 DEFAULT_wxUSE_XRC=no
646b6ec1 2164 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2165 DEFAULT_wxUSE_FILESYSTEM=no
2166 DEFAULT_wxUSE_FS_INET=no
2167 DEFAULT_wxUSE_FS_ZIP=no
2168 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2169 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2170 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2171 DEFAULT_wxUSE_VALIDATORS=no
2172
2173 DEFAULT_wxUSE_ACCEL=no
2174 DEFAULT_wxUSE_BUTTON=no
2175 DEFAULT_wxUSE_BMPBUTTON=no
2176 DEFAULT_wxUSE_CALCTRL=no
2177 DEFAULT_wxUSE_CARET=no
2178 DEFAULT_wxUSE_CHECKBOX=no
2179 DEFAULT_wxUSE_CHECKLST=no
2180 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2181 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2182 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2183 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2184 DEFAULT_wxUSE_DISPLAY=no
2185 DEFAULT_wxUSE_GAUGE=no
2186 DEFAULT_wxUSE_GRID=no
2187 DEFAULT_wxUSE_IMAGLIST=no
2188 DEFAULT_wxUSE_LISTBOOK=no
2189 DEFAULT_wxUSE_LISTBOX=no
2190 DEFAULT_wxUSE_LISTCTRL=no
2191 DEFAULT_wxUSE_NOTEBOOK=no
2192 DEFAULT_wxUSE_RADIOBOX=no
2193 DEFAULT_wxUSE_RADIOBTN=no
2194 DEFAULT_wxUSE_SASH=no
2195 DEFAULT_wxUSE_SCROLLBAR=no
2196 DEFAULT_wxUSE_SLIDER=no
2197 DEFAULT_wxUSE_SPINBTN=no
2198 DEFAULT_wxUSE_SPINCTRL=no
2199 DEFAULT_wxUSE_SPLITTER=no
2200 DEFAULT_wxUSE_STATBMP=no
2201 DEFAULT_wxUSE_STATBOX=no
2202 DEFAULT_wxUSE_STATLINE=no
2203 DEFAULT_wxUSE_STATTEXT=no
2204 DEFAULT_wxUSE_STATUSBAR=yes
2205 DEFAULT_wxUSE_TABDIALOG=no
2206 DEFAULT_wxUSE_TEXTCTRL=no
2207 DEFAULT_wxUSE_TOGGLEBTN=no
2208 DEFAULT_wxUSE_TOOLBAR=no
2209 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2210 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2211 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2212 DEFAULT_wxUSE_TREECTRL=no
2213 DEFAULT_wxUSE_POPUPWIN=no
2214 DEFAULT_wxUSE_TIPWINDOW=no
2215
2216 DEFAULT_wxUSE_UNICODE=no
2217 DEFAULT_wxUSE_UNICODE_MSLU=no
2218 DEFAULT_wxUSE_WCSRTOMBS=no
2219
2220 DEFAULT_wxUSE_PALETTE=no
2221 DEFAULT_wxUSE_IMAGE=no
2222 DEFAULT_wxUSE_GIF=no
2223 DEFAULT_wxUSE_PCX=no
2224 DEFAULT_wxUSE_PNM=no
2225 DEFAULT_wxUSE_IFF=no
2226 DEFAULT_wxUSE_XPM=no
2227 DEFAULT_wxUSE_ICO_CUR=no
2228 DEFAULT_wxUSE_ACCESSIBILITY=no
2229
2230 DEFAULT_wxUSE_MONOLITHIC=no
2231 DEFAULT_wxUSE_PLUGINS=no
2232 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2233else
2234 DEFAULT_wxUSE_UNIVERSAL=no
2235 DEFAULT_wxUSE_STL=no
2236
2237 DEFAULT_wxUSE_NANOX=no
2238
2239 DEFAULT_wxUSE_THREADS=yes
2240
2241 DEFAULT_wxUSE_SHARED=yes
2242 DEFAULT_wxUSE_OPTIMISE=yes
2243 DEFAULT_wxUSE_PROFILE=no
2244 DEFAULT_wxUSE_NO_DEPS=no
2245 DEFAULT_wxUSE_NO_RTTI=no
2246 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2247 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2248 DEFAULT_wxUSE_PERMISSIVE=no
2249 DEFAULT_wxUSE_DEBUG_FLAG=no
2250 DEFAULT_wxUSE_DEBUG_INFO=no
2251 DEFAULT_wxUSE_DEBUG_GDB=no
2252 DEFAULT_wxUSE_MEM_TRACING=no
2253 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2254 DEFAULT_wxUSE_DMALLOC=no
2255 DEFAULT_wxUSE_APPLE_IEEE=yes
2256
2257 DEFAULT_wxUSE_EXCEPTIONS=yes
2258 DEFAULT_wxUSE_LOG=yes
2259 DEFAULT_wxUSE_LOGWINDOW=yes
2260 DEFAULT_wxUSE_LOGGUI=yes
2261 DEFAULT_wxUSE_LOGDIALOG=yes
2262
2263 DEFAULT_wxUSE_GUI=yes
2264
2265 DEFAULT_wxUSE_REGEX=yes
2266 DEFAULT_wxUSE_XML=yes
2267 DEFAULT_wxUSE_EXPAT=yes
2268 DEFAULT_wxUSE_ZLIB=yes
2269 DEFAULT_wxUSE_LIBPNG=yes
2270 DEFAULT_wxUSE_LIBJPEG=yes
2271 DEFAULT_wxUSE_LIBTIFF=yes
2272 DEFAULT_wxUSE_LIBXPM=yes
2273 DEFAULT_wxUSE_LIBMSPACK=yes
2274 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2275 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2276 DEFAULT_wxUSE_ODBC=no
52cb607e 2277 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2278
2279 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2280 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2281 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2282 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2283 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2284 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2285 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2286 DEFAULT_wxUSE_DATETIME=yes
2287 DEFAULT_wxUSE_TIMER=yes
2288 DEFAULT_wxUSE_STOPWATCH=yes
2289 DEFAULT_wxUSE_FILE=yes
2290 DEFAULT_wxUSE_FFILE=yes
07158944 2291 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2292 DEFAULT_wxUSE_TEXTBUFFER=yes
2293 DEFAULT_wxUSE_TEXTFILE=yes
2294 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2295 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2296 DEFAULT_wxUSE_INTL=yes
2297 DEFAULT_wxUSE_CONFIG=yes
2298 DEFAULT_wxUSE_FONTMAP=yes
2299 DEFAULT_wxUSE_STREAMS=yes
2300 DEFAULT_wxUSE_SOCKETS=yes
2301 DEFAULT_wxUSE_OLE=yes
2302 DEFAULT_wxUSE_DATAOBJ=yes
2303 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2304 DEFAULT_wxUSE_JOYSTICK=yes
2305 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2306 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2307 DEFAULT_wxUSE_LONGLONG=yes
2308 DEFAULT_wxUSE_GEOMETRY=yes
2309
2310 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2311 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2312 DEFAULT_wxUSE_POSTSCRIPT=yes
2313
2314 DEFAULT_wxUSE_CLIPBOARD=yes
2315 DEFAULT_wxUSE_TOOLTIPS=yes
2316 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2317 DEFAULT_wxUSE_DRAGIMAGE=yes
2318 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2319 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2320
8a7b1113 2321 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2322 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2323 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2324 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2325
2326 DEFAULT_wxUSE_RESOURCES=no
2327 DEFAULT_wxUSE_CONSTRAINTS=yes
2328 DEFAULT_wxUSE_IPC=yes
2329 DEFAULT_wxUSE_HELP=yes
2330 DEFAULT_wxUSE_MS_HTML_HELP=yes
2331 DEFAULT_wxUSE_WXHTML_HELP=yes
2332 DEFAULT_wxUSE_TREELAYOUT=yes
2333 DEFAULT_wxUSE_METAFILE=yes
2334 DEFAULT_wxUSE_MIMETYPE=yes
2335 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2336 DEFAULT_wxUSE_PROTOCOL=yes
2337 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2338 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2339 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2340 DEFAULT_wxUSE_URL=yes
2341
2342 DEFAULT_wxUSE_COMMONDLGS=yes
2343 DEFAULT_wxUSE_CHOICEDLG=yes
2344 DEFAULT_wxUSE_COLOURDLG=yes
2345 DEFAULT_wxUSE_DIRDLG=yes
2346 DEFAULT_wxUSE_FILEDLG=yes
2347 DEFAULT_wxUSE_FINDREPLDLG=yes
2348 DEFAULT_wxUSE_FONTDLG=yes
2349 DEFAULT_wxUSE_MSGDLG=yes
2350 DEFAULT_wxUSE_NUMBERDLG=yes
2351 DEFAULT_wxUSE_TEXTDLG=yes
2352 DEFAULT_wxUSE_SPLASH=yes
2353 DEFAULT_wxUSE_STARTUP_TIPS=yes
2354 DEFAULT_wxUSE_PROGRESSDLG=yes
2355 DEFAULT_wxUSE_WIZARDDLG=yes
2356
2357 DEFAULT_wxUSE_MENUS=yes
2358 DEFAULT_wxUSE_MINIFRAME=yes
2359 DEFAULT_wxUSE_HTML=yes
91dea314 2360 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2361 DEFAULT_wxUSE_XRC=yes
646b6ec1 2362 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2363 DEFAULT_wxUSE_FILESYSTEM=yes
2364 DEFAULT_wxUSE_FS_INET=yes
2365 DEFAULT_wxUSE_FS_ZIP=yes
2366 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2367 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2368 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2369 DEFAULT_wxUSE_VALIDATORS=yes
2370
2371 DEFAULT_wxUSE_ACCEL=yes
2372 DEFAULT_wxUSE_BUTTON=yes
2373 DEFAULT_wxUSE_BMPBUTTON=yes
2374 DEFAULT_wxUSE_CALCTRL=yes
2375 DEFAULT_wxUSE_CARET=yes
2376 DEFAULT_wxUSE_CHECKBOX=yes
2377 DEFAULT_wxUSE_CHECKLST=yes
2378 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2379 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2380 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2381 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2382 DEFAULT_wxUSE_DISPLAY=yes
2383 DEFAULT_wxUSE_GAUGE=yes
2384 DEFAULT_wxUSE_GRID=yes
2385 DEFAULT_wxUSE_IMAGLIST=yes
2386 DEFAULT_wxUSE_LISTBOOK=yes
2387 DEFAULT_wxUSE_LISTBOX=yes
2388 DEFAULT_wxUSE_LISTCTRL=yes
2389 DEFAULT_wxUSE_NOTEBOOK=yes
2390 DEFAULT_wxUSE_RADIOBOX=yes
2391 DEFAULT_wxUSE_RADIOBTN=yes
2392 DEFAULT_wxUSE_SASH=yes
2393 DEFAULT_wxUSE_SCROLLBAR=yes
2394 DEFAULT_wxUSE_SLIDER=yes
2395 DEFAULT_wxUSE_SPINBTN=yes
2396 DEFAULT_wxUSE_SPINCTRL=yes
2397 DEFAULT_wxUSE_SPLITTER=yes
2398 DEFAULT_wxUSE_STATBMP=yes
2399 DEFAULT_wxUSE_STATBOX=yes
2400 DEFAULT_wxUSE_STATLINE=yes
2401 DEFAULT_wxUSE_STATTEXT=yes
2402 DEFAULT_wxUSE_STATUSBAR=yes
2403 DEFAULT_wxUSE_TABDIALOG=no
2404 DEFAULT_wxUSE_TEXTCTRL=yes
2405 DEFAULT_wxUSE_TOGGLEBTN=yes
2406 DEFAULT_wxUSE_TOOLBAR=yes
2407 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2408 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2409 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2410 DEFAULT_wxUSE_TREECTRL=yes
2411 DEFAULT_wxUSE_POPUPWIN=yes
2412 DEFAULT_wxUSE_TIPWINDOW=yes
2413
78de529b 2414 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2415 DEFAULT_wxUSE_UNICODE_MSLU=yes
2416 DEFAULT_wxUSE_WCSRTOMBS=no
2417
2418 DEFAULT_wxUSE_PALETTE=yes
2419 DEFAULT_wxUSE_IMAGE=yes
2420 DEFAULT_wxUSE_GIF=yes
2421 DEFAULT_wxUSE_PCX=yes
2422 DEFAULT_wxUSE_IFF=no
2423 DEFAULT_wxUSE_PNM=yes
2424 DEFAULT_wxUSE_XPM=yes
2425 DEFAULT_wxUSE_ICO_CUR=yes
2426 DEFAULT_wxUSE_ACCESSIBILITY=no
2427
2428 DEFAULT_wxUSE_MONOLITHIC=no
2429 DEFAULT_wxUSE_PLUGINS=no
2430 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2431
f34ca037 2432 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2433fi
2434
2435
2436
f34ca037 2437
a848cd7e
SC
2438for toolkit in `echo $ALL_TOOLKITS`; do
2439 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 has_toolkit_in_cache=1
2442 eval "DEFAULT_$LINE"
2443 eval "CACHE_$toolkit=1"
f34ca037
MW
2444
2445 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2446 if test "x$LINE" != "x" ; then
2447 eval "DEFAULT_$LINE"
2448 fi
a848cd7e
SC
2449 fi
2450done
2451
2452
2453
2454 enablestring=
2455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2456echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2457 no_cache=0
2458 # Check whether --enable-gui or --disable-gui was given.
2459if test "${enable_gui+set}" = set; then
2460 enableval="$enable_gui"
2461
2462 if test "$enableval" = yes; then
2463 ac_cv_use_gui='wxUSE_GUI=yes'
2464 else
2465 ac_cv_use_gui='wxUSE_GUI=no'
2466 fi
2467
2468else
2469
2470 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2471 if test "x$LINE" != x ; then
2472 eval "DEFAULT_$LINE"
2473 else
2474 no_cache=1
2475 fi
2476
2477 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2478
2479fi;
2480
2481 eval "$ac_cv_use_gui"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_GUI" = yes; then
2487 echo "$as_me:$LINENO: result: yes" >&5
2488echo "${ECHO_T}yes" >&6
2489 else
2490 echo "$as_me:$LINENO: result: no" >&5
2491echo "${ECHO_T}no" >&6
2492 fi
2493
2494
2495 enablestring=
2496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2497echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2498 no_cache=0
2499 # Check whether --enable-monolithic or --disable-monolithic was given.
2500if test "${enable_monolithic+set}" = set; then
2501 enableval="$enable_monolithic"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2505 else
2506 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2519
2520fi;
2521
2522 eval "$ac_cv_use_monolithic"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_MONOLITHIC" = yes; then
2528 echo "$as_me:$LINENO: result: yes" >&5
2529echo "${ECHO_T}yes" >&6
2530 else
2531 echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6
2533 fi
2534
2535
2536 enablestring=
2537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2538echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2539 no_cache=0
2540 # Check whether --enable-plugins or --disable-plugins was given.
2541if test "${enable_plugins+set}" = set; then
2542 enableval="$enable_plugins"
2543
2544 if test "$enableval" = yes; then
2545 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2546 else
2547 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2548 fi
2549
2550else
2551
2552 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2553 if test "x$LINE" != x ; then
2554 eval "DEFAULT_$LINE"
2555 else
2556 no_cache=1
2557 fi
2558
2559 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2560
2561fi;
2562
2563 eval "$ac_cv_use_plugins"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_PLUGINS" = yes; then
2569 echo "$as_me:$LINENO: result: yes" >&5
2570echo "${ECHO_T}yes" >&6
2571 else
2572 echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6
2574 fi
2575
2576
1c14217d
VZ
2577 withstring=without
2578 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2579echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2580 no_cache=0
2581
2582# Check whether --with-subdirs or --without-subdirs was given.
2583if test "${with_subdirs+set}" = set; then
2584 withval="$with_subdirs"
2585
2586 if test "$withval" = yes; then
2587 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2588 else
2589 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2590 fi
2591
2592else
2593
2594 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
2601 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2602
2603fi;
2604
2605 eval "$ac_cv_use_subdirs"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxWITH_SUBDIRS" = yes; then
2611 echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6
2616 fi
2617
2618
a848cd7e
SC
2619if test "$wxUSE_GUI" = "yes"; then
2620
2621
2622 enablestring=
2623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2624echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2625 no_cache=0
2626 # Check whether --enable-universal or --disable-universal was given.
2627if test "${enable_universal+set}" = set; then
2628 enableval="$enable_universal"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2632 else
2633 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2634 fi
2635
2636else
2637
2638 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2646
2647fi;
2648
2649 eval "$ac_cv_use_universal"
2650 if test "$no_cache" != 1; then
2651 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2652 fi
2653
2654 if test "$wxUSE_UNIVERSAL" = yes; then
2655 echo "$as_me:$LINENO: result: yes" >&5
2656echo "${ECHO_T}yes" >&6
2657 else
2658 echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6
2660 fi
2661
2662
2663# Check whether --with-gtk or --without-gtk was given.
2664if test "${with_gtk+set}" = set; then
2665 withval="$with_gtk"
2666 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-motif or --without-motif was given.
2670if test "${with_motif+set}" = set; then
2671 withval="$with_motif"
2672 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675# Check whether --with-mac or --without-mac was given.
2676if test "${with_mac+set}" = set; then
2677 withval="$with_mac"
c228d3a4 2678 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2679fi;
2680
2681# Check whether --with-cocoa or --without-cocoa was given.
2682if test "${with_cocoa+set}" = set; then
2683 withval="$with_cocoa"
c228d3a4 2684 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2685fi;
2686
2687# Check whether --with-wine or --without-wine was given.
2688if test "${with_wine+set}" = set; then
2689 withval="$with_wine"
2690 wxUSE_WINE="$withval" CACHE_WINE=1
2691fi;
2692
2693# Check whether --with-msw or --without-msw was given.
2694if test "${with_msw+set}" = set; then
2695 withval="$with_msw"
2696 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-pm or --without-pm was given.
2700if test "${with_pm+set}" = set; then
2701 withval="$with_pm"
2702 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-mgl or --without-mgl was given.
2706if test "${with_mgl+set}" = set; then
2707 withval="$with_mgl"
2708 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-microwin or --without-microwin was given.
2712if test "${with_microwin+set}" = set; then
2713 withval="$with_microwin"
2714 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717# Check whether --with-x11 or --without-x11 was given.
2718if test "${with_x11+set}" = set; then
2719 withval="$with_x11"
2720 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723 enablestring=
2724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2725echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2726 no_cache=0
2727 # Check whether --enable-nanox or --disable-nanox was given.
2728if test "${enable_nanox+set}" = set; then
2729 enableval="$enable_nanox"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_nanox='wxUSE_NANOX=yes'
2733 else
2734 ac_cv_use_nanox='wxUSE_NANOX=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2747
2748fi;
2749
2750 eval "$ac_cv_use_nanox"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_NANOX" = yes; then
2756 echo "$as_me:$LINENO: result: yes" >&5
2757echo "${ECHO_T}yes" >&6
2758 else
2759 echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6
2761 fi
2762
2763
f34ca037
MW
2764# Check whether --enable-gtk2 or --disable-gtk2 was given.
2765if test "${enable_gtk2+set}" = set; then
2766 enableval="$enable_gtk2"
2767 wxUSE_GTK2="$enableval"
2768fi;
a848cd7e 2769
a848cd7e
SC
2770 enablestring=
2771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2772echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2773 no_cache=0
2774 # Check whether --enable-gpe or --disable-gpe was given.
2775if test "${enable_gpe+set}" = set; then
2776 enableval="$enable_gpe"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_gpe='wxUSE_GPE=yes'
2780 else
2781 ac_cv_use_gpe='wxUSE_GPE=no'
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2794
2795fi;
2796
2797 eval "$ac_cv_use_gpe"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_GPE" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 fi
2809
2810
2811
2812 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2813echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2814 no_cache=0
2815
2816# Check whether --with-libpng or --without-libpng was given.
2817if test "${with_libpng+set}" = set; then
2818 withval="$with_libpng"
2819
2820 if test "$withval" = yes; then
2821 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2822 elif test "$withval" = no; then
2823 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2824 elif test "$withval" = sys; then
2825 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2826 elif test "$withval" = builtin; then
2827 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2828 else
2829 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2830echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2831 { (exit 1); exit 1; }; }
2832 fi
2833
2834else
2835
2836 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2837 if test "x$LINE" != x ; then
2838 eval "DEFAULT_$LINE"
2839 else
2840 no_cache=1
2841 fi
2842
2843 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2844
2845fi;
2846
2847 eval "$ac_cv_use_libpng"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_LIBPNG" = yes; then
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855 elif test "$wxUSE_LIBPNG" = no; then
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858 elif test "$wxUSE_LIBPNG" = sys; then
2859 echo "$as_me:$LINENO: result: system version" >&5
2860echo "${ECHO_T}system version" >&6
2861 elif test "$wxUSE_LIBPNG" = builtin; then
2862 echo "$as_me:$LINENO: result: builtin version" >&5
2863echo "${ECHO_T}builtin version" >&6
2864 else
2865 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2866echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2867 { (exit 1); exit 1; }; }
2868 fi
2869
2870
2871 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2872echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2873 no_cache=0
2874
2875# Check whether --with-libjpeg or --without-libjpeg was given.
2876if test "${with_libjpeg+set}" = set; then
2877 withval="$with_libjpeg"
2878
2879 if test "$withval" = yes; then
2880 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2881 elif test "$withval" = no; then
2882 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2883 elif test "$withval" = sys; then
2884 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2885 elif test "$withval" = builtin; then
2886 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2887 else
2888 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2889echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2890 { (exit 1); exit 1; }; }
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2903
2904fi;
2905
2906 eval "$ac_cv_use_libjpeg"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_LIBJPEG" = yes; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6
2914 elif test "$wxUSE_LIBJPEG" = no; then
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917 elif test "$wxUSE_LIBJPEG" = sys; then
2918 echo "$as_me:$LINENO: result: system version" >&5
2919echo "${ECHO_T}system version" >&6
2920 elif test "$wxUSE_LIBJPEG" = builtin; then
2921 echo "$as_me:$LINENO: result: builtin version" >&5
2922echo "${ECHO_T}builtin version" >&6
2923 else
2924 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2925echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2926 { (exit 1); exit 1; }; }
2927 fi
2928
2929
2930 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2931echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2932 no_cache=0
2933
2934# Check whether --with-libtiff or --without-libtiff was given.
2935if test "${with_libtiff+set}" = set; then
2936 withval="$with_libtiff"
2937
2938 if test "$withval" = yes; then
2939 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2940 elif test "$withval" = no; then
2941 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2942 elif test "$withval" = sys; then
2943 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2944 elif test "$withval" = builtin; then
2945 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2946 else
2947 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2948echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951
2952else
2953
2954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2955 if test "x$LINE" != x ; then
2956 eval "DEFAULT_$LINE"
2957 else
2958 no_cache=1
2959 fi
2960
2961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2962
2963fi;
2964
2965 eval "$ac_cv_use_libtiff"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_LIBTIFF" = yes; then
2971 echo "$as_me:$LINENO: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
2973 elif test "$wxUSE_LIBTIFF" = no; then
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
2976 elif test "$wxUSE_LIBTIFF" = sys; then
2977 echo "$as_me:$LINENO: result: system version" >&5
2978echo "${ECHO_T}system version" >&6
2979 elif test "$wxUSE_LIBTIFF" = builtin; then
2980 echo "$as_me:$LINENO: result: builtin version" >&5
2981echo "${ECHO_T}builtin version" >&6
2982 else
2983 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2984echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2985 { (exit 1); exit 1; }; }
2986 fi
2987
2988
2989 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2990echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2991 no_cache=0
2992
2993# Check whether --with-libxpm or --without-libxpm was given.
2994if test "${with_libxpm+set}" = set; then
2995 withval="$with_libxpm"
2996
2997 if test "$withval" = yes; then
2998 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2999 elif test "$withval" = no; then
3000 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3001 elif test "$withval" = sys; then
3002 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3003 elif test "$withval" = builtin; then
3004 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3005 else
3006 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3007echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3008 { (exit 1); exit 1; }; }
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3021
3022fi;
3023
3024 eval "$ac_cv_use_libxpm"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBXPM" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 elif test "$wxUSE_LIBXPM" = no; then
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 elif test "$wxUSE_LIBXPM" = sys; then
3036 echo "$as_me:$LINENO: result: system version" >&5
3037echo "${ECHO_T}system version" >&6
3038 elif test "$wxUSE_LIBXPM" = builtin; then
3039 echo "$as_me:$LINENO: result: builtin version" >&5
3040echo "${ECHO_T}builtin version" >&6
3041 else
3042 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3043echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3044 { (exit 1); exit 1; }; }
3045 fi
3046
3047
1c14217d
VZ
3048 withstring=
3049 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3050echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3051 no_cache=0
3052
3053# Check whether --with-libmspack or --without-libmspack was given.
3054if test "${with_libmspack+set}" = set; then
3055 withval="$with_libmspack"
3056
3057 if test "$withval" = yes; then
3058 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3059 else
3060 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3061 fi
3062
3063else
3064
3065 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3066 if test "x$LINE" != x ; then
3067 eval "DEFAULT_$LINE"
3068 else
3069 no_cache=1
3070 fi
3071
3072 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3073
3074fi;
3075
3076 eval "$ac_cv_use_libmspack"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_LIBMSPACK" = yes; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083echo "${ECHO_T}yes" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no" >&5
3086echo "${ECHO_T}no" >&6
3087 fi
3088
3089
1c14217d
VZ
3090 withstring=
3091 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3092echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3093 no_cache=0
3094
3095# Check whether --with-sdl or --without-sdl was given.
3096if test "${with_sdl+set}" = set; then
3097 withval="$with_sdl"
3098
3099 if test "$withval" = yes; then
3100 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3101 else
3102 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3103 fi
3104
3105else
3106
3107 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3115
3116fi;
3117
3118 eval "$ac_cv_use_sdl"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_LIBSDL" = yes; then
3124 echo "$as_me:$LINENO: result: yes" >&5
3125echo "${ECHO_T}yes" >&6
3126 else
3127 echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129 fi
3130
3131
1c14217d
VZ
3132 withstring=
3133 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3134echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3135 no_cache=0
3136
3137# Check whether --with-gnomeprint or --without-gnomeprint was given.
3138if test "${with_gnomeprint+set}" = set; then
3139 withval="$with_gnomeprint"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3143 else
3144 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3157
3158fi;
3159
3160 eval "$ac_cv_use_gnomeprint"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
1c14217d
VZ
3174 withstring=
3175 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3176echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3177 no_cache=0
3178
3179# Check whether --with-opengl or --without-opengl was given.
3180if test "${with_opengl+set}" = set; then
3181 withval="$with_opengl"
3182
3183 if test "$withval" = yes; then
3184 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3185 else
3186 ac_cv_use_opengl='wxUSE_OPENGL=no'
3187 fi
3188
3189else
3190
3191 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3199
3200fi;
3201
3202 eval "$ac_cv_use_opengl"
3203 if test "$no_cache" != 1; then
3204 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3205 fi
3206
3207 if test "$wxUSE_OPENGL" = yes; then
3208 echo "$as_me:$LINENO: result: yes" >&5
3209echo "${ECHO_T}yes" >&6
3210 else
3211 echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213 fi
3214
3215
3216fi
3217
3218
1c14217d
VZ
3219 withstring=
3220 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3221echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3222 no_cache=0
3223
3224# Check whether --with-dmalloc or --without-dmalloc was given.
3225if test "${with_dmalloc+set}" = set; then
3226 withval="$with_dmalloc"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3230 else
3231 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3244
3245fi;
3246
3247 eval "$ac_cv_use_dmalloc"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_DMALLOC" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 fi
3259
3260
3261 echo "$as_me:$LINENO: checking for --with-regex" >&5
3262echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3263 no_cache=0
3264
3265# Check whether --with-regex or --without-regex was given.
3266if test "${with_regex+set}" = set; then
3267 withval="$with_regex"
3268
3269 if test "$withval" = yes; then
3270 ac_cv_use_regex='wxUSE_REGEX=yes'
3271 elif test "$withval" = no; then
3272 ac_cv_use_regex='wxUSE_REGEX=no'
3273 elif test "$withval" = sys; then
3274 ac_cv_use_regex='wxUSE_REGEX=sys'
3275 elif test "$withval" = builtin; then
3276 ac_cv_use_regex='wxUSE_REGEX=builtin'
3277 else
3278 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3279echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3293
3294fi;
3295
3296 eval "$ac_cv_use_regex"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_REGEX" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 elif test "$wxUSE_REGEX" = no; then
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 elif test "$wxUSE_REGEX" = sys; then
3308 echo "$as_me:$LINENO: result: system version" >&5
3309echo "${ECHO_T}system version" >&6
3310 elif test "$wxUSE_REGEX" = builtin; then
3311 echo "$as_me:$LINENO: result: builtin version" >&5
3312echo "${ECHO_T}builtin version" >&6
3313 else
3314 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3315echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3316 { (exit 1); exit 1; }; }
3317 fi
3318
3319
3320 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3321echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3322 no_cache=0
3323
3324# Check whether --with-zlib or --without-zlib was given.
3325if test "${with_zlib+set}" = set; then
3326 withval="$with_zlib"
3327
3328 if test "$withval" = yes; then
3329 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3330 elif test "$withval" = no; then
3331 ac_cv_use_zlib='wxUSE_ZLIB=no'
3332 elif test "$withval" = sys; then
3333 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3334 elif test "$withval" = builtin; then
3335 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3336 else
3337 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3338echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3339 { (exit 1); exit 1; }; }
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3352
3353fi;
3354
3355 eval "$ac_cv_use_zlib"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_ZLIB" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 elif test "$wxUSE_ZLIB" = no; then
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 elif test "$wxUSE_ZLIB" = sys; then
3367 echo "$as_me:$LINENO: result: system version" >&5
3368echo "${ECHO_T}system version" >&6
3369 elif test "$wxUSE_ZLIB" = builtin; then
3370 echo "$as_me:$LINENO: result: builtin version" >&5
3371echo "${ECHO_T}builtin version" >&6
3372 else
3373 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3374echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3375 { (exit 1); exit 1; }; }
3376 fi
3377
3378
3379 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3380echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3381 no_cache=0
3382
3383# Check whether --with-odbc or --without-odbc was given.
3384if test "${with_odbc+set}" = set; then
3385 withval="$with_odbc"
3386
3387 if test "$withval" = yes; then
3388 ac_cv_use_odbc='wxUSE_ODBC=yes'
3389 elif test "$withval" = no; then
3390 ac_cv_use_odbc='wxUSE_ODBC=no'
3391 elif test "$withval" = sys; then
3392 ac_cv_use_odbc='wxUSE_ODBC=sys'
3393 elif test "$withval" = builtin; then
3394 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3395 else
3396 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3397echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3398 { (exit 1); exit 1; }; }
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3411
3412fi;
3413
3414 eval "$ac_cv_use_odbc"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_ODBC" = yes; then
3420 echo "$as_me:$LINENO: result: yes" >&5
3421echo "${ECHO_T}yes" >&6
3422 elif test "$wxUSE_ODBC" = no; then
3423 echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6
3425 elif test "$wxUSE_ODBC" = sys; then
3426 echo "$as_me:$LINENO: result: system version" >&5
3427echo "${ECHO_T}system version" >&6
3428 elif test "$wxUSE_ODBC" = builtin; then
3429 echo "$as_me:$LINENO: result: builtin version" >&5
3430echo "${ECHO_T}builtin version" >&6
3431 else
3432 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3433echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3434 { (exit 1); exit 1; }; }
3435 fi
3436
3437
3438 echo "$as_me:$LINENO: checking for --with-expat" >&5
3439echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3440 no_cache=0
3441
3442# Check whether --with-expat or --without-expat was given.
3443if test "${with_expat+set}" = set; then
3444 withval="$with_expat"
3445
3446 if test "$withval" = yes; then
3447 ac_cv_use_expat='wxUSE_EXPAT=yes'
3448 elif test "$withval" = no; then
3449 ac_cv_use_expat='wxUSE_EXPAT=no'
3450 elif test "$withval" = sys; then
3451 ac_cv_use_expat='wxUSE_EXPAT=sys'
3452 elif test "$withval" = builtin; then
3453 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3454 else
3455 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3456echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3457 { (exit 1); exit 1; }; }
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3470
3471fi;
3472
3473 eval "$ac_cv_use_expat"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_EXPAT" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 elif test "$wxUSE_EXPAT" = no; then
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 elif test "$wxUSE_EXPAT" = sys; then
3485 echo "$as_me:$LINENO: result: system version" >&5
3486echo "${ECHO_T}system version" >&6
3487 elif test "$wxUSE_EXPAT" = builtin; then
3488 echo "$as_me:$LINENO: result: builtin version" >&5
3489echo "${ECHO_T}builtin version" >&6
3490 else
3491 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3492echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3493 { (exit 1); exit 1; }; }
3494 fi
3495
3496
3497
3498
3499 enablestring=
3500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3501echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3502 no_cache=0
3503 # Check whether --enable-shared or --disable-shared was given.
3504if test "${enable_shared+set}" = set; then
3505 enableval="$enable_shared"
3506
3507 if test "$enableval" = yes; then
3508 ac_cv_use_shared='wxUSE_SHARED=yes'
3509 else
3510 ac_cv_use_shared='wxUSE_SHARED=no'
3511 fi
3512
3513else
3514
3515 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3516 if test "x$LINE" != x ; then
3517 eval "DEFAULT_$LINE"
3518 else
3519 no_cache=1
3520 fi
3521
3522 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3523
3524fi;
3525
3526 eval "$ac_cv_use_shared"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_SHARED" = yes; then
3532 echo "$as_me:$LINENO: result: yes" >&5
3533echo "${ECHO_T}yes" >&6
3534 else
3535 echo "$as_me:$LINENO: result: no" >&5
3536echo "${ECHO_T}no" >&6
3537 fi
3538
3539
3540 enablestring=
3541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3542echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3543 no_cache=0
3544 # Check whether --enable-optimise or --disable-optimise was given.
3545if test "${enable_optimise+set}" = set; then
3546 enableval="$enable_optimise"
3547
3548 if test "$enableval" = yes; then
3549 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3550 else
3551 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3552 fi
3553
3554else
3555
3556 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3564
3565fi;
3566
3567 eval "$ac_cv_use_optimise"
3568 if test "$no_cache" != 1; then
3569 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3570 fi
3571
3572 if test "$wxUSE_OPTIMISE" = yes; then
3573 echo "$as_me:$LINENO: result: yes" >&5
3574echo "${ECHO_T}yes" >&6
3575 else
3576 echo "$as_me:$LINENO: result: no" >&5
3577echo "${ECHO_T}no" >&6
3578 fi
3579
3580
3581 enablestring=
3582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3583echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3584 no_cache=0
3585 # Check whether --enable-debug or --disable-debug was given.
3586if test "${enable_debug+set}" = set; then
3587 enableval="$enable_debug"
3588
3589 if test "$enableval" = yes; then
3590 ac_cv_use_debug='wxUSE_DEBUG=yes'
3591 else
3592 ac_cv_use_debug='wxUSE_DEBUG=no'
3593 fi
3594
3595else
3596
3597 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3605
3606fi;
3607
3608 eval "$ac_cv_use_debug"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_DEBUG" = yes; then
3614 echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
3619 fi
3620
3621
3622 enablestring=
3623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3624echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3625 no_cache=0
3626 # Check whether --enable-stl or --disable-stl was given.
3627if test "${enable_stl+set}" = set; then
3628 enableval="$enable_stl"
3629
3630 if test "$enableval" = yes; then
3631 ac_cv_use_stl='wxUSE_STL=yes'
3632 else
3633 ac_cv_use_stl='wxUSE_STL=no'
3634 fi
3635
3636else
3637
3638 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3646
3647fi;
3648
3649 eval "$ac_cv_use_stl"
3650 if test "$no_cache" != 1; then
3651 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3652 fi
3653
3654 if test "$wxUSE_STL" = yes; then
3655 echo "$as_me:$LINENO: result: yes" >&5
3656echo "${ECHO_T}yes" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6
3660 fi
3661
3662if test "$USE_OS2" = "1"; then
69120ee4 3663 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3664
3665 enablestring=
3666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3667echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3668 no_cache=0
3669 # Check whether --enable-omf or --disable-omf was given.
3670if test "${enable_omf+set}" = set; then
3671 enableval="$enable_omf"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_omf='wxUSE_OMF=yes'
3675 else
3676 ac_cv_use_omf='wxUSE_OMF=no'
3677 fi
3678
3679else
3680
3681 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3689
3690fi;
3691
3692 eval "$ac_cv_use_omf"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_OMF" = yes; then
3698 echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703 fi
3704
3705fi
3706
3707if test "$wxUSE_DEBUG" = "yes"; then
3708 DEFAULT_wxUSE_DEBUG_FLAG=yes
3709 DEFAULT_wxUSE_DEBUG_INFO=yes
3710 BUILD=debug
3711elif test "$wxUSE_DEBUG" = "no"; then
3712 DEFAULT_wxUSE_DEBUG_FLAG=no
3713 DEFAULT_wxUSE_DEBUG_INFO=no
3714 BUILD=release
3715fi
3716
3717
3718 enablestring=
3719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3720echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3721 no_cache=0
3722 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3723if test "${enable_debug_flag+set}" = set; then
3724 enableval="$enable_debug_flag"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3728 else
3729 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3742
3743fi;
3744
3745 eval "$ac_cv_use_debug_flag"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DEBUG_FLAG" = yes; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752echo "${ECHO_T}yes" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755echo "${ECHO_T}no" >&6
3756 fi
3757
3758
3759 enablestring=
3760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-debug_info or --disable-debug_info was given.
3764if test "${enable_debug_info+set}" = set; then
3765 enableval="$enable_debug_info"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3769 else
3770 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3783
3784fi;
3785
3786 eval "$ac_cv_use_debug_info"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DEBUG_INFO" = yes; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 fi
3798
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3805if test "${enable_debug_gdb+set}" = set; then
3806 enableval="$enable_debug_gdb"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3810 else
3811 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3824
3825fi;
3826
3827 eval "$ac_cv_use_debug_gdb"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_DEBUG_GDB" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840
3841 enablestring=
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3846if test "${enable_debug_cntxt+set}" = set; then
3847 enableval="$enable_debug_cntxt"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3851 else
3852 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3865
3866fi;
3867
3868 eval "$ac_cv_use_debug_cntxt"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879 fi
3880
3881
3882 enablestring=
3883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3887if test "${enable_mem_tracing+set}" = set; then
3888 enableval="$enable_mem_tracing"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3892 else
3893 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3906
3907fi;
3908
3909 eval "$ac_cv_use_mem_tracing"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_MEM_TRACING" = yes; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920 fi
3921
3922
3923 enablestring=
3924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3925echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3926 no_cache=0
3927 # Check whether --enable-profile or --disable-profile was given.
3928if test "${enable_profile+set}" = set; then
3929 enableval="$enable_profile"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_profile='wxUSE_PROFILE=yes'
3933 else
3934 ac_cv_use_profile='wxUSE_PROFILE=no'
3935 fi
3936
3937else
3938
3939 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3947
3948fi;
3949
3950 eval "$ac_cv_use_profile"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_PROFILE" = yes; then
3956 echo "$as_me:$LINENO: result: yes" >&5
3957echo "${ECHO_T}yes" >&6
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961 fi
3962
3963
3964 enablestring=
3965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3967 no_cache=0
3968 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3969if test "${enable_no_rtti+set}" = set; then
3970 enableval="$enable_no_rtti"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3974 else
3975 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3988
3989fi;
3990
3991 eval "$ac_cv_use_no_rtti"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_NO_RTTI" = yes; then
3997 echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6
4002 fi
4003
4004
4005 enablestring=
4006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4007echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4008 no_cache=0
4009 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4010if test "${enable_no_exceptions+set}" = set; then
4011 enableval="$enable_no_exceptions"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4015 else
4016 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4029
4030fi;
4031
4032 eval "$ac_cv_use_no_exceptions"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043 fi
4044
4045
4046 enablestring=
4047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4048echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4049 no_cache=0
4050 # Check whether --enable-permissive or --disable-permissive was given.
4051if test "${enable_permissive+set}" = set; then
4052 enableval="$enable_permissive"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4056 else
4057 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4070
4071fi;
4072
4073 eval "$ac_cv_use_permissive"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_PERMISSIVE" = yes; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080echo "${ECHO_T}yes" >&6
4081 else
4082 echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084 fi
4085
4086
4087 enablestring=
4088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4089echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4090 no_cache=0
4091 # Check whether --enable-no_deps or --disable-no_deps was given.
4092if test "${enable_no_deps+set}" = set; then
4093 enableval="$enable_no_deps"
4094
4095 if test "$enableval" = yes; then
4096 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4097 else
4098 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4099 fi
4100
4101else
4102
4103 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4104 if test "x$LINE" != x ; then
4105 eval "DEFAULT_$LINE"
4106 else
4107 no_cache=1
4108 fi
4109
4110 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4111
4112fi;
4113
4114 eval "$ac_cv_use_no_deps"
4115 if test "$no_cache" != 1; then
4116 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4117 fi
4118
4119 if test "$wxUSE_NO_DEPS" = yes; then
4120 echo "$as_me:$LINENO: result: yes" >&5
4121echo "${ECHO_T}yes" >&6
4122 else
4123 echo "$as_me:$LINENO: result: no" >&5
4124echo "${ECHO_T}no" >&6
4125 fi
4126
4127
4128
dee1a63f
MB
4129 enablestring=enable
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4132 no_cache=0
dee1a63f
MB
4133 # Check whether --enable-compat24 or --disable-compat24 was given.
4134if test "${enable_compat24+set}" = set; then
4135 enableval="$enable_compat24"
a848cd7e
SC
4136
4137 if test "$enableval" = yes; then
dee1a63f 4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4139 else
dee1a63f 4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4141 fi
4142
4143else
4144
dee1a63f 4145 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
dee1a63f 4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4153
4154fi;
4155
dee1a63f 4156 eval "$ac_cv_use_compat24"
a848cd7e 4157 if test "$no_cache" != 1; then
dee1a63f 4158 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4159 fi
4160
dee1a63f 4161 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
4170 enablestring=disable
dee1a63f
MB
4171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4172echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4173 no_cache=0
dee1a63f
MB
4174 # Check whether --enable-compat26 or --disable-compat26 was given.
4175if test "${enable_compat26+set}" = set; then
4176 enableval="$enable_compat26"
a848cd7e
SC
4177
4178 if test "$enableval" = yes; then
dee1a63f 4179 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4180 else
dee1a63f 4181 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4182 fi
4183
4184else
4185
dee1a63f 4186 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
dee1a63f 4193 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4194
4195fi;
4196
dee1a63f 4197 eval "$ac_cv_use_compat26"
a848cd7e 4198 if test "$no_cache" != 1; then
dee1a63f 4199 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4200 fi
4201
dee1a63f 4202 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4203 echo "$as_me:$LINENO: result: yes" >&5
4204echo "${ECHO_T}yes" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208 fi
4209
4210
ffa0583f
RL
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4217if test "${enable_rpath+set}" = set; then
4218 enableval="$enable_rpath"
ffa0583f
RL
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_rpath='wxUSE_RPATH=yes'
4222 else
4223 ac_cv_use_rpath='wxUSE_RPATH=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4236
a848cd7e
SC
4237fi;
4238
ffa0583f
RL
4239 eval "$ac_cv_use_rpath"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_RPATH" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
a848cd7e
SC
4252
4253
4254
4255
4256 enablestring=
4257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4258echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4259 no_cache=0
4260 # Check whether --enable-intl or --disable-intl was given.
4261if test "${enable_intl+set}" = set; then
4262 enableval="$enable_intl"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_intl='wxUSE_INTL=yes'
4266 else
4267 ac_cv_use_intl='wxUSE_INTL=no'
4268 fi
4269
4270else
4271
4272 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4273 if test "x$LINE" != x ; then
4274 eval "DEFAULT_$LINE"
4275 else
4276 no_cache=1
4277 fi
4278
4279 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4280
4281fi;
4282
4283 eval "$ac_cv_use_intl"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_INTL" = yes; then
4289 echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297 enablestring=
4298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4299echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4300 no_cache=0
4301 # Check whether --enable-config or --disable-config was given.
4302if test "${enable_config+set}" = set; then
4303 enableval="$enable_config"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_config='wxUSE_CONFIG=yes'
4307 else
4308 ac_cv_use_config='wxUSE_CONFIG=no'
4309 fi
4310
4311else
4312
4313 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4321
4322fi;
4323
4324 eval "$ac_cv_use_config"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_CONFIG" = yes; then
4330 echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332 else
4333 echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6
4335 fi
4336
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-protocols or --disable-protocols was given.
4344if test "${enable_protocols+set}" = set; then
4345 enableval="$enable_protocols"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4349 else
4350 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4363
4364fi;
4365
4366 eval "$ac_cv_use_protocols"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PROTOCOL" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
4380 enablestring=
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-ftp or --disable-ftp was given.
4385if test "${enable_ftp+set}" = set; then
4386 enableval="$enable_ftp"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4390 else
4391 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4404
4405fi;
4406
4407 eval "$ac_cv_use_ftp"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
4421 enablestring=
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-http or --disable-http was given.
4426if test "${enable_http+set}" = set; then
4427 enableval="$enable_http"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4431 else
4432 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4445
4446fi;
4447
4448 eval "$ac_cv_use_http"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459 fi
4460
4461
4462 enablestring=
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4465 no_cache=0
4466 # Check whether --enable-fileproto or --disable-fileproto was given.
4467if test "${enable_fileproto+set}" = set; then
4468 enableval="$enable_fileproto"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4472 else
4473 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4486
4487fi;
4488
4489 eval "$ac_cv_use_fileproto"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500 fi
4501
4502
4503 enablestring=
4504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4506 no_cache=0
4507 # Check whether --enable-sockets or --disable-sockets was given.
4508if test "${enable_sockets+set}" = set; then
4509 enableval="$enable_sockets"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4513 else
4514 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4515 fi
4516
4517else
4518
4519 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4527
4528fi;
4529
4530 eval "$ac_cv_use_sockets"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_SOCKETS" = yes; then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
4541 fi
4542
4543
4544 enablestring=
4545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4547 no_cache=0
4548 # Check whether --enable-ole or --disable-ole was given.
4549if test "${enable_ole+set}" = set; then
4550 enableval="$enable_ole"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_ole='wxUSE_OLE=yes'
4554 else
4555 ac_cv_use_ole='wxUSE_OLE=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4568
4569fi;
4570
4571 eval "$ac_cv_use_ole"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_OLE" = yes; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579 else
4580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582 fi
4583
4584
4585 enablestring=
4586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4587echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4588 no_cache=0
4589 # Check whether --enable-dataobj or --disable-dataobj was given.
4590if test "${enable_dataobj+set}" = set; then
4591 enableval="$enable_dataobj"
4592
4593 if test "$enableval" = yes; then
4594 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4595 else
4596 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4597 fi
4598
4599else
4600
4601 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4602 if test "x$LINE" != x ; then
4603 eval "DEFAULT_$LINE"
4604 else
4605 no_cache=1
4606 fi
4607
4608 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4609
4610fi;
4611
4612 eval "$ac_cv_use_dataobj"
4613 if test "$no_cache" != 1; then
4614 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4615 fi
4616
4617 if test "$wxUSE_DATAOBJ" = yes; then
4618 echo "$as_me:$LINENO: result: yes" >&5
4619echo "${ECHO_T}yes" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6
4623 fi
4624
4625
4626
4627 enablestring=
4628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4629echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4630 no_cache=0
4631 # Check whether --enable-ipc or --disable-ipc was given.
4632if test "${enable_ipc+set}" = set; then
4633 enableval="$enable_ipc"
4634
4635 if test "$enableval" = yes; then
4636 ac_cv_use_ipc='wxUSE_IPC=yes'
4637 else
4638 ac_cv_use_ipc='wxUSE_IPC=no'
4639 fi
4640
4641else
4642
4643 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4651
4652fi;
4653
4654 eval "$ac_cv_use_ipc"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_IPC" = yes; then
4660 echo "$as_me:$LINENO: result: yes" >&5
4661echo "${ECHO_T}yes" >&6
4662 else
4663 echo "$as_me:$LINENO: result: no" >&5
4664echo "${ECHO_T}no" >&6
4665 fi
4666
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4674if test "${enable_apple_ieee+set}" = set; then
4675 enableval="$enable_apple_ieee"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4679 else
4680 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4693
4694fi;
4695
4696 eval "$ac_cv_use_apple_ieee"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_APPLE_IEEE" = yes; then
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707 fi
4708
4709
81f90336
MW
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-arcstream or --disable-arcstream was given.
4715if test "${enable_arcstream+set}" = set; then
4716 enableval="$enable_arcstream"
4717
4718 if test "$enableval" = yes; then
9e8e867f 4719 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4720 else
9e8e867f 4721 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4722 fi
4723
4724else
4725
9e8e867f 4726 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
9e8e867f 4733 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4734
4735fi;
4736
4737 eval "$ac_cv_use_arcstream"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4740 fi
4741
9e8e867f 4742 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
4745 else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748 fi
4749
4750
a848cd7e 4751 enablestring=
36b6448c
VZ
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4754 no_cache=0
36b6448c
VZ
4755 # Check whether --enable-backtrace or --disable-backtrace was given.
4756if test "${enable_backtrace+set}" = set; then
4757 enableval="$enable_backtrace"
a848cd7e
SC
4758
4759 if test "$enableval" = yes; then
36b6448c 4760 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4761 else
36b6448c 4762 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4763 fi
4764
4765else
4766
36b6448c 4767 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
36b6448c 4774 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4775
4776fi;
4777
36b6448c 4778 eval "$ac_cv_use_backtrace"
a848cd7e 4779 if test "$no_cache" != 1; then
36b6448c 4780 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4781 fi
4782
36b6448c 4783 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789 fi
4790
4791
eaff0f0d 4792 enablestring=
36b6448c
VZ
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4795 no_cache=0
36b6448c
VZ
4796 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4797if test "${enable_catch_segvs+set}" = set; then
4798 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4799
4800 if test "$enableval" = yes; then
36b6448c 4801 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4802 else
36b6448c 4803 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4804 fi
4805
4806else
4807
36b6448c 4808 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
36b6448c 4815 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4816
4817fi;
4818
36b6448c 4819 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4820 if test "$no_cache" != 1; then
36b6448c 4821 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4822 fi
4823
36b6448c 4824 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827 else
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830 fi
4831
4832
a848cd7e
SC
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-cmdline or --disable-cmdline was given.
4838if test "${enable_cmdline+set}" = set; then
4839 enableval="$enable_cmdline"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4843 else
4844 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4857
4858fi;
4859
4860 eval "$ac_cv_use_cmdline"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871 fi
4872
4873
4874 enablestring=
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-datetime or --disable-datetime was given.
4879if test "${enable_datetime+set}" = set; then
4880 enableval="$enable_datetime"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4884 else
4885 ac_cv_use_datetime='wxUSE_DATETIME=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4898
4899fi;
4900
4901 eval "$ac_cv_use_datetime"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DATETIME" = yes; then
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
4912 fi
4913
4914
36b6448c
VZ
4915 enablestring=
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4918 no_cache=0
4919 # Check whether --enable-debugreport or --disable-debugreport was given.
4920if test "${enable_debugreport+set}" = set; then
4921 enableval="$enable_debugreport"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4925 else
4926 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
4938 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4939
4940fi;
4941
4942 eval "$ac_cv_use_debugreport"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_DEBUGREPORT" = yes; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953 fi
4954
4955
a848cd7e
SC
4956 enablestring=
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4959 no_cache=0
4960 # Check whether --enable-dialupman or --disable-dialupman was given.
4961if test "${enable_dialupman+set}" = set; then
4962 enableval="$enable_dialupman"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4966 else
4967 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4980
4981fi;
4982
4983 eval "$ac_cv_use_dialupman"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994 fi
4995
4996
4997 enablestring=
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5000 no_cache=0
5001 # Check whether --enable-dynlib or --disable-dynlib was given.
5002if test "${enable_dynlib+set}" = set; then
5003 enableval="$enable_dynlib"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5007 else
5008 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5021
5022fi;
5023
5024 eval "$ac_cv_use_dynlib"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5043if test "${enable_dynamicloader+set}" = set; then
5044 enableval="$enable_dynamicloader"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5048 else
5049 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5062
5063fi;
5064
5065 eval "$ac_cv_use_dynamicloader"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076 fi
5077
5078
5079 enablestring=
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-exceptions or --disable-exceptions was given.
5084if test "${enable_exceptions+set}" = set; then
5085 enableval="$enable_exceptions"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5089 else
5090 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5103
5104fi;
5105
5106 eval "$ac_cv_use_exceptions"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_EXCEPTIONS" = yes; then
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117 fi
5118
5119
5120 enablestring=
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5123 no_cache=0
5124 # Check whether --enable-ffile or --disable-ffile was given.
5125if test "${enable_ffile+set}" = set; then
5126 enableval="$enable_ffile"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_ffile='wxUSE_FFILE=yes'
5130 else
5131 ac_cv_use_ffile='wxUSE_FFILE=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5144
5145fi;
5146
5147 eval "$ac_cv_use_ffile"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FFILE" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-file or --disable-file was given.
5166if test "${enable_file+set}" = set; then
5167 enableval="$enable_file"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_file='wxUSE_FILE=yes'
5171 else
5172 ac_cv_use_file='wxUSE_FILE=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5185
5186fi;
5187
5188 eval "$ac_cv_use_file"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FILE" = yes; then
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199 fi
5200
5201
5202 enablestring=
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-filesystem or --disable-filesystem was given.
5207if test "${enable_filesystem+set}" = set; then
5208 enableval="$enable_filesystem"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5212 else
5213 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5226
5227fi;
5228
5229 eval "$ac_cv_use_filesystem"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FILESYSTEM" = yes; then
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240 fi
5241
5242
5243 enablestring=
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-fontmap or --disable-fontmap was given.
5248if test "${enable_fontmap+set}" = set; then
5249 enableval="$enable_fontmap"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5253 else
5254 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5267
5268fi;
5269
5270 eval "$ac_cv_use_fontmap"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_FONTMAP" = yes; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281 fi
5282
5283
5284 enablestring=
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5289if test "${enable_fs_inet+set}" = set; then
5290 enableval="$enable_fs_inet"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5294 else
5295 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5308
5309fi;
5310
5311 eval "$ac_cv_use_fs_inet"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_FS_INET" = yes; then
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322 fi
5323
5324
5325 enablestring=
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5330if test "${enable_fs_zip+set}" = set; then
5331 enableval="$enable_fs_zip"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5335 else
5336 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5349
5350fi;
5351
5352 eval "$ac_cv_use_fs_zip"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_FS_ZIP" = yes; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363 fi
5364
5365
5366 enablestring=
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-geometry or --disable-geometry was given.
5371if test "${enable_geometry+set}" = set; then
5372 enableval="$enable_geometry"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5376 else
5377 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5390
5391fi;
5392
5393 eval "$ac_cv_use_geometry"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_GEOMETRY" = yes; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401 else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404 fi
5405
5406
5407 enablestring=
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-log or --disable-log was given.
5412if test "${enable_log+set}" = set; then
5413 enableval="$enable_log"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_log='wxUSE_LOG=yes'
5417 else
5418 ac_cv_use_log='wxUSE_LOG=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5431
5432fi;
5433
5434 eval "$ac_cv_use_log"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_LOG" = yes; then
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
5445 fi
5446
5447
5448 enablestring=
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-longlong or --disable-longlong was given.
5453if test "${enable_longlong+set}" = set; then
5454 enableval="$enable_longlong"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5458 else
5459 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5472
5473fi;
5474
5475 eval "$ac_cv_use_longlong"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_LONGLONG" = yes; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486 fi
5487
5488
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-mimetype or --disable-mimetype was given.
5494if test "${enable_mimetype+set}" = set; then
5495 enableval="$enable_mimetype"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5499 else
5500 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5513
5514fi;
5515
5516 eval "$ac_cv_use_mimetype"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_MIMETYPE" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
5529
5530 enablestring=
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-mslu or --disable-mslu was given.
5535if test "${enable_mslu+set}" = set; then
5536 enableval="$enable_mslu"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5540 else
5541 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5554
5555fi;
5556
5557 eval "$ac_cv_use_mslu"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_UNICODE_MSLU" = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568 fi
5569
5570
5571 enablestring=
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-snglinst or --disable-snglinst was given.
5576if test "${enable_snglinst+set}" = set; then
5577 enableval="$enable_snglinst"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5581 else
5582 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5595
5596fi;
5597
5598 eval "$ac_cv_use_snglinst"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609 fi
5610
5611
5612 enablestring=
07158944
VZ
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5615 no_cache=0
07158944
VZ
5616 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5617if test "${enable_std_iostreams+set}" = set; then
5618 enableval="$enable_std_iostreams"
a848cd7e
SC
5619
5620 if test "$enableval" = yes; then
07158944 5621 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5622 else
07158944 5623 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5624 fi
5625
5626else
5627
07158944 5628 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
07158944 5635 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5636
5637fi;
5638
07158944 5639 eval "$ac_cv_use_std_iostreams"
a848cd7e 5640 if test "$no_cache" != 1; then
07158944 5641 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5642 fi
5643
07158944 5644 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
59746b65
MW
5653 enablestring=
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-std_string or --disable-std_string was given.
5658if test "${enable_std_string+set}" = set; then
5659 enableval="$enable_std_string"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5663 else
5664 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5677
5678fi;
5679
5680 eval "$ac_cv_use_std_string"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_STD_STRING" = yes; then
5686 echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691 fi
5692
5693
a848cd7e 5694 enablestring=
07158944
VZ
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5697 no_cache=0
07158944
VZ
5698 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5699if test "${enable_stdpaths+set}" = set; then
5700 enableval="$enable_stdpaths"
a848cd7e
SC
5701
5702 if test "$enableval" = yes; then
07158944 5703 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5704 else
07158944 5705 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5706 fi
5707
5708else
5709
07158944 5710 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
07158944 5717 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5718
5719fi;
5720
07158944 5721 eval "$ac_cv_use_stdpaths"
a848cd7e 5722 if test "$no_cache" != 1; then
07158944 5723 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5724 fi
5725
07158944 5726 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5727 echo "$as_me:$LINENO: result: yes" >&5
5728echo "${ECHO_T}yes" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 enablestring=
5736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5740if test "${enable_stopwatch+set}" = set; then
5741 enableval="$enable_stopwatch"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5745 else
5746 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5759
5760fi;
5761
5762 eval "$ac_cv_use_stopwatch"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_STOPWATCH" = yes; then
5768 echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770 else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773 fi
5774
5775
07158944
VZ
5776 enablestring=
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-streams or --disable-streams was given.
5781if test "${enable_streams+set}" = set; then
5782 enableval="$enable_streams"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_streams='wxUSE_STREAMS=yes'
5786 else
5787 ac_cv_use_streams='wxUSE_STREAMS=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5800
5801fi;
5802
5803 eval "$ac_cv_use_streams"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_STREAMS" = yes; then
5809 echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 fi
5815
5816
a848cd7e
SC
5817 enablestring=
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-system_options or --disable-system_options was given.
5822if test "${enable_system_options+set}" = set; then
5823 enableval="$enable_system_options"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5827 else
5828 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5841
5842fi;
5843
5844 eval "$ac_cv_use_system_options"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5850 echo "$as_me:$LINENO: result: yes" >&5
5851echo "${ECHO_T}yes" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855 fi
5856
5857
5858 enablestring=
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-textbuf or --disable-textbuf was given.
5863if test "${enable_textbuf+set}" = set; then
5864 enableval="$enable_textbuf"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5868 else
5869 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5875 if test "x$LINE" != x ; then
5876 eval "DEFAULT_$LINE"
5877 else
5878 no_cache=1
5879 fi
5880
5881 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5882
5883fi;
5884
5885 eval "$ac_cv_use_textbuf"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_TEXTBUFFER" = yes; then
5891 echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896 fi
5897
5898
5899 enablestring=
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-textfile or --disable-textfile was given.
5904if test "${enable_textfile+set}" = set; then
5905 enableval="$enable_textfile"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5909 else
5910 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5916 if test "x$LINE" != x ; then
5917 eval "DEFAULT_$LINE"
5918 else
5919 no_cache=1
5920 fi
5921
5922 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5923
5924fi;
5925
5926 eval "$ac_cv_use_textfile"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_TEXTFILE" = yes; then
5932 echo "$as_me:$LINENO: result: yes" >&5
5933echo "${ECHO_T}yes" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937 fi
5938
5939
5940 enablestring=
5941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-timer or --disable-timer was given.
5945if test "${enable_timer+set}" = set; then
5946 enableval="$enable_timer"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_timer='wxUSE_TIMER=yes'
5950 else
5951 ac_cv_use_timer='wxUSE_TIMER=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5964
5965fi;
5966
5967 eval "$ac_cv_use_timer"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_TIMER" = yes; then
5973 echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978 fi
5979
5980
5981 enablestring=
5982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5983echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5984 no_cache=0
5985 # Check whether --enable-unicode or --disable-unicode was given.
5986if test "${enable_unicode+set}" = set; then
5987 enableval="$enable_unicode"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5991 else
5992 ac_cv_use_unicode='wxUSE_UNICODE=no'
5993 fi
5994
5995else
5996
5997 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6005
6006fi;
6007
6008 eval "$ac_cv_use_unicode"
6009 if test "$no_cache" != 1; then
6010 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6011 fi
6012
6013 if test "$wxUSE_UNICODE" = yes; then
6014 echo "$as_me:$LINENO: result: yes" >&5
6015echo "${ECHO_T}yes" >&6
6016 else
6017 echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6
6019 fi
6020
6021
6022 enablestring=
6023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6024echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6025 no_cache=0
6026 # Check whether --enable-sound or --disable-sound was given.
6027if test "${enable_sound+set}" = set; then
6028 enableval="$enable_sound"
6029
6030 if test "$enableval" = yes; then
6031 ac_cv_use_sound='wxUSE_SOUND=yes'
6032 else
6033 ac_cv_use_sound='wxUSE_SOUND=no'
6034 fi
6035
6036else
6037
6038 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6046
6047fi;
6048
6049 eval "$ac_cv_use_sound"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_SOUND" = yes; then
6055 echo "$as_me:$LINENO: result: yes" >&5
6056echo "${ECHO_T}yes" >&6
6057 else
6058 echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060 fi
6061
6062
3b57de8b
RL
6063 enablestring=
6064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6065echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6066 no_cache=0
6067 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6068if test "${enable_mediactrl+set}" = set; then
6069 enableval="$enable_mediactrl"
6070
6071 if test "$enableval" = yes; then
6072 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6073 else
6074 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6075 fi
6076
6077else
6078
6079 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6087
6088fi;
6089
6090 eval "$ac_cv_use_mediactrl"
6091 if test "$no_cache" != 1; then
6092 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6093 fi
6094
6095 if test "$wxUSE_MEDIACTRL" = yes; then
6096 echo "$as_me:$LINENO: result: yes" >&5
6097echo "${ECHO_T}yes" >&6
6098 else
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
6101 fi
6102
6103
a848cd7e
SC
6104 enablestring=
6105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6106echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6107 no_cache=0
6108 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6109if test "${enable_wxprintfv+set}" = set; then
6110 enableval="$enable_wxprintfv"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6114 else
6115 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6116 fi
6117
6118else
6119
6120 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6128
6129fi;
6130
6131 eval "$ac_cv_use_wxprintfv"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6137 echo "$as_me:$LINENO: result: yes" >&5
6138echo "${ECHO_T}yes" >&6
6139 else
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
6142 fi
6143
6144
6145 enablestring=
6146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6147echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6148 no_cache=0
6149 # Check whether --enable-zipstream or --disable-zipstream was given.
6150if test "${enable_zipstream+set}" = set; then
6151 enableval="$enable_zipstream"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6155 else
6156 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6157 fi
6158
6159else
6160
6161 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6169
6170fi;
6171
6172 eval "$ac_cv_use_zipstream"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_ZIPSTREAM" = yes; then
6178 echo "$as_me:$LINENO: result: yes" >&5
6179echo "${ECHO_T}yes" >&6
6180 else
6181 echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
6183 fi
6184
6185
a848cd7e
SC
6186
6187 enablestring=
6188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6189echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6190 no_cache=0
6191 # Check whether --enable-url or --disable-url was given.
6192if test "${enable_url+set}" = set; then
6193 enableval="$enable_url"
6194
6195 if test "$enableval" = yes; then
6196 ac_cv_use_url='wxUSE_URL=yes'
6197 else
6198 ac_cv_use_url='wxUSE_URL=no'
6199 fi
6200
6201else
6202
6203 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6204 if test "x$LINE" != x ; then
6205 eval "DEFAULT_$LINE"
6206 else
6207 no_cache=1
6208 fi
6209
6210 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6211
6212fi;
6213
6214 eval "$ac_cv_use_url"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_URL" = yes; then
6220 echo "$as_me:$LINENO: result: yes" >&5
6221echo "${ECHO_T}yes" >&6
6222 else
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
6225 fi
6226
6227
6228 enablestring=
6229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6230echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6231 no_cache=0
6232 # Check whether --enable-protocol or --disable-protocol was given.
6233if test "${enable_protocol+set}" = set; then
6234 enableval="$enable_protocol"
6235
6236 if test "$enableval" = yes; then
6237 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6238 else
6239 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6240 fi
6241
6242else
6243
6244 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6252
6253fi;
6254
6255 eval "$ac_cv_use_protocol"
6256 if test "$no_cache" != 1; then
6257 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6258 fi
6259
6260 if test "$wxUSE_PROTOCOL" = yes; then
6261 echo "$as_me:$LINENO: result: yes" >&5
6262echo "${ECHO_T}yes" >&6
6263 else
6264 echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266 fi
6267
6268
6269 enablestring=
6270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6271echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6272 no_cache=0
6273 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6274if test "${enable_protocol_http+set}" = set; then
6275 enableval="$enable_protocol_http"
6276
6277 if test "$enableval" = yes; then
6278 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6279 else
6280 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6281 fi
6282
6283else
6284
6285 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6286 if test "x$LINE" != x ; then
6287 eval "DEFAULT_$LINE"
6288 else
6289 no_cache=1
6290 fi
6291
6292 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6293
6294fi;
6295
6296 eval "$ac_cv_use_protocol_http"
6297 if test "$no_cache" != 1; then
6298 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6299 fi
6300
6301 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6302 echo "$as_me:$LINENO: result: yes" >&5
6303echo "${ECHO_T}yes" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6
6307 fi
6308
6309
6310 enablestring=
6311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6312echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6313 no_cache=0
6314 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6315if test "${enable_protocol_ftp+set}" = set; then
6316 enableval="$enable_protocol_ftp"
6317
6318 if test "$enableval" = yes; then
6319 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6320 else
6321 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6322 fi
6323
6324else
6325
6326 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6327 if test "x$LINE" != x ; then
6328 eval "DEFAULT_$LINE"
6329 else
6330 no_cache=1
6331 fi
6332
6333 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6334
6335fi;
6336
6337 eval "$ac_cv_use_protocol_ftp"
6338 if test "$no_cache" != 1; then
6339 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6340 fi
6341
6342 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6343 echo "$as_me:$LINENO: result: yes" >&5
6344echo "${ECHO_T}yes" >&6
6345 else
6346 echo "$as_me:$LINENO: result: no" >&5
6347echo "${ECHO_T}no" >&6
6348 fi
6349
6350
6351 enablestring=
6352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6353echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6354 no_cache=0
6355 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6356if test "${enable_protocol_file+set}" = set; then
6357 enableval="$enable_protocol_file"
6358
6359 if test "$enableval" = yes; then
6360 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6361 else
6362 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6363 fi
6364
6365else
6366
6367 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6368 if test "x$LINE" != x ; then
6369 eval "DEFAULT_$LINE"
6370 else
6371 no_cache=1
6372 fi
6373
6374 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6375
6376fi;
6377
6378 eval "$ac_cv_use_protocol_file"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386 else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389 fi
6390
6391
6392
6393
6394
6395 enablestring=
6396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6397echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6398 no_cache=0
6399 # Check whether --enable-threads or --disable-threads was given.
6400if test "${enable_threads+set}" = set; then
6401 enableval="$enable_threads"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_threads='wxUSE_THREADS=yes'
6405 else
6406 ac_cv_use_threads='wxUSE_THREADS=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6419
6420fi;
6421
6422 eval "$ac_cv_use_threads"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_THREADS" = yes; then
6428 echo "$as_me:$LINENO: result: yes" >&5
6429echo "${ECHO_T}yes" >&6
6430 else
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
6433 fi
6434
6435
6436if test "$wxUSE_GUI" = "yes"; then
6437
6438
6439
6440 enablestring=
6441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6442echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6443 no_cache=0
6444 # Check whether --enable-docview or --disable-docview was given.
6445if test "${enable_docview+set}" = set; then
6446 enableval="$enable_docview"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6450 else
6451 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6452 fi
6453
6454else
6455
6456 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6464
6465fi;
6466
6467 eval "$ac_cv_use_docview"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6473 echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478 fi
6479
6480
6481 enablestring=
6482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6483echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6484 no_cache=0
6485 # Check whether --enable-help or --disable-help was given.
6486if test "${enable_help+set}" = set; then
6487 enableval="$enable_help"
6488
6489 if test "$enableval" = yes; then
6490 ac_cv_use_help='wxUSE_HELP=yes'
6491 else
6492 ac_cv_use_help='wxUSE_HELP=no'
6493 fi
6494
6495else
6496
6497 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6498 if test "x$LINE" != x ; then
6499 eval "DEFAULT_$LINE"
6500 else
6501 no_cache=1
6502 fi
6503
6504 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6505
6506fi;
6507
6508 eval "$ac_cv_use_help"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_HELP" = yes; then
6514 echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6
6516 else
6517 echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519 fi
6520
6521
6522 enablestring=
6523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6524echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6525 no_cache=0
6526 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6527if test "${enable_mshtmlhelp+set}" = set; then
6528 enableval="$enable_mshtmlhelp"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6532 else
6533 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6534 fi
6535
6536else
6537
6538 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6546
6547fi;
6548
6549 eval "$ac_cv_use_mshtmlhelp"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_MS_HTML_HELP" = yes; then
6555 echo "$as_me:$LINENO: result: yes" >&5
6556echo "${ECHO_T}yes" >&6
6557 else
6558 echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6
6560 fi
6561
6562
6563 enablestring=
6564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6565echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6566 no_cache=0
6567 # Check whether --enable-html or --disable-html was given.
6568if test "${enable_html+set}" = set; then
6569 enableval="$enable_html"
6570
6571 if test "$enableval" = yes; then
6572 ac_cv_use_html='wxUSE_HTML=yes'
6573 else
6574 ac_cv_use_html='wxUSE_HTML=no'
6575 fi
6576
6577else
6578
6579 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6580 if test "x$LINE" != x ; then
6581 eval "DEFAULT_$LINE"
6582 else
6583 no_cache=1
6584 fi
6585
6586 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6587
6588fi;
6589
6590 eval "$ac_cv_use_html"
6591 if test "$no_cache" != 1; then
6592 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6593 fi
6594
6595 if test "$wxUSE_HTML" = yes; then
6596 echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598 else
6599 echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6
6601 fi
6602
6603
6604 enablestring=
6605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6606echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6607 no_cache=0
6608 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6609if test "${enable_htmlhelp+set}" = set; then
6610 enableval="$enable_htmlhelp"
6611
6612 if test "$enableval" = yes; then
6613 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6614 else
6615 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6616 fi
6617
6618else
6619
6620 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6621 if test "x$LINE" != x ; then
6622 eval "DEFAULT_$LINE"
6623 else
6624 no_cache=1
6625 fi
6626
6627 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6628
6629fi;
6630
6631 eval "$ac_cv_use_htmlhelp"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6634 fi
6635
6636 if test "$wxUSE_WXHTML_HELP" = yes; then
6637 echo "$as_me:$LINENO: result: yes" >&5
6638echo "${ECHO_T}yes" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642 fi
6643
6644
9a8f0513
VS
6645 enablestring=
6646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6647echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6648 no_cache=0
6649 # Check whether --enable-xrc or --disable-xrc was given.
6650if test "${enable_xrc+set}" = set; then
6651 enableval="$enable_xrc"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_xrc='wxUSE_XRC=yes'
6655 else
6656 ac_cv_use_xrc='wxUSE_XRC=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6669
6670fi;
6671
6672 eval "$ac_cv_use_xrc"
6673 if test "$no_cache" != 1; then
6674 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6675 fi
6676
6677 if test "$wxUSE_XRC" = yes; then
6678 echo "$as_me:$LINENO: result: yes" >&5
6679echo "${ECHO_T}yes" >&6
6680 else
6681 echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6
6683 fi
6684
6685
a848cd7e
SC
6686 enablestring=
6687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6688echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6689 no_cache=0
6690 # Check whether --enable-constraints or --disable-constraints was given.
6691if test "${enable_constraints+set}" = set; then
6692 enableval="$enable_constraints"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6696 else
6697 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6710
6711fi;
6712
6713 eval "$ac_cv_use_constraints"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_CONSTRAINTS" = yes; then
6719 echo "$as_me:$LINENO: result: yes" >&5
6720echo "${ECHO_T}yes" >&6
6721 else
6722 echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
6724 fi
6725
6726
6727 enablestring=
6728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6729echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6730 no_cache=0
6731 # Check whether --enable-printarch or --disable-printarch was given.
6732if test "${enable_printarch+set}" = set; then
6733 enableval="$enable_printarch"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6737 else
6738 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6751
6752fi;
6753
6754 eval "$ac_cv_use_printarch"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761echo "${ECHO_T}yes" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765 fi
6766
6767
6768 enablestring=
6769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6770echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6771 no_cache=0
6772 # Check whether --enable-mdi or --disable-mdi was given.
6773if test "${enable_mdi+set}" = set; then
6774 enableval="$enable_mdi"
6775
6776 if test "$enableval" = yes; then
8a7b1113 6777 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6778 else
8a7b1113 6779 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6780 fi
6781
6782else
6783
8a7b1113 6784 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
8a7b1113 6791 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6792
6793fi;
6794
6795 eval "$ac_cv_use_mdi"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6798 fi
6799
8a7b1113
VZ
6800 if test "$wxUSE_MDI" = yes; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802echo "${ECHO_T}yes" >&6
6803 else
6804 echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6
6806 fi
6807
6808
6809 enablestring=
6810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6811echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6812 no_cache=0
6813 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6814if test "${enable_mdidoc+set}" = set; then
6815 enableval="$enable_mdidoc"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6819 else
6820 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6821 fi
6822
6823else
6824
6825 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6833
6834fi;
6835
6836 eval "$ac_cv_use_mdidoc"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6839 fi
6840
a848cd7e
SC
6841 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6842 echo "$as_me:$LINENO: result: yes" >&5
6843echo "${ECHO_T}yes" >&6
6844 else
6845 echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6
6847 fi
6848
6849
6850 enablestring=
6851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6852echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6853 no_cache=0
6854 # Check whether --enable-loggui or --disable-loggui was given.
6855if test "${enable_loggui+set}" = set; then
6856 enableval="$enable_loggui"
6857
6858 if test "$enableval" = yes; then
6859 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6860 else
6861 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6862 fi
6863
6864else
6865
6866 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6867 if test "x$LINE" != x ; then
6868 eval "DEFAULT_$LINE"
6869 else
6870 no_cache=1
6871 fi
6872
6873 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6874
6875fi;
6876
6877 eval "$ac_cv_use_loggui"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_LOGGUI" = yes; then
6883 echo "$as_me:$LINENO: result: yes" >&5
6884echo "${ECHO_T}yes" >&6
6885 else
6886 echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
6888 fi
6889
6890
6891 enablestring=
6892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6893echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6894 no_cache=0
6895 # Check whether --enable-logwin or --disable-logwin was given.
6896if test "${enable_logwin+set}" = set; then
6897 enableval="$enable_logwin"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6901 else
6902 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6903 fi
6904
6905else
6906
6907 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6915
6916fi;
6917
6918 eval "$ac_cv_use_logwin"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_LOGWINDOW" = yes; then
6924 echo "$as_me:$LINENO: result: yes" >&5
6925echo "${ECHO_T}yes" >&6
6926 else
6927 echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929 fi
6930
6931
6932 enablestring=
6933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6934echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6935 no_cache=0
6936 # Check whether --enable-logdialog or --disable-logdialog was given.
6937if test "${enable_logdialog+set}" = set; then
6938 enableval="$enable_logdialog"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6942 else
6943 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6956
6957fi;
6958
6959 eval "$ac_cv_use_logdialog"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_LOGDIALOG" = yes; then
6965 echo "$as_me:$LINENO: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
6967 else
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970 fi
6971
6972
646b6ec1
VS
6973 enablestring=
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-webkit or --disable-webkit was given.
6978if test "${enable_webkit+set}" = set; then
6979 enableval="$enable_webkit"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6983 else
6984 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6997
6998fi;
6999
7000 eval "$ac_cv_use_webkit"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_WEBKIT" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
91dea314
MW
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-html or --disable-html was given.
7019if test "${enable_html+set}" = set; then
7020 enableval="$enable_html"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7024 else
7025 ac_cv_use_html='wxUSE_RICHTEXT=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7038
7039fi;
7040
7041 eval "$ac_cv_use_html"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_RICHTEXT" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
a848cd7e
SC
7055
7056 enablestring=
7057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7058echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7059 no_cache=0
7060 # Check whether --enable-postscript or --disable-postscript was given.
7061if test "${enable_postscript+set}" = set; then
7062 enableval="$enable_postscript"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7066 else
7067 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7068 fi
7069
7070else
7071
7072 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7073 if test "x$LINE" != x ; then
7074 eval "DEFAULT_$LINE"
7075 else
7076 no_cache=1
7077 fi
7078
7079 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7080
7081fi;
7082
7083 eval "$ac_cv_use_postscript"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_POSTSCRIPT" = yes; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090echo "${ECHO_T}yes" >&6
7091 else
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
7094 fi
7095
7096
7097
7098
7099
7100 enablestring=
7101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7102echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7103 no_cache=0
7104 # Check whether --enable-prologio or --disable-prologio was given.
7105if test "${enable_prologio+set}" = set; then
7106 enableval="$enable_prologio"
7107
7108 if test "$enableval" = yes; then
7109 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7110 else
7111 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7112 fi
7113
7114else
7115
7116 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7124
7125fi;
7126
7127 eval "$ac_cv_use_prologio"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_PROLOGIO" = yes; then
7133 echo "$as_me:$LINENO: result: yes" >&5
7134echo "${ECHO_T}yes" >&6
7135 else
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
7138 fi
7139
7140
7141 enablestring=
7142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7143echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7144 no_cache=0
7145 # Check whether --enable-resources or --disable-resources was given.
7146if test "${enable_resources+set}" = set; then
7147 enableval="$enable_resources"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7151 else
7152 ac_cv_use_resources='wxUSE_RESOURCES=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7165
7166fi;
7167
7168 eval "$ac_cv_use_resources"
7169 if test "$no_cache" != 1; then
7170 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7171 fi
7172
7173 if test "$wxUSE_RESOURCES" = yes; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
7179 fi
7180
7181
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-clipboard or --disable-clipboard was given.
7189if test "${enable_clipboard+set}" = set; then
7190 enableval="$enable_clipboard"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7194 else
7195 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7208
7209fi;
7210
7211 eval "$ac_cv_use_clipboard"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_CLIPBOARD" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-dnd or --disable-dnd was given.
7230if test "${enable_dnd+set}" = set; then
7231 enableval="$enable_dnd"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7235 else
7236 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7249
7250fi;
7251
7252 eval "$ac_cv_use_dnd"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-metafile or --disable-metafile was given.
7271if test "${enable_metafile+set}" = set; then
7272 enableval="$enable_metafile"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7276 else
7277 ac_cv_use_metafile='wxUSE_METAFILE=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7290
7291fi;
7292
7293 eval "$ac_cv_use_metafile"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_METAFILE" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307
7308
7309
7310 enablestring=
7311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7312echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7313 no_cache=0
7314 # Check whether --enable-controls or --disable-controls was given.
7315if test "${enable_controls+set}" = set; then
7316 enableval="$enable_controls"
7317
7318 if test "$enableval" = yes; then
7319 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7320 else
7321 ac_cv_use_controls='wxUSE_CONTROLS=no'
7322 fi
7323
7324else
7325
7326 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7327 if test "x$LINE" != x ; then
7328 eval "DEFAULT_$LINE"
7329 else
7330 no_cache=1
7331 fi
7332
7333 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7334
7335fi;
7336
7337 eval "$ac_cv_use_controls"
7338 if test "$no_cache" != 1; then
7339 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7340 fi
7341
7342 if test "$wxUSE_CONTROLS" = yes; then
7343 echo "$as_me:$LINENO: result: yes" >&5
7344echo "${ECHO_T}yes" >&6
7345 else
7346 echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7348 fi
7349
7350
7351if test "$wxUSE_CONTROLS" = "yes"; then
7352 DEFAULT_wxUSE_ACCEL=yes
7353 DEFAULT_wxUSE_BMPBUTTON=yes
7354 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7355 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7356 DEFAULT_wxUSE_CARET=yes
7357 DEFAULT_wxUSE_COMBOBOX=yes
7358 DEFAULT_wxUSE_CHECKBOX=yes
7359 DEFAULT_wxUSE_CHECKLISTBOX=yes
7360 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7361 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7362 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7363 DEFAULT_wxUSE_GAUGE=yes
7364 DEFAULT_wxUSE_GRID=yes
7365 DEFAULT_wxUSE_IMAGLIST=yes
7366 DEFAULT_wxUSE_LISTBOOK=yes
7367 DEFAULT_wxUSE_LISTBOX=yes
7368 DEFAULT_wxUSE_LISTCTRL=yes
7369 DEFAULT_wxUSE_NOTEBOOK=yes
7370 DEFAULT_wxUSE_RADIOBOX=yes
7371 DEFAULT_wxUSE_RADIOBTN=yes
7372 DEFAULT_wxUSE_SASH=yes
7373 DEFAULT_wxUSE_SCROLLBAR=yes
7374 DEFAULT_wxUSE_SLIDER=yes
7375 DEFAULT_wxUSE_SPINBTN=yes
7376 DEFAULT_wxUSE_SPINCTRL=yes
7377 DEFAULT_wxUSE_SPLITTER=yes
7378 DEFAULT_wxUSE_STATBMP=yes
7379 DEFAULT_wxUSE_STATBOX=yes
7380 DEFAULT_wxUSE_STATLINE=yes
7381 DEFAULT_wxUSE_STATUSBAR=yes
7382 DEFAULT_wxUSE_TAB_DIALOG=yes
7383 DEFAULT_wxUSE_TOGGLEBTN=yes
7384 DEFAULT_wxUSE_TOOLBAR=yes
7385 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7386 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7387 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7388 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7389 DEFAULT_wxUSE_TREECTRL=yes
7390 DEFAULT_wxUSE_POPUPWIN=yes
7391 DEFAULT_wxUSE_TIPWINDOW=yes
7392elif test "$wxUSE_CONTROLS" = "no"; then
7393 DEFAULT_wxUSE_ACCEL=no
7394 DEFAULT_wxUSE_BMPBUTTON=no
7395 DEFAULT_wxUSE_BUTTON=no
7396 DEFAULT_wxUSE_CALCTRL=no
7397 DEFAULT_wxUSE_CARET=no
7398 DEFAULT_wxUSE_COMBOBOX=no
7399 DEFAULT_wxUSE_CHECKBOX=no
7400 DEFAULT_wxUSE_CHECKLISTBOX=no
7401 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7402 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7403 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7404 DEFAULT_wxUSE_GAUGE=no
7405 DEFAULT_wxUSE_GRID=no
7406 DEFAULT_wxUSE_IMAGLIST=no
7407 DEFAULT_wxUSE_LISTBOOK=no
7408 DEFAULT_wxUSE_LISTBOX=no
7409 DEFAULT_wxUSE_LISTCTRL=no
7410 DEFAULT_wxUSE_NOTEBOOK=no
7411 DEFAULT_wxUSE_RADIOBOX=no
7412 DEFAULT_wxUSE_RADIOBTN=no
7413 DEFAULT_wxUSE_SASH=no
7414 DEFAULT_wxUSE_SCROLLBAR=no
7415 DEFAULT_wxUSE_SLIDER=no
7416 DEFAULT_wxUSE_SPINBTN=no
7417 DEFAULT_wxUSE_SPINCTRL=no
7418 DEFAULT_wxUSE_SPLITTER=no
7419 DEFAULT_wxUSE_STATBMP=no
7420 DEFAULT_wxUSE_STATBOX=no
7421 DEFAULT_wxUSE_STATLINE=no
7422 DEFAULT_wxUSE_STATUSBAR=no
7423 DEFAULT_wxUSE_TAB_DIALOG=no
7424 DEFAULT_wxUSE_TOGGLEBTN=no
7425 DEFAULT_wxUSE_TOOLBAR=no
7426 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7427 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7428 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7429 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7430 DEFAULT_wxUSE_TREECTRL=no
7431 DEFAULT_wxUSE_POPUPWIN=no
7432 DEFAULT_wxUSE_TIPWINDOW=no
7433fi
7434
a848cd7e
SC
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-accel or --disable-accel was given.
7441if test "${enable_accel+set}" = set; then
7442 enableval="$enable_accel"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_accel='wxUSE_ACCEL=yes'
7446 else
7447 ac_cv_use_accel='wxUSE_ACCEL=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7460
7461fi;
7462
7463 eval "$ac_cv_use_accel"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_ACCEL" = yes; then
7469 echo "$as_me:$LINENO: result: yes" >&5
7470echo "${ECHO_T}yes" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474 fi
7475
7476
7477 enablestring=
7478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-button or --disable-button was given.
7482if test "${enable_button+set}" = set; then
7483 enableval="$enable_button"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_button='wxUSE_BUTTON=yes'
7487 else
7488 ac_cv_use_button='wxUSE_BUTTON=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7501
7502fi;
7503
7504 eval "$ac_cv_use_button"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_BUTTON" = yes; then
7510 echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512 else
7513 echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515 fi
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7523if test "${enable_bmpbutton+set}" = set; then
7524 enableval="$enable_bmpbutton"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7528 else
7529 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7542
7543fi;
7544
7545 eval "$ac_cv_use_bmpbutton"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_BMPBUTTON" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-calendar or --disable-calendar was given.
7564if test "${enable_calendar+set}" = set; then
7565 enableval="$enable_calendar"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7569 else
7570 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7583
7584fi;
7585
7586 eval "$ac_cv_use_calendar"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CALCTRL" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-caret or --disable-caret was given.
7605if test "${enable_caret+set}" = set; then
7606 enableval="$enable_caret"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_caret='wxUSE_CARET=yes'
7610 else
7611 ac_cv_use_caret='wxUSE_CARET=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7624
7625fi;
7626
7627 eval "$ac_cv_use_caret"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_CARET" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-checkbox or --disable-checkbox was given.
7646if test "${enable_checkbox+set}" = set; then
7647 enableval="$enable_checkbox"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7651 else
7652 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7665
7666fi;
7667
7668 eval "$ac_cv_use_checkbox"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_CHECKBOX" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-checklst or --disable-checklst was given.
7687if test "${enable_checklst+set}" = set; then
7688 enableval="$enable_checklst"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7692 else
7693 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7706
7707fi;
7708
7709 eval "$ac_cv_use_checklst"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_CHECKLST" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-choice or --disable-choice was given.
7728if test "${enable_choice+set}" = set; then
7729 enableval="$enable_choice"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_choice='wxUSE_CHOICE=yes'
7733 else
7734 ac_cv_use_choice='wxUSE_CHOICE=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7747
7748fi;
7749
7750 eval "$ac_cv_use_choice"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_CHOICE" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
92bbdbcd
WS
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-choicebook or --disable-choicebook was given.
7769if test "${enable_choicebook+set}" = set; then
7770 enableval="$enable_choicebook"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7774 else
7775 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7788
7789fi;
7790
7791 eval "$ac_cv_use_choicebook"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_CHOICEBOOK" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
a848cd7e
SC
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-combobox or --disable-combobox was given.
7810if test "${enable_combobox+set}" = set; then
7811 enableval="$enable_combobox"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7815 else
7816 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7829
7830fi;
7831
7832 eval "$ac_cv_use_combobox"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_COMBOBOX" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
da98e9be
VZ
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-datepick or --disable-datepick was given.
7851if test "${enable_datepick+set}" = set; then
7852 enableval="$enable_datepick"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7856 else
7857 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7870
7871fi;
7872
7873 eval "$ac_cv_use_datepick"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_DATEPICKCTRL" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
a848cd7e
SC
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-display or --disable-display was given.
7892if test "${enable_display+set}" = set; then
7893 enableval="$enable_display"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_display='wxUSE_DISPLAY=yes'
7897 else
7898 ac_cv_use_display='wxUSE_DISPLAY=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7911
7912fi;
7913
7914 eval "$ac_cv_use_display"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_DISPLAY" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-gauge or --disable-gauge was given.
7933if test "${enable_gauge+set}" = set; then
7934 enableval="$enable_gauge"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7938 else
7939 ac_cv_use_gauge='wxUSE_GAUGE=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7952
7953fi;
7954
7955 eval "$ac_cv_use_gauge"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_GAUGE" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-grid or --disable-grid was given.
7974if test "${enable_grid+set}" = set; then
7975 enableval="$enable_grid"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_grid='wxUSE_GRID=yes'
7979 else
7980 ac_cv_use_grid='wxUSE_GRID=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7993
7994fi;
7995
7996 eval "$ac_cv_use_grid"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_GRID" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-imaglist or --disable-imaglist was given.
8015if test "${enable_imaglist+set}" = set; then
8016 enableval="$enable_imaglist"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8020 else
8021 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8034
8035fi;
8036
8037 eval "$ac_cv_use_imaglist"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_IMAGLIST" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-listbook or --disable-listbook was given.
8056if test "${enable_listbook+set}" = set; then
8057 enableval="$enable_listbook"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8061 else
8062 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8063 fi
8064
8065else
8066
8067 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8075
8076fi;
8077
8078 eval "$ac_cv_use_listbook"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_LISTBOOK" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-listbox or --disable-listbox was given.
8097if test "${enable_listbox+set}" = set; then
8098 enableval="$enable_listbox"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8102 else
8103 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8116
8117fi;
8118
8119 eval "$ac_cv_use_listbox"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_LISTBOX" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-listctrl or --disable-listctrl was given.
8138if test "${enable_listctrl+set}" = set; then
8139 enableval="$enable_listctrl"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8143 else
8144 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8157
8158fi;
8159
8160 eval "$ac_cv_use_listctrl"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_LISTCTRL" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-notebook or --disable-notebook was given.
8179if test "${enable_notebook+set}" = set; then
8180 enableval="$enable_notebook"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8184 else
8185 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8198
8199fi;
8200
8201 eval "$ac_cv_use_notebook"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_NOTEBOOK" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-radiobox or --disable-radiobox was given.
8220if test "${enable_radiobox+set}" = set; then
8221 enableval="$enable_radiobox"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8225 else
8226 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8239
8240fi;
8241
8242 eval "$ac_cv_use_radiobox"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_RADIOBOX" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8261if test "${enable_radiobtn+set}" = set; then
8262 enableval="$enable_radiobtn"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8266 else
8267 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8280
8281fi;
8282
8283 eval "$ac_cv_use_radiobtn"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_RADIOBTN" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-sash or --disable-sash was given.
8302if test "${enable_sash+set}" = set; then
8303 enableval="$enable_sash"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_sash='wxUSE_SASH=yes'
8307 else
8308 ac_cv_use_sash='wxUSE_SASH=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8321
8322fi;
8323
8324 eval "$ac_cv_use_sash"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_SASH" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8343if test "${enable_scrollbar+set}" = set; then
8344 enableval="$enable_scrollbar"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8348 else
8349 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8362
8363fi;
8364
8365 eval "$ac_cv_use_scrollbar"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_SCROLLBAR" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-slider or --disable-slider was given.
8384if test "${enable_slider+set}" = set; then
8385 enableval="$enable_slider"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_slider='wxUSE_SLIDER=yes'
8389 else
8390 ac_cv_use_slider='wxUSE_SLIDER=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8403
8404fi;
8405
8406 eval "$ac_cv_use_slider"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_SLIDER" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8425if test "${enable_spinbtn+set}" = set; then
8426 enableval="$enable_spinbtn"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8430 else
8431 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8444
8445fi;
8446
8447 eval "$ac_cv_use_spinbtn"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_SPINBTN" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8466if test "${enable_spinctrl+set}" = set; then
8467 enableval="$enable_spinctrl"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8471 else
8472 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8485
8486fi;
8487
8488 eval "$ac_cv_use_spinctrl"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_SPINCTRL" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-splitter or --disable-splitter was given.
8507if test "${enable_splitter+set}" = set; then
8508 enableval="$enable_splitter"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8512 else
8513 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8526
8527fi;
8528
8529 eval "$ac_cv_use_splitter"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_SPLITTER" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-statbmp or --disable-statbmp was given.
8548if test "${enable_statbmp+set}" = set; then
8549 enableval="$enable_statbmp"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8553 else
8554 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8555 fi
8556
8557else
8558
8559 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8567
8568fi;
8569
8570 eval "$ac_cv_use_statbmp"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_STATBMP" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-statbox or --disable-statbox was given.
8589if test "${enable_statbox+set}" = set; then
8590 enableval="$enable_statbox"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8594 else
8595 ac_cv_use_statbox='wxUSE_STATBOX=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8608
8609fi;
8610
8611 eval "$ac_cv_use_statbox"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_STATBOX" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-statline or --disable-statline was given.
8630if test "${enable_statline+set}" = set; then
8631 enableval="$enable_statline"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_statline='wxUSE_STATLINE=yes'
8635 else
8636 ac_cv_use_statline='wxUSE_STATLINE=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8649
8650fi;
8651
8652 eval "$ac_cv_use_statline"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_STATLINE" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-stattext or --disable-stattext was given.
8671if test "${enable_stattext+set}" = set; then
8672 enableval="$enable_stattext"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8676 else
8677 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8690
8691fi;
8692
8693 eval "$ac_cv_use_stattext"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_STATTEXT" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-statusbar or --disable-statusbar was given.
8712if test "${enable_statusbar+set}" = set; then
8713 enableval="$enable_statusbar"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8717 else
8718 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8731
8732fi;
8733
8734 eval "$ac_cv_use_statusbar"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_STATUSBAR" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8753if test "${enable_tabdialog+set}" = set; then
8754 enableval="$enable_tabdialog"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8758 else
8759 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8772
8773fi;
8774
8775 eval "$ac_cv_use_tabdialog"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_TABDIALOG" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-textctrl or --disable-textctrl was given.
8794if test "${enable_textctrl+set}" = set; then
8795 enableval="$enable_textctrl"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8799 else
8800 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8813
8814fi;
8815
8816 eval "$ac_cv_use_textctrl"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_TEXTCTRL" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8835if test "${enable_togglebtn+set}" = set; then
8836 enableval="$enable_togglebtn"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8840 else
8841 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8854
8855fi;
8856
8857 eval "$ac_cv_use_togglebtn"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_TOGGLEBTN" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-toolbar or --disable-toolbar was given.
8876if test "${enable_toolbar+set}" = set; then
8877 enableval="$enable_toolbar"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8881 else
8882 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8895
8896fi;
8897
8898 eval "$ac_cv_use_toolbar"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_TOOLBAR" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912 enablestring=
8913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8914echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8915 no_cache=0
8916 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8917if test "${enable_tbarnative+set}" = set; then
8918 enableval="$enable_tbarnative"
8919
8920 if test "$enableval" = yes; then
8921 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8922 else
8923 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8924 fi
8925
8926else
8927
8928 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8929 if test "x$LINE" != x ; then
8930 eval "DEFAULT_$LINE"
8931 else
8932 no_cache=1
8933 fi
8934
8935 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8936
8937fi;
8938
8939 eval "$ac_cv_use_tbarnative"
8940 if test "$no_cache" != 1; then
8941 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8942 fi
8943
8944 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8945 echo "$as_me:$LINENO: result: yes" >&5
8946echo "${ECHO_T}yes" >&6
8947 else
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
8950 fi
8951
8952
8953 enablestring=
8954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8955echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8956 no_cache=0
8957 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8958if test "${enable_tbarsmpl+set}" = set; then
8959 enableval="$enable_tbarsmpl"
8960
8961 if test "$enableval" = yes; then
8962 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8963 else
8964 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8965 fi
8966
8967else
8968
8969 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8970 if test "x$LINE" != x ; then
8971 eval "DEFAULT_$LINE"
8972 else
8973 no_cache=1
8974 fi
8975
8976 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8977
8978fi;
8979
8980 eval "$ac_cv_use_tbarsmpl"
8981 if test "$no_cache" != 1; then
8982 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8983 fi
8984
8985 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8986 echo "$as_me:$LINENO: result: yes" >&5
8987echo "${ECHO_T}yes" >&6
8988 else
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991 fi
8992
8993
0093c2fc
VZ
8994 enablestring=
8995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
8996echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
8997 no_cache=0
8998 # Check whether --enable-treebook or --disable-treebook was given.
8999if test "${enable_treebook+set}" = set; then
9000 enableval="$enable_treebook"
9001
9002 if test "$enableval" = yes; then
9003 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9004 else
9005 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9006 fi
9007
9008else
9009
9010 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9011 if test "x$LINE" != x ; then
9012 eval "DEFAULT_$LINE"
9013 else
9014 no_cache=1
9015 fi
9016
9017 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9018
9019fi;
9020
9021 eval "$ac_cv_use_treebook"
9022 if test "$no_cache" != 1; then
9023 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9024 fi
9025
9026 if test "$wxUSE_TREEBOOK" = yes; then
9027 echo "$as_me:$LINENO: result: yes" >&5
9028echo "${ECHO_T}yes" >&6
9029 else
9030 echo "$as_me:$LINENO: result: no" >&5
9031echo "${ECHO_T}no" >&6
9032 fi
9033
9034
a848cd7e
SC
9035 enablestring=
9036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9037echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9038 no_cache=0
9039 # Check whether --enable-treectrl or --disable-treectrl was given.
9040if test "${enable_treectrl+set}" = set; then
9041 enableval="$enable_treectrl"
9042
9043 if test "$enableval" = yes; then
9044 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9045 else
9046 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9047 fi
9048
9049else
9050
9051 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9052 if test "x$LINE" != x ; then
9053 eval "DEFAULT_$LINE"
9054 else
9055 no_cache=1
9056 fi
9057
9058 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9059
9060fi;
9061
9062 eval "$ac_cv_use_treectrl"
9063 if test "$no_cache" != 1; then
9064 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9065 fi
9066
9067 if test "$wxUSE_TREECTRL" = yes; then
9068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
9070 else
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
9073 fi
9074
9075
9076 enablestring=
9077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9078echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9079 no_cache=0
9080 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9081if test "${enable_tipwindow+set}" = set; then
9082 enableval="$enable_tipwindow"
9083
9084 if test "$enableval" = yes; then
9085 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9086 else
9087 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9088 fi
9089
9090else
9091
9092 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9093 if test "x$LINE" != x ; then
9094 eval "DEFAULT_$LINE"
9095 else
9096 no_cache=1
9097 fi
9098
9099 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9100
9101fi;
9102
9103 eval "$ac_cv_use_tipwindow"
9104 if test "$no_cache" != 1; then
9105 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9106 fi
9107
9108 if test "$wxUSE_TIPWINDOW" = yes; then
9109 echo "$as_me:$LINENO: result: yes" >&5
9110echo "${ECHO_T}yes" >&6
9111 else
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114 fi
9115
9116
9117 enablestring=
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9119echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9120 no_cache=0
9121 # Check whether --enable-popupwin or --disable-popupwin was given.
9122if test "${enable_popupwin+set}" = set; then
9123 enableval="$enable_popupwin"
9124
9125 if test "$enableval" = yes; then
9126 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9127 else
9128 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9129 fi
9130
9131else
9132
9133 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
9140 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9141
9142fi;
9143
9144 eval "$ac_cv_use_popupwin"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9147 fi
9148
9149 if test "$wxUSE_POPUPWIN" = yes; then
9150 echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6
9152 else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155 fi
9156
9157
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-commondlg or --disable-commondlg was given.
9165if test "${enable_commondlg+set}" = set; then
9166 enableval="$enable_commondlg"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9170 else
9171 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9184
9185fi;
9186
9187 eval "$ac_cv_use_commondlg"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_COMMONDLGS" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9206if test "${enable_choicedlg+set}" = set; then
9207 enableval="$enable_choicedlg"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9211 else
9212 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9225
9226fi;
9227
9228 eval "$ac_cv_use_choicedlg"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_CHOICEDLG" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-coldlg or --disable-coldlg was given.
9247if test "${enable_coldlg+set}" = set; then
9248 enableval="$enable_coldlg"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9252 else
9253 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9266
9267fi;
9268
9269 eval "$ac_cv_use_coldlg"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_COLOURDLG" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-filedlg or --disable-filedlg was given.
9288if test "${enable_filedlg+set}" = set; then
9289 enableval="$enable_filedlg"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9293 else
9294 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9307
9308fi;
9309
9310 eval "$ac_cv_use_filedlg"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_FILEDLG" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-finddlg or --disable-finddlg was given.
9329if test "${enable_finddlg+set}" = set; then
9330 enableval="$enable_finddlg"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9334 else
9335 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9348
9349fi;
9350
9351 eval "$ac_cv_use_finddlg"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_FINDREPLDLG" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9370if test "${enable_fontdlg+set}" = set; then
9371 enableval="$enable_fontdlg"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9375 else
9376 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9389
9390fi;
9391
9392 eval "$ac_cv_use_fontdlg"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_FONTDLG" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9411if test "${enable_dirdlg+set}" = set; then
9412 enableval="$enable_dirdlg"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9416 else
9417 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9430
9431fi;
9432
9433 eval "$ac_cv_use_dirdlg"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_DIRDLG" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9452if test "${enable_msgdlg+set}" = set; then
9453 enableval="$enable_msgdlg"
9454
9455 if test "$enableval" = yes; then
9456 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9457 else
9458 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9459 fi
9460
9461else
9462
9463 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9471
9472fi;
9473
9474 eval "$ac_cv_use_msgdlg"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_MSGDLG" = yes; then
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488 enablestring=
9489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9490echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9491 no_cache=0
9492 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9493if test "${enable_numberdlg+set}" = set; then
9494 enableval="$enable_numberdlg"
9495
9496 if test "$enableval" = yes; then
9497 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9498 else
9499 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9500 fi
9501
9502else
9503
9504 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9505 if test "x$LINE" != x ; then
9506 eval "DEFAULT_$LINE"
9507 else
9508 no_cache=1
9509 fi
9510
9511 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9512
9513fi;
9514
9515 eval "$ac_cv_use_numberdlg"
9516 if test "$no_cache" != 1; then
9517 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9518 fi
9519
9520 if test "$wxUSE_NUMBERDLG" = yes; then
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
9523 else
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526 fi
9527
9528
9529 enablestring=
9530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9531echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9532 no_cache=0
9533 # Check whether --enable-splash or --disable-splash was given.
9534if test "${enable_splash+set}" = set; then
9535 enableval="$enable_splash"
9536
9537 if test "$enableval" = yes; then
9538 ac_cv_use_splash='wxUSE_SPLASH=yes'
9539 else
9540 ac_cv_use_splash='wxUSE_SPLASH=no'
9541 fi
9542
9543else
9544
9545 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9546 if test "x$LINE" != x ; then
9547 eval "DEFAULT_$LINE"
9548 else
9549 no_cache=1
9550 fi
9551
9552 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9553
9554fi;
9555
9556 eval "$ac_cv_use_splash"
9557 if test "$no_cache" != 1; then
9558 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9559 fi
9560
9561 if test "$wxUSE_SPLASH" = yes; then
9562 echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
9564 else
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
9567 fi
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9572echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-textdlg or --disable-textdlg was given.
9575if test "${enable_textdlg+set}" = set; then
9576 enableval="$enable_textdlg"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9580 else
9581 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9582 fi
9583
9584else
9585
9586 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9587 if test "x$LINE" != x ; then
9588 eval "DEFAULT_$LINE"
9589 else
9590 no_cache=1
9591 fi
9592
9593 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9594
9595fi;
9596
9597 eval "$ac_cv_use_textdlg"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_TEXTDLG" = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604echo "${ECHO_T}yes" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
9608 fi
9609
9610
9611 enablestring=
9612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9613echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9616if test "${enable_tipdlg+set}" = set; then
9617 enableval="$enable_tipdlg"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9621 else
9622 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9623 fi
9624
9625else
9626
9627 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9628 if test "x$LINE" != x ; then
9629 eval "DEFAULT_$LINE"
9630 else
9631 no_cache=1
9632 fi
9633
9634 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9635
9636fi;
9637
9638 eval "$ac_cv_use_tipdlg"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_STARTUP_TIPS" = yes; then
9644 echo "$as_me:$LINENO: result: yes" >&5
9645echo "${ECHO_T}yes" >&6
9646 else
9647 echo "$as_me:$LINENO: result: no" >&5
9648echo "${ECHO_T}no" >&6
9649 fi
9650
9651
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9654echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9657if test "${enable_progressdlg+set}" = set; then
9658 enableval="$enable_progressdlg"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9662 else
9663 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9664 fi
9665
9666else
9667
9668 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9669 if test "x$LINE" != x ; then
9670 eval "DEFAULT_$LINE"
9671 else
9672 no_cache=1
9673 fi
9674
9675 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9676
9677fi;
9678
9679 eval "$ac_cv_use_progressdlg"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_PROGRESSDLG" = yes; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
9687 else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690 fi
9691
9692
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9695echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9698if test "${enable_wizarddlg+set}" = set; then
9699 enableval="$enable_wizarddlg"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9703 else
9704 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9705 fi
9706
9707else
9708
9709 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9710 if test "x$LINE" != x ; then
9711 eval "DEFAULT_$LINE"
9712 else
9713 no_cache=1
9714 fi
9715
9716 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9717
9718fi;
9719
9720 eval "$ac_cv_use_wizarddlg"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_WIZARDDLG" = yes; then
9726 echo "$as_me:$LINENO: result: yes" >&5
9727echo "${ECHO_T}yes" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731 fi
9732
9733
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-menus or --disable-menus was given.
9741if test "${enable_menus+set}" = set; then
9742 enableval="$enable_menus"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_menus='wxUSE_MENUS=yes'
9746 else
9747 ac_cv_use_menus='wxUSE_MENUS=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9760
9761fi;
9762
9763 eval "$ac_cv_use_menus"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_MENUS" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-miniframe or --disable-miniframe was given.
9782if test "${enable_miniframe+set}" = set; then
9783 enableval="$enable_miniframe"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9787 else
9788 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9801
9802fi;
9803
9804 eval "$ac_cv_use_miniframe"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_MINIFRAME" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-tooltips or --disable-tooltips was given.
9823if test "${enable_tooltips+set}" = set; then
9824 enableval="$enable_tooltips"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9828 else
9829 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9842
9843fi;
9844
9845 eval "$ac_cv_use_tooltips"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_TOOLTIPS" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-splines or --disable-splines was given.
9864if test "${enable_splines+set}" = set; then
9865 enableval="$enable_splines"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_splines='wxUSE_SPLINES=yes'
9869 else
9870 ac_cv_use_splines='wxUSE_SPLINES=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9883
9884fi;
9885
9886 eval "$ac_cv_use_splines"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_SPLINES" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
fbe2ca43
SN
9900 enablestring=
9901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9902echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9903 no_cache=0
9904 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9905if test "${enable_mousewheel+set}" = set; then
9906 enableval="$enable_mousewheel"
9907
9908 if test "$enableval" = yes; then
9909 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9910 else
9911 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9912 fi
9913
9914else
9915
9916 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9917 if test "x$LINE" != x ; then
9918 eval "DEFAULT_$LINE"
9919 else
9920 no_cache=1
9921 fi
9922
9923 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9924
9925fi;
9926
9927 eval "$ac_cv_use_mousewheel"
9928 if test "$no_cache" != 1; then
9929 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9930 fi
9931
9932 if test "$wxUSE_MOUSEWHEEL" = yes; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938 fi
9939
9940
a848cd7e
SC
9941 enablestring=
9942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9943echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9944 no_cache=0
9945 # Check whether --enable-validators or --disable-validators was given.
9946if test "${enable_validators+set}" = set; then
9947 enableval="$enable_validators"
9948
9949 if test "$enableval" = yes; then
9950 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9951 else
9952 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9953 fi
9954
9955else
9956
9957 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9958 if test "x$LINE" != x ; then
9959 eval "DEFAULT_$LINE"
9960 else
9961 no_cache=1
9962 fi
9963
9964 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9965
9966fi;
9967
9968 eval "$ac_cv_use_validators"
9969 if test "$no_cache" != 1; then
9970 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9971 fi
9972
9973 if test "$wxUSE_VALIDATORS" = yes; then
9974 echo "$as_me:$LINENO: result: yes" >&5
9975echo "${ECHO_T}yes" >&6
9976 else
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
9979 fi
9980
9981
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9987if test "${enable_busyinfo+set}" = set; then
9988 enableval="$enable_busyinfo"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9992 else
9993 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10006
10007fi;
10008
10009 eval "$ac_cv_use_busyinfo"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_BUSYINFO" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022
10023 enablestring=
10024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10025echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10026 no_cache=0
10027 # Check whether --enable-joystick or --disable-joystick was given.
10028if test "${enable_joystick+set}" = set; then
10029 enableval="$enable_joystick"
10030
10031 if test "$enableval" = yes; then
10032 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10033 else
10034 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10035 fi
10036
10037else
10038
10039 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10040 if test "x$LINE" != x ; then
10041 eval "DEFAULT_$LINE"
10042 else
10043 no_cache=1
10044 fi
10045
10046 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10047
10048fi;
10049
10050 eval "$ac_cv_use_joystick"
10051 if test "$no_cache" != 1; then
10052 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10053 fi
10054
10055 if test "$wxUSE_JOYSTICK" = yes; then
10056 echo "$as_me:$LINENO: result: yes" >&5
10057echo "${ECHO_T}yes" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062
10063
10064 enablestring=
10065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10066echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10067 no_cache=0
10068 # Check whether --enable-metafile or --disable-metafile was given.
10069if test "${enable_metafile+set}" = set; then
10070 enableval="$enable_metafile"
10071
10072 if test "$enableval" = yes; then
10073 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10074 else
10075 ac_cv_use_metafile='wxUSE_METAFILE=no'
10076 fi
10077
10078else
10079
10080 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10081 if test "x$LINE" != x ; then
10082 eval "DEFAULT_$LINE"
10083 else
10084 no_cache=1
10085 fi
10086
10087 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10088
10089fi;
10090
10091 eval "$ac_cv_use_metafile"
10092 if test "$no_cache" != 1; then
10093 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10094 fi
10095
10096 if test "$wxUSE_METAFILE" = yes; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
10102 fi
10103
10104
10105 enablestring=
10106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10107echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10108 no_cache=0
10109 # Check whether --enable-dragimage or --disable-dragimage was given.
10110if test "${enable_dragimage+set}" = set; then
10111 enableval="$enable_dragimage"
10112
10113 if test "$enableval" = yes; then
10114 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10115 else
10116 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10117 fi
10118
10119else
10120
10121 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10122 if test "x$LINE" != x ; then
10123 eval "DEFAULT_$LINE"
10124 else
10125 no_cache=1
10126 fi
10127
10128 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10129
10130fi;
10131
10132 eval "$ac_cv_use_dragimage"
10133 if test "$no_cache" != 1; then
10134 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10135 fi
10136
10137 if test "$wxUSE_DRAGIMAGE" = yes; then
10138 echo "$as_me:$LINENO: result: yes" >&5
10139echo "${ECHO_T}yes" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142echo "${ECHO_T}no" >&6
10143 fi
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10148echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-accessibility or --disable-accessibility was given.
10151if test "${enable_accessibility+set}" = set; then
10152 enableval="$enable_accessibility"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10156 else
10157 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10158 fi
10159
10160else
10161
10162 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10163 if test "x$LINE" != x ; then
10164 eval "DEFAULT_$LINE"
10165 else
10166 no_cache=1
10167 fi
10168
10169 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10170
10171fi;
10172
10173 eval "$ac_cv_use_accessibility"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_ACCESSIBILITY" = yes; then
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181 else
10182 echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184 fi
10185
10186
38b4a946
VZ
10187if test "$wxUSE_MSW" = "1"; then
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-dccache or --disable-dccache was given.
10194if test "${enable_dccache+set}" = set; then
10195 enableval="$enable_dccache"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10199 else
10200 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10213
10214fi;
10215
10216 eval "$ac_cv_use_dccache"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_DC_CACHEING" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229fi
10230
a848cd7e
SC
10231
10232
10233 enablestring=
10234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10235echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10236 no_cache=0
10237 # Check whether --enable-palette or --disable-palette was given.
10238if test "${enable_palette+set}" = set; then
10239 enableval="$enable_palette"
10240
10241 if test "$enableval" = yes; then
10242 ac_cv_use_palette='wxUSE_PALETTE=yes'
10243 else
10244 ac_cv_use_palette='wxUSE_PALETTE=no'
10245 fi
10246
10247else
10248
10249 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10250 if test "x$LINE" != x ; then
10251 eval "DEFAULT_$LINE"
10252 else
10253 no_cache=1
10254 fi
10255
10256 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10257
10258fi;
10259
10260 eval "$ac_cv_use_palette"
10261 if test "$no_cache" != 1; then
10262 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10263 fi
10264
10265 if test "$wxUSE_PALETTE" = yes; then
10266 echo "$as_me:$LINENO: result: yes" >&5
10267echo "${ECHO_T}yes" >&6
10268 else
10269 echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6
10271 fi
10272
10273
10274 enablestring=
10275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10276echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10277 no_cache=0
10278 # Check whether --enable-image or --disable-image was given.
10279if test "${enable_image+set}" = set; then
10280 enableval="$enable_image"
10281
10282 if test "$enableval" = yes; then
10283 ac_cv_use_image='wxUSE_IMAGE=yes'
10284 else
10285 ac_cv_use_image='wxUSE_IMAGE=no'
10286 fi
10287
10288else
10289
10290 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10291 if test "x$LINE" != x ; then
10292 eval "DEFAULT_$LINE"
10293 else
10294 no_cache=1
10295 fi
10296
10297 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10298
10299fi;
10300
10301 eval "$ac_cv_use_image"
10302 if test "$no_cache" != 1; then
10303 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10304 fi
10305
10306 if test "$wxUSE_IMAGE" = yes; then
10307 echo "$as_me:$LINENO: result: yes" >&5
10308echo "${ECHO_T}yes" >&6
10309 else
10310 echo "$as_me:$LINENO: result: no" >&5
10311echo "${ECHO_T}no" >&6
10312 fi
10313
10314
10315 enablestring=
10316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10317echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10318 no_cache=0
10319 # Check whether --enable-gif or --disable-gif was given.
10320if test "${enable_gif+set}" = set; then
10321 enableval="$enable_gif"
10322
10323 if test "$enableval" = yes; then
10324 ac_cv_use_gif='wxUSE_GIF=yes'
10325 else
10326 ac_cv_use_gif='wxUSE_GIF=no'
10327 fi
10328
10329else
10330
10331 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10332 if test "x$LINE" != x ; then
10333 eval "DEFAULT_$LINE"
10334 else
10335 no_cache=1
10336 fi
10337
10338 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10339
10340fi;
10341
10342 eval "$ac_cv_use_gif"
10343 if test "$no_cache" != 1; then
10344 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10345 fi
10346
10347 if test "$wxUSE_GIF" = yes; then
10348 echo "$as_me:$LINENO: result: yes" >&5
10349echo "${ECHO_T}yes" >&6
10350 else
10351 echo "$as_me:$LINENO: result: no" >&5
10352echo "${ECHO_T}no" >&6
10353 fi
10354
10355
10356 enablestring=
10357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10358echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10359 no_cache=0
10360 # Check whether --enable-pcx or --disable-pcx was given.
10361if test "${enable_pcx+set}" = set; then
10362 enableval="$enable_pcx"
10363
10364 if test "$enableval" = yes; then
10365 ac_cv_use_pcx='wxUSE_PCX=yes'
10366 else
10367 ac_cv_use_pcx='wxUSE_PCX=no'
10368 fi
10369
10370else
10371
10372 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10373 if test "x$LINE" != x ; then
10374 eval "DEFAULT_$LINE"
10375 else
10376 no_cache=1
10377 fi
10378
10379 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10380
10381fi;
10382
10383 eval "$ac_cv_use_pcx"
10384 if test "$no_cache" != 1; then
10385 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10386 fi
10387
10388 if test "$wxUSE_PCX" = yes; then
10389 echo "$as_me:$LINENO: result: yes" >&5
10390echo "${ECHO_T}yes" >&6
10391 else
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
10394 fi
10395
10396
10397 enablestring=
10398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10399echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10400 no_cache=0
10401 # Check whether --enable-iff or --disable-iff was given.
10402if test "${enable_iff+set}" = set; then
10403 enableval="$enable_iff"
10404
10405 if test "$enableval" = yes; then
10406 ac_cv_use_iff='wxUSE_IFF=yes'
10407 else
10408 ac_cv_use_iff='wxUSE_IFF=no'
10409 fi
10410
10411else
10412
10413 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10414 if test "x$LINE" != x ; then
10415 eval "DEFAULT_$LINE"
10416 else
10417 no_cache=1
10418 fi
10419
10420 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10421
10422fi;
10423
10424 eval "$ac_cv_use_iff"
10425 if test "$no_cache" != 1; then
10426 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10427 fi
10428
10429 if test "$wxUSE_IFF" = yes; then
10430 echo "$as_me:$LINENO: result: yes" >&5
10431echo "${ECHO_T}yes" >&6
10432 else
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
10435 fi
10436
10437
10438 enablestring=
10439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10440echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10441 no_cache=0
10442 # Check whether --enable-pnm or --disable-pnm was given.
10443if test "${enable_pnm+set}" = set; then
10444 enableval="$enable_pnm"
10445
10446 if test "$enableval" = yes; then
10447 ac_cv_use_pnm='wxUSE_PNM=yes'
10448 else
10449 ac_cv_use_pnm='wxUSE_PNM=no'
10450 fi
10451
10452else
10453
10454 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10455 if test "x$LINE" != x ; then
10456 eval "DEFAULT_$LINE"
10457 else
10458 no_cache=1
10459 fi
10460
10461 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10462
10463fi;
10464
10465 eval "$ac_cv_use_pnm"
10466 if test "$no_cache" != 1; then
10467 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10468 fi
10469
10470 if test "$wxUSE_PNM" = yes; then
10471 echo "$as_me:$LINENO: result: yes" >&5
10472echo "${ECHO_T}yes" >&6
10473 else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476 fi
10477
10478
10479 enablestring=
10480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10481echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10482 no_cache=0
10483 # Check whether --enable-xpm or --disable-xpm was given.
10484if test "${enable_xpm+set}" = set; then
10485 enableval="$enable_xpm"
10486
10487 if test "$enableval" = yes; then
10488 ac_cv_use_xpm='wxUSE_XPM=yes'
10489 else
10490 ac_cv_use_xpm='wxUSE_XPM=no'
10491 fi
10492
10493else
10494
10495 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10496 if test "x$LINE" != x ; then
10497 eval "DEFAULT_$LINE"
10498 else
10499 no_cache=1
10500 fi
10501
10502 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10503
10504fi;
10505
10506 eval "$ac_cv_use_xpm"
10507 if test "$no_cache" != 1; then
10508 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10509 fi
10510
10511 if test "$wxUSE_XPM" = yes; then
10512 echo "$as_me:$LINENO: result: yes" >&5
10513echo "${ECHO_T}yes" >&6
10514 else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517 fi
10518
10519
10520 enablestring=
10521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10522echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10523 no_cache=0
10524 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10525if test "${enable_ico_cur+set}" = set; then
10526 enableval="$enable_ico_cur"
10527
10528 if test "$enableval" = yes; then
10529 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10530 else
10531 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10532 fi
10533
10534else
10535
10536 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10537 if test "x$LINE" != x ; then
10538 eval "DEFAULT_$LINE"
10539 else
10540 no_cache=1
10541 fi
10542
10543 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10544
10545fi;
10546
10547 eval "$ac_cv_use_ico_cur"
10548 if test "$no_cache" != 1; then
10549 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10550 fi
10551
10552 if test "$wxUSE_ICO_CUR" = yes; then
10553 echo "$as_me:$LINENO: result: yes" >&5
10554echo "${ECHO_T}yes" >&6
10555 else
10556 echo "$as_me:$LINENO: result: no" >&5
10557echo "${ECHO_T}no" >&6
10558 fi
10559
10560
10561fi
10562
10563
10564
ceec2216
RL
10565# Check whether --with-flavour or --without-flavour was given.
10566if test "${with_flavour+set}" = set; then
10567 withval="$with_flavour"
10568 WX_FLAVOUR="$withval"
10569fi;
10570
10571
10572
a848cd7e
SC
10573 enablestring=
10574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10575echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10576 no_cache=0
10577 # Check whether --enable-official_build or --disable-official_build was given.
10578if test "${enable_official_build+set}" = set; then
10579 enableval="$enable_official_build"
10580
10581 if test "$enableval" = yes; then
10582 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10583 else
10584 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10585 fi
10586
10587else
10588
10589 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10590 if test "x$LINE" != x ; then
10591 eval "DEFAULT_$LINE"
10592 else
10593 no_cache=1
10594 fi
10595
10596 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10597
10598fi;
10599
10600 eval "$ac_cv_use_official_build"
10601 if test "$no_cache" != 1; then
10602 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10603 fi
10604
10605 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
10608 else
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
10611 fi
10612
10613# Check whether --enable-vendor or --disable-vendor was given.
10614if test "${enable_vendor+set}" = set; then
10615 enableval="$enable_vendor"
10616 VENDOR="$enableval"
10617fi;
10618if test "x$VENDOR" = "x"; then
10619 VENDOR="custom"
10620fi
10621
a848cd7e
SC
10622
10623
10624
10625 echo "saving argument cache $wx_arg_cache_file"
10626 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10627
10628
10629
10630echo "$as_me:$LINENO: checking for toolkit" >&5
10631echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10632
10633# In Wine, we need to default to MSW, not GTK or MOTIF
10634if test "$wxUSE_WINE" = "yes"; then
10635 DEFAULT_DEFAULT_wxUSE_GTK=0
10636 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10637 DEFAULT_DEFAULT_wxUSE_MSW=1
10638 wxUSE_SHARED=no
10639fi
10640
f597b41c 10641
a848cd7e
SC
10642if test "$wxUSE_GUI" = "yes"; then
10643
10644 if test "$USE_BEOS" = 1; then
10645 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10646echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi
10649
10650 if test "$TOOLKIT_GIVEN" = 1; then
10651 for toolkit in `echo $ALL_TOOLKITS`; do
10652 var=wxUSE_$toolkit
10653 eval "value=\$${var}"
f34ca037
MW
10654 if test "x$value" = "xno"; then
10655 eval "$var=0"
10656 elif test "x$value" != "x"; then
10657 eval "$var=1"
10658 fi
10659
10660 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10661 eval "wx${toolkit}_VERSION=$value"
10662 fi
a848cd7e
SC
10663 done
10664 else
10665 for toolkit in `echo $ALL_TOOLKITS`; do
10666 if test "$has_toolkit_in_cache" != 1; then
10667 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10668 else
10669 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10670
10671 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10672 if test "x$version" != "x"; then
10673 eval "wx${toolkit}_VERSION=$version"
10674 fi
a848cd7e
SC
10675 fi
10676 eval "wxUSE_$toolkit=\$${var}"
10677 done
10678 fi
10679
10680 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10681 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10682 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10683
10684 case "${host}" in
10685 *-pc-os2_emx | *-pc-os2-emx )
10686 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10687 esac
10688
10689 case "$NUM_TOOLKITS" in
10690 1)
10691 ;;
10692 0)
10693 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10694echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10695 { (exit 1); exit 1; }; }
10696 ;;
10697 *)
10698 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10699echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10700 { (exit 1); exit 1; }; }
10701 esac
10702
f34ca037
MW
10703 # to be removed when --disable-gtk2 isn't needed
10704 if test "x$wxUSE_GTK2" = "xyes"; then
10705 wxGTK_VERSION=2
10706 elif test "x$wxUSE_GTK2" = "xno"; then
10707 wxGTK_VERSION=1
10708 fi
10709
a848cd7e
SC
10710 for toolkit in `echo $ALL_TOOLKITS`; do
10711 var=wxUSE_$toolkit
10712 eval "value=\$${var}"
10713 if test "x$value" != x; then
10714 cache_var=CACHE_$toolkit
10715 eval "cache=\$${cache_var}"
10716 if test "$cache" = 1; then
10717 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10718 eval "version=\$wx${toolkit}_VERSION"
10719 if test "x$version" != "x"; then
10720 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10721 fi
a848cd7e
SC
10722 fi
10723 if test "$value" = 1; then
10724 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10725 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10726echo "${ECHO_T}$toolkit_echo" >&6
10727 fi
10728 fi
10729 done
10730else
10731 if test "x$host_alias" != "x"; then
10732 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10733echo "${ECHO_T}base ($host_alias hosted) only" >&6
10734 else
10735 echo "$as_me:$LINENO: result: base only" >&5
10736echo "${ECHO_T}base only" >&6
10737 fi
10738fi
10739
10740wants_win32=0
10741doesnt_want_win32=0
10742case "${host}" in
10743 *-*-cygwin*)
10744 if test "$wxUSE_MSW" = 1 ; then
10745 wants_win32=1
7275146d 10746 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10747 else
10748 doesnt_want_win32=1
10749 fi
10750 ;;
10751 *-*-mingw*)
10752 wants_win32=1
10753 ;;
10754esac
10755
10756if test "$wxUSE_WINE" = "yes"; then
10757 wants_win32=1
10758 CC=winegcc
10759 CXX=wineg++
a848cd7e
SC
10760 LDFLAGS_GUI="-mwindows"
10761fi
10762
10763if test "$wants_win32" = 1 ; then
10764 USE_UNIX=0
10765 USE_WIN32=1
10766 cat >>confdefs.h <<\_ACEOF
10767#define __WIN32__ 1
10768_ACEOF
10769
10770 cat >>confdefs.h <<\_ACEOF
10771#define __WIN95__ 1
10772_ACEOF
10773
10774 cat >>confdefs.h <<\_ACEOF
10775#define __WINDOWS__ 1
10776_ACEOF
10777
10778 cat >>confdefs.h <<\_ACEOF
10779#define __GNUWIN32__ 1
10780_ACEOF
10781
10782 cat >>confdefs.h <<\_ACEOF
10783#define STRICT 1
10784_ACEOF
10785
10786 cat >>confdefs.h <<\_ACEOF
10787#define WINVER 0x0400
10788_ACEOF
10789
10790fi
10791if test "$doesnt_want_win32" = 1 ; then
10792 USE_UNIX=1
10793 USE_WIN32=0
10794fi
10795
10796if test "$USE_UNIX" = 1 ; then
10797 wxUSE_UNIX=yes
10798 cat >>confdefs.h <<\_ACEOF
10799#define __UNIX__ 1
10800_ACEOF
10801
10802fi
10803
10804
10805cat >confcache <<\_ACEOF
10806# This file is a shell script that caches the results of configure
10807# tests run on this system so they can be shared between configure
10808# scripts and configure runs, see configure's option --config-cache.
10809# It is not useful on other systems. If it contains results you don't
10810# want to keep, you may remove or edit it.
10811#
10812# config.status only pays attention to the cache file if you give it
10813# the --recheck option to rerun configure.
10814#
10815# `ac_cv_env_foo' variables (set or unset) will be overridden when
10816# loading this file, other *unset* `ac_cv_foo' will be assigned the
10817# following values.
10818
10819_ACEOF
10820
10821# The following way of writing the cache mishandles newlines in values,
10822# but we know of no workaround that is simple, portable, and efficient.
10823# So, don't put newlines in cache variables' values.
10824# Ultrix sh set writes to stderr and can't be redirected directly,
10825# and sets the high bit in the cache file unless we assign to the vars.
10826{
10827 (set) 2>&1 |
10828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10829 *ac_space=\ *)
10830 # `set' does not quote correctly, so add quotes (double-quote
10831 # substitution turns \\\\ into \\, and sed turns \\ into \).
10832 sed -n \
ac1cb8d3
VS
10833 "s/'/'\\\\''/g;
10834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10835 ;;
10836 *)
10837 # `set' quotes correctly as required by POSIX, so do not add quotes.
10838 sed -n \
ac1cb8d3 10839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10840 ;;
10841 esac;
10842} |
10843 sed '
10844 t clear
10845 : clear
10846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10847 t end
10848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10849 : end' >>confcache
10850if diff $cache_file confcache >/dev/null 2>&1; then :; else
10851 if test -w $cache_file; then
10852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10853 cat confcache >$cache_file
10854 else
10855 echo "not updating unwritable cache $cache_file"
10856 fi
10857fi
10858rm -f confcache
10859
a848cd7e 10860CFLAGS=${CFLAGS:=}
6dcfc289
DE
10861
10862
3006edc0 10863
6dcfc289 10864 ac_ext=c
a848cd7e
SC
10865ac_cpp='$CPP $CPPFLAGS'
10866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868ac_compiler_gnu=$ac_cv_c_compiler_gnu
10869if test -n "$ac_tool_prefix"; then
10870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10871set dummy ${ac_tool_prefix}gcc; ac_word=$2
10872echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874if test "${ac_cv_prog_CC+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877 if test -n "$CC"; then
10878 ac_cv_prog_CC="$CC" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10892done
10893
10894fi
10895fi
10896CC=$ac_cv_prog_CC
10897if test -n "$CC"; then
10898 echo "$as_me:$LINENO: result: $CC" >&5
10899echo "${ECHO_T}$CC" >&6
10900else
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
10903fi
10904
10905fi
10906if test -z "$ac_cv_prog_CC"; then
10907 ac_ct_CC=$CC
10908 # Extract the first word of "gcc", so it can be a program name with args.
10909set dummy gcc; ac_word=$2
10910echo "$as_me:$LINENO: checking for $ac_word" >&5
10911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 if test -n "$ac_ct_CC"; then
10916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_ac_ct_CC="gcc"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930done
10931
10932fi
10933fi
10934ac_ct_CC=$ac_cv_prog_ac_ct_CC
10935if test -n "$ac_ct_CC"; then
10936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10937echo "${ECHO_T}$ac_ct_CC" >&6
10938else
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
10941fi
10942
10943 CC=$ac_ct_CC
10944else
10945 CC="$ac_cv_prog_CC"
10946fi
10947
10948if test -z "$CC"; then
10949 if test -n "$ac_tool_prefix"; then
10950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10951set dummy ${ac_tool_prefix}cc; ac_word=$2
10952echo "$as_me:$LINENO: checking for $ac_word" >&5
10953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10954if test "${ac_cv_prog_CC+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10956else
10957 if test -n "$CC"; then
10958 ac_cv_prog_CC="$CC" # Let the user override the test.
10959else
10960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961for as_dir in $PATH
10962do
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10967 ac_cv_prog_CC="${ac_tool_prefix}cc"
10968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10970 fi
10971done
10972done
10973
10974fi
10975fi
10976CC=$ac_cv_prog_CC
10977if test -n "$CC"; then
10978 echo "$as_me:$LINENO: result: $CC" >&5
10979echo "${ECHO_T}$CC" >&6
10980else
10981 echo "$as_me:$LINENO: result: no" >&5
10982echo "${ECHO_T}no" >&6
10983fi
10984
10985fi
10986if test -z "$ac_cv_prog_CC"; then
10987 ac_ct_CC=$CC
10988 # Extract the first word of "cc", so it can be a program name with args.
10989set dummy cc; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="cc"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 CC=$ac_ct_CC
11024else
11025 CC="$ac_cv_prog_CC"
11026fi
11027
11028fi
11029if test -z "$CC"; then
11030 # Extract the first word of "cc", so it can be a program name with args.
11031set dummy cc; ac_word=$2
11032echo "$as_me:$LINENO: checking for $ac_word" >&5
11033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11034if test "${ac_cv_prog_CC+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 if test -n "$CC"; then
11038 ac_cv_prog_CC="$CC" # Let the user override the test.
11039else
11040 ac_prog_rejected=no
11041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11049 ac_prog_rejected=yes
11050 continue
11051 fi
11052 ac_cv_prog_CC="cc"
11053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056done
11057done
11058
11059if test $ac_prog_rejected = yes; then
11060 # We found a bogon in the path, so make sure we never use it.
11061 set dummy $ac_cv_prog_CC
11062 shift
11063 if test $# != 0; then
11064 # We chose a different compiler from the bogus one.
11065 # However, it has the same basename, so the bogon will be chosen
11066 # first if we set CC to just the basename; use the full file name.
11067 shift
11068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11069 fi
11070fi
11071fi
11072fi
11073CC=$ac_cv_prog_CC
11074if test -n "$CC"; then
11075 echo "$as_me:$LINENO: result: $CC" >&5
11076echo "${ECHO_T}$CC" >&6
11077else
11078 echo "$as_me:$LINENO: result: no" >&5
11079echo "${ECHO_T}no" >&6
11080fi
11081
11082fi
11083if test -z "$CC"; then
11084 if test -n "$ac_tool_prefix"; then
11085 for ac_prog in cl
11086 do
11087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089echo "$as_me:$LINENO: checking for $ac_word" >&5
11090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091if test "${ac_cv_prog_CC+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093else
11094 if test -n "$CC"; then
11095 ac_cv_prog_CC="$CC" # Let the user override the test.
11096else
11097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098for as_dir in $PATH
11099do
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11107 fi
11108done
11109done
11110
11111fi
11112fi
11113CC=$ac_cv_prog_CC
11114if test -n "$CC"; then
11115 echo "$as_me:$LINENO: result: $CC" >&5
11116echo "${ECHO_T}$CC" >&6
11117else
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120fi
11121
11122 test -n "$CC" && break
11123 done
11124fi
11125if test -z "$CC"; then
11126 ac_ct_CC=$CC
11127 for ac_prog in cl
11128do
11129 # Extract the first word of "$ac_prog", so it can be a program name with args.
11130set dummy $ac_prog; ac_word=$2
11131echo "$as_me:$LINENO: checking for $ac_word" >&5
11132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 if test -n "$ac_ct_CC"; then
11137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11138else
11139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $PATH
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_prog_ac_ct_CC="$ac_prog"
11147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11149 fi
11150done
11151done
11152
11153fi
11154fi
11155ac_ct_CC=$ac_cv_prog_ac_ct_CC
11156if test -n "$ac_ct_CC"; then
11157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11158echo "${ECHO_T}$ac_ct_CC" >&6
11159else
11160 echo "$as_me:$LINENO: result: no" >&5
11161echo "${ECHO_T}no" >&6
11162fi
11163
11164 test -n "$ac_ct_CC" && break
11165done
11166
11167 CC=$ac_ct_CC
11168fi
11169
11170fi
11171
11172
11173test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11174See \`config.log' for more details." >&5
11175echo "$as_me: error: no acceptable C compiler found in \$PATH
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178
11179# Provide some information about the compiler.
11180echo "$as_me:$LINENO:" \
11181 "checking for C compiler version" >&5
11182ac_compiler=`set X $ac_compile; echo $2`
11183{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11184 (eval $ac_compiler --version </dev/null >&5) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }
11188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11189 (eval $ac_compiler -v </dev/null >&5) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }
11193{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11194 (eval $ac_compiler -V </dev/null >&5) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }
11198
11199cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205
11206int
11207main ()
11208{
11209
11210 ;
11211 return 0;
11212}
11213_ACEOF
11214ac_clean_files_save=$ac_clean_files
11215ac_clean_files="$ac_clean_files a.out a.exe b.out"
11216# Try to create an executable without -o first, disregard a.out.
11217# It will help us diagnose broken compilers, and finding out an intuition
11218# of exeext.
ac1cb8d3
VS
11219echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11220echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11221ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11222if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11223 (eval $ac_link_default) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; then
11227 # Find the output, starting from the most likely. This scheme is
11228# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11229# resort.
11230
11231# Be careful to initialize this variable, since it used to be cached.
11232# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11233ac_cv_exeext=
11234# b.out is created by i960 compilers.
11235for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11236do
11237 test -f "$ac_file" || continue
11238 case $ac_file in
11239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11240 ;;
a848cd7e 11241 conftest.$ac_ext )
ac1cb8d3
VS
11242 # This is the source file.
11243 ;;
a848cd7e 11244 [ab].out )
ac1cb8d3
VS
11245 # We found the default executable, but exeext='' is most
11246 # certainly right.
11247 break;;
a848cd7e 11248 *.* )
ac1cb8d3
VS
11249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11250 # FIXME: I believe we export ac_cv_exeext for Libtool,
11251 # but it would be cool to find out if it's true. Does anybody
11252 # maintain Libtool? --akim.
11253 export ac_cv_exeext
11254 break;;
a848cd7e 11255 * )
ac1cb8d3 11256 break;;
a848cd7e
SC
11257 esac
11258done
11259else
11260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11264See \`config.log' for more details." >&5
11265echo "$as_me: error: C compiler cannot create executables
11266See \`config.log' for more details." >&2;}
11267 { (exit 77); exit 77; }; }
11268fi
11269
11270ac_exeext=$ac_cv_exeext
11271echo "$as_me:$LINENO: result: $ac_file" >&5
11272echo "${ECHO_T}$ac_file" >&6
11273
11274# Check the compiler produces executables we can run. If not, either
11275# the compiler is broken, or we cross compile.
11276echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11277echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11279# If not cross compiling, check that we can run a simple program.
11280if test "$cross_compiling" != yes; then
11281 if { ac_try='./$ac_file'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 cross_compiling=no
11288 else
11289 if test "$cross_compiling" = maybe; then
11290 cross_compiling=yes
11291 else
11292 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11293If you meant to cross compile, use \`--host'.
11294See \`config.log' for more details." >&5
11295echo "$as_me: error: cannot run C compiled programs.
11296If you meant to cross compile, use \`--host'.
11297See \`config.log' for more details." >&2;}
11298 { (exit 1); exit 1; }; }
11299 fi
11300 fi
11301fi
11302echo "$as_me:$LINENO: result: yes" >&5
11303echo "${ECHO_T}yes" >&6
11304
11305rm -f a.out a.exe conftest$ac_cv_exeext b.out
11306ac_clean_files=$ac_clean_files_save
11307# Check the compiler produces executables we can run. If not, either
11308# the compiler is broken, or we cross compile.
11309echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11310echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11311echo "$as_me:$LINENO: result: $cross_compiling" >&5
11312echo "${ECHO_T}$cross_compiling" >&6
11313
11314echo "$as_me:$LINENO: checking for suffix of executables" >&5
11315echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; then
11321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11323# work properly (i.e., refer to `conftest.exe'), while it won't with
11324# `rm'.
11325for ac_file in conftest.exe conftest conftest.*; do
11326 test -f "$ac_file" || continue
11327 case $ac_file in
11328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11330 export ac_cv_exeext
11331 break;;
a848cd7e
SC
11332 * ) break;;
11333 esac
11334done
11335else
11336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11337See \`config.log' for more details." >&5
11338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11339See \`config.log' for more details." >&2;}
11340 { (exit 1); exit 1; }; }
11341fi
11342
11343rm -f conftest$ac_cv_exeext
11344echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11345echo "${ECHO_T}$ac_cv_exeext" >&6
11346
11347rm -f conftest.$ac_ext
11348EXEEXT=$ac_cv_exeext
11349ac_exeext=$EXEEXT
11350echo "$as_me:$LINENO: checking for suffix of object files" >&5
11351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11352if test "${ac_cv_objext+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361
11362int
11363main ()
11364{
11365
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370rm -f conftest.o conftest.obj
11371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; then
11376 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11377 case $ac_file in
11378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11380 break;;
11381 esac
11382done
11383else
11384 echo "$as_me: failed program was:" >&5
11385sed 's/^/| /' conftest.$ac_ext >&5
11386
11387{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11388See \`config.log' for more details." >&5
11389echo "$as_me: error: cannot compute suffix of object files: cannot compile
11390See \`config.log' for more details." >&2;}
11391 { (exit 1); exit 1; }; }
11392fi
11393
11394rm -f conftest.$ac_cv_objext conftest.$ac_ext
11395fi
11396echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11397echo "${ECHO_T}$ac_cv_objext" >&6
11398OBJEXT=$ac_cv_objext
11399ac_objext=$OBJEXT
11400echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11401echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11402if test "${ac_cv_c_compiler_gnu+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411
11412int
11413main ()
11414{
11415#ifndef __GNUC__
11416 choke me
11417#endif
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11425 (eval $ac_compile) 2>conftest.er1
a848cd7e 11426 ac_status=$?
ac1cb8d3
VS
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
a848cd7e
SC
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
be665c07
JS
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
ac1cb8d3
VS
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_compiler_gnu=yes
11446else
11447 echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
11450ac_compiler_gnu=no
11451fi
ac1cb8d3 11452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11453ac_cv_c_compiler_gnu=$ac_compiler_gnu
11454
11455fi
11456echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11458GCC=`test $ac_compiler_gnu = yes && echo yes`
11459ac_test_CFLAGS=${CFLAGS+set}
11460ac_save_CFLAGS=$CFLAGS
1c14217d 11461CFLAGS="-g"
a848cd7e
SC
11462echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11463echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11464if test "${ac_cv_prog_cc_g+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473
11474int
11475main ()
11476{
11477
11478 ;
11479 return 0;
11480}
11481_ACEOF
11482rm -f conftest.$ac_objext
11483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11484 (eval $ac_compile) 2>conftest.er1
a848cd7e 11485 ac_status=$?
ac1cb8d3
VS
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
a848cd7e
SC
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
be665c07
JS
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
ac1cb8d3
VS
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_prog_cc_g=yes
11505else
11506 echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509ac_cv_prog_cc_g=no
11510fi
ac1cb8d3 11511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11512fi
11513echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11514echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11515if test "$ac_test_CFLAGS" = set; then
11516 CFLAGS=$ac_save_CFLAGS
11517elif test $ac_cv_prog_cc_g = yes; then
11518 if test "$GCC" = yes; then
11519 CFLAGS="-g -O2"
11520 else
11521 CFLAGS="-g"
11522 fi
11523else
11524 if test "$GCC" = yes; then
11525 CFLAGS="-O2"
11526 else
11527 CFLAGS=
11528 fi
11529fi
11530echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11531echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11532if test "${ac_cv_prog_cc_stdc+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534else
11535 ac_cv_prog_cc_stdc=no
11536ac_save_CC=$CC
11537cat >conftest.$ac_ext <<_ACEOF
11538/* confdefs.h. */
11539_ACEOF
11540cat confdefs.h >>conftest.$ac_ext
11541cat >>conftest.$ac_ext <<_ACEOF
11542/* end confdefs.h. */
11543#include <stdarg.h>
11544#include <stdio.h>
11545#include <sys/types.h>
11546#include <sys/stat.h>
11547/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11548struct buf { int x; };
11549FILE * (*rcsopen) (struct buf *, struct stat *, int);
11550static char *e (p, i)
11551 char **p;
11552 int i;
11553{
11554 return p[i];
11555}
11556static char *f (char * (*g) (char **, int), char **p, ...)
11557{
11558 char *s;
11559 va_list v;
11560 va_start (v,p);
11561 s = g (p, va_arg (v,int));
11562 va_end (v);
11563 return s;
11564}
ac1cb8d3
VS
11565
11566/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11567 function prototypes and stuff, but not '\xHH' hex character constants.
11568 These don't provoke an error unfortunately, instead are silently treated
11569 as 'x'. The following induces an error, until -std1 is added to get
11570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11571 array size at least. It's necessary to write '\x00'==0 to get something
11572 that's true only with -std1. */
11573int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11574
a848cd7e
SC
11575int test (int i, double x);
11576struct s1 {int (*f) (int a);};
11577struct s2 {int (*f) (double a);};
11578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11579int argc;
11580char **argv;
11581int
11582main ()
11583{
11584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11585 ;
11586 return 0;
11587}
11588_ACEOF
11589# Don't try gcc -ansi; that turns off useful extensions and
11590# breaks some systems' header files.
11591# AIX -qlanglvl=ansi
11592# Ultrix and OSF/1 -std1
11593# HP-UX 10.20 and later -Ae
11594# HP-UX older versions -Aa -D_HPUX_SOURCE
11595# SVR4 -Xc -D__EXTENSIONS__
11596for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11597do
11598 CC="$ac_save_CC $ac_arg"
11599 rm -f conftest.$ac_objext
11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11601 (eval $ac_compile) 2>conftest.er1
a848cd7e 11602 ac_status=$?
ac1cb8d3
VS
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
a848cd7e
SC
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
be665c07
JS
11608 { ac_try='test -z "$ac_c_werror_flag"
11609 || test ! -s conftest.err'
ac1cb8d3
VS
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ac_cv_prog_cc_stdc=$ac_arg
11622break
11623else
11624 echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627fi
ac1cb8d3 11628rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11629done
11630rm -f conftest.$ac_ext conftest.$ac_objext
11631CC=$ac_save_CC
11632
11633fi
11634
11635case "x$ac_cv_prog_cc_stdc" in
11636 x|xno)
11637 echo "$as_me:$LINENO: result: none needed" >&5
11638echo "${ECHO_T}none needed" >&6 ;;
11639 *)
11640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11641echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11642 CC="$CC $ac_cv_prog_cc_stdc" ;;
11643esac
11644
11645# Some people use a C++ compiler to compile C. Since we use `exit',
11646# in C++ we need to declare it. In case someone uses the same compiler
11647# for both compiling C and C++ we need to have the C++ compiler decide
11648# the declaration of exit, since it's the most demanding environment.
11649cat >conftest.$ac_ext <<_ACEOF
11650#ifndef __cplusplus
11651 choke me
11652#endif
11653_ACEOF
11654rm -f conftest.$ac_objext
11655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11656 (eval $ac_compile) 2>conftest.er1
a848cd7e 11657 ac_status=$?
ac1cb8d3
VS
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
a848cd7e
SC
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
be665c07
JS
11663 { ac_try='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
ac1cb8d3
VS
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 for ac_declaration in \
ac1cb8d3 11677 '' \
a848cd7e
SC
11678 'extern "C" void std::exit (int) throw (); using std::exit;' \
11679 'extern "C" void std::exit (int); using std::exit;' \
11680 'extern "C" void exit (int) throw ();' \
11681 'extern "C" void exit (int);' \
11682 'void exit (int);'
11683do
11684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
de59c161 11690$ac_declaration
ac1cb8d3 11691#include <stdlib.h>
a848cd7e
SC
11692int
11693main ()
11694{
11695exit (42);
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11702 (eval $ac_compile) 2>conftest.er1
a848cd7e 11703 ac_status=$?
ac1cb8d3
VS
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
a848cd7e
SC
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
be665c07
JS
11709 { ac_try='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
ac1cb8d3
VS
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 :
11723else
11724 echo "$as_me: failed program was:" >&5
11725sed 's/^/| /' conftest.$ac_ext >&5
11726
11727continue
11728fi
ac1cb8d3 11729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11730 cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
11736$ac_declaration
11737int
11738main ()
11739{
11740exit (42);
11741 ;
11742 return 0;
11743}
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); } &&
be665c07
JS
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 break
11768else
11769 echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
11772fi
ac1cb8d3 11773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11774done
11775rm -f conftest*
11776if test -n "$ac_declaration"; then
11777 echo '#ifdef __cplusplus' >>confdefs.h
11778 echo $ac_declaration >>confdefs.h
11779 echo '#endif' >>confdefs.h
11780fi
11781
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786fi
ac1cb8d3 11787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11788ac_ext=c
11789ac_cpp='$CPP $CPPFLAGS'
11790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793
ab0ad5f1
VZ
11794
11795
11796 ac_ext=c
11797ac_cpp='$CPP $CPPFLAGS'
11798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11800ac_compiler_gnu=$ac_cv_c_compiler_gnu
11801
11802 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11803echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11804if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806else
11807 cat >conftest.$ac_ext <<_ACEOF
11808/* confdefs.h. */
11809_ACEOF
11810cat confdefs.h >>conftest.$ac_ext
11811cat >>conftest.$ac_ext <<_ACEOF
11812/* end confdefs.h. */
11813
11814int
11815main ()
11816{
11817
11818 #ifndef __INTEL_COMPILER
11819 choke me
11820 #endif
11821
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826rm -f conftest.$ac_objext
11827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828 (eval $ac_compile) 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
be665c07
JS
11835 { ac_try='test -z "$ac_c_werror_flag"
11836 || test ! -s conftest.err'
ab0ad5f1
VZ
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853bakefile_cv_c_compiler___INTEL_COMPILER=no
11854
11855fi
11856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11857
11858
11859fi
11860echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11861echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11862 ac_ext=c
11863ac_cpp='$CPP $CPPFLAGS'
11864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866ac_compiler_gnu=$ac_cv_c_compiler_gnu
11867
11868 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11869 :; INTELCC=yes
11870 else
11871 :;
11872 fi
11873
11874
11875 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11876 if test "xCC" = "xC"; then
11877 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11878echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11879if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888
11889int
11890main ()
11891{
11892
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext conftest.$ac_ext.o
11898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; then
11903 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11904 case $ac_file in
11905 conftest.$ac_ext.o)
0093c2fc 11906 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11907 ;;
11908 *)
11909 ;;
11910 esac
11911done
11912else
11913 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11914See \`config.log' for more details." >&5
11915echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11916See \`config.log' for more details." >&2;}
11917 { (exit 1); exit 1; }; }
11918
11919fi
11920
11921rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11922
11923fi
0093c2fc
VZ
11924echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11925echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11926if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 11927 if test "c" = "c"; then
0093c2fc 11928 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
11929 fi
11930 if test "c" = "cxx"; then
0093c2fc 11931 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
11932 fi
11933fi
11934
0093c2fc 11935 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
11936 unset ac_cv_prog_cc_g
11937 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11938ac_save_CFLAGS=$CFLAGS
1c14217d 11939CFLAGS="-g"
480ccd21
DE
11940echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11941echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11942if test "${ac_cv_prog_cc_g+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951
11952int
11953main ()
11954{
11955
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext
11961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
be665c07
JS
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
480ccd21
DE
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest.$ac_objext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_prog_cc_g=yes
11983else
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987ac_cv_prog_cc_g=no
11988fi
11989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11990fi
11991echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11992echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11993if test "$ac_test_CFLAGS" = set; then
11994 CFLAGS=$ac_save_CFLAGS
11995elif test $ac_cv_prog_cc_g = yes; then
11996 if test "$GCC" = yes; then
11997 CFLAGS="-g -O2"
11998 else
11999 CFLAGS="-g"
12000 fi
12001else
12002 if test "$GCC" = yes; then
12003 CFLAGS="-O2"
12004 else
12005 CFLAGS=
12006 fi
12007fi
3006edc0 12008 fi
ab0ad5f1 12009 fi
3006edc0
VZ
12010
12011 case `uname -s` in
12012 AIX*)
12013 ac_ext=c
12014ac_cpp='$CPP $CPPFLAGS'
12015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018
12019echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12020echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12021if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030
12031int
12032main ()
12033{
12034#ifndef __xlC__
12035 choke me
12036#endif
12037
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext
12043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
be665c07
JS
12051 { ac_try='test -z "$ac_c_werror_flag"
12052 || test ! -s conftest.err'
3006edc0
VZ
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
0093c2fc 12064 bakefile_compiler_xlc=yes
3006edc0
VZ
12065else
12066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
0093c2fc 12069bakefile_compiler_xlc=no
3006edc0
VZ
12070fi
12071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12072 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12073
12074fi
0093c2fc
VZ
12075echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12076echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12077
0093c2fc 12078XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12079ac_ext=c
12080ac_cpp='$CPP $CPPFLAGS'
12081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083ac_compiler_gnu=$ac_cv_c_compiler_gnu
12084
12085
12086 ;;
12087
12088 Darwin)
12089 ac_ext=c
95986553
DE
12090ac_cpp='$CPP $CPPFLAGS'
12091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093ac_compiler_gnu=$ac_cv_c_compiler_gnu
12094
12095echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12096echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12097if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099else
12100 cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
12105/* end confdefs.h. */
12106
12107int
12108main ()
12109{
12110#ifndef __MWERKS__
12111 choke me
12112#endif
12113
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118rm -f conftest.$ac_objext
12119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120 (eval $ac_compile) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
be665c07
JS
12127 { ac_try='test -z "$ac_c_werror_flag"
12128 || test ! -s conftest.err'
95986553
DE
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 bakefile_compiler_mwerks=yes
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145bakefile_compiler_mwerks=no
12146fi
12147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12148 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12149
12150fi
12151echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12152echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12153
0e6fa1d9 12154MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12155ac_ext=c
12156ac_cpp='$CPP $CPPFLAGS'
12157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12159ac_compiler_gnu=$ac_cv_c_compiler_gnu
12160
12161
3006edc0 12162 ac_ext=c
9273ffba
DE
12163ac_cpp='$CPP $CPPFLAGS'
12164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12166ac_compiler_gnu=$ac_cv_c_compiler_gnu
12167
12168echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12169echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12170if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179
12180int
12181main ()
12182{
12183#ifndef __xlC__
12184 choke me
12185#endif
12186
12187 ;
12188 return 0;
12189}
12190_ACEOF
12191rm -f conftest.$ac_objext
12192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
be665c07
JS
12200 { ac_try='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
9273ffba
DE
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
0093c2fc 12213 bakefile_compiler_xlc=yes
9273ffba
DE
12214else
12215 echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
0093c2fc 12218bakefile_compiler_xlc=no
9273ffba
DE
12219fi
12220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12221 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12222
12223fi
0093c2fc
VZ
12224echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12225echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12226
0093c2fc 12227XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12228ac_ext=c
12229ac_cpp='$CPP $CPPFLAGS'
12230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232ac_compiler_gnu=$ac_cv_c_compiler_gnu
12233
12234
3006edc0
VZ
12235 ;;
12236
12237 IRIX*)
a848cd7e 12238
6dcfc289 12239
0ad5d837
VZ
12240 ac_ext=c
12241ac_cpp='$CPP $CPPFLAGS'
12242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244ac_compiler_gnu=$ac_cv_c_compiler_gnu
12245
12246 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12247echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12248if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
12257
12258int
12259main ()
12260{
12261
12262 #ifndef _SGI_COMPILER_VERSION
12263 choke me
12264 #endif
12265
12266 ;
12267 return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext
12271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
be665c07
JS
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
0ad5d837
VZ
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12293else
12294 echo "$as_me: failed program was:" >&5
12295sed 's/^/| /' conftest.$ac_ext >&5
12296
12297bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12298
12299fi
12300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301
12302
12303fi
12304echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12305echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12306 ac_ext=c
12307ac_cpp='$CPP $CPPFLAGS'
12308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12310ac_compiler_gnu=$ac_cv_c_compiler_gnu
12311
12312 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12313 :; SGICC=yes
12314 else
12315 :;
12316 fi
12317
12318
3006edc0
VZ
12319 ;;
12320
0093c2fc 12321 HP-UX*)
3006edc0
VZ
12322
12323
12324 ac_ext=c
12325ac_cpp='$CPP $CPPFLAGS'
12326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12328ac_compiler_gnu=$ac_cv_c_compiler_gnu
12329
0093c2fc
VZ
12330 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12331echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12332if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335 cat >conftest.$ac_ext <<_ACEOF
12336/* confdefs.h. */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h. */
12341
12342int
12343main ()
12344{
12345
0093c2fc 12346 #ifndef __HP_cc
3006edc0
VZ
12347 choke me
12348 #endif
12349
12350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext
12355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
be665c07
JS
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
3006edc0
VZ
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
0093c2fc 12376 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12377else
12378 echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
0093c2fc 12381bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12382
12383fi
12384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12385
12386
12387fi
0093c2fc
VZ
12388echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12389echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12390 ac_ext=c
12391ac_cpp='$CPP $CPPFLAGS'
12392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12394ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395
0093c2fc
VZ
12396 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12397 :; HPCC=yes
a1aa0349
VZ
12398 else
12399 :;
12400 fi
12401
12402
12403 ;;
12404
0093c2fc 12405 OSF1)
a1aa0349
VZ
12406
12407
12408 ac_ext=c
12409ac_cpp='$CPP $CPPFLAGS'
12410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12412ac_compiler_gnu=$ac_cv_c_compiler_gnu
12413
0093c2fc
VZ
12414 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12415echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12416if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419 cat >conftest.$ac_ext <<_ACEOF
12420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
12424/* end confdefs.h. */
12425
12426int
12427main ()
12428{
12429
0093c2fc 12430 #ifndef __DECC
a1aa0349
VZ
12431 choke me
12432 #endif
12433
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438rm -f conftest.$ac_objext
12439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
be665c07
JS
12447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
a1aa0349
VZ
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
0093c2fc 12460 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
0093c2fc 12465bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12466
12467fi
12468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12469
12470
12471fi
0093c2fc
VZ
12472echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12473echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12474 ac_ext=c
12475ac_cpp='$CPP $CPPFLAGS'
12476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
0093c2fc
VZ
12480 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12481 :; COMPAQCC=yes
12482 else
12483 :;
12484 fi
12485
12486
12487 ;;
12488
12489 SunOS)
12490
12491
12492 ac_ext=c
12493ac_cpp='$CPP $CPPFLAGS'
12494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12496ac_compiler_gnu=$ac_cv_c_compiler_gnu
12497
12498 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12499echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12500if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502else
12503 cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509
12510int
12511main ()
12512{
12513
12514 #ifndef __SUNPRO_C
12515 choke me
12516 #endif
12517
12518 ;
12519 return 0;
12520}
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
be665c07
JS
12531 { ac_try='test -z "$ac_c_werror_flag"
12532 || test ! -s conftest.err'
0093c2fc
VZ
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 bakefile_cv_c_compiler___SUNPRO_C=yes
12545else
12546 echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549bakefile_cv_c_compiler___SUNPRO_C=no
12550
12551fi
12552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12553
12554
12555fi
12556echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12557echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12558 ac_ext=c
12559ac_cpp='$CPP $CPPFLAGS'
12560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12562ac_compiler_gnu=$ac_cv_c_compiler_gnu
12563
12564 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12565 :; SUNCC=yes
3006edc0
VZ
12566 else
12567 :;
12568 fi
12569
12570
12571 ;;
12572 esac
ab0ad5f1 12573 fi
a9e5b1f0
MW
12574
12575
3006edc0 12576
a848cd7e
SC
12577ac_ext=c
12578ac_cpp='$CPP $CPPFLAGS'
12579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12583echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12584# On Suns, sometimes $CPP names a directory.
12585if test -n "$CPP" && test -d "$CPP"; then
12586 CPP=
12587fi
12588if test -z "$CPP"; then
12589 if test "${ac_cv_prog_CPP+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591else
12592 # Double quotes because CPP needs to be expanded
12593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12594 do
12595 ac_preproc_ok=false
12596for ac_c_preproc_warn_flag in '' yes
12597do
12598 # Use a header file that comes with gcc, so configuring glibc
12599 # with a fresh cross-compiler works.
12600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12601 # <limits.h> exists even on freestanding compilers.
12602 # On the NeXT, cc -E runs the code through the compiler's parser,
12603 # not just through cpp. "Syntax error" is here to catch this case.
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610#ifdef __STDC__
12611# include <limits.h>
12612#else
12613# include <assert.h>
12614#endif
ac1cb8d3 12615 Syntax error
a848cd7e
SC
12616_ACEOF
12617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } >/dev/null; then
12625 if test -s conftest.err; then
12626 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12628 else
12629 ac_cpp_err=
12630 fi
12631else
12632 ac_cpp_err=yes
12633fi
12634if test -z "$ac_cpp_err"; then
12635 :
12636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 # Broken: fails on valid input.
12641continue
12642fi
12643rm -f conftest.err conftest.$ac_ext
12644
12645 # OK, works on sane cases. Now check whether non-existent headers
12646 # can be detected and how.
12647 cat >conftest.$ac_ext <<_ACEOF
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
12653#include <ac_nonexistent.h>
12654_ACEOF
12655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } >/dev/null; then
12663 if test -s conftest.err; then
12664 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12666 else
12667 ac_cpp_err=
12668 fi
12669else
12670 ac_cpp_err=yes
12671fi
12672if test -z "$ac_cpp_err"; then
12673 # Broken: success on invalid input.
12674continue
12675else
12676 echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679 # Passes both tests.
12680ac_preproc_ok=:
12681break
12682fi
12683rm -f conftest.err conftest.$ac_ext
12684
12685done
12686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12687rm -f conftest.err conftest.$ac_ext
12688if $ac_preproc_ok; then
12689 break
12690fi
12691
12692 done
12693 ac_cv_prog_CPP=$CPP
12694
12695fi
12696 CPP=$ac_cv_prog_CPP
12697else
12698 ac_cv_prog_CPP=$CPP
12699fi
12700echo "$as_me:$LINENO: result: $CPP" >&5
12701echo "${ECHO_T}$CPP" >&6
12702ac_preproc_ok=false
12703for ac_c_preproc_warn_flag in '' yes
12704do
12705 # Use a header file that comes with gcc, so configuring glibc
12706 # with a fresh cross-compiler works.
12707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12708 # <limits.h> exists even on freestanding compilers.
12709 # On the NeXT, cc -E runs the code through the compiler's parser,
12710 # not just through cpp. "Syntax error" is here to catch this case.
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717#ifdef __STDC__
12718# include <limits.h>
12719#else
12720# include <assert.h>
12721#endif
ac1cb8d3 12722 Syntax error
a848cd7e
SC
12723_ACEOF
12724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } >/dev/null; then
12732 if test -s conftest.err; then
12733 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12735 else
12736 ac_cpp_err=
12737 fi
12738else
12739 ac_cpp_err=yes
12740fi
12741if test -z "$ac_cpp_err"; then
12742 :
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 # Broken: fails on valid input.
12748continue
12749fi
12750rm -f conftest.err conftest.$ac_ext
12751
12752 # OK, works on sane cases. Now check whether non-existent headers
12753 # can be detected and how.
12754 cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
12760#include <ac_nonexistent.h>
12761_ACEOF
12762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } >/dev/null; then
12770 if test -s conftest.err; then
12771 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12773 else
12774 ac_cpp_err=
12775 fi
12776else
12777 ac_cpp_err=yes
12778fi
12779if test -z "$ac_cpp_err"; then
12780 # Broken: success on invalid input.
12781continue
12782else
12783 echo "$as_me: failed program was:" >&5
12784sed 's/^/| /' conftest.$ac_ext >&5
12785
12786 # Passes both tests.
12787ac_preproc_ok=:
12788break
12789fi
12790rm -f conftest.err conftest.$ac_ext
12791
12792done
12793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12794rm -f conftest.err conftest.$ac_ext
12795if $ac_preproc_ok; then
12796 :
12797else
12798 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12799See \`config.log' for more details." >&5
12800echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12801See \`config.log' for more details." >&2;}
12802 { (exit 1); exit 1; }; }
12803fi
12804
12805ac_ext=c
12806ac_cpp='$CPP $CPPFLAGS'
12807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12809ac_compiler_gnu=$ac_cv_c_compiler_gnu
12810
12811
12812echo "$as_me:$LINENO: checking for egrep" >&5
12813echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12814if test "${ac_cv_prog_egrep+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816else
12817 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12818 then ac_cv_prog_egrep='grep -E'
12819 else ac_cv_prog_egrep='egrep'
12820 fi
12821fi
12822echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12823echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12824 EGREP=$ac_cv_prog_egrep
12825
12826
12827if test $ac_cv_c_compiler_gnu = yes; then
12828 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12829echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12830if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832else
12833 ac_pattern="Autoconf.*'x'"
12834 cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840#include <sgtty.h>
12841Autoconf TIOCGETP
12842_ACEOF
12843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12844 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12845 ac_cv_prog_gcc_traditional=yes
12846else
12847 ac_cv_prog_gcc_traditional=no
12848fi
12849rm -f conftest*
12850
12851
12852 if test $ac_cv_prog_gcc_traditional = no; then
12853 cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859#include <termio.h>
12860Autoconf TCGETA
12861_ACEOF
12862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12863 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12864 ac_cv_prog_gcc_traditional=yes
12865fi
12866rm -f conftest*
12867
12868 fi
12869fi
12870echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12871echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12872 if test $ac_cv_prog_gcc_traditional = yes; then
12873 CC="$CC -traditional"
12874 fi
12875fi
12876
12877
12878
12879
12880ac_ext=cc
12881ac_cpp='$CXXCPP $CPPFLAGS'
12882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12885
12886
12887CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12888
12889
3006edc0 12890
6dcfc289 12891 ac_ext=cc
a848cd7e
SC
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896if test -n "$ac_tool_prefix"; then
12897 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12898 do
12899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12901echo "$as_me:$LINENO: checking for $ac_word" >&5
12902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903if test "${ac_cv_prog_CXX+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906 if test -n "$CXX"; then
12907 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12908else
12909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910for as_dir in $PATH
12911do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12916 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 break 2
12919 fi
12920done
12921done
12922
12923fi
12924fi
12925CXX=$ac_cv_prog_CXX
12926if test -n "$CXX"; then
12927 echo "$as_me:$LINENO: result: $CXX" >&5
12928echo "${ECHO_T}$CXX" >&6
12929else
12930 echo "$as_me:$LINENO: result: no" >&5
12931echo "${ECHO_T}no" >&6
12932fi
12933
12934 test -n "$CXX" && break
12935 done
12936fi
12937if test -z "$CXX"; then
12938 ac_ct_CXX=$CXX
12939 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12940do
12941 # Extract the first word of "$ac_prog", so it can be a program name with args.
12942set dummy $ac_prog; ac_word=$2
12943echo "$as_me:$LINENO: checking for $ac_word" >&5
12944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12945if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 if test -n "$ac_ct_CXX"; then
12949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12950else
12951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952for as_dir in $PATH
12953do
12954 IFS=$as_save_IFS
12955 test -z "$as_dir" && as_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12958 ac_cv_prog_ac_ct_CXX="$ac_prog"
12959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12960 break 2
12961 fi
12962done
12963done
12964
12965fi
12966fi
12967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12968if test -n "$ac_ct_CXX"; then
12969 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12970echo "${ECHO_T}$ac_ct_CXX" >&6
12971else
12972 echo "$as_me:$LINENO: result: no" >&5
12973echo "${ECHO_T}no" >&6
12974fi
12975
12976 test -n "$ac_ct_CXX" && break
12977done
12978test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12979
12980 CXX=$ac_ct_CXX
12981fi
12982
12983
12984# Provide some information about the compiler.
12985echo "$as_me:$LINENO:" \
12986 "checking for C++ compiler version" >&5
12987ac_compiler=`set X $ac_compile; echo $2`
12988{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12989 (eval $ac_compiler --version </dev/null >&5) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }
12993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12994 (eval $ac_compiler -v </dev/null >&5) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }
12998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12999 (eval $ac_compiler -V </dev/null >&5) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }
13003
13004echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13005echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13006if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
13015
13016int
13017main ()
13018{
13019#ifndef __GNUC__
13020 choke me
13021#endif
13022
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027rm -f conftest.$ac_objext
13028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13029 (eval $ac_compile) 2>conftest.er1
a848cd7e 13030 ac_status=$?
ac1cb8d3
VS
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
a848cd7e
SC
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
be665c07
JS
13036 { ac_try='test -z "$ac_cxx_werror_flag"
13037 || test ! -s conftest.err'
ac1cb8d3
VS
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 ac_compiler_gnu=yes
13050else
13051 echo "$as_me: failed program was:" >&5
13052sed 's/^/| /' conftest.$ac_ext >&5
13053
13054ac_compiler_gnu=no
13055fi
ac1cb8d3 13056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13057ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13058
13059fi
13060echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13061echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13062GXX=`test $ac_compiler_gnu = yes && echo yes`
13063ac_test_CXXFLAGS=${CXXFLAGS+set}
13064ac_save_CXXFLAGS=$CXXFLAGS
13065CXXFLAGS="-g"
13066echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13067echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13068if test "${ac_cv_prog_cxx_g+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071 cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077
13078int
13079main ()
13080{
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086rm -f conftest.$ac_objext
13087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13088 (eval $ac_compile) 2>conftest.er1
a848cd7e 13089 ac_status=$?
ac1cb8d3
VS
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
a848cd7e
SC
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
be665c07
JS
13095 { ac_try='test -z "$ac_cxx_werror_flag"
13096 || test ! -s conftest.err'
ac1cb8d3
VS
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 ac_cv_prog_cxx_g=yes
13109else
13110 echo "$as_me: failed program was:" >&5
13111sed 's/^/| /' conftest.$ac_ext >&5
13112
13113ac_cv_prog_cxx_g=no
13114fi
ac1cb8d3 13115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13116fi
13117echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13118echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13119if test "$ac_test_CXXFLAGS" = set; then
13120 CXXFLAGS=$ac_save_CXXFLAGS
13121elif test $ac_cv_prog_cxx_g = yes; then
13122 if test "$GXX" = yes; then
1c14217d 13123 CXXFLAGS="-g -O2"
a848cd7e 13124 else
1c14217d 13125 CXXFLAGS="-g"
a848cd7e
SC
13126 fi
13127else
13128 if test "$GXX" = yes; then
13129 CXXFLAGS="-O2"
13130 else
13131 CXXFLAGS=
13132 fi
13133fi
13134for ac_declaration in \
ac1cb8d3 13135 '' \
a848cd7e
SC
13136 'extern "C" void std::exit (int) throw (); using std::exit;' \
13137 'extern "C" void std::exit (int); using std::exit;' \
13138 'extern "C" void exit (int) throw ();' \
13139 'extern "C" void exit (int);' \
13140 'void exit (int);'
13141do
13142 cat >conftest.$ac_ext <<_ACEOF
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
de59c161 13148$ac_declaration
ac1cb8d3 13149#include <stdlib.h>
a848cd7e
SC
13150int
13151main ()
13152{
13153exit (42);
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext
13159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13160 (eval $ac_compile) 2>conftest.er1
a848cd7e 13161 ac_status=$?
ac1cb8d3
VS
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
a848cd7e
SC
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
be665c07
JS
13167 { ac_try='test -z "$ac_cxx_werror_flag"
13168 || test ! -s conftest.err'
ac1cb8d3
VS
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 :
13181else
13182 echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185continue
13186fi
ac1cb8d3 13187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13188 cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194$ac_declaration
13195int
13196main ()
13197{
13198exit (42);
13199 ;
13200 return 0;
13201}
13202_ACEOF
13203rm -f conftest.$ac_objext
13204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13205 (eval $ac_compile) 2>conftest.er1
a848cd7e 13206 ac_status=$?
ac1cb8d3
VS
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
a848cd7e
SC
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
be665c07
JS
13212 { ac_try='test -z "$ac_cxx_werror_flag"
13213 || test ! -s conftest.err'
ac1cb8d3
VS
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 break
13226else
13227 echo "$as_me: failed program was:" >&5
13228sed 's/^/| /' conftest.$ac_ext >&5
13229
13230fi
ac1cb8d3 13231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13232done
13233rm -f conftest*
13234if test -n "$ac_declaration"; then
13235 echo '#ifdef __cplusplus' >>confdefs.h
13236 echo $ac_declaration >>confdefs.h
13237 echo '#endif' >>confdefs.h
13238fi
13239
13240ac_ext=cc
13241ac_cpp='$CXXCPP $CPPFLAGS'
13242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13245
ab0ad5f1
VZ
13246
13247
13248 ac_ext=cc
13249ac_cpp='$CXXCPP $CPPFLAGS'
13250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13253
13254 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13255echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13256if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258else
13259 cat >conftest.$ac_ext <<_ACEOF
13260/* confdefs.h. */
13261_ACEOF
13262cat confdefs.h >>conftest.$ac_ext
13263cat >>conftest.$ac_ext <<_ACEOF
13264/* end confdefs.h. */
13265
13266int
13267main ()
13268{
13269
13270 #ifndef __INTEL_COMPILER
13271 choke me
13272 #endif
13273
13274 ;
13275 return 0;
13276}
13277_ACEOF
13278rm -f conftest.$ac_objext
13279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
be665c07
JS
13287 { ac_try='test -z "$ac_cxx_werror_flag"
13288 || test ! -s conftest.err'
ab0ad5f1
VZ
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13301else
13302 echo "$as_me: failed program was:" >&5
13303sed 's/^/| /' conftest.$ac_ext >&5
13304
13305bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13306
13307fi
13308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13309
13310
13311fi
13312echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13313echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13314 ac_ext=cc
13315ac_cpp='$CXXCPP $CPPFLAGS'
13316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13319
13320 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13321 :; INTELCXX=yes
13322 else
13323 :;
13324 fi
13325
13326
3006edc0
VZ
13327 if test "x$GCXX" != "xyes"; then
13328 if test "xCXX" = "xC"; then
13329 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13330echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13331if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333else
13334 cat >conftest.$ac_ext <<_ACEOF
13335/* confdefs.h. */
13336_ACEOF
13337cat confdefs.h >>conftest.$ac_ext
13338cat >>conftest.$ac_ext <<_ACEOF
13339/* end confdefs.h. */
13340
13341int
13342main ()
13343{
13344
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349rm -f conftest.$ac_objext conftest.$ac_ext.o
13350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13351 (eval $ac_compile) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; then
13355 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13356 case $ac_file in
13357 conftest.$ac_ext.o)
0093c2fc 13358 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13359 ;;
13360 *)
13361 ;;
13362 esac
13363done
13364else
13365 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13366See \`config.log' for more details." >&5
13367echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13368See \`config.log' for more details." >&2;}
13369 { (exit 1); exit 1; }; }
13370
13371fi
13372
13373rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13374
13375fi
0093c2fc
VZ
13376echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13377echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13378if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13379 if test "cxx" = "c"; then
0093c2fc 13380 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13381 fi
13382 if test "cxx" = "cxx"; then
0093c2fc 13383 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13384 fi
13385fi
13386
0093c2fc 13387 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13388 unset ac_cv_prog_cc_g
13389 ac_test_CFLAGS=${CFLAGS+set}
13390ac_save_CFLAGS=$CFLAGS
13391CFLAGS="-g"
13392echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13393echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13394if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403
13404int
13405main ()
13406{
13407
13408 ;
13409 return 0;
13410}
13411_ACEOF
13412rm -f conftest.$ac_objext
13413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
be665c07
JS
13421 { ac_try='test -z "$ac_cxx_werror_flag"
13422 || test ! -s conftest.err'
480ccd21
DE
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
3006edc0 13434 ac_cv_prog_cc_g=yes
480ccd21
DE
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
3006edc0 13439ac_cv_prog_cc_g=no
480ccd21
DE
13440fi
13441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442fi
3006edc0
VZ
13443echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13444echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13445if test "$ac_test_CFLAGS" = set; then
13446 CFLAGS=$ac_save_CFLAGS
13447elif test $ac_cv_prog_cc_g = yes; then
13448 if test "$GCC" = yes; then
13449 CFLAGS="-g -O2"
480ccd21 13450 else
3006edc0 13451 CFLAGS="-g"
480ccd21
DE
13452 fi
13453else
3006edc0
VZ
13454 if test "$GCC" = yes; then
13455 CFLAGS="-O2"
480ccd21 13456 else
3006edc0 13457 CFLAGS=
480ccd21
DE
13458 fi
13459fi
3006edc0 13460 fi
ab0ad5f1 13461 fi
3006edc0
VZ
13462
13463 case `uname -s` in
13464 AIX*)
13465 ac_ext=cc
13466ac_cpp='$CXXCPP $CPPFLAGS'
13467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13470
13471echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13472echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13473if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475else
13476 cat >conftest.$ac_ext <<_ACEOF
13477/* confdefs.h. */
13478_ACEOF
13479cat confdefs.h >>conftest.$ac_ext
13480cat >>conftest.$ac_ext <<_ACEOF
13481/* end confdefs.h. */
13482
13483int
13484main ()
13485{
13486#ifndef __xlC__
13487 choke me
13488#endif
13489
13490 ;
13491 return 0;
13492}
13493_ACEOF
13494rm -f conftest.$ac_objext
13495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13496 (eval $ac_compile) 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
be665c07
JS
13503 { ac_try='test -z "$ac_cxx_werror_flag"
13504 || test ! -s conftest.err'
3006edc0
VZ
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
0093c2fc 13516 bakefile_compiler_xlc=yes
3006edc0
VZ
13517else
13518 echo "$as_me: failed program was:" >&5
13519sed 's/^/| /' conftest.$ac_ext >&5
13520
0093c2fc 13521bakefile_compiler_xlc=no
3006edc0
VZ
13522fi
13523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13524 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13525
13526fi
0093c2fc
VZ
13527echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13528echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13529
0093c2fc 13530XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13531ac_ext=cc
13532ac_cpp='$CXXCPP $CPPFLAGS'
13533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13536
13537
13538 ;;
13539
13540 Darwin)
13541 ac_ext=cc
95986553
DE
13542ac_cpp='$CXXCPP $CPPFLAGS'
13543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13546
13547echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13548echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13549if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558
13559int
13560main ()
13561{
13562#ifndef __MWERKS__
13563 choke me
13564#endif
13565
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
be665c07
JS
13579 { ac_try='test -z "$ac_cxx_werror_flag"
13580 || test ! -s conftest.err'
95986553
DE
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 bakefile_compiler_mwerks=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597bakefile_compiler_mwerks=no
13598fi
13599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13601
13602fi
13603echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13604echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13605
0e6fa1d9 13606MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13607ac_ext=cc
13608ac_cpp='$CXXCPP $CPPFLAGS'
13609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13612
13613
3006edc0 13614 ac_ext=cc
9273ffba
DE
13615ac_cpp='$CXXCPP $CPPFLAGS'
13616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13619
13620echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13621echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13622if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624else
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631
13632int
13633main ()
13634{
13635#ifndef __xlC__
13636 choke me
13637#endif
13638
13639 ;
13640 return 0;
13641}
13642_ACEOF
13643rm -f conftest.$ac_objext
13644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
be665c07
JS
13652 { ac_try='test -z "$ac_cxx_werror_flag"
13653 || test ! -s conftest.err'
9273ffba
DE
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
0093c2fc 13665 bakefile_compiler_xlc=yes
9273ffba
DE
13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
0093c2fc 13670bakefile_compiler_xlc=no
9273ffba
DE
13671fi
13672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13673 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13674
13675fi
0093c2fc
VZ
13676echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13677echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13678
0093c2fc 13679XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13680ac_ext=cc
13681ac_cpp='$CXXCPP $CPPFLAGS'
13682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13685
13686
3006edc0
VZ
13687 ;;
13688
13689 IRIX*)
95986553 13690
6dcfc289 13691
0ad5d837
VZ
13692 ac_ext=cc
13693ac_cpp='$CXXCPP $CPPFLAGS'
13694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13697
13698 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13699echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13700if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13702else
13703 cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709
13710int
13711main ()
13712{
13713
13714 #ifndef _SGI_COMPILER_VERSION
13715 choke me
13716 #endif
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext
13723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13724 (eval $ac_compile) 2>conftest.er1
13725 ac_status=$?
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
be665c07
JS
13731 { ac_try='test -z "$ac_cxx_werror_flag"
13732 || test ! -s conftest.err'
0ad5d837
VZ
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try='test -s conftest.$ac_objext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13750
13751fi
13752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13753
13754
13755fi
13756echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13757echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13758 ac_ext=cc
13759ac_cpp='$CXXCPP $CPPFLAGS'
13760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13763
13764 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13765 :; SGICXX=yes
13766 else
13767 :;
13768 fi
13769
13770
3006edc0
VZ
13771 ;;
13772
0093c2fc 13773 HP-UX*)
3006edc0
VZ
13774
13775
13776 ac_ext=cc
13777ac_cpp='$CXXCPP $CPPFLAGS'
13778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13781
0093c2fc
VZ
13782 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13783echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13784if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786else
13787 cat >conftest.$ac_ext <<_ACEOF
13788/* confdefs.h. */
13789_ACEOF
13790cat confdefs.h >>conftest.$ac_ext
13791cat >>conftest.$ac_ext <<_ACEOF
13792/* end confdefs.h. */
13793
13794int
13795main ()
13796{
13797
0093c2fc 13798 #ifndef __HP_aCC
3006edc0
VZ
13799 choke me
13800 #endif
13801
13802 ;
13803 return 0;
13804}
13805_ACEOF
13806rm -f conftest.$ac_objext
13807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
be665c07
JS
13815 { ac_try='test -z "$ac_cxx_werror_flag"
13816 || test ! -s conftest.err'
3006edc0
VZ
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
0093c2fc 13828 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13829else
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
0093c2fc 13833bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13834
13835fi
13836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13837
13838
13839fi
0093c2fc
VZ
13840echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13841echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13842 ac_ext=cc
13843ac_cpp='$CXXCPP $CPPFLAGS'
13844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13847
0093c2fc
VZ
13848 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13849 :; HPCXX=yes
a1aa0349
VZ
13850 else
13851 :;
13852 fi
13853
13854
13855 ;;
13856
0093c2fc 13857 OSF1)
a1aa0349
VZ
13858
13859
13860 ac_ext=cc
13861ac_cpp='$CXXCPP $CPPFLAGS'
13862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13865
0093c2fc
VZ
13866 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13867echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13868if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871 cat >conftest.$ac_ext <<_ACEOF
13872/* confdefs.h. */
13873_ACEOF
13874cat confdefs.h >>conftest.$ac_ext
13875cat >>conftest.$ac_ext <<_ACEOF
13876/* end confdefs.h. */
13877
13878int
13879main ()
13880{
13881
0093c2fc 13882 #ifndef __DECCXX
a1aa0349
VZ
13883 choke me
13884 #endif
13885
13886 ;
13887 return 0;
13888}
13889_ACEOF
13890rm -f conftest.$ac_objext
13891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13892 (eval $ac_compile) 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
be665c07
JS
13899 { ac_try='test -z "$ac_cxx_werror_flag"
13900 || test ! -s conftest.err'
a1aa0349
VZ
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest.$ac_objext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
0093c2fc 13912 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
0093c2fc 13917bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
13918
13919fi
13920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13921
13922
13923fi
0093c2fc
VZ
13924echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13925echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
13926 ac_ext=cc
13927ac_cpp='$CXXCPP $CPPFLAGS'
13928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13931
0093c2fc
VZ
13932 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13933 :; COMPAQCXX=yes
13934 else
13935 :;
13936 fi
13937
13938
13939 ;;
13940
13941 SunOS)
13942
13943
13944 ac_ext=cc
13945ac_cpp='$CXXCPP $CPPFLAGS'
13946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13949
13950 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13951echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13952if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954else
13955 cat >conftest.$ac_ext <<_ACEOF
13956/* confdefs.h. */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h. */
13961
13962int
13963main ()
13964{
13965
13966 #ifndef __SUNPRO_CC
13967 choke me
13968 #endif
13969
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext
13975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
be665c07
JS
13983 { ac_try='test -z "$ac_cxx_werror_flag"
13984 || test ! -s conftest.err'
0093c2fc
VZ
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13997else
13998 echo "$as_me: failed program was:" >&5
13999sed 's/^/| /' conftest.$ac_ext >&5
14000
14001bakefile_cv_cxx_compiler___SUNPRO_CC=no
14002
14003fi
14004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14005
14006
14007fi
14008echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14009echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14010 ac_ext=cc
14011ac_cpp='$CXXCPP $CPPFLAGS'
14012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14015
14016 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14017 :; SUNCXX=yes
3006edc0
VZ
14018 else
14019 :;
ab0ad5f1 14020 fi
a9e5b1f0
MW
14021
14022
3006edc0
VZ
14023 ;;
14024 esac
14025 fi
14026
14027
14028
a848cd7e
SC
14029ac_ext=c
14030ac_cpp='$CPP $CPPFLAGS'
14031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14033ac_compiler_gnu=$ac_cv_c_compiler_gnu
14034
14035
a848cd7e
SC
14036if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14038set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14039echo "$as_me:$LINENO: checking for $ac_word" >&5
14040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14041if test "${ac_cv_prog_RANLIB+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043else
14044 if test -n "$RANLIB"; then
14045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14046else
14047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048for as_dir in $PATH
14049do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058done
14059done
14060
14061fi
14062fi
14063RANLIB=$ac_cv_prog_RANLIB
14064if test -n "$RANLIB"; then
14065 echo "$as_me:$LINENO: result: $RANLIB" >&5
14066echo "${ECHO_T}$RANLIB" >&6
14067else
14068 echo "$as_me:$LINENO: result: no" >&5
14069echo "${ECHO_T}no" >&6
14070fi
14071
14072fi
14073if test -z "$ac_cv_prog_RANLIB"; then
14074 ac_ct_RANLIB=$RANLIB
14075 # Extract the first word of "ranlib", so it can be a program name with args.
14076set dummy ranlib; ac_word=$2
14077echo "$as_me:$LINENO: checking for $ac_word" >&5
14078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14079if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 if test -n "$ac_ct_RANLIB"; then
14083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14084else
14085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086for as_dir in $PATH
14087do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14092 ac_cv_prog_ac_ct_RANLIB="ranlib"
14093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14095 fi
14096done
14097done
14098
14099 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14100fi
14101fi
14102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14103if test -n "$ac_ct_RANLIB"; then
14104 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14105echo "${ECHO_T}$ac_ct_RANLIB" >&6
14106else
14107 echo "$as_me:$LINENO: result: no" >&5
14108echo "${ECHO_T}no" >&6
14109fi
14110
14111 RANLIB=$ac_ct_RANLIB
14112else
14113 RANLIB="$ac_cv_prog_RANLIB"
14114fi
14115
14116
8c80d384
DE
14117if test -n "$ac_tool_prefix"; then
14118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14119set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14120echo "$as_me:$LINENO: checking for $ac_word" >&5
14121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14122if test "${ac_cv_prog_AR+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124else
14125 if test -n "$AR"; then
14126 ac_cv_prog_AR="$AR" # Let the user override the test.
14127else
14128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129for as_dir in $PATH
14130do
14131 IFS=$as_save_IFS
14132 test -z "$as_dir" && as_dir=.
14133 for ac_exec_ext in '' $ac_executable_extensions; do
14134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14135 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14137 break 2
14138 fi
14139done
14140done
14141
14142fi
14143fi
14144AR=$ac_cv_prog_AR
14145if test -n "$AR"; then
14146 echo "$as_me:$LINENO: result: $AR" >&5
14147echo "${ECHO_T}$AR" >&6
14148else
14149 echo "$as_me:$LINENO: result: no" >&5
14150echo "${ECHO_T}no" >&6
14151fi
14152
8c80d384
DE
14153fi
14154if test -z "$ac_cv_prog_AR"; then
14155 ac_ct_AR=$AR
14156 # Extract the first word of "ar", so it can be a program name with args.
14157set dummy ar; ac_word=$2
14158echo "$as_me:$LINENO: checking for $ac_word" >&5
14159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14160if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162else
14163 if test -n "$ac_ct_AR"; then
14164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14165else
14166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167for as_dir in $PATH
14168do
14169 IFS=$as_save_IFS
14170 test -z "$as_dir" && as_dir=.
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14173 ac_cv_prog_ac_ct_AR="ar"
14174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14175 break 2
14176 fi
14177done
14178done
14179
14180fi
14181fi
14182ac_ct_AR=$ac_cv_prog_ac_ct_AR
14183if test -n "$ac_ct_AR"; then
14184 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14185echo "${ECHO_T}$ac_ct_AR" >&6
14186else
14187 echo "$as_me:$LINENO: result: no" >&5
14188echo "${ECHO_T}no" >&6
14189fi
14190
14191 AR=$ac_ct_AR
14192else
14193 AR="$ac_cv_prog_AR"
14194fi
14195
a848cd7e 14196if test "x$AR" = "x" ; then
77ffb593
JS
14197 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14198echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14199 { (exit 1); exit 1; }; }
14200fi
14201
14202# Find a good install program. We prefer a C program (faster),
14203# so one script is as good as another. But avoid the broken or
14204# incompatible versions:
14205# SysV /etc/install, /usr/sbin/install
14206# SunOS /usr/etc/install
14207# IRIX /sbin/install
14208# AIX /bin/install
14209# AmigaOS /C/install, which installs bootblocks on floppy discs
14210# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14211# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14212# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14213# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14214# ./install, which can be erroneously created by make from ./install.sh.
14215echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14216echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14217if test -z "$INSTALL"; then
14218if test "${ac_cv_path_install+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14220else
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222for as_dir in $PATH
14223do
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 # Account for people who put trailing slashes in PATH elements.
14227case $as_dir/ in
14228 ./ | .// | /cC/* | \
14229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14230 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14231 /usr/ucb/* ) ;;
14232 *)
14233 # OSF1 and SCO ODT 3.0 have their own names for install.
14234 # Don't use installbsd from OSF since it installs stuff as root
14235 # by default.
14236 for ac_prog in ginstall scoinst install; do
14237 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14238 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14239 if test $ac_prog = install &&
14240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14241 # AIX install. It has an incompatible calling convention.
14242 :
14243 elif test $ac_prog = install &&
14244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14245 # program-specific install script used by HP pwplus--don't use.
14246 :
14247 else
14248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14249 break 3
14250 fi
14251 fi
a848cd7e
SC
14252 done
14253 done
14254 ;;
14255esac
14256done
14257
14258
14259fi
14260 if test "${ac_cv_path_install+set}" = set; then
14261 INSTALL=$ac_cv_path_install
14262 else
14263 # As a last resort, use the slow shell script. We don't cache a
14264 # path for INSTALL within a source directory, because that will
14265 # break other packages using the cache if that directory is
14266 # removed, or if the path is relative.
14267 INSTALL=$ac_install_sh
14268 fi
14269fi
14270echo "$as_me:$LINENO: result: $INSTALL" >&5
14271echo "${ECHO_T}$INSTALL" >&6
14272
14273# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14274# It thinks the first close brace ends the variable substitution.
14275test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14276
14277test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14278
14279test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14280
14281
14282case ${INSTALL} in
14283 /* ) # Absolute
14284 ;;
14285 ?:* ) # Drive letter, considered as absolute.
14286 ;;
14287 *)
14288 INSTALL=`pwd`/${INSTALL} ;;
14289esac
14290
a848cd7e
SC
14291
14292case "${host}" in
14293
cfda0ea8 14294 *-*-darwin* )
a848cd7e
SC
14295 INSTALL_PROGRAM="cp -fp"
14296 INSTALL_DATA="cp -fp"
14297 ;;
14298 *)
14299 ;;
14300esac
14301
8c80d384
DE
14302if test -n "$ac_tool_prefix"; then
14303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14304set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14305echo "$as_me:$LINENO: checking for $ac_word" >&5
14306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14307if test "${ac_cv_prog_STRIP+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310 if test -n "$STRIP"; then
14311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14312else
14313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314for as_dir in $PATH
14315do
14316 IFS=$as_save_IFS
14317 test -z "$as_dir" && as_dir=.
14318 for ac_exec_ext in '' $ac_executable_extensions; do
14319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 break 2
14323 fi
14324done
14325done
14326
a848cd7e
SC
14327fi
14328fi
14329STRIP=$ac_cv_prog_STRIP
14330if test -n "$STRIP"; then
14331 echo "$as_me:$LINENO: result: $STRIP" >&5
14332echo "${ECHO_T}$STRIP" >&6
14333else
14334 echo "$as_me:$LINENO: result: no" >&5
14335echo "${ECHO_T}no" >&6
14336fi
14337
8c80d384
DE
14338fi
14339if test -z "$ac_cv_prog_STRIP"; then
14340 ac_ct_STRIP=$STRIP
14341 # Extract the first word of "strip", so it can be a program name with args.
14342set dummy strip; ac_word=$2
14343echo "$as_me:$LINENO: checking for $ac_word" >&5
14344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14345if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347else
14348 if test -n "$ac_ct_STRIP"; then
14349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14350else
14351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352for as_dir in $PATH
14353do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14358 ac_cv_prog_ac_ct_STRIP="strip"
14359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14361 fi
14362done
14363done
14364
14365 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14366fi
14367fi
14368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14369if test -n "$ac_ct_STRIP"; then
14370 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14371echo "${ECHO_T}$ac_ct_STRIP" >&6
14372else
14373 echo "$as_me:$LINENO: result: no" >&5
14374echo "${ECHO_T}no" >&6
14375fi
14376
14377 STRIP=$ac_ct_STRIP
14378else
14379 STRIP="$ac_cv_prog_STRIP"
14380fi
14381
14382
14383if test "$wxUSE_WINE" = "yes"; then
14384 if test -n "$ac_tool_prefix"; then
14385 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14386set dummy ${ac_tool_prefix}wrc; ac_word=$2
14387echo "$as_me:$LINENO: checking for $ac_word" >&5
14388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14389if test "${ac_cv_prog_RESCOMP+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391else
14392 if test -n "$RESCOMP"; then
14393 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14394else
14395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396for as_dir in $PATH
14397do
14398 IFS=$as_save_IFS
14399 test -z "$as_dir" && as_dir=.
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14402 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14404 break 2
14405 fi
14406done
14407done
14408
14409fi
14410fi
14411RESCOMP=$ac_cv_prog_RESCOMP
14412if test -n "$RESCOMP"; then
14413 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14414echo "${ECHO_T}$RESCOMP" >&6
14415else
14416 echo "$as_me:$LINENO: result: no" >&5
14417echo "${ECHO_T}no" >&6
14418fi
14419
14420fi
14421if test -z "$ac_cv_prog_RESCOMP"; then
14422 ac_ct_RESCOMP=$RESCOMP
14423 # Extract the first word of "wrc", so it can be a program name with args.
14424set dummy wrc; ac_word=$2
14425echo "$as_me:$LINENO: checking for $ac_word" >&5
14426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14427if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429else
14430 if test -n "$ac_ct_RESCOMP"; then
14431 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14432else
14433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434for as_dir in $PATH
14435do
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440 ac_cv_prog_ac_ct_RESCOMP="wrc"
14441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14443 fi
14444done
14445done
14446
14447fi
14448fi
14449ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14450if test -n "$ac_ct_RESCOMP"; then
14451 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14452echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14453else
14454 echo "$as_me:$LINENO: result: no" >&5
14455echo "${ECHO_T}no" >&6
14456fi
14457
14458 RESCOMP=$ac_ct_RESCOMP
14459else
14460 RESCOMP="$ac_cv_prog_RESCOMP"
14461fi
14462
14463else
14464 case "${host}" in
14465 *-*-cygwin* | *-*-mingw32* )
14466 if test -n "$ac_tool_prefix"; then
14467 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14468set dummy ${ac_tool_prefix}windres; ac_word=$2
14469echo "$as_me:$LINENO: checking for $ac_word" >&5
14470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14471if test "${ac_cv_prog_RESCOMP+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
14474 if test -n "$RESCOMP"; then
14475 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14476else
14477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478for as_dir in $PATH
14479do
14480 IFS=$as_save_IFS
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14484 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14486 break 2
14487 fi
14488done
14489done
14490
14491fi
14492fi
14493RESCOMP=$ac_cv_prog_RESCOMP
14494if test -n "$RESCOMP"; then
14495 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14496echo "${ECHO_T}$RESCOMP" >&6
14497else
14498 echo "$as_me:$LINENO: result: no" >&5
14499echo "${ECHO_T}no" >&6
14500fi
14501
14502fi
14503if test -z "$ac_cv_prog_RESCOMP"; then
14504 ac_ct_RESCOMP=$RESCOMP
14505 # Extract the first word of "windres", so it can be a program name with args.
14506set dummy windres; ac_word=$2
14507echo "$as_me:$LINENO: checking for $ac_word" >&5
14508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14509if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511else
14512 if test -n "$ac_ct_RESCOMP"; then
14513 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14514else
14515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516for as_dir in $PATH
14517do
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
14521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522 ac_cv_prog_ac_ct_RESCOMP="windres"
14523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 break 2
14525 fi
14526done
14527done
14528
14529fi
14530fi
14531ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14532if test -n "$ac_ct_RESCOMP"; then
14533 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14534echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14535else
14536 echo "$as_me:$LINENO: result: no" >&5
14537echo "${ECHO_T}no" >&6
14538fi
14539
14540 RESCOMP=$ac_ct_RESCOMP
14541else
14542 RESCOMP="$ac_cv_prog_RESCOMP"
14543fi
14544
14545 if test -n "$ac_tool_prefix"; then
14546 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14547set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14548echo "$as_me:$LINENO: checking for $ac_word" >&5
14549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14550if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552else
14553 if test -n "$DLLTOOL"; then
14554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14555else
14556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557for as_dir in $PATH
14558do
14559 IFS=$as_save_IFS
14560 test -z "$as_dir" && as_dir=.
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14563 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 break 2
14566 fi
14567done
14568done
14569
14570fi
14571fi
14572DLLTOOL=$ac_cv_prog_DLLTOOL
14573if test -n "$DLLTOOL"; then
14574 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14575echo "${ECHO_T}$DLLTOOL" >&6
14576else
14577 echo "$as_me:$LINENO: result: no" >&5
14578echo "${ECHO_T}no" >&6
14579fi
14580
14581fi
14582if test -z "$ac_cv_prog_DLLTOOL"; then
14583 ac_ct_DLLTOOL=$DLLTOOL
14584 # Extract the first word of "dlltool", so it can be a program name with args.
14585set dummy dlltool; ac_word=$2
14586echo "$as_me:$LINENO: checking for $ac_word" >&5
14587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14588if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 if test -n "$ac_ct_DLLTOOL"; then
14592 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14593else
14594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595for as_dir in $PATH
14596do
14597 IFS=$as_save_IFS
14598 test -z "$as_dir" && as_dir=.
14599 for ac_exec_ext in '' $ac_executable_extensions; do
14600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14601 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14603 break 2
14604 fi
14605done
14606done
14607
14608fi
14609fi
14610ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14611if test -n "$ac_ct_DLLTOOL"; then
14612 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14613echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14614else
14615 echo "$as_me:$LINENO: result: no" >&5
14616echo "${ECHO_T}no" >&6
14617fi
14618
14619 DLLTOOL=$ac_ct_DLLTOOL
14620else
14621 DLLTOOL="$ac_cv_prog_DLLTOOL"
14622fi
14623
14624 ;;
14625 esac
14626fi
a848cd7e
SC
14627
14628echo "$as_me:$LINENO: checking if make is GNU make" >&5
14629echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14630if test "${wx_cv_prog_makeisgnu+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633
14634 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14635 egrep -s GNU > /dev/null); then
14636 wx_cv_prog_makeisgnu="yes"
14637 else
14638 wx_cv_prog_makeisgnu="no"
14639 fi
14640
14641fi
14642echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14643echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14644
14645if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14646 IF_GNU_MAKE=""
14647else
14648 IF_GNU_MAKE="#"
14649fi
14650
14651
14652
14653if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14654echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14655echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14656if test "${wx_cv_prog_makevpath+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658else
14659
14660cat - << EOF > confMake
14661check : file
14662 cp \$? \$@
14663 cp \$? final_file
14664EOF
14665
14666if test ! -d sub ; then
14667 mkdir sub
14668fi
14669echo dummy > sub/file
14670${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14671RESULT=$?
14672rm -f sub/file check final_file confMake
14673rmdir sub
14674if test "$RESULT" = 0; then
14675 wx_cv_prog_makevpath="yes"
14676else
14677 wx_cv_prog_makevpath="no"
14678fi
14679
14680fi
14681echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14682echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14683
14684if test "x$wx_cv_prog_makevpath" != "xyes"; then
14685{ { echo "$as_me:$LINENO: error:
14686You need a make-utility that is able to use the variable
14687VPATH correctly.
14688If your version of make does not support VPATH correctly,
14689please install GNU-make (possibly as gmake), and start
14690configure with the following command:
14691export MAKE=gmake; ./configure for sh-type shells
14692setenv MAKE gmake; ./configure for csh-type shells
14693Also please do remember to use gmake in this case every time
14694you are trying to compile.
14695" >&5
14696echo "$as_me: error:
14697You need a make-utility that is able to use the variable
14698VPATH correctly.
14699If your version of make does not support VPATH correctly,
14700please install GNU-make (possibly as gmake), and start
14701configure with the following command:
14702export MAKE=gmake; ./configure for sh-type shells
14703setenv MAKE gmake; ./configure for csh-type shells
14704Also please do remember to use gmake in this case every time
14705you are trying to compile.
14706" >&2;}
14707 { (exit 1); exit 1; }; }
14708fi fi
14709echo "$as_me:$LINENO: checking whether ln -s works" >&5
14710echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14711LN_S=$as_ln_s
14712if test "$LN_S" = "ln -s"; then
14713 echo "$as_me:$LINENO: result: yes" >&5
14714echo "${ECHO_T}yes" >&6
14715else
14716 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14717echo "${ECHO_T}no, using $LN_S" >&6
14718fi
14719
14720
bcaab0f9
MW
14721for ac_prog in lndir
14722do
14723 # Extract the first word of "$ac_prog", so it can be a program name with args.
14724set dummy $ac_prog; ac_word=$2
14725echo "$as_me:$LINENO: checking for $ac_word" >&5
14726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14727if test "${ac_cv_prog_LNDIR+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729else
14730 if test -n "$LNDIR"; then
14731 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14732else
14733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734for as_dir in $PATH
14735do
14736 IFS=$as_save_IFS
14737 test -z "$as_dir" && as_dir=.
14738 for ac_exec_ext in '' $ac_executable_extensions; do
14739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14740 ac_cv_prog_LNDIR="$ac_prog"
14741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14742 break 2
14743 fi
14744done
14745done
14746
14747fi
14748fi
14749LNDIR=$ac_cv_prog_LNDIR
14750if test -n "$LNDIR"; then
14751 echo "$as_me:$LINENO: result: $LNDIR" >&5
14752echo "${ECHO_T}$LNDIR" >&6
14753else
14754 echo "$as_me:$LINENO: result: no" >&5
14755echo "${ECHO_T}no" >&6
14756fi
14757
14758 test -n "$LNDIR" && break
14759done
91dea314 14760test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14761
14762
14763
a848cd7e 14764
2113bc77 14765if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14766 CXXFLAGS="$CXXFLAGS -qunique"
14767fi
14768
4d7ec9f1
DE
14769case "${host}" in
14770 powerpc-*-darwin* )
14771 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14772echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14773 cat >conftest.$ac_ext <<_ACEOF
14774/* confdefs.h. */
14775_ACEOF
14776cat confdefs.h >>conftest.$ac_ext
14777cat >>conftest.$ac_ext <<_ACEOF
14778/* end confdefs.h. */
14779
14780int
14781main ()
14782{
14783#ifndef __POWERPC__
14784 choke me for lack of PowerPC
14785#endif
14786
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791rm -f conftest.$ac_objext
14792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
be665c07
JS
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
4d7ec9f1
DE
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 echo "$as_me:$LINENO: result: yes" >&5
14814echo "${ECHO_T}yes" >&6
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819echo "$as_me:$LINENO: result: no" >&5
14820echo "${ECHO_T}no" >&6
14821 cat >>confdefs.h <<\_ACEOF
14822#define __POWERPC__ 1
14823_ACEOF
14824
14825
14826fi
14827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14828 ;;
14829esac
14830
14831case "${host}" in
14832 *-*-darwin* )
4d7ec9f1
DE
14833 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14834echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14835 cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
14840/* end confdefs.h. */
14841#include <CoreFoundation/CFBase.h>
14842
14843int
14844main ()
14845{
14846
14847 ;
14848 return 0;
14849}
14850_ACEOF
14851rm -f conftest.$ac_objext
14852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853 (eval $ac_compile) 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
be665c07
JS
14860 { ac_try='test -z "$ac_c_werror_flag"
14861 || test ! -s conftest.err'
4d7ec9f1
DE
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest.$ac_objext'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 echo "$as_me:$LINENO: result: yes" >&5
14874echo "${ECHO_T}yes" >&6
14875else
14876 echo "$as_me: failed program was:" >&5
14877sed 's/^/| /' conftest.$ac_ext >&5
14878
14879echo "$as_me:$LINENO: result: no" >&5
14880echo "${ECHO_T}no" >&6
14881 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14882echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14883 cat >conftest.$ac_ext <<_ACEOF
14884/* confdefs.h. */
14885_ACEOF
14886cat confdefs.h >>conftest.$ac_ext
14887cat >>conftest.$ac_ext <<_ACEOF
14888/* end confdefs.h. */
14889#define __CF_USE_FRAMEWORK_INCLUDES__
14890#include <CoreFoundation/CFBase.h>
14891
14892int
14893main ()
14894{
14895
14896 ;
14897 return 0;
14898}
14899_ACEOF
14900rm -f conftest.$ac_objext
14901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14902 (eval $ac_compile) 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
be665c07
JS
14909 { ac_try='test -z "$ac_c_werror_flag"
14910 || test ! -s conftest.err'
4d7ec9f1
DE
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest.$ac_objext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 echo "$as_me:$LINENO: result: yes" >&5
14923echo "${ECHO_T}yes" >&6
14924 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14930See \`config.log' for more details." >&5
14931echo "$as_me: error: no. CoreFoundation not available.
14932See \`config.log' for more details." >&2;}
14933 { (exit 1); exit 1; }; }
14934
14935fi
14936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14937
14938
14939fi
14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14941 ;;
14942esac
14943
a848cd7e
SC
14944case "${host}" in
14945 *-pc-os2_emx | *-pc-os2-emx )
14946 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14947 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14948echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14949if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951else
14952 ac_check_lib_save_LIBS=$LIBS
14953LIBS="-lcExt $LIBS"
14954cat >conftest.$ac_ext <<_ACEOF
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
14960
14961/* Override any gcc2 internal prototype to avoid an error. */
14962#ifdef __cplusplus
14963extern "C"
14964#endif
14965/* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967char drand48 ();
14968int
14969main ()
14970{
14971drand48 ();
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext conftest$ac_exeext
14977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14978 (eval $ac_link) 2>conftest.er1
a848cd7e 14979 ac_status=$?
ac1cb8d3
VS
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
a848cd7e
SC
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
be665c07
JS
14985 { ac_try='test -z "$ac_c_werror_flag"
14986 || test ! -s conftest.err'
ac1cb8d3
VS
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_lib_cExt_drand48=yes
14999else
15000 echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003ac_cv_lib_cExt_drand48=no
15004fi
ac1cb8d3
VS
15005rm -f conftest.err conftest.$ac_objext \
15006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15007LIBS=$ac_check_lib_save_LIBS
15008fi
15009echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15010echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15011if test $ac_cv_lib_cExt_drand48 = yes; then
15012 LIBS="$LIBS -lcExt"
15013fi
15014
15015 else
15016 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15017 fi
69120ee4
VZ
15018 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15019echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15020if test "${wx_cv_gccversion+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022else
15023
391a765e
VS
15024 if test "$cross_compiling" = yes; then
15025 wx_cv_gccversion="EMX2"
15026
15027else
15028 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
15034
391a765e 15035 #include <stdio.h>
a848cd7e 15036
391a765e
VS
15037 int main()
15038 {
15039 FILE *f=fopen("conftestval", "w");
15040 if (!f) exit(1);
15041 fprintf(f,
a848cd7e 15042 #if (__GNUC__ < 3)
391a765e
VS
15043 "EMX2"
15044 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15045 "EMX3"
15046 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15047 "Innotek5"
15048 #else
15049 "Innotek6"
a848cd7e 15050 #endif
391a765e
VS
15051 );
15052 exit(0);
15053 }
a848cd7e 15054
a848cd7e 15055_ACEOF
391a765e
VS
15056rm -f conftest$ac_exeext
15057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15058 (eval $ac_link) 2>&5
ac1cb8d3
VS
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
391a765e 15067 wx_cv_gccversion=`cat conftestval`
a848cd7e 15068else
391a765e
VS
15069 echo "$as_me: program exited with status $ac_status" >&5
15070echo "$as_me: failed program was:" >&5
a848cd7e
SC
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
391a765e
VS
15073( exit $ac_status )
15074wx_cv_gccversion="EMX2"
a848cd7e 15075fi
391a765e 15076rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15077fi
a848cd7e
SC
15078
15079fi
15080echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15081echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15082 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15083 LIBS="$LIBS -lstdcpp"
15084 LDFLAGS="$LDFLAGS -Zsysv-signals"
15085 else
391a765e 15086 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15087 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15088 LDFLAGS="$LDFLAGS -Zsysv-signals"
15089 else
15090 LIBS="$LIBS -lstdc++"
15091 fi
15092 fi
94acd38e
DE
15093 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15094 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15095echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15096 wxUSE_OMF=yes
2da0c077 15097 enable_omf=yes
a848cd7e
SC
15098 fi
15099 ;;
15100 *)
15101
15102
15103
15104 ac_ext=cc
15105ac_cpp='$CXXCPP $CPPFLAGS'
15106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15109
15110
95986553 15111 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15112echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15113if test "${ac_cv_string_strcasecmp+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
15116
15117 cat >conftest.$ac_ext <<_ACEOF
15118/* confdefs.h. */
15119_ACEOF
15120cat confdefs.h >>conftest.$ac_ext
15121cat >>conftest.$ac_ext <<_ACEOF
15122/* end confdefs.h. */
15123
15124 #include <string.h>
15125
15126int
15127main ()
15128{
15129
15130 strcasecmp("foo", "bar");
15131
15132 ;
15133 return 0;
15134}
15135_ACEOF
15136rm -f conftest.$ac_objext conftest$ac_exeext
15137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15138 (eval $ac_link) 2>conftest.er1
a848cd7e 15139 ac_status=$?
ac1cb8d3
VS
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
a848cd7e
SC
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
be665c07
JS
15145 { ac_try='test -z "$ac_cxx_werror_flag"
15146 || test ! -s conftest.err'
ac1cb8d3
VS
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_string_strcasecmp=yes
15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163ac_cv_string_strcasecmp=no
15164
15165fi
ac1cb8d3
VS
15166rm -f conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15168
15169fi
15170echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15171echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15172
15173 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15174 cat >>confdefs.h <<\_ACEOF
15175#define HAVE_STRCASECMP_IN_STRING_H 1
15176_ACEOF
15177
15178 else
15179 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15180echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15181if test "${ac_cv_strings_strcasecmp+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183else
15184
15185 cat >conftest.$ac_ext <<_ACEOF
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
15191
15192 #include <strings.h>
15193
15194int
15195main ()
15196{
15197
15198 strcasecmp("foo", "bar");
15199
15200 ;
15201 return 0;
15202}
15203_ACEOF
15204rm -f conftest.$ac_objext conftest$ac_exeext
15205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15206 (eval $ac_link) 2>conftest.er1
a848cd7e 15207 ac_status=$?
ac1cb8d3
VS
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
a848cd7e
SC
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
be665c07
JS
15213 { ac_try='test -z "$ac_cxx_werror_flag"
15214 || test ! -s conftest.err'
ac1cb8d3
VS
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_cv_strings_strcasecmp=yes
15227else
15228 echo "$as_me: failed program was:" >&5
15229sed 's/^/| /' conftest.$ac_ext >&5
15230
15231ac_cv_strings_strcasecmp=no
15232
15233fi
ac1cb8d3
VS
15234rm -f conftest.err conftest.$ac_objext \
15235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15236
15237fi
15238echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15239echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15240
0c3c69fc 15241 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15242 cat >>confdefs.h <<\_ACEOF
15243#define HAVE_STRCASECMP_IN_STRINGS_H 1
15244_ACEOF
15245
15246 else
15247 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15248echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15249 { (exit 1); exit 1; }; }
15250 fi
15251 fi
15252
15253 ac_ext=c
15254ac_cpp='$CPP $CPPFLAGS'
15255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258
15259 ;;
15260esac
15261
15262
15263echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15264echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15265if test "${ac_cv_header_stdc+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267else
15268 cat >conftest.$ac_ext <<_ACEOF
15269/* confdefs.h. */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h. */
15274#include <stdlib.h>
15275#include <stdarg.h>
15276#include <string.h>
15277#include <float.h>
15278
15279int
15280main ()
15281{
15282
15283 ;
15284 return 0;
15285}
15286_ACEOF
15287rm -f conftest.$ac_objext
15288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15289 (eval $ac_compile) 2>conftest.er1
a848cd7e 15290 ac_status=$?
ac1cb8d3
VS
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
a848cd7e
SC
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
be665c07
JS
15296 { ac_try='test -z "$ac_c_werror_flag"
15297 || test ! -s conftest.err'
ac1cb8d3
VS
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 ac_cv_header_stdc=yes
15310else
15311 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314ac_cv_header_stdc=no
15315fi
ac1cb8d3 15316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15317
15318if test $ac_cv_header_stdc = yes; then
15319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15320 cat >conftest.$ac_ext <<_ACEOF
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
15326#include <string.h>
15327
15328_ACEOF
15329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330 $EGREP "memchr" >/dev/null 2>&1; then
15331 :
15332else
15333 ac_cv_header_stdc=no
15334fi
15335rm -f conftest*
15336
15337fi
15338
15339if test $ac_cv_header_stdc = yes; then
15340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15341 cat >conftest.$ac_ext <<_ACEOF
15342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
15347#include <stdlib.h>
15348
15349_ACEOF
15350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15351 $EGREP "free" >/dev/null 2>&1; then
15352 :
15353else
15354 ac_cv_header_stdc=no
15355fi
15356rm -f conftest*
15357
15358fi
15359
15360if test $ac_cv_header_stdc = yes; then
15361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15362 if test "$cross_compiling" = yes; then
15363 :
15364else
15365 cat >conftest.$ac_ext <<_ACEOF
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
15371#include <ctype.h>
15372#if ((' ' & 0x0FF) == 0x020)
15373# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15374# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15375#else
15376# define ISLOWER(c) \
ac1cb8d3
VS
15377 (('a' <= (c) && (c) <= 'i') \
15378 || ('j' <= (c) && (c) <= 'r') \
15379 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15380# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15381#endif
15382
15383#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15384int
15385main ()
15386{
15387 int i;
15388 for (i = 0; i < 256; i++)
15389 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15390 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15391 exit(2);
15392 exit (0);
15393}
15394_ACEOF
15395rm -f conftest$ac_exeext
15396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15397 (eval $ac_link) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 :
15407else
15408 echo "$as_me: program exited with status $ac_status" >&5
15409echo "$as_me: failed program was:" >&5
15410sed 's/^/| /' conftest.$ac_ext >&5
15411
15412( exit $ac_status )
15413ac_cv_header_stdc=no
15414fi
ac1cb8d3 15415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15416fi
15417fi
15418fi
15419echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15420echo "${ECHO_T}$ac_cv_header_stdc" >&6
15421if test $ac_cv_header_stdc = yes; then
15422
15423cat >>confdefs.h <<\_ACEOF
15424#define STDC_HEADERS 1
15425_ACEOF
15426
15427fi
15428
15429# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15440 inttypes.h stdint.h unistd.h
a848cd7e
SC
15441do
15442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15443echo "$as_me:$LINENO: checking for $ac_header" >&5
15444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15445if eval "test \"\${$as_ac_Header+set}\" = set"; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447else
15448 cat >conftest.$ac_ext <<_ACEOF
15449/* confdefs.h. */
15450_ACEOF
15451cat confdefs.h >>conftest.$ac_ext
15452cat >>conftest.$ac_ext <<_ACEOF
15453/* end confdefs.h. */
15454$ac_includes_default
15455
15456#include <$ac_header>
15457_ACEOF
15458rm -f conftest.$ac_objext
15459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15460 (eval $ac_compile) 2>conftest.er1
a848cd7e 15461 ac_status=$?
ac1cb8d3
VS
15462 grep -v '^ *+' conftest.er1 >conftest.err
15463 rm -f conftest.er1
15464 cat conftest.err >&5
a848cd7e
SC
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
be665c07
JS
15467 { ac_try='test -z "$ac_c_werror_flag"
15468 || test ! -s conftest.err'
ac1cb8d3
VS
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 eval "$as_ac_Header=yes"
15481else
15482 echo "$as_me: failed program was:" >&5
15483sed 's/^/| /' conftest.$ac_ext >&5
15484
15485eval "$as_ac_Header=no"
15486fi
ac1cb8d3 15487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15488fi
15489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15491if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494_ACEOF
15495
15496fi
15497
15498done
15499
15500
15501
15502for ac_header in stdlib.h
15503do
15504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15505if eval "test \"\${$as_ac_Header+set}\" = set"; then
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
15507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510fi
15511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15513else
15514 # Is the header compilable?
15515echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15517cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524#include <$ac_header>
15525_ACEOF
15526rm -f conftest.$ac_objext
15527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15528 (eval $ac_compile) 2>conftest.er1
a848cd7e 15529 ac_status=$?
ac1cb8d3
VS
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
a848cd7e
SC
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
be665c07
JS
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
ac1cb8d3
VS
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_header_compiler=yes
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553ac_header_compiler=no
15554fi
ac1cb8d3 15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15557echo "${ECHO_T}$ac_header_compiler" >&6
15558
15559# Is the header present?
15560echo "$as_me:$LINENO: checking $ac_header presence" >&5
15561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15562cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568#include <$ac_header>
15569_ACEOF
15570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } >/dev/null; then
15578 if test -s conftest.err; then
15579 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15581 else
15582 ac_cpp_err=
15583 fi
15584else
15585 ac_cpp_err=yes
15586fi
15587if test -z "$ac_cpp_err"; then
15588 ac_header_preproc=yes
15589else
15590 echo "$as_me: failed program was:" >&5
15591sed 's/^/| /' conftest.$ac_ext >&5
15592
15593 ac_header_preproc=no
15594fi
15595rm -f conftest.err conftest.$ac_ext
15596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15597echo "${ECHO_T}$ac_header_preproc" >&6
15598
15599# So? What about this header?
ac1cb8d3
VS
15600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15601 yes:no: )
a848cd7e
SC
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15606 ac_header_preproc=yes
a848cd7e 15607 ;;
ac1cb8d3 15608 no:yes:* )
a848cd7e
SC
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15621 (
15622 cat <<\_ASBOX
ac1cb8d3
VS
15623## ----------------------------------------- ##
15624## Report this to wx-dev@lists.wxwidgets.org ##
15625## ----------------------------------------- ##
a848cd7e
SC
15626_ASBOX
15627 ) |
15628 sed "s/^/$as_me: WARNING: /" >&2
15629 ;;
15630esac
15631echo "$as_me:$LINENO: checking for $ac_header" >&5
15632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15633if eval "test \"\${$as_ac_Header+set}\" = set"; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
ac1cb8d3 15636 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15637fi
15638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15640
15641fi
15642if test `eval echo '${'$as_ac_Header'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645_ACEOF
15646
15647fi
15648
15649done
15650
15651
15652for ac_header in malloc.h
15653do
15654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15655if eval "test \"\${$as_ac_Header+set}\" = set"; then
15656 echo "$as_me:$LINENO: checking for $ac_header" >&5
15657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15658if eval "test \"\${$as_ac_Header+set}\" = set"; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660fi
15661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15663else
15664 # Is the header compilable?
15665echo "$as_me:$LINENO: checking $ac_header usability" >&5
15666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15667cat >conftest.$ac_ext <<_ACEOF
15668/* confdefs.h. */
15669_ACEOF
15670cat confdefs.h >>conftest.$ac_ext
15671cat >>conftest.$ac_ext <<_ACEOF
15672/* end confdefs.h. */
15673$ac_includes_default
15674#include <$ac_header>
15675_ACEOF
15676rm -f conftest.$ac_objext
15677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15678 (eval $ac_compile) 2>conftest.er1
a848cd7e 15679 ac_status=$?
ac1cb8d3
VS
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
a848cd7e
SC
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
be665c07
JS
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
ac1cb8d3
VS
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_header_compiler=no
15704fi
ac1cb8d3 15705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707echo "${ECHO_T}$ac_header_compiler" >&6
15708
15709# Is the header present?
15710echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15712cat >conftest.$ac_ext <<_ACEOF
15713/* confdefs.h. */
15714_ACEOF
15715cat confdefs.h >>conftest.$ac_ext
15716cat >>conftest.$ac_ext <<_ACEOF
15717/* end confdefs.h. */
15718#include <$ac_header>
15719_ACEOF
15720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } >/dev/null; then
15728 if test -s conftest.err; then
15729 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15731 else
15732 ac_cpp_err=
15733 fi
15734else
15735 ac_cpp_err=yes
15736fi
15737if test -z "$ac_cpp_err"; then
15738 ac_header_preproc=yes
15739else
15740 echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 ac_header_preproc=no
15744fi
15745rm -f conftest.err conftest.$ac_ext
15746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15747echo "${ECHO_T}$ac_header_preproc" >&6
15748
15749# So? What about this header?
ac1cb8d3
VS
15750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15751 yes:no: )
a848cd7e
SC
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15756 ac_header_preproc=yes
a848cd7e 15757 ;;
ac1cb8d3 15758 no:yes:* )
a848cd7e
SC
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15771 (
15772 cat <<\_ASBOX
ac1cb8d3
VS
15773## ----------------------------------------- ##
15774## Report this to wx-dev@lists.wxwidgets.org ##
15775## ----------------------------------------- ##
a848cd7e
SC
15776_ASBOX
15777 ) |
15778 sed "s/^/$as_me: WARNING: /" >&2
15779 ;;
15780esac
15781echo "$as_me:$LINENO: checking for $ac_header" >&5
15782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15783if eval "test \"\${$as_ac_Header+set}\" = set"; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785else
ac1cb8d3 15786 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15787fi
15788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15790
15791fi
15792if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793 cat >>confdefs.h <<_ACEOF
15794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15795_ACEOF
15796
15797fi
15798
15799done
15800
15801
15802for ac_header in unistd.h
15803do
15804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805if eval "test \"\${$as_ac_Header+set}\" = set"; then
15806 echo "$as_me:$LINENO: checking for $ac_header" >&5
15807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15808if eval "test \"\${$as_ac_Header+set}\" = set"; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810fi
15811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15813else
15814 # Is the header compilable?
15815echo "$as_me:$LINENO: checking $ac_header usability" >&5
15816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15817cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823$ac_includes_default
15824#include <$ac_header>
15825_ACEOF
15826rm -f conftest.$ac_objext
15827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15828 (eval $ac_compile) 2>conftest.er1
a848cd7e 15829 ac_status=$?
ac1cb8d3
VS
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
a848cd7e
SC
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
be665c07
JS
15835 { ac_try='test -z "$ac_c_werror_flag"
15836 || test ! -s conftest.err'
ac1cb8d3
VS
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_header_compiler=yes
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853ac_header_compiler=no
15854fi
ac1cb8d3 15855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15857echo "${ECHO_T}$ac_header_compiler" >&6
15858
15859# Is the header present?
15860echo "$as_me:$LINENO: checking $ac_header presence" >&5
15861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15862cat >conftest.$ac_ext <<_ACEOF
15863/* confdefs.h. */
15864_ACEOF
15865cat confdefs.h >>conftest.$ac_ext
15866cat >>conftest.$ac_ext <<_ACEOF
15867/* end confdefs.h. */
15868#include <$ac_header>
15869_ACEOF
15870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } >/dev/null; then
15878 if test -s conftest.err; then
15879 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15881 else
15882 ac_cpp_err=
15883 fi
15884else
15885 ac_cpp_err=yes
15886fi
15887if test -z "$ac_cpp_err"; then
15888 ac_header_preproc=yes
15889else
15890 echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_header_preproc=no
15894fi
15895rm -f conftest.err conftest.$ac_ext
15896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15897echo "${ECHO_T}$ac_header_preproc" >&6
15898
15899# So? What about this header?
ac1cb8d3
VS
15900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15901 yes:no: )
a848cd7e
SC
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15906 ac_header_preproc=yes
a848cd7e 15907 ;;
ac1cb8d3 15908 no:yes:* )
a848cd7e
SC
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15921 (
15922 cat <<\_ASBOX
ac1cb8d3
VS
15923## ----------------------------------------- ##
15924## Report this to wx-dev@lists.wxwidgets.org ##
15925## ----------------------------------------- ##
a848cd7e
SC
15926_ASBOX
15927 ) |
15928 sed "s/^/$as_me: WARNING: /" >&2
15929 ;;
15930esac
15931echo "$as_me:$LINENO: checking for $ac_header" >&5
15932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15933if eval "test \"\${$as_ac_Header+set}\" = set"; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935else
ac1cb8d3 15936 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15937fi
15938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15940
15941fi
15942if test `eval echo '${'$as_ac_Header'}'` = yes; then
15943 cat >>confdefs.h <<_ACEOF
15944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15945_ACEOF
15946
15947fi
15948
15949done
15950
15951
15952for ac_header in wchar.h
15953do
15954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955if eval "test \"\${$as_ac_Header+set}\" = set"; then
15956 echo "$as_me:$LINENO: checking for $ac_header" >&5
15957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15958if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960fi
15961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15963else
15964 # Is the header compilable?
15965echo "$as_me:$LINENO: checking $ac_header usability" >&5
15966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15967cat >conftest.$ac_ext <<_ACEOF
15968/* confdefs.h. */
15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h. */
15973$ac_includes_default
15974#include <$ac_header>
15975_ACEOF
15976rm -f conftest.$ac_objext
15977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15978 (eval $ac_compile) 2>conftest.er1
a848cd7e 15979 ac_status=$?
ac1cb8d3
VS
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
a848cd7e
SC
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
be665c07
JS
15985 { ac_try='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
ac1cb8d3
VS
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_header_compiler=yes
15999else
16000 echo "$as_me: failed program was:" >&5
16001sed 's/^/| /' conftest.$ac_ext >&5
16002
16003ac_header_compiler=no
16004fi
ac1cb8d3 16005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16006echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007echo "${ECHO_T}$ac_header_compiler" >&6
16008
16009# Is the header present?
16010echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16012cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018#include <$ac_header>
16019_ACEOF
16020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16022 ac_status=$?
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } >/dev/null; then
16028 if test -s conftest.err; then
16029 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16031 else
16032 ac_cpp_err=
16033 fi
16034else
16035 ac_cpp_err=yes
16036fi
16037if test -z "$ac_cpp_err"; then
16038 ac_header_preproc=yes
16039else
16040 echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 ac_header_preproc=no
16044fi
16045rm -f conftest.err conftest.$ac_ext
16046echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16047echo "${ECHO_T}$ac_header_preproc" >&6
16048
16049# So? What about this header?
ac1cb8d3
VS
16050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16051 yes:no: )
a848cd7e
SC
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16056 ac_header_preproc=yes
a848cd7e 16057 ;;
ac1cb8d3 16058 no:yes:* )
a848cd7e
SC
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16071 (
16072 cat <<\_ASBOX
ac1cb8d3
VS
16073## ----------------------------------------- ##
16074## Report this to wx-dev@lists.wxwidgets.org ##
16075## ----------------------------------------- ##
a848cd7e
SC
16076_ASBOX
16077 ) |
16078 sed "s/^/$as_me: WARNING: /" >&2
16079 ;;
16080esac
16081echo "$as_me:$LINENO: checking for $ac_header" >&5
16082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16083if eval "test \"\${$as_ac_Header+set}\" = set"; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16085else
ac1cb8d3 16086 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16087fi
16088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16090
16091fi
16092if test `eval echo '${'$as_ac_Header'}'` = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16095_ACEOF
16096
16097fi
16098
16099done
16100
16101
16102if test "$ac_cv_header_wchar_h" != "yes"; then
16103
16104for ac_header in wcstr.h
16105do
16106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16107if eval "test \"\${$as_ac_Header+set}\" = set"; then
16108 echo "$as_me:$LINENO: checking for $ac_header" >&5
16109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16110if eval "test \"\${$as_ac_Header+set}\" = set"; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112fi
16113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16115else
16116 # Is the header compilable?
16117echo "$as_me:$LINENO: checking $ac_header usability" >&5
16118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16119cat >conftest.$ac_ext <<_ACEOF
16120/* confdefs.h. */
16121_ACEOF
16122cat confdefs.h >>conftest.$ac_ext
16123cat >>conftest.$ac_ext <<_ACEOF
16124/* end confdefs.h. */
16125$ac_includes_default
16126#include <$ac_header>
16127_ACEOF
16128rm -f conftest.$ac_objext
16129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16130 (eval $ac_compile) 2>conftest.er1
a848cd7e 16131 ac_status=$?
ac1cb8d3
VS
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
a848cd7e
SC
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
be665c07
JS
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
ac1cb8d3
VS
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_header_compiler=yes
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155ac_header_compiler=no
16156fi
ac1cb8d3 16157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16159echo "${ECHO_T}$ac_header_compiler" >&6
16160
16161# Is the header present?
16162echo "$as_me:$LINENO: checking $ac_header presence" >&5
16163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16164cat >conftest.$ac_ext <<_ACEOF
16165/* confdefs.h. */
16166_ACEOF
16167cat confdefs.h >>conftest.$ac_ext
16168cat >>conftest.$ac_ext <<_ACEOF
16169/* end confdefs.h. */
16170#include <$ac_header>
16171_ACEOF
16172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } >/dev/null; then
16180 if test -s conftest.err; then
16181 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16183 else
16184 ac_cpp_err=
16185 fi
16186else
16187 ac_cpp_err=yes
16188fi
16189if test -z "$ac_cpp_err"; then
16190 ac_header_preproc=yes
16191else
16192 echo "$as_me: failed program was:" >&5
16193sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_header_preproc=no
16196fi
16197rm -f conftest.err conftest.$ac_ext
16198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16199echo "${ECHO_T}$ac_header_preproc" >&6
16200
16201# So? What about this header?
ac1cb8d3
VS
16202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16203 yes:no: )
a848cd7e
SC
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16208 ac_header_preproc=yes
a848cd7e 16209 ;;
ac1cb8d3 16210 no:yes:* )
a848cd7e
SC
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16223 (
16224 cat <<\_ASBOX
ac1cb8d3
VS
16225## ----------------------------------------- ##
16226## Report this to wx-dev@lists.wxwidgets.org ##
16227## ----------------------------------------- ##
a848cd7e
SC
16228_ASBOX
16229 ) |
16230 sed "s/^/$as_me: WARNING: /" >&2
16231 ;;
16232esac
16233echo "$as_me:$LINENO: checking for $ac_header" >&5
16234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16235if eval "test \"\${$as_ac_Header+set}\" = set"; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16237else
ac1cb8d3 16238 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16239fi
16240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16242
16243fi
16244if test `eval echo '${'$as_ac_Header'}'` = yes; then
16245 cat >>confdefs.h <<_ACEOF
16246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16247_ACEOF
16248
16249fi
16250
16251done
16252
16253fi
16254
16255
16256for ac_header in fnmatch.h
16257do
16258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16259if eval "test \"\${$as_ac_Header+set}\" = set"; then
16260 echo "$as_me:$LINENO: checking for $ac_header" >&5
16261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16262if eval "test \"\${$as_ac_Header+set}\" = set"; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16264fi
16265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16267else
16268 # Is the header compilable?
16269echo "$as_me:$LINENO: checking $ac_header usability" >&5
16270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16271cat >conftest.$ac_ext <<_ACEOF
16272/* confdefs.h. */
16273_ACEOF
16274cat confdefs.h >>conftest.$ac_ext
16275cat >>conftest.$ac_ext <<_ACEOF
16276/* end confdefs.h. */
16277$ac_includes_default
16278#include <$ac_header>
16279_ACEOF
16280rm -f conftest.$ac_objext
16281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16282 (eval $ac_compile) 2>conftest.er1
a848cd7e 16283 ac_status=$?
ac1cb8d3
VS
16284 grep -v '^ *+' conftest.er1 >conftest.err
16285 rm -f conftest.er1
16286 cat conftest.err >&5
a848cd7e
SC
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
be665c07
JS
16289 { ac_try='test -z "$ac_c_werror_flag"
16290 || test ! -s conftest.err'
ac1cb8d3
VS
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_header_compiler=yes
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307ac_header_compiler=no
16308fi
ac1cb8d3 16309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16311echo "${ECHO_T}$ac_header_compiler" >&6
16312
16313# Is the header present?
16314echo "$as_me:$LINENO: checking $ac_header presence" >&5
16315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16316cat >conftest.$ac_ext <<_ACEOF
16317/* confdefs.h. */
16318_ACEOF
16319cat confdefs.h >>conftest.$ac_ext
16320cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h. */
16322#include <$ac_header>
16323_ACEOF
16324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } >/dev/null; then
16332 if test -s conftest.err; then
16333 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16335 else
16336 ac_cpp_err=
16337 fi
16338else
16339 ac_cpp_err=yes
16340fi
16341if test -z "$ac_cpp_err"; then
16342 ac_header_preproc=yes
16343else
16344 echo "$as_me: failed program was:" >&5
16345sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 ac_header_preproc=no
16348fi
16349rm -f conftest.err conftest.$ac_ext
16350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16351echo "${ECHO_T}$ac_header_preproc" >&6
16352
16353# So? What about this header?
ac1cb8d3
VS
16354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16355 yes:no: )
a848cd7e
SC
16356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16360 ac_header_preproc=yes
a848cd7e 16361 ;;
ac1cb8d3 16362 no:yes:* )
a848cd7e
SC
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16375 (
16376 cat <<\_ASBOX
ac1cb8d3
VS
16377## ----------------------------------------- ##
16378## Report this to wx-dev@lists.wxwidgets.org ##
16379## ----------------------------------------- ##
a848cd7e
SC
16380_ASBOX
16381 ) |
16382 sed "s/^/$as_me: WARNING: /" >&2
16383 ;;
16384esac
16385echo "$as_me:$LINENO: checking for $ac_header" >&5
16386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16387if eval "test \"\${$as_ac_Header+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389else
ac1cb8d3 16390 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16391fi
16392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16394
16395fi
16396if test `eval echo '${'$as_ac_Header'}'` = yes; then
16397 cat >>confdefs.h <<_ACEOF
16398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16399_ACEOF
16400
16401fi
16402
16403done
16404
16405
a848cd7e
SC
16406
16407for ac_header in langinfo.h
16408do
16409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16410if eval "test \"\${$as_ac_Header+set}\" = set"; then
16411 echo "$as_me:$LINENO: checking for $ac_header" >&5
16412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16413if eval "test \"\${$as_ac_Header+set}\" = set"; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16415fi
16416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16418else
16419 # Is the header compilable?
16420echo "$as_me:$LINENO: checking $ac_header usability" >&5
16421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16422cat >conftest.$ac_ext <<_ACEOF
16423/* confdefs.h. */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h. */
16428$ac_includes_default
16429#include <$ac_header>
16430_ACEOF
16431rm -f conftest.$ac_objext
16432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16433 (eval $ac_compile) 2>conftest.er1
a848cd7e 16434 ac_status=$?
ac1cb8d3
VS
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
a848cd7e
SC
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
be665c07
JS
16440 { ac_try='test -z "$ac_c_werror_flag"
16441 || test ! -s conftest.err'
ac1cb8d3
VS
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_header_compiler=yes
16454else
16455 echo "$as_me: failed program was:" >&5
16456sed 's/^/| /' conftest.$ac_ext >&5
16457
16458ac_header_compiler=no
16459fi
ac1cb8d3 16460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16462echo "${ECHO_T}$ac_header_compiler" >&6
16463
16464# Is the header present?
16465echo "$as_me:$LINENO: checking $ac_header presence" >&5
16466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16467cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473#include <$ac_header>
16474_ACEOF
16475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } >/dev/null; then
16483 if test -s conftest.err; then
16484 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16486 else
16487 ac_cpp_err=
16488 fi
16489else
16490 ac_cpp_err=yes
16491fi
16492if test -z "$ac_cpp_err"; then
16493 ac_header_preproc=yes
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_header_preproc=no
16499fi
16500rm -f conftest.err conftest.$ac_ext
16501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16502echo "${ECHO_T}$ac_header_preproc" >&6
16503
16504# So? What about this header?
ac1cb8d3
VS
16505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16506 yes:no: )
a848cd7e
SC
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16511 ac_header_preproc=yes
a848cd7e 16512 ;;
ac1cb8d3 16513 no:yes:* )
a848cd7e
SC
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16526 (
16527 cat <<\_ASBOX
ac1cb8d3
VS
16528## ----------------------------------------- ##
16529## Report this to wx-dev@lists.wxwidgets.org ##
16530## ----------------------------------------- ##
a848cd7e
SC
16531_ASBOX
16532 ) |
16533 sed "s/^/$as_me: WARNING: /" >&2
16534 ;;
16535esac
16536echo "$as_me:$LINENO: checking for $ac_header" >&5
16537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16538if eval "test \"\${$as_ac_Header+set}\" = set"; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540else
ac1cb8d3 16541 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16542fi
16543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16545
16546fi
16547if test `eval echo '${'$as_ac_Header'}'` = yes; then
16548 cat >>confdefs.h <<_ACEOF
16549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16550_ACEOF
16551
16552fi
16553
16554done
16555
16556
16557case "${host}" in
16558 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16559 if test $ac_cv_header_langinfo_h = "yes" \
16560 -a \( "$wx_cv_gccversion" = "EMX2" \
16561 -o "$wx_cv_gccversion" = "EMX3" \
16562 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16563 LIBS="$LIBS -lintl"
16564 fi
16565 ;;
16566esac
16567
a848cd7e
SC
16568
16569echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16570echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16571if test "${ac_cv_c_const+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573else
16574 cat >conftest.$ac_ext <<_ACEOF
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
16580
16581int
16582main ()
16583{
16584/* FIXME: Include the comments suggested by Paul. */
16585#ifndef __cplusplus
16586 /* Ultrix mips cc rejects this. */
16587 typedef int charset[2];
16588 const charset x;
16589 /* SunOS 4.1.1 cc rejects this. */
16590 char const *const *ccp;
16591 char **p;
16592 /* NEC SVR4.0.2 mips cc rejects this. */
16593 struct point {int x, y;};
16594 static struct point const zero = {0,0};
16595 /* AIX XL C 1.02.0.0 rejects this.
16596 It does not let you subtract one const X* pointer from another in
16597 an arm of an if-expression whose if-part is not a constant
16598 expression */
16599 const char *g = "string";
16600 ccp = &g + (g ? g-g : 0);
16601 /* HPUX 7.0 cc rejects these. */
16602 ++ccp;
16603 p = (char**) ccp;
16604 ccp = (char const *const *) p;
16605 { /* SCO 3.2v4 cc rejects this. */
16606 char *t;
16607 char const *s = 0 ? (char *) 0 : (char const *) 0;
16608
16609 *t++ = 0;
16610 }
16611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16612 int x[] = {25, 17};
16613 const int *foo = &x[0];
16614 ++foo;
16615 }
16616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16617 typedef const int *iptr;
16618 iptr p = 0;
16619 ++p;
16620 }
16621 { /* AIX XL C 1.02.0.0 rejects this saying
16622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16623 struct s { int j; const int *ap[3]; };
16624 struct s *b; b->j = 5;
16625 }
16626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16627 const int foo = 10;
16628 }
16629#endif
16630
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext
16636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16637 (eval $ac_compile) 2>conftest.er1
a848cd7e 16638 ac_status=$?
ac1cb8d3
VS
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
a848cd7e
SC
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
be665c07
JS
16644 { ac_try='test -z "$ac_c_werror_flag"
16645 || test ! -s conftest.err'
ac1cb8d3
VS
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_cv_c_const=yes
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_cv_c_const=no
16663fi
ac1cb8d3 16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16665fi
16666echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16667echo "${ECHO_T}$ac_cv_c_const" >&6
16668if test $ac_cv_c_const = no; then
16669
16670cat >>confdefs.h <<\_ACEOF
16671#define const
16672_ACEOF
16673
16674fi
16675
16676echo "$as_me:$LINENO: checking for inline" >&5
16677echo $ECHO_N "checking for inline... $ECHO_C" >&6
16678if test "${ac_cv_c_inline+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 ac_cv_c_inline=no
16682for ac_kw in inline __inline__ __inline; do
16683 cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689#ifndef __cplusplus
16690typedef int foo_t;
16691static $ac_kw foo_t static_foo () {return 0; }
16692$ac_kw foo_t foo () {return 0; }
16693#endif
16694
16695_ACEOF
16696rm -f conftest.$ac_objext
16697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16698 (eval $ac_compile) 2>conftest.er1
a848cd7e 16699 ac_status=$?
ac1cb8d3
VS
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
a848cd7e
SC
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
be665c07
JS
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
ac1cb8d3
VS
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_cv_c_inline=$ac_kw; break
16719else
16720 echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
16723fi
ac1cb8d3 16724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16725done
16726
16727fi
16728echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16729echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16730
16731
a848cd7e
SC
16732case $ac_cv_c_inline in
16733 inline | yes) ;;
ac1cb8d3
VS
16734 *)
16735 case $ac_cv_c_inline in
16736 no) ac_val=;;
16737 *) ac_val=$ac_cv_c_inline;;
16738 esac
16739 cat >>confdefs.h <<_ACEOF
16740#ifndef __cplusplus
16741#define inline $ac_val
16742#endif
de59c161 16743_ACEOF
ac1cb8d3 16744 ;;
a848cd7e
SC
16745esac
16746
16747
16748echo "$as_me:$LINENO: checking for char" >&5
16749echo $ECHO_N "checking for char... $ECHO_C" >&6
16750if test "${ac_cv_type_char+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752else
16753 cat >conftest.$ac_ext <<_ACEOF
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
16759$ac_includes_default
16760int
16761main ()
16762{
16763if ((char *) 0)
16764 return 0;
16765if (sizeof (char))
16766 return 0;
16767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext
16772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16773 (eval $ac_compile) 2>conftest.er1
a848cd7e 16774 ac_status=$?
ac1cb8d3
VS
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
a848cd7e
SC
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
be665c07
JS
16780 { ac_try='test -z "$ac_c_werror_flag"
16781 || test ! -s conftest.err'
ac1cb8d3
VS
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; } &&
16787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 ac_cv_type_char=yes
16794else
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798ac_cv_type_char=no
16799fi
ac1cb8d3 16800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16801fi
16802echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16803echo "${ECHO_T}$ac_cv_type_char" >&6
16804
16805echo "$as_me:$LINENO: checking size of char" >&5
16806echo $ECHO_N "checking size of char... $ECHO_C" >&6
16807if test "${ac_cv_sizeof_char+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809else
16810 if test "$ac_cv_type_char" = yes; then
16811 # The cast to unsigned long works around a bug in the HP C Compiler
16812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16814 # This bug is HP SR number 8606223364.
16815 if test "$cross_compiling" = yes; then
16816 # Depending upon the size, compute the lo and hi bounds.
16817cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823$ac_includes_default
16824int
16825main ()
16826{
16827static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16828test_array [0] = 0
16829
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext
16835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16836 (eval $ac_compile) 2>conftest.er1
a848cd7e 16837 ac_status=$?
ac1cb8d3
VS
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
a848cd7e
SC
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
be665c07
JS
16843 { ac_try='test -z "$ac_c_werror_flag"
16844 || test ! -s conftest.err'
ac1cb8d3
VS
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_lo=0 ac_mid=0
16857 while :; do
16858 cat >conftest.$ac_ext <<_ACEOF
16859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
16864$ac_includes_default
16865int
16866main ()
16867{
16868static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16869test_array [0] = 0
16870
16871 ;
16872 return 0;
16873}
16874_ACEOF
16875rm -f conftest.$ac_objext
16876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16877 (eval $ac_compile) 2>conftest.er1
a848cd7e 16878 ac_status=$?
ac1cb8d3
VS
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
a848cd7e
SC
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
be665c07
JS
16884 { ac_try='test -z "$ac_c_werror_flag"
16885 || test ! -s conftest.err'
ac1cb8d3
VS
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_hi=$ac_mid; break
16898else
16899 echo "$as_me: failed program was:" >&5
16900sed 's/^/| /' conftest.$ac_ext >&5
16901
16902ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16903 if test $ac_lo -le $ac_mid; then
16904 ac_lo= ac_hi=
16905 break
16906 fi
16907 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16908fi
ac1cb8d3 16909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16910 done
16911else
16912 echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915cat >conftest.$ac_ext <<_ACEOF
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
16921$ac_includes_default
16922int
16923main ()
16924{
16925static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16926test_array [0] = 0
16927
16928 ;
16929 return 0;
16930}
16931_ACEOF
16932rm -f conftest.$ac_objext
16933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16934 (eval $ac_compile) 2>conftest.er1
a848cd7e 16935 ac_status=$?
ac1cb8d3
VS
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
a848cd7e
SC
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
be665c07
JS
16941 { ac_try='test -z "$ac_c_werror_flag"
16942 || test ! -s conftest.err'
ac1cb8d3
VS
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_hi=-1 ac_mid=-1
16955 while :; do
16956 cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
16962$ac_includes_default
16963int
16964main ()
16965{
16966static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16967test_array [0] = 0
16968
16969 ;
16970 return 0;
16971}
16972_ACEOF
16973rm -f conftest.$ac_objext
16974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16975 (eval $ac_compile) 2>conftest.er1
a848cd7e 16976 ac_status=$?
ac1cb8d3
VS
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
a848cd7e
SC
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
be665c07
JS
16982 { ac_try='test -z "$ac_c_werror_flag"
16983 || test ! -s conftest.err'
ac1cb8d3
VS
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_lo=$ac_mid; break
16996else
16997 echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17001 if test $ac_mid -le $ac_hi; then
17002 ac_lo= ac_hi=
17003 break
17004 fi
17005 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17006fi
ac1cb8d3 17007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17008 done
17009else
17010 echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013ac_lo= ac_hi=
17014fi
ac1cb8d3 17015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17016fi
ac1cb8d3 17017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17018# Binary search between lo and hi bounds.
17019while test "x$ac_lo" != "x$ac_hi"; do
17020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17021 cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027$ac_includes_default
17028int
17029main ()
17030{
17031static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17032test_array [0] = 0
17033
17034 ;
17035 return 0;
17036}
17037_ACEOF
17038rm -f conftest.$ac_objext
17039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17040 (eval $ac_compile) 2>conftest.er1
a848cd7e 17041 ac_status=$?
ac1cb8d3
VS
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
a848cd7e
SC
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
be665c07
JS
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
ac1cb8d3
VS
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_hi=$ac_mid
17061else
17062 echo "$as_me: failed program was:" >&5
17063sed 's/^/| /' conftest.$ac_ext >&5
17064
17065ac_lo=`expr '(' $ac_mid ')' + 1`
17066fi
ac1cb8d3 17067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17068done
17069case $ac_lo in
17070?*) ac_cv_sizeof_char=$ac_lo;;
17071'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17072See \`config.log' for more details." >&5
17073echo "$as_me: error: cannot compute sizeof (char), 77
17074See \`config.log' for more details." >&2;}
17075 { (exit 1); exit 1; }; } ;;
17076esac
17077else
17078 if test "$cross_compiling" = yes; then
be665c07
JS
17079 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17080See \`config.log' for more details." >&5
17081echo "$as_me: error: cannot run test program while cross compiling
17082See \`config.log' for more details." >&2;}
a848cd7e
SC
17083 { (exit 1); exit 1; }; }
17084else
17085 cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091$ac_includes_default
17092long longval () { return (long) (sizeof (char)); }
17093unsigned long ulongval () { return (long) (sizeof (char)); }
17094#include <stdio.h>
17095#include <stdlib.h>
17096int
17097main ()
17098{
17099
17100 FILE *f = fopen ("conftest.val", "w");
17101 if (! f)
17102 exit (1);
17103 if (((long) (sizeof (char))) < 0)
17104 {
17105 long i = longval ();
17106 if (i != ((long) (sizeof (char))))
17107 exit (1);
17108 fprintf (f, "%ld\n", i);
17109 }
17110 else
17111 {
17112 unsigned long i = ulongval ();
17113 if (i != ((long) (sizeof (char))))
17114 exit (1);
17115 fprintf (f, "%lu\n", i);
17116 }
17117 exit (ferror (f) || fclose (f) != 0);
17118
17119 ;
17120 return 0;
17121}
17122_ACEOF
17123rm -f conftest$ac_exeext
17124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17125 (eval $ac_link) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_sizeof_char=`cat conftest.val`
17135else
17136 echo "$as_me: program exited with status $ac_status" >&5
17137echo "$as_me: failed program was:" >&5
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140( exit $ac_status )
17141{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17142See \`config.log' for more details." >&5
17143echo "$as_me: error: cannot compute sizeof (char), 77
17144See \`config.log' for more details." >&2;}
17145 { (exit 1); exit 1; }; }
17146fi
ac1cb8d3 17147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17148fi
17149fi
17150rm -f conftest.val
17151else
17152 ac_cv_sizeof_char=0
17153fi
17154fi
17155echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17156echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17157cat >>confdefs.h <<_ACEOF
17158#define SIZEOF_CHAR $ac_cv_sizeof_char
17159_ACEOF
17160
17161
17162echo "$as_me:$LINENO: checking for short" >&5
17163echo $ECHO_N "checking for short... $ECHO_C" >&6
17164if test "${ac_cv_type_short+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166else
17167 cat >conftest.$ac_ext <<_ACEOF
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173$ac_includes_default
17174int
17175main ()
17176{
17177if ((short *) 0)
17178 return 0;
17179if (sizeof (short))
17180 return 0;
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest.$ac_objext
17186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17187 (eval $ac_compile) 2>conftest.er1
a848cd7e 17188 ac_status=$?
ac1cb8d3
VS
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
a848cd7e
SC
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
be665c07
JS
17194 { ac_try='test -z "$ac_c_werror_flag"
17195 || test ! -s conftest.err'
ac1cb8d3
VS
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_cv_type_short=yes
17208else
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212ac_cv_type_short=no
17213fi
ac1cb8d3 17214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17215fi
17216echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17217echo "${ECHO_T}$ac_cv_type_short" >&6
17218
17219echo "$as_me:$LINENO: checking size of short" >&5
17220echo $ECHO_N "checking size of short... $ECHO_C" >&6
17221if test "${ac_cv_sizeof_short+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223else
17224 if test "$ac_cv_type_short" = yes; then
17225 # The cast to unsigned long works around a bug in the HP C Compiler
17226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17228 # This bug is HP SR number 8606223364.
17229 if test "$cross_compiling" = yes; then
17230 # Depending upon the size, compute the lo and hi bounds.
17231cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17242test_array [0] = 0
17243
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext
17249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17250 (eval $ac_compile) 2>conftest.er1
a848cd7e 17251 ac_status=$?
ac1cb8d3
VS
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
a848cd7e
SC
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
be665c07
JS
17257 { ac_try='test -z "$ac_c_werror_flag"
17258 || test ! -s conftest.err'
ac1cb8d3
VS
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_lo=0 ac_mid=0
17271 while :; do
17272 cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
17278$ac_includes_default
17279int
17280main ()
17281{
17282static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17283test_array [0] = 0
17284
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289rm -f conftest.$ac_objext
17290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17291 (eval $ac_compile) 2>conftest.er1
a848cd7e 17292 ac_status=$?
ac1cb8d3
VS
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
a848cd7e
SC
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
be665c07
JS
17298 { ac_try='test -z "$ac_c_werror_flag"
17299 || test ! -s conftest.err'
ac1cb8d3
VS
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 ac_hi=$ac_mid; break
17312else
17313 echo "$as_me: failed program was:" >&5
17314sed 's/^/| /' conftest.$ac_ext >&5
17315
17316ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17317 if test $ac_lo -le $ac_mid; then
17318 ac_lo= ac_hi=
17319 break
17320 fi
17321 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17322fi
ac1cb8d3 17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17324 done
17325else
17326 echo "$as_me: failed program was:" >&5
17327sed 's/^/| /' conftest.$ac_ext >&5
17328
17329cat >conftest.$ac_ext <<_ACEOF
17330/* confdefs.h. */
17331_ACEOF
17332cat confdefs.h >>conftest.$ac_ext
17333cat >>conftest.$ac_ext <<_ACEOF
17334/* end confdefs.h. */
17335$ac_includes_default
17336int
17337main ()
17338{
17339static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17340test_array [0] = 0
17341
17342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext
17347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17348 (eval $ac_compile) 2>conftest.er1
a848cd7e 17349 ac_status=$?
ac1cb8d3
VS
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
a848cd7e
SC
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
be665c07
JS
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
ac1cb8d3
VS
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_hi=-1 ac_mid=-1
17369 while :; do
17370 cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h. */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h. */
17376$ac_includes_default
17377int
17378main ()
17379{
17380static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17381test_array [0] = 0
17382
17383 ;
17384 return 0;
17385}
17386_ACEOF
17387rm -f conftest.$ac_objext
17388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17389 (eval $ac_compile) 2>conftest.er1
a848cd7e 17390 ac_status=$?
ac1cb8d3
VS
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
a848cd7e
SC
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
be665c07
JS
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
ac1cb8d3
VS
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_lo=$ac_mid; break
17410else
17411 echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17415 if test $ac_mid -le $ac_hi; then
17416 ac_lo= ac_hi=
17417 break
17418 fi
17419 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17420fi
ac1cb8d3 17421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17422 done
17423else
17424 echo "$as_me: failed program was:" >&5
17425sed 's/^/| /' conftest.$ac_ext >&5
17426
17427ac_lo= ac_hi=
17428fi
ac1cb8d3 17429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17430fi
ac1cb8d3 17431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17432# Binary search between lo and hi bounds.
17433while test "x$ac_lo" != "x$ac_hi"; do
17434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17435 cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441$ac_includes_default
17442int
17443main ()
17444{
17445static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17446test_array [0] = 0
17447
17448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext
17453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17454 (eval $ac_compile) 2>conftest.er1
a848cd7e 17455 ac_status=$?
ac1cb8d3
VS
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
a848cd7e
SC
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
be665c07
JS
17461 { ac_try='test -z "$ac_c_werror_flag"
17462 || test ! -s conftest.err'
ac1cb8d3
VS
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_hi=$ac_mid
17475else
17476 echo "$as_me: failed program was:" >&5
17477sed 's/^/| /' conftest.$ac_ext >&5
17478
17479ac_lo=`expr '(' $ac_mid ')' + 1`
17480fi
ac1cb8d3 17481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17482done
17483case $ac_lo in
17484?*) ac_cv_sizeof_short=$ac_lo;;
17485'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17486See \`config.log' for more details." >&5
17487echo "$as_me: error: cannot compute sizeof (short), 77
17488See \`config.log' for more details." >&2;}
17489 { (exit 1); exit 1; }; } ;;
17490esac
17491else
17492 if test "$cross_compiling" = yes; then
be665c07
JS
17493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17494See \`config.log' for more details." >&5
17495echo "$as_me: error: cannot run test program while cross compiling
17496See \`config.log' for more details." >&2;}
a848cd7e
SC
17497 { (exit 1); exit 1; }; }
17498else
17499 cat >conftest.$ac_ext <<_ACEOF
17500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
17505$ac_includes_default
17506long longval () { return (long) (sizeof (short)); }
17507unsigned long ulongval () { return (long) (sizeof (short)); }
17508#include <stdio.h>
17509#include <stdlib.h>
17510int
17511main ()
17512{
17513
17514 FILE *f = fopen ("conftest.val", "w");
17515 if (! f)
17516 exit (1);
17517 if (((long) (sizeof (short))) < 0)
17518 {
17519 long i = longval ();
17520 if (i != ((long) (sizeof (short))))
17521 exit (1);
17522 fprintf (f, "%ld\n", i);
17523 }
17524 else
17525 {
17526 unsigned long i = ulongval ();
17527 if (i != ((long) (sizeof (short))))
17528 exit (1);
17529 fprintf (f, "%lu\n", i);
17530 }
17531 exit (ferror (f) || fclose (f) != 0);
17532
17533 ;
17534 return 0;
17535}
17536_ACEOF
17537rm -f conftest$ac_exeext
17538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17539 (eval $ac_link) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_sizeof_short=`cat conftest.val`
17549else
17550 echo "$as_me: program exited with status $ac_status" >&5
17551echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554( exit $ac_status )
17555{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17556See \`config.log' for more details." >&5
17557echo "$as_me: error: cannot compute sizeof (short), 77
17558See \`config.log' for more details." >&2;}
17559 { (exit 1); exit 1; }; }
17560fi
ac1cb8d3 17561rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17562fi
17563fi
17564rm -f conftest.val
17565else
17566 ac_cv_sizeof_short=0
17567fi
17568fi
17569echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17570echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17571cat >>confdefs.h <<_ACEOF
17572#define SIZEOF_SHORT $ac_cv_sizeof_short
17573_ACEOF
17574
17575
17576echo "$as_me:$LINENO: checking for void *" >&5
17577echo $ECHO_N "checking for void *... $ECHO_C" >&6
17578if test "${ac_cv_type_void_p+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580else
17581 cat >conftest.$ac_ext <<_ACEOF
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587$ac_includes_default
17588int
17589main ()
17590{
17591if ((void * *) 0)
17592 return 0;
17593if (sizeof (void *))
17594 return 0;
17595 ;
17596 return 0;
17597}
17598_ACEOF
17599rm -f conftest.$ac_objext
17600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17601 (eval $ac_compile) 2>conftest.er1
a848cd7e 17602 ac_status=$?
ac1cb8d3
VS
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
a848cd7e
SC
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
be665c07
JS
17608 { ac_try='test -z "$ac_c_werror_flag"
17609 || test ! -s conftest.err'
ac1cb8d3
VS
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_cv_type_void_p=yes
17622else
17623 echo "$as_me: failed program was:" >&5
17624sed 's/^/| /' conftest.$ac_ext >&5
17625
17626ac_cv_type_void_p=no
17627fi
ac1cb8d3 17628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17629fi
17630echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17631echo "${ECHO_T}$ac_cv_type_void_p" >&6
17632
17633echo "$as_me:$LINENO: checking size of void *" >&5
17634echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17635if test "${ac_cv_sizeof_void_p+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637else
17638 if test "$ac_cv_type_void_p" = yes; then
17639 # The cast to unsigned long works around a bug in the HP C Compiler
17640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17642 # This bug is HP SR number 8606223364.
17643 if test "$cross_compiling" = yes; then
17644 # Depending upon the size, compute the lo and hi bounds.
17645cat >conftest.$ac_ext <<_ACEOF
17646/* confdefs.h. */
17647_ACEOF
17648cat confdefs.h >>conftest.$ac_ext
17649cat >>conftest.$ac_ext <<_ACEOF
17650/* end confdefs.h. */
17651$ac_includes_default
17652int
17653main ()
17654{
17655static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17656test_array [0] = 0
17657
17658 ;
17659 return 0;
17660}
17661_ACEOF
17662rm -f conftest.$ac_objext
17663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17664 (eval $ac_compile) 2>conftest.er1
a848cd7e 17665 ac_status=$?
ac1cb8d3
VS
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
a848cd7e
SC
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
be665c07
JS
17671 { ac_try='test -z "$ac_c_werror_flag"
17672 || test ! -s conftest.err'
ac1cb8d3
VS
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_lo=0 ac_mid=0
17685 while :; do
17686 cat >conftest.$ac_ext <<_ACEOF
17687/* confdefs.h. */
17688_ACEOF
17689cat confdefs.h >>conftest.$ac_ext
17690cat >>conftest.$ac_ext <<_ACEOF
17691/* end confdefs.h. */
17692$ac_includes_default
17693int
17694main ()
17695{
17696static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17697test_array [0] = 0
17698
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext
17704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17705 (eval $ac_compile) 2>conftest.er1
a848cd7e 17706 ac_status=$?
ac1cb8d3
VS
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
a848cd7e
SC
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
be665c07
JS
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
ac1cb8d3
VS
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_hi=$ac_mid; break
17726else
17727 echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
17730ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17731 if test $ac_lo -le $ac_mid; then
17732 ac_lo= ac_hi=
17733 break
17734 fi
17735 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17736fi
ac1cb8d3 17737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17738 done
17739else
17740 echo "$as_me: failed program was:" >&5
17741sed 's/^/| /' conftest.$ac_ext >&5
17742
17743cat >conftest.$ac_ext <<_ACEOF
17744/* confdefs.h. */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
17749$ac_includes_default
17750int
17751main ()
17752{
17753static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17754test_array [0] = 0
17755
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext
17761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17762 (eval $ac_compile) 2>conftest.er1
a848cd7e 17763 ac_status=$?
ac1cb8d3
VS
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
a848cd7e
SC
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
be665c07
JS
17769 { ac_try='test -z "$ac_c_werror_flag"
17770 || test ! -s conftest.err'
ac1cb8d3
VS
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_hi=-1 ac_mid=-1
17783 while :; do
17784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
be665c07
JS
17810 { ac_try='test -z "$ac_c_werror_flag"
17811 || test ! -s conftest.err'
ac1cb8d3
VS
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_lo=$ac_mid; break
17824else
17825 echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17829 if test $ac_mid -le $ac_hi; then
17830 ac_lo= ac_hi=
17831 break
17832 fi
17833 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17834fi
ac1cb8d3 17835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17836 done
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841ac_lo= ac_hi=
17842fi
ac1cb8d3 17843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17844fi
ac1cb8d3 17845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17846# Binary search between lo and hi bounds.
17847while test "x$ac_lo" != "x$ac_hi"; do
17848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17849 cat >conftest.$ac_ext <<_ACEOF
17850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
17855$ac_includes_default
17856int
17857main ()
17858{
17859static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17860test_array [0] = 0
17861
17862 ;
17863 return 0;
17864}
17865_ACEOF
17866rm -f conftest.$ac_objext
17867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17868 (eval $ac_compile) 2>conftest.er1
a848cd7e 17869 ac_status=$?
ac1cb8d3
VS
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
a848cd7e
SC
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
be665c07
JS
17875 { ac_try='test -z "$ac_c_werror_flag"
17876 || test ! -s conftest.err'
ac1cb8d3
VS
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_hi=$ac_mid
17889else
17890 echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893ac_lo=`expr '(' $ac_mid ')' + 1`
17894fi
ac1cb8d3 17895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17896done
17897case $ac_lo in
17898?*) ac_cv_sizeof_void_p=$ac_lo;;
17899'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17900See \`config.log' for more details." >&5
17901echo "$as_me: error: cannot compute sizeof (void *), 77
17902See \`config.log' for more details." >&2;}
17903 { (exit 1); exit 1; }; } ;;
17904esac
17905else
17906 if test "$cross_compiling" = yes; then
be665c07
JS
17907 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17908See \`config.log' for more details." >&5
17909echo "$as_me: error: cannot run test program while cross compiling
17910See \`config.log' for more details." >&2;}
a848cd7e
SC
17911 { (exit 1); exit 1; }; }
17912else
17913 cat >conftest.$ac_ext <<_ACEOF
17914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
17919$ac_includes_default
17920long longval () { return (long) (sizeof (void *)); }
17921unsigned long ulongval () { return (long) (sizeof (void *)); }
17922#include <stdio.h>
17923#include <stdlib.h>
17924int
17925main ()
17926{
17927
17928 FILE *f = fopen ("conftest.val", "w");
17929 if (! f)
17930 exit (1);
17931 if (((long) (sizeof (void *))) < 0)
17932 {
17933 long i = longval ();
17934 if (i != ((long) (sizeof (void *))))
17935 exit (1);
17936 fprintf (f, "%ld\n", i);
17937 }
17938 else
17939 {
17940 unsigned long i = ulongval ();
17941 if (i != ((long) (sizeof (void *))))
17942 exit (1);
17943 fprintf (f, "%lu\n", i);
17944 }
17945 exit (ferror (f) || fclose (f) != 0);
17946
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest$ac_exeext
17952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953 (eval $ac_link) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_cv_sizeof_void_p=`cat conftest.val`
17963else
17964 echo "$as_me: program exited with status $ac_status" >&5
17965echo "$as_me: failed program was:" >&5
17966sed 's/^/| /' conftest.$ac_ext >&5
17967
17968( exit $ac_status )
17969{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17970See \`config.log' for more details." >&5
17971echo "$as_me: error: cannot compute sizeof (void *), 77
17972See \`config.log' for more details." >&2;}
17973 { (exit 1); exit 1; }; }
17974fi
ac1cb8d3 17975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17976fi
17977fi
17978rm -f conftest.val
17979else
17980 ac_cv_sizeof_void_p=0
17981fi
17982fi
17983echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17984echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17985cat >>confdefs.h <<_ACEOF
17986#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17987_ACEOF
17988
17989
17990echo "$as_me:$LINENO: checking for int" >&5
17991echo $ECHO_N "checking for int... $ECHO_C" >&6
17992if test "${ac_cv_type_int+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001$ac_includes_default
18002int
18003main ()
18004{
18005if ((int *) 0)
18006 return 0;
18007if (sizeof (int))
18008 return 0;
18009 ;
18010 return 0;
18011}
18012_ACEOF
18013rm -f conftest.$ac_objext
18014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18015 (eval $ac_compile) 2>conftest.er1
a848cd7e 18016 ac_status=$?
ac1cb8d3
VS
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
a848cd7e
SC
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
be665c07
JS
18022 { ac_try='test -z "$ac_c_werror_flag"
18023 || test ! -s conftest.err'
ac1cb8d3
VS
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_type_int=yes
18036else
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040ac_cv_type_int=no
18041fi
ac1cb8d3 18042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18043fi
18044echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18045echo "${ECHO_T}$ac_cv_type_int" >&6
18046
18047echo "$as_me:$LINENO: checking size of int" >&5
18048echo $ECHO_N "checking size of int... $ECHO_C" >&6
18049if test "${ac_cv_sizeof_int+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051else
18052 if test "$ac_cv_type_int" = yes; then
18053 # The cast to unsigned long works around a bug in the HP C Compiler
18054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18056 # This bug is HP SR number 8606223364.
18057 if test "$cross_compiling" = yes; then
18058 # Depending upon the size, compute the lo and hi bounds.
18059cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
18065$ac_includes_default
18066int
18067main ()
18068{
18069static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18070test_array [0] = 0
18071
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext
18077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18078 (eval $ac_compile) 2>conftest.er1
a848cd7e 18079 ac_status=$?
ac1cb8d3
VS
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
a848cd7e
SC
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
be665c07
JS
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
ac1cb8d3
VS
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_lo=0 ac_mid=0
18099 while :; do
18100 cat >conftest.$ac_ext <<_ACEOF
18101/* confdefs.h. */
18102_ACEOF
18103cat confdefs.h >>conftest.$ac_ext
18104cat >>conftest.$ac_ext <<_ACEOF
18105/* end confdefs.h. */
18106$ac_includes_default
18107int
18108main ()
18109{
18110static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18111test_array [0] = 0
18112
18113 ;
18114 return 0;
18115}
18116_ACEOF
18117rm -f conftest.$ac_objext
18118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18119 (eval $ac_compile) 2>conftest.er1
a848cd7e 18120 ac_status=$?
ac1cb8d3
VS
18121 grep -v '^ *+' conftest.er1 >conftest.err
18122 rm -f conftest.er1
18123 cat conftest.err >&5
a848cd7e
SC
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } &&
be665c07
JS
18126 { ac_try='test -z "$ac_c_werror_flag"
18127 || test ! -s conftest.err'
ac1cb8d3
VS
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; } &&
18133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_hi=$ac_mid; break
18140else
18141 echo "$as_me: failed program was:" >&5
18142sed 's/^/| /' conftest.$ac_ext >&5
18143
18144ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18145 if test $ac_lo -le $ac_mid; then
18146 ac_lo= ac_hi=
18147 break
18148 fi
18149 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18150fi
ac1cb8d3 18151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18152 done
18153else
18154 echo "$as_me: failed program was:" >&5
18155sed 's/^/| /' conftest.$ac_ext >&5
18156
18157cat >conftest.$ac_ext <<_ACEOF
18158/* confdefs.h. */
18159_ACEOF
18160cat confdefs.h >>conftest.$ac_ext
18161cat >>conftest.$ac_ext <<_ACEOF
18162/* end confdefs.h. */
18163$ac_includes_default
18164int
18165main ()
18166{
18167static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18168test_array [0] = 0
18169
18170 ;
18171 return 0;
18172}
18173_ACEOF
18174rm -f conftest.$ac_objext
18175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18176 (eval $ac_compile) 2>conftest.er1
a848cd7e 18177 ac_status=$?
ac1cb8d3
VS
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
a848cd7e
SC
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
be665c07
JS
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
ac1cb8d3
VS
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_hi=-1 ac_mid=-1
18197 while :; do
18198 cat >conftest.$ac_ext <<_ACEOF
18199/* confdefs.h. */
18200_ACEOF
18201cat confdefs.h >>conftest.$ac_ext
18202cat >>conftest.$ac_ext <<_ACEOF
18203/* end confdefs.h. */
18204$ac_includes_default
18205int
18206main ()
18207{
18208static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18209test_array [0] = 0
18210
18211 ;
18212 return 0;
18213}
18214_ACEOF
18215rm -f conftest.$ac_objext
18216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18217 (eval $ac_compile) 2>conftest.er1
a848cd7e 18218 ac_status=$?
ac1cb8d3
VS
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
a848cd7e
SC
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
be665c07
JS
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
ac1cb8d3
VS
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_lo=$ac_mid; break
18238else
18239 echo "$as_me: failed program was:" >&5
18240sed 's/^/| /' conftest.$ac_ext >&5
18241
18242ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18243 if test $ac_mid -le $ac_hi; then
18244 ac_lo= ac_hi=
18245 break
18246 fi
18247 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18248fi
ac1cb8d3 18249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18250 done
18251else
18252 echo "$as_me: failed program was:" >&5
18253sed 's/^/| /' conftest.$ac_ext >&5
18254
18255ac_lo= ac_hi=
18256fi
ac1cb8d3 18257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18258fi
ac1cb8d3 18259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18260# Binary search between lo and hi bounds.
18261while test "x$ac_lo" != "x$ac_hi"; do
18262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18263 cat >conftest.$ac_ext <<_ACEOF
18264/* confdefs.h. */
18265_ACEOF
18266cat confdefs.h >>conftest.$ac_ext
18267cat >>conftest.$ac_ext <<_ACEOF
18268/* end confdefs.h. */
18269$ac_includes_default
18270int
18271main ()
18272{
18273static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18274test_array [0] = 0
18275
18276 ;
18277 return 0;
18278}
18279_ACEOF
18280rm -f conftest.$ac_objext
18281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18282 (eval $ac_compile) 2>conftest.er1
a848cd7e 18283 ac_status=$?
ac1cb8d3
VS
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
a848cd7e
SC
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
be665c07
JS
18289 { ac_try='test -z "$ac_c_werror_flag"
18290 || test ! -s conftest.err'
ac1cb8d3
VS
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 ac_hi=$ac_mid
18303else
18304 echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307ac_lo=`expr '(' $ac_mid ')' + 1`
18308fi
ac1cb8d3 18309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18310done
18311case $ac_lo in
18312?*) ac_cv_sizeof_int=$ac_lo;;
18313'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18314See \`config.log' for more details." >&5
18315echo "$as_me: error: cannot compute sizeof (int), 77
18316See \`config.log' for more details." >&2;}
18317 { (exit 1); exit 1; }; } ;;
18318esac
18319else
18320 if test "$cross_compiling" = yes; then
be665c07
JS
18321 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18322See \`config.log' for more details." >&5
18323echo "$as_me: error: cannot run test program while cross compiling
18324See \`config.log' for more details." >&2;}
a848cd7e
SC
18325 { (exit 1); exit 1; }; }
18326else
18327 cat >conftest.$ac_ext <<_ACEOF
18328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
18333$ac_includes_default
18334long longval () { return (long) (sizeof (int)); }
18335unsigned long ulongval () { return (long) (sizeof (int)); }
18336#include <stdio.h>
18337#include <stdlib.h>
18338int
18339main ()
18340{
18341
18342 FILE *f = fopen ("conftest.val", "w");
18343 if (! f)
18344 exit (1);
18345 if (((long) (sizeof (int))) < 0)
18346 {
18347 long i = longval ();
18348 if (i != ((long) (sizeof (int))))
18349 exit (1);
18350 fprintf (f, "%ld\n", i);
18351 }
18352 else
18353 {
18354 unsigned long i = ulongval ();
18355 if (i != ((long) (sizeof (int))))
18356 exit (1);
18357 fprintf (f, "%lu\n", i);
18358 }
18359 exit (ferror (f) || fclose (f) != 0);
18360
18361 ;
18362 return 0;
18363}
18364_ACEOF
18365rm -f conftest$ac_exeext
18366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_sizeof_int=`cat conftest.val`
18377else
18378 echo "$as_me: program exited with status $ac_status" >&5
18379echo "$as_me: failed program was:" >&5
18380sed 's/^/| /' conftest.$ac_ext >&5
18381
18382( exit $ac_status )
18383{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18384See \`config.log' for more details." >&5
18385echo "$as_me: error: cannot compute sizeof (int), 77
18386See \`config.log' for more details." >&2;}
18387 { (exit 1); exit 1; }; }
18388fi
ac1cb8d3 18389rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18390fi
18391fi
18392rm -f conftest.val
18393else
18394 ac_cv_sizeof_int=0
18395fi
18396fi
18397echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18398echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18399cat >>confdefs.h <<_ACEOF
18400#define SIZEOF_INT $ac_cv_sizeof_int
18401_ACEOF
18402
18403
18404echo "$as_me:$LINENO: checking for long" >&5
18405echo $ECHO_N "checking for long... $ECHO_C" >&6
18406if test "${ac_cv_type_long+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408else
18409 cat >conftest.$ac_ext <<_ACEOF
18410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
18415$ac_includes_default
18416int
18417main ()
18418{
18419if ((long *) 0)
18420 return 0;
18421if (sizeof (long))
18422 return 0;
18423 ;
18424 return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext
18428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18429 (eval $ac_compile) 2>conftest.er1
a848cd7e 18430 ac_status=$?
ac1cb8d3
VS
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
a848cd7e
SC
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
be665c07
JS
18436 { ac_try='test -z "$ac_c_werror_flag"
18437 || test ! -s conftest.err'
ac1cb8d3
VS
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 ac_cv_type_long=yes
18450else
18451 echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454ac_cv_type_long=no
18455fi
ac1cb8d3 18456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18457fi
18458echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18459echo "${ECHO_T}$ac_cv_type_long" >&6
18460
18461echo "$as_me:$LINENO: checking size of long" >&5
18462echo $ECHO_N "checking size of long... $ECHO_C" >&6
18463if test "${ac_cv_sizeof_long+set}" = set; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18465else
18466 if test "$ac_cv_type_long" = yes; then
18467 # The cast to unsigned long works around a bug in the HP C Compiler
18468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18470 # This bug is HP SR number 8606223364.
18471 if test "$cross_compiling" = yes; then
18472 # Depending upon the size, compute the lo and hi bounds.
18473cat >conftest.$ac_ext <<_ACEOF
18474/* confdefs.h. */
18475_ACEOF
18476cat confdefs.h >>conftest.$ac_ext
18477cat >>conftest.$ac_ext <<_ACEOF
18478/* end confdefs.h. */
18479$ac_includes_default
18480int
18481main ()
18482{
18483static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18484test_array [0] = 0
18485
18486 ;
18487 return 0;
18488}
18489_ACEOF
18490rm -f conftest.$ac_objext
18491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18492 (eval $ac_compile) 2>conftest.er1
a848cd7e 18493 ac_status=$?
ac1cb8d3
VS
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
a848cd7e
SC
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
be665c07
JS
18499 { ac_try='test -z "$ac_c_werror_flag"
18500 || test ! -s conftest.err'
ac1cb8d3
VS
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_lo=0 ac_mid=0
18513 while :; do
18514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
18519/* end confdefs.h. */
18520$ac_includes_default
18521int
18522main ()
18523{
18524static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18525test_array [0] = 0
18526
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext
18532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18533 (eval $ac_compile) 2>conftest.er1
a848cd7e 18534 ac_status=$?
ac1cb8d3
VS
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
a848cd7e
SC
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
be665c07
JS
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
ac1cb8d3
VS
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_hi=$ac_mid; break
18554else
18555 echo "$as_me: failed program was:" >&5
18556sed 's/^/| /' conftest.$ac_ext >&5
18557
18558ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18559 if test $ac_lo -le $ac_mid; then
18560 ac_lo= ac_hi=
18561 break
18562 fi
18563 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18564fi
ac1cb8d3 18565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18566 done
18567else
18568 echo "$as_me: failed program was:" >&5
18569sed 's/^/| /' conftest.$ac_ext >&5
18570
18571cat >conftest.$ac_ext <<_ACEOF
18572/* confdefs.h. */
18573_ACEOF
18574cat confdefs.h >>conftest.$ac_ext
18575cat >>conftest.$ac_ext <<_ACEOF
18576/* end confdefs.h. */
18577$ac_includes_default
18578int
18579main ()
18580{
18581static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18582test_array [0] = 0
18583
18584 ;
18585 return 0;
18586}
18587_ACEOF
18588rm -f conftest.$ac_objext
18589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18590 (eval $ac_compile) 2>conftest.er1
a848cd7e 18591 ac_status=$?
ac1cb8d3
VS
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
a848cd7e
SC
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
be665c07
JS
18597 { ac_try='test -z "$ac_c_werror_flag"
18598 || test ! -s conftest.err'
ac1cb8d3
VS
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 ac_hi=-1 ac_mid=-1
18611 while :; do
18612 cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618$ac_includes_default
18619int
18620main ()
18621{
18622static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18623test_array [0] = 0
18624
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18631 (eval $ac_compile) 2>conftest.er1
a848cd7e 18632 ac_status=$?
ac1cb8d3
VS
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
a848cd7e
SC
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
be665c07
JS
18638 { ac_try='test -z "$ac_c_werror_flag"
18639 || test ! -s conftest.err'
ac1cb8d3
VS
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_lo=$ac_mid; break
18652else
18653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18657 if test $ac_mid -le $ac_hi; then
18658 ac_lo= ac_hi=
18659 break
18660 fi
18661 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18662fi
ac1cb8d3 18663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18664 done
18665else
18666 echo "$as_me: failed program was:" >&5
18667sed 's/^/| /' conftest.$ac_ext >&5
18668
18669ac_lo= ac_hi=
18670fi
ac1cb8d3 18671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18672fi
ac1cb8d3 18673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18674# Binary search between lo and hi bounds.
18675while test "x$ac_lo" != "x$ac_hi"; do
18676 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18677 cat >conftest.$ac_ext <<_ACEOF
18678/* confdefs.h. */
18679_ACEOF
18680cat confdefs.h >>conftest.$ac_ext
18681cat >>conftest.$ac_ext <<_ACEOF
18682/* end confdefs.h. */
18683$ac_includes_default
18684int
18685main ()
18686{
18687static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18688test_array [0] = 0
18689
18690 ;
18691 return 0;
18692}
18693_ACEOF
18694rm -f conftest.$ac_objext
18695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18696 (eval $ac_compile) 2>conftest.er1
a848cd7e 18697 ac_status=$?
ac1cb8d3
VS
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
a848cd7e
SC
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
be665c07
JS
18703 { ac_try='test -z "$ac_c_werror_flag"
18704 || test ! -s conftest.err'
ac1cb8d3
VS
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_hi=$ac_mid
18717else
18718 echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721ac_lo=`expr '(' $ac_mid ')' + 1`
18722fi
ac1cb8d3 18723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18724done
18725case $ac_lo in
18726?*) ac_cv_sizeof_long=$ac_lo;;
18727'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18728See \`config.log' for more details." >&5
18729echo "$as_me: error: cannot compute sizeof (long), 77
18730See \`config.log' for more details." >&2;}
18731 { (exit 1); exit 1; }; } ;;
18732esac
18733else
18734 if test "$cross_compiling" = yes; then
be665c07
JS
18735 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18736See \`config.log' for more details." >&5
18737echo "$as_me: error: cannot run test program while cross compiling
18738See \`config.log' for more details." >&2;}
a848cd7e
SC
18739 { (exit 1); exit 1; }; }
18740else
18741 cat >conftest.$ac_ext <<_ACEOF
18742/* confdefs.h. */
18743_ACEOF
18744cat confdefs.h >>conftest.$ac_ext
18745cat >>conftest.$ac_ext <<_ACEOF
18746/* end confdefs.h. */
18747$ac_includes_default
18748long longval () { return (long) (sizeof (long)); }
18749unsigned long ulongval () { return (long) (sizeof (long)); }
18750#include <stdio.h>
18751#include <stdlib.h>
18752int
18753main ()
18754{
18755
18756 FILE *f = fopen ("conftest.val", "w");
18757 if (! f)
18758 exit (1);
18759 if (((long) (sizeof (long))) < 0)
18760 {
18761 long i = longval ();
18762 if (i != ((long) (sizeof (long))))
18763 exit (1);
18764 fprintf (f, "%ld\n", i);
18765 }
18766 else
18767 {
18768 unsigned long i = ulongval ();
18769 if (i != ((long) (sizeof (long))))
18770 exit (1);
18771 fprintf (f, "%lu\n", i);
18772 }
18773 exit (ferror (f) || fclose (f) != 0);
18774
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest$ac_exeext
18780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781 (eval $ac_link) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_sizeof_long=`cat conftest.val`
18791else
18792 echo "$as_me: program exited with status $ac_status" >&5
18793echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796( exit $ac_status )
18797{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18798See \`config.log' for more details." >&5
18799echo "$as_me: error: cannot compute sizeof (long), 77
18800See \`config.log' for more details." >&2;}
18801 { (exit 1); exit 1; }; }
18802fi
ac1cb8d3 18803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18804fi
18805fi
18806rm -f conftest.val
18807else
18808 ac_cv_sizeof_long=0
18809fi
18810fi
18811echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18812echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18813cat >>confdefs.h <<_ACEOF
18814#define SIZEOF_LONG $ac_cv_sizeof_long
18815_ACEOF
18816
18817
18818echo "$as_me:$LINENO: checking for size_t" >&5
18819echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18820if test "${ac_cv_type_size_t+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18822else
18823 cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829$ac_includes_default
18830int
18831main ()
18832{
18833if ((size_t *) 0)
18834 return 0;
18835if (sizeof (size_t))
18836 return 0;
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18843 (eval $ac_compile) 2>conftest.er1
a848cd7e 18844 ac_status=$?
ac1cb8d3
VS
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
a848cd7e
SC
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
be665c07
JS
18850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
ac1cb8d3
VS
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_cv_type_size_t=yes
18864else
18865 echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868ac_cv_type_size_t=no
18869fi
ac1cb8d3 18870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18871fi
18872echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18873echo "${ECHO_T}$ac_cv_type_size_t" >&6
18874
18875echo "$as_me:$LINENO: checking size of size_t" >&5
18876echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18877if test "${ac_cv_sizeof_size_t+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879else
18880 if test "$ac_cv_type_size_t" = yes; then
18881 # The cast to unsigned long works around a bug in the HP C Compiler
18882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18884 # This bug is HP SR number 8606223364.
18885 if test "$cross_compiling" = yes; then
18886 # Depending upon the size, compute the lo and hi bounds.
18887cat >conftest.$ac_ext <<_ACEOF
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
18893$ac_includes_default
18894int
18895main ()
18896{
18897static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18898test_array [0] = 0
18899
18900 ;
18901 return 0;
18902}
18903_ACEOF
18904rm -f conftest.$ac_objext
18905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18906 (eval $ac_compile) 2>conftest.er1
a848cd7e 18907 ac_status=$?
ac1cb8d3
VS
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
a848cd7e
SC
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
be665c07
JS
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
ac1cb8d3
VS
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ac_lo=0 ac_mid=0
18927 while :; do
18928 cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934$ac_includes_default
18935int
18936main ()
18937{
18938static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18939test_array [0] = 0
18940
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext
18946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18947 (eval $ac_compile) 2>conftest.er1
a848cd7e 18948 ac_status=$?
ac1cb8d3
VS
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
a848cd7e
SC
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
be665c07
JS
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
ac1cb8d3
VS
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_hi=$ac_mid; break
18968else
18969 echo "$as_me: failed program was:" >&5
18970sed 's/^/| /' conftest.$ac_ext >&5
18971
18972ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18973 if test $ac_lo -le $ac_mid; then
18974 ac_lo= ac_hi=
18975 break
18976 fi
18977 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18978fi
ac1cb8d3 18979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18980 done
18981else
18982 echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991$ac_includes_default
18992int
18993main ()
18994{
18995static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18996test_array [0] = 0
18997
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext
19003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19004 (eval $ac_compile) 2>conftest.er1
a848cd7e 19005 ac_status=$?
ac1cb8d3
VS
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
a848cd7e
SC
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
be665c07
JS
19011 { ac_try='test -z "$ac_c_werror_flag"
19012 || test ! -s conftest.err'
ac1cb8d3
VS
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_hi=-1 ac_mid=-1
19025 while :; do
19026 cat >conftest.$ac_ext <<_ACEOF
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
19032$ac_includes_default
19033int
19034main ()
19035{
19036static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19037test_array [0] = 0
19038
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043rm -f conftest.$ac_objext
19044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19045 (eval $ac_compile) 2>conftest.er1
a848cd7e 19046 ac_status=$?
ac1cb8d3
VS
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
a848cd7e
SC
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
be665c07
JS
19052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
ac1cb8d3
VS
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_lo=$ac_mid; break
19066else
19067 echo "$as_me: failed program was:" >&5
19068sed 's/^/| /' conftest.$ac_ext >&5
19069
19070ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19071 if test $ac_mid -le $ac_hi; then
19072 ac_lo= ac_hi=
19073 break
19074 fi
19075 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19076fi
ac1cb8d3 19077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19078 done
19079else
19080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083ac_lo= ac_hi=
19084fi
ac1cb8d3 19085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19086fi
ac1cb8d3 19087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19088# Binary search between lo and hi bounds.
19089while test "x$ac_lo" != "x$ac_hi"; do
19090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19091 cat >conftest.$ac_ext <<_ACEOF
19092/* confdefs.h. */
19093_ACEOF
19094cat confdefs.h >>conftest.$ac_ext
19095cat >>conftest.$ac_ext <<_ACEOF
19096/* end confdefs.h. */
19097$ac_includes_default
19098int
19099main ()
19100{
19101static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19102test_array [0] = 0
19103
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext
19109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19110 (eval $ac_compile) 2>conftest.er1
a848cd7e 19111 ac_status=$?
ac1cb8d3
VS
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
a848cd7e
SC
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
be665c07
JS
19117 { ac_try='test -z "$ac_c_werror_flag"
19118 || test ! -s conftest.err'
ac1cb8d3
VS
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_hi=$ac_mid
19131else
19132 echo "$as_me: failed program was:" >&5
19133sed 's/^/| /' conftest.$ac_ext >&5
19134
19135ac_lo=`expr '(' $ac_mid ')' + 1`
19136fi
ac1cb8d3 19137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19138done
19139case $ac_lo in
19140?*) ac_cv_sizeof_size_t=$ac_lo;;
19141'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19142See \`config.log' for more details." >&5
19143echo "$as_me: error: cannot compute sizeof (size_t), 77
19144See \`config.log' for more details." >&2;}
19145 { (exit 1); exit 1; }; } ;;
19146esac
19147else
19148 if test "$cross_compiling" = yes; then
be665c07
JS
19149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19150See \`config.log' for more details." >&5
19151echo "$as_me: error: cannot run test program while cross compiling
19152See \`config.log' for more details." >&2;}
a848cd7e
SC
19153 { (exit 1); exit 1; }; }
19154else
19155 cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
19161$ac_includes_default
19162long longval () { return (long) (sizeof (size_t)); }
19163unsigned long ulongval () { return (long) (sizeof (size_t)); }
19164#include <stdio.h>
19165#include <stdlib.h>
19166int
19167main ()
19168{
19169
19170 FILE *f = fopen ("conftest.val", "w");
19171 if (! f)
19172 exit (1);
19173 if (((long) (sizeof (size_t))) < 0)
19174 {
19175 long i = longval ();
19176 if (i != ((long) (sizeof (size_t))))
19177 exit (1);
19178 fprintf (f, "%ld\n", i);
19179 }
19180 else
19181 {
19182 unsigned long i = ulongval ();
19183 if (i != ((long) (sizeof (size_t))))
19184 exit (1);
19185 fprintf (f, "%lu\n", i);
19186 }
19187 exit (ferror (f) || fclose (f) != 0);
19188
19189 ;
19190 return 0;
19191}
19192_ACEOF
19193rm -f conftest$ac_exeext
19194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_sizeof_size_t=`cat conftest.val`
19205else
19206 echo "$as_me: program exited with status $ac_status" >&5
19207echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210( exit $ac_status )
19211{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19212See \`config.log' for more details." >&5
19213echo "$as_me: error: cannot compute sizeof (size_t), 77
19214See \`config.log' for more details." >&2;}
19215 { (exit 1); exit 1; }; }
19216fi
ac1cb8d3 19217rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19218fi
19219fi
19220rm -f conftest.val
19221else
19222 ac_cv_sizeof_size_t=0
19223fi
19224fi
19225echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19226echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19227cat >>confdefs.h <<_ACEOF
19228#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19229_ACEOF
19230
19231
19232
19233case "${host}" in
19234 arm-*-linux* )
19235 echo "$as_me:$LINENO: checking for long long" >&5
19236echo $ECHO_N "checking for long long... $ECHO_C" >&6
19237if test "${ac_cv_type_long_long+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246$ac_includes_default
19247int
19248main ()
19249{
19250if ((long long *) 0)
19251 return 0;
19252if (sizeof (long long))
19253 return 0;
19254 ;
19255 return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext
19259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19260 (eval $ac_compile) 2>conftest.er1
a848cd7e 19261 ac_status=$?
ac1cb8d3
VS
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
a848cd7e
SC
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
be665c07
JS
19267 { ac_try='test -z "$ac_c_werror_flag"
19268 || test ! -s conftest.err'
ac1cb8d3
VS
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; } &&
19274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 ac_cv_type_long_long=yes
19281else
19282 echo "$as_me: failed program was:" >&5
19283sed 's/^/| /' conftest.$ac_ext >&5
19284
19285ac_cv_type_long_long=no
19286fi
ac1cb8d3 19287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19288fi
19289echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19290echo "${ECHO_T}$ac_cv_type_long_long" >&6
19291
19292echo "$as_me:$LINENO: checking size of long long" >&5
19293echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19294if test "${ac_cv_sizeof_long_long+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296else
19297 if test "$ac_cv_type_long_long" = yes; then
19298 # The cast to unsigned long works around a bug in the HP C Compiler
19299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19301 # This bug is HP SR number 8606223364.
19302 if test "$cross_compiling" = yes; then
19303 # Depending upon the size, compute the lo and hi bounds.
19304cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
19309/* end confdefs.h. */
19310$ac_includes_default
19311int
19312main ()
19313{
19314static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19315test_array [0] = 0
19316
19317 ;
19318 return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext
19322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19323 (eval $ac_compile) 2>conftest.er1
a848cd7e 19324 ac_status=$?
ac1cb8d3
VS
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
a848cd7e
SC
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
be665c07
JS
19330 { ac_try='test -z "$ac_c_werror_flag"
19331 || test ! -s conftest.err'
ac1cb8d3
VS
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_lo=0 ac_mid=0
19344 while :; do
19345 cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351$ac_includes_default
19352int
19353main ()
19354{
19355static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19356test_array [0] = 0
19357
19358 ;
19359 return 0;
19360}
19361_ACEOF
19362rm -f conftest.$ac_objext
19363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19364 (eval $ac_compile) 2>conftest.er1
a848cd7e 19365 ac_status=$?
ac1cb8d3
VS
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
a848cd7e
SC
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
be665c07
JS
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
ac1cb8d3
VS
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_hi=$ac_mid; break
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19390 if test $ac_lo -le $ac_mid; then
19391 ac_lo= ac_hi=
19392 break
19393 fi
19394 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19395fi
ac1cb8d3 19396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19397 done
19398else
19399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408$ac_includes_default
19409int
19410main ()
19411{
19412static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19413test_array [0] = 0
19414
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext
19420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19421 (eval $ac_compile) 2>conftest.er1
a848cd7e 19422 ac_status=$?
ac1cb8d3
VS
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
a848cd7e
SC
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
be665c07
JS
19428 { ac_try='test -z "$ac_c_werror_flag"
19429 || test ! -s conftest.err'
ac1cb8d3
VS
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_hi=-1 ac_mid=-1
19442 while :; do
19443 cat >conftest.$ac_ext <<_ACEOF
19444/* confdefs.h. */
19445_ACEOF
19446cat confdefs.h >>conftest.$ac_ext
19447cat >>conftest.$ac_ext <<_ACEOF
19448/* end confdefs.h. */
19449$ac_includes_default
19450int
19451main ()
19452{
19453static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19454test_array [0] = 0
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19462 (eval $ac_compile) 2>conftest.er1
a848cd7e 19463 ac_status=$?
ac1cb8d3
VS
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
a848cd7e
SC
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
be665c07
JS
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
ac1cb8d3
VS
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_lo=$ac_mid; break
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19488 if test $ac_mid -le $ac_hi; then
19489 ac_lo= ac_hi=
19490 break
19491 fi
19492 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495 done
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500ac_lo= ac_hi=
19501fi
ac1cb8d3 19502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19503fi
ac1cb8d3 19504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19505# Binary search between lo and hi bounds.
19506while test "x$ac_lo" != "x$ac_hi"; do
19507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514$ac_includes_default
19515int
19516main ()
19517{
19518static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19519test_array [0] = 0
19520
19521 ;
19522 return 0;
19523}
19524_ACEOF
19525rm -f conftest.$ac_objext
19526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19527 (eval $ac_compile) 2>conftest.er1
a848cd7e 19528 ac_status=$?
ac1cb8d3
VS
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
a848cd7e
SC
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
be665c07
JS
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
ac1cb8d3
VS
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_hi=$ac_mid
19548else
19549 echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552ac_lo=`expr '(' $ac_mid ')' + 1`
19553fi
ac1cb8d3 19554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19555done
19556case $ac_lo in
19557?*) ac_cv_sizeof_long_long=$ac_lo;;
19558'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19559See \`config.log' for more details." >&5
19560echo "$as_me: error: cannot compute sizeof (long long), 77
19561See \`config.log' for more details." >&2;}
19562 { (exit 1); exit 1; }; } ;;
19563esac
19564else
19565 if test "$cross_compiling" = yes; then
be665c07
JS
19566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19567See \`config.log' for more details." >&5
19568echo "$as_me: error: cannot run test program while cross compiling
19569See \`config.log' for more details." >&2;}
a848cd7e
SC
19570 { (exit 1); exit 1; }; }
19571else
19572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
19578$ac_includes_default
19579long longval () { return (long) (sizeof (long long)); }
19580unsigned long ulongval () { return (long) (sizeof (long long)); }
19581#include <stdio.h>
19582#include <stdlib.h>
19583int
19584main ()
19585{
19586
19587 FILE *f = fopen ("conftest.val", "w");
19588 if (! f)
19589 exit (1);
19590 if (((long) (sizeof (long long))) < 0)
19591 {
19592 long i = longval ();
19593 if (i != ((long) (sizeof (long long))))
19594 exit (1);
19595 fprintf (f, "%ld\n", i);
19596 }
19597 else
19598 {
19599 unsigned long i = ulongval ();
19600 if (i != ((long) (sizeof (long long))))
19601 exit (1);
19602 fprintf (f, "%lu\n", i);
19603 }
19604 exit (ferror (f) || fclose (f) != 0);
19605
19606 ;
19607 return 0;
19608}
19609_ACEOF
19610rm -f conftest$ac_exeext
19611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19612 (eval $ac_link) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_sizeof_long_long=`cat conftest.val`
19622else
19623 echo "$as_me: program exited with status $ac_status" >&5
19624echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627( exit $ac_status )
19628{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19629See \`config.log' for more details." >&5
19630echo "$as_me: error: cannot compute sizeof (long long), 77
19631See \`config.log' for more details." >&2;}
19632 { (exit 1); exit 1; }; }
19633fi
ac1cb8d3 19634rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19635fi
19636fi
19637rm -f conftest.val
19638else
19639 ac_cv_sizeof_long_long=0
19640fi
19641fi
19642echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19643echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19644cat >>confdefs.h <<_ACEOF
19645#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19646_ACEOF
19647
19648
19649 ;;
19650 *-hp-hpux* )
19651 echo "$as_me:$LINENO: checking for long long" >&5
19652echo $ECHO_N "checking for long long... $ECHO_C" >&6
19653if test "${ac_cv_type_long_long+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655else
19656 cat >conftest.$ac_ext <<_ACEOF
19657/* confdefs.h. */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
19661/* end confdefs.h. */
19662$ac_includes_default
19663int
19664main ()
19665{
19666if ((long long *) 0)
19667 return 0;
19668if (sizeof (long long))
19669 return 0;
19670 ;
19671 return 0;
19672}
19673_ACEOF
19674rm -f conftest.$ac_objext
19675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19676 (eval $ac_compile) 2>conftest.er1
a848cd7e 19677 ac_status=$?
ac1cb8d3
VS
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
a848cd7e
SC
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
be665c07
JS
19683 { ac_try='test -z "$ac_c_werror_flag"
19684 || test ! -s conftest.err'
ac1cb8d3
VS
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_cv_type_long_long=yes
19697else
19698 echo "$as_me: failed program was:" >&5
19699sed 's/^/| /' conftest.$ac_ext >&5
19700
19701ac_cv_type_long_long=no
19702fi
ac1cb8d3 19703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19704fi
19705echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19706echo "${ECHO_T}$ac_cv_type_long_long" >&6
19707
19708echo "$as_me:$LINENO: checking size of long long" >&5
19709echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19710if test "${ac_cv_sizeof_long_long+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713 if test "$ac_cv_type_long_long" = yes; then
19714 # The cast to unsigned long works around a bug in the HP C Compiler
19715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19717 # This bug is HP SR number 8606223364.
19718 if test "$cross_compiling" = yes; then
19719 # Depending upon the size, compute the lo and hi bounds.
19720cat >conftest.$ac_ext <<_ACEOF
19721/* confdefs.h. */
19722_ACEOF
19723cat confdefs.h >>conftest.$ac_ext
19724cat >>conftest.$ac_ext <<_ACEOF
19725/* end confdefs.h. */
19726$ac_includes_default
19727int
19728main ()
19729{
19730static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19731test_array [0] = 0
19732
19733 ;
19734 return 0;
19735}
19736_ACEOF
19737rm -f conftest.$ac_objext
19738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19739 (eval $ac_compile) 2>conftest.er1
a848cd7e 19740 ac_status=$?
ac1cb8d3
VS
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
a848cd7e
SC
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
be665c07
JS
19746 { ac_try='test -z "$ac_c_werror_flag"
19747 || test ! -s conftest.err'
ac1cb8d3
VS
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_lo=0 ac_mid=0
19760 while :; do
19761 cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
19767$ac_includes_default
19768int
19769main ()
19770{
19771static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19772test_array [0] = 0
19773
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19780 (eval $ac_compile) 2>conftest.er1
a848cd7e 19781 ac_status=$?
ac1cb8d3
VS
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
a848cd7e
SC
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
be665c07
JS
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
ac1cb8d3
VS
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_hi=$ac_mid; break
19801else
19802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19806 if test $ac_lo -le $ac_mid; then
19807 ac_lo= ac_hi=
19808 break
19809 fi
19810 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19811fi
ac1cb8d3 19812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19813 done
19814else
19815 echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
19824$ac_includes_default
19825int
19826main ()
19827{
19828static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19829test_array [0] = 0
19830
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19837 (eval $ac_compile) 2>conftest.er1
a848cd7e 19838 ac_status=$?
ac1cb8d3
VS
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
a848cd7e
SC
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
be665c07
JS
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
ac1cb8d3
VS
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_hi=-1 ac_mid=-1
19858 while :; do
19859 cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865$ac_includes_default
19866int
19867main ()
19868{
19869static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19870test_array [0] = 0
19871
19872 ;
19873 return 0;
19874}
19875_ACEOF
19876rm -f conftest.$ac_objext
19877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19878 (eval $ac_compile) 2>conftest.er1
a848cd7e 19879 ac_status=$?
ac1cb8d3
VS
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
a848cd7e
SC
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
be665c07
JS
19885 { ac_try='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
ac1cb8d3
VS
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_lo=$ac_mid; break
19899else
19900 echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19904 if test $ac_mid -le $ac_hi; then
19905 ac_lo= ac_hi=
19906 break
19907 fi
19908 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19909fi
ac1cb8d3 19910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19911 done
19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916ac_lo= ac_hi=
19917fi
ac1cb8d3 19918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19919fi
ac1cb8d3 19920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19921# Binary search between lo and hi bounds.
19922while test "x$ac_lo" != "x$ac_hi"; do
19923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19924 cat >conftest.$ac_ext <<_ACEOF
19925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930$ac_includes_default
19931int
19932main ()
19933{
19934static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19935test_array [0] = 0
19936
19937 ;
19938 return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext
19942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19943 (eval $ac_compile) 2>conftest.er1
a848cd7e 19944 ac_status=$?
ac1cb8d3
VS
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
a848cd7e
SC
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
be665c07
JS
19950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
ac1cb8d3
VS
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_hi=$ac_mid
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968ac_lo=`expr '(' $ac_mid ')' + 1`
19969fi
ac1cb8d3 19970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19971done
19972case $ac_lo in
19973?*) ac_cv_sizeof_long_long=$ac_lo;;
19974'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19975See \`config.log' for more details." >&5
19976echo "$as_me: error: cannot compute sizeof (long long), 77
19977See \`config.log' for more details." >&2;}
19978 { (exit 1); exit 1; }; } ;;
19979esac
19980else
19981 if test "$cross_compiling" = yes; then
be665c07
JS
19982 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19983See \`config.log' for more details." >&5
19984echo "$as_me: error: cannot run test program while cross compiling
19985See \`config.log' for more details." >&2;}
a848cd7e
SC
19986 { (exit 1); exit 1; }; }
19987else
19988 cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
19994$ac_includes_default
19995long longval () { return (long) (sizeof (long long)); }
19996unsigned long ulongval () { return (long) (sizeof (long long)); }
19997#include <stdio.h>
19998#include <stdlib.h>
19999int
20000main ()
20001{
20002
20003 FILE *f = fopen ("conftest.val", "w");
20004 if (! f)
20005 exit (1);
20006 if (((long) (sizeof (long long))) < 0)
20007 {
20008 long i = longval ();
20009 if (i != ((long) (sizeof (long long))))
20010 exit (1);
20011 fprintf (f, "%ld\n", i);
20012 }
20013 else
20014 {
20015 unsigned long i = ulongval ();
20016 if (i != ((long) (sizeof (long long))))
20017 exit (1);
20018 fprintf (f, "%lu\n", i);
20019 }
20020 exit (ferror (f) || fclose (f) != 0);
20021
20022 ;
20023 return 0;
20024}
20025_ACEOF
20026rm -f conftest$ac_exeext
20027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028 (eval $ac_link) 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_sizeof_long_long=`cat conftest.val`
20038else
20039 echo "$as_me: program exited with status $ac_status" >&5
20040echo "$as_me: failed program was:" >&5
20041sed 's/^/| /' conftest.$ac_ext >&5
20042
20043( exit $ac_status )
20044{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20045See \`config.log' for more details." >&5
20046echo "$as_me: error: cannot compute sizeof (long long), 77
20047See \`config.log' for more details." >&2;}
20048 { (exit 1); exit 1; }; }
20049fi
ac1cb8d3 20050rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20051fi
20052fi
20053rm -f conftest.val
20054else
20055 ac_cv_sizeof_long_long=0
20056fi
20057fi
20058echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20059echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20060cat >>confdefs.h <<_ACEOF
20061#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20062_ACEOF
20063
20064
20065 if test "$ac_cv_sizeof_long_long" != "0"; then
20066 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
20067 fi
20068 ;;
20069 * )
20070 echo "$as_me:$LINENO: checking for long long" >&5
20071echo $ECHO_N "checking for long long... $ECHO_C" >&6
20072if test "${ac_cv_type_long_long+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074else
20075 cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081$ac_includes_default
20082int
20083main ()
20084{
20085if ((long long *) 0)
20086 return 0;
20087if (sizeof (long long))
20088 return 0;
20089 ;
20090 return 0;
20091}
20092_ACEOF
20093rm -f conftest.$ac_objext
20094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20095 (eval $ac_compile) 2>conftest.er1
a848cd7e 20096 ac_status=$?
ac1cb8d3
VS
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
a848cd7e
SC
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
be665c07
JS
20102 { ac_try='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
ac1cb8d3
VS
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_type_long_long=yes
20116else
20117 echo "$as_me: failed program was:" >&5
20118sed 's/^/| /' conftest.$ac_ext >&5
20119
20120ac_cv_type_long_long=no
20121fi
ac1cb8d3 20122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20123fi
20124echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20125echo "${ECHO_T}$ac_cv_type_long_long" >&6
20126
20127echo "$as_me:$LINENO: checking size of long long" >&5
20128echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20129if test "${ac_cv_sizeof_long_long+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131else
20132 if test "$ac_cv_type_long_long" = yes; then
20133 # The cast to unsigned long works around a bug in the HP C Compiler
20134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20136 # This bug is HP SR number 8606223364.
20137 if test "$cross_compiling" = yes; then
20138 # Depending upon the size, compute the lo and hi bounds.
20139cat >conftest.$ac_ext <<_ACEOF
20140/* confdefs.h. */
20141_ACEOF
20142cat confdefs.h >>conftest.$ac_ext
20143cat >>conftest.$ac_ext <<_ACEOF
20144/* end confdefs.h. */
20145$ac_includes_default
20146int
20147main ()
20148{
20149static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20150test_array [0] = 0
20151
20152 ;
20153 return 0;
20154}
20155_ACEOF
20156rm -f conftest.$ac_objext
20157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20158 (eval $ac_compile) 2>conftest.er1
a848cd7e 20159 ac_status=$?
ac1cb8d3
VS
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
a848cd7e
SC
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
be665c07
JS
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
ac1cb8d3
VS
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 ac_lo=0 ac_mid=0
20179 while :; do
20180 cat >conftest.$ac_ext <<_ACEOF
20181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
20186$ac_includes_default
20187int
20188main ()
20189{
20190static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20191test_array [0] = 0
20192
20193 ;
20194 return 0;
20195}
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20199 (eval $ac_compile) 2>conftest.er1
a848cd7e 20200 ac_status=$?
ac1cb8d3
VS
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
a848cd7e
SC
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
be665c07
JS
20206 { ac_try='test -z "$ac_c_werror_flag"
20207 || test ! -s conftest.err'
ac1cb8d3
VS
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; } &&
20213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_hi=$ac_mid; break
20220else
20221 echo "$as_me: failed program was:" >&5
20222sed 's/^/| /' conftest.$ac_ext >&5
20223
20224ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20225 if test $ac_lo -le $ac_mid; then
20226 ac_lo= ac_hi=
20227 break
20228 fi
20229 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20230fi
ac1cb8d3 20231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20232 done
20233else
20234 echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
20243$ac_includes_default
20244int
20245main ()
20246{
20247static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20248test_array [0] = 0
20249
20250 ;
20251 return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext
20255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20256 (eval $ac_compile) 2>conftest.er1
a848cd7e 20257 ac_status=$?
ac1cb8d3
VS
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
a848cd7e
SC
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
be665c07
JS
20263 { ac_try='test -z "$ac_c_werror_flag"
20264 || test ! -s conftest.err'
ac1cb8d3
VS
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 ac_hi=-1 ac_mid=-1
20277 while :; do
20278 cat >conftest.$ac_ext <<_ACEOF
20279/* confdefs.h. */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h. */
20284$ac_includes_default
20285int
20286main ()
20287{
20288static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20289test_array [0] = 0
20290
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295rm -f conftest.$ac_objext
20296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20297 (eval $ac_compile) 2>conftest.er1
a848cd7e 20298 ac_status=$?
ac1cb8d3
VS
20299 grep -v '^ *+' conftest.er1 >conftest.err
20300 rm -f conftest.er1
20301 cat conftest.err >&5
a848cd7e
SC
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
be665c07
JS
20304 { ac_try='test -z "$ac_c_werror_flag"
20305 || test ! -s conftest.err'
ac1cb8d3
VS
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_lo=$ac_mid; break
20318else
20319 echo "$as_me: failed program was:" >&5
20320sed 's/^/| /' conftest.$ac_ext >&5
20321
20322ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20323 if test $ac_mid -le $ac_hi; then
20324 ac_lo= ac_hi=
20325 break
20326 fi
20327 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20328fi
ac1cb8d3 20329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20330 done
20331else
20332 echo "$as_me: failed program was:" >&5
20333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335ac_lo= ac_hi=
20336fi
ac1cb8d3 20337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20338fi
ac1cb8d3 20339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20340# Binary search between lo and hi bounds.
20341while test "x$ac_lo" != "x$ac_hi"; do
20342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20343 cat >conftest.$ac_ext <<_ACEOF
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
20349$ac_includes_default
20350int
20351main ()
20352{
20353static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20354test_array [0] = 0
20355
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20362 (eval $ac_compile) 2>conftest.er1
a848cd7e 20363 ac_status=$?
ac1cb8d3
VS
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
a848cd7e
SC
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
be665c07
JS
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
ac1cb8d3
VS
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_hi=$ac_mid
20383else
20384 echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387ac_lo=`expr '(' $ac_mid ')' + 1`
20388fi
ac1cb8d3 20389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20390done
20391case $ac_lo in
20392?*) ac_cv_sizeof_long_long=$ac_lo;;
20393'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20394See \`config.log' for more details." >&5
20395echo "$as_me: error: cannot compute sizeof (long long), 77
20396See \`config.log' for more details." >&2;}
20397 { (exit 1); exit 1; }; } ;;
20398esac
20399else
20400 if test "$cross_compiling" = yes; then
be665c07
JS
20401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20402See \`config.log' for more details." >&5
20403echo "$as_me: error: cannot run test program while cross compiling
20404See \`config.log' for more details." >&2;}
a848cd7e
SC
20405 { (exit 1); exit 1; }; }
20406else
20407 cat >conftest.$ac_ext <<_ACEOF
20408/* confdefs.h. */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h. */
20413$ac_includes_default
20414long longval () { return (long) (sizeof (long long)); }
20415unsigned long ulongval () { return (long) (sizeof (long long)); }
20416#include <stdio.h>
20417#include <stdlib.h>
20418int
20419main ()
20420{
20421
20422 FILE *f = fopen ("conftest.val", "w");
20423 if (! f)
20424 exit (1);
20425 if (((long) (sizeof (long long))) < 0)
20426 {
20427 long i = longval ();
20428 if (i != ((long) (sizeof (long long))))
20429 exit (1);
20430 fprintf (f, "%ld\n", i);
20431 }
20432 else
20433 {
20434 unsigned long i = ulongval ();
20435 if (i != ((long) (sizeof (long long))))
20436 exit (1);
20437 fprintf (f, "%lu\n", i);
20438 }
20439 exit (ferror (f) || fclose (f) != 0);
20440
20441 ;
20442 return 0;
20443}
20444_ACEOF
20445rm -f conftest$ac_exeext
20446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20447 (eval $ac_link) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_sizeof_long_long=`cat conftest.val`
20457else
20458 echo "$as_me: program exited with status $ac_status" >&5
20459echo "$as_me: failed program was:" >&5
20460sed 's/^/| /' conftest.$ac_ext >&5
20461
20462( exit $ac_status )
20463{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20464See \`config.log' for more details." >&5
20465echo "$as_me: error: cannot compute sizeof (long long), 77
20466See \`config.log' for more details." >&2;}
20467 { (exit 1); exit 1; }; }
20468fi
ac1cb8d3 20469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20470fi
20471fi
20472rm -f conftest.val
20473else
20474 ac_cv_sizeof_long_long=0
20475fi
20476fi
20477echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20478echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20479cat >>confdefs.h <<_ACEOF
20480#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20481_ACEOF
20482
20483
20484esac
20485
238ecede
MW
20486echo "$as_me:$LINENO: checking for wchar_t" >&5
20487echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20488if test "${ac_cv_type_wchar_t+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490else
20491 cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h. */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h. */
20497
83d8eb47
MW
20498 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20499 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20500 # error "fake wchar_t"
20501 #endif
20502 #ifdef HAVE_WCHAR_H
20503 # ifdef __CYGWIN__
20504 # include <stddef.h>
20505 # endif
20506 # include <wchar.h>
20507 #endif
20508 #ifdef HAVE_STDLIB_H
20509 # include <stdlib.h>
20510 #endif
20511 #include <stdio.h>
20512
20513
20514
20515int
20516main ()
20517{
20518if ((wchar_t *) 0)
20519 return 0;
20520if (sizeof (wchar_t))
20521 return 0;
20522 ;
20523 return 0;
20524}
20525_ACEOF
20526rm -f conftest.$ac_objext
20527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20528 (eval $ac_compile) 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
be665c07
JS
20535 { ac_try='test -z "$ac_c_werror_flag"
20536 || test ! -s conftest.err'
238ecede
MW
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 ac_cv_type_wchar_t=yes
20549else
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553ac_cv_type_wchar_t=no
20554fi
20555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20556fi
20557echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20558echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20559
a848cd7e
SC
20560echo "$as_me:$LINENO: checking size of wchar_t" >&5
20561echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20562if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
238ecede
MW
20565 if test "$ac_cv_type_wchar_t" = yes; then
20566 # The cast to unsigned long works around a bug in the HP C Compiler
20567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20569 # This bug is HP SR number 8606223364.
20570 if test "$cross_compiling" = yes; then
20571 # Depending upon the size, compute the lo and hi bounds.
20572cat >conftest.$ac_ext <<_ACEOF
20573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
20578
83d8eb47
MW
20579 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20580 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20581 # error "fake wchar_t"
20582 #endif
20583 #ifdef HAVE_WCHAR_H
20584 # ifdef __CYGWIN__
20585 # include <stddef.h>
20586 # endif
20587 # include <wchar.h>
20588 #endif
20589 #ifdef HAVE_STDLIB_H
20590 # include <stdlib.h>
20591 #endif
20592 #include <stdio.h>
20593
20594
20595
20596int
20597main ()
20598{
20599static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20600test_array [0] = 0
20601
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606rm -f conftest.$ac_objext
20607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608 (eval $ac_compile) 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
be665c07
JS
20615 { ac_try='test -z "$ac_c_werror_flag"
20616 || test ! -s conftest.err'
238ecede
MW
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_lo=0 ac_mid=0
20629 while :; do
20630 cat >conftest.$ac_ext <<_ACEOF
20631/* confdefs.h. */
20632_ACEOF
20633cat confdefs.h >>conftest.$ac_ext
20634cat >>conftest.$ac_ext <<_ACEOF
20635/* end confdefs.h. */
20636
83d8eb47
MW
20637 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20638 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20639 # error "fake wchar_t"
20640 #endif
20641 #ifdef HAVE_WCHAR_H
20642 # ifdef __CYGWIN__
20643 # include <stddef.h>
20644 # endif
20645 # include <wchar.h>
20646 #endif
20647 #ifdef HAVE_STDLIB_H
20648 # include <stdlib.h>
20649 #endif
20650 #include <stdio.h>
20651
20652
20653
20654int
20655main ()
20656{
20657static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20658test_array [0] = 0
20659
20660 ;
20661 return 0;
20662}
20663_ACEOF
20664rm -f conftest.$ac_objext
20665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>conftest.er1
20667 ac_status=$?
20668 grep -v '^ *+' conftest.er1 >conftest.err
20669 rm -f conftest.er1
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
be665c07
JS
20673 { ac_try='test -z "$ac_c_werror_flag"
20674 || test ! -s conftest.err'
238ecede
MW
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_hi=$ac_mid; break
20687else
20688 echo "$as_me: failed program was:" >&5
20689sed 's/^/| /' conftest.$ac_ext >&5
20690
20691ac_lo=`expr $ac_mid + 1`
20692 if test $ac_lo -le $ac_mid; then
20693 ac_lo= ac_hi=
20694 break
20695 fi
20696 ac_mid=`expr 2 '*' $ac_mid + 1`
20697fi
20698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20699 done
20700else
20701 echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704cat >conftest.$ac_ext <<_ACEOF
20705/* confdefs.h. */
20706_ACEOF
20707cat confdefs.h >>conftest.$ac_ext
20708cat >>conftest.$ac_ext <<_ACEOF
20709/* end confdefs.h. */
20710
83d8eb47
MW
20711 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20712 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20713 # error "fake wchar_t"
20714 #endif
20715 #ifdef HAVE_WCHAR_H
20716 # ifdef __CYGWIN__
20717 # include <stddef.h>
20718 # endif
20719 # include <wchar.h>
20720 #endif
20721 #ifdef HAVE_STDLIB_H
20722 # include <stdlib.h>
20723 #endif
20724 #include <stdio.h>
20725
20726
20727
20728int
20729main ()
20730{
20731static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20732test_array [0] = 0
20733
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext
20739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740 (eval $ac_compile) 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
be665c07
JS
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
238ecede
MW
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest.$ac_objext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ac_hi=-1 ac_mid=-1
20761 while :; do
20762 cat >conftest.$ac_ext <<_ACEOF
20763/* confdefs.h. */
20764_ACEOF
20765cat confdefs.h >>conftest.$ac_ext
20766cat >>conftest.$ac_ext <<_ACEOF
20767/* end confdefs.h. */
20768
83d8eb47
MW
20769 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20770 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20771 # error "fake wchar_t"
20772 #endif
20773 #ifdef HAVE_WCHAR_H
20774 # ifdef __CYGWIN__
20775 # include <stddef.h>
20776 # endif
20777 # include <wchar.h>
20778 #endif
20779 #ifdef HAVE_STDLIB_H
20780 # include <stdlib.h>
20781 #endif
20782 #include <stdio.h>
20783
20784
20785
20786int
20787main ()
20788{
20789static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20790test_array [0] = 0
20791
20792 ;
20793 return 0;
20794}
20795_ACEOF
20796rm -f conftest.$ac_objext
20797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20798 (eval $ac_compile) 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } &&
be665c07
JS
20805 { ac_try='test -z "$ac_c_werror_flag"
20806 || test ! -s conftest.err'
238ecede
MW
20807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808 (eval $ac_try) 2>&5
20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; } &&
20812 { ac_try='test -s conftest.$ac_objext'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20818 ac_lo=$ac_mid; break
20819else
20820 echo "$as_me: failed program was:" >&5
20821sed 's/^/| /' conftest.$ac_ext >&5
20822
20823ac_hi=`expr '(' $ac_mid ')' - 1`
20824 if test $ac_mid -le $ac_hi; then
20825 ac_lo= ac_hi=
20826 break
20827 fi
20828 ac_mid=`expr 2 '*' $ac_mid`
20829fi
20830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20831 done
20832else
20833 echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836ac_lo= ac_hi=
20837fi
20838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839fi
20840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20841# Binary search between lo and hi bounds.
20842while test "x$ac_lo" != "x$ac_hi"; do
20843 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20844 cat >conftest.$ac_ext <<_ACEOF
20845/* confdefs.h. */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h. */
20850
83d8eb47
MW
20851 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20852 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20853 # error "fake wchar_t"
20854 #endif
20855 #ifdef HAVE_WCHAR_H
20856 # ifdef __CYGWIN__
20857 # include <stddef.h>
20858 # endif
20859 # include <wchar.h>
20860 #endif
20861 #ifdef HAVE_STDLIB_H
20862 # include <stdlib.h>
20863 #endif
20864 #include <stdio.h>
a848cd7e 20865
a848cd7e 20866
a848cd7e 20867
238ecede
MW
20868int
20869main ()
20870{
20871static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20872test_array [0] = 0
a848cd7e 20873
238ecede
MW
20874 ;
20875 return 0;
20876}
20877_ACEOF
20878rm -f conftest.$ac_objext
20879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
be665c07
JS
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
238ecede
MW
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_hi=$ac_mid
20901else
20902 echo "$as_me: failed program was:" >&5
20903sed 's/^/| /' conftest.$ac_ext >&5
20904
20905ac_lo=`expr '(' $ac_mid ')' + 1`
20906fi
20907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20908done
20909case $ac_lo in
20910?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20912See \`config.log' for more details." >&5
20913echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20914See \`config.log' for more details." >&2;}
20915 { (exit 1); exit 1; }; } ;;
20916esac
20917else
20918 if test "$cross_compiling" = yes; then
be665c07
JS
20919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20920See \`config.log' for more details." >&5
20921echo "$as_me: error: cannot run test program while cross compiling
20922See \`config.log' for more details." >&2;}
238ecede 20923 { (exit 1); exit 1; }; }
a848cd7e
SC
20924else
20925 cat >conftest.$ac_ext <<_ACEOF
20926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h. */
20931
83d8eb47
MW
20932 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20933 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20934 # error "fake wchar_t"
20935 #endif
20936 #ifdef HAVE_WCHAR_H
20937 # ifdef __CYGWIN__
20938 # include <stddef.h>
20939 # endif
20940 # include <wchar.h>
20941 #endif
20942 #ifdef HAVE_STDLIB_H
20943 # include <stdlib.h>
20944 #endif
20945 #include <stdio.h>
20946
20947
20948
20949long longval () { return (long) (sizeof (wchar_t)); }
20950unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20951#include <stdio.h>
20952#include <stdlib.h>
20953int
20954main ()
20955{
a848cd7e 20956
238ecede
MW
20957 FILE *f = fopen ("conftest.val", "w");
20958 if (! f)
20959 exit (1);
20960 if (((long) (sizeof (wchar_t))) < 0)
20961 {
20962 long i = longval ();
20963 if (i != ((long) (sizeof (wchar_t))))
20964 exit (1);
20965 fprintf (f, "%ld\n", i);
20966 }
20967 else
20968 {
20969 unsigned long i = ulongval ();
20970 if (i != ((long) (sizeof (wchar_t))))
20971 exit (1);
20972 fprintf (f, "%lu\n", i);
20973 }
20974 exit (ferror (f) || fclose (f) != 0);
20975
20976 ;
20977 return 0;
20978}
a848cd7e
SC
20979_ACEOF
20980rm -f conftest$ac_exeext
20981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20982 (eval $ac_link) 2>&5
20983 ac_status=$?
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
238ecede 20991 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20992else
20993 echo "$as_me: program exited with status $ac_status" >&5
20994echo "$as_me: failed program was:" >&5
20995sed 's/^/| /' conftest.$ac_ext >&5
20996
20997( exit $ac_status )
238ecede
MW
20998{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20999See \`config.log' for more details." >&5
21000echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21001See \`config.log' for more details." >&2;}
21002 { (exit 1); exit 1; }; }
a848cd7e 21003fi
ac1cb8d3 21004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21005fi
a848cd7e 21006fi
238ecede
MW
21007rm -f conftest.val
21008else
21009 ac_cv_sizeof_wchar_t=0
21010fi
21011fi
21012echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21013echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21014cat >>confdefs.h <<_ACEOF
238ecede 21015#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21016_ACEOF
21017
21018
47a7e797
MW
21019if test "$ac_cv_sizeof_wchar_t" != "0"; then
21020 wxUSE_WCHAR_T=yes
21021else
21022 wxUSE_WCHAR_T=no
21023fi
238ecede 21024
ba3d13e1
VZ
21025echo "$as_me:$LINENO: checking for va_copy" >&5
21026echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21027if test "${wx_cv_func_va_copy+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029else
21030
21031 cat >conftest.$ac_ext <<_ACEOF
21032
21033 #include <stdarg.h>
21034 void foo(char *f, ...)
21035 {
21036 va_list ap1, ap2;
21037 va_start(ap1, f);
21038 va_copy(ap2, ap1);
21039 va_end(ap2);
21040 va_end(ap1);
21041 }
5886b072
VZ
21042 int main()
21043 {
b902e639
VZ
21044 foo("hi", 17);
21045 return 0;
5886b072 21046 }
ba3d13e1
VZ
21047_ACEOF
21048rm -f conftest.$ac_objext conftest$ac_exeext
21049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
be665c07
JS
21057 { ac_try='test -z "$ac_c_werror_flag"
21058 || test ! -s conftest.err'
ba3d13e1
VZ
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 wx_cv_func_va_copy=yes
21071else
21072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
21075wx_cv_func_va_copy=no
21076
21077fi
21078rm -f conftest.err conftest.$ac_objext \
21079 conftest$ac_exeext conftest.$ac_ext
21080
21081
21082fi
21083echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21084echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21085
21086if test $wx_cv_func_va_copy = "yes"; then
21087 cat >>confdefs.h <<\_ACEOF
21088#define HAVE_VA_COPY 1
21089_ACEOF
21090
21091else
21092 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21093echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21094if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21096else
21097
21098 if test "$cross_compiling" = yes; then
21099 wx_cv_type_va_list_lvalue=yes
21100
21101else
21102 cat >conftest.$ac_ext <<_ACEOF
21103
21104 #include <stdarg.h>
21105 int foo(char *f, ...)
21106 {
21107 va_list ap1, ap2;
21108 va_start(ap1, f);
21109 ap2 = ap1;
21110 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21111 return 1;
21112 va_end(ap2);
21113 va_end(ap1);
21114 return 0;
21115 }
21116 int main()
21117 {
21118 return foo("hi", 17);
21119 }
21120_ACEOF
21121rm -f conftest$ac_exeext
21122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 wx_cv_type_va_list_lvalue=yes
21133else
21134 echo "$as_me: program exited with status $ac_status" >&5
21135echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138( exit $ac_status )
21139wx_cv_type_va_list_lvalue=no
21140fi
21141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142fi
21143
21144
21145fi
21146echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21147echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21148
21149 if test $wx_cv_type_va_list_lvalue != "yes"; then
21150 cat >>confdefs.h <<\_ACEOF
21151#define VA_LIST_IS_ARRAY 1
21152_ACEOF
21153
21154 fi
21155fi
21156
a848cd7e
SC
21157# Check whether --enable-largefile or --disable-largefile was given.
21158if test "${enable_largefile+set}" = set; then
21159 enableval="$enable_largefile"
21160
21161fi;
21162if test "$enable_largefile" != no; then
21163 wx_largefile=no
21164
21165 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21166echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21167if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169else
21170
21171 cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177#define _FILE_OFFSET_BITS 64
21178 #include <sys/types.h>
21179int
21180main ()
21181{
21182typedef struct {
21183 unsigned int field: sizeof(off_t) == 8;
21184} wxlf;
21185
21186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest.$ac_objext
21191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21192 (eval $ac_compile) 2>conftest.er1
a848cd7e 21193 ac_status=$?
ac1cb8d3
VS
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
a848cd7e
SC
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
be665c07
JS
21199 { ac_try='test -z "$ac_c_werror_flag"
21200 || test ! -s conftest.err'
ac1cb8d3
VS
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_cv_sys_file_offset_bits=64
21213else
21214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217ac_cv_sys_file_offset_bits=no
21218fi
ac1cb8d3 21219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21220
21221
21222fi
21223echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21224echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21225
21226 if test "$ac_cv_sys_file_offset_bits" != no; then
21227 wx_largefile=yes
21228 cat >>confdefs.h <<_ACEOF
21229#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21230_ACEOF
21231
21232 fi
21233
21234 if test "x$wx_largefile" != "xyes"; then
21235
21236 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21237echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21238if test "${ac_cv_sys_large_files+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21240else
21241
21242 cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h. */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h. */
21248#define _LARGE_FILES 1
21249 #include <sys/types.h>
21250int
21251main ()
21252{
21253typedef struct {
21254 unsigned int field: sizeof(off_t) == 8;
21255} wxlf;
21256
21257 ;
21258 return 0;
21259}
21260_ACEOF
21261rm -f conftest.$ac_objext
21262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21263 (eval $ac_compile) 2>conftest.er1
a848cd7e 21264 ac_status=$?
ac1cb8d3
VS
21265 grep -v '^ *+' conftest.er1 >conftest.err
21266 rm -f conftest.er1
21267 cat conftest.err >&5
a848cd7e
SC
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
be665c07
JS
21270 { ac_try='test -z "$ac_c_werror_flag"
21271 || test ! -s conftest.err'
ac1cb8d3
VS
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; } &&
21277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; }; then
21283 ac_cv_sys_large_files=1
21284else
21285 echo "$as_me: failed program was:" >&5
21286sed 's/^/| /' conftest.$ac_ext >&5
21287
21288ac_cv_sys_large_files=no
21289fi
ac1cb8d3 21290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21291
21292
21293fi
21294echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21295echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21296
21297 if test "$ac_cv_sys_large_files" != no; then
21298 wx_largefile=yes
21299 cat >>confdefs.h <<_ACEOF
21300#define _LARGE_FILES $ac_cv_sys_large_files
21301_ACEOF
21302
21303 fi
21304
21305 fi
21306
21307 echo "$as_me:$LINENO: checking if large file support is available" >&5
21308echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21309 if test "x$wx_largefile" = "xyes"; then
21310 cat >>confdefs.h <<\_ACEOF
21311#define HAVE_LARGEFILE_SUPPORT 1
21312_ACEOF
21313
21314 fi
21315 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21316echo "${ECHO_T}$wx_largefile" >&6
21317fi
21318
5b674b9d
DE
21319
21320if test "x$wx_largefile" = "xyes"; then
21321 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21322 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21323
21324 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21325 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21326echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21327if test "${wx_cv_STDC_EXT_required+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21329else
21330
21331
21332
21333 ac_ext=cc
21334ac_cpp='$CXXCPP $CPPFLAGS'
21335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21338
21339 cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h. */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h. */
21345
21346int
21347main ()
21348{
21349
21350 #ifndef __STDC_EXT__
21351 choke me
21352 #endif
21353
21354 ;
21355 return 0;
21356}
21357_ACEOF
21358rm -f conftest.$ac_objext
21359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
be665c07
JS
21367 { ac_try='test -z "$ac_cxx_werror_flag"
21368 || test ! -s conftest.err'
00421666
MW
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 wx_cv_STDC_EXT_required=no
21381else
21382 echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
21385wx_cv_STDC_EXT_required=yes
21386
21387fi
21388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21389 ac_ext=c
21390ac_cpp='$CPP $CPPFLAGS'
21391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21393ac_compiler_gnu=$ac_cv_c_compiler_gnu
21394
21395
21396
21397fi
21398echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21399echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21400 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21401 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21402 fi
21403 fi
5b674b9d
DE
21404 else
21405 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21406 fi
21407 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21408echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21409if test "${ac_cv_sys_largefile_source+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411else
21412 while :; do
21413 ac_cv_sys_largefile_source=no
21414 cat >conftest.$ac_ext <<_ACEOF
21415/* confdefs.h. */
21416_ACEOF
21417cat confdefs.h >>conftest.$ac_ext
21418cat >>conftest.$ac_ext <<_ACEOF
21419/* end confdefs.h. */
21420#include <stdio.h>
21421int
21422main ()
21423{
21424return !fseeko;
21425 ;
21426 return 0;
21427}
21428_ACEOF
21429rm -f conftest.$ac_objext
21430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21431 (eval $ac_compile) 2>conftest.er1
21432 ac_status=$?
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
be665c07
JS
21438 { ac_try='test -z "$ac_c_werror_flag"
21439 || test ! -s conftest.err'
5294a27e
VZ
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } &&
21445 { ac_try='test -s conftest.$ac_objext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 break
21452else
21453 echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456fi
21457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21458 cat >conftest.$ac_ext <<_ACEOF
21459/* confdefs.h. */
21460_ACEOF
21461cat confdefs.h >>conftest.$ac_ext
21462cat >>conftest.$ac_ext <<_ACEOF
21463/* end confdefs.h. */
21464#define _LARGEFILE_SOURCE 1
21465#include <stdio.h>
21466int
21467main ()
21468{
21469return !fseeko;
21470 ;
21471 return 0;
21472}
21473_ACEOF
21474rm -f conftest.$ac_objext
21475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21476 (eval $ac_compile) 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
be665c07
JS
21483 { ac_try='test -z "$ac_c_werror_flag"
21484 || test ! -s conftest.err'
5294a27e
VZ
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; } &&
21490 { ac_try='test -s conftest.$ac_objext'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; }; then
21496 ac_cv_sys_largefile_source=1; break
21497else
21498 echo "$as_me: failed program was:" >&5
21499sed 's/^/| /' conftest.$ac_ext >&5
21500
21501fi
21502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21503 break
21504done
21505fi
21506echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21507echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21508if test "$ac_cv_sys_largefile_source" != no; then
21509
21510cat >>confdefs.h <<_ACEOF
21511#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21512_ACEOF
21513
21514fi
21515rm -f conftest*
21516
21517# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21518# in glibc 2.1.3, but that breaks too many other things.
21519# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21520echo "$as_me:$LINENO: checking for fseeko" >&5
21521echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21522if test "${ac_cv_func_fseeko+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525 cat >conftest.$ac_ext <<_ACEOF
21526/* confdefs.h. */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h. */
21531#include <stdio.h>
21532int
21533main ()
21534{
21535return fseeko && fseeko (stdin, 0, 0);
21536 ;
21537 return 0;
21538}
21539_ACEOF
21540rm -f conftest.$ac_objext conftest$ac_exeext
21541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21542 (eval $ac_link) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
be665c07
JS
21549 { ac_try='test -z "$ac_c_werror_flag"
21550 || test ! -s conftest.err'
5294a27e
VZ
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try='test -s conftest$ac_exeext'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_func_fseeko=yes
21563else
21564 echo "$as_me: failed program was:" >&5
21565sed 's/^/| /' conftest.$ac_ext >&5
21566
21567ac_cv_func_fseeko=no
21568fi
21569rm -f conftest.err conftest.$ac_objext \
21570 conftest$ac_exeext conftest.$ac_ext
21571fi
21572echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21573echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21574if test $ac_cv_func_fseeko = yes; then
21575
21576cat >>confdefs.h <<\_ACEOF
21577#define HAVE_FSEEKO 1
21578_ACEOF
21579
21580fi
21581
5b674b9d
DE
21582 if test "$ac_cv_sys_largefile_source" != no; then
21583 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
21584 fi
21585 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21586fi
21587
21588echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21589echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21590if test "${ac_cv_c_bigendian+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21592else
21593 ac_cv_c_bigendian=unknown
21594# See if sys/param.h defines the BYTE_ORDER macro.
21595cat >conftest.$ac_ext <<_ACEOF
21596/* confdefs.h. */
21597_ACEOF
21598cat confdefs.h >>conftest.$ac_ext
21599cat >>conftest.$ac_ext <<_ACEOF
21600/* end confdefs.h. */
21601#include <sys/types.h>
21602#include <sys/param.h>
21603int
21604main ()
21605{
21606
21607#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21608 bogus endian macros
21609#endif
21610 ;
21611 return 0;
21612}
21613_ACEOF
21614rm -f conftest.$ac_objext
21615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21616 (eval $ac_compile) 2>conftest.er1
a848cd7e 21617 ac_status=$?
ac1cb8d3
VS
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
a848cd7e
SC
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
be665c07
JS
21623 { ac_try='test -z "$ac_c_werror_flag"
21624 || test ! -s conftest.err'
ac1cb8d3
VS
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 # It does; now see whether it defined to BIG_ENDIAN or not.
21637cat >conftest.$ac_ext <<_ACEOF
21638/* confdefs.h. */
21639_ACEOF
21640cat confdefs.h >>conftest.$ac_ext
21641cat >>conftest.$ac_ext <<_ACEOF
21642/* end confdefs.h. */
21643#include <sys/types.h>
21644#include <sys/param.h>
21645int
21646main ()
21647{
21648
21649#if BYTE_ORDER != BIG_ENDIAN
21650 not big endian
21651#endif
21652 ;
21653 return 0;
21654}
21655_ACEOF
21656rm -f conftest.$ac_objext
21657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21658 (eval $ac_compile) 2>conftest.er1
a848cd7e 21659 ac_status=$?
ac1cb8d3
VS
21660 grep -v '^ *+' conftest.er1 >conftest.err
21661 rm -f conftest.er1
21662 cat conftest.err >&5
a848cd7e
SC
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } &&
be665c07
JS
21665 { ac_try='test -z "$ac_c_werror_flag"
21666 || test ! -s conftest.err'
ac1cb8d3
VS
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; } &&
21672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 ac_cv_c_bigendian=yes
21679else
21680 echo "$as_me: failed program was:" >&5
21681sed 's/^/| /' conftest.$ac_ext >&5
21682
21683ac_cv_c_bigendian=no
21684fi
ac1cb8d3 21685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21686else
21687 echo "$as_me: failed program was:" >&5
21688sed 's/^/| /' conftest.$ac_ext >&5
21689
21690fi
ac1cb8d3 21691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21692if test $ac_cv_c_bigendian = unknown; then
21693if test "$cross_compiling" = yes; then
21694 ac_cv_c_bigendian=unknown
21695else
21696 cat >conftest.$ac_ext <<_ACEOF
21697/* confdefs.h. */
21698_ACEOF
21699cat confdefs.h >>conftest.$ac_ext
21700cat >>conftest.$ac_ext <<_ACEOF
21701/* end confdefs.h. */
21702main () {
21703 /* Are we little or big endian? From Harbison&Steele. */
21704 union
21705 {
21706 long l;
21707 char c[sizeof (long)];
21708 } u;
21709 u.l = 1;
21710 exit (u.c[sizeof (long) - 1] == 1);
21711}
21712_ACEOF
21713rm -f conftest$ac_exeext
21714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_cv_c_bigendian=no
21725else
21726 echo "$as_me: program exited with status $ac_status" >&5
21727echo "$as_me: failed program was:" >&5
21728sed 's/^/| /' conftest.$ac_ext >&5
21729
21730( exit $ac_status )
21731ac_cv_c_bigendian=yes
21732fi
ac1cb8d3 21733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21734fi
21735fi
21736fi
21737echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21738echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21739if test $ac_cv_c_bigendian = unknown; then
21740 { 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
21741echo "$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;}
21742fi
21743if test $ac_cv_c_bigendian = yes; then
21744 cat >>confdefs.h <<\_ACEOF
21745#define WORDS_BIGENDIAN 1
21746_ACEOF
21747
21748fi
21749
21750
21751ac_ext=cc
21752ac_cpp='$CXXCPP $CPPFLAGS'
21753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21756echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21757echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21758if test -z "$CXXCPP"; then
21759 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21761else
21762 # Double quotes because CXXCPP needs to be expanded
21763 for CXXCPP in "$CXX -E" "/lib/cpp"
21764 do
21765 ac_preproc_ok=false
21766for ac_cxx_preproc_warn_flag in '' yes
21767do
21768 # Use a header file that comes with gcc, so configuring glibc
21769 # with a fresh cross-compiler works.
21770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771 # <limits.h> exists even on freestanding compilers.
21772 # On the NeXT, cc -E runs the code through the compiler's parser,
21773 # not just through cpp. "Syntax error" is here to catch this case.
21774 cat >conftest.$ac_ext <<_ACEOF
21775/* confdefs.h. */
21776_ACEOF
21777cat confdefs.h >>conftest.$ac_ext
21778cat >>conftest.$ac_ext <<_ACEOF
21779/* end confdefs.h. */
21780#ifdef __STDC__
21781# include <limits.h>
21782#else
21783# include <assert.h>
21784#endif
ac1cb8d3 21785 Syntax error
a848cd7e
SC
21786_ACEOF
21787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } >/dev/null; then
21795 if test -s conftest.err; then
21796 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21797 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21798 else
21799 ac_cpp_err=
21800 fi
21801else
21802 ac_cpp_err=yes
21803fi
21804if test -z "$ac_cpp_err"; then
21805 :
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 # Broken: fails on valid input.
21811continue
21812fi
21813rm -f conftest.err conftest.$ac_ext
21814
21815 # OK, works on sane cases. Now check whether non-existent headers
21816 # can be detected and how.
21817 cat >conftest.$ac_ext <<_ACEOF
21818/* confdefs.h. */
21819_ACEOF
21820cat confdefs.h >>conftest.$ac_ext
21821cat >>conftest.$ac_ext <<_ACEOF
21822/* end confdefs.h. */
21823#include <ac_nonexistent.h>
21824_ACEOF
21825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21827 ac_status=$?
21828 grep -v '^ *+' conftest.er1 >conftest.err
21829 rm -f conftest.er1
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } >/dev/null; then
21833 if test -s conftest.err; then
21834 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21835 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21836 else
21837 ac_cpp_err=
21838 fi
21839else
21840 ac_cpp_err=yes
21841fi
21842if test -z "$ac_cpp_err"; then
21843 # Broken: success on invalid input.
21844continue
21845else
21846 echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 # Passes both tests.
21850ac_preproc_ok=:
21851break
21852fi
21853rm -f conftest.err conftest.$ac_ext
21854
21855done
21856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21857rm -f conftest.err conftest.$ac_ext
21858if $ac_preproc_ok; then
21859 break
21860fi
21861
21862 done
21863 ac_cv_prog_CXXCPP=$CXXCPP
21864
21865fi
21866 CXXCPP=$ac_cv_prog_CXXCPP
21867else
21868 ac_cv_prog_CXXCPP=$CXXCPP
21869fi
21870echo "$as_me:$LINENO: result: $CXXCPP" >&5
21871echo "${ECHO_T}$CXXCPP" >&6
21872ac_preproc_ok=false
21873for ac_cxx_preproc_warn_flag in '' yes
21874do
21875 # Use a header file that comes with gcc, so configuring glibc
21876 # with a fresh cross-compiler works.
21877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21878 # <limits.h> exists even on freestanding compilers.
21879 # On the NeXT, cc -E runs the code through the compiler's parser,
21880 # not just through cpp. "Syntax error" is here to catch this case.
21881 cat >conftest.$ac_ext <<_ACEOF
21882/* confdefs.h. */
21883_ACEOF
21884cat confdefs.h >>conftest.$ac_ext
21885cat >>conftest.$ac_ext <<_ACEOF
21886/* end confdefs.h. */
21887#ifdef __STDC__
21888# include <limits.h>
21889#else
21890# include <assert.h>
21891#endif
ac1cb8d3 21892 Syntax error
a848cd7e
SC
21893_ACEOF
21894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21896 ac_status=$?
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } >/dev/null; then
21902 if test -s conftest.err; then
21903 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21905 else
21906 ac_cpp_err=
21907 fi
21908else
21909 ac_cpp_err=yes
21910fi
21911if test -z "$ac_cpp_err"; then
21912 :
21913else
21914 echo "$as_me: failed program was:" >&5
21915sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 # Broken: fails on valid input.
21918continue
21919fi
21920rm -f conftest.err conftest.$ac_ext
21921
21922 # OK, works on sane cases. Now check whether non-existent headers
21923 # can be detected and how.
21924 cat >conftest.$ac_ext <<_ACEOF
21925/* confdefs.h. */
21926_ACEOF
21927cat confdefs.h >>conftest.$ac_ext
21928cat >>conftest.$ac_ext <<_ACEOF
21929/* end confdefs.h. */
21930#include <ac_nonexistent.h>
21931_ACEOF
21932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21934 ac_status=$?
21935 grep -v '^ *+' conftest.er1 >conftest.err
21936 rm -f conftest.er1
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } >/dev/null; then
21940 if test -s conftest.err; then
21941 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21943 else
21944 ac_cpp_err=
21945 fi
21946else
21947 ac_cpp_err=yes
21948fi
21949if test -z "$ac_cpp_err"; then
21950 # Broken: success on invalid input.
21951continue
21952else
21953 echo "$as_me: failed program was:" >&5
21954sed 's/^/| /' conftest.$ac_ext >&5
21955
21956 # Passes both tests.
21957ac_preproc_ok=:
21958break
21959fi
21960rm -f conftest.err conftest.$ac_ext
21961
21962done
21963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21964rm -f conftest.err conftest.$ac_ext
21965if $ac_preproc_ok; then
21966 :
21967else
21968 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21969See \`config.log' for more details." >&5
21970echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21971See \`config.log' for more details." >&2;}
21972 { (exit 1); exit 1; }; }
21973fi
21974
21975ac_ext=cc
21976ac_cpp='$CXXCPP $CPPFLAGS'
21977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21980
21981
21982
21983
21984
21985 ac_ext=cc
21986ac_cpp='$CXXCPP $CPPFLAGS'
21987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21990
21991
21992
21993for ac_header in iostream
21994do
21995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21996if eval "test \"\${$as_ac_Header+set}\" = set"; then
21997 echo "$as_me:$LINENO: checking for $ac_header" >&5
21998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21999if eval "test \"\${$as_ac_Header+set}\" = set"; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22001fi
22002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22004else
22005 # Is the header compilable?
22006echo "$as_me:$LINENO: checking $ac_header usability" >&5
22007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22008cat >conftest.$ac_ext <<_ACEOF
22009/* confdefs.h. */
22010_ACEOF
22011cat confdefs.h >>conftest.$ac_ext
22012cat >>conftest.$ac_ext <<_ACEOF
22013/* end confdefs.h. */
22014$ac_includes_default
22015#include <$ac_header>
22016_ACEOF
22017rm -f conftest.$ac_objext
22018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22019 (eval $ac_compile) 2>conftest.er1
a848cd7e 22020 ac_status=$?
ac1cb8d3
VS
22021 grep -v '^ *+' conftest.er1 >conftest.err
22022 rm -f conftest.er1
22023 cat conftest.err >&5
a848cd7e
SC
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } &&
be665c07
JS
22026 { ac_try='test -z "$ac_cxx_werror_flag"
22027 || test ! -s conftest.err'
ac1cb8d3
VS
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; } &&
22033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; }; then
22039 ac_header_compiler=yes
22040else
22041 echo "$as_me: failed program was:" >&5
22042sed 's/^/| /' conftest.$ac_ext >&5
22043
22044ac_header_compiler=no
22045fi
ac1cb8d3 22046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22048echo "${ECHO_T}$ac_header_compiler" >&6
22049
22050# Is the header present?
22051echo "$as_me:$LINENO: checking $ac_header presence" >&5
22052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22053cat >conftest.$ac_ext <<_ACEOF
22054/* confdefs.h. */
22055_ACEOF
22056cat confdefs.h >>conftest.$ac_ext
22057cat >>conftest.$ac_ext <<_ACEOF
22058/* end confdefs.h. */
22059#include <$ac_header>
22060_ACEOF
22061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } >/dev/null; then
22069 if test -s conftest.err; then
22070 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22072 else
22073 ac_cpp_err=
22074 fi
22075else
22076 ac_cpp_err=yes
22077fi
22078if test -z "$ac_cpp_err"; then
22079 ac_header_preproc=yes
22080else
22081 echo "$as_me: failed program was:" >&5
22082sed 's/^/| /' conftest.$ac_ext >&5
22083
22084 ac_header_preproc=no
22085fi
22086rm -f conftest.err conftest.$ac_ext
22087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22088echo "${ECHO_T}$ac_header_preproc" >&6
22089
22090# So? What about this header?
ac1cb8d3
VS
22091case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22092 yes:no: )
a848cd7e
SC
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22097 ac_header_preproc=yes
a848cd7e 22098 ;;
ac1cb8d3 22099 no:yes:* )
a848cd7e
SC
22100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22112 (
22113 cat <<\_ASBOX
ac1cb8d3
VS
22114## ----------------------------------------- ##
22115## Report this to wx-dev@lists.wxwidgets.org ##
22116## ----------------------------------------- ##
a848cd7e
SC
22117_ASBOX
22118 ) |
22119 sed "s/^/$as_me: WARNING: /" >&2
22120 ;;
22121esac
22122echo "$as_me:$LINENO: checking for $ac_header" >&5
22123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22124if eval "test \"\${$as_ac_Header+set}\" = set"; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126else
ac1cb8d3 22127 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22128fi
22129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22131
22132fi
22133if test `eval echo '${'$as_ac_Header'}'` = yes; then
22134 cat >>confdefs.h <<_ACEOF
22135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22136_ACEOF
22137
22138fi
22139
22140done
22141
22142
22143 if test "$ac_cv_header_iostream" = "yes" ; then
22144 :
22145 else
22146 cat >>confdefs.h <<\_ACEOF
22147#define wxUSE_IOSTREAMH 1
22148_ACEOF
22149
22150 fi
22151
22152 ac_ext=c
22153ac_cpp='$CPP $CPPFLAGS'
22154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22156ac_compiler_gnu=$ac_cv_c_compiler_gnu
22157
22158
22159
22160
22161 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22162echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22163if test "${wx_cv_cpp_bool+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22165else
22166
22167
22168
22169 ac_ext=cc
22170ac_cpp='$CXXCPP $CPPFLAGS'
22171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22174
22175
22176 cat >conftest.$ac_ext <<_ACEOF
22177/* confdefs.h. */
22178_ACEOF
22179cat confdefs.h >>conftest.$ac_ext
22180cat >>conftest.$ac_ext <<_ACEOF
22181/* end confdefs.h. */
22182
22183
22184int
22185main ()
22186{
22187
22188 bool b = true;
22189
22190 return 0;
22191
22192 ;
22193 return 0;
22194}
22195_ACEOF
22196rm -f conftest.$ac_objext
22197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22198 (eval $ac_compile) 2>conftest.er1
a848cd7e 22199 ac_status=$?
ac1cb8d3
VS
22200 grep -v '^ *+' conftest.er1 >conftest.err
22201 rm -f conftest.er1
22202 cat conftest.err >&5
a848cd7e
SC
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } &&
be665c07
JS
22205 { ac_try='test -z "$ac_cxx_werror_flag"
22206 || test ! -s conftest.err'
ac1cb8d3
VS
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; } &&
22212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214 (eval $ac_try) 2>&5
22215 ac_status=$?
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); }; }; then
22218
22219 wx_cv_cpp_bool=yes
22220
22221else
22222 echo "$as_me: failed program was:" >&5
22223sed 's/^/| /' conftest.$ac_ext >&5
22224
22225
22226 wx_cv_cpp_bool=no
22227
22228
22229fi
ac1cb8d3 22230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22231
22232 ac_ext=c
22233ac_cpp='$CPP $CPPFLAGS'
22234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22236ac_compiler_gnu=$ac_cv_c_compiler_gnu
22237
22238
22239fi
22240echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22241echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22242
22243 if test "$wx_cv_cpp_bool" = "yes"; then
22244 cat >>confdefs.h <<\_ACEOF
22245#define HAVE_BOOL 1
22246_ACEOF
22247
22248 fi
22249
22250
22251
22252 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22253echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22254if test "${wx_cv_explicit+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256else
22257
22258
22259
22260 ac_ext=cc
22261ac_cpp='$CXXCPP $CPPFLAGS'
22262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22265
22266
22267 cat >conftest.$ac_ext <<_ACEOF
22268/* confdefs.h. */
22269_ACEOF
22270cat confdefs.h >>conftest.$ac_ext
22271cat >>conftest.$ac_ext <<_ACEOF
22272/* end confdefs.h. */
22273
22274 class Foo { public: explicit Foo(int) {} };
22275
22276int
22277main ()
22278{
22279
22280 return 0;
22281
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286rm -f conftest.$ac_objext
22287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22288 (eval $ac_compile) 2>conftest.er1
a848cd7e 22289 ac_status=$?
ac1cb8d3
VS
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
a848cd7e
SC
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
be665c07
JS
22295 { ac_try='test -z "$ac_cxx_werror_flag"
22296 || test ! -s conftest.err'
ac1cb8d3
VS
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308
22309 cat >conftest.$ac_ext <<_ACEOF
22310/* confdefs.h. */
22311_ACEOF
22312cat confdefs.h >>conftest.$ac_ext
22313cat >>conftest.$ac_ext <<_ACEOF
22314/* end confdefs.h. */
22315
22316 class Foo { public: explicit Foo(int) {} };
22317 static void TakeFoo(const Foo& foo) { }
22318
22319int
22320main ()
22321{
22322
22323 TakeFoo(17);
22324 return 0;
22325
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330rm -f conftest.$ac_objext
22331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22332 (eval $ac_compile) 2>conftest.er1
a848cd7e 22333 ac_status=$?
ac1cb8d3
VS
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
a848cd7e
SC
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } &&
be665c07
JS
22339 { ac_try='test -z "$ac_cxx_werror_flag"
22340 || test ! -s conftest.err'
ac1cb8d3
VS
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 wx_cv_explicit=no
22353else
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357wx_cv_explicit=yes
22358
22359fi
ac1cb8d3 22360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22361
22362else
22363 echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
22365
22366wx_cv_explicit=no
22367
22368fi
ac1cb8d3 22369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22370
22371 ac_ext=c
22372ac_cpp='$CPP $CPPFLAGS'
22373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22375ac_compiler_gnu=$ac_cv_c_compiler_gnu
22376
22377
22378fi
22379echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22380echo "${ECHO_T}$wx_cv_explicit" >&6
22381
22382 if test "$wx_cv_explicit" = "yes"; then
22383 cat >>confdefs.h <<\_ACEOF
22384#define HAVE_EXPLICIT 1
22385_ACEOF
22386
22387 fi
22388
22389
22390echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22391echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22392if test "${ac_cv_cxx_const_cast+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22394else
22395
22396
22397 ac_ext=cc
22398ac_cpp='$CXXCPP $CPPFLAGS'
22399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22402
22403 cat >conftest.$ac_ext <<_ACEOF
22404/* confdefs.h. */
22405_ACEOF
22406cat confdefs.h >>conftest.$ac_ext
22407cat >>conftest.$ac_ext <<_ACEOF
22408/* end confdefs.h. */
22409
22410int
22411main ()
22412{
22413int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22414 ;
22415 return 0;
22416}
22417_ACEOF
22418rm -f conftest.$ac_objext
22419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22420 (eval $ac_compile) 2>conftest.er1
a848cd7e 22421 ac_status=$?
ac1cb8d3
VS
22422 grep -v '^ *+' conftest.er1 >conftest.err
22423 rm -f conftest.er1
22424 cat conftest.err >&5
a848cd7e
SC
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
be665c07
JS
22427 { ac_try='test -z "$ac_cxx_werror_flag"
22428 || test ! -s conftest.err'
ac1cb8d3
VS
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; } &&
22434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }; then
22440 ac_cv_cxx_const_cast=yes
22441else
22442 echo "$as_me: failed program was:" >&5
22443sed 's/^/| /' conftest.$ac_ext >&5
22444
22445ac_cv_cxx_const_cast=no
22446fi
ac1cb8d3 22447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22448 ac_ext=c
22449ac_cpp='$CPP $CPPFLAGS'
22450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22452ac_compiler_gnu=$ac_cv_c_compiler_gnu
22453
22454
22455fi
22456echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22457echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22458if test "$ac_cv_cxx_const_cast" = yes; then
22459
22460cat >>confdefs.h <<\_ACEOF
22461#define HAVE_CONST_CAST
22462_ACEOF
22463
22464fi
22465
7714864e
RL
22466echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22467echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22468if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22470else
22471
22472
22473 ac_ext=cc
22474ac_cpp='$CXXCPP $CPPFLAGS'
22475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22478
22479 cat >conftest.$ac_ext <<_ACEOF
22480/* confdefs.h. */
22481_ACEOF
22482cat confdefs.h >>conftest.$ac_ext
22483cat >>conftest.$ac_ext <<_ACEOF
22484/* end confdefs.h. */
22485#include <typeinfo>
22486class Base { public : Base () {} virtual void f () = 0;};
22487class Derived : public Base { public : Derived () {} virtual void f () {} };
22488class Unrelated { public : Unrelated () {} };
22489int g (Unrelated&) { return 0; }
22490int
22491main ()
22492{
22493
22494Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22495 ;
22496 return 0;
22497}
22498_ACEOF
22499rm -f conftest.$ac_objext
22500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22501 (eval $ac_compile) 2>conftest.er1
22502 ac_status=$?
22503 grep -v '^ *+' conftest.er1 >conftest.err
22504 rm -f conftest.er1
22505 cat conftest.err >&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } &&
be665c07
JS
22508 { ac_try='test -z "$ac_cxx_werror_flag"
22509 || test ! -s conftest.err'
7714864e
RL
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22512 ac_status=$?
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; } &&
22515 { ac_try='test -s conftest.$ac_objext'
22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22518 ac_status=$?
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 ac_cv_cxx_reinterpret_cast=yes
22522else
22523 echo "$as_me: failed program was:" >&5
22524sed 's/^/| /' conftest.$ac_ext >&5
22525
22526ac_cv_cxx_reinterpret_cast=no
22527fi
22528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22529 ac_ext=c
22530ac_cpp='$CPP $CPPFLAGS'
22531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22533ac_compiler_gnu=$ac_cv_c_compiler_gnu
22534
22535
22536fi
22537echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22538echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22539if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22540
22541cat >>confdefs.h <<\_ACEOF
22542#define HAVE_REINTERPRET_CAST
22543_ACEOF
22544
22545fi
22546
a848cd7e
SC
22547echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22548echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22549if test "${ac_cv_cxx_static_cast+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551else
22552
22553
22554 ac_ext=cc
22555ac_cpp='$CXXCPP $CPPFLAGS'
22556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22559
22560 cat >conftest.$ac_ext <<_ACEOF
22561/* confdefs.h. */
22562_ACEOF
22563cat confdefs.h >>conftest.$ac_ext
22564cat >>conftest.$ac_ext <<_ACEOF
22565/* end confdefs.h. */
22566#include <typeinfo>
22567class Base { public : Base () {} virtual void f () = 0; };
22568class Derived : public Base { public : Derived () {} virtual void f () {} };
22569int g (Derived&) { return 0; }
22570int
22571main ()
22572{
22573
22574Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22575 ;
22576 return 0;
22577}
22578_ACEOF
22579rm -f conftest.$ac_objext
22580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22581 (eval $ac_compile) 2>conftest.er1
a848cd7e 22582 ac_status=$?
ac1cb8d3
VS
22583 grep -v '^ *+' conftest.er1 >conftest.err
22584 rm -f conftest.er1
22585 cat conftest.err >&5
a848cd7e
SC
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } &&
be665c07
JS
22588 { ac_try='test -z "$ac_cxx_werror_flag"
22589 || test ! -s conftest.err'
ac1cb8d3
VS
22590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22591 (eval $ac_try) 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; } &&
22595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 ac_cv_cxx_static_cast=yes
22602else
22603 echo "$as_me: failed program was:" >&5
22604sed 's/^/| /' conftest.$ac_ext >&5
22605
22606ac_cv_cxx_static_cast=no
22607fi
ac1cb8d3 22608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22609 ac_ext=c
22610ac_cpp='$CPP $CPPFLAGS'
22611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22613ac_compiler_gnu=$ac_cv_c_compiler_gnu
22614
22615
22616fi
22617echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22618echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22619if test "$ac_cv_cxx_static_cast" = yes; then
22620
22621cat >>confdefs.h <<\_ACEOF
22622#define HAVE_STATIC_CAST
22623_ACEOF
22624
22625fi
22626
22627
3c28b7cb
MW
22628if test "x$SUNCXX" = xyes; then
22629 CXXFLAGS="$CXXFLAGS -features=tmplife"
22630fi
22631
9122d155
VZ
22632if test "x$SUNCC" = xyes; then
22633 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22634fi
22635
0ad5d837
VZ
22636if test "x$SGICC" = "xyes"; then
22637 CFLAGS="$CFLAGS -woff 3970"
22638fi
22639if test "x$SGICXX" = "xyes"; then
22640 CXXFLAGS="$CXXFLAGS -woff 3970"
22641fi
22642
2eef8513
VZ
22643if test "x$HPCC" = "xyes"; then
22644 CFLAGS="$CFLAGS +W 2011,2450"
22645fi
22646if test "x$HPCXX" = "xyes"; then
22647 CXXFLAGS="$CXXFLAGS +W 2340"
22648fi
22649
22650if test "x$COMPAQCXX" = "xyes"; then
22651 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22652fi
22653
f56c22b4 22654if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22655 ac_ext=cc
22656ac_cpp='$CXXCPP $CPPFLAGS'
22657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22660
22661
f56c22b4
MW
22662 if test "$wxUSE_UNICODE" = "yes"; then
22663 std_string="std::wstring"
22664 char_type="wchar_t"
22665 else
22666 std_string="std::string"
22667 char_type="char"
22668 fi
22669
22670 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22671echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22672 cat >conftest.$ac_ext <<_ACEOF
22673/* confdefs.h. */
22674_ACEOF
22675cat confdefs.h >>conftest.$ac_ext
22676cat >>conftest.$ac_ext <<_ACEOF
22677/* end confdefs.h. */
22678#include <string>
a848cd7e
SC
22679int
22680main ()
22681{
f56c22b4 22682$std_string foo;
a848cd7e
SC
22683 ;
22684 return 0;
22685}
22686_ACEOF
22687rm -f conftest.$ac_objext
22688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22689 (eval $ac_compile) 2>conftest.er1
a848cd7e 22690 ac_status=$?
ac1cb8d3
VS
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
a848cd7e
SC
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
be665c07
JS
22696 { ac_try='test -z "$ac_cxx_werror_flag"
22697 || test ! -s conftest.err'
ac1cb8d3
VS
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 echo "$as_me:$LINENO: result: yes" >&5
22710echo "${ECHO_T}yes" >&6
0a08f02a
MB
22711 cat >>confdefs.h <<\_ACEOF
22712#define HAVE_STD_WSTRING 1
22713_ACEOF
22714
a848cd7e
SC
22715else
22716 echo "$as_me: failed program was:" >&5
22717sed 's/^/| /' conftest.$ac_ext >&5
22718
22719echo "$as_me:$LINENO: result: no" >&5
22720echo "${ECHO_T}no" >&6
f56c22b4
MW
22721 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22722echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22723 cat >conftest.$ac_ext <<_ACEOF
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
22729
22730 #ifdef HAVE_WCHAR_H
22731 # ifdef __CYGWIN__
22732 # include <stddef.h>
22733 # endif
22734 # include <wchar.h>
22735 #endif
22736 #ifdef HAVE_STDLIB_H
22737 # include <stdlib.h>
22738 #endif
22739 #include <stdio.h>
22740 #include <string>
22741
22742int
22743main ()
22744{
f56c22b4
MW
22745std::basic_string<$char_type> foo;
22746 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext
22752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753 (eval $ac_compile) 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
be665c07
JS
22760 { ac_try='test -z "$ac_cxx_werror_flag"
22761 || test ! -s conftest.err'
0a08f02a
MB
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 echo "$as_me:$LINENO: result: yes" >&5
22774echo "${ECHO_T}yes" >&6
22775else
22776 echo "$as_me: failed program was:" >&5
22777sed 's/^/| /' conftest.$ac_ext >&5
22778
22779echo "$as_me:$LINENO: result: no" >&5
22780echo "${ECHO_T}no" >&6
f56c22b4 22781 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22782 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22783echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22784 { (exit 1); exit 1; }; }
22785 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22786 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22787echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22788 { (exit 1); exit 1; }; }
f56c22b4
MW
22789 else
22790 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22791echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22792 wxUSE_STD_STRING=no
22793 fi
22794
0a08f02a 22795
a848cd7e 22796fi
ac1cb8d3 22797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22798
0a08f02a
MB
22799fi
22800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22801
22802 ac_ext=c
22803ac_cpp='$CPP $CPPFLAGS'
22804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22806ac_compiler_gnu=$ac_cv_c_compiler_gnu
22807
22808fi
22809
22810if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22811 ac_ext=cc
22812ac_cpp='$CXXCPP $CPPFLAGS'
22813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22816
22817
22818 echo "$as_me:$LINENO: checking for std::istream" >&5
22819echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22820if test "${ac_cv_type_std__istream+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22822else
22823 cat >conftest.$ac_ext <<_ACEOF
22824/* confdefs.h. */
22825_ACEOF
22826cat confdefs.h >>conftest.$ac_ext
22827cat >>conftest.$ac_ext <<_ACEOF
22828/* end confdefs.h. */
22829#include <iostream>
22830
22831int
22832main ()
22833{
22834if ((std::istream *) 0)
22835 return 0;
22836if (sizeof (std::istream))
22837 return 0;
22838 ;
22839 return 0;
22840}
22841_ACEOF
22842rm -f conftest.$ac_objext
22843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22844 (eval $ac_compile) 2>conftest.er1
22845 ac_status=$?
22846 grep -v '^ *+' conftest.er1 >conftest.err
22847 rm -f conftest.er1
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } &&
be665c07
JS
22851 { ac_try='test -z "$ac_cxx_werror_flag"
22852 || test ! -s conftest.err'
f56c22b4
MW
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest.$ac_objext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 ac_cv_type_std__istream=yes
22865else
22866 echo "$as_me: failed program was:" >&5
22867sed 's/^/| /' conftest.$ac_ext >&5
22868
22869ac_cv_type_std__istream=no
22870fi
22871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22872fi
22873echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22874echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22875if test $ac_cv_type_std__istream = yes; then
22876
22877cat >>confdefs.h <<_ACEOF
22878#define HAVE_STD__ISTREAM 1
22879_ACEOF
22880
22881
22882else
22883 wxUSE_STD_IOSTREAM=no
22884fi
22885echo "$as_me:$LINENO: checking for std::ostream" >&5
22886echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22887if test "${ac_cv_type_std__ostream+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889else
22890 cat >conftest.$ac_ext <<_ACEOF
22891/* confdefs.h. */
22892_ACEOF
22893cat confdefs.h >>conftest.$ac_ext
22894cat >>conftest.$ac_ext <<_ACEOF
22895/* end confdefs.h. */
22896#include <iostream>
22897
22898int
22899main ()
22900{
22901if ((std::ostream *) 0)
22902 return 0;
22903if (sizeof (std::ostream))
22904 return 0;
22905 ;
22906 return 0;
22907}
22908_ACEOF
22909rm -f conftest.$ac_objext
22910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22911 (eval $ac_compile) 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } &&
be665c07
JS
22918 { ac_try='test -z "$ac_cxx_werror_flag"
22919 || test ! -s conftest.err'
f56c22b4
MW
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22922 ac_status=$?
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; } &&
22925 { ac_try='test -s conftest.$ac_objext'
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 ac_cv_type_std__ostream=yes
22932else
22933 echo "$as_me: failed program was:" >&5
22934sed 's/^/| /' conftest.$ac_ext >&5
22935
22936ac_cv_type_std__ostream=no
22937fi
22938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22939fi
22940echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22941echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22942if test $ac_cv_type_std__ostream = yes; then
22943
22944cat >>confdefs.h <<_ACEOF
22945#define HAVE_STD__OSTREAM 1
22946_ACEOF
22947
22948
22949else
22950 wxUSE_STD_IOSTREAM=no
22951fi
22952
22953
22954 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22955 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22956 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22957echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22958 { (exit 1); exit 1; }; }
22959 else
22960 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22961echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22962 fi
f56c22b4
MW
22963 fi
22964
22965 ac_ext=c
22966ac_cpp='$CPP $CPPFLAGS'
22967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22969ac_compiler_gnu=$ac_cv_c_compiler_gnu
22970
22971fi
22972
22973if test "$wxUSE_STL" = "yes"; then
22974 ac_ext=cc
22975ac_cpp='$CXXCPP $CPPFLAGS'
22976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22979
22980
22981 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22982echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22983 cat >conftest.$ac_ext <<_ACEOF
22984/* confdefs.h. */
22985_ACEOF
22986cat confdefs.h >>conftest.$ac_ext
22987cat >>conftest.$ac_ext <<_ACEOF
22988/* end confdefs.h. */
22989#include <string>
0a08f02a
MB
22990 #include <functional>
22991 #include <algorithm>
22992 #include <vector>
22993 #include <list>
a848cd7e
SC
22994int
22995main ()
22996{
0a08f02a
MB
22997std::vector<int> moo;
22998 std::list<int> foo;
22999 std::vector<int>::iterator it =
23000 std::find_if(moo.begin(), moo.end(),
23001 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23002 ;
23003 return 0;
23004}
23005_ACEOF
23006rm -f conftest.$ac_objext
23007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23008 (eval $ac_compile) 2>conftest.er1
a848cd7e 23009 ac_status=$?
ac1cb8d3
VS
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
a848cd7e
SC
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
be665c07
JS
23015 { ac_try='test -z "$ac_cxx_werror_flag"
23016 || test ! -s conftest.err'
ac1cb8d3
VS
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 echo "$as_me:$LINENO: result: yes" >&5
23029echo "${ECHO_T}yes" >&6
a848cd7e
SC
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034echo "$as_me:$LINENO: result: no" >&5
23035echo "${ECHO_T}no" >&6
0a08f02a
MB
23036 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23037echo "$as_me: error: Basic STL functionality missing" >&2;}
23038 { (exit 1); exit 1; }; }
a848cd7e 23039fi
ac1cb8d3 23040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23041
23042 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23043echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23044 cat >conftest.$ac_ext <<_ACEOF
23045/* confdefs.h. */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h. */
23050#include <string>
23051int
23052main ()
23053{
23054std::string foo, bar;
23055 foo.compare(bar);
23056 foo.compare(1, 1, bar);
23057 foo.compare(1, 1, bar, 1, 1);
23058 foo.compare("");
23059 foo.compare(1, 1, "");
23060 foo.compare(1, 1, "", 2);
23061 ;
23062 return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext
23066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23067 (eval $ac_compile) 2>conftest.er1
a848cd7e 23068 ac_status=$?
ac1cb8d3
VS
23069 grep -v '^ *+' conftest.er1 >conftest.err
23070 rm -f conftest.er1
23071 cat conftest.err >&5
a848cd7e
SC
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
be665c07
JS
23074 { ac_try='test -z "$ac_cxx_werror_flag"
23075 || test ! -s conftest.err'
ac1cb8d3
VS
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 echo "$as_me:$LINENO: result: yes" >&5
23088echo "${ECHO_T}yes" >&6
23089 cat >>confdefs.h <<\_ACEOF
23090#define HAVE_STD_STRING_COMPARE 1
23091_ACEOF
23092
23093else
23094 echo "$as_me: failed program was:" >&5
23095sed 's/^/| /' conftest.$ac_ext >&5
23096
23097echo "$as_me:$LINENO: result: no" >&5
23098echo "${ECHO_T}no" >&6
23099fi
ac1cb8d3 23100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23101
23102 if test "${ac_cv_header_hash_map+set}" = set; then
23103 echo "$as_me:$LINENO: checking for hash_map" >&5
23104echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23105if test "${ac_cv_header_hash_map+set}" = set; then
23106 echo $ECHO_N "(cached) $ECHO_C" >&6
23107fi
23108echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23109echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23110else
23111 # Is the header compilable?
23112echo "$as_me:$LINENO: checking hash_map usability" >&5
23113echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23114cat >conftest.$ac_ext <<_ACEOF
23115/* confdefs.h. */
23116_ACEOF
23117cat confdefs.h >>conftest.$ac_ext
23118cat >>conftest.$ac_ext <<_ACEOF
23119/* end confdefs.h. */
23120$ac_includes_default
23121#include <hash_map>
23122_ACEOF
23123rm -f conftest.$ac_objext
23124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23125 (eval $ac_compile) 2>conftest.er1
bdcade0a 23126 ac_status=$?
ac1cb8d3
VS
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
bdcade0a
MB
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
be665c07
JS
23132 { ac_try='test -z "$ac_cxx_werror_flag"
23133 || test ! -s conftest.err'
ac1cb8d3
VS
23134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135 (eval $ac_try) 2>&5
23136 ac_status=$?
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); }; } &&
23139 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141 (eval $ac_try) 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; }; then
23145 ac_header_compiler=yes
23146else
23147 echo "$as_me: failed program was:" >&5
23148sed 's/^/| /' conftest.$ac_ext >&5
23149
23150ac_header_compiler=no
23151fi
ac1cb8d3 23152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23154echo "${ECHO_T}$ac_header_compiler" >&6
23155
23156# Is the header present?
23157echo "$as_me:$LINENO: checking hash_map presence" >&5
23158echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23159cat >conftest.$ac_ext <<_ACEOF
23160/* confdefs.h. */
23161_ACEOF
23162cat confdefs.h >>conftest.$ac_ext
23163cat >>conftest.$ac_ext <<_ACEOF
23164/* end confdefs.h. */
23165#include <hash_map>
23166_ACEOF
23167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } >/dev/null; then
23175 if test -s conftest.err; then
23176 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23177 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23178 else
23179 ac_cpp_err=
23180 fi
23181else
23182 ac_cpp_err=yes
23183fi
23184if test -z "$ac_cpp_err"; then
23185 ac_header_preproc=yes
23186else
23187 echo "$as_me: failed program was:" >&5
23188sed 's/^/| /' conftest.$ac_ext >&5
23189
23190 ac_header_preproc=no
23191fi
23192rm -f conftest.err conftest.$ac_ext
23193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23194echo "${ECHO_T}$ac_header_preproc" >&6
23195
23196# So? What about this header?
ac1cb8d3
VS
23197case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23198 yes:no: )
bdcade0a
MB
23199 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23200echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23201 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23202echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23203 ac_header_preproc=yes
bdcade0a 23204 ;;
ac1cb8d3 23205 no:yes:* )
bdcade0a
MB
23206 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23207echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23208 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23209echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23210 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23211echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23212 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23213echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23214 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23215echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23216 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23217echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23218 (
23219 cat <<\_ASBOX
ac1cb8d3
VS
23220## ----------------------------------------- ##
23221## Report this to wx-dev@lists.wxwidgets.org ##
23222## ----------------------------------------- ##
bdcade0a
MB
23223_ASBOX
23224 ) |
23225 sed "s/^/$as_me: WARNING: /" >&2
23226 ;;
23227esac
23228echo "$as_me:$LINENO: checking for hash_map" >&5
23229echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23230if test "${ac_cv_header_hash_map+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23232else
23233 ac_cv_header_hash_map=$ac_header_preproc
23234fi
23235echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23236echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23237
23238fi
23239if test $ac_cv_header_hash_map = yes; then
23240 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23241echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
23248#include <hash_map>
23249 #include <hash_set>
23250int
23251main ()
23252{
23253std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23254 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23255 ;
23256 return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext
23260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23261 (eval $ac_compile) 2>conftest.er1
bdcade0a 23262 ac_status=$?
ac1cb8d3
VS
23263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
bdcade0a
MB
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
be665c07
JS
23268 { ac_try='test -z "$ac_cxx_werror_flag"
23269 || test ! -s conftest.err'
ac1cb8d3
VS
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 echo "$as_me:$LINENO: result: yes" >&5
23282echo "${ECHO_T}yes" >&6
23283 cat >>confdefs.h <<\_ACEOF
23284#define HAVE_HASH_MAP 1
23285_ACEOF
23286
23287 cat >>confdefs.h <<\_ACEOF
23288#define HAVE_STD_HASH_MAP 1
23289_ACEOF
23290
23291else
23292 echo "$as_me: failed program was:" >&5
23293sed 's/^/| /' conftest.$ac_ext >&5
23294
23295echo "$as_me:$LINENO: result: no" >&5
23296echo "${ECHO_T}no" >&6
23297fi
ac1cb8d3 23298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23299
23300fi
23301
23302
23303
23304 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23305 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23306echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23307if test "${ac_cv_header_ext_hash_map+set}" = set; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
23309fi
23310echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23311echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23312else
23313 # Is the header compilable?
23314echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23315echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23316cat >conftest.$ac_ext <<_ACEOF
23317/* confdefs.h. */
23318_ACEOF
23319cat confdefs.h >>conftest.$ac_ext
23320cat >>conftest.$ac_ext <<_ACEOF
23321/* end confdefs.h. */
23322$ac_includes_default
23323#include <ext/hash_map>
23324_ACEOF
23325rm -f conftest.$ac_objext
23326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23327 (eval $ac_compile) 2>conftest.er1
bdcade0a 23328 ac_status=$?
ac1cb8d3
VS
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
bdcade0a
MB
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
be665c07
JS
23334 { ac_try='test -z "$ac_cxx_werror_flag"
23335 || test ! -s conftest.err'
ac1cb8d3
VS
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_header_compiler=yes
23348else
23349 echo "$as_me: failed program was:" >&5
23350sed 's/^/| /' conftest.$ac_ext >&5
23351
23352ac_header_compiler=no
23353fi
ac1cb8d3 23354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23356echo "${ECHO_T}$ac_header_compiler" >&6
23357
23358# Is the header present?
23359echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23360echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23361cat >conftest.$ac_ext <<_ACEOF
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
23367#include <ext/hash_map>
23368_ACEOF
23369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23371 ac_status=$?
23372 grep -v '^ *+' conftest.er1 >conftest.err
23373 rm -f conftest.er1
23374 cat conftest.err >&5
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } >/dev/null; then
23377 if test -s conftest.err; then
23378 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23380 else
23381 ac_cpp_err=
23382 fi
23383else
23384 ac_cpp_err=yes
23385fi
23386if test -z "$ac_cpp_err"; then
23387 ac_header_preproc=yes
23388else
23389 echo "$as_me: failed program was:" >&5
23390sed 's/^/| /' conftest.$ac_ext >&5
23391
23392 ac_header_preproc=no
23393fi
23394rm -f conftest.err conftest.$ac_ext
23395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23396echo "${ECHO_T}$ac_header_preproc" >&6
23397
23398# So? What about this header?
ac1cb8d3
VS
23399case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23400 yes:no: )
bdcade0a
MB
23401 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23402echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23403 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23404echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23405 ac_header_preproc=yes
bdcade0a 23406 ;;
ac1cb8d3 23407 no:yes:* )
bdcade0a
MB
23408 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23409echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23410 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23411echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23412 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23413echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23414 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23415echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23416 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23417echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23418 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23419echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23420 (
23421 cat <<\_ASBOX
ac1cb8d3
VS
23422## ----------------------------------------- ##
23423## Report this to wx-dev@lists.wxwidgets.org ##
23424## ----------------------------------------- ##
bdcade0a
MB
23425_ASBOX
23426 ) |
23427 sed "s/^/$as_me: WARNING: /" >&2
23428 ;;
23429esac
23430echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23431echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23432if test "${ac_cv_header_ext_hash_map+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23434else
23435 ac_cv_header_ext_hash_map=$ac_header_preproc
23436fi
23437echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23438echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23439
23440fi
23441if test $ac_cv_header_ext_hash_map = yes; then
23442 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23443echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23444 cat >conftest.$ac_ext <<_ACEOF
23445/* confdefs.h. */
23446_ACEOF
23447cat confdefs.h >>conftest.$ac_ext
23448cat >>conftest.$ac_ext <<_ACEOF
23449/* end confdefs.h. */
23450#include <ext/hash_map>
23451 #include <ext/hash_set>
23452int
23453main ()
23454{
23455__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23456 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23457 ;
23458 return 0;
23459}
23460_ACEOF
23461rm -f conftest.$ac_objext
23462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23463 (eval $ac_compile) 2>conftest.er1
bdcade0a 23464 ac_status=$?
ac1cb8d3
VS
23465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
bdcade0a
MB
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } &&
be665c07
JS
23470 { ac_try='test -z "$ac_cxx_werror_flag"
23471 || test ! -s conftest.err'
ac1cb8d3
VS
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; } &&
23477 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; }; then
23483 echo "$as_me:$LINENO: result: yes" >&5
23484echo "${ECHO_T}yes" >&6
23485 cat >>confdefs.h <<\_ACEOF
23486#define HAVE_EXT_HASH_MAP 1
23487_ACEOF
23488
23489 cat >>confdefs.h <<\_ACEOF
23490#define HAVE_GNU_CXX_HASH_MAP 1
23491_ACEOF
23492
23493else
23494 echo "$as_me: failed program was:" >&5
23495sed 's/^/| /' conftest.$ac_ext >&5
23496
23497echo "$as_me:$LINENO: result: no" >&5
23498echo "${ECHO_T}no" >&6
23499fi
ac1cb8d3 23500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23501
23502fi
23503
23504
a848cd7e
SC
23505
23506 ac_ext=c
23507ac_cpp='$CPP $CPPFLAGS'
23508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23510ac_compiler_gnu=$ac_cv_c_compiler_gnu
23511
23512fi
23513
23514
23515SEARCH_INCLUDE="\
23516 /usr/local/include \
23517 \
23518 /usr/Motif-2.1/include \
23519 /usr/Motif-1.2/include \
23520 /usr/include/Motif1.2 \
a848cd7e
SC
23521 \
23522 /usr/dt/include \
23523 /usr/openwin/include \
23524 \
23525 /usr/include/Xm \
23526 \
23527 /usr/X11R6/include \
23528 /usr/X11R6.4/include \
23529 /usr/X11R5/include \
23530 /usr/X11R4/include \
23531 \
23532 /usr/include/X11R6 \
23533 /usr/include/X11R5 \
23534 /usr/include/X11R4 \
23535 \
23536 /usr/local/X11R6/include \
23537 /usr/local/X11R5/include \
23538 /usr/local/X11R4/include \
23539 \
23540 /usr/local/include/X11R6 \
23541 /usr/local/include/X11R5 \
23542 /usr/local/include/X11R4 \
23543 \
23544 /usr/X11/include \
23545 /usr/include/X11 \
23546 /usr/local/X11/include \
23547 /usr/local/include/X11 \
23548 \
a848cd7e 23549 /usr/XFree86/include/X11 \
e051b34e
MW
23550 /usr/pkg/include \
23551 \
a848cd7e
SC
23552 /usr/openwin/share/include"
23553
6f9cf1e6 23554echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23555echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23556
23557case "${host}" in
23558 *-*-irix6* )
23559 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561else
23562
c687b303
VZ
23563 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23564 for e in a so sl dylib dll.a; do
23565 libc="$d/libc.$e"
23566 if test -f $libc; then
23567 save_LIBS="$LIBS"
23568 LIBS="$libc"
23569 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23570int main() { return 0; }
23571_ACEOF
23572rm -f conftest.$ac_objext conftest$ac_exeext
23573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23574 (eval $ac_link) 2>conftest.er1
23575 ac_status=$?
23576 grep -v '^ *+' conftest.er1 >conftest.err
23577 rm -f conftest.er1
23578 cat conftest.err >&5
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } &&
be665c07
JS
23581 { ac_try='test -z "$ac_c_werror_flag"
23582 || test ! -s conftest.err'
0ad5d837
VZ
23583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584 (eval $ac_try) 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest$ac_exeext'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
23594 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23595else
23596 echo "$as_me: failed program was:" >&5
23597sed 's/^/| /' conftest.$ac_ext >&5
23598
23599fi
23600rm -f conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23602 LIBS="$save_LIBS"
23603 if test "x$wx_cv_std_libpath" != "x"; then
23604 break 2
23605 fi
23606 fi
23607 done
23608 done
23609 if test "x$wx_cv_std_libpath" = "x"; then
23610 wx_cv_std_libpath="lib"
0ad5d837 23611 fi
0ad5d837
VZ
23612
23613
23614fi
6f9cf1e6
MW
23615
23616 ;;
23617
23618 *-*-solaris2* )
23619 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23620 wx_cv_std_libpath="lib/64"
23621 else
23622 wx_cv_std_libpath="lib"
23623 fi
23624 ;;
23625
23626 *-*-linux* )
23627 if test "$ac_cv_sizeof_void_p" = 8 -a \
23628 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23629 wx_cv_std_libpath="lib64"
23630 else
23631 wx_cv_std_libpath="lib"
23632 fi
c687b303
VZ
23633 ;;
23634
23635 *)
23636 wx_cv_std_libpath="lib";
23637 ;;
23638esac
0ad5d837 23639
6f9cf1e6
MW
23640echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23641echo "${ECHO_T}$wx_cv_std_libpath" >&6
23642
23643SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23644
3eca31dc
MW
23645if test "$build" != "$host" -a "$GCC" = yes; then
23646 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23647 cross_root=`dirname $cross_root`
23648 cross_root=`dirname $cross_root`
23649
23650 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23651 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23652 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23653
23654 if test -z "$PKG_CONFIG_PATH"; then
23655 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23656 export PKG_CONFIG_PATH
23657 fi
23658
23659 if test -z "$x_includes" -o "$x_includes" = NONE; then
23660
23661ac_find_includes=
23662for ac_dir in $SEARCH_INCLUDE /usr/include;
23663 do
23664 if test -f "$ac_dir/X11/Intrinsic.h"; then
23665 ac_find_includes=$ac_dir
23666 break
23667 fi
23668 done
23669
23670 x_includes=$ac_find_includes
23671 fi
23672 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23673
0ad5d837
VZ
23674 ac_find_libraries=
23675 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23676 do
23677 for ac_extension in a so sl dylib dll.a; do
23678 if test -f "$ac_dir/libXt.$ac_extension"; then
23679 ac_find_libraries=$ac_dir
23680 break 2
23681 fi
23682 done
23683 done
23684
23685 x_libraries=$ac_find_libraries
23686 fi
23687 fi
23688fi
23689
a848cd7e
SC
23690
23691cat >confcache <<\_ACEOF
23692# This file is a shell script that caches the results of configure
23693# tests run on this system so they can be shared between configure
23694# scripts and configure runs, see configure's option --config-cache.
23695# It is not useful on other systems. If it contains results you don't
23696# want to keep, you may remove or edit it.
23697#
23698# config.status only pays attention to the cache file if you give it
23699# the --recheck option to rerun configure.
23700#
23701# `ac_cv_env_foo' variables (set or unset) will be overridden when
23702# loading this file, other *unset* `ac_cv_foo' will be assigned the
23703# following values.
23704
23705_ACEOF
23706
23707# The following way of writing the cache mishandles newlines in values,
23708# but we know of no workaround that is simple, portable, and efficient.
23709# So, don't put newlines in cache variables' values.
23710# Ultrix sh set writes to stderr and can't be redirected directly,
23711# and sets the high bit in the cache file unless we assign to the vars.
23712{
23713 (set) 2>&1 |
23714 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23715 *ac_space=\ *)
23716 # `set' does not quote correctly, so add quotes (double-quote
23717 # substitution turns \\\\ into \\, and sed turns \\ into \).
23718 sed -n \
ac1cb8d3
VS
23719 "s/'/'\\\\''/g;
23720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23721 ;;
23722 *)
23723 # `set' quotes correctly as required by POSIX, so do not add quotes.
23724 sed -n \
ac1cb8d3 23725 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23726 ;;
23727 esac;
23728} |
23729 sed '
23730 t clear
23731 : clear
23732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23733 t end
23734 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23735 : end' >>confcache
23736if diff $cache_file confcache >/dev/null 2>&1; then :; else
23737 if test -w $cache_file; then
23738 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23739 cat confcache >$cache_file
23740 else
23741 echo "not updating unwritable cache $cache_file"
23742 fi
23743fi
23744rm -f confcache
23745
23746if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23747 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23748echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23749if test "${wx_cv_lib_glibc21+set}" = set; then
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23751else
23752
23753 cat >conftest.$ac_ext <<_ACEOF
23754/* confdefs.h. */
23755_ACEOF
23756cat confdefs.h >>conftest.$ac_ext
23757cat >>conftest.$ac_ext <<_ACEOF
23758/* end confdefs.h. */
23759#include <features.h>
23760int
23761main ()
23762{
23763
23764 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23765 not glibc 2.1
a848cd7e
SC
23766 #endif
23767
23768 ;
23769 return 0;
23770}
23771_ACEOF
23772rm -f conftest.$ac_objext
23773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23774 (eval $ac_compile) 2>conftest.er1
a848cd7e 23775 ac_status=$?
ac1cb8d3
VS
23776 grep -v '^ *+' conftest.er1 >conftest.err
23777 rm -f conftest.er1
23778 cat conftest.err >&5
a848cd7e
SC
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } &&
be665c07
JS
23781 { ac_try='test -z "$ac_c_werror_flag"
23782 || test ! -s conftest.err'
ac1cb8d3
VS
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23785 ac_status=$?
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; } &&
23788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23791 ac_status=$?
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; }; then
23794
23795 wx_cv_lib_glibc21=yes
23796
23797else
23798 echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
23801
23802 wx_cv_lib_glibc21=no
23803
23804
23805fi
ac1cb8d3 23806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23807
23808fi
23809echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23810echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23811 if test "$wx_cv_lib_glibc21" = "yes"; then
23812 cat >>confdefs.h <<\_ACEOF
23813#define wxHAVE_GLIBC2 1
23814_ACEOF
23815
23816 fi
23817fi
23818
23819if test "x$wx_cv_lib_glibc21" = "xyes"; then
23820 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23821 cat >>confdefs.h <<\_ACEOF
23822#define _GNU_SOURCE 1
23823_ACEOF
23824
23825 fi
23826fi
23827
23828
23829
23830if test "$wxUSE_REGEX" != "no"; then
23831 cat >>confdefs.h <<\_ACEOF
23832#define wxUSE_REGEX 1
23833_ACEOF
23834
23835
23836 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23837 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23838echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23839 wxUSE_REGEX=builtin
23840 fi
23841
23842 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23843 if test "${ac_cv_header_regex_h+set}" = set; then
23844 echo "$as_me:$LINENO: checking for regex.h" >&5
23845echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23846if test "${ac_cv_header_regex_h+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23848fi
23849echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23850echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23851else
23852 # Is the header compilable?
23853echo "$as_me:$LINENO: checking regex.h usability" >&5
23854echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23855cat >conftest.$ac_ext <<_ACEOF
23856/* confdefs.h. */
23857_ACEOF
23858cat confdefs.h >>conftest.$ac_ext
23859cat >>conftest.$ac_ext <<_ACEOF
23860/* end confdefs.h. */
23861$ac_includes_default
23862#include <regex.h>
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); } &&
be665c07
JS
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 ac_header_compiler=yes
23887else
23888 echo "$as_me: failed program was:" >&5
23889sed 's/^/| /' conftest.$ac_ext >&5
23890
23891ac_header_compiler=no
23892fi
ac1cb8d3 23893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23895echo "${ECHO_T}$ac_header_compiler" >&6
23896
23897# Is the header present?
23898echo "$as_me:$LINENO: checking regex.h presence" >&5
23899echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23900cat >conftest.$ac_ext <<_ACEOF
23901/* confdefs.h. */
23902_ACEOF
23903cat confdefs.h >>conftest.$ac_ext
23904cat >>conftest.$ac_ext <<_ACEOF
23905/* end confdefs.h. */
23906#include <regex.h>
23907_ACEOF
23908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23910 ac_status=$?
23911 grep -v '^ *+' conftest.er1 >conftest.err
23912 rm -f conftest.er1
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } >/dev/null; then
23916 if test -s conftest.err; then
23917 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23919 else
23920 ac_cpp_err=
23921 fi
23922else
23923 ac_cpp_err=yes
23924fi
23925if test -z "$ac_cpp_err"; then
23926 ac_header_preproc=yes
23927else
23928 echo "$as_me: failed program was:" >&5
23929sed 's/^/| /' conftest.$ac_ext >&5
23930
23931 ac_header_preproc=no
23932fi
23933rm -f conftest.err conftest.$ac_ext
23934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23935echo "${ECHO_T}$ac_header_preproc" >&6
23936
23937# So? What about this header?
ac1cb8d3
VS
23938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23939 yes:no: )
a848cd7e
SC
23940 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23941echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23942 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23943echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23944 ac_header_preproc=yes
a848cd7e 23945 ;;
ac1cb8d3 23946 no:yes:* )
a848cd7e
SC
23947 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23948echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23949 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23950echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23951 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23952echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23953 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23954echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23955 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23956echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23957 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23958echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23959 (
23960 cat <<\_ASBOX
ac1cb8d3
VS
23961## ----------------------------------------- ##
23962## Report this to wx-dev@lists.wxwidgets.org ##
23963## ----------------------------------------- ##
a848cd7e
SC
23964_ASBOX
23965 ) |
23966 sed "s/^/$as_me: WARNING: /" >&2
23967 ;;
23968esac
23969echo "$as_me:$LINENO: checking for regex.h" >&5
23970echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23971if test "${ac_cv_header_regex_h+set}" = set; then
23972 echo $ECHO_N "(cached) $ECHO_C" >&6
23973else
23974 ac_cv_header_regex_h=$ac_header_preproc
23975fi
23976echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23977echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23978
23979fi
23980if test $ac_cv_header_regex_h = yes; then
23981
ab0f0edd
MW
23982
23983for ac_func in regcomp re_search
a848cd7e
SC
23984do
23985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23986echo "$as_me:$LINENO: checking for $ac_func" >&5
23987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23988if eval "test \"\${$as_ac_var+set}\" = set"; then
23989 echo $ECHO_N "(cached) $ECHO_C" >&6
23990else
23991 cat >conftest.$ac_ext <<_ACEOF
23992/* confdefs.h. */
23993_ACEOF
23994cat confdefs.h >>conftest.$ac_ext
23995cat >>conftest.$ac_ext <<_ACEOF
23996/* end confdefs.h. */
ac1cb8d3
VS
23997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23999#define $ac_func innocuous_$ac_func
24000
a848cd7e
SC
24001/* System header to define __stub macros and hopefully few prototypes,
24002 which can conflict with char $ac_func (); below.
24003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24004 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24005
a848cd7e
SC
24006#ifdef __STDC__
24007# include <limits.h>
24008#else
24009# include <assert.h>
24010#endif
ac1cb8d3
VS
24011
24012#undef $ac_func
24013
a848cd7e
SC
24014/* Override any gcc2 internal prototype to avoid an error. */
24015#ifdef __cplusplus
24016extern "C"
24017{
24018#endif
24019/* We use char because int might match the return type of a gcc2
24020 builtin and then its argument prototype would still apply. */
24021char $ac_func ();
24022/* The GNU C library defines this for functions which it implements
24023 to always fail with ENOSYS. Some functions are actually named
24024 something starting with __ and the normal name is an alias. */
24025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24026choke me
24027#else
24028char (*f) () = $ac_func;
24029#endif
24030#ifdef __cplusplus
24031}
24032#endif
24033
24034int
24035main ()
24036{
24037return f != $ac_func;
24038 ;
24039 return 0;
24040}
24041_ACEOF
24042rm -f conftest.$ac_objext conftest$ac_exeext
24043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24044 (eval $ac_link) 2>conftest.er1
a848cd7e 24045 ac_status=$?
ac1cb8d3
VS
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
a848cd7e
SC
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } &&
be665c07
JS
24051 { ac_try='test -z "$ac_c_werror_flag"
24052 || test ! -s conftest.err'
ac1cb8d3
VS
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24055 ac_status=$?
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; } &&
24058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; }; then
24064 eval "$as_ac_var=yes"
24065else
24066 echo "$as_me: failed program was:" >&5
24067sed 's/^/| /' conftest.$ac_ext >&5
24068
24069eval "$as_ac_var=no"
24070fi
ac1cb8d3
VS
24071rm -f conftest.err conftest.$ac_objext \
24072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24073fi
24074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24076if test `eval echo '${'$as_ac_var'}'` = yes; then
24077 cat >>confdefs.h <<_ACEOF
24078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24079_ACEOF
24080
24081fi
24082done
24083
24084fi
24085
24086
24087
24088 if test "x$ac_cv_func_regcomp" != "xyes"; then
24089 if test "$wxUSE_REGEX" = "sys" ; then
24090 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24091echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24092 { (exit 1); exit 1; }; }
24093 else
24094 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24095echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24096 wxUSE_REGEX=builtin
24097 fi
24098 else
24099 wxUSE_REGEX=sys
24100 cat >>confdefs.h <<\_ACEOF
24101#define WX_NO_REGEX_ADVANCED 1
24102_ACEOF
24103
24104 fi
24105 fi
24106fi
24107
24108
24109ZLIB_LINK=
24110if test "$wxUSE_ZLIB" != "no" ; then
24111 cat >>confdefs.h <<\_ACEOF
24112#define wxUSE_ZLIB 1
24113_ACEOF
24114
24115
24116 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24117 if test "$USE_DARWIN" = 1; then
24118 system_zlib_h_ok="yes"
24119 else
24120 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24121echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24122if test "${ac_cv_header_zlib_h+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24124else
24125 if test "$cross_compiling" = yes; then
24126 unset ac_cv_header_zlib_h
24127
24128else
24129 cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135
24136 #include <zlib.h>
24137 #include <stdio.h>
24138
24139 int main()
24140 {
24141 FILE *f=fopen("conftestval", "w");
24142 if (!f) exit(1);
24143 fprintf(f, "%s",
24144 ZLIB_VERSION[0] == '1' &&
24145 (ZLIB_VERSION[2] > '1' ||
24146 (ZLIB_VERSION[2] == '1' &&
24147 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24148 exit(0);
24149 }
24150
24151_ACEOF
24152rm -f conftest$ac_exeext
24153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24154 (eval $ac_link) 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24160 ac_status=$?
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 ac_cv_header_zlib_h=`cat conftestval`
24164else
24165 echo "$as_me: program exited with status $ac_status" >&5
24166echo "$as_me: failed program was:" >&5
24167sed 's/^/| /' conftest.$ac_ext >&5
24168
24169( exit $ac_status )
24170ac_cv_header_zlib_h=no
24171fi
ac1cb8d3 24172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24173fi
24174
24175fi
24176echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24177echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24178 if test "${ac_cv_header_zlib_h+set}" = set; then
24179 echo "$as_me:$LINENO: checking for zlib.h" >&5
24180echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24181if test "${ac_cv_header_zlib_h+set}" = set; then
24182 echo $ECHO_N "(cached) $ECHO_C" >&6
24183fi
24184echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24185echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24186else
24187 # Is the header compilable?
24188echo "$as_me:$LINENO: checking zlib.h usability" >&5
24189echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24190cat >conftest.$ac_ext <<_ACEOF
24191/* confdefs.h. */
24192_ACEOF
24193cat confdefs.h >>conftest.$ac_ext
24194cat >>conftest.$ac_ext <<_ACEOF
24195/* end confdefs.h. */
24196$ac_includes_default
24197#include <zlib.h>
24198_ACEOF
24199rm -f conftest.$ac_objext
24200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24201 (eval $ac_compile) 2>conftest.er1
a848cd7e 24202 ac_status=$?
ac1cb8d3
VS
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
a848cd7e
SC
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } &&
be665c07
JS
24208 { ac_try='test -z "$ac_c_werror_flag"
24209 || test ! -s conftest.err'
ac1cb8d3
VS
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; } &&
24215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24218 ac_status=$?
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 ac_header_compiler=yes
24222else
24223 echo "$as_me: failed program was:" >&5
24224sed 's/^/| /' conftest.$ac_ext >&5
24225
24226ac_header_compiler=no
24227fi
ac1cb8d3 24228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24230echo "${ECHO_T}$ac_header_compiler" >&6
24231
24232# Is the header present?
24233echo "$as_me:$LINENO: checking zlib.h presence" >&5
24234echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24235cat >conftest.$ac_ext <<_ACEOF
24236/* confdefs.h. */
24237_ACEOF
24238cat confdefs.h >>conftest.$ac_ext
24239cat >>conftest.$ac_ext <<_ACEOF
24240/* end confdefs.h. */
24241#include <zlib.h>
24242_ACEOF
24243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24245 ac_status=$?
24246 grep -v '^ *+' conftest.er1 >conftest.err
24247 rm -f conftest.er1
24248 cat conftest.err >&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } >/dev/null; then
24251 if test -s conftest.err; then
24252 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24254 else
24255 ac_cpp_err=
24256 fi
24257else
24258 ac_cpp_err=yes
24259fi
24260if test -z "$ac_cpp_err"; then
24261 ac_header_preproc=yes
24262else
24263 echo "$as_me: failed program was:" >&5
24264sed 's/^/| /' conftest.$ac_ext >&5
24265
24266 ac_header_preproc=no
24267fi
24268rm -f conftest.err conftest.$ac_ext
24269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24270echo "${ECHO_T}$ac_header_preproc" >&6
24271
24272# So? What about this header?
ac1cb8d3
VS
24273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24274 yes:no: )
a848cd7e
SC
24275 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24276echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24277 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24278echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24279 ac_header_preproc=yes
a848cd7e 24280 ;;
ac1cb8d3 24281 no:yes:* )
a848cd7e
SC
24282 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24283echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24284 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24285echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24286 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24287echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24288 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24289echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24290 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24291echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24292 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24293echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24294 (
24295 cat <<\_ASBOX
ac1cb8d3
VS
24296## ----------------------------------------- ##
24297## Report this to wx-dev@lists.wxwidgets.org ##
24298## ----------------------------------------- ##
a848cd7e
SC
24299_ASBOX
24300 ) |
24301 sed "s/^/$as_me: WARNING: /" >&2
24302 ;;
24303esac
24304echo "$as_me:$LINENO: checking for zlib.h" >&5
24305echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24306if test "${ac_cv_header_zlib_h+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24308else
24309 ac_cv_header_zlib_h=$ac_header_preproc
24310fi
24311echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24312echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24313
24314fi
24315
24316
24317
24318 system_zlib_h_ok=$ac_cv_header_zlib_h
24319 fi
24320
24321 if test "$system_zlib_h_ok" = "yes"; then
24322 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24323echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24324if test "${ac_cv_lib_z_deflate+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326else
24327 ac_check_lib_save_LIBS=$LIBS
24328LIBS="-lz $LIBS"
24329cat >conftest.$ac_ext <<_ACEOF
24330/* confdefs.h. */
24331_ACEOF
24332cat confdefs.h >>conftest.$ac_ext
24333cat >>conftest.$ac_ext <<_ACEOF
24334/* end confdefs.h. */
24335
24336/* Override any gcc2 internal prototype to avoid an error. */
24337#ifdef __cplusplus
24338extern "C"
24339#endif
24340/* We use char because int might match the return type of a gcc2
24341 builtin and then its argument prototype would still apply. */
24342char deflate ();
24343int
24344main ()
24345{
24346deflate ();
24347 ;
24348 return 0;
24349}
24350_ACEOF
24351rm -f conftest.$ac_objext conftest$ac_exeext
24352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24353 (eval $ac_link) 2>conftest.er1
a848cd7e 24354 ac_status=$?
ac1cb8d3
VS
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
a848cd7e
SC
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } &&
be665c07
JS
24360 { ac_try='test -z "$ac_c_werror_flag"
24361 || test ! -s conftest.err'
ac1cb8d3
VS
24362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 ac_cv_lib_z_deflate=yes
24374else
24375 echo "$as_me: failed program was:" >&5
24376sed 's/^/| /' conftest.$ac_ext >&5
24377
24378ac_cv_lib_z_deflate=no
24379fi
ac1cb8d3
VS
24380rm -f conftest.err conftest.$ac_objext \
24381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24382LIBS=$ac_check_lib_save_LIBS
24383fi
24384echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24385echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24386if test $ac_cv_lib_z_deflate = yes; then
24387 ZLIB_LINK=" -lz"
24388fi
24389
24390 fi
24391
24392 if test "x$ZLIB_LINK" = "x" ; then
24393 if test "$wxUSE_ZLIB" = "sys" ; then
24394 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24395echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24396 { (exit 1); exit 1; }; }
24397 else
24398 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24399echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24400 wxUSE_ZLIB=builtin
24401 fi
24402 else
24403 wxUSE_ZLIB=sys
24404 fi
24405 fi
24406fi
24407
24408
24409PNG_LINK=
24410if test "$wxUSE_LIBPNG" != "no" ; then
24411 cat >>confdefs.h <<\_ACEOF
24412#define wxUSE_LIBPNG 1
24413_ACEOF
24414
24415
24416 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24417 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24418echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24419 wxUSE_LIBPNG=sys
24420 fi
24421
24422 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24423 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24424echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24425 wxUSE_LIBPNG=builtin
24426 fi
24427
24428 if test "$wxUSE_MGL" != 1 ; then
24429 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24430 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24431echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24432if test "${ac_cv_header_png_h+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24434else
24435 if test "$cross_compiling" = yes; then
24436 unset ac_cv_header_png_h
24437
24438else
24439 cat >conftest.$ac_ext <<_ACEOF
24440/* confdefs.h. */
24441_ACEOF
24442cat confdefs.h >>conftest.$ac_ext
24443cat >>conftest.$ac_ext <<_ACEOF
24444/* end confdefs.h. */
24445
24446 #include <png.h>
24447 #include <stdio.h>
24448
24449 int main()
24450 {
24451 FILE *f=fopen("conftestval", "w");
24452 if (!f) exit(1);
24453 fprintf(f, "%s",
24454 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24455 exit(0);
24456 }
24457
24458_ACEOF
24459rm -f conftest$ac_exeext
24460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24461 (eval $ac_link) 2>&5
24462 ac_status=$?
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 ac_cv_header_png_h=`cat conftestval`
24471else
24472 echo "$as_me: program exited with status $ac_status" >&5
24473echo "$as_me: failed program was:" >&5
24474sed 's/^/| /' conftest.$ac_ext >&5
24475
24476( exit $ac_status )
24477ac_cv_header_png_h=no
24478fi
ac1cb8d3 24479rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24480fi
24481
24482fi
24483echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24484echo "${ECHO_T}$ac_cv_header_png_h" >&6
24485 if test "${ac_cv_header_png_h+set}" = set; then
24486 echo "$as_me:$LINENO: checking for png.h" >&5
24487echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24488if test "${ac_cv_header_png_h+set}" = set; then
24489 echo $ECHO_N "(cached) $ECHO_C" >&6
24490fi
24491echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24492echo "${ECHO_T}$ac_cv_header_png_h" >&6
24493else
24494 # Is the header compilable?
24495echo "$as_me:$LINENO: checking png.h usability" >&5
24496echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24497cat >conftest.$ac_ext <<_ACEOF
24498/* confdefs.h. */
24499_ACEOF
24500cat confdefs.h >>conftest.$ac_ext
24501cat >>conftest.$ac_ext <<_ACEOF
24502/* end confdefs.h. */
24503$ac_includes_default
24504#include <png.h>
24505_ACEOF
24506rm -f conftest.$ac_objext
24507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24508 (eval $ac_compile) 2>conftest.er1
a848cd7e 24509 ac_status=$?
ac1cb8d3
VS
24510 grep -v '^ *+' conftest.er1 >conftest.err
24511 rm -f conftest.er1
24512 cat conftest.err >&5
a848cd7e
SC
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } &&
be665c07
JS
24515 { ac_try='test -z "$ac_c_werror_flag"
24516 || test ! -s conftest.err'
ac1cb8d3
VS
24517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518 (eval $ac_try) 2>&5
24519 ac_status=$?
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; } &&
24522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24525 ac_status=$?
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); }; }; then
24528 ac_header_compiler=yes
24529else
24530 echo "$as_me: failed program was:" >&5
24531sed 's/^/| /' conftest.$ac_ext >&5
24532
24533ac_header_compiler=no
24534fi
ac1cb8d3 24535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24537echo "${ECHO_T}$ac_header_compiler" >&6
24538
24539# Is the header present?
24540echo "$as_me:$LINENO: checking png.h presence" >&5
24541echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24542cat >conftest.$ac_ext <<_ACEOF
24543/* confdefs.h. */
24544_ACEOF
24545cat confdefs.h >>conftest.$ac_ext
24546cat >>conftest.$ac_ext <<_ACEOF
24547/* end confdefs.h. */
24548#include <png.h>
24549_ACEOF
24550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } >/dev/null; then
24558 if test -s conftest.err; then
24559 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24561 else
24562 ac_cpp_err=
24563 fi
24564else
24565 ac_cpp_err=yes
24566fi
24567if test -z "$ac_cpp_err"; then
24568 ac_header_preproc=yes
24569else
24570 echo "$as_me: failed program was:" >&5
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
24573 ac_header_preproc=no
24574fi
24575rm -f conftest.err conftest.$ac_ext
24576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24577echo "${ECHO_T}$ac_header_preproc" >&6
24578
24579# So? What about this header?
ac1cb8d3
VS
24580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24581 yes:no: )
a848cd7e
SC
24582 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24583echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24584 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24585echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24586 ac_header_preproc=yes
a848cd7e 24587 ;;
ac1cb8d3 24588 no:yes:* )
a848cd7e
SC
24589 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24590echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24591 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24592echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24594echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24596echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24597 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24598echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24599 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24600echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24601 (
24602 cat <<\_ASBOX
ac1cb8d3
VS
24603## ----------------------------------------- ##
24604## Report this to wx-dev@lists.wxwidgets.org ##
24605## ----------------------------------------- ##
a848cd7e
SC
24606_ASBOX
24607 ) |
24608 sed "s/^/$as_me: WARNING: /" >&2
24609 ;;
24610esac
24611echo "$as_me:$LINENO: checking for png.h" >&5
24612echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24613if test "${ac_cv_header_png_h+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615else
24616 ac_cv_header_png_h=$ac_header_preproc
24617fi
24618echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24619echo "${ECHO_T}$ac_cv_header_png_h" >&6
24620
24621fi
24622
24623
24624
24625 if test "$ac_cv_header_png_h" = "yes"; then
24626 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24627echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24628if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24630else
24631 ac_check_lib_save_LIBS=$LIBS
24632LIBS="-lpng -lz -lm $LIBS"
24633cat >conftest.$ac_ext <<_ACEOF
24634/* confdefs.h. */
24635_ACEOF
24636cat confdefs.h >>conftest.$ac_ext
24637cat >>conftest.$ac_ext <<_ACEOF
24638/* end confdefs.h. */
24639
24640/* Override any gcc2 internal prototype to avoid an error. */
24641#ifdef __cplusplus
24642extern "C"
24643#endif
24644/* We use char because int might match the return type of a gcc2
24645 builtin and then its argument prototype would still apply. */
24646char png_check_sig ();
24647int
24648main ()
24649{
24650png_check_sig ();
24651 ;
24652 return 0;
24653}
24654_ACEOF
24655rm -f conftest.$ac_objext conftest$ac_exeext
24656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24657 (eval $ac_link) 2>conftest.er1
a848cd7e 24658 ac_status=$?
ac1cb8d3
VS
24659 grep -v '^ *+' conftest.er1 >conftest.err
24660 rm -f conftest.er1
24661 cat conftest.err >&5
a848cd7e
SC
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } &&
be665c07
JS
24664 { ac_try='test -z "$ac_c_werror_flag"
24665 || test ! -s conftest.err'
ac1cb8d3
VS
24666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667 (eval $ac_try) 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; } &&
24671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; }; then
24677 ac_cv_lib_png_png_check_sig=yes
24678else
24679 echo "$as_me: failed program was:" >&5
24680sed 's/^/| /' conftest.$ac_ext >&5
24681
24682ac_cv_lib_png_png_check_sig=no
24683fi
ac1cb8d3
VS
24684rm -f conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24686LIBS=$ac_check_lib_save_LIBS
24687fi
24688echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24689echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24690if test $ac_cv_lib_png_png_check_sig = yes; then
24691 PNG_LINK=" -lpng -lz"
24692fi
24693
24694 fi
24695
24696 if test "x$PNG_LINK" = "x" ; then
24697 if test "$wxUSE_LIBPNG" = "sys" ; then
24698 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24699echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24700 { (exit 1); exit 1; }; }
24701 else
24702 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24703echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24704 wxUSE_LIBPNG=builtin
24705 fi
24706 else
24707 wxUSE_LIBPNG=sys
24708 fi
24709 fi
24710 fi
24711
24712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24713fi
24714
24715
24716JPEG_LINK=
24717if test "$wxUSE_LIBJPEG" != "no" ; then
24718 cat >>confdefs.h <<\_ACEOF
24719#define wxUSE_LIBJPEG 1
24720_ACEOF
24721
24722
24723 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24724 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24725echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24726 wxUSE_LIBJPEG=sys
24727 fi
24728
24729 if test "$wxUSE_MGL" != 1 ; then
24730 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24731 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24732echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24733 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24735else
24736 cat >conftest.$ac_ext <<_ACEOF
24737/* confdefs.h. */
24738_ACEOF
24739cat confdefs.h >>conftest.$ac_ext
24740cat >>conftest.$ac_ext <<_ACEOF
24741/* end confdefs.h. */
24742
24743 #undef HAVE_STDLIB_H
24744 #include <stdio.h>
24745 #include <jpeglib.h>
24746
24747int
24748main ()
24749{
24750
24751
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24758 (eval $ac_compile) 2>conftest.er1
a848cd7e 24759 ac_status=$?
ac1cb8d3
VS
24760 grep -v '^ *+' conftest.er1 >conftest.err
24761 rm -f conftest.er1
24762 cat conftest.err >&5
a848cd7e
SC
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } &&
be665c07
JS
24765 { ac_try='test -z "$ac_c_werror_flag"
24766 || test ! -s conftest.err'
ac1cb8d3
VS
24767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24768 (eval $ac_try) 2>&5
24769 ac_status=$?
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); }; } &&
24772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; }; then
24778 ac_cv_header_jpeglib_h=yes
24779else
24780 echo "$as_me: failed program was:" >&5
24781sed 's/^/| /' conftest.$ac_ext >&5
24782
24783ac_cv_header_jpeglib_h=no
24784
24785fi
ac1cb8d3 24786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24787
24788fi
24789
24790 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24791echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24792
24793 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24794 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24795echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24796if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24798else
24799 ac_check_lib_save_LIBS=$LIBS
24800LIBS="-ljpeg $LIBS"
24801cat >conftest.$ac_ext <<_ACEOF
24802/* confdefs.h. */
24803_ACEOF
24804cat confdefs.h >>conftest.$ac_ext
24805cat >>conftest.$ac_ext <<_ACEOF
24806/* end confdefs.h. */
24807
24808/* Override any gcc2 internal prototype to avoid an error. */
24809#ifdef __cplusplus
24810extern "C"
24811#endif
24812/* We use char because int might match the return type of a gcc2
24813 builtin and then its argument prototype would still apply. */
24814char jpeg_read_header ();
24815int
24816main ()
24817{
24818jpeg_read_header ();
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823rm -f conftest.$ac_objext conftest$ac_exeext
24824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24825 (eval $ac_link) 2>conftest.er1
a848cd7e 24826 ac_status=$?
ac1cb8d3
VS
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
a848cd7e
SC
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } &&
be665c07
JS
24832 { ac_try='test -z "$ac_c_werror_flag"
24833 || test ! -s conftest.err'
ac1cb8d3
VS
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } &&
24839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; }; then
24845 ac_cv_lib_jpeg_jpeg_read_header=yes
24846else
24847 echo "$as_me: failed program was:" >&5
24848sed 's/^/| /' conftest.$ac_ext >&5
24849
24850ac_cv_lib_jpeg_jpeg_read_header=no
24851fi
ac1cb8d3
VS
24852rm -f conftest.err conftest.$ac_objext \
24853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24854LIBS=$ac_check_lib_save_LIBS
24855fi
24856echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24857echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24858if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24859 JPEG_LINK=" -ljpeg"
24860fi
24861
24862 fi
24863
24864 if test "x$JPEG_LINK" = "x" ; then
24865 if test "$wxUSE_LIBJPEG" = "sys" ; then
24866 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24867echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24868 { (exit 1); exit 1; }; }
24869 else
24870 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24871echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24872 wxUSE_LIBJPEG=builtin
24873 fi
24874 else
24875 wxUSE_LIBJPEG=sys
24876 fi
24877 fi
24878 fi
24879fi
24880
24881
24882TIFF_LINK=
24883TIFF_PREREQ_LINKS=-lm
24884if test "$wxUSE_LIBTIFF" != "no" ; then
24885 cat >>confdefs.h <<\_ACEOF
24886#define wxUSE_LIBTIFF 1
24887_ACEOF
24888
24889
24890 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24891 if test "$wxUSE_LIBJPEG" = "sys"; then
24892 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24893 fi
24894 if test "$wxUSE_ZLIB" = "sys"; then
24895 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24896 fi
24897 if test "${ac_cv_header_tiffio_h+set}" = set; then
24898 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24899echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24900if test "${ac_cv_header_tiffio_h+set}" = set; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24902fi
24903echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24904echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24905else
24906 # Is the header compilable?
24907echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24908echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24909cat >conftest.$ac_ext <<_ACEOF
24910/* confdefs.h. */
24911_ACEOF
24912cat confdefs.h >>conftest.$ac_ext
24913cat >>conftest.$ac_ext <<_ACEOF
24914/* end confdefs.h. */
24915$ac_includes_default
24916#include <tiffio.h>
24917_ACEOF
24918rm -f conftest.$ac_objext
24919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24920 (eval $ac_compile) 2>conftest.er1
a848cd7e 24921 ac_status=$?
ac1cb8d3
VS
24922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
a848cd7e
SC
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
be665c07
JS
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
ac1cb8d3
VS
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_header_compiler=yes
24941else
24942 echo "$as_me: failed program was:" >&5
24943sed 's/^/| /' conftest.$ac_ext >&5
24944
24945ac_header_compiler=no
24946fi
ac1cb8d3 24947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24949echo "${ECHO_T}$ac_header_compiler" >&6
24950
24951# Is the header present?
24952echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24953echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24954cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h. */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h. */
24960#include <tiffio.h>
24961_ACEOF
24962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24964 ac_status=$?
24965 grep -v '^ *+' conftest.er1 >conftest.err
24966 rm -f conftest.er1
24967 cat conftest.err >&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } >/dev/null; then
24970 if test -s conftest.err; then
24971 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24973 else
24974 ac_cpp_err=
24975 fi
24976else
24977 ac_cpp_err=yes
24978fi
24979if test -z "$ac_cpp_err"; then
24980 ac_header_preproc=yes
24981else
24982 echo "$as_me: failed program was:" >&5
24983sed 's/^/| /' conftest.$ac_ext >&5
24984
24985 ac_header_preproc=no
24986fi
24987rm -f conftest.err conftest.$ac_ext
24988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24989echo "${ECHO_T}$ac_header_preproc" >&6
24990
24991# So? What about this header?
ac1cb8d3
VS
24992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24993 yes:no: )
a848cd7e
SC
24994 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24995echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24996 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24997echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24998 ac_header_preproc=yes
a848cd7e 24999 ;;
ac1cb8d3 25000 no:yes:* )
a848cd7e
SC
25001 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25002echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25003 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25004echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25005 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25006echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25007 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25008echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25009 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25010echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25011 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25012echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25013 (
25014 cat <<\_ASBOX
ac1cb8d3
VS
25015## ----------------------------------------- ##
25016## Report this to wx-dev@lists.wxwidgets.org ##
25017## ----------------------------------------- ##
a848cd7e
SC
25018_ASBOX
25019 ) |
25020 sed "s/^/$as_me: WARNING: /" >&2
25021 ;;
25022esac
25023echo "$as_me:$LINENO: checking for tiffio.h" >&5
25024echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25025if test "${ac_cv_header_tiffio_h+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25027else
25028 ac_cv_header_tiffio_h=$ac_header_preproc
25029fi
25030echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25031echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25032
25033fi
25034if test $ac_cv_header_tiffio_h = yes; then
25035
25036 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25037echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25038if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25039 echo $ECHO_N "(cached) $ECHO_C" >&6
25040else
25041 ac_check_lib_save_LIBS=$LIBS
25042LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25043cat >conftest.$ac_ext <<_ACEOF
25044/* confdefs.h. */
25045_ACEOF
25046cat confdefs.h >>conftest.$ac_ext
25047cat >>conftest.$ac_ext <<_ACEOF
25048/* end confdefs.h. */
25049
25050/* Override any gcc2 internal prototype to avoid an error. */
25051#ifdef __cplusplus
25052extern "C"
25053#endif
25054/* We use char because int might match the return type of a gcc2
25055 builtin and then its argument prototype would still apply. */
25056char TIFFError ();
25057int
25058main ()
25059{
25060TIFFError ();
25061 ;
25062 return 0;
25063}
25064_ACEOF
25065rm -f conftest.$ac_objext conftest$ac_exeext
25066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25067 (eval $ac_link) 2>conftest.er1
a848cd7e 25068 ac_status=$?
ac1cb8d3
VS
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
a848cd7e
SC
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
be665c07
JS
25074 { ac_try='test -z "$ac_c_werror_flag"
25075 || test ! -s conftest.err'
ac1cb8d3
VS
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; } &&
25081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); }; }; then
25087 ac_cv_lib_tiff_TIFFError=yes
25088else
25089 echo "$as_me: failed program was:" >&5
25090sed 's/^/| /' conftest.$ac_ext >&5
25091
25092ac_cv_lib_tiff_TIFFError=no
25093fi
ac1cb8d3
VS
25094rm -f conftest.err conftest.$ac_objext \
25095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25096LIBS=$ac_check_lib_save_LIBS
25097fi
25098echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25099echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25100if test $ac_cv_lib_tiff_TIFFError = yes; then
25101 TIFF_LINK=" -ltiff"
25102fi
25103
25104
25105
25106fi
25107
25108
25109
25110 if test "x$TIFF_LINK" = "x" ; then
25111 if test "$wxUSE_LIBTIFF" = "sys" ; then
25112 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25113echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25114 { (exit 1); exit 1; }; }
25115 else
25116 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25117echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25118 wxUSE_LIBTIFF=builtin
25119 fi
25120 else
25121 wxUSE_LIBTIFF=sys
25122 fi
25123 fi
25124fi
25125
25126
47a7e797
MW
25127if test "$wxUSE_WCHAR_T" != "yes"; then
25128 if test "$wxUSE_EXPAT" != "no"; then
25129 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25130echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25131 wxUSE_EXPAT=no
25132 fi
25133 if test "$wxUSE_XML" != "no"; then
25134 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25135echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25136 wxUSE_XML=no
25137 fi
25138fi
25139
a848cd7e
SC
25140if test "$wxUSE_EXPAT" != "no"; then
25141 wxUSE_XML=yes
25142 cat >>confdefs.h <<\_ACEOF
25143#define wxUSE_EXPAT 1
25144_ACEOF
25145
25146 cat >>confdefs.h <<\_ACEOF
25147#define wxUSE_XML 1
25148_ACEOF
25149
25150
25151 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25152 if test "${ac_cv_header_expat_h+set}" = set; then
25153 echo "$as_me:$LINENO: checking for expat.h" >&5
25154echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25155if test "${ac_cv_header_expat_h+set}" = set; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25157fi
25158echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25159echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25160else
25161 # Is the header compilable?
25162echo "$as_me:$LINENO: checking expat.h usability" >&5
25163echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25164cat >conftest.$ac_ext <<_ACEOF
25165/* confdefs.h. */
25166_ACEOF
25167cat confdefs.h >>conftest.$ac_ext
25168cat >>conftest.$ac_ext <<_ACEOF
25169/* end confdefs.h. */
25170$ac_includes_default
25171#include <expat.h>
25172_ACEOF
25173rm -f conftest.$ac_objext
25174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25175 (eval $ac_compile) 2>conftest.er1
a848cd7e 25176 ac_status=$?
ac1cb8d3
VS
25177 grep -v '^ *+' conftest.er1 >conftest.err
25178 rm -f conftest.er1
25179 cat conftest.err >&5
a848cd7e
SC
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
be665c07
JS
25182 { ac_try='test -z "$ac_c_werror_flag"
25183 || test ! -s conftest.err'
ac1cb8d3
VS
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ac_header_compiler=yes
25196else
25197 echo "$as_me: failed program was:" >&5
25198sed 's/^/| /' conftest.$ac_ext >&5
25199
25200ac_header_compiler=no
25201fi
ac1cb8d3 25202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25204echo "${ECHO_T}$ac_header_compiler" >&6
25205
25206# Is the header present?
25207echo "$as_me:$LINENO: checking expat.h presence" >&5
25208echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25209cat >conftest.$ac_ext <<_ACEOF
25210/* confdefs.h. */
25211_ACEOF
25212cat confdefs.h >>conftest.$ac_ext
25213cat >>conftest.$ac_ext <<_ACEOF
25214/* end confdefs.h. */
25215#include <expat.h>
25216_ACEOF
25217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25219 ac_status=$?
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } >/dev/null; then
25225 if test -s conftest.err; then
25226 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25228 else
25229 ac_cpp_err=
25230 fi
25231else
25232 ac_cpp_err=yes
25233fi
25234if test -z "$ac_cpp_err"; then
25235 ac_header_preproc=yes
25236else
25237 echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240 ac_header_preproc=no
25241fi
25242rm -f conftest.err conftest.$ac_ext
25243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25244echo "${ECHO_T}$ac_header_preproc" >&6
25245
25246# So? What about this header?
ac1cb8d3
VS
25247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25248 yes:no: )
a848cd7e
SC
25249 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25250echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25251 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25252echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25253 ac_header_preproc=yes
a848cd7e 25254 ;;
ac1cb8d3 25255 no:yes:* )
a848cd7e
SC
25256 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25257echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25258 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25259echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25261echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25263echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25264 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25265echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25266 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25267echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25268 (
25269 cat <<\_ASBOX
ac1cb8d3
VS
25270## ----------------------------------------- ##
25271## Report this to wx-dev@lists.wxwidgets.org ##
25272## ----------------------------------------- ##
a848cd7e
SC
25273_ASBOX
25274 ) |
25275 sed "s/^/$as_me: WARNING: /" >&2
25276 ;;
25277esac
25278echo "$as_me:$LINENO: checking for expat.h" >&5
25279echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25280if test "${ac_cv_header_expat_h+set}" = set; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25282else
25283 ac_cv_header_expat_h=$ac_header_preproc
25284fi
25285echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25286echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25287
25288fi
25289if test $ac_cv_header_expat_h = yes; then
25290 found_expat_h=1
25291fi
25292
25293
25294 if test "x$found_expat_h" = "x1"; then
25295 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25296echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25297if test "${wx_cv_expat_is_not_broken+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299else
25300
25301
25302
25303 ac_ext=cc
25304ac_cpp='$CXXCPP $CPPFLAGS'
25305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25308
25309 cat >conftest.$ac_ext <<_ACEOF
25310/* confdefs.h. */
25311_ACEOF
25312cat confdefs.h >>conftest.$ac_ext
25313cat >>conftest.$ac_ext <<_ACEOF
25314/* end confdefs.h. */
25315#include <expat.h>
25316int
25317main ()
25318{
25319
25320 ;
25321 return 0;
25322}
25323_ACEOF
25324rm -f conftest.$ac_objext
25325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25326 (eval $ac_compile) 2>conftest.er1
a848cd7e 25327 ac_status=$?
ac1cb8d3
VS
25328 grep -v '^ *+' conftest.er1 >conftest.err
25329 rm -f conftest.er1
25330 cat conftest.err >&5
a848cd7e
SC
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
be665c07
JS
25333 { ac_try='test -z "$ac_cxx_werror_flag"
25334 || test ! -s conftest.err'
ac1cb8d3
VS
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; } &&
25340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; }; then
25346 wx_cv_expat_is_not_broken=yes
25347else
25348 echo "$as_me: failed program was:" >&5
25349sed 's/^/| /' conftest.$ac_ext >&5
25350
25351wx_cv_expat_is_not_broken=no
25352
25353fi
ac1cb8d3 25354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25355 ac_ext=c
25356ac_cpp='$CPP $CPPFLAGS'
25357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25359ac_compiler_gnu=$ac_cv_c_compiler_gnu
25360
25361
25362
25363fi
25364echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25365echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25366 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25367 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25368echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25369if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25370 echo $ECHO_N "(cached) $ECHO_C" >&6
25371else
25372 ac_check_lib_save_LIBS=$LIBS
25373LIBS="-lexpat $LIBS"
25374cat >conftest.$ac_ext <<_ACEOF
25375/* confdefs.h. */
25376_ACEOF
25377cat confdefs.h >>conftest.$ac_ext
25378cat >>conftest.$ac_ext <<_ACEOF
25379/* end confdefs.h. */
25380
25381/* Override any gcc2 internal prototype to avoid an error. */
25382#ifdef __cplusplus
25383extern "C"
25384#endif
25385/* We use char because int might match the return type of a gcc2
25386 builtin and then its argument prototype would still apply. */
25387char XML_ParserCreate ();
25388int
25389main ()
25390{
25391XML_ParserCreate ();
25392 ;
25393 return 0;
25394}
25395_ACEOF
25396rm -f conftest.$ac_objext conftest$ac_exeext
25397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25398 (eval $ac_link) 2>conftest.er1
a848cd7e 25399 ac_status=$?
ac1cb8d3
VS
25400 grep -v '^ *+' conftest.er1 >conftest.err
25401 rm -f conftest.er1
25402 cat conftest.err >&5
a848cd7e
SC
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
be665c07
JS
25405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
ac1cb8d3
VS
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 ac_cv_lib_expat_XML_ParserCreate=yes
25419else
25420 echo "$as_me: failed program was:" >&5
25421sed 's/^/| /' conftest.$ac_ext >&5
25422
25423ac_cv_lib_expat_XML_ParserCreate=no
25424fi
ac1cb8d3
VS
25425rm -f conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25427LIBS=$ac_check_lib_save_LIBS
25428fi
25429echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25430echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25431if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25432 EXPAT_LINK=" -lexpat"
25433fi
25434
25435 fi
25436 fi
25437 if test "x$EXPAT_LINK" = "x" ; then
25438 if test "$wxUSE_EXPAT" = "sys" ; then
25439 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25440echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25441 { (exit 1); exit 1; }; }
25442 else
25443 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25444echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25445 wxUSE_EXPAT=builtin
25446 fi
25447 else
25448 wxUSE_EXPAT=sys
25449 fi
25450 fi
25451 if test "$wxUSE_EXPAT" = "builtin" ; then
25452
25453
25454subdirs="$subdirs src/expat"
25455
25456 fi
25457fi
25458
25459
25460
25461if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25462 if test "${ac_cv_header_mspack_h+set}" = set; then
25463 echo "$as_me:$LINENO: checking for mspack.h" >&5
25464echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25465if test "${ac_cv_header_mspack_h+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25467fi
25468echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25469echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25470else
25471 # Is the header compilable?
25472echo "$as_me:$LINENO: checking mspack.h usability" >&5
25473echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25474cat >conftest.$ac_ext <<_ACEOF
25475/* confdefs.h. */
25476_ACEOF
25477cat confdefs.h >>conftest.$ac_ext
25478cat >>conftest.$ac_ext <<_ACEOF
25479/* end confdefs.h. */
25480$ac_includes_default
25481#include <mspack.h>
25482_ACEOF
25483rm -f conftest.$ac_objext
25484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25485 (eval $ac_compile) 2>conftest.er1
a848cd7e 25486 ac_status=$?
ac1cb8d3
VS
25487 grep -v '^ *+' conftest.er1 >conftest.err
25488 rm -f conftest.er1
25489 cat conftest.err >&5
a848cd7e
SC
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); } &&
be665c07
JS
25492 { ac_try='test -z "$ac_c_werror_flag"
25493 || test ! -s conftest.err'
ac1cb8d3
VS
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; } &&
25499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_header_compiler=yes
25506else
25507 echo "$as_me: failed program was:" >&5
25508sed 's/^/| /' conftest.$ac_ext >&5
25509
25510ac_header_compiler=no
25511fi
ac1cb8d3 25512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25514echo "${ECHO_T}$ac_header_compiler" >&6
25515
25516# Is the header present?
25517echo "$as_me:$LINENO: checking mspack.h presence" >&5
25518echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25519cat >conftest.$ac_ext <<_ACEOF
25520/* confdefs.h. */
25521_ACEOF
25522cat confdefs.h >>conftest.$ac_ext
25523cat >>conftest.$ac_ext <<_ACEOF
25524/* end confdefs.h. */
25525#include <mspack.h>
25526_ACEOF
25527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25529 ac_status=$?
25530 grep -v '^ *+' conftest.er1 >conftest.err
25531 rm -f conftest.er1
25532 cat conftest.err >&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } >/dev/null; then
25535 if test -s conftest.err; then
25536 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25538 else
25539 ac_cpp_err=
25540 fi
25541else
25542 ac_cpp_err=yes
25543fi
25544if test -z "$ac_cpp_err"; then
25545 ac_header_preproc=yes
25546else
25547 echo "$as_me: failed program was:" >&5
25548sed 's/^/| /' conftest.$ac_ext >&5
25549
25550 ac_header_preproc=no
25551fi
25552rm -f conftest.err conftest.$ac_ext
25553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25554echo "${ECHO_T}$ac_header_preproc" >&6
25555
25556# So? What about this header?
ac1cb8d3
VS
25557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25558 yes:no: )
a848cd7e
SC
25559 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25560echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25561 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25562echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25563 ac_header_preproc=yes
a848cd7e 25564 ;;
ac1cb8d3 25565 no:yes:* )
a848cd7e
SC
25566 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25567echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25568 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25569echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25570 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25571echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25572 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25573echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25574 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25575echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25576 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25577echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25578 (
25579 cat <<\_ASBOX
ac1cb8d3
VS
25580## ----------------------------------------- ##
25581## Report this to wx-dev@lists.wxwidgets.org ##
25582## ----------------------------------------- ##
a848cd7e
SC
25583_ASBOX
25584 ) |
25585 sed "s/^/$as_me: WARNING: /" >&2
25586 ;;
25587esac
25588echo "$as_me:$LINENO: checking for mspack.h" >&5
25589echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25590if test "${ac_cv_header_mspack_h+set}" = set; then
25591 echo $ECHO_N "(cached) $ECHO_C" >&6
25592else
25593 ac_cv_header_mspack_h=$ac_header_preproc
25594fi
25595echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25596echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25597
25598fi
25599if test $ac_cv_header_mspack_h = yes; then
25600 found_mspack_h=1
25601fi
25602
25603
25604 if test "x$found_mspack_h" = "x1"; then
25605 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25606echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25607if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25609else
25610 ac_check_lib_save_LIBS=$LIBS
25611LIBS="-lmspack $LIBS"
25612cat >conftest.$ac_ext <<_ACEOF
25613/* confdefs.h. */
25614_ACEOF
25615cat confdefs.h >>conftest.$ac_ext
25616cat >>conftest.$ac_ext <<_ACEOF
25617/* end confdefs.h. */
25618
25619/* Override any gcc2 internal prototype to avoid an error. */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623/* We use char because int might match the return type of a gcc2
25624 builtin and then its argument prototype would still apply. */
25625char mspack_create_chm_decompressor ();
25626int
25627main ()
25628{
25629mspack_create_chm_decompressor ();
25630 ;
25631 return 0;
25632}
25633_ACEOF
25634rm -f conftest.$ac_objext conftest$ac_exeext
25635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25636 (eval $ac_link) 2>conftest.er1
a848cd7e 25637 ac_status=$?
ac1cb8d3
VS
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
a848cd7e
SC
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
be665c07
JS
25643 { ac_try='test -z "$ac_c_werror_flag"
25644 || test ! -s conftest.err'
ac1cb8d3
VS
25645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); }; } &&
25650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; }; then
25656 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25657else
25658 echo "$as_me: failed program was:" >&5
25659sed 's/^/| /' conftest.$ac_ext >&5
25660
25661ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25662fi
ac1cb8d3
VS
25663rm -f conftest.err conftest.$ac_objext \
25664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25665LIBS=$ac_check_lib_save_LIBS
25666fi
25667echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25668echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25669if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25670 MSPACK_LINK=" -lmspack"
25671fi
25672
25673 fi
25674 if test "x$MSPACK_LINK" = "x" ; then
25675 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25676 fi
25677fi
25678
25679if test "$wxUSE_LIBMSPACK" != "no"; then
25680 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25681#define wxUSE_LIBMSPACK 1
25682_ACEOF
25683
a848cd7e
SC
25684fi
25685
25686
25687
25688AFMINSTALL=
25689WIN32INSTALL=
25690
25691TOOLKIT=
25692TOOLKIT_INCLUDE=
25693WIDGET_SET=
25694
25695if test "$USE_WIN32" = 1 ; then
25696
25697for ac_header in w32api.h
25698do
25699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25700if eval "test \"\${$as_ac_Header+set}\" = set"; then
25701 echo "$as_me:$LINENO: checking for $ac_header" >&5
25702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25703if eval "test \"\${$as_ac_Header+set}\" = set"; then
25704 echo $ECHO_N "(cached) $ECHO_C" >&6
25705fi
25706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25708else
25709 # Is the header compilable?
25710echo "$as_me:$LINENO: checking $ac_header usability" >&5
25711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25712cat >conftest.$ac_ext <<_ACEOF
25713/* confdefs.h. */
25714_ACEOF
25715cat confdefs.h >>conftest.$ac_ext
25716cat >>conftest.$ac_ext <<_ACEOF
25717/* end confdefs.h. */
25718$ac_includes_default
25719#include <$ac_header>
25720_ACEOF
25721rm -f conftest.$ac_objext
25722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25723 (eval $ac_compile) 2>conftest.er1
a848cd7e 25724 ac_status=$?
ac1cb8d3
VS
25725 grep -v '^ *+' conftest.er1 >conftest.err
25726 rm -f conftest.er1
25727 cat conftest.err >&5
a848cd7e
SC
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } &&
be665c07
JS
25730 { ac_try='test -z "$ac_c_werror_flag"
25731 || test ! -s conftest.err'
ac1cb8d3
VS
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; } &&
25737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; }; then
25743 ac_header_compiler=yes
25744else
25745 echo "$as_me: failed program was:" >&5
25746sed 's/^/| /' conftest.$ac_ext >&5
25747
25748ac_header_compiler=no
25749fi
ac1cb8d3 25750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25752echo "${ECHO_T}$ac_header_compiler" >&6
25753
25754# Is the header present?
25755echo "$as_me:$LINENO: checking $ac_header presence" >&5
25756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25757cat >conftest.$ac_ext <<_ACEOF
25758/* confdefs.h. */
25759_ACEOF
25760cat confdefs.h >>conftest.$ac_ext
25761cat >>conftest.$ac_ext <<_ACEOF
25762/* end confdefs.h. */
25763#include <$ac_header>
25764_ACEOF
25765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25767 ac_status=$?
25768 grep -v '^ *+' conftest.er1 >conftest.err
25769 rm -f conftest.er1
25770 cat conftest.err >&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } >/dev/null; then
25773 if test -s conftest.err; then
25774 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25776 else
25777 ac_cpp_err=
25778 fi
25779else
25780 ac_cpp_err=yes
25781fi
25782if test -z "$ac_cpp_err"; then
25783 ac_header_preproc=yes
25784else
25785 echo "$as_me: failed program was:" >&5
25786sed 's/^/| /' conftest.$ac_ext >&5
25787
25788 ac_header_preproc=no
25789fi
25790rm -f conftest.err conftest.$ac_ext
25791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25792echo "${ECHO_T}$ac_header_preproc" >&6
25793
25794# So? What about this header?
ac1cb8d3
VS
25795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25796 yes:no: )
a848cd7e
SC
25797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25801 ac_header_preproc=yes
a848cd7e 25802 ;;
ac1cb8d3 25803 no:yes:* )
a848cd7e
SC
25804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25816 (
25817 cat <<\_ASBOX
ac1cb8d3
VS
25818## ----------------------------------------- ##
25819## Report this to wx-dev@lists.wxwidgets.org ##
25820## ----------------------------------------- ##
a848cd7e
SC
25821_ASBOX
25822 ) |
25823 sed "s/^/$as_me: WARNING: /" >&2
25824 ;;
25825esac
25826echo "$as_me:$LINENO: checking for $ac_header" >&5
25827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25828if eval "test \"\${$as_ac_Header+set}\" = set"; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25830else
ac1cb8d3 25831 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25832fi
25833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25835
25836fi
25837if test `eval echo '${'$as_ac_Header'}'` = yes; then
25838 cat >>confdefs.h <<_ACEOF
25839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25840_ACEOF
25841
25842fi
25843
25844done
25845
25846 if test "${ac_cv_header_windows_h+set}" = set; then
25847 echo "$as_me:$LINENO: checking for windows.h" >&5
25848echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25849if test "${ac_cv_header_windows_h+set}" = set; then
25850 echo $ECHO_N "(cached) $ECHO_C" >&6
25851fi
25852echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25853echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25854else
25855 # Is the header compilable?
25856echo "$as_me:$LINENO: checking windows.h usability" >&5
25857echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25858cat >conftest.$ac_ext <<_ACEOF
25859/* confdefs.h. */
25860_ACEOF
25861cat confdefs.h >>conftest.$ac_ext
25862cat >>conftest.$ac_ext <<_ACEOF
25863/* end confdefs.h. */
25864$ac_includes_default
25865#include <windows.h>
25866_ACEOF
25867rm -f conftest.$ac_objext
25868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25869 (eval $ac_compile) 2>conftest.er1
a848cd7e 25870 ac_status=$?
ac1cb8d3
VS
25871 grep -v '^ *+' conftest.er1 >conftest.err
25872 rm -f conftest.er1
25873 cat conftest.err >&5
a848cd7e
SC
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } &&
be665c07
JS
25876 { ac_try='test -z "$ac_c_werror_flag"
25877 || test ! -s conftest.err'
ac1cb8d3
VS
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } &&
25883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; }; then
25889 ac_header_compiler=yes
25890else
25891 echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
25894ac_header_compiler=no
25895fi
ac1cb8d3 25896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25898echo "${ECHO_T}$ac_header_compiler" >&6
25899
25900# Is the header present?
25901echo "$as_me:$LINENO: checking windows.h presence" >&5
25902echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25903cat >conftest.$ac_ext <<_ACEOF
25904/* confdefs.h. */
25905_ACEOF
25906cat confdefs.h >>conftest.$ac_ext
25907cat >>conftest.$ac_ext <<_ACEOF
25908/* end confdefs.h. */
25909#include <windows.h>
25910_ACEOF
25911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25913 ac_status=$?
25914 grep -v '^ *+' conftest.er1 >conftest.err
25915 rm -f conftest.er1
25916 cat conftest.err >&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); } >/dev/null; then
25919 if test -s conftest.err; then
25920 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25922 else
25923 ac_cpp_err=
25924 fi
25925else
25926 ac_cpp_err=yes
25927fi
25928if test -z "$ac_cpp_err"; then
25929 ac_header_preproc=yes
25930else
25931 echo "$as_me: failed program was:" >&5
25932sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 ac_header_preproc=no
25935fi
25936rm -f conftest.err conftest.$ac_ext
25937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25938echo "${ECHO_T}$ac_header_preproc" >&6
25939
25940# So? What about this header?
ac1cb8d3
VS
25941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25942 yes:no: )
a848cd7e
SC
25943 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25944echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25945 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25946echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25947 ac_header_preproc=yes
a848cd7e 25948 ;;
ac1cb8d3 25949 no:yes:* )
a848cd7e
SC
25950 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25951echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25952 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25953echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25954 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25955echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25956 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25957echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25958 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25959echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25960 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25961echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25962 (
25963 cat <<\_ASBOX
ac1cb8d3
VS
25964## ----------------------------------------- ##
25965## Report this to wx-dev@lists.wxwidgets.org ##
25966## ----------------------------------------- ##
a848cd7e
SC
25967_ASBOX
25968 ) |
25969 sed "s/^/$as_me: WARNING: /" >&2
25970 ;;
25971esac
25972echo "$as_me:$LINENO: checking for windows.h" >&5
25973echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25974if test "${ac_cv_header_windows_h+set}" = set; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
25976else
25977 ac_cv_header_windows_h=$ac_header_preproc
25978fi
25979echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25980echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25981
25982fi
25983if test $ac_cv_header_windows_h = yes; then
25984 :
25985else
25986
25987 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25988echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25989 { (exit 1); exit 1; }; }
25990
25991fi
25992
25993
25994
25995 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25996
25997 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25998 LIBS="$LIBS -loleacc"
25999 fi
26000
26001 case "${host}" in
26002 *-*-cygwin* )
26003 LIBS="$LIBS -lkernel32 -luser32"
26004 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
26005 esac
26006
26007 if test "$wxUSE_ODBC" = "sys" ; then
26008 wxUSE_ODBC = "yes"
26009 fi
26010 if test "$wxUSE_ODBC" = "yes" ; then
26011 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26012 cat >>confdefs.h <<\_ACEOF
26013#define wxUSE_ODBC 1
26014_ACEOF
26015
26016 fi
26017
26018 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26019 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26020
26021 WIN32INSTALL=win32install
26022fi
26023
26024if test "$wxUSE_GUI" = "yes"; then
26025 USE_GUI=1
26026
26027 GUI_TK_LIBRARY=
26028
26029 WXGTK12=
26030 WXGTK127=
26031 WXGTK20=
26032 WXGPE=
26033
207bc66c
RN
26034 if test "$wxUSE_COCOA" = 1 ; then
26035 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26036 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26037echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26038 wxUSE_PRINTING_ARCHITECTURE=no
26039 fi
26040 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26041 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26042echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26043 wxUSE_DRAG_AND_DROP=no
26044 fi
26045 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26046 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26047echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26048 wxUSE_DRAGIMAGE=no
26049 fi
26050 fi
26051
a848cd7e
SC
26052 if test "$wxUSE_MSW" = 1 ; then
26053 TOOLKIT=MSW
26054 GUIDIST=MSW_DIST
26055
ceec2216 26056 case "${host}" in
a848cd7e
SC
26057 *-*-mingw32* )
26058 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26059 esac
26060 fi
26061
26062 if test "$wxUSE_GTK" = 1; then
26063 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26064echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26065
26066 gtk_version_cached=1
26067 if test "${wx_cv_lib_gtk+set}" = set; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
26069else
26070
26071 gtk_version_cached=0
26072 echo "$as_me:$LINENO: result: " >&5
26073echo "${ECHO_T}" >&6
26074
26075 GTK_MODULES=
26076 if test "$wxUSE_THREADS" = "yes"; then
26077 GTK_MODULES=gthread
26078 fi
26079
f597b41c 26080 wx_cv_lib_gtk=
5001df0d
MW
26081 if test "x$wxGTK_VERSION" != "x1"
26082 then
26083 case "${host}" in
26084 *-*-solaris2* )
26085 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26086 enable_gtktest=no
26087 fi
26088 esac
26089
a848cd7e
SC
26090 # Check whether --enable-gtktest or --disable-gtktest was given.
26091if test "${enable_gtktest+set}" = set; then
26092 enableval="$enable_gtktest"
26093
26094else
26095 enable_gtktest=yes
26096fi;
26097
26098 pkg_config_args=gtk+-2.0
26099 for module in . $GTK_MODULES
26100 do
26101 case "$module" in
26102 gthread)
26103 pkg_config_args="$pkg_config_args gthread-2.0"
26104 ;;
26105 esac
26106 done
26107
26108 no_gtk=""
26109
26110 # Extract the first word of "pkg-config", so it can be a program name with args.
26111set dummy pkg-config; ac_word=$2
26112echo "$as_me:$LINENO: checking for $ac_word" >&5
26113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26114if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26115 echo $ECHO_N "(cached) $ECHO_C" >&6
26116else
26117 case $PKG_CONFIG in
26118 [\\/]* | ?:[\\/]*)
26119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26120 ;;
26121 *)
26122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26123for as_dir in $PATH
26124do
26125 IFS=$as_save_IFS
26126 test -z "$as_dir" && as_dir=.
26127 for ac_exec_ext in '' $ac_executable_extensions; do
26128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26131 break 2
26132 fi
26133done
26134done
26135
26136 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26137 ;;
26138esac
26139fi
26140PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26141
26142if test -n "$PKG_CONFIG"; then
26143 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26144echo "${ECHO_T}$PKG_CONFIG" >&6
26145else
26146 echo "$as_me:$LINENO: result: no" >&5
26147echo "${ECHO_T}no" >&6
26148fi
26149
26150
26151 if test x$PKG_CONFIG != xno ; then
26152 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26153 :
26154 else
c2218763 26155 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26156 no_gtk=yes
26157 PKG_CONFIG=no
26158 fi
26159 else
26160 no_gtk=yes
26161 fi
26162
26163 min_gtk_version=2.0.0
26164 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26165echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26166
26167 if test x$PKG_CONFIG != xno ; then
26168 ## don't try to run the test against uninstalled libtool libs
26169 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26170 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26171 enable_gtktest=no
26172 fi
26173
26174 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26175 :
26176 else
26177 no_gtk=yes
26178 fi
26179 fi
26180
26181 if test x"$no_gtk" = x ; then
26182 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26183 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26184 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26185 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26186 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26187 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26188 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26189 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26190 if test "x$enable_gtktest" = "xyes" ; then
26191 ac_save_CFLAGS="$CFLAGS"
26192 ac_save_LIBS="$LIBS"
26193 CFLAGS="$CFLAGS $GTK_CFLAGS"
26194 LIBS="$GTK_LIBS $LIBS"
26195 rm -f conf.gtktest
26196 if test "$cross_compiling" = yes; then
26197 echo $ac_n "cross compiling; assumed OK... $ac_c"
26198else
26199 cat >conftest.$ac_ext <<_ACEOF
26200/* confdefs.h. */
26201_ACEOF
26202cat confdefs.h >>conftest.$ac_ext
26203cat >>conftest.$ac_ext <<_ACEOF
26204/* end confdefs.h. */
26205
26206#include <gtk/gtk.h>
26207#include <stdio.h>
26208#include <stdlib.h>
26209
26210int
26211main ()
26212{
26213 int major, minor, micro;
26214 char *tmp_version;
26215
26216 system ("touch conf.gtktest");
26217
26218 /* HP/UX 9 (%@#!) writes to sscanf strings */
26219 tmp_version = g_strdup("$min_gtk_version");
26220 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26221 printf("%s, bad version string\n", "$min_gtk_version");
26222 exit(1);
26223 }
26224
26225 if ((gtk_major_version != $gtk_config_major_version) ||
26226 (gtk_minor_version != $gtk_config_minor_version) ||
26227 (gtk_micro_version != $gtk_config_micro_version))
26228 {
26229 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26230 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26231 gtk_major_version, gtk_minor_version, gtk_micro_version);
26232 printf ("*** was found! If pkg-config was correct, then it is best\n");
26233 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26234 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26235 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26236 printf("*** required on your system.\n");
26237 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26238 printf("*** to point to the correct configuration files\n");
26239 }
26240 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26241 (gtk_minor_version != GTK_MINOR_VERSION) ||
26242 (gtk_micro_version != GTK_MICRO_VERSION))
26243 {
26244 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26245 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26246 printf("*** library (version %d.%d.%d)\n",
26247 gtk_major_version, gtk_minor_version, gtk_micro_version);
26248 }
26249 else
26250 {
26251 if ((gtk_major_version > major) ||
26252 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26253 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26254 {
26255 return 0;
26256 }
26257 else
26258 {
26259 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26260 gtk_major_version, gtk_minor_version, gtk_micro_version);
26261 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26262 major, minor, micro);
26263 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26264 printf("***\n");
26265 printf("*** If you have already installed a sufficiently new version, this error\n");
26266 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26267 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26268 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26269 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26270 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26271 printf("*** so that the correct libraries are found at run-time))\n");
26272 }
26273 }
26274 return 1;
26275}
26276
26277_ACEOF
26278rm -f conftest$ac_exeext
26279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26280 (eval $ac_link) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26286 ac_status=$?
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; }; then
26289 :
26290else
26291 echo "$as_me: program exited with status $ac_status" >&5
26292echo "$as_me: failed program was:" >&5
26293sed 's/^/| /' conftest.$ac_ext >&5
26294
26295( exit $ac_status )
26296no_gtk=yes
26297fi
ac1cb8d3 26298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26299fi
26300 CFLAGS="$ac_save_CFLAGS"
26301 LIBS="$ac_save_LIBS"
26302 fi
26303 fi
26304 if test "x$no_gtk" = x ; then
26305 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26306echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26307 wx_cv_lib_gtk=2.0
26308 else
26309 echo "$as_me:$LINENO: result: no" >&5
26310echo "${ECHO_T}no" >&6
26311 if test "$PKG_CONFIG" = "no" ; then
26312 echo "*** A new enough version of pkg-config was not found."
26313 echo "*** See http://pkgconfig.sourceforge.net"
26314 else
26315 if test -f conf.gtktest ; then
26316 :
26317 else
26318 echo "*** Could not run GTK+ test program, checking why..."
26319 ac_save_CFLAGS="$CFLAGS"
26320 ac_save_LIBS="$LIBS"
26321 CFLAGS="$CFLAGS $GTK_CFLAGS"
26322 LIBS="$LIBS $GTK_LIBS"
26323 cat >conftest.$ac_ext <<_ACEOF
26324/* confdefs.h. */
26325_ACEOF
26326cat confdefs.h >>conftest.$ac_ext
26327cat >>conftest.$ac_ext <<_ACEOF
26328/* end confdefs.h. */
26329
26330#include <gtk/gtk.h>
26331#include <stdio.h>
26332
26333int
26334main ()
26335{
26336 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26337 ;
26338 return 0;
26339}
26340_ACEOF
26341rm -f conftest.$ac_objext conftest$ac_exeext
26342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26343 (eval $ac_link) 2>conftest.er1
a848cd7e 26344 ac_status=$?
ac1cb8d3
VS
26345 grep -v '^ *+' conftest.er1 >conftest.err
26346 rm -f conftest.er1
26347 cat conftest.err >&5
a848cd7e
SC
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
be665c07
JS
26350 { ac_try='test -z "$ac_c_werror_flag"
26351 || test ! -s conftest.err'
ac1cb8d3
VS
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; } &&
26357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; }; then
26363 echo "*** The test program compiled, but did not run. This usually means"
26364 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26365 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26366 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26367 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26368 echo "*** is required on your system"
26369 echo "***"
26370 echo "*** If you have an old version installed, it is best to remove it, although"
26371 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26372else
26373 echo "$as_me: failed program was:" >&5
26374sed 's/^/| /' conftest.$ac_ext >&5
26375
26376 echo "*** The test program failed to compile or link. See the file config.log for the"
26377 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26378fi
ac1cb8d3
VS
26379rm -f conftest.err conftest.$ac_objext \
26380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26381 CFLAGS="$ac_save_CFLAGS"
26382 LIBS="$ac_save_LIBS"
26383 fi
26384 fi
26385 GTK_CFLAGS=""
26386 GTK_LIBS=""
26387 :
26388 fi
26389
26390
26391 rm -f conf.gtktest
26392
5001df0d
MW
26393
26394 case "${host}" in
26395 *-*-solaris2* )
26396 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26397 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26398 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26399 fi
26400 if test "$wxUSE_SHARED" != "yes"; then
26401 GTK_LIBS="$GTK_LIBS -lX11"
26402 fi
26403 esac
f597b41c
MW
26404 fi
26405
f34ca037
MW
26406 if test -z "$wx_cv_lib_gtk"; then
26407 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26408
26409# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26410if test "${with_gtk_prefix+set}" = set; then
26411 withval="$with_gtk_prefix"
26412 gtk_config_prefix="$withval"
26413else
26414 gtk_config_prefix=""
26415fi;
26416
26417# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26418if test "${with_gtk_exec_prefix+set}" = set; then
26419 withval="$with_gtk_exec_prefix"
26420 gtk_config_exec_prefix="$withval"
26421else
26422 gtk_config_exec_prefix=""
26423fi;
26424# Check whether --enable-gtktest or --disable-gtktest was given.
26425if test "${enable_gtktest+set}" = set; then
26426 enableval="$enable_gtktest"
26427
26428else
26429 enable_gtktest=yes
26430fi;
26431
26432 for module in . $GTK_MODULES
26433 do
26434 case "$module" in
26435 gthread)
26436 gtk_config_args="$gtk_config_args gthread"
26437 ;;
26438 esac
26439 done
26440
26441 if test x$gtk_config_exec_prefix != x ; then
26442 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26443 if test x${GTK_CONFIG+set} != xset ; then
26444 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26445 fi
26446 fi
26447 if test x$gtk_config_prefix != x ; then
26448 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26449 if test x${GTK_CONFIG+set} != xset ; then
26450 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26451 fi
26452 fi
26453
26454 # Extract the first word of "gtk-config", so it can be a program name with args.
26455set dummy gtk-config; ac_word=$2
26456echo "$as_me:$LINENO: checking for $ac_word" >&5
26457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26458if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26460else
26461 case $GTK_CONFIG in
26462 [\\/]* | ?:[\\/]*)
26463 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26464 ;;
26465 *)
26466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26467for as_dir in $PATH
26468do
26469 IFS=$as_save_IFS
26470 test -z "$as_dir" && as_dir=.
26471 for ac_exec_ext in '' $ac_executable_extensions; do
26472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26473 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26475 break 2
26476 fi
26477done
26478done
26479
26480 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26481 ;;
26482esac
26483fi
26484GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26485
26486if test -n "$GTK_CONFIG"; then
26487 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26488echo "${ECHO_T}$GTK_CONFIG" >&6
26489else
26490 echo "$as_me:$LINENO: result: no" >&5
26491echo "${ECHO_T}no" >&6
26492fi
26493
26494 min_gtk_version=1.2.7
26495 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26496echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26497 no_gtk=""
26498 if test "$GTK_CONFIG" = "no" ; then
26499 no_gtk=yes
26500 else
26501 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26502 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26503 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26505 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26507 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26509 if test "x$enable_gtktest" = "xyes" ; then
26510 ac_save_CFLAGS="$CFLAGS"
26511 ac_save_LIBS="$LIBS"
26512 CFLAGS="$CFLAGS $GTK_CFLAGS"
26513 LIBS="$GTK_LIBS $LIBS"
26514 rm -f conf.gtktest
26515 if test "$cross_compiling" = yes; then
26516 echo $ac_n "cross compiling; assumed OK... $ac_c"
26517else
26518 cat >conftest.$ac_ext <<_ACEOF
26519/* confdefs.h. */
26520_ACEOF
26521cat confdefs.h >>conftest.$ac_ext
26522cat >>conftest.$ac_ext <<_ACEOF
26523/* end confdefs.h. */
26524
26525#include <gtk/gtk.h>
26526#include <stdio.h>
26527#include <stdlib.h>
26528
26529int
26530main ()
26531{
26532 int major, minor, micro;
26533 char *tmp_version;
26534
26535 system ("touch conf.gtktest");
26536
26537 /* HP/UX 9 (%@#!) writes to sscanf strings */
26538 tmp_version = g_strdup("$min_gtk_version");
26539 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26540 printf("%s, bad version string\n", "$min_gtk_version");
26541 exit(1);
26542 }
26543
26544 if ((gtk_major_version != $gtk_config_major_version) ||
26545 (gtk_minor_version != $gtk_config_minor_version) ||
26546 (gtk_micro_version != $gtk_config_micro_version))
26547 {
26548 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26549 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26550 gtk_major_version, gtk_minor_version, gtk_micro_version);
26551 printf ("*** was found! If gtk-config was correct, then it is best\n");
26552 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26553 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26554 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26555 printf("*** required on your system.\n");
26556 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26557 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26558 printf("*** before re-running configure\n");
26559 }
26560#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26561 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26562 (gtk_minor_version != GTK_MINOR_VERSION) ||
26563 (gtk_micro_version != GTK_MICRO_VERSION))
26564 {
26565 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26566 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26567 printf("*** library (version %d.%d.%d)\n",
26568 gtk_major_version, gtk_minor_version, gtk_micro_version);
26569 }
26570#endif /* defined (GTK_MAJOR_VERSION) ... */
26571 else
26572 {
26573 if ((gtk_major_version > major) ||
26574 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26575 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26576 {
26577 return 0;
26578 }
26579 else
26580 {
26581 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26582 gtk_major_version, gtk_minor_version, gtk_micro_version);
26583 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26584 major, minor, micro);
26585 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26586 printf("***\n");
26587 printf("*** If you have already installed a sufficiently new version, this error\n");
26588 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26589 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26590 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26591 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26592 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26593 printf("*** so that the correct libraries are found at run-time))\n");
26594 }
26595 }
26596 return 1;
26597}
26598
26599_ACEOF
26600rm -f conftest$ac_exeext
26601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26602 (eval $ac_link) 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; }; then
26611 :
26612else
26613 echo "$as_me: program exited with status $ac_status" >&5
26614echo "$as_me: failed program was:" >&5
26615sed 's/^/| /' conftest.$ac_ext >&5
26616
26617( exit $ac_status )
26618no_gtk=yes
26619fi
ac1cb8d3 26620rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26621fi
26622 CFLAGS="$ac_save_CFLAGS"
26623 LIBS="$ac_save_LIBS"
26624 fi
26625 fi
26626 if test "x$no_gtk" = x ; then
26627 echo "$as_me:$LINENO: result: yes" >&5
26628echo "${ECHO_T}yes" >&6
26629 wx_cv_lib_gtk=1.2.7
26630 else
26631 echo "$as_me:$LINENO: result: no" >&5
26632echo "${ECHO_T}no" >&6
26633 if test "$GTK_CONFIG" = "no" ; then
26634 echo "*** The gtk-config script installed by GTK could not be found"
26635 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26636 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26637 echo "*** full path to gtk-config."
26638 else
26639 if test -f conf.gtktest ; then
26640 :
26641 else
26642 echo "*** Could not run GTK test program, checking why..."
26643 CFLAGS="$CFLAGS $GTK_CFLAGS"
26644 LIBS="$LIBS $GTK_LIBS"
26645 cat >conftest.$ac_ext <<_ACEOF
26646/* confdefs.h. */
26647_ACEOF
26648cat confdefs.h >>conftest.$ac_ext
26649cat >>conftest.$ac_ext <<_ACEOF
26650/* end confdefs.h. */
26651
26652#include <gtk/gtk.h>
26653#include <stdio.h>
26654
26655int
26656main ()
26657{
26658 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26659 ;
26660 return 0;
26661}
26662_ACEOF
26663rm -f conftest.$ac_objext conftest$ac_exeext
26664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26665 (eval $ac_link) 2>conftest.er1
a848cd7e 26666 ac_status=$?
ac1cb8d3
VS
26667 grep -v '^ *+' conftest.er1 >conftest.err
26668 rm -f conftest.er1
26669 cat conftest.err >&5
a848cd7e
SC
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); } &&
be665c07
JS
26672 { ac_try='test -z "$ac_c_werror_flag"
26673 || test ! -s conftest.err'
ac1cb8d3
VS
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; } &&
26679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; }; then
26685 echo "*** The test program compiled, but did not run. This usually means"
26686 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26687 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26688 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26689 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26690 echo "*** is required on your system"
26691 echo "***"
26692 echo "*** If you have an old version installed, it is best to remove it, although"
26693 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26694 echo "***"
26695 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26696 echo "*** came with the system with the command"
26697 echo "***"
26698 echo "*** rpm --erase --nodeps gtk gtk-devel"
26699else
26700 echo "$as_me: failed program was:" >&5
26701sed 's/^/| /' conftest.$ac_ext >&5
26702
26703 echo "*** The test program failed to compile or link. See the file config.log for the"
26704 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26705 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26706 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26707fi
ac1cb8d3
VS
26708rm -f conftest.err conftest.$ac_objext \
26709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26710 CFLAGS="$ac_save_CFLAGS"
26711 LIBS="$ac_save_LIBS"
26712 fi
26713 fi
26714 GTK_CFLAGS=""
26715 GTK_LIBS=""
26716 :
26717 fi
26718
26719
26720 rm -f conf.gtktest
26721
26722
f34ca037 26723 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26724
26725# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26726if test "${with_gtk_prefix+set}" = set; then
26727 withval="$with_gtk_prefix"
26728 gtk_config_prefix="$withval"
26729else
26730 gtk_config_prefix=""
26731fi;
26732
26733# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26734if test "${with_gtk_exec_prefix+set}" = set; then
26735 withval="$with_gtk_exec_prefix"
26736 gtk_config_exec_prefix="$withval"
26737else
26738 gtk_config_exec_prefix=""
26739fi;
26740# Check whether --enable-gtktest or --disable-gtktest was given.
26741if test "${enable_gtktest+set}" = set; then
26742 enableval="$enable_gtktest"
26743
26744else
26745 enable_gtktest=yes
26746fi;
26747
26748 for module in . $GTK_MODULES
26749 do
26750 case "$module" in
26751 gthread)
26752 gtk_config_args="$gtk_config_args gthread"
26753 ;;
26754 esac
26755 done
26756
26757 if test x$gtk_config_exec_prefix != x ; then
26758 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26759 if test x${GTK_CONFIG+set} != xset ; then
26760 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26761 fi
26762 fi
26763 if test x$gtk_config_prefix != x ; then
26764 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26765 if test x${GTK_CONFIG+set} != xset ; then
26766 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26767 fi
26768 fi
26769
26770 # Extract the first word of "gtk-config", so it can be a program name with args.
26771set dummy gtk-config; ac_word=$2
26772echo "$as_me:$LINENO: checking for $ac_word" >&5
26773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26774if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26775 echo $ECHO_N "(cached) $ECHO_C" >&6
26776else
26777 case $GTK_CONFIG in
26778 [\\/]* | ?:[\\/]*)
26779 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26780 ;;
26781 *)
26782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26783for as_dir in $PATH
26784do
26785 IFS=$as_save_IFS
26786 test -z "$as_dir" && as_dir=.
26787 for ac_exec_ext in '' $ac_executable_extensions; do
26788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26789 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26791 break 2
26792 fi
26793done
26794done
26795
26796 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26797 ;;
26798esac
26799fi
26800GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26801
26802if test -n "$GTK_CONFIG"; then
26803 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26804echo "${ECHO_T}$GTK_CONFIG" >&6
26805else
26806 echo "$as_me:$LINENO: result: no" >&5
26807echo "${ECHO_T}no" >&6
26808fi
26809
26810 min_gtk_version=1.2.3
26811 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26812echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26813 no_gtk=""
26814 if test "$GTK_CONFIG" = "no" ; then
26815 no_gtk=yes
26816 else
26817 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26818 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26819 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26820 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26821 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26822 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26823 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26824 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26825 if test "x$enable_gtktest" = "xyes" ; then
26826 ac_save_CFLAGS="$CFLAGS"
26827 ac_save_LIBS="$LIBS"
26828 CFLAGS="$CFLAGS $GTK_CFLAGS"
26829 LIBS="$GTK_LIBS $LIBS"
26830 rm -f conf.gtktest
26831 if test "$cross_compiling" = yes; then
26832 echo $ac_n "cross compiling; assumed OK... $ac_c"
26833else
26834 cat >conftest.$ac_ext <<_ACEOF
26835/* confdefs.h. */
26836_ACEOF
26837cat confdefs.h >>conftest.$ac_ext
26838cat >>conftest.$ac_ext <<_ACEOF
26839/* end confdefs.h. */
26840
26841#include <gtk/gtk.h>
26842#include <stdio.h>
26843#include <stdlib.h>
26844
26845int
26846main ()
26847{
26848 int major, minor, micro;
26849 char *tmp_version;
26850
26851 system ("touch conf.gtktest");
26852
26853 /* HP/UX 9 (%@#!) writes to sscanf strings */
26854 tmp_version = g_strdup("$min_gtk_version");
26855 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26856 printf("%s, bad version string\n", "$min_gtk_version");
26857 exit(1);
26858 }
26859
26860 if ((gtk_major_version != $gtk_config_major_version) ||
26861 (gtk_minor_version != $gtk_config_minor_version) ||
26862 (gtk_micro_version != $gtk_config_micro_version))
26863 {
26864 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26865 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26866 gtk_major_version, gtk_minor_version, gtk_micro_version);
26867 printf ("*** was found! If gtk-config was correct, then it is best\n");
26868 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26869 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26870 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26871 printf("*** required on your system.\n");
26872 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26873 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26874 printf("*** before re-running configure\n");
26875 }
26876#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26877 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26878 (gtk_minor_version != GTK_MINOR_VERSION) ||
26879 (gtk_micro_version != GTK_MICRO_VERSION))
26880 {
26881 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26882 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26883 printf("*** library (version %d.%d.%d)\n",
26884 gtk_major_version, gtk_minor_version, gtk_micro_version);
26885 }
26886#endif /* defined (GTK_MAJOR_VERSION) ... */
26887 else
26888 {
26889 if ((gtk_major_version > major) ||
26890 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26891 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26892 {
26893 return 0;
26894 }
26895 else
26896 {
26897 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26898 gtk_major_version, gtk_minor_version, gtk_micro_version);
26899 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26900 major, minor, micro);
26901 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26902 printf("***\n");
26903 printf("*** If you have already installed a sufficiently new version, this error\n");
26904 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26905 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26906 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26907 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26908 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26909 printf("*** so that the correct libraries are found at run-time))\n");
26910 }
26911 }
26912 return 1;
26913}
26914
26915_ACEOF
26916rm -f conftest$ac_exeext
26917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26918 (eval $ac_link) 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); }; }; then
26927 :
26928else
26929 echo "$as_me: program exited with status $ac_status" >&5
26930echo "$as_me: failed program was:" >&5
26931sed 's/^/| /' conftest.$ac_ext >&5
26932
26933( exit $ac_status )
26934no_gtk=yes
26935fi
ac1cb8d3 26936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26937fi
26938 CFLAGS="$ac_save_CFLAGS"
26939 LIBS="$ac_save_LIBS"
26940 fi
26941 fi
26942 if test "x$no_gtk" = x ; then
26943 echo "$as_me:$LINENO: result: yes" >&5
26944echo "${ECHO_T}yes" >&6
26945 wx_cv_lib_gtk=1.2.3
26946 else
26947 echo "$as_me:$LINENO: result: no" >&5
26948echo "${ECHO_T}no" >&6
26949 if test "$GTK_CONFIG" = "no" ; then
26950 echo "*** The gtk-config script installed by GTK could not be found"
26951 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26952 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26953 echo "*** full path to gtk-config."
26954 else
26955 if test -f conf.gtktest ; then
26956 :
26957 else
26958 echo "*** Could not run GTK test program, checking why..."
26959 CFLAGS="$CFLAGS $GTK_CFLAGS"
26960 LIBS="$LIBS $GTK_LIBS"
26961 cat >conftest.$ac_ext <<_ACEOF
26962/* confdefs.h. */
26963_ACEOF
26964cat confdefs.h >>conftest.$ac_ext
26965cat >>conftest.$ac_ext <<_ACEOF
26966/* end confdefs.h. */
26967
26968#include <gtk/gtk.h>
26969#include <stdio.h>
26970
26971int
26972main ()
26973{
26974 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26975 ;
26976 return 0;
26977}
26978_ACEOF
26979rm -f conftest.$ac_objext conftest$ac_exeext
26980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26981 (eval $ac_link) 2>conftest.er1
a848cd7e 26982 ac_status=$?
ac1cb8d3
VS
26983 grep -v '^ *+' conftest.er1 >conftest.err
26984 rm -f conftest.er1
26985 cat conftest.err >&5
a848cd7e
SC
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } &&
be665c07
JS
26988 { ac_try='test -z "$ac_c_werror_flag"
26989 || test ! -s conftest.err'
ac1cb8d3
VS
26990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); }; } &&
26995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27001 echo "*** The test program compiled, but did not run. This usually means"
27002 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27003 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27004 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27005 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27006 echo "*** is required on your system"
27007 echo "***"
27008 echo "*** If you have an old version installed, it is best to remove it, although"
27009 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27010 echo "***"
27011 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27012 echo "*** came with the system with the command"
27013 echo "***"
27014 echo "*** rpm --erase --nodeps gtk gtk-devel"
27015else
27016 echo "$as_me: failed program was:" >&5
27017sed 's/^/| /' conftest.$ac_ext >&5
27018
27019 echo "*** The test program failed to compile or link. See the file config.log for the"
27020 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27021 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27022 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27023fi
ac1cb8d3
VS
27024rm -f conftest.err conftest.$ac_objext \
27025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27026 CFLAGS="$ac_save_CFLAGS"
27027 LIBS="$ac_save_LIBS"
27028 fi
27029 fi
27030 GTK_CFLAGS=""
27031 GTK_LIBS=""
27032 :
27033 fi
27034
27035
27036 rm -f conf.gtktest
27037
f34ca037 27038 fi
a848cd7e
SC
27039 fi
27040 fi
27041
27042 if test -z "$wx_cv_lib_gtk"; then
27043 wx_cv_lib_gtk=none
27044 else
27045 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27046 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27047 fi
27048
27049
27050fi
27051
27052
27053 if test "$gtk_version_cached" = 1; then
27054 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27055echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27056 fi
27057
27058 case "$wx_cv_lib_gtk" in
27059 2.0) WXGTK20=1
27060 TOOLKIT_VERSION=2
27061 ;;
27062 1.2.7) WXGTK127=1
27063 WXGTK12=1
27064 ;;
27065 1.2.3) WXGTK12=1
27066 ;;
27067 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27068The development files for GTK+ were not found. For GTK+ 2, please
27069ensure that pkg-config is in the path and that gtk+-2.0.pc is
27070installed. For GTK+ 1.2 please check that gtk-config is in the path,
27071and that the version is 1.2.3 or above. Also check that the
27072libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27073--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27074 " >&5
27075echo "$as_me: error:
f597b41c
MW
27076The development files for GTK+ were not found. For GTK+ 2, please
27077ensure that pkg-config is in the path and that gtk+-2.0.pc is
27078installed. For GTK+ 1.2 please check that gtk-config is in the path,
27079and that the version is 1.2.3 or above. Also check that the
27080libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27081--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27082 " >&2;}
27083 { (exit 1); exit 1; }; }
27084 ;;
27085 esac
27086
27087 if test "$WXGTK20" = 1; then
304205f1
VS
27088 save_CFLAGS="$CFLAGS"
27089 save_LIBS="$LIBS"
9d271838 27090 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 27091 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27092
d12aef51
VZ
27093 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27094echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27096/* confdefs.h. */
27097_ACEOF
27098cat confdefs.h >>conftest.$ac_ext
27099cat >>conftest.$ac_ext <<_ACEOF
27100/* end confdefs.h. */
304205f1 27101
d12aef51 27102 #include <gtk/gtk.h>
304205f1 27103
d12aef51
VZ
27104int
27105main ()
27106{
304205f1 27107
d12aef51 27108 void *f = gtk_icon_size_lookup;
abc736fd
MW
27109
27110 ;
27111 return 0;
27112}
27113_ACEOF
27114rm -f conftest.$ac_objext
27115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27116 (eval $ac_compile) 2>conftest.er1
27117 ac_status=$?
27118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
be665c07
JS
27123 { ac_try='test -z "$ac_c_werror_flag"
27124 || test ! -s conftest.err'
abc736fd
MW
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest.$ac_objext'
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136
27137 echo "$as_me:$LINENO: result: no" >&5
27138echo "${ECHO_T}no" >&6
27139
27140else
27141 echo "$as_me: failed program was:" >&5
27142sed 's/^/| /' conftest.$ac_ext >&5
27143
27144
27145 cat >>confdefs.h <<\_ACEOF
27146#define NEED_GTK_ICON_SIZE_LOOKUP 1
27147_ACEOF
27148
27149 echo "$as_me:$LINENO: result: yes" >&5
27150echo "${ECHO_T}yes" >&6
27151
27152fi
27153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27154
9755e73b
VS
27155 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27156echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27157 cat >conftest.$ac_ext <<_ACEOF
27158/* confdefs.h. */
27159_ACEOF
27160cat confdefs.h >>conftest.$ac_ext
27161cat >>conftest.$ac_ext <<_ACEOF
27162/* end confdefs.h. */
27163
27164 #include <gtk/gtk.h>
27165
27166int
27167main ()
27168{
27169
27170 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27171 Not GTK+ 2.4
9755e73b
VS
27172 #endif
27173
27174 ;
27175 return 0;
27176}
27177_ACEOF
27178rm -f conftest.$ac_objext
27179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27180 (eval $ac_compile) 2>conftest.er1
27181 ac_status=$?
27182 grep -v '^ *+' conftest.er1 >conftest.err
27183 rm -f conftest.er1
27184 cat conftest.err >&5
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); } &&
be665c07
JS
27187 { ac_try='test -z "$ac_c_werror_flag"
27188 || test ! -s conftest.err'
9755e73b
VS
27189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190 (eval $ac_try) 2>&5
27191 ac_status=$?
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; } &&
27194 { ac_try='test -s conftest.$ac_objext'
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
27200
27201 cat >>confdefs.h <<\_ACEOF
27202#define __WXGTK24__ 1
27203_ACEOF
27204
27205 echo "$as_me:$LINENO: result: yes" >&5
27206echo "${ECHO_T}yes" >&6
27207
27208else
27209 echo "$as_me: failed program was:" >&5
27210sed 's/^/| /' conftest.$ac_ext >&5
27211
27212
27213 echo "$as_me:$LINENO: result: no" >&5
27214echo "${ECHO_T}no" >&6
27215
27216fi
27217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27218
304205f1
VS
27219 CFLAGS="$save_CFLAGS"
27220 LIBS="$save_LIBS"
a848cd7e
SC
27221 else
27222 if test "$wxUSE_UNICODE" = "yes"; then
27223 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27224echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27225 wxUSE_UNICODE=no
27226 fi
27227 fi
27228
27229 if test "$USE_DARWIN" != 1; then
27230
27231for ac_func in poll
27232do
27233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27234echo "$as_me:$LINENO: checking for $ac_func" >&5
27235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27236if eval "test \"\${$as_ac_var+set}\" = set"; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27238else
27239 cat >conftest.$ac_ext <<_ACEOF
27240/* confdefs.h. */
27241_ACEOF
27242cat confdefs.h >>conftest.$ac_ext
27243cat >>conftest.$ac_ext <<_ACEOF
27244/* end confdefs.h. */
ac1cb8d3
VS
27245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27247#define $ac_func innocuous_$ac_func
27248
a848cd7e
SC
27249/* System header to define __stub macros and hopefully few prototypes,
27250 which can conflict with char $ac_func (); below.
27251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27252 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27253
a848cd7e
SC
27254#ifdef __STDC__
27255# include <limits.h>
27256#else
27257# include <assert.h>
27258#endif
ac1cb8d3
VS
27259
27260#undef $ac_func
27261
a848cd7e
SC
27262/* Override any gcc2 internal prototype to avoid an error. */
27263#ifdef __cplusplus
27264extern "C"
27265{
27266#endif
27267/* We use char because int might match the return type of a gcc2
27268 builtin and then its argument prototype would still apply. */
27269char $ac_func ();
27270/* The GNU C library defines this for functions which it implements
27271 to always fail with ENOSYS. Some functions are actually named
27272 something starting with __ and the normal name is an alias. */
27273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27274choke me
27275#else
27276char (*f) () = $ac_func;
27277#endif
27278#ifdef __cplusplus
27279}
27280#endif
27281
27282int
27283main ()
27284{
27285return f != $ac_func;
27286 ;
27287 return 0;
27288}
27289_ACEOF
27290rm -f conftest.$ac_objext conftest$ac_exeext
27291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27292 (eval $ac_link) 2>conftest.er1
a848cd7e 27293 ac_status=$?
ac1cb8d3
VS
27294 grep -v '^ *+' conftest.er1 >conftest.err
27295 rm -f conftest.er1
27296 cat conftest.err >&5
a848cd7e
SC
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); } &&
be665c07
JS
27299 { ac_try='test -z "$ac_c_werror_flag"
27300 || test ! -s conftest.err'
ac1cb8d3
VS
27301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; } &&
27306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 eval "$as_ac_var=yes"
27313else
27314 echo "$as_me: failed program was:" >&5
27315sed 's/^/| /' conftest.$ac_ext >&5
27316
27317eval "$as_ac_var=no"
27318fi
ac1cb8d3
VS
27319rm -f conftest.err conftest.$ac_objext \
27320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27321fi
27322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27324if test `eval echo '${'$as_ac_var'}'` = yes; then
27325 cat >>confdefs.h <<_ACEOF
27326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27327_ACEOF
27328
27329fi
27330done
27331
27332 fi
27333
27334 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27335 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27336
27337 AFMINSTALL=afminstall
27338 TOOLKIT=GTK
27339 GUIDIST=GTK_DIST
27340
27341 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27342echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27343if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27344 echo $ECHO_N "(cached) $ECHO_C" >&6
27345else
27346 ac_check_lib_save_LIBS=$LIBS
27347LIBS="-lgdk $LIBS"
27348cat >conftest.$ac_ext <<_ACEOF
27349/* confdefs.h. */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h. */
27354
27355/* Override any gcc2 internal prototype to avoid an error. */
27356#ifdef __cplusplus
27357extern "C"
27358#endif
27359/* We use char because int might match the return type of a gcc2
27360 builtin and then its argument prototype would still apply. */
27361char gdk_im_open ();
27362int
27363main ()
27364{
27365gdk_im_open ();
27366 ;
27367 return 0;
27368}
27369_ACEOF
27370rm -f conftest.$ac_objext conftest$ac_exeext
27371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27372 (eval $ac_link) 2>conftest.er1
a848cd7e 27373 ac_status=$?
ac1cb8d3
VS
27374 grep -v '^ *+' conftest.er1 >conftest.err
27375 rm -f conftest.er1
27376 cat conftest.err >&5
a848cd7e
SC
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
be665c07
JS
27379 { ac_try='test -z "$ac_c_werror_flag"
27380 || test ! -s conftest.err'
ac1cb8d3
VS
27381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382 (eval $ac_try) 2>&5
27383 ac_status=$?
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; } &&
27386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27388 (eval $ac_try) 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_lib_gdk_gdk_im_open=yes
27393else
27394 echo "$as_me: failed program was:" >&5
27395sed 's/^/| /' conftest.$ac_ext >&5
27396
27397ac_cv_lib_gdk_gdk_im_open=no
27398fi
ac1cb8d3
VS
27399rm -f conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27401LIBS=$ac_check_lib_save_LIBS
27402fi
27403echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27404echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27405if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27406 cat >>confdefs.h <<\_ACEOF
27407#define HAVE_XIM 1
27408_ACEOF
27409
27410fi
27411
27412
27413
27414 if test "$wxUSE_GPE" = "yes"; then
27415 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27416echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27417
0ad5d837
VZ
27418 ac_find_libraries=
27419 for ac_dir in $SEARCH_LIB;
a848cd7e 27420 do
3eca31dc 27421 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27422 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27423 ac_find_libraries=$ac_dir
27424 break 2
27425 fi
27426 done
27427 done
27428
27429 if test "$ac_find_libraries" != "" ; then
27430
0ad5d837 27431 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27432 ac_path_to_link=""
27433 else
0ad5d837
VZ
27434 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27435 result=$?
27436 if test $result = 0; then
27437 ac_path_to_link=""
27438 else
27439 ac_path_to_link=" -L$ac_find_libraries"
27440 fi
a848cd7e
SC
27441 fi
27442
27443 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27444 WXGPE=1
0ad5d837
VZ
27445 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27446echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27447 else
27448 echo "$as_me:$LINENO: result: not found" >&5
27449echo "${ECHO_T}not found" >&6
27450 fi
27451
27452 fi
27453 fi
27454
27455 if test "$wxUSE_MGL" = 1; then
27456 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27457echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27458 if test "x$MGL_ROOT" = x ; then
27459 echo "$as_me:$LINENO: result: not found" >&5
27460echo "${ECHO_T}not found" >&6
27461 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27462echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27463 { (exit 1); exit 1; }; }
27464 else
27465 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27466echo "${ECHO_T}$MGL_ROOT" >&6
27467 fi
27468
27469 echo "$as_me:$LINENO: checking for libmgl location" >&5
27470echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27471 case "${host}" in
27472 *-*-linux* )
27473 if test "x$wxUSE_SHARED" = xyes ; then
27474 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27475 else
27476 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27477 fi
27478 ;;
27479 *-pc-msdosdjgpp )
27480 mgl_os_candidates="dos32/dj2"
27481 ;;
27482 *)
27483 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27484echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27485 { (exit 1); exit 1; }; }
27486 esac
27487
27488 mgl_lib_type=""
27489 mgl_os=""
27490
27491 for mgl_os_i in $mgl_os_candidates ; do
27492 if test "x$mgl_os" = x ; then
27493 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27494 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27495 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27496 mgl_lib_type=debug
27497 mgl_os=$mgl_os_i
27498 fi
27499 fi
27500 if test "x$mgl_lib_type" = x ; then
27501 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27502 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27503 mgl_lib_type=release
27504 mgl_os=$mgl_os_i
27505 fi
27506 fi
27507 fi
27508 done
27509
27510 if test "x$mgl_os" = x ; then
27511 echo "$as_me:$LINENO: result: not found" >&5
27512echo "${ECHO_T}not found" >&6
27513 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27514echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27515 { (exit 1); exit 1; }; }
27516 fi
27517 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27518echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27519
27520 wxUSE_UNIVERSAL="yes"
27521
27522 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27523 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27524
27525 AFMINSTALL=afminstall
27526 TOOLKIT=MGL
27527 GUIDIST=MGL_DIST
27528 fi
27529
27530 if test "$wxUSE_MICROWIN" = 1; then
27531 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27532echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27533 if test "x$MICROWINDOWS" = x ; then
27534 echo "$as_me:$LINENO: result: not found" >&5
27535echo "${ECHO_T}not found" >&6
27536 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27537echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27538 { (exit 1); exit 1; }; }
27539 else
27540 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27541echo "${ECHO_T}$MICROWINDOWS" >&6
27542 fi
27543
27544 if test -f $MICROWINDOWS/lib/libmwin.a; then
27545 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27546echo "${ECHO_T}MicroWindows' libraries found." >&6
27547 else
27548 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27549echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27550 { (exit 1); exit 1; }; }
27551 fi
27552
27553 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27554 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27555
27556 wxUSE_UNIVERSAL="yes"
27557
27558 AFMINSTALL=afminstall
27559 TOOLKIT=MICROWIN
27560 GUIDIST=MICROWIN_DIST
27561
27562 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27563 fi
27564
74b84332 27565 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
be665c07 27566 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27567echo $ECHO_N "checking for X... $ECHO_C" >&6
27568
27569
27570# Check whether --with-x or --without-x was given.
27571if test "${with_x+set}" = set; then
27572 withval="$with_x"
27573
27574fi;
27575# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27576if test "x$with_x" = xno; then
27577 # The user explicitly disabled X.
27578 have_x=disabled
27579else
27580 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27581 # Both variables are already set.
27582 have_x=yes
27583 else
27584 if test "${ac_cv_have_x+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27586else
27587 # One or both of the vars are not set, and there is no cached value.
27588ac_x_includes=no ac_x_libraries=no
27589rm -fr conftest.dir
27590if mkdir conftest.dir; then
27591 cd conftest.dir
27592 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27593 cat >Imakefile <<'_ACEOF'
27594acfindx:
27595 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27596_ACEOF
27597 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27598 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27599 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27600 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27601 for ac_extension in a so sl; do
27602 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27603 test -f $ac_im_libdir/libX11.$ac_extension; then
27604 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27605 fi
27606 done
27607 # Screen out bogus values from the imake configuration. They are
27608 # bogus both because they are the default anyway, and because
27609 # using them would break gcc on systems where it needs fixed includes.
27610 case $ac_im_incroot in
27611 /usr/include) ;;
27612 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27613 esac
27614 case $ac_im_usrlibdir in
27615 /usr/lib | /lib) ;;
27616 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27617 esac
27618 fi
27619 cd ..
27620 rm -fr conftest.dir
27621fi
27622
27623# Standard set of common directories for X headers.
27624# Check X11 before X11Rn because it is often a symlink to the current release.
27625ac_x_header_dirs='
27626/usr/X11/include
27627/usr/X11R6/include
27628/usr/X11R5/include
27629/usr/X11R4/include
27630
27631/usr/include/X11
27632/usr/include/X11R6
27633/usr/include/X11R5
27634/usr/include/X11R4
27635
27636/usr/local/X11/include
27637/usr/local/X11R6/include
27638/usr/local/X11R5/include
27639/usr/local/X11R4/include
27640
27641/usr/local/include/X11
27642/usr/local/include/X11R6
27643/usr/local/include/X11R5
27644/usr/local/include/X11R4
27645
27646/usr/X386/include
27647/usr/x386/include
27648/usr/XFree86/include/X11
27649
27650/usr/include
27651/usr/local/include
27652/usr/unsupported/include
27653/usr/athena/include
27654/usr/local/x11r5/include
27655/usr/lpp/Xamples/include
27656
27657/usr/openwin/include
27658/usr/openwin/share/include'
27659
27660if test "$ac_x_includes" = no; then
be665c07 27661 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
27662 # First, try using that file with no special directory specified.
27663 cat >conftest.$ac_ext <<_ACEOF
27664/* confdefs.h. */
27665_ACEOF
27666cat confdefs.h >>conftest.$ac_ext
27667cat >>conftest.$ac_ext <<_ACEOF
27668/* end confdefs.h. */
27669#include <X11/Intrinsic.h>
27670_ACEOF
27671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27673 ac_status=$?
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } >/dev/null; then
27679 if test -s conftest.err; then
27680 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27682 else
27683 ac_cpp_err=
27684 fi
27685else
27686 ac_cpp_err=yes
27687fi
27688if test -z "$ac_cpp_err"; then
27689 # We can compile using X headers with no special include directory.
27690ac_x_includes=
27691else
27692 echo "$as_me: failed program was:" >&5
27693sed 's/^/| /' conftest.$ac_ext >&5
27694
27695 for ac_dir in $ac_x_header_dirs; do
27696 if test -r "$ac_dir/X11/Intrinsic.h"; then
27697 ac_x_includes=$ac_dir
27698 break
27699 fi
27700done
27701fi
27702rm -f conftest.err conftest.$ac_ext
27703fi # $ac_x_includes = no
27704
27705if test "$ac_x_libraries" = no; then
27706 # Check for the libraries.
27707 # See if we find them without any special options.
27708 # Don't add to $LIBS permanently.
27709 ac_save_LIBS=$LIBS
27710 LIBS="-lXt $LIBS"
27711 cat >conftest.$ac_ext <<_ACEOF
27712/* confdefs.h. */
27713_ACEOF
27714cat confdefs.h >>conftest.$ac_ext
27715cat >>conftest.$ac_ext <<_ACEOF
27716/* end confdefs.h. */
27717#include <X11/Intrinsic.h>
27718int
27719main ()
27720{
27721XtMalloc (0)
27722 ;
27723 return 0;
27724}
27725_ACEOF
27726rm -f conftest.$ac_objext conftest$ac_exeext
27727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27728 (eval $ac_link) 2>conftest.er1
a848cd7e 27729 ac_status=$?
ac1cb8d3
VS
27730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
a848cd7e
SC
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } &&
be665c07
JS
27735 { ac_try='test -z "$ac_c_werror_flag"
27736 || test ! -s conftest.err'
ac1cb8d3
VS
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
27748 LIBS=$ac_save_LIBS
27749# We can link X programs with no special library path.
27750ac_x_libraries=
27751else
27752 echo "$as_me: failed program was:" >&5
27753sed 's/^/| /' conftest.$ac_ext >&5
27754
27755LIBS=$ac_save_LIBS
27756for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27757do
27758 # Don't even attempt the hair of trying to link an X program!
27759 for ac_extension in a so sl; do
27760 if test -r $ac_dir/libXt.$ac_extension; then
27761 ac_x_libraries=$ac_dir
27762 break 2
27763 fi
27764 done
27765done
27766fi
ac1cb8d3
VS
27767rm -f conftest.err conftest.$ac_objext \
27768 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27769fi # $ac_x_libraries = no
27770
27771if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27772 # Didn't find X anywhere. Cache the known absence of X.
27773 ac_cv_have_x="have_x=no"
27774else
27775 # Record where we found X for the cache.
27776 ac_cv_have_x="have_x=yes \
ac1cb8d3 27777 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27778fi
27779fi
27780
27781 fi
27782 eval "$ac_cv_have_x"
27783fi # $with_x != no
27784
27785if test "$have_x" != yes; then
27786 echo "$as_me:$LINENO: result: $have_x" >&5
27787echo "${ECHO_T}$have_x" >&6
27788 no_x=yes
27789else
27790 # If each of the values was on the command line, it overrides each guess.
27791 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27792 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27793 # Update the cache value to reflect the command line values.
27794 ac_cv_have_x="have_x=yes \
27795 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
be665c07
JS
27796 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27797echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
27798fi
27799
27800if test "$no_x" = yes; then
27801 # Not all programs may use this symbol, but it does not hurt to define it.
27802
27803cat >>confdefs.h <<\_ACEOF
27804#define X_DISPLAY_MISSING 1
27805_ACEOF
27806
27807 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27808else
27809 if test -n "$x_includes"; then
27810 X_CFLAGS="$X_CFLAGS -I$x_includes"
27811 fi
27812
27813 # It would also be nice to do this for all -L options, not just this one.
27814 if test -n "$x_libraries"; then
27815 X_LIBS="$X_LIBS -L$x_libraries"
27816 # For Solaris; some versions of Sun CC require a space after -R and
27817 # others require no space. Words are not sufficient . . . .
27818 case `(uname -sr) 2>/dev/null` in
27819 "SunOS 5"*)
27820 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27821echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27822 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27823 cat >conftest.$ac_ext <<_ACEOF
27824/* confdefs.h. */
27825_ACEOF
27826cat confdefs.h >>conftest.$ac_ext
27827cat >>conftest.$ac_ext <<_ACEOF
27828/* end confdefs.h. */
27829
27830int
27831main ()
27832{
27833
27834 ;
27835 return 0;
27836}
27837_ACEOF
27838rm -f conftest.$ac_objext conftest$ac_exeext
27839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27840 (eval $ac_link) 2>conftest.er1
a848cd7e 27841 ac_status=$?
ac1cb8d3
VS
27842 grep -v '^ *+' conftest.er1 >conftest.err
27843 rm -f conftest.er1
27844 cat conftest.err >&5
a848cd7e
SC
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); } &&
be665c07
JS
27847 { ac_try='test -z "$ac_c_werror_flag"
27848 || test ! -s conftest.err'
ac1cb8d3
VS
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; } &&
27854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860 ac_R_nospace=yes
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865ac_R_nospace=no
27866fi
ac1cb8d3
VS
27867rm -f conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27869 if test $ac_R_nospace = yes; then
27870 echo "$as_me:$LINENO: result: no" >&5
27871echo "${ECHO_T}no" >&6
27872 X_LIBS="$X_LIBS -R$x_libraries"
27873 else
27874 LIBS="$ac_xsave_LIBS -R $x_libraries"
27875 cat >conftest.$ac_ext <<_ACEOF
27876/* confdefs.h. */
27877_ACEOF
27878cat confdefs.h >>conftest.$ac_ext
27879cat >>conftest.$ac_ext <<_ACEOF
27880/* end confdefs.h. */
27881
27882int
27883main ()
27884{
27885
27886 ;
27887 return 0;
27888}
27889_ACEOF
27890rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27892 (eval $ac_link) 2>conftest.er1
a848cd7e 27893 ac_status=$?
ac1cb8d3
VS
27894 grep -v '^ *+' conftest.er1 >conftest.err
27895 rm -f conftest.er1
27896 cat conftest.err >&5
a848cd7e
SC
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); } &&
be665c07
JS
27899 { ac_try='test -z "$ac_c_werror_flag"
27900 || test ! -s conftest.err'
ac1cb8d3
VS
27901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902 (eval $ac_try) 2>&5
27903 ac_status=$?
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; } &&
27906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; }; then
27912 ac_R_space=yes
27913else
27914 echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917ac_R_space=no
27918fi
ac1cb8d3
VS
27919rm -f conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27921 if test $ac_R_space = yes; then
27922 echo "$as_me:$LINENO: result: yes" >&5
27923echo "${ECHO_T}yes" >&6
27924 X_LIBS="$X_LIBS -R $x_libraries"
27925 else
27926 echo "$as_me:$LINENO: result: neither works" >&5
27927echo "${ECHO_T}neither works" >&6
27928 fi
27929 fi
27930 LIBS=$ac_xsave_LIBS
27931 esac
27932 fi
27933
27934 # Check for system-dependent libraries X programs must link with.
27935 # Do this before checking for the system-independent R6 libraries
27936 # (-lICE), since we may need -lsocket or whatever for X linking.
27937
27938 if test "$ISC" = yes; then
27939 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27940 else
27941 # Martyn Johnson says this is needed for Ultrix, if the X
27942 # libraries were built with DECnet support. And Karl Berry says
27943 # the Alpha needs dnet_stub (dnet does not exist).
27944 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27945 cat >conftest.$ac_ext <<_ACEOF
27946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951
27952/* Override any gcc2 internal prototype to avoid an error. */
27953#ifdef __cplusplus
27954extern "C"
27955#endif
27956/* We use char because int might match the return type of a gcc2
27957 builtin and then its argument prototype would still apply. */
27958char XOpenDisplay ();
27959int
27960main ()
27961{
27962XOpenDisplay ();
27963 ;
27964 return 0;
27965}
27966_ACEOF
27967rm -f conftest.$ac_objext conftest$ac_exeext
27968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27969 (eval $ac_link) 2>conftest.er1
a848cd7e 27970 ac_status=$?
ac1cb8d3
VS
27971 grep -v '^ *+' conftest.er1 >conftest.err
27972 rm -f conftest.er1
27973 cat conftest.err >&5
a848cd7e
SC
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } &&
be665c07
JS
27976 { ac_try='test -z "$ac_c_werror_flag"
27977 || test ! -s conftest.err'
ac1cb8d3
VS
27978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27979 (eval $ac_try) 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; }; then
27989 :
27990else
27991 echo "$as_me: failed program was:" >&5
27992sed 's/^/| /' conftest.$ac_ext >&5
27993
27994echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27995echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27996if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27997 echo $ECHO_N "(cached) $ECHO_C" >&6
27998else
27999 ac_check_lib_save_LIBS=$LIBS
28000LIBS="-ldnet $LIBS"
28001cat >conftest.$ac_ext <<_ACEOF
28002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
28007
28008/* Override any gcc2 internal prototype to avoid an error. */
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012/* We use char because int might match the return type of a gcc2
28013 builtin and then its argument prototype would still apply. */
28014char dnet_ntoa ();
28015int
28016main ()
28017{
28018dnet_ntoa ();
28019 ;
28020 return 0;
28021}
28022_ACEOF
28023rm -f conftest.$ac_objext conftest$ac_exeext
28024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28025 (eval $ac_link) 2>conftest.er1
a848cd7e 28026 ac_status=$?
ac1cb8d3
VS
28027 grep -v '^ *+' conftest.er1 >conftest.err
28028 rm -f conftest.er1
28029 cat conftest.err >&5
a848cd7e
SC
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); } &&
be665c07
JS
28032 { ac_try='test -z "$ac_c_werror_flag"
28033 || test ! -s conftest.err'
ac1cb8d3
VS
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } &&
28039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; }; then
28045 ac_cv_lib_dnet_dnet_ntoa=yes
28046else
28047 echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
28049
28050ac_cv_lib_dnet_dnet_ntoa=no
28051fi
ac1cb8d3
VS
28052rm -f conftest.err conftest.$ac_objext \
28053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28054LIBS=$ac_check_lib_save_LIBS
28055fi
28056echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28057echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28058if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28059 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28060fi
28061
28062 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28063 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28064echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28065if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28066 echo $ECHO_N "(cached) $ECHO_C" >&6
28067else
28068 ac_check_lib_save_LIBS=$LIBS
28069LIBS="-ldnet_stub $LIBS"
28070cat >conftest.$ac_ext <<_ACEOF
28071/* confdefs.h. */
28072_ACEOF
28073cat confdefs.h >>conftest.$ac_ext
28074cat >>conftest.$ac_ext <<_ACEOF
28075/* end confdefs.h. */
28076
28077/* Override any gcc2 internal prototype to avoid an error. */
28078#ifdef __cplusplus
28079extern "C"
28080#endif
28081/* We use char because int might match the return type of a gcc2
28082 builtin and then its argument prototype would still apply. */
28083char dnet_ntoa ();
28084int
28085main ()
28086{
28087dnet_ntoa ();
28088 ;
28089 return 0;
28090}
28091_ACEOF
28092rm -f conftest.$ac_objext conftest$ac_exeext
28093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28094 (eval $ac_link) 2>conftest.er1
a848cd7e 28095 ac_status=$?
ac1cb8d3
VS
28096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
a848cd7e
SC
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
be665c07
JS
28101 { ac_try='test -z "$ac_c_werror_flag"
28102 || test ! -s conftest.err'
ac1cb8d3
VS
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; } &&
28108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110 (eval $ac_try) 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); }; }; then
28114 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28115else
28116 echo "$as_me: failed program was:" >&5
28117sed 's/^/| /' conftest.$ac_ext >&5
28118
28119ac_cv_lib_dnet_stub_dnet_ntoa=no
28120fi
ac1cb8d3
VS
28121rm -f conftest.err conftest.$ac_objext \
28122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28123LIBS=$ac_check_lib_save_LIBS
28124fi
28125echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28126echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28127if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28128 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28129fi
28130
28131 fi
28132fi
ac1cb8d3
VS
28133rm -f conftest.err conftest.$ac_objext \
28134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28135 LIBS="$ac_xsave_LIBS"
28136
28137 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28138 # to get the SysV transport functions.
28139 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28140 # needs -lnsl.
28141 # The nsl library prevents programs from opening the X display
28142 # on Irix 5.2, according to T.E. Dickey.
28143 # The functions gethostbyname, getservbyname, and inet_addr are
28144 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28145 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28146echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28147if test "${ac_cv_func_gethostbyname+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149else
28150 cat >conftest.$ac_ext <<_ACEOF
28151/* confdefs.h. */
28152_ACEOF
28153cat confdefs.h >>conftest.$ac_ext
28154cat >>conftest.$ac_ext <<_ACEOF
28155/* end confdefs.h. */
ac1cb8d3
VS
28156/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28158#define gethostbyname innocuous_gethostbyname
28159
a848cd7e
SC
28160/* System header to define __stub macros and hopefully few prototypes,
28161 which can conflict with char gethostbyname (); below.
28162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28163 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28164
a848cd7e
SC
28165#ifdef __STDC__
28166# include <limits.h>
28167#else
28168# include <assert.h>
28169#endif
ac1cb8d3
VS
28170
28171#undef gethostbyname
28172
a848cd7e
SC
28173/* Override any gcc2 internal prototype to avoid an error. */
28174#ifdef __cplusplus
28175extern "C"
28176{
28177#endif
28178/* We use char because int might match the return type of a gcc2
28179 builtin and then its argument prototype would still apply. */
28180char gethostbyname ();
28181/* The GNU C library defines this for functions which it implements
28182 to always fail with ENOSYS. Some functions are actually named
28183 something starting with __ and the normal name is an alias. */
28184#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28185choke me
28186#else
28187char (*f) () = gethostbyname;
28188#endif
28189#ifdef __cplusplus
28190}
28191#endif
28192
28193int
28194main ()
28195{
28196return f != gethostbyname;
28197 ;
28198 return 0;
28199}
28200_ACEOF
28201rm -f conftest.$ac_objext conftest$ac_exeext
28202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28203 (eval $ac_link) 2>conftest.er1
a848cd7e 28204 ac_status=$?
ac1cb8d3
VS
28205 grep -v '^ *+' conftest.er1 >conftest.err
28206 rm -f conftest.er1
28207 cat conftest.err >&5
a848cd7e
SC
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); } &&
be665c07
JS
28210 { ac_try='test -z "$ac_c_werror_flag"
28211 || test ! -s conftest.err'
ac1cb8d3
VS
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28214 ac_status=$?
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; } &&
28217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28219 (eval $ac_try) 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; }; then
28223 ac_cv_func_gethostbyname=yes
28224else
28225 echo "$as_me: failed program was:" >&5
28226sed 's/^/| /' conftest.$ac_ext >&5
28227
28228ac_cv_func_gethostbyname=no
28229fi
ac1cb8d3
VS
28230rm -f conftest.err conftest.$ac_objext \
28231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28232fi
28233echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28234echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28235
28236 if test $ac_cv_func_gethostbyname = no; then
28237 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28238echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28239if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 ac_check_lib_save_LIBS=$LIBS
28243LIBS="-lnsl $LIBS"
28244cat >conftest.$ac_ext <<_ACEOF
28245/* confdefs.h. */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h. */
28250
28251/* Override any gcc2 internal prototype to avoid an error. */
28252#ifdef __cplusplus
28253extern "C"
28254#endif
28255/* We use char because int might match the return type of a gcc2
28256 builtin and then its argument prototype would still apply. */
28257char gethostbyname ();
28258int
28259main ()
28260{
28261gethostbyname ();
28262 ;
28263 return 0;
28264}
28265_ACEOF
28266rm -f conftest.$ac_objext conftest$ac_exeext
28267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28268 (eval $ac_link) 2>conftest.er1
28269 ac_status=$?
28270 grep -v '^ *+' conftest.er1 >conftest.err
28271 rm -f conftest.er1
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } &&
be665c07
JS
28275 { ac_try='test -z "$ac_c_werror_flag"
28276 || test ! -s conftest.err'
ac1cb8d3
VS
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest$ac_exeext'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
28288 ac_cv_lib_nsl_gethostbyname=yes
28289else
28290 echo "$as_me: failed program was:" >&5
28291sed 's/^/| /' conftest.$ac_ext >&5
28292
28293ac_cv_lib_nsl_gethostbyname=no
28294fi
28295rm -f conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
28297LIBS=$ac_check_lib_save_LIBS
28298fi
28299echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28300echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28301if test $ac_cv_lib_nsl_gethostbyname = yes; then
28302 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28303fi
28304
28305 if test $ac_cv_lib_nsl_gethostbyname = no; then
28306 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28307echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28308if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311 ac_check_lib_save_LIBS=$LIBS
28312LIBS="-lbsd $LIBS"
28313cat >conftest.$ac_ext <<_ACEOF
28314/* confdefs.h. */
28315_ACEOF
28316cat confdefs.h >>conftest.$ac_ext
28317cat >>conftest.$ac_ext <<_ACEOF
28318/* end confdefs.h. */
28319
28320/* Override any gcc2 internal prototype to avoid an error. */
28321#ifdef __cplusplus
28322extern "C"
28323#endif
28324/* We use char because int might match the return type of a gcc2
28325 builtin and then its argument prototype would still apply. */
28326char gethostbyname ();
28327int
28328main ()
28329{
28330gethostbyname ();
28331 ;
28332 return 0;
28333}
28334_ACEOF
28335rm -f conftest.$ac_objext conftest$ac_exeext
28336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28337 (eval $ac_link) 2>conftest.er1
a848cd7e 28338 ac_status=$?
ac1cb8d3
VS
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
a848cd7e
SC
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } &&
be665c07
JS
28344 { ac_try='test -z "$ac_c_werror_flag"
28345 || test ! -s conftest.err'
a848cd7e
SC
28346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28350 (exit $ac_status); }; } &&
28351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28353 (eval $ac_try) 2>&5
28354 ac_status=$?
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; }; then
28357 ac_cv_lib_bsd_gethostbyname=yes
28358else
28359 echo "$as_me: failed program was:" >&5
28360sed 's/^/| /' conftest.$ac_ext >&5
28361
28362ac_cv_lib_bsd_gethostbyname=no
28363fi
ac1cb8d3
VS
28364rm -f conftest.err conftest.$ac_objext \
28365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28366LIBS=$ac_check_lib_save_LIBS
28367fi
28368echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28369echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28370if test $ac_cv_lib_bsd_gethostbyname = yes; then
28371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28372fi
28373
28374 fi
28375 fi
28376
28377 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28378 # socket/setsockopt and other routines are undefined under SCO ODT
28379 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28380 # on later versions), says Simon Leinen: it contains gethostby*
28381 # variants that don't use the name server (or something). -lsocket
28382 # must be given before -lnsl if both are needed. We assume that
28383 # if connect needs -lnsl, so does gethostbyname.
28384 echo "$as_me:$LINENO: checking for connect" >&5
28385echo $ECHO_N "checking for connect... $ECHO_C" >&6
28386if test "${ac_cv_func_connect+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28388else
28389 cat >conftest.$ac_ext <<_ACEOF
28390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
ac1cb8d3
VS
28395/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28397#define connect innocuous_connect
28398
a848cd7e
SC
28399/* System header to define __stub macros and hopefully few prototypes,
28400 which can conflict with char connect (); below.
28401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28402 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28403
a848cd7e
SC
28404#ifdef __STDC__
28405# include <limits.h>
28406#else
28407# include <assert.h>
28408#endif
ac1cb8d3
VS
28409
28410#undef connect
28411
a848cd7e
SC
28412/* Override any gcc2 internal prototype to avoid an error. */
28413#ifdef __cplusplus
28414extern "C"
28415{
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 connect ();
28420/* The GNU C library defines this for functions which it implements
28421 to always fail with ENOSYS. Some functions are actually named
28422 something starting with __ and the normal name is an alias. */
28423#if defined (__stub_connect) || defined (__stub___connect)
28424choke me
28425#else
28426char (*f) () = connect;
28427#endif
28428#ifdef __cplusplus
28429}
28430#endif
28431
28432int
28433main ()
28434{
28435return f != connect;
28436 ;
28437 return 0;
28438}
28439_ACEOF
28440rm -f conftest.$ac_objext conftest$ac_exeext
28441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28442 (eval $ac_link) 2>conftest.er1
a848cd7e 28443 ac_status=$?
ac1cb8d3
VS
28444 grep -v '^ *+' conftest.er1 >conftest.err
28445 rm -f conftest.er1
28446 cat conftest.err >&5
a848cd7e
SC
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } &&
be665c07
JS
28449 { ac_try='test -z "$ac_c_werror_flag"
28450 || test ! -s conftest.err'
ac1cb8d3
VS
28451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452 (eval $ac_try) 2>&5
28453 ac_status=$?
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); }; } &&
28456 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28459 ac_status=$?
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; }; then
28462 ac_cv_func_connect=yes
28463else
28464 echo "$as_me: failed program was:" >&5
28465sed 's/^/| /' conftest.$ac_ext >&5
28466
28467ac_cv_func_connect=no
28468fi
ac1cb8d3
VS
28469rm -f conftest.err conftest.$ac_objext \
28470 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28471fi
28472echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28473echo "${ECHO_T}$ac_cv_func_connect" >&6
28474
28475 if test $ac_cv_func_connect = no; then
28476 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28477echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28478if test "${ac_cv_lib_socket_connect+set}" = set; then
28479 echo $ECHO_N "(cached) $ECHO_C" >&6
28480else
28481 ac_check_lib_save_LIBS=$LIBS
28482LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28483cat >conftest.$ac_ext <<_ACEOF
28484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h. */
28489
28490/* Override any gcc2 internal prototype to avoid an error. */
28491#ifdef __cplusplus
28492extern "C"
28493#endif
28494/* We use char because int might match the return type of a gcc2
28495 builtin and then its argument prototype would still apply. */
28496char connect ();
28497int
28498main ()
28499{
28500connect ();
28501 ;
28502 return 0;
28503}
28504_ACEOF
28505rm -f conftest.$ac_objext conftest$ac_exeext
28506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28507 (eval $ac_link) 2>conftest.er1
a848cd7e 28508 ac_status=$?
ac1cb8d3
VS
28509 grep -v '^ *+' conftest.er1 >conftest.err
28510 rm -f conftest.er1
28511 cat conftest.err >&5
a848cd7e
SC
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } &&
be665c07
JS
28514 { ac_try='test -z "$ac_c_werror_flag"
28515 || test ! -s conftest.err'
ac1cb8d3
VS
28516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28517 (eval $ac_try) 2>&5
28518 ac_status=$?
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; } &&
28521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; }; then
28527 ac_cv_lib_socket_connect=yes
28528else
28529 echo "$as_me: failed program was:" >&5
28530sed 's/^/| /' conftest.$ac_ext >&5
28531
28532ac_cv_lib_socket_connect=no
28533fi
ac1cb8d3
VS
28534rm -f conftest.err conftest.$ac_objext \
28535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28536LIBS=$ac_check_lib_save_LIBS
28537fi
28538echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28539echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28540if test $ac_cv_lib_socket_connect = yes; then
28541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28542fi
28543
28544 fi
28545
28546 # Guillermo Gomez says -lposix is necessary on A/UX.
28547 echo "$as_me:$LINENO: checking for remove" >&5
28548echo $ECHO_N "checking for remove... $ECHO_C" >&6
28549if test "${ac_cv_func_remove+set}" = set; then
28550 echo $ECHO_N "(cached) $ECHO_C" >&6
28551else
28552 cat >conftest.$ac_ext <<_ACEOF
28553/* confdefs.h. */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h. */
ac1cb8d3
VS
28558/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28560#define remove innocuous_remove
28561
a848cd7e
SC
28562/* System header to define __stub macros and hopefully few prototypes,
28563 which can conflict with char remove (); below.
28564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28565 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28566
a848cd7e
SC
28567#ifdef __STDC__
28568# include <limits.h>
28569#else
28570# include <assert.h>
28571#endif
ac1cb8d3
VS
28572
28573#undef remove
28574
a848cd7e
SC
28575/* Override any gcc2 internal prototype to avoid an error. */
28576#ifdef __cplusplus
28577extern "C"
28578{
28579#endif
28580/* We use char because int might match the return type of a gcc2
28581 builtin and then its argument prototype would still apply. */
28582char remove ();
28583/* The GNU C library defines this for functions which it implements
28584 to always fail with ENOSYS. Some functions are actually named
28585 something starting with __ and the normal name is an alias. */
28586#if defined (__stub_remove) || defined (__stub___remove)
28587choke me
28588#else
28589char (*f) () = remove;
28590#endif
28591#ifdef __cplusplus
28592}
28593#endif
28594
28595int
28596main ()
28597{
28598return f != remove;
28599 ;
28600 return 0;
28601}
28602_ACEOF
28603rm -f conftest.$ac_objext conftest$ac_exeext
28604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28605 (eval $ac_link) 2>conftest.er1
a848cd7e 28606 ac_status=$?
ac1cb8d3
VS
28607 grep -v '^ *+' conftest.er1 >conftest.err
28608 rm -f conftest.er1
28609 cat conftest.err >&5
a848cd7e
SC
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } &&
be665c07
JS
28612 { ac_try='test -z "$ac_c_werror_flag"
28613 || test ! -s conftest.err'
ac1cb8d3
VS
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
28625 ac_cv_func_remove=yes
28626else
28627 echo "$as_me: failed program was:" >&5
28628sed 's/^/| /' conftest.$ac_ext >&5
28629
28630ac_cv_func_remove=no
28631fi
ac1cb8d3
VS
28632rm -f conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28634fi
28635echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28636echo "${ECHO_T}$ac_cv_func_remove" >&6
28637
28638 if test $ac_cv_func_remove = no; then
28639 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28640echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28641if test "${ac_cv_lib_posix_remove+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 ac_check_lib_save_LIBS=$LIBS
28645LIBS="-lposix $LIBS"
28646cat >conftest.$ac_ext <<_ACEOF
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
28652
28653/* Override any gcc2 internal prototype to avoid an error. */
28654#ifdef __cplusplus
28655extern "C"
28656#endif
28657/* We use char because int might match the return type of a gcc2
28658 builtin and then its argument prototype would still apply. */
28659char remove ();
28660int
28661main ()
28662{
28663remove ();
28664 ;
28665 return 0;
28666}
28667_ACEOF
28668rm -f conftest.$ac_objext conftest$ac_exeext
28669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28670 (eval $ac_link) 2>conftest.er1
a848cd7e 28671 ac_status=$?
ac1cb8d3
VS
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
a848cd7e
SC
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } &&
be665c07
JS
28677 { ac_try='test -z "$ac_c_werror_flag"
28678 || test ! -s conftest.err'
ac1cb8d3
VS
28679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28680 (eval $ac_try) 2>&5
28681 ac_status=$?
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); }; } &&
28684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686 (eval $ac_try) 2>&5
28687 ac_status=$?
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; }; then
28690 ac_cv_lib_posix_remove=yes
28691else
28692 echo "$as_me: failed program was:" >&5
28693sed 's/^/| /' conftest.$ac_ext >&5
28694
28695ac_cv_lib_posix_remove=no
28696fi
ac1cb8d3
VS
28697rm -f conftest.err conftest.$ac_objext \
28698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28699LIBS=$ac_check_lib_save_LIBS
28700fi
28701echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28702echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28703if test $ac_cv_lib_posix_remove = yes; then
28704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28705fi
28706
28707 fi
28708
28709 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28710 echo "$as_me:$LINENO: checking for shmat" >&5
28711echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28712if test "${ac_cv_func_shmat+set}" = set; then
28713 echo $ECHO_N "(cached) $ECHO_C" >&6
28714else
28715 cat >conftest.$ac_ext <<_ACEOF
28716/* confdefs.h. */
28717_ACEOF
28718cat confdefs.h >>conftest.$ac_ext
28719cat >>conftest.$ac_ext <<_ACEOF
28720/* end confdefs.h. */
ac1cb8d3
VS
28721/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28723#define shmat innocuous_shmat
28724
a848cd7e
SC
28725/* System header to define __stub macros and hopefully few prototypes,
28726 which can conflict with char shmat (); below.
28727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28728 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28729
a848cd7e
SC
28730#ifdef __STDC__
28731# include <limits.h>
28732#else
28733# include <assert.h>
28734#endif
ac1cb8d3
VS
28735
28736#undef shmat
28737
a848cd7e
SC
28738/* Override any gcc2 internal prototype to avoid an error. */
28739#ifdef __cplusplus
28740extern "C"
28741{
28742#endif
28743/* We use char because int might match the return type of a gcc2
28744 builtin and then its argument prototype would still apply. */
28745char shmat ();
28746/* The GNU C library defines this for functions which it implements
28747 to always fail with ENOSYS. Some functions are actually named
28748 something starting with __ and the normal name is an alias. */
28749#if defined (__stub_shmat) || defined (__stub___shmat)
28750choke me
28751#else
28752char (*f) () = shmat;
28753#endif
28754#ifdef __cplusplus
28755}
28756#endif
28757
28758int
28759main ()
28760{
28761return f != shmat;
28762 ;
28763 return 0;
28764}
28765_ACEOF
28766rm -f conftest.$ac_objext conftest$ac_exeext
28767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28768 (eval $ac_link) 2>conftest.er1
a848cd7e 28769 ac_status=$?
ac1cb8d3
VS
28770 grep -v '^ *+' conftest.er1 >conftest.err
28771 rm -f conftest.er1
28772 cat conftest.err >&5
a848cd7e
SC
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
be665c07
JS
28775 { ac_try='test -z "$ac_c_werror_flag"
28776 || test ! -s conftest.err'
ac1cb8d3
VS
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 ac_cv_func_shmat=yes
28789else
28790 echo "$as_me: failed program was:" >&5
28791sed 's/^/| /' conftest.$ac_ext >&5
28792
28793ac_cv_func_shmat=no
28794fi
ac1cb8d3
VS
28795rm -f conftest.err conftest.$ac_objext \
28796 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28797fi
28798echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28799echo "${ECHO_T}$ac_cv_func_shmat" >&6
28800
28801 if test $ac_cv_func_shmat = no; then
28802 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28803echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28804if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28806else
28807 ac_check_lib_save_LIBS=$LIBS
28808LIBS="-lipc $LIBS"
28809cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
28815
28816/* Override any gcc2 internal prototype to avoid an error. */
28817#ifdef __cplusplus
28818extern "C"
28819#endif
28820/* We use char because int might match the return type of a gcc2
28821 builtin and then its argument prototype would still apply. */
28822char shmat ();
28823int
28824main ()
28825{
28826shmat ();
28827 ;
28828 return 0;
28829}
28830_ACEOF
28831rm -f conftest.$ac_objext conftest$ac_exeext
28832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28833 (eval $ac_link) 2>conftest.er1
a848cd7e 28834 ac_status=$?
ac1cb8d3
VS
28835 grep -v '^ *+' conftest.er1 >conftest.err
28836 rm -f conftest.er1
28837 cat conftest.err >&5
a848cd7e
SC
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); } &&
be665c07
JS
28840 { ac_try='test -z "$ac_c_werror_flag"
28841 || test ! -s conftest.err'
ac1cb8d3
VS
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; } &&
28847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28849 (eval $ac_try) 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; }; then
28853 ac_cv_lib_ipc_shmat=yes
28854else
28855 echo "$as_me: failed program was:" >&5
28856sed 's/^/| /' conftest.$ac_ext >&5
28857
28858ac_cv_lib_ipc_shmat=no
28859fi
ac1cb8d3
VS
28860rm -f conftest.err conftest.$ac_objext \
28861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28862LIBS=$ac_check_lib_save_LIBS
28863fi
28864echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28865echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28866if test $ac_cv_lib_ipc_shmat = yes; then
28867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28868fi
28869
28870 fi
28871 fi
28872
28873 # Check for libraries that X11R6 Xt/Xaw programs need.
28874 ac_save_LDFLAGS=$LDFLAGS
28875 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28876 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28877 # check for ICE first), but we must link in the order -lSM -lICE or
28878 # we get undefined symbols. So assume we have SM if we have ICE.
28879 # These have to be linked with before -lX11, unlike the other
28880 # libraries we check for below, so use a different variable.
28881 # John Interrante, Karl Berry
28882 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28883echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28884if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28886else
28887 ac_check_lib_save_LIBS=$LIBS
28888LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28889cat >conftest.$ac_ext <<_ACEOF
28890/* confdefs.h. */
28891_ACEOF
28892cat confdefs.h >>conftest.$ac_ext
28893cat >>conftest.$ac_ext <<_ACEOF
28894/* end confdefs.h. */
28895
28896/* Override any gcc2 internal prototype to avoid an error. */
28897#ifdef __cplusplus
28898extern "C"
28899#endif
28900/* We use char because int might match the return type of a gcc2
28901 builtin and then its argument prototype would still apply. */
28902char IceConnectionNumber ();
28903int
28904main ()
28905{
28906IceConnectionNumber ();
28907 ;
28908 return 0;
28909}
28910_ACEOF
28911rm -f conftest.$ac_objext conftest$ac_exeext
28912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28913 (eval $ac_link) 2>conftest.er1
a848cd7e 28914 ac_status=$?
ac1cb8d3
VS
28915 grep -v '^ *+' conftest.er1 >conftest.err
28916 rm -f conftest.er1
28917 cat conftest.err >&5
a848cd7e
SC
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } &&
be665c07
JS
28920 { ac_try='test -z "$ac_c_werror_flag"
28921 || test ! -s conftest.err'
ac1cb8d3
VS
28922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 (eval $ac_try) 2>&5
28924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28929 (eval $ac_try) 2>&5
28930 ac_status=$?
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; }; then
28933 ac_cv_lib_ICE_IceConnectionNumber=yes
28934else
28935 echo "$as_me: failed program was:" >&5
28936sed 's/^/| /' conftest.$ac_ext >&5
28937
28938ac_cv_lib_ICE_IceConnectionNumber=no
28939fi
ac1cb8d3
VS
28940rm -f conftest.err conftest.$ac_objext \
28941 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28942LIBS=$ac_check_lib_save_LIBS
28943fi
28944echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28945echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28946if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28947 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28948fi
28949
28950 LDFLAGS=$ac_save_LDFLAGS
28951
28952fi
28953
28954
28955 if test "$no_x" = "yes"; then
89d90d6d
VZ
28956 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28957echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28958 { (exit 1); exit 1; }; }
a848cd7e
SC
28959 fi
28960
74b84332
VS
28961 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28962 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28963 AFMINSTALL=afminstall
28964 COMPILED_X_PROGRAM=0
28965
74b84332
VS
28966 fi
28967
28968 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28969 if test "$wxUSE_NANOX" = "yes"; then
28970 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28971echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28972 if test "x$MICROWIN" = x ; then
28973 echo "$as_me:$LINENO: result: not found" >&5
28974echo "${ECHO_T}not found" >&6
28975 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28976echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28977 { (exit 1); exit 1; }; }
28978 else
28979 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28980echo "${ECHO_T}$MICROWIN" >&6
28981 cat >>confdefs.h <<\_ACEOF
28982#define wxUSE_NANOX 1
28983_ACEOF
28984
28985 fi
28986 fi
28987
28988 if test "$wxUSE_UNICODE" = "yes"; then
28989
28990 succeeded=no
28991
28992 if test -z "$PKG_CONFIG"; then
28993 # Extract the first word of "pkg-config", so it can be a program name with args.
28994set dummy pkg-config; ac_word=$2
28995echo "$as_me:$LINENO: checking for $ac_word" >&5
28996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28997if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
28999else
29000 case $PKG_CONFIG in
29001 [\\/]* | ?:[\\/]*)
29002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29003 ;;
29004 *)
29005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29006for as_dir in $PATH
29007do
29008 IFS=$as_save_IFS
29009 test -z "$as_dir" && as_dir=.
29010 for ac_exec_ext in '' $ac_executable_extensions; do
29011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29014 break 2
29015 fi
29016done
29017done
29018
29019 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29020 ;;
29021esac
29022fi
29023PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29024
29025if test -n "$PKG_CONFIG"; then
29026 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29027echo "${ECHO_T}$PKG_CONFIG" >&6
29028else
29029 echo "$as_me:$LINENO: result: no" >&5
29030echo "${ECHO_T}no" >&6
29031fi
29032
29033 fi
29034
29035 if test "$PKG_CONFIG" = "no" ; then
29036 echo "*** The pkg-config script could not be found. Make sure it is"
29037 echo "*** in your path, or set the PKG_CONFIG environment variable"
29038 echo "*** to the full path to pkg-config."
29039 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29040 else
29041 PKG_CONFIG_MIN_VERSION=0.9.0
29042 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29043 echo "$as_me:$LINENO: checking for pangox" >&5
29044echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29045
29046 if $PKG_CONFIG --exists "pangox" ; then
29047 echo "$as_me:$LINENO: result: yes" >&5
29048echo "${ECHO_T}yes" >&6
29049 succeeded=yes
29050
29051 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29052echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29053 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29054 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29055echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29056
29057 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29058echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29059 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29060 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29061echo "${ECHO_T}$PANGOX_LIBS" >&6
29062 else
29063 PANGOX_CFLAGS=""
29064 PANGOX_LIBS=""
29065 ## If we have a custom action on failure, don't print errors, but
29066 ## do set a variable so people can do so.
29067 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29068
29069 fi
29070
29071
29072
29073 else
29074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29076 fi
29077 fi
29078
29079 if test $succeeded = yes; then
29080
29081 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
29082 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29083
29084 else
29085
29086 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29087echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29088 { (exit 1); exit 1; }; }
29089
29090
29091 fi
29092
29093
29094 succeeded=no
29095
29096 if test -z "$PKG_CONFIG"; then
29097 # Extract the first word of "pkg-config", so it can be a program name with args.
29098set dummy pkg-config; ac_word=$2
29099echo "$as_me:$LINENO: checking for $ac_word" >&5
29100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29101if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29103else
29104 case $PKG_CONFIG in
29105 [\\/]* | ?:[\\/]*)
29106 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29107 ;;
29108 *)
29109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29110for as_dir in $PATH
29111do
29112 IFS=$as_save_IFS
29113 test -z "$as_dir" && as_dir=.
29114 for ac_exec_ext in '' $ac_executable_extensions; do
29115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29116 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29118 break 2
29119 fi
29120done
29121done
29122
29123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29124 ;;
29125esac
29126fi
29127PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29128
29129if test -n "$PKG_CONFIG"; then
29130 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29131echo "${ECHO_T}$PKG_CONFIG" >&6
29132else
29133 echo "$as_me:$LINENO: result: no" >&5
29134echo "${ECHO_T}no" >&6
29135fi
29136
29137 fi
29138
29139 if test "$PKG_CONFIG" = "no" ; then
29140 echo "*** The pkg-config script could not be found. Make sure it is"
29141 echo "*** in your path, or set the PKG_CONFIG environment variable"
29142 echo "*** to the full path to pkg-config."
29143 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29144 else
29145 PKG_CONFIG_MIN_VERSION=0.9.0
29146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29147 echo "$as_me:$LINENO: checking for pangoft2" >&5
29148echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29149
29150 if $PKG_CONFIG --exists "pangoft2" ; then
29151 echo "$as_me:$LINENO: result: yes" >&5
29152echo "${ECHO_T}yes" >&6
29153 succeeded=yes
29154
29155 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29156echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29157 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29158 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29159echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29160
29161 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29162echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29163 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29164 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29165echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29166 else
29167 PANGOFT2_CFLAGS=""
29168 PANGOFT2_LIBS=""
29169 ## If we have a custom action on failure, don't print errors, but
29170 ## do set a variable so people can do so.
29171 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29172
29173 fi
29174
29175
29176
29177 else
29178 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29179 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29180 fi
29181 fi
29182
29183 if test $succeeded = yes; then
29184
29185 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
29186 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29187
29188 else
29189
29190 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29191echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29192 wxUSE_PRINTING_ARCHITECTURE="no"
29193
29194
29195 fi
29196
29197
29198 succeeded=no
29199
29200 if test -z "$PKG_CONFIG"; then
29201 # Extract the first word of "pkg-config", so it can be a program name with args.
29202set dummy pkg-config; ac_word=$2
29203echo "$as_me:$LINENO: checking for $ac_word" >&5
29204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29205if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29206 echo $ECHO_N "(cached) $ECHO_C" >&6
29207else
29208 case $PKG_CONFIG in
29209 [\\/]* | ?:[\\/]*)
29210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29211 ;;
29212 *)
29213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29214for as_dir in $PATH
29215do
29216 IFS=$as_save_IFS
29217 test -z "$as_dir" && as_dir=.
29218 for ac_exec_ext in '' $ac_executable_extensions; do
29219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29222 break 2
29223 fi
29224done
29225done
29226
29227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29228 ;;
29229esac
29230fi
29231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29232
29233if test -n "$PKG_CONFIG"; then
29234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29235echo "${ECHO_T}$PKG_CONFIG" >&6
29236else
29237 echo "$as_me:$LINENO: result: no" >&5
29238echo "${ECHO_T}no" >&6
29239fi
29240
29241 fi
29242
29243 if test "$PKG_CONFIG" = "no" ; then
29244 echo "*** The pkg-config script could not be found. Make sure it is"
29245 echo "*** in your path, or set the PKG_CONFIG environment variable"
29246 echo "*** to the full path to pkg-config."
29247 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29248 else
29249 PKG_CONFIG_MIN_VERSION=0.9.0
29250 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29251 echo "$as_me:$LINENO: checking for pangoxft" >&5
29252echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29253
29254 if $PKG_CONFIG --exists "pangoxft" ; then
29255 echo "$as_me:$LINENO: result: yes" >&5
29256echo "${ECHO_T}yes" >&6
29257 succeeded=yes
29258
29259 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29260echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29261 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29262 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29263echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29264
29265 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29266echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29267 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29268 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29269echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29270 else
29271 PANGOXFT_CFLAGS=""
29272 PANGOXFT_LIBS=""
29273 ## If we have a custom action on failure, don't print errors, but
29274 ## do set a variable so people can do so.
29275 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29276
29277 fi
29278
29279
29280
29281 else
29282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29284 fi
29285 fi
29286
29287 if test $succeeded = yes; then
29288
4ae1af05
MB
29289 cat >>confdefs.h <<\_ACEOF
29290#define HAVE_PANGO_XFT 1
29291_ACEOF
29292
a848cd7e
SC
29293 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29294 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29295
29296 else
29297
29298 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29299echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29300
29301
29302 fi
29303
304205f1
VS
29304 save_CFLAGS="$CFLAGS"
29305 save_LIBS="$LIBS"
29306 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29307 LIBS="$LIBS $PANGOX_LIBS"
29308
29309for ac_func in pango_font_family_is_monospace
29310do
29311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29312echo "$as_me:$LINENO: checking for $ac_func" >&5
29313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29314if eval "test \"\${$as_ac_var+set}\" = set"; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29316else
29317 cat >conftest.$ac_ext <<_ACEOF
29318/* confdefs.h. */
29319_ACEOF
29320cat confdefs.h >>conftest.$ac_ext
29321cat >>conftest.$ac_ext <<_ACEOF
29322/* end confdefs.h. */
29323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29325#define $ac_func innocuous_$ac_func
29326
29327/* System header to define __stub macros and hopefully few prototypes,
29328 which can conflict with char $ac_func (); below.
29329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29330 <limits.h> exists even on freestanding compilers. */
29331
29332#ifdef __STDC__
29333# include <limits.h>
29334#else
29335# include <assert.h>
29336#endif
29337
29338#undef $ac_func
29339
29340/* Override any gcc2 internal prototype to avoid an error. */
29341#ifdef __cplusplus
29342extern "C"
29343{
29344#endif
29345/* We use char because int might match the return type of a gcc2
29346 builtin and then its argument prototype would still apply. */
29347char $ac_func ();
29348/* The GNU C library defines this for functions which it implements
29349 to always fail with ENOSYS. Some functions are actually named
29350 something starting with __ and the normal name is an alias. */
29351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29352choke me
29353#else
29354char (*f) () = $ac_func;
29355#endif
29356#ifdef __cplusplus
29357}
29358#endif
29359
29360int
29361main ()
29362{
29363return f != $ac_func;
29364 ;
29365 return 0;
29366}
29367_ACEOF
29368rm -f conftest.$ac_objext conftest$ac_exeext
29369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29370 (eval $ac_link) 2>conftest.er1
29371 ac_status=$?
29372 grep -v '^ *+' conftest.er1 >conftest.err
29373 rm -f conftest.er1
29374 cat conftest.err >&5
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); } &&
be665c07
JS
29377 { ac_try='test -z "$ac_c_werror_flag"
29378 || test ! -s conftest.err'
304205f1
VS
29379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380 (eval $ac_try) 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; } &&
29384 { ac_try='test -s conftest$ac_exeext'
29385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386 (eval $ac_try) 2>&5
29387 ac_status=$?
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; }; then
29390 eval "$as_ac_var=yes"
29391else
29392 echo "$as_me: failed program was:" >&5
29393sed 's/^/| /' conftest.$ac_ext >&5
29394
29395eval "$as_ac_var=no"
29396fi
29397rm -f conftest.err conftest.$ac_objext \
29398 conftest$ac_exeext conftest.$ac_ext
29399fi
29400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29402if test `eval echo '${'$as_ac_var'}'` = yes; then
29403 cat >>confdefs.h <<_ACEOF
29404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29405_ACEOF
29406
29407fi
29408done
29409
29410 CFLAGS="$save_CFLAGS"
29411 LIBS="$save_LIBS"
a848cd7e
SC
29412 fi
29413
29414 wxUSE_UNIVERSAL="yes"
29415
29416 if test "$wxUSE_NANOX" = "yes"; then
29417 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29418 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"
29419 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29420 else
29421 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29422 fi
29423
a848cd7e
SC
29424 TOOLKIT=X11
29425 GUIDIST=X11_DIST
29426 fi
29427
29428 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29429 if test "$wxUSE_UNICODE" = "yes"; then
29430 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29431echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29432 { (exit 1); exit 1; }; }
29433 fi
29434
74b84332
VS
29435 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29436echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29437
74b84332
VS
29438ac_find_includes=
29439for ac_dir in $SEARCH_INCLUDE /usr/include;
29440 do
29441 if test -f "$ac_dir/Xm/Xm.h"; then
29442 ac_find_includes=$ac_dir
29443 break
29444 fi
29445 done
a848cd7e 29446
74b84332
VS
29447 if test "$ac_find_includes" != "" ; then
29448 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29449echo "${ECHO_T}found in $ac_find_includes" >&6
29450
29451 if test "x$ac_find_includes" = "x/usr/include"; then
29452 ac_path_to_include=""
29453 else
29454 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29455 result=$?
29456 if test $result = 0; then
29457 ac_path_to_include=""
29458 else
29459 ac_path_to_include=" -I$ac_find_includes"
29460 fi
a848cd7e
SC
29461 fi
29462
74b84332
VS
29463 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29464 else
e051b34e
MW
29465 save_CFLAGS=$CFLAGS
29466 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29467
74b84332 29468 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29469/* confdefs.h. */
29470_ACEOF
29471cat confdefs.h >>conftest.$ac_ext
29472cat >>conftest.$ac_ext <<_ACEOF
29473/* end confdefs.h. */
29474
74b84332
VS
29475 #include <Xm/Xm.h>
29476
a848cd7e
SC
29477int
29478main ()
29479{
29480
74b84332
VS
29481 int version;
29482 version = xmUseVersion;
29483
a848cd7e
SC
29484 ;
29485 return 0;
29486}
29487_ACEOF
74b84332
VS
29488rm -f conftest.$ac_objext
29489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29490 (eval $ac_compile) 2>conftest.er1
a848cd7e 29491 ac_status=$?
ac1cb8d3
VS
29492 grep -v '^ *+' conftest.er1 >conftest.err
29493 rm -f conftest.er1
29494 cat conftest.err >&5
a848cd7e
SC
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); } &&
be665c07
JS
29497 { ac_try='test -z "$ac_c_werror_flag"
29498 || test ! -s conftest.err'
ac1cb8d3
VS
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; } &&
74b84332 29504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506 (eval $ac_try) 2>&5
29507 ac_status=$?
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
74b84332
VS
29510
29511 echo "$as_me:$LINENO: result: found in default search path" >&5
29512echo "${ECHO_T}found in default search path" >&6
29513 COMPILED_X_PROGRAM=1
29514
a848cd7e
SC
29515else
29516 echo "$as_me: failed program was:" >&5
29517sed 's/^/| /' conftest.$ac_ext >&5
29518
a848cd7e 29519
74b84332
VS
29520 echo "$as_me:$LINENO: result: no" >&5
29521echo "${ECHO_T}no" >&6
e051b34e
MW
29522 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29523echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29524 { (exit 1); exit 1; }; }
a848cd7e 29525
a848cd7e 29526
a848cd7e 29527fi
74b84332 29528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29529
29530 CFLAGS=$save_CFLAGS
74b84332
VS
29531 fi
29532
0ad5d837
VZ
29533
29534 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29535echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29536
0ad5d837
VZ
29537 ac_find_libraries=
29538 for ac_dir in $SEARCH_LIB;
74b84332 29539 do
3eca31dc 29540 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29541 if test -f "$ac_dir/libXm.$ac_extension"; then
29542 ac_find_libraries=$ac_dir
29543 break 2
a848cd7e 29544 fi
74b84332
VS
29545 done
29546 done
a848cd7e 29547
0ad5d837
VZ
29548
29549 if test "x$ac_find_libraries" != "x" ; then
29550 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29551echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29552
74b84332 29553
0ad5d837 29554 if test "$ac_find_libraries" = "default location"; then
74b84332 29555 ac_path_to_link=""
a848cd7e 29556 else
0ad5d837
VZ
29557 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29558 result=$?
29559 if test $result = 0; then
29560 ac_path_to_link=""
29561 else
29562 ac_path_to_link=" -L$ac_find_libraries"
29563 fi
74b84332
VS
29564 fi
29565
0ad5d837
VZ
29566 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29567 else
29568 save_CFLAGS=$CFLAGS
29569 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29570 save_LIBS="$LIBS"
29571 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29572
0ad5d837 29573 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579
0ad5d837 29580 #include <Xm/Xm.h>
74b84332 29581
a848cd7e
SC
29582int
29583main ()
29584{
74b84332 29585
0ad5d837
VZ
29586 int version;
29587 version = xmUseVersion;
74b84332 29588
a848cd7e
SC
29589 ;
29590 return 0;
29591}
29592_ACEOF
0ad5d837
VZ
29593rm -f conftest.$ac_objext conftest$ac_exeext
29594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29595 (eval $ac_link) 2>conftest.er1
a848cd7e 29596 ac_status=$?
ac1cb8d3
VS
29597 grep -v '^ *+' conftest.er1 >conftest.err
29598 rm -f conftest.er1
29599 cat conftest.err >&5
a848cd7e
SC
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } &&
be665c07
JS
29602 { ac_try='test -z "$ac_c_werror_flag"
29603 || test ! -s conftest.err'
ac1cb8d3
VS
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; } &&
0ad5d837 29609 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
74b84332 29615
0ad5d837 29616 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29617echo "${ECHO_T}found in default search path" >&6
0ad5d837 29618 COMPILED_X_PROGRAM=1
74b84332 29619
a848cd7e
SC
29620else
29621 echo "$as_me: failed program was:" >&5
29622sed 's/^/| /' conftest.$ac_ext >&5
29623
74b84332 29624
6f9cf1e6 29625 echo "$as_me:$LINENO: result: no" >&5
74b84332 29626echo "${ECHO_T}no" >&6
6f9cf1e6 29627 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29628echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29629 { (exit 1); exit 1; }; }
29630
29631
29632fi
0ad5d837
VZ
29633rm -f conftest.err conftest.$ac_objext \
29634 conftest$ac_exeext conftest.$ac_ext
74b84332 29635
0ad5d837 29636 CFLAGS=$save_CFLAGS
6f9cf1e6 29637 LIBS="$save_LIBS"
74b84332
VS
29638 fi
29639
29640 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29641echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29642 libp_link=""
29643 libsm_ice_link=""
29644 libs_found=0
29645 for libp in "" " -lXp"; do
29646 if test "$libs_found" = "0"; then
29647 for libsm_ice in "" " -lSM -lICE"; do
29648 if test "$libs_found" = "0"; then
29649 save_LIBS="$LIBS"
29650 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29651 save_CFLAGS=$CFLAGS
29652 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29653
29654 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29655/* confdefs.h. */
29656_ACEOF
29657cat confdefs.h >>conftest.$ac_ext
29658cat >>conftest.$ac_ext <<_ACEOF
29659/* end confdefs.h. */
29660
74b84332
VS
29661 #include <Xm/Xm.h>
29662 #include <Xm/List.h>
29663
a848cd7e
SC
29664int
29665main ()
29666{
74b84332
VS
29667
29668 XmString string = NULL;
29669 Widget w = NULL;
29670 int position = 0;
29671 XmListAddItem(w, string, position);
29672
a848cd7e
SC
29673 ;
29674 return 0;
29675}
29676_ACEOF
29677rm -f conftest.$ac_objext conftest$ac_exeext
29678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29679 (eval $ac_link) 2>conftest.er1
a848cd7e 29680 ac_status=$?
ac1cb8d3
VS
29681 grep -v '^ *+' conftest.er1 >conftest.err
29682 rm -f conftest.er1
29683 cat conftest.err >&5
a848cd7e
SC
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
be665c07
JS
29686 { ac_try='test -z "$ac_c_werror_flag"
29687 || test ! -s conftest.err'
ac1cb8d3
VS
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; } &&
29693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695 (eval $ac_try) 2>&5
29696 ac_status=$?
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; }; then
29699
29700 libp_link="$libp"
29701 libsm_ice_link="$libsm_ice"
29702 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29703echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29704 libs_found=1
29705
29706else
29707 echo "$as_me: failed program was:" >&5
29708sed 's/^/| /' conftest.$ac_ext >&5
29709
29710
29711
29712fi
ac1cb8d3
VS
29713rm -f conftest.err conftest.$ac_objext \
29714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29715
29716 LIBS="$save_LIBS"
29717 CFLAGS=$save_CFLAGS
29718 fi
29719 done
29720 fi
29721 done
29722
29723 if test "$libs_found" = "0"; then
29724 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29725echo "${ECHO_T}can't find the right libraries" >&6
29726 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29727echo "$as_me: error: can't link a simple motif program" >&2;}
29728 { (exit 1); exit 1; }; }
29729 fi
29730
62fa8b3a
MW
29731 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29732echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29733if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29735else
29736 ac_check_lib_save_LIBS=$LIBS
29737LIBS="-lSgm $LIBS"
29738cat >conftest.$ac_ext <<_ACEOF
29739/* confdefs.h. */
29740_ACEOF
29741cat confdefs.h >>conftest.$ac_ext
29742cat >>conftest.$ac_ext <<_ACEOF
29743/* end confdefs.h. */
29744
29745/* Override any gcc2 internal prototype to avoid an error. */
29746#ifdef __cplusplus
29747extern "C"
29748#endif
29749/* We use char because int might match the return type of a gcc2
29750 builtin and then its argument prototype would still apply. */
29751char SgCreateList ();
29752int
29753main ()
29754{
29755SgCreateList ();
29756 ;
29757 return 0;
29758}
29759_ACEOF
29760rm -f conftest.$ac_objext conftest$ac_exeext
29761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29762 (eval $ac_link) 2>conftest.er1
29763 ac_status=$?
29764 grep -v '^ *+' conftest.er1 >conftest.err
29765 rm -f conftest.er1
29766 cat conftest.err >&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
be665c07
JS
29769 { ac_try='test -z "$ac_c_werror_flag"
29770 || test ! -s conftest.err'
62fa8b3a
MW
29771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29773 ac_status=$?
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; } &&
29776 { ac_try='test -s conftest$ac_exeext'
29777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778 (eval $ac_try) 2>&5
29779 ac_status=$?
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; }; then
29782 ac_cv_lib_Sgm_SgCreateList=yes
29783else
29784 echo "$as_me: failed program was:" >&5
29785sed 's/^/| /' conftest.$ac_ext >&5
29786
29787ac_cv_lib_Sgm_SgCreateList=no
29788fi
29789rm -f conftest.err conftest.$ac_objext \
29790 conftest$ac_exeext conftest.$ac_ext
29791LIBS=$ac_check_lib_save_LIBS
29792fi
29793echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29794echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29795if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29796 libsgm_link=" -lSgm"
29797fi
29798
29799
a848cd7e
SC
29800 save_CFLAGS=$CFLAGS
29801 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29802
a848cd7e
SC
29803 echo "$as_me:$LINENO: checking for Motif 2" >&5
29804echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29805if test "${wx_cv_lib_motif2+set}" = set; then
29806 echo $ECHO_N "(cached) $ECHO_C" >&6
29807else
29808 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29809/* confdefs.h. */
29810_ACEOF
29811cat confdefs.h >>conftest.$ac_ext
29812cat >>conftest.$ac_ext <<_ACEOF
29813/* end confdefs.h. */
29814
0ad5d837 29815 #include <Xm/Xm.h>
a848cd7e
SC
29816
29817int
29818main ()
29819{
29820
0ad5d837
VZ
29821 #if XmVersion < 2000
29822 Not Motif 2
29823 #endif
a848cd7e
SC
29824
29825 ;
29826 return 0;
29827}
29828_ACEOF
29829rm -f conftest.$ac_objext
29830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29831 (eval $ac_compile) 2>conftest.er1
a848cd7e 29832 ac_status=$?
ac1cb8d3
VS
29833 grep -v '^ *+' conftest.er1 >conftest.err
29834 rm -f conftest.er1
29835 cat conftest.err >&5
a848cd7e
SC
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
be665c07
JS
29838 { ac_try='test -z "$ac_c_werror_flag"
29839 || test ! -s conftest.err'
ac1cb8d3
VS
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
0ad5d837 29851 wx_cv_lib_motif2="yes"
a848cd7e
SC
29852else
29853 echo "$as_me: failed program was:" >&5
29854sed 's/^/| /' conftest.$ac_ext >&5
29855
0ad5d837
VZ
29856wx_cv_lib_motif2="no"
29857fi
29858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29859fi
29860echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29861echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29862 if test "$wx_cv_lib_motif2" = "yes"; then
29863 cat >>confdefs.h <<\_ACEOF
29864#define __WXMOTIF20__ 1
29865_ACEOF
a848cd7e 29866
0ad5d837
VZ
29867 else
29868 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29869#define __WXMOTIF20__ 0
29870_ACEOF
29871
0ad5d837 29872 fi
2113bc77
MW
29873
29874 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29875echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29876if test "${wx_cv_lib_lesstif+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878else
29879 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
29884/* end confdefs.h. */
29885
0ad5d837 29886 #include <Xm/Xm.h>
2113bc77
MW
29887
29888int
29889main ()
29890{
29891
0ad5d837
VZ
29892 #if !defined(LesstifVersion) || LesstifVersion <= 0
29893 Not Lesstif
29894 #endif
2113bc77
MW
29895
29896 ;
29897 return 0;
29898}
29899_ACEOF
29900rm -f conftest.$ac_objext
29901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29902 (eval $ac_compile) 2>conftest.er1
29903 ac_status=$?
29904 grep -v '^ *+' conftest.er1 >conftest.err
29905 rm -f conftest.er1
29906 cat conftest.err >&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } &&
be665c07
JS
29909 { ac_try='test -z "$ac_c_werror_flag"
29910 || test ! -s conftest.err'
2113bc77
MW
29911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29912 (eval $ac_try) 2>&5
29913 ac_status=$?
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); }; } &&
29916 { ac_try='test -s conftest.$ac_objext'
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; }; then
0ad5d837 29922 wx_cv_lib_lesstif="yes"
2113bc77
MW
29923else
29924 echo "$as_me: failed program was:" >&5
29925sed 's/^/| /' conftest.$ac_ext >&5
29926
0ad5d837
VZ
29927wx_cv_lib_lesstif="no"
29928fi
29929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29930
0ad5d837
VZ
29931fi
29932echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29933echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29934 if test "$wx_cv_lib_lesstif" = "yes"; then
29935 cat >>confdefs.h <<\_ACEOF
29936#define __WXLESSTIF__ 1
29937_ACEOF
29938
29939 else
29940 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29941#define __WXLESSTIF__ 0
29942_ACEOF
29943
0ad5d837 29944 fi
2113bc77 29945
a848cd7e
SC
29946 CFLAGS=$save_CFLAGS
29947
62fa8b3a 29948 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29949 TOOLKIT=MOTIF
29950 GUIDIST=MOTIF_DIST
29951 fi
29952
74b84332 29953 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29954 if test "$wxUSE_LIBXPM" = "sys"; then
29955 echo "$as_me:$LINENO: checking for Xpm library" >&5
29956echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29957
0ad5d837
VZ
29958 ac_find_libraries=
29959 for ac_dir in $SEARCH_LIB;
a848cd7e 29960 do
3eca31dc 29961 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29962 if test -f "$ac_dir/libXpm.$ac_extension"; then
29963 ac_find_libraries=$ac_dir
29964 break 2
29965 fi
29966 done
29967 done
29968
29969 if test "$ac_find_libraries" != "" ; then
29970
0ad5d837 29971 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29972 ac_path_to_link=""
29973 else
0ad5d837
VZ
29974 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29975 result=$?
29976 if test $result = 0; then
29977 ac_path_to_link=""
29978 else
29979 ac_path_to_link=" -L$ac_find_libraries"
29980 fi
a848cd7e
SC
29981 fi
29982
29983 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29984 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29985echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29986
29987 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29988echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29989if test "${wx_cv_x11_xpm_h+set}" = set; then
29990 echo $ECHO_N "(cached) $ECHO_C" >&6
29991else
29992
29993 save_CFLAGS=$CFLAGS
29994 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29995
29996 cat >conftest.$ac_ext <<_ACEOF
29997/* confdefs.h. */
29998_ACEOF
29999cat confdefs.h >>conftest.$ac_ext
30000cat >>conftest.$ac_ext <<_ACEOF
30001/* end confdefs.h. */
30002
30003 #include <X11/xpm.h>
30004
30005int
30006main ()
30007{
30008
30009 int version;
30010 version = XpmLibraryVersion();
30011
30012 ;
30013 return 0;
30014}
30015_ACEOF
30016rm -f conftest.$ac_objext
30017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30018 (eval $ac_compile) 2>conftest.er1
a848cd7e 30019 ac_status=$?
ac1cb8d3
VS
30020 grep -v '^ *+' conftest.er1 >conftest.err
30021 rm -f conftest.er1
30022 cat conftest.err >&5
a848cd7e
SC
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); } &&
be665c07
JS
30025 { ac_try='test -z "$ac_c_werror_flag"
30026 || test ! -s conftest.err'
ac1cb8d3
VS
30027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30034 (eval $ac_try) 2>&5
30035 ac_status=$?
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; }; then
30038 wx_cv_x11_xpm_h=yes
30039else
30040 echo "$as_me: failed program was:" >&5
30041sed 's/^/| /' conftest.$ac_ext >&5
30042
30043wx_cv_x11_xpm_h=no
30044
30045fi
ac1cb8d3 30046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30047
30048 CFLAGS=$save_CFLAGS
30049
30050
30051fi
30052echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30053echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30054
30055 if test $wx_cv_x11_xpm_h = "yes"; then
30056 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30057 cat >>confdefs.h <<\_ACEOF
30058#define wxHAVE_LIB_XPM 1
30059_ACEOF
30060
30061 else
30062 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30063echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30064 fi
30065 fi
30066
30067 fi
30068
30069 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30070echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30071if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30073else
30074 ac_check_lib_save_LIBS=$LIBS
30075LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30076cat >conftest.$ac_ext <<_ACEOF
30077/* confdefs.h. */
30078_ACEOF
30079cat confdefs.h >>conftest.$ac_ext
30080cat >>conftest.$ac_ext <<_ACEOF
30081/* end confdefs.h. */
30082
30083/* Override any gcc2 internal prototype to avoid an error. */
30084#ifdef __cplusplus
30085extern "C"
30086#endif
30087/* We use char because int might match the return type of a gcc2
30088 builtin and then its argument prototype would still apply. */
30089char XShapeQueryExtension ();
30090int
30091main ()
30092{
30093XShapeQueryExtension ();
30094 ;
30095 return 0;
30096}
30097_ACEOF
30098rm -f conftest.$ac_objext conftest$ac_exeext
30099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30100 (eval $ac_link) 2>conftest.er1
a848cd7e 30101 ac_status=$?
ac1cb8d3
VS
30102 grep -v '^ *+' conftest.er1 >conftest.err
30103 rm -f conftest.er1
30104 cat conftest.err >&5
a848cd7e
SC
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
be665c07
JS
30107 { ac_try='test -z "$ac_c_werror_flag"
30108 || test ! -s conftest.err'
ac1cb8d3
VS
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30111 ac_status=$?
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; } &&
30114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
30120 ac_cv_lib_Xext_XShapeQueryExtension=yes
30121else
30122 echo "$as_me: failed program was:" >&5
30123sed 's/^/| /' conftest.$ac_ext >&5
30124
30125ac_cv_lib_Xext_XShapeQueryExtension=no
30126fi
ac1cb8d3
VS
30127rm -f conftest.err conftest.$ac_objext \
30128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30129LIBS=$ac_check_lib_save_LIBS
30130fi
30131echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30132echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30133if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30134
30135 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30136 wxHAVE_XEXT_LIB=1
30137
30138fi
30139
30140
30141 if test "$wxHAVE_XEXT_LIB" = 1; then
30142 save_CFLAGS="$CFLAGS"
30143 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
30144
30145 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30146echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30147 cat >conftest.$ac_ext <<_ACEOF
30148/* confdefs.h. */
30149_ACEOF
30150cat confdefs.h >>conftest.$ac_ext
30151cat >>conftest.$ac_ext <<_ACEOF
30152/* end confdefs.h. */
30153
30154 #include <X11/Xlib.h>
30155 #include <X11/extensions/shape.h>
30156
30157int
30158main ()
30159{
30160
30161 int dummy1, dummy2;
30162 XShapeQueryExtension((Display*)NULL,
30163 (int*)NULL, (int*)NULL);
30164
30165 ;
30166 return 0;
30167}
30168_ACEOF
30169rm -f conftest.$ac_objext
30170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30171 (eval $ac_compile) 2>conftest.er1
a848cd7e 30172 ac_status=$?
ac1cb8d3
VS
30173 grep -v '^ *+' conftest.er1 >conftest.err
30174 rm -f conftest.er1
30175 cat conftest.err >&5
a848cd7e
SC
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); } &&
be665c07
JS
30178 { ac_try='test -z "$ac_c_werror_flag"
30179 || test ! -s conftest.err'
ac1cb8d3
VS
30180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30181 (eval $ac_try) 2>&5
30182 ac_status=$?
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); }; } &&
30185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30187 (eval $ac_try) 2>&5
30188 ac_status=$?
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); }; }; then
30191
30192 cat >>confdefs.h <<\_ACEOF
30193#define HAVE_XSHAPE 1
30194_ACEOF
30195
30196 echo "$as_me:$LINENO: result: found" >&5
30197echo "${ECHO_T}found" >&6
30198
30199else
30200 echo "$as_me: failed program was:" >&5
30201sed 's/^/| /' conftest.$ac_ext >&5
30202
30203
30204 echo "$as_me:$LINENO: result: not found" >&5
30205echo "${ECHO_T}not found" >&6
30206
30207fi
ac1cb8d3 30208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30209 CFLAGS="$save_CFLAGS"
30210
30211 fi
30212 fi
30213
30214 if test "$wxUSE_MAC" = 1; then
30215 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30216echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30217 if test "$GCC" = yes; then
30218 echo "$as_me:$LINENO: result: gcc" >&5
30219echo "${ECHO_T}gcc" >&6
30220 CPPFLAGS_PASCAL="-fpascal-strings"
30221 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30222 echo "$as_me:$LINENO: result: xlc" >&5
30223echo "${ECHO_T}xlc" >&6
30224 CPPFLAGS_PASCAL="-qmacpstr"
30225 else
30226 echo "$as_me:$LINENO: result: none" >&5
30227echo "${ECHO_T}none" >&6
30228 fi
30229
1e9e8aba
DE
30230 if test "x$wxUSE_UNIX" = "xyes"; then
30231 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
30232 else
30233 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
30234 fi
a848cd7e 30235
a848cd7e
SC
30236 TOOLKIT=MAC
30237 GUIDIST=MACX_DIST
dd21ced8 30238 WXBASEPORT="_carbon"
a848cd7e
SC
30239 fi
30240
30241 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30242 TOOLKIT=COCOA
30243 GUIDIST=COCOA_DIST
30244 fi
30245
30246 if test "$wxUSE_PM" = 1; then
30247 TOOLKIT=PM
de59c161
RD
30248 GUIDIST=PM_DIST
30249 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30250echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30251if test "${wx_cv_spbcdata+set}" = set; then
30252 echo $ECHO_N "(cached) $ECHO_C" >&6
30253else
30254
30255 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30256/* confdefs.h. */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h. */
30261
30262 #define INCL_PM
30263 #include <os2.h>
30264
30265int
30266main ()
30267{
30268
30269 SPBCDATA test;
30270
30271 ;
30272 return 0;
30273}
30274_ACEOF
30275rm -f conftest.$ac_objext
30276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30277 (eval $ac_compile) 2>conftest.er1
de59c161 30278 ac_status=$?
ac1cb8d3
VS
30279 grep -v '^ *+' conftest.er1 >conftest.err
30280 rm -f conftest.er1
30281 cat conftest.err >&5
de59c161
RD
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } &&
be665c07
JS
30284 { ac_try='test -z "$ac_c_werror_flag"
30285 || test ! -s conftest.err'
ac1cb8d3
VS
30286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30288 ac_status=$?
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; } &&
30291 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30293 (eval $ac_try) 2>&5
30294 ac_status=$?
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; }; then
30297 wx_cv_spbcdata=yes
30298else
30299 echo "$as_me: failed program was:" >&5
30300sed 's/^/| /' conftest.$ac_ext >&5
30301
30302wx_cv_spbcdata=no
30303
30304fi
ac1cb8d3 30305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30306
30307
30308fi
30309echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30310echo "${ECHO_T}$wx_cv_spbcdata" >&6
30311
30312 if test $wx_cv_spbcdata = "yes"; then
30313 cat >>confdefs.h <<\_ACEOF
30314#define HAVE_SPBCDATA 1
30315_ACEOF
30316
30317 fi
a848cd7e
SC
30318 fi
30319
30320 if test "$TOOLKIT" = "PM" ; then
30321 TOOLKIT_DIR="os2"
30322 else
30323 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30324 fi
30325
a848cd7e 30326 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30327 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30328 WIDGET_SET=univ
a848cd7e
SC
30329 fi
30330
30331 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30332 DISTDIR="wx\$(TOOLKIT)"
30333else
30334 USE_GUI=0
30335
30336 TOOLKIT_DIR="base"
30337
30338 if test "$USE_WIN32" = 1 ; then
a848cd7e 30339 TOOLKIT="MSW"
a848cd7e
SC
30340 fi
30341
a848cd7e
SC
30342 GUIDIST="BASE_DIST"
30343 DISTDIR="wxBase"
30344fi
30345
30346
d12aef51
VZ
30347if test "$wxUSE_GUI" = "yes"; then
30348 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30349
30350for ac_header in X11/Xlib.h
30351do
30352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30353if eval "test \"\${$as_ac_Header+set}\" = set"; then
30354 echo "$as_me:$LINENO: checking for $ac_header" >&5
30355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30356if eval "test \"\${$as_ac_Header+set}\" = set"; then
30357 echo $ECHO_N "(cached) $ECHO_C" >&6
30358fi
30359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30361else
30362 # Is the header compilable?
30363echo "$as_me:$LINENO: checking $ac_header usability" >&5
30364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30365cat >conftest.$ac_ext <<_ACEOF
30366/* confdefs.h. */
30367_ACEOF
30368cat confdefs.h >>conftest.$ac_ext
30369cat >>conftest.$ac_ext <<_ACEOF
30370/* end confdefs.h. */
30371$ac_includes_default
30372#include <$ac_header>
30373_ACEOF
30374rm -f conftest.$ac_objext
30375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30376 (eval $ac_compile) 2>conftest.er1
30377 ac_status=$?
30378 grep -v '^ *+' conftest.er1 >conftest.err
30379 rm -f conftest.er1
30380 cat conftest.err >&5
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); } &&
be665c07
JS
30383 { ac_try='test -z "$ac_c_werror_flag"
30384 || test ! -s conftest.err'
d12aef51
VZ
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); }; } &&
30390 { ac_try='test -s conftest.$ac_objext'
30391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30392 (eval $ac_try) 2>&5
30393 ac_status=$?
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); }; }; then
30396 ac_header_compiler=yes
30397else
30398 echo "$as_me: failed program was:" >&5
30399sed 's/^/| /' conftest.$ac_ext >&5
30400
30401ac_header_compiler=no
30402fi
30403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30405echo "${ECHO_T}$ac_header_compiler" >&6
30406
30407# Is the header present?
30408echo "$as_me:$LINENO: checking $ac_header presence" >&5
30409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30410cat >conftest.$ac_ext <<_ACEOF
30411/* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
30416#include <$ac_header>
30417_ACEOF
30418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30420 ac_status=$?
30421 grep -v '^ *+' conftest.er1 >conftest.err
30422 rm -f conftest.er1
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } >/dev/null; then
30426 if test -s conftest.err; then
30427 ac_cpp_err=$ac_c_preproc_warn_flag
30428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30429 else
30430 ac_cpp_err=
30431 fi
30432else
30433 ac_cpp_err=yes
30434fi
30435if test -z "$ac_cpp_err"; then
30436 ac_header_preproc=yes
30437else
30438 echo "$as_me: failed program was:" >&5
30439sed 's/^/| /' conftest.$ac_ext >&5
30440
30441 ac_header_preproc=no
30442fi
30443rm -f conftest.err conftest.$ac_ext
30444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30445echo "${ECHO_T}$ac_header_preproc" >&6
30446
30447# So? What about this header?
30448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30449 yes:no: )
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30454 ac_header_preproc=yes
30455 ;;
30456 no:yes:* )
30457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30469 (
30470 cat <<\_ASBOX
30471## ----------------------------------------- ##
30472## Report this to wx-dev@lists.wxwidgets.org ##
30473## ----------------------------------------- ##
30474_ASBOX
30475 ) |
30476 sed "s/^/$as_me: WARNING: /" >&2
30477 ;;
30478esac
30479echo "$as_me:$LINENO: checking for $ac_header" >&5
30480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30481if eval "test \"\${$as_ac_Header+set}\" = set"; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30483else
30484 eval "$as_ac_Header=\$ac_header_preproc"
30485fi
30486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30488
30489fi
30490if test `eval echo '${'$as_ac_Header'}'` = yes; then
30491 cat >>confdefs.h <<_ACEOF
30492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30493_ACEOF
30494
30495fi
30496
30497done
30498
30499
30500for ac_header in X11/XKBlib.h
30501do
30502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30503echo "$as_me:$LINENO: checking for $ac_header" >&5
30504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30505if eval "test \"\${$as_ac_Header+set}\" = set"; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30507else
30508 cat >conftest.$ac_ext <<_ACEOF
30509/* confdefs.h. */
30510_ACEOF
30511cat confdefs.h >>conftest.$ac_ext
30512cat >>conftest.$ac_ext <<_ACEOF
30513/* end confdefs.h. */
30514
30515 #if HAVE_X11_XLIB_H
30516 #include <X11/Xlib.h>
30517 #endif
30518
30519
30520#include <$ac_header>
30521_ACEOF
30522rm -f conftest.$ac_objext
30523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30524 (eval $ac_compile) 2>conftest.er1
30525 ac_status=$?
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
be665c07
JS
30531 { ac_try='test -z "$ac_c_werror_flag"
30532 || test ! -s conftest.err'
d12aef51
VZ
30533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534 (eval $ac_try) 2>&5
30535 ac_status=$?
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; } &&
30538 { ac_try='test -s conftest.$ac_objext'
30539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 (eval $ac_try) 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; }; then
30544 eval "$as_ac_Header=yes"
30545else
30546 echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
30549eval "$as_ac_Header=no"
30550fi
30551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30552fi
30553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30555if test `eval echo '${'$as_ac_Header'}'` = yes; then
30556 cat >>confdefs.h <<_ACEOF
30557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30558_ACEOF
30559
30560fi
30561
30562done
30563
30564 fi
30565fi
30566
a848cd7e
SC
30567
30568
30569IODBC_C_SRC=""
30570
30571
30572if test "$TOOLKIT" != "MSW" ; then
30573
30574 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30575
30576 if test "${ac_cv_header_sql_h+set}" = set; then
30577 echo "$as_me:$LINENO: checking for sql.h" >&5
30578echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30579if test "${ac_cv_header_sql_h+set}" = set; then
30580 echo $ECHO_N "(cached) $ECHO_C" >&6
30581fi
30582echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30583echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30584else
30585 # Is the header compilable?
30586echo "$as_me:$LINENO: checking sql.h usability" >&5
30587echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30588cat >conftest.$ac_ext <<_ACEOF
30589/* confdefs.h. */
30590_ACEOF
30591cat confdefs.h >>conftest.$ac_ext
30592cat >>conftest.$ac_ext <<_ACEOF
30593/* end confdefs.h. */
30594$ac_includes_default
30595#include <sql.h>
30596_ACEOF
30597rm -f conftest.$ac_objext
30598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30599 (eval $ac_compile) 2>conftest.er1
a848cd7e 30600 ac_status=$?
ac1cb8d3
VS
30601 grep -v '^ *+' conftest.er1 >conftest.err
30602 rm -f conftest.er1
30603 cat conftest.err >&5
a848cd7e
SC
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); } &&
be665c07
JS
30606 { ac_try='test -z "$ac_c_werror_flag"
30607 || test ! -s conftest.err'
ac1cb8d3
VS
30608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609 (eval $ac_try) 2>&5
30610 ac_status=$?
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; } &&
30613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
30619 ac_header_compiler=yes
30620else
30621 echo "$as_me: failed program was:" >&5
30622sed 's/^/| /' conftest.$ac_ext >&5
30623
30624ac_header_compiler=no
30625fi
ac1cb8d3 30626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30628echo "${ECHO_T}$ac_header_compiler" >&6
30629
30630# Is the header present?
30631echo "$as_me:$LINENO: checking sql.h presence" >&5
30632echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30633cat >conftest.$ac_ext <<_ACEOF
30634/* confdefs.h. */
30635_ACEOF
30636cat confdefs.h >>conftest.$ac_ext
30637cat >>conftest.$ac_ext <<_ACEOF
30638/* end confdefs.h. */
30639#include <sql.h>
30640_ACEOF
30641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30643 ac_status=$?
30644 grep -v '^ *+' conftest.er1 >conftest.err
30645 rm -f conftest.er1
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } >/dev/null; then
30649 if test -s conftest.err; then
30650 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30652 else
30653 ac_cpp_err=
30654 fi
30655else
30656 ac_cpp_err=yes
30657fi
30658if test -z "$ac_cpp_err"; then
30659 ac_header_preproc=yes
30660else
30661 echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
30664 ac_header_preproc=no
30665fi
30666rm -f conftest.err conftest.$ac_ext
30667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30668echo "${ECHO_T}$ac_header_preproc" >&6
30669
30670# So? What about this header?
ac1cb8d3
VS
30671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30672 yes:no: )
a848cd7e
SC
30673 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30674echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30675 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30676echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30677 ac_header_preproc=yes
a848cd7e 30678 ;;
ac1cb8d3 30679 no:yes:* )
a848cd7e
SC
30680 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30681echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30682 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30683echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30685echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30687echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30688 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30689echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30690 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30691echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30692 (
30693 cat <<\_ASBOX
ac1cb8d3
VS
30694## ----------------------------------------- ##
30695## Report this to wx-dev@lists.wxwidgets.org ##
30696## ----------------------------------------- ##
a848cd7e
SC
30697_ASBOX
30698 ) |
30699 sed "s/^/$as_me: WARNING: /" >&2
30700 ;;
30701esac
30702echo "$as_me:$LINENO: checking for sql.h" >&5
30703echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30704if test "${ac_cv_header_sql_h+set}" = set; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706else
30707 ac_cv_header_sql_h=$ac_header_preproc
30708fi
30709echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30710echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30711
30712fi
30713if test $ac_cv_header_sql_h = yes; then
30714 found_sql_h=1
30715fi
30716
30717
30718 if test "x$found_sql_h" = "x1" ; then
30719 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30720echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30721if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30722 echo $ECHO_N "(cached) $ECHO_C" >&6
30723else
30724 ac_check_lib_save_LIBS=$LIBS
30725LIBS="-liodbc $LIBS"
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
30733/* Override any gcc2 internal prototype to avoid an error. */
30734#ifdef __cplusplus
30735extern "C"
30736#endif
30737/* We use char because int might match the return type of a gcc2
30738 builtin and then its argument prototype would still apply. */
30739char SQLAllocEnv ();
30740int
30741main ()
30742{
30743SQLAllocEnv ();
30744 ;
30745 return 0;
30746}
30747_ACEOF
30748rm -f conftest.$ac_objext conftest$ac_exeext
30749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30750 (eval $ac_link) 2>conftest.er1
a848cd7e 30751 ac_status=$?
ac1cb8d3
VS
30752 grep -v '^ *+' conftest.er1 >conftest.err
30753 rm -f conftest.er1
30754 cat conftest.err >&5
a848cd7e
SC
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); } &&
be665c07
JS
30757 { ac_try='test -z "$ac_c_werror_flag"
30758 || test ! -s conftest.err'
ac1cb8d3
VS
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30761 ac_status=$?
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; } &&
30764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30767 ac_status=$?
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; }; then
30770 ac_cv_lib_iodbc_SQLAllocEnv=yes
30771else
30772 echo "$as_me: failed program was:" >&5
30773sed 's/^/| /' conftest.$ac_ext >&5
30774
30775ac_cv_lib_iodbc_SQLAllocEnv=no
30776fi
ac1cb8d3
VS
30777rm -f conftest.err conftest.$ac_objext \
30778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30779LIBS=$ac_check_lib_save_LIBS
30780fi
30781echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30782echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30783if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30784 ODBC_LINK=" -liodbc"
30785else
30786
30787 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30788echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30789if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30790 echo $ECHO_N "(cached) $ECHO_C" >&6
30791else
30792 ac_check_lib_save_LIBS=$LIBS
30793LIBS="-lunixodbc $LIBS"
30794cat >conftest.$ac_ext <<_ACEOF
30795/* confdefs.h. */
30796_ACEOF
30797cat confdefs.h >>conftest.$ac_ext
30798cat >>conftest.$ac_ext <<_ACEOF
30799/* end confdefs.h. */
30800
30801/* Override any gcc2 internal prototype to avoid an error. */
30802#ifdef __cplusplus
30803extern "C"
30804#endif
30805/* We use char because int might match the return type of a gcc2
30806 builtin and then its argument prototype would still apply. */
30807char SQLAllocEnv ();
30808int
30809main ()
30810{
30811SQLAllocEnv ();
30812 ;
30813 return 0;
30814}
30815_ACEOF
30816rm -f conftest.$ac_objext conftest$ac_exeext
30817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30818 (eval $ac_link) 2>conftest.er1
a848cd7e 30819 ac_status=$?
ac1cb8d3
VS
30820 grep -v '^ *+' conftest.er1 >conftest.err
30821 rm -f conftest.er1
30822 cat conftest.err >&5
a848cd7e
SC
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
be665c07
JS
30825 { ac_try='test -z "$ac_c_werror_flag"
30826 || test ! -s conftest.err'
ac1cb8d3
VS
30827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828 (eval $ac_try) 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; } &&
30832 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834 (eval $ac_try) 2>&5
30835 ac_status=$?
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; }; then
30838 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30839else
30840 echo "$as_me: failed program was:" >&5
30841sed 's/^/| /' conftest.$ac_ext >&5
30842
30843ac_cv_lib_unixodbc_SQLAllocEnv=no
30844fi
ac1cb8d3
VS
30845rm -f conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30847LIBS=$ac_check_lib_save_LIBS
30848fi
30849echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30850echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30851if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30852 ODBC_LINK=" -lunixodbc"
30853else
30854
30855 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30856echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30857if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30858 echo $ECHO_N "(cached) $ECHO_C" >&6
30859else
30860 ac_check_lib_save_LIBS=$LIBS
30861LIBS="-lodbc $LIBS"
30862cat >conftest.$ac_ext <<_ACEOF
30863/* confdefs.h. */
30864_ACEOF
30865cat confdefs.h >>conftest.$ac_ext
30866cat >>conftest.$ac_ext <<_ACEOF
30867/* end confdefs.h. */
30868
30869/* Override any gcc2 internal prototype to avoid an error. */
30870#ifdef __cplusplus
30871extern "C"
30872#endif
30873/* We use char because int might match the return type of a gcc2
30874 builtin and then its argument prototype would still apply. */
30875char SQLAllocEnv ();
30876int
30877main ()
30878{
30879SQLAllocEnv ();
30880 ;
30881 return 0;
30882}
30883_ACEOF
30884rm -f conftest.$ac_objext conftest$ac_exeext
30885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30886 (eval $ac_link) 2>conftest.er1
a848cd7e 30887 ac_status=$?
ac1cb8d3
VS
30888 grep -v '^ *+' conftest.er1 >conftest.err
30889 rm -f conftest.er1
30890 cat conftest.err >&5
a848cd7e
SC
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); } &&
be665c07
JS
30893 { ac_try='test -z "$ac_c_werror_flag"
30894 || test ! -s conftest.err'
ac1cb8d3
VS
30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); }; } &&
30900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 ac_cv_lib_odbc_SQLAllocEnv=yes
30907else
30908 echo "$as_me: failed program was:" >&5
30909sed 's/^/| /' conftest.$ac_ext >&5
30910
30911ac_cv_lib_odbc_SQLAllocEnv=no
30912fi
ac1cb8d3
VS
30913rm -f conftest.err conftest.$ac_objext \
30914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30915LIBS=$ac_check_lib_save_LIBS
30916fi
30917echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30918echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30919if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30920 ODBC_LINK=" -lodbc"
30921fi
30922
30923
30924fi
30925
30926
30927fi
30928
30929 fi
30930 if test "x$ODBC_LINK" = "x" ; then
30931 if test "$wxUSE_ODBC" = "sys" ; then
30932 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30933echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30934 { (exit 1); exit 1; }; }
30935 else
30936 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30937echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30938 wxUSE_ODBC=builtin
30939 fi
30940 else
30941 wxUSE_ODBC=sys
30942 fi
30943 fi
a848cd7e 30944
2da0c077
RD
30945 if test "$wxUSE_ODBC" = "builtin" ; then
30946 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30947#define wxUSE_BUILTIN_IODBC 1
30948_ACEOF
30949
a848cd7e
SC
30950 fi
30951fi
30952
2da0c077
RD
30953if test "$wxUSE_ODBC" != "no" ; then
30954 cat >>confdefs.h <<\_ACEOF
30955#define wxUSE_ODBC 1
30956_ACEOF
30957
30958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30959
30960 WXODBCFLAG="-D_IODBC_"
30961fi
a848cd7e 30962
01cb68df 30963
a848cd7e 30964if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30965 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30966 echo "$as_me:$LINENO: checking for Xinerama" >&5
30967echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30968
0ad5d837
VZ
30969 ac_find_libraries=
30970 for ac_dir in $SEARCH_LIB;
30971 do
30972 for ac_extension in a so sl dylib dll.a; do
30973 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30974 ac_find_libraries=$ac_dir
30975 break 2
30976 fi
30977 done
30978 done
30979
a848cd7e
SC
30980 if test "$ac_find_libraries" != "" ; then
30981
0ad5d837 30982 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30983 ac_path_to_link=""
30984 else
0ad5d837
VZ
30985 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30986 result=$?
30987 if test $result = 0; then
30988 ac_path_to_link=""
30989 else
30990 ac_path_to_link=" -L$ac_find_libraries"
30991 fi
a848cd7e
SC
30992 fi
30993
30994 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30995 LDFLAGS="$LDFLAGS $ac_path_to_link"
30996 fi
30997 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30998 echo "$as_me:$LINENO: result: yes" >&5
30999echo "${ECHO_T}yes" >&6
31000
31001 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31002echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31003
0ad5d837
VZ
31004 ac_find_libraries=
31005 for ac_dir in $SEARCH_LIB;
a848cd7e 31006 do
3eca31dc 31007 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31008 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31009 ac_find_libraries=$ac_dir
31010 break 2
31011 fi
31012 done
31013 done
31014
31015 if test "$ac_find_libraries" != "" ; then
31016 echo "$as_me:$LINENO: result: yes" >&5
31017echo "${ECHO_T}yes" >&6
31018
31019for ac_header in X11/extensions/xf86vmode.h
31020do
31021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31022echo "$as_me:$LINENO: checking for $ac_header" >&5
31023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31024if eval "test \"\${$as_ac_Header+set}\" = set"; then
31025 echo $ECHO_N "(cached) $ECHO_C" >&6
31026else
31027 cat >conftest.$ac_ext <<_ACEOF
31028/* confdefs.h. */
31029_ACEOF
31030cat confdefs.h >>conftest.$ac_ext
31031cat >>conftest.$ac_ext <<_ACEOF
31032/* end confdefs.h. */
31033
31034 #if HAVE_X11_XLIB_H
31035 #include <X11/Xlib.h>
31036 #endif
31037
31038
31039#include <$ac_header>
31040_ACEOF
31041rm -f conftest.$ac_objext
31042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31043 (eval $ac_compile) 2>conftest.er1
a848cd7e 31044 ac_status=$?
ac1cb8d3
VS
31045 grep -v '^ *+' conftest.er1 >conftest.err
31046 rm -f conftest.er1
31047 cat conftest.err >&5
a848cd7e
SC
31048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049 (exit $ac_status); } &&
be665c07
JS
31050 { ac_try='test -z "$ac_c_werror_flag"
31051 || test ! -s conftest.err'
ac1cb8d3
VS
31052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31053 (eval $ac_try) 2>&5
31054 ac_status=$?
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; } &&
31057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059 (eval $ac_try) 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 eval "$as_ac_Header=yes"
31064else
31065 echo "$as_me: failed program was:" >&5
31066sed 's/^/| /' conftest.$ac_ext >&5
31067
31068eval "$as_ac_Header=no"
31069fi
ac1cb8d3 31070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31071fi
31072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31074if test `eval echo '${'$as_ac_Header'}'` = yes; then
31075 cat >>confdefs.h <<_ACEOF
31076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31077_ACEOF
31078
31079 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31080
31081fi
31082
31083done
31084
31085 else
31086 echo "$as_me:$LINENO: result: no" >&5
31087echo "${ECHO_T}no" >&6
31088 fi
31089
31090 else
31091 echo "$as_me:$LINENO: result: no" >&5
31092echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31093 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31094echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31095 wxUSE_DISPLAY="no"
31096 fi
01cb68df
RG
31097 elif test "$wxUSE_MSW" = 1; then
31098
31099
31100for ac_header in multimon.h ddraw.h
31101do
31102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31103echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31105if eval "test \"\${$as_ac_Header+set}\" = set"; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31107else
5294a27e 31108 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31109/* confdefs.h. */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h. */
5294a27e
VZ
31114#include <windows.h>
31115
01cb68df
RG
31116#include <$ac_header>
31117_ACEOF
31118rm -f conftest.$ac_objext
31119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31120 (eval $ac_compile) 2>conftest.er1
01cb68df 31121 ac_status=$?
ac1cb8d3
VS
31122 grep -v '^ *+' conftest.er1 >conftest.err
31123 rm -f conftest.er1
31124 cat conftest.err >&5
01cb68df
RG
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); } &&
be665c07
JS
31127 { ac_try='test -z "$ac_c_werror_flag"
31128 || test ! -s conftest.err'
ac1cb8d3
VS
31129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130 (eval $ac_try) 2>&5
31131 ac_status=$?
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); }; } &&
31134 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136 (eval $ac_try) 2>&5
31137 ac_status=$?
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); }; }; then
5294a27e 31140 eval "$as_ac_Header=yes"
01cb68df
RG
31141else
31142 echo "$as_me: failed program was:" >&5
31143sed 's/^/| /' conftest.$ac_ext >&5
31144
5294a27e 31145eval "$as_ac_Header=no"
01cb68df 31146fi
ac1cb8d3 31147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31148fi
31149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31151if test `eval echo '${'$as_ac_Header'}'` = yes; then
31152 cat >>confdefs.h <<_ACEOF
31153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31154_ACEOF
31155
31156else
31157
5294a27e
VZ
31158 wxUSE_DISPLAY="no"
31159 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 31160echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
31161
31162fi
31163
31164done
31165
a848cd7e
SC
31166 fi
31167fi
31168
31169
31170USE_OPENGL=0
31171if test "$wxUSE_OPENGL" = "yes"; then
31172 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31173 OPENGL_LIBS="-framework OpenGL -framework AGL"
31174 elif test "$wxUSE_MSW" = 1; then
31175 OPENGL_LIBS="-lopengl32 -lglu32"
31176 else
31177
31178
31179ac_find_includes=
31180for ac_dir in $SEARCH_INCLUDE /usr/include;
31181 do
31182 if test -f "$ac_dir/GL/gl.h"; then
31183 ac_find_includes=$ac_dir
31184 break
31185 fi
31186 done
31187
31188 if test "$ac_find_includes" != "" ; then
31189 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31190echo "${ECHO_T}found in $ac_find_includes" >&6
31191
31192 if test "x$ac_find_includes" = "x/usr/include"; then
31193 ac_path_to_include=""
31194 else
31195 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31196 result=$?
31197 if test $result = 0; then
31198 ac_path_to_include=""
31199 else
31200 ac_path_to_include=" -I$ac_find_includes"
31201 fi
31202 fi
31203
31204 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
31205 fi
31206
31207 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31208 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31209echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31210if test "${ac_cv_header_GL_gl_h+set}" = set; then
31211 echo $ECHO_N "(cached) $ECHO_C" >&6
31212fi
31213echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31214echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31215else
31216 # Is the header compilable?
31217echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31218echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31219cat >conftest.$ac_ext <<_ACEOF
31220/* confdefs.h. */
31221_ACEOF
31222cat confdefs.h >>conftest.$ac_ext
31223cat >>conftest.$ac_ext <<_ACEOF
31224/* end confdefs.h. */
31225$ac_includes_default
31226#include <GL/gl.h>
31227_ACEOF
31228rm -f conftest.$ac_objext
31229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31230 (eval $ac_compile) 2>conftest.er1
a848cd7e 31231 ac_status=$?
ac1cb8d3
VS
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
a848cd7e
SC
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
be665c07
JS
31237 { ac_try='test -z "$ac_c_werror_flag"
31238 || test ! -s conftest.err'
ac1cb8d3
VS
31239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240 (eval $ac_try) 2>&5
31241 ac_status=$?
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; } &&
31244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; }; then
31250 ac_header_compiler=yes
31251else
31252 echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
31255ac_header_compiler=no
31256fi
ac1cb8d3 31257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31259echo "${ECHO_T}$ac_header_compiler" >&6
31260
31261# Is the header present?
31262echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31263echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31264cat >conftest.$ac_ext <<_ACEOF
31265/* confdefs.h. */
31266_ACEOF
31267cat confdefs.h >>conftest.$ac_ext
31268cat >>conftest.$ac_ext <<_ACEOF
31269/* end confdefs.h. */
31270#include <GL/gl.h>
31271_ACEOF
31272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31274 ac_status=$?
31275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } >/dev/null; then
31280 if test -s conftest.err; then
31281 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31283 else
31284 ac_cpp_err=
31285 fi
31286else
31287 ac_cpp_err=yes
31288fi
31289if test -z "$ac_cpp_err"; then
31290 ac_header_preproc=yes
31291else
31292 echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
31295 ac_header_preproc=no
31296fi
31297rm -f conftest.err conftest.$ac_ext
31298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31299echo "${ECHO_T}$ac_header_preproc" >&6
31300
31301# So? What about this header?
ac1cb8d3
VS
31302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31303 yes:no: )
a848cd7e
SC
31304 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31305echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31306 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31307echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31308 ac_header_preproc=yes
a848cd7e 31309 ;;
ac1cb8d3 31310 no:yes:* )
a848cd7e
SC
31311 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31312echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31313 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31314echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31315 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31316echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31317 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31318echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31319 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31320echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31321 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31322echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31323 (
31324 cat <<\_ASBOX
ac1cb8d3
VS
31325## ----------------------------------------- ##
31326## Report this to wx-dev@lists.wxwidgets.org ##
31327## ----------------------------------------- ##
a848cd7e
SC
31328_ASBOX
31329 ) |
31330 sed "s/^/$as_me: WARNING: /" >&2
31331 ;;
31332esac
31333echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31334echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31335if test "${ac_cv_header_GL_gl_h+set}" = set; then
31336 echo $ECHO_N "(cached) $ECHO_C" >&6
31337else
31338 ac_cv_header_GL_gl_h=$ac_header_preproc
31339fi
31340echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31341echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31342
31343fi
31344if test $ac_cv_header_GL_gl_h = yes; then
31345
31346 found_gl=0
31347
31348 echo "$as_me:$LINENO: checking for -lGL" >&5
31349echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31350
0ad5d837
VZ
31351 ac_find_libraries=
31352 for ac_dir in $SEARCH_LIB;
a848cd7e 31353 do
3eca31dc 31354 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31355 if test -f "$ac_dir/libGL.$ac_extension"; then
31356 ac_find_libraries=$ac_dir
31357 break 2
31358 fi
31359 done
31360 done
31361
31362 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31363 echo "$as_me:$LINENO: result: yes" >&5
31364echo "${ECHO_T}yes" >&6
31365
a848cd7e 31366
0ad5d837 31367 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31368 ac_path_to_link=""
31369 else
0ad5d837
VZ
31370 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31371 result=$?
31372 if test $result = 0; then
31373 ac_path_to_link=""
31374 else
31375 ac_path_to_link=" -L$ac_find_libraries"
31376 fi
a848cd7e
SC
31377 fi
31378
31379 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31380 LDFLAGS_GL="$ac_path_to_link"
31381 fi
31382
69120ee4
VZ
31383 echo "$as_me:$LINENO: checking for -lGLU" >&5
31384echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31385
0ad5d837
VZ
31386 ac_find_libraries=
31387 for ac_dir in $SEARCH_LIB;
31388 do
31389 for ac_extension in a so sl dylib dll.a; do
31390 if test -f "$ac_dir/libGLU.$ac_extension"; then
31391 ac_find_libraries=$ac_dir
31392 break 2
31393 fi
31394 done
31395 done
31396
a848cd7e
SC
31397 if test "$ac_find_libraries" != "" ; then
31398
0ad5d837 31399 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31400 ac_path_to_link=""
31401 else
0ad5d837
VZ
31402 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31403 result=$?
31404 if test $result = 0; then
31405 ac_path_to_link=""
31406 else
31407 ac_path_to_link=" -L$ac_find_libraries"
31408 fi
a848cd7e
SC
31409 fi
31410
31411 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31412 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31413 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31414 fi
31415
31416 found_gl=1
31417 OPENGL_LIBS="-lGL -lGLU"
31418 echo "$as_me:$LINENO: result: yes" >&5
31419echo "${ECHO_T}yes" >&6
69120ee4
VZ
31420 else
31421 echo "$as_me:$LINENO: result: no" >&5
31422echo "${ECHO_T}no" >&6
a848cd7e 31423 fi
69120ee4
VZ
31424 else
31425 echo "$as_me:$LINENO: result: no" >&5
31426echo "${ECHO_T}no" >&6
a848cd7e
SC
31427 fi
31428
31429 if test "$found_gl" != 1; then
a848cd7e
SC
31430 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31431echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31432
0ad5d837
VZ
31433 ac_find_libraries=
31434 for ac_dir in $SEARCH_LIB;
a848cd7e 31435 do
3eca31dc 31436 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31437 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31438 ac_find_libraries=$ac_dir
31439 break 2
31440 fi
31441 done
31442 done
31443
31444 if test "$ac_find_libraries" != "" ; then
31445
0ad5d837 31446 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31447 ac_path_to_link=""
31448 else
0ad5d837
VZ
31449 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31450 result=$?
31451 if test $result = 0; then
31452 ac_path_to_link=""
31453 else
31454 ac_path_to_link=" -L$ac_find_libraries"
31455 fi
a848cd7e
SC
31456 fi
31457
31458 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31459 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31460 echo "$as_me:$LINENO: result: yes" >&5
31461echo "${ECHO_T}yes" >&6
31462 else
31463 echo "$as_me:$LINENO: result: no" >&5
31464echo "${ECHO_T}no" >&6
31465 fi
31466 fi
31467
31468fi
31469
31470
31471
31472 if test "x$OPENGL_LIBS" = "x"; then
31473 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31474echo "$as_me: error: OpenGL libraries not available" >&2;}
31475 { (exit 1); exit 1; }; }
31476 fi
31477 fi
31478
31479 if test "$wxUSE_OPENGL" = "yes"; then
31480 USE_OPENGL=1
31481 cat >>confdefs.h <<\_ACEOF
31482#define wxUSE_OPENGL 1
31483_ACEOF
31484
31485 cat >>confdefs.h <<\_ACEOF
31486#define wxUSE_GLCANVAS 1
31487_ACEOF
31488
31489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31490 fi
31491fi
31492
a848cd7e
SC
31493
31494if test -n "$TOOLKIT" ; then
31495 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31496fi
31497
a848cd7e
SC
31498
31499
31500if test "$wxUSE_SHARED" = "yes"; then
31501 case "${host}" in
31502 *-pc-msdosdjgpp )
31503 wxUSE_SHARED=no
31504 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31505echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31506 ;;
31507 esac
31508fi
31509
a848cd7e 31510if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31511
31512
31513 found_versioning=no
31514
31515
31516 if test $found_versioning = no ; then
31517 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31518echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31519if test "${wx_cv_version_script+set}" = set; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31521else
31522
31523 echo "VER_1 { *; };" >conftest.sym
31524 echo "int main() { return 0; }" >conftest.cpp
31525
31526 if { ac_try='
31527 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31528 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530 (eval $ac_try) 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; } ; then
31534 if test -s conftest.stderr ; then
31535 wx_cv_version_script=no
31536 else
31537 wx_cv_version_script=yes
31538 fi
31539 else
31540 wx_cv_version_script=no
31541 fi
e5d4b470
MW
31542
31543 if test $wx_cv_version_script = yes
31544 then
31545 echo "struct B { virtual ~B() { } }; \
31546 struct D : public B { }; \
31547 void F() { D d; }" > conftest.cpp
31548
31549 if { ac_try='
31550 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31551 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31554 ac_status=$?
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; } &&
31557 { ac_try='
31558 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31559 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561 (eval $ac_try) 2>&5
31562 ac_status=$?
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); }; }
31565 then
31566 if { ac_try='
31567 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31568 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570 (eval $ac_try) 2>&5
31571 ac_status=$?
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; }
31574 then
31575 wx_cv_version_script=yes
31576 else
31577 wx_cv_version_script=no
31578 fi
31579 fi
31580 fi
31581
a848cd7e 31582 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31583 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31584
31585fi
31586echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31587echo "${ECHO_T}$wx_cv_version_script" >&6
31588 if test $wx_cv_version_script = yes ; then
31589 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31590 fi
31591 fi
31592
31593
31594 case "${host}" in
31595 *-*-linux* | *-*-gnu* )
31596 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31597 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31598 ;;
a848cd7e
SC
31599
31600 *-*-solaris2* )
31601 if test "$GCC" = yes ; then
31602 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31603
31604 saveLdflags="$LDFLAGS"
31605 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31606 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31607echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31608 cat >conftest.$ac_ext <<_ACEOF
31609/* confdefs.h. */
31610_ACEOF
31611cat confdefs.h >>conftest.$ac_ext
31612cat >>conftest.$ac_ext <<_ACEOF
31613/* end confdefs.h. */
31614
31615int
31616main ()
31617{
31618
31619 ;
31620 return 0;
31621}
31622_ACEOF
31623rm -f conftest.$ac_objext conftest$ac_exeext
31624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31625 (eval $ac_link) 2>conftest.er1
a848cd7e 31626 ac_status=$?
ac1cb8d3
VS
31627 grep -v '^ *+' conftest.er1 >conftest.err
31628 rm -f conftest.er1
31629 cat conftest.err >&5
a848cd7e
SC
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } &&
be665c07
JS
31632 { ac_try='test -z "$ac_c_werror_flag"
31633 || test ! -s conftest.err'
ac1cb8d3
VS
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; } &&
31639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31641 (eval $ac_try) 2>&5
31642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
31645
31646 echo "$as_me:$LINENO: result: yes" >&5
31647echo "${ECHO_T}yes" >&6
31648 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31649 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31650
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
31655
31656 echo "$as_me:$LINENO: result: no" >&5
31657echo "${ECHO_T}no" >&6
31658 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31659echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31660 LDFLAGS="$saveLdflags -Wl,-R,/"
31661 cat >conftest.$ac_ext <<_ACEOF
31662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
31667
31668int
31669main ()
31670{
31671
31672 ;
31673 return 0;
31674}
31675_ACEOF
31676rm -f conftest.$ac_objext conftest$ac_exeext
31677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31678 (eval $ac_link) 2>conftest.er1
a848cd7e 31679 ac_status=$?
ac1cb8d3
VS
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
a848cd7e
SC
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } &&
be665c07
JS
31685 { ac_try='test -z "$ac_c_werror_flag"
31686 || test ! -s conftest.err'
ac1cb8d3
VS
31687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31688 (eval $ac_try) 2>&5
31689 ac_status=$?
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; } &&
31692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694 (eval $ac_try) 2>&5
31695 ac_status=$?
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; }; then
31698
ffa0583f 31699 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31700echo "${ECHO_T}yes" >&6
ffa0583f
RL
31701 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31702 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31703
a848cd7e
SC
31704else
31705 echo "$as_me: failed program was:" >&5
31706sed 's/^/| /' conftest.$ac_ext >&5
31707
31708
31709 echo "$as_me:$LINENO: result: no" >&5
31710echo "${ECHO_T}no" >&6
31711
31712fi
ac1cb8d3
VS
31713rm -f conftest.err conftest.$ac_objext \
31714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31715
31716fi
ac1cb8d3
VS
31717rm -f conftest.err conftest.$ac_objext \
31718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31719 LDFLAGS="$saveLdflags"
31720 else
a848cd7e 31721 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31722 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31723 fi
31724 ;;
31725
cfda0ea8 31726 *-*-darwin* )
0caebc27
MW
31727 install_name_tool=`which install_name_tool`
31728 if test "$install_name_tool" -a -x "$install_name_tool"; then
31729 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31730 cat <<EOF >change-install-names
a848cd7e
SC
31731#!/bin/sh
31732libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31733inst_cmd="install_name_tool "
31734for i in \${libnames} ; do
31735 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31736done
31737\${inst_cmd} \${3}
31738EOF
0caebc27
MW
31739 chmod +x change-install-names
31740 fi
a848cd7e
SC
31741 ;;
31742
31743 *-*-cygwin* | *-*-mingw32* )
31744 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31745 ;;
31746
81f90336
MW
31747 *-*-hpux* )
31748 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31749 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31750 ;;
31751
a848cd7e 31752 esac
ceec2216 31753
ffa0583f
RL
31754 if test $wxUSE_RPATH = "no"; then
31755 SAMPLES_RPATH_FLAG=''
31756 SAMPLES_RPATH_POSTLINK=''
31757 WXCONFIG_RPATH=''
31758 fi
31759
31760 SHARED=1
31761
31762else
31763
ceec2216
RL
31764 config_linkage_component="-static"
31765 SHARED=0
ffa0583f 31766
ceec2216 31767fi
a848cd7e 31768
a848cd7e 31769
ceec2216
RL
31770UNICODE=0
31771lib_unicode_suffix=
31772WX_CHARTYPE="ansi"
31773if test "$wxUSE_UNICODE" = "yes"; then
31774 lib_unicode_suffix=u
31775 WX_CHARTYPE="unicode"
31776 UNICODE=1
a848cd7e
SC
31777fi
31778
ceec2216
RL
31779lib_debug_suffix=
31780WX_DEBUGTYPE="release"
31781DEBUG_FLAG=0
31782if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31783 lib_debug_suffix=d
31784 WX_DEBUGTYPE="debug"
31785 DEBUG_FLAG=1
31786fi
a848cd7e 31787
ceec2216
RL
31788WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31789WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31790
ceec2216
RL
31791DEBUG_INFO=0
31792if test "$wxUSE_DEBUG_INFO" = "yes"; then
31793 DEBUG_INFO=1
31794fi
a848cd7e 31795
ceec2216 31796WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31797
ceec2216 31798TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31799
ceec2216 31800TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31801
ceec2216
RL
31802if test "$cross_compiling" = "yes"; then
31803 HOST_SUFFIX="-$host_alias"
31804 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31805 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31806fi
31807
dd21ced8 31808WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31809if test "${TOOLKIT_DIR}" = "os2"; then
31810 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31811else
31812 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31813fi
ceec2216
RL
31814
31815
31816
1d1af5ea
DE
31817if test "$wxUSE_COCOA" = 1; then
31818
31819
31820 ac_ext=c
31821ac_cpp='$CPP $CPPFLAGS'
31822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31824ac_compiler_gnu=$ac_cv_c_compiler_gnu
31825
31826ac_ext=m
31827
31828 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31829echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31830 cat >conftest.$ac_ext <<_ACEOF
31831/* confdefs.h. */
31832_ACEOF
31833cat confdefs.h >>conftest.$ac_ext
31834cat >>conftest.$ac_ext <<_ACEOF
31835/* end confdefs.h. */
31836#include <AppKit/NSEvent.h>
31837#include <CoreFoundation/CoreFoundation.h>
31838
31839int
31840main ()
31841{
31842
31843 ;
31844 return 0;
31845}
31846_ACEOF
31847rm -f conftest.$ac_objext
31848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31849 (eval $ac_compile) 2>conftest.er1
31850 ac_status=$?
31851 grep -v '^ *+' conftest.er1 >conftest.err
31852 rm -f conftest.er1
31853 cat conftest.err >&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); } &&
be665c07
JS
31856 { ac_try='test -z "$ac_c_werror_flag"
31857 || test ! -s conftest.err'
1d1af5ea
DE
31858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31859 (eval $ac_try) 2>&5
31860 ac_status=$?
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; } &&
31863 { ac_try='test -s conftest.$ac_objext'
31864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31865 (eval $ac_try) 2>&5
31866 ac_status=$?
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); }; }; then
31869 echo "$as_me:$LINENO: result: no" >&5
31870echo "${ECHO_T}no" >&6
31871else
31872 echo "$as_me: failed program was:" >&5
31873sed 's/^/| /' conftest.$ac_ext >&5
31874
31875echo "$as_me:$LINENO: result: yes" >&5
31876echo "${ECHO_T}yes" >&6
31877 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31878echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31879 cat >conftest.$ac_ext <<_ACEOF
31880/* confdefs.h. */
31881_ACEOF
31882cat confdefs.h >>conftest.$ac_ext
31883cat >>conftest.$ac_ext <<_ACEOF
31884/* end confdefs.h. */
31885#define __Point__ 1
31886#include <AppKit/NSEvent.h>
31887#include <CoreFoundation/CoreFoundation.h>
31888
31889int
31890main ()
31891{
31892
31893 ;
31894 return 0;
31895}
31896_ACEOF
31897rm -f conftest.$ac_objext
31898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31899 (eval $ac_compile) 2>conftest.er1
31900 ac_status=$?
31901 grep -v '^ *+' conftest.er1 >conftest.err
31902 rm -f conftest.er1
31903 cat conftest.err >&5
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); } &&
be665c07
JS
31906 { ac_try='test -z "$ac_c_werror_flag"
31907 || test ! -s conftest.err'
1d1af5ea
DE
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; } &&
31913 { ac_try='test -s conftest.$ac_objext'
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
31919 echo "$as_me:$LINENO: result: yes" >&5
31920echo "${ECHO_T}yes" >&6
31921 cat >>confdefs.h <<\_ACEOF
31922#define __Point__ 1
31923_ACEOF
31924
31925
31926else
31927 echo "$as_me: failed program was:" >&5
31928sed 's/^/| /' conftest.$ac_ext >&5
31929
31930{ { echo "$as_me:$LINENO: error: no
31931See \`config.log' for more details." >&5
31932echo "$as_me: error: no
31933See \`config.log' for more details." >&2;}
31934 { (exit 1); exit 1; }; }
31935
31936fi
31937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31938
31939fi
31940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31941 ac_ext=c
31942ac_cpp='$CPP $CPPFLAGS'
31943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945ac_compiler_gnu=$ac_cv_c_compiler_gnu
31946
31947fi
31948
a848cd7e 31949if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31950 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31951 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31952
a848cd7e 31953 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31954
31955 # Extract the first word of "Rez", so it can be a program name with args.
31956set dummy Rez; ac_word=$2
31957echo "$as_me:$LINENO: checking for $ac_word" >&5
31958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31959if test "${ac_cv_prog_RESCOMP+set}" = set; then
31960 echo $ECHO_N "(cached) $ECHO_C" >&6
31961else
31962 if test -n "$RESCOMP"; then
31963 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31964else
31965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31966for as_dir in $PATH
31967do
31968 IFS=$as_save_IFS
31969 test -z "$as_dir" && as_dir=.
31970 for ac_exec_ext in '' $ac_executable_extensions; do
31971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31972 ac_cv_prog_RESCOMP="Rez"
31973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31974 break 2
31975 fi
31976done
31977done
31978
31979 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31980fi
31981fi
31982RESCOMP=$ac_cv_prog_RESCOMP
31983if test -n "$RESCOMP"; then
31984 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31985echo "${ECHO_T}$RESCOMP" >&6
31986else
31987 echo "$as_me:$LINENO: result: no" >&5
31988echo "${ECHO_T}no" >&6
31989fi
31990
31991 # Extract the first word of "DeRez", so it can be a program name with args.
31992set dummy DeRez; ac_word=$2
31993echo "$as_me:$LINENO: checking for $ac_word" >&5
31994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31995if test "${ac_cv_prog_DEREZ+set}" = set; then
31996 echo $ECHO_N "(cached) $ECHO_C" >&6
31997else
31998 if test -n "$DEREZ"; then
31999 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32000else
32001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32002for as_dir in $PATH
32003do
32004 IFS=$as_save_IFS
32005 test -z "$as_dir" && as_dir=.
32006 for ac_exec_ext in '' $ac_executable_extensions; do
32007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32008 ac_cv_prog_DEREZ="DeRez"
32009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32010 break 2
32011 fi
32012done
32013done
32014
32015 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32016fi
32017fi
32018DEREZ=$ac_cv_prog_DEREZ
32019if test -n "$DEREZ"; then
32020 echo "$as_me:$LINENO: result: $DEREZ" >&5
32021echo "${ECHO_T}$DEREZ" >&6
32022else
32023 echo "$as_me:$LINENO: result: no" >&5
32024echo "${ECHO_T}no" >&6
32025fi
32026
32027 # Extract the first word of "SetFile", so it can be a program name with args.
32028set dummy SetFile; ac_word=$2
32029echo "$as_me:$LINENO: checking for $ac_word" >&5
32030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32031if test "${ac_cv_prog_SETFILE+set}" = set; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
32033else
32034 if test -n "$SETFILE"; then
32035 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32036else
32037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32038for as_dir in $PATH
32039do
32040 IFS=$as_save_IFS
32041 test -z "$as_dir" && as_dir=.
32042 for ac_exec_ext in '' $ac_executable_extensions; do
32043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32044 ac_cv_prog_SETFILE="SetFile"
32045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32046 break 2
32047 fi
32048done
32049done
32050
32051 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32052fi
32053fi
32054SETFILE=$ac_cv_prog_SETFILE
32055if test -n "$SETFILE"; then
32056 echo "$as_me:$LINENO: result: $SETFILE" >&5
32057echo "${ECHO_T}$SETFILE" >&6
32058else
32059 echo "$as_me:$LINENO: result: no" >&5
32060echo "${ECHO_T}no" >&6
32061fi
32062
32063
32064 MACSETFILE="\$(SETFILE)"
32065
32066 if test "$wxUSE_MAC" = 1; then
1a79f136 32067 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32068
1a79f136 32069 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
32070 else
32071 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
32072 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
32073 fi
32074else
ffa0583f
RL
32075 MACSETFILE="@true"
32076 MACRESWXCONFIG="@true"
a848cd7e
SC
32077
32078 if test "$wxUSE_PM" = 1; then
32079 MACRESCOMP="emxbind -ep"
32080 else
ffa0583f 32081 MACRESCOMP="@true"
a848cd7e
SC
32082 fi
32083fi
32084
32085
32086
32087echo "$as_me:$LINENO: checking for mode_t" >&5
32088echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32089if test "${ac_cv_type_mode_t+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32091else
32092 cat >conftest.$ac_ext <<_ACEOF
32093/* confdefs.h. */
32094_ACEOF
32095cat confdefs.h >>conftest.$ac_ext
32096cat >>conftest.$ac_ext <<_ACEOF
32097/* end confdefs.h. */
32098$ac_includes_default
32099int
32100main ()
32101{
32102if ((mode_t *) 0)
32103 return 0;
32104if (sizeof (mode_t))
32105 return 0;
32106 ;
32107 return 0;
32108}
32109_ACEOF
32110rm -f conftest.$ac_objext
32111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32112 (eval $ac_compile) 2>conftest.er1
a848cd7e 32113 ac_status=$?
ac1cb8d3
VS
32114 grep -v '^ *+' conftest.er1 >conftest.err
32115 rm -f conftest.er1
32116 cat conftest.err >&5
a848cd7e
SC
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } &&
be665c07
JS
32119 { ac_try='test -z "$ac_c_werror_flag"
32120 || test ! -s conftest.err'
ac1cb8d3
VS
32121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122 (eval $ac_try) 2>&5
32123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_type_mode_t=yes
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
32137ac_cv_type_mode_t=no
32138fi
ac1cb8d3 32139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32140fi
32141echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32142echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32143if test $ac_cv_type_mode_t = yes; then
32144 :
32145else
32146
32147cat >>confdefs.h <<_ACEOF
32148#define mode_t int
32149_ACEOF
32150
32151fi
32152
32153echo "$as_me:$LINENO: checking for off_t" >&5
32154echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32155if test "${ac_cv_type_off_t+set}" = set; then
32156 echo $ECHO_N "(cached) $ECHO_C" >&6
32157else
32158 cat >conftest.$ac_ext <<_ACEOF
32159/* confdefs.h. */
32160_ACEOF
32161cat confdefs.h >>conftest.$ac_ext
32162cat >>conftest.$ac_ext <<_ACEOF
32163/* end confdefs.h. */
32164$ac_includes_default
32165int
32166main ()
32167{
32168if ((off_t *) 0)
32169 return 0;
32170if (sizeof (off_t))
32171 return 0;
32172 ;
32173 return 0;
32174}
32175_ACEOF
32176rm -f conftest.$ac_objext
32177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32178 (eval $ac_compile) 2>conftest.er1
a848cd7e 32179 ac_status=$?
ac1cb8d3
VS
32180 grep -v '^ *+' conftest.er1 >conftest.err
32181 rm -f conftest.er1
32182 cat conftest.err >&5
a848cd7e
SC
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); } &&
be665c07
JS
32185 { ac_try='test -z "$ac_c_werror_flag"
32186 || test ! -s conftest.err'
ac1cb8d3
VS
32187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32188 (eval $ac_try) 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32194 (eval $ac_try) 2>&5
32195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 ac_cv_type_off_t=yes
32199else
32200 echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
32203ac_cv_type_off_t=no
32204fi
ac1cb8d3 32205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32206fi
32207echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32208echo "${ECHO_T}$ac_cv_type_off_t" >&6
32209if test $ac_cv_type_off_t = yes; then
32210 :
32211else
32212
32213cat >>confdefs.h <<_ACEOF
32214#define off_t long
32215_ACEOF
32216
32217fi
32218
32219echo "$as_me:$LINENO: checking for pid_t" >&5
32220echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32221if test "${ac_cv_type_pid_t+set}" = set; then
32222 echo $ECHO_N "(cached) $ECHO_C" >&6
32223else
32224 cat >conftest.$ac_ext <<_ACEOF
32225/* confdefs.h. */
32226_ACEOF
32227cat confdefs.h >>conftest.$ac_ext
32228cat >>conftest.$ac_ext <<_ACEOF
32229/* end confdefs.h. */
32230$ac_includes_default
32231int
32232main ()
32233{
32234if ((pid_t *) 0)
32235 return 0;
32236if (sizeof (pid_t))
32237 return 0;
32238 ;
32239 return 0;
32240}
32241_ACEOF
32242rm -f conftest.$ac_objext
32243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32244 (eval $ac_compile) 2>conftest.er1
a848cd7e 32245 ac_status=$?
ac1cb8d3
VS
32246 grep -v '^ *+' conftest.er1 >conftest.err
32247 rm -f conftest.er1
32248 cat conftest.err >&5
a848cd7e
SC
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); } &&
be665c07
JS
32251 { ac_try='test -z "$ac_c_werror_flag"
32252 || test ! -s conftest.err'
ac1cb8d3
VS
32253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32254 (eval $ac_try) 2>&5
32255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; } &&
32258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32261 ac_status=$?
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; }; then
32264 ac_cv_type_pid_t=yes
32265else
32266 echo "$as_me: failed program was:" >&5
32267sed 's/^/| /' conftest.$ac_ext >&5
32268
32269ac_cv_type_pid_t=no
32270fi
ac1cb8d3 32271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32272fi
32273echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32274echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32275if test $ac_cv_type_pid_t = yes; then
32276 :
32277else
32278
32279cat >>confdefs.h <<_ACEOF
32280#define pid_t int
32281_ACEOF
32282
32283fi
32284
32285echo "$as_me:$LINENO: checking for size_t" >&5
32286echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32287if test "${ac_cv_type_size_t+set}" = set; then
32288 echo $ECHO_N "(cached) $ECHO_C" >&6
32289else
32290 cat >conftest.$ac_ext <<_ACEOF
32291/* confdefs.h. */
32292_ACEOF
32293cat confdefs.h >>conftest.$ac_ext
32294cat >>conftest.$ac_ext <<_ACEOF
32295/* end confdefs.h. */
32296$ac_includes_default
32297int
32298main ()
32299{
32300if ((size_t *) 0)
32301 return 0;
32302if (sizeof (size_t))
32303 return 0;
32304 ;
32305 return 0;
32306}
32307_ACEOF
32308rm -f conftest.$ac_objext
32309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32310 (eval $ac_compile) 2>conftest.er1
a848cd7e 32311 ac_status=$?
ac1cb8d3
VS
32312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
a848cd7e
SC
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
be665c07
JS
32317 { ac_try='test -z "$ac_c_werror_flag"
32318 || test ! -s conftest.err'
ac1cb8d3
VS
32319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32320 (eval $ac_try) 2>&5
32321 ac_status=$?
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; } &&
32324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32326 (eval $ac_try) 2>&5
32327 ac_status=$?
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); }; }; then
32330 ac_cv_type_size_t=yes
32331else
32332 echo "$as_me: failed program was:" >&5
32333sed 's/^/| /' conftest.$ac_ext >&5
32334
32335ac_cv_type_size_t=no
32336fi
ac1cb8d3 32337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32338fi
32339echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32340echo "${ECHO_T}$ac_cv_type_size_t" >&6
32341if test $ac_cv_type_size_t = yes; then
32342 :
32343else
32344
32345cat >>confdefs.h <<_ACEOF
32346#define size_t unsigned
32347_ACEOF
32348
32349fi
32350
32351echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32352echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32353if test "${ac_cv_type_uid_t+set}" = set; then
32354 echo $ECHO_N "(cached) $ECHO_C" >&6
32355else
32356 cat >conftest.$ac_ext <<_ACEOF
32357/* confdefs.h. */
32358_ACEOF
32359cat confdefs.h >>conftest.$ac_ext
32360cat >>conftest.$ac_ext <<_ACEOF
32361/* end confdefs.h. */
32362#include <sys/types.h>
32363
32364_ACEOF
32365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32366 $EGREP "uid_t" >/dev/null 2>&1; then
32367 ac_cv_type_uid_t=yes
32368else
32369 ac_cv_type_uid_t=no
32370fi
32371rm -f conftest*
32372
32373fi
32374echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32375echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32376if test $ac_cv_type_uid_t = no; then
32377
32378cat >>confdefs.h <<\_ACEOF
32379#define uid_t int
32380_ACEOF
32381
32382
32383cat >>confdefs.h <<\_ACEOF
32384#define gid_t int
32385_ACEOF
32386
32387fi
32388
32389
d51253e8
RL
32390echo "$as_me:$LINENO: checking for ssize_t" >&5
32391echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32392if test "${ac_cv_type_ssize_t+set}" = set; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32394else
32395 cat >conftest.$ac_ext <<_ACEOF
32396/* confdefs.h. */
32397_ACEOF
32398cat confdefs.h >>conftest.$ac_ext
32399cat >>conftest.$ac_ext <<_ACEOF
32400/* end confdefs.h. */
32401$ac_includes_default
32402int
32403main ()
32404{
32405if ((ssize_t *) 0)
32406 return 0;
32407if (sizeof (ssize_t))
32408 return 0;
32409 ;
32410 return 0;
32411}
32412_ACEOF
32413rm -f conftest.$ac_objext
32414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32415 (eval $ac_compile) 2>conftest.er1
32416 ac_status=$?
32417 grep -v '^ *+' conftest.er1 >conftest.err
32418 rm -f conftest.er1
32419 cat conftest.err >&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); } &&
be665c07
JS
32422 { ac_try='test -z "$ac_c_werror_flag"
32423 || test ! -s conftest.err'
d51253e8
RL
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; } &&
32429 { ac_try='test -s conftest.$ac_objext'
32430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431 (eval $ac_try) 2>&5
32432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32435 ac_cv_type_ssize_t=yes
32436else
32437 echo "$as_me: failed program was:" >&5
32438sed 's/^/| /' conftest.$ac_ext >&5
32439
32440ac_cv_type_ssize_t=no
32441fi
32442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32443fi
32444echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32445echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32446if test $ac_cv_type_ssize_t = yes; then
32447
32448cat >>confdefs.h <<_ACEOF
32449#define HAVE_SSIZE_T 1
32450_ACEOF
32451
32452
32453fi
32454
32455
a848cd7e
SC
32456
32457
32458ac_ext=cc
32459ac_cpp='$CXXCPP $CPPFLAGS'
32460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32463
32464echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32465echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32466if test "${wx_cv_size_t_is_uint+set}" = set; then
32467 echo $ECHO_N "(cached) $ECHO_C" >&6
32468else
32469
32470 cat >conftest.$ac_ext <<_ACEOF
32471/* confdefs.h. */
32472_ACEOF
32473cat confdefs.h >>conftest.$ac_ext
32474cat >>conftest.$ac_ext <<_ACEOF
32475/* end confdefs.h. */
32476#include <stddef.h>
32477int
32478main ()
32479{
32480
32481 return 0; }
32482
32483 struct Foo { void foo(size_t); void foo(unsigned int); };
32484
32485 int bar() {
32486
32487 ;
32488 return 0;
32489}
32490_ACEOF
32491rm -f conftest.$ac_objext
32492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32493 (eval $ac_compile) 2>conftest.er1
a848cd7e 32494 ac_status=$?
ac1cb8d3
VS
32495 grep -v '^ *+' conftest.er1 >conftest.err
32496 rm -f conftest.er1
32497 cat conftest.err >&5
a848cd7e
SC
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
be665c07
JS
32500 { ac_try='test -z "$ac_cxx_werror_flag"
32501 || test ! -s conftest.err'
ac1cb8d3
VS
32502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32503 (eval $ac_try) 2>&5
32504 ac_status=$?
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; } &&
32507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509 (eval $ac_try) 2>&5
32510 ac_status=$?
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; }; then
32513 wx_cv_size_t_is_uint=no
32514else
32515 echo "$as_me: failed program was:" >&5
32516sed 's/^/| /' conftest.$ac_ext >&5
32517
32518wx_cv_size_t_is_uint=yes
32519
32520fi
ac1cb8d3 32521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32522
32523
32524fi
32525echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32526echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32527
32528if test "$wx_cv_size_t_is_uint" = "yes"; then
32529 cat >>confdefs.h <<\_ACEOF
32530#define wxSIZE_T_IS_UINT 1
32531_ACEOF
32532
32533else
32534 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32535echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32536if test "${wx_cv_size_t_is_ulong+set}" = set; then
32537 echo $ECHO_N "(cached) $ECHO_C" >&6
32538else
32539 cat >conftest.$ac_ext <<_ACEOF
32540/* confdefs.h. */
32541_ACEOF
32542cat confdefs.h >>conftest.$ac_ext
32543cat >>conftest.$ac_ext <<_ACEOF
32544/* end confdefs.h. */
32545#include <stddef.h>
32546int
32547main ()
32548{
32549
32550 return 0; }
32551
32552 struct Foo { void foo(size_t); void foo(unsigned long); };
32553
32554 int bar() {
32555
32556 ;
32557 return 0;
32558}
32559_ACEOF
32560rm -f conftest.$ac_objext
32561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32562 (eval $ac_compile) 2>conftest.er1
a848cd7e 32563 ac_status=$?
ac1cb8d3
VS
32564 grep -v '^ *+' conftest.er1 >conftest.err
32565 rm -f conftest.er1
32566 cat conftest.err >&5
a848cd7e
SC
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); } &&
be665c07
JS
32569 { ac_try='test -z "$ac_cxx_werror_flag"
32570 || test ! -s conftest.err'
ac1cb8d3
VS
32571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32572 (eval $ac_try) 2>&5
32573 ac_status=$?
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); }; } &&
32576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32578 (eval $ac_try) 2>&5
32579 ac_status=$?
32580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581 (exit $ac_status); }; }; then
32582 wx_cv_size_t_is_ulong=no
32583else
32584 echo "$as_me: failed program was:" >&5
32585sed 's/^/| /' conftest.$ac_ext >&5
32586
32587wx_cv_size_t_is_ulong=yes
32588
32589fi
ac1cb8d3 32590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32591
32592fi
32593echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32594echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32595
32596 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32597 cat >>confdefs.h <<\_ACEOF
32598#define wxSIZE_T_IS_ULONG 1
32599_ACEOF
32600
32601 fi
32602fi
32603
32604ac_ext=c
32605ac_cpp='$CPP $CPPFLAGS'
32606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608ac_compiler_gnu=$ac_cv_c_compiler_gnu
32609
32610
32611
32612echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32613echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32614if test "${wx_cv_struct_pw_gecos+set}" = set; then
32615 echo $ECHO_N "(cached) $ECHO_C" >&6
32616else
32617
32618 cat >conftest.$ac_ext <<_ACEOF
32619/* confdefs.h. */
32620_ACEOF
32621cat confdefs.h >>conftest.$ac_ext
32622cat >>conftest.$ac_ext <<_ACEOF
32623/* end confdefs.h. */
32624#include <pwd.h>
32625int
32626main ()
32627{
32628
32629 char *p;
32630 struct passwd *pw;
32631 p = pw->pw_gecos;
32632
32633 ;
32634 return 0;
32635}
32636_ACEOF
32637rm -f conftest.$ac_objext
32638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32639 (eval $ac_compile) 2>conftest.er1
a848cd7e 32640 ac_status=$?
ac1cb8d3
VS
32641 grep -v '^ *+' conftest.er1 >conftest.err
32642 rm -f conftest.er1
32643 cat conftest.err >&5
a848cd7e
SC
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); } &&
be665c07
JS
32646 { ac_try='test -z "$ac_c_werror_flag"
32647 || test ! -s conftest.err'
ac1cb8d3
VS
32648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32649 (eval $ac_try) 2>&5
32650 ac_status=$?
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); }; } &&
32653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
32659
32660 wx_cv_struct_pw_gecos=yes
32661
32662else
32663 echo "$as_me: failed program was:" >&5
32664sed 's/^/| /' conftest.$ac_ext >&5
32665
32666
32667 wx_cv_struct_pw_gecos=no
32668
32669
32670fi
ac1cb8d3 32671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32672
32673
32674fi
32675echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32676echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32677
32678if test "$wx_cv_struct_pw_gecos" = "yes"; then
32679 cat >>confdefs.h <<\_ACEOF
32680#define HAVE_PW_GECOS 1
32681_ACEOF
32682
32683fi
32684
32685
47a7e797 32686if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32687 cat >>confdefs.h <<\_ACEOF
32688#define wxUSE_WCHAR_T 1
32689_ACEOF
32690
32691
32692 WCSLEN_FOUND=0
32693 WCHAR_LINK=
32694
32695for ac_func in wcslen
32696do
32697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32698echo "$as_me:$LINENO: checking for $ac_func" >&5
32699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32700if eval "test \"\${$as_ac_var+set}\" = set"; then
32701 echo $ECHO_N "(cached) $ECHO_C" >&6
32702else
32703 cat >conftest.$ac_ext <<_ACEOF
32704/* confdefs.h. */
32705_ACEOF
32706cat confdefs.h >>conftest.$ac_ext
32707cat >>conftest.$ac_ext <<_ACEOF
32708/* end confdefs.h. */
ac1cb8d3
VS
32709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32711#define $ac_func innocuous_$ac_func
32712
a848cd7e
SC
32713/* System header to define __stub macros and hopefully few prototypes,
32714 which can conflict with char $ac_func (); below.
32715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32716 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32717
a848cd7e
SC
32718#ifdef __STDC__
32719# include <limits.h>
32720#else
32721# include <assert.h>
32722#endif
ac1cb8d3
VS
32723
32724#undef $ac_func
32725
a848cd7e
SC
32726/* Override any gcc2 internal prototype to avoid an error. */
32727#ifdef __cplusplus
32728extern "C"
32729{
32730#endif
32731/* We use char because int might match the return type of a gcc2
32732 builtin and then its argument prototype would still apply. */
32733char $ac_func ();
32734/* The GNU C library defines this for functions which it implements
32735 to always fail with ENOSYS. Some functions are actually named
32736 something starting with __ and the normal name is an alias. */
32737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32738choke me
32739#else
32740char (*f) () = $ac_func;
32741#endif
32742#ifdef __cplusplus
32743}
32744#endif
32745
32746int
32747main ()
32748{
32749return f != $ac_func;
32750 ;
32751 return 0;
32752}
32753_ACEOF
32754rm -f conftest.$ac_objext conftest$ac_exeext
32755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32756 (eval $ac_link) 2>conftest.er1
a848cd7e 32757 ac_status=$?
ac1cb8d3
VS
32758 grep -v '^ *+' conftest.er1 >conftest.err
32759 rm -f conftest.er1
32760 cat conftest.err >&5
a848cd7e
SC
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); } &&
be665c07
JS
32763 { ac_try='test -z "$ac_c_werror_flag"
32764 || test ! -s conftest.err'
ac1cb8d3
VS
32765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32766 (eval $ac_try) 2>&5
32767 ac_status=$?
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 eval "$as_ac_var=yes"
32777else
32778 echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
32781eval "$as_ac_var=no"
32782fi
ac1cb8d3
VS
32783rm -f conftest.err conftest.$ac_objext \
32784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32785fi
32786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32788if test `eval echo '${'$as_ac_var'}'` = yes; then
32789 cat >>confdefs.h <<_ACEOF
32790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32791_ACEOF
32792 WCSLEN_FOUND=1
32793fi
32794done
32795
32796
32797 if test "$WCSLEN_FOUND" = 0; then
32798 if test "$TOOLKIT" = "MSW"; then
32799 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32800echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32801if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32802 echo $ECHO_N "(cached) $ECHO_C" >&6
32803else
32804 ac_check_lib_save_LIBS=$LIBS
32805LIBS="-lmsvcrt $LIBS"
32806cat >conftest.$ac_ext <<_ACEOF
32807/* confdefs.h. */
32808_ACEOF
32809cat confdefs.h >>conftest.$ac_ext
32810cat >>conftest.$ac_ext <<_ACEOF
32811/* end confdefs.h. */
32812
32813/* Override any gcc2 internal prototype to avoid an error. */
32814#ifdef __cplusplus
32815extern "C"
32816#endif
32817/* We use char because int might match the return type of a gcc2
32818 builtin and then its argument prototype would still apply. */
32819char wcslen ();
32820int
32821main ()
32822{
32823wcslen ();
32824 ;
32825 return 0;
32826}
32827_ACEOF
32828rm -f conftest.$ac_objext conftest$ac_exeext
32829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32830 (eval $ac_link) 2>conftest.er1
a848cd7e 32831 ac_status=$?
ac1cb8d3
VS
32832 grep -v '^ *+' conftest.er1 >conftest.err
32833 rm -f conftest.er1
32834 cat conftest.err >&5
a848cd7e
SC
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); } &&
be665c07
JS
32837 { ac_try='test -z "$ac_c_werror_flag"
32838 || test ! -s conftest.err'
ac1cb8d3
VS
32839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32840 (eval $ac_try) 2>&5
32841 ac_status=$?
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; } &&
32844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32846 (eval $ac_try) 2>&5
32847 ac_status=$?
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); }; }; then
32850 ac_cv_lib_msvcrt_wcslen=yes
32851else
32852 echo "$as_me: failed program was:" >&5
32853sed 's/^/| /' conftest.$ac_ext >&5
32854
32855ac_cv_lib_msvcrt_wcslen=no
32856fi
ac1cb8d3
VS
32857rm -f conftest.err conftest.$ac_objext \
32858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32859LIBS=$ac_check_lib_save_LIBS
32860fi
32861echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32862echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32863if test $ac_cv_lib_msvcrt_wcslen = yes; then
32864 WCHAR_OK=1
32865fi
32866
32867 else
32868 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32869echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32870if test "${ac_cv_lib_w_wcslen+set}" = set; then
32871 echo $ECHO_N "(cached) $ECHO_C" >&6
32872else
32873 ac_check_lib_save_LIBS=$LIBS
32874LIBS="-lw $LIBS"
32875cat >conftest.$ac_ext <<_ACEOF
32876/* confdefs.h. */
32877_ACEOF
32878cat confdefs.h >>conftest.$ac_ext
32879cat >>conftest.$ac_ext <<_ACEOF
32880/* end confdefs.h. */
32881
32882/* Override any gcc2 internal prototype to avoid an error. */
32883#ifdef __cplusplus
32884extern "C"
32885#endif
32886/* We use char because int might match the return type of a gcc2
32887 builtin and then its argument prototype would still apply. */
32888char wcslen ();
32889int
32890main ()
32891{
32892wcslen ();
32893 ;
32894 return 0;
32895}
32896_ACEOF
32897rm -f conftest.$ac_objext conftest$ac_exeext
32898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32899 (eval $ac_link) 2>conftest.er1
a848cd7e 32900 ac_status=$?
ac1cb8d3
VS
32901 grep -v '^ *+' conftest.er1 >conftest.err
32902 rm -f conftest.er1
32903 cat conftest.err >&5
a848cd7e
SC
32904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905 (exit $ac_status); } &&
be665c07
JS
32906 { ac_try='test -z "$ac_c_werror_flag"
32907 || test ! -s conftest.err'
ac1cb8d3
VS
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; } &&
32913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915 (eval $ac_try) 2>&5
32916 ac_status=$?
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; }; then
32919 ac_cv_lib_w_wcslen=yes
32920else
32921 echo "$as_me: failed program was:" >&5
32922sed 's/^/| /' conftest.$ac_ext >&5
32923
32924ac_cv_lib_w_wcslen=no
32925fi
ac1cb8d3
VS
32926rm -f conftest.err conftest.$ac_objext \
32927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32928LIBS=$ac_check_lib_save_LIBS
32929fi
32930echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32931echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32932if test $ac_cv_lib_w_wcslen = yes; then
32933
32934 WCHAR_LINK=" -lw"
32935 WCSLEN_FOUND=1
32936
32937fi
32938
32939 fi
32940 fi
32941
32942 if test "$WCSLEN_FOUND" = 1; then
32943 cat >>confdefs.h <<\_ACEOF
32944#define HAVE_WCSLEN 1
32945_ACEOF
32946
32947 fi
32948
efdf6afe 32949 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32950 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32951 fi
32952
efdf6afe
VZ
32953 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32954echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32955if test "${ac_cv_type_mbstate_t+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32957else
32958 cat >conftest.$ac_ext <<_ACEOF
32959/* confdefs.h. */
32960_ACEOF
32961cat confdefs.h >>conftest.$ac_ext
32962cat >>conftest.$ac_ext <<_ACEOF
32963/* end confdefs.h. */
32964#include <wchar.h>
32965
32966int
32967main ()
32968{
32969if ((mbstate_t *) 0)
32970 return 0;
32971if (sizeof (mbstate_t))
32972 return 0;
32973 ;
32974 return 0;
32975}
32976_ACEOF
32977rm -f conftest.$ac_objext
32978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32979 (eval $ac_compile) 2>conftest.er1
32980 ac_status=$?
32981 grep -v '^ *+' conftest.er1 >conftest.err
32982 rm -f conftest.er1
32983 cat conftest.err >&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); } &&
be665c07
JS
32986 { ac_try='test -z "$ac_c_werror_flag"
32987 || test ! -s conftest.err'
efdf6afe
VZ
32988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989 (eval $ac_try) 2>&5
32990 ac_status=$?
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; } &&
32993 { ac_try='test -s conftest.$ac_objext'
32994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995 (eval $ac_try) 2>&5
32996 ac_status=$?
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); }; }; then
32999 ac_cv_type_mbstate_t=yes
33000else
33001 echo "$as_me: failed program was:" >&5
33002sed 's/^/| /' conftest.$ac_ext >&5
33003
33004ac_cv_type_mbstate_t=no
33005fi
33006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33007fi
33008echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33009echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33010if test $ac_cv_type_mbstate_t = yes; then
33011
33012cat >>confdefs.h <<_ACEOF
33013#define HAVE_MBSTATE_T 1
33014_ACEOF
33015
a848cd7e
SC
33016
33017for ac_func in wcsrtombs
33018do
33019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33020echo "$as_me:$LINENO: checking for $ac_func" >&5
33021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33022if eval "test \"\${$as_ac_var+set}\" = set"; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
33025 cat >conftest.$ac_ext <<_ACEOF
33026/* confdefs.h. */
33027_ACEOF
33028cat confdefs.h >>conftest.$ac_ext
33029cat >>conftest.$ac_ext <<_ACEOF
33030/* end confdefs.h. */
ac1cb8d3
VS
33031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33033#define $ac_func innocuous_$ac_func
33034
a848cd7e
SC
33035/* System header to define __stub macros and hopefully few prototypes,
33036 which can conflict with char $ac_func (); below.
33037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33039
a848cd7e
SC
33040#ifdef __STDC__
33041# include <limits.h>
33042#else
33043# include <assert.h>
33044#endif
ac1cb8d3
VS
33045
33046#undef $ac_func
33047
a848cd7e
SC
33048/* Override any gcc2 internal prototype to avoid an error. */
33049#ifdef __cplusplus
33050extern "C"
33051{
33052#endif
33053/* We use char because int might match the return type of a gcc2
33054 builtin and then its argument prototype would still apply. */
33055char $ac_func ();
33056/* The GNU C library defines this for functions which it implements
33057 to always fail with ENOSYS. Some functions are actually named
33058 something starting with __ and the normal name is an alias. */
33059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33060choke me
33061#else
33062char (*f) () = $ac_func;
33063#endif
33064#ifdef __cplusplus
33065}
33066#endif
33067
33068int
33069main ()
33070{
33071return f != $ac_func;
33072 ;
33073 return 0;
33074}
33075_ACEOF
33076rm -f conftest.$ac_objext conftest$ac_exeext
33077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33078 (eval $ac_link) 2>conftest.er1
a848cd7e 33079 ac_status=$?
ac1cb8d3
VS
33080 grep -v '^ *+' conftest.er1 >conftest.err
33081 rm -f conftest.er1
33082 cat conftest.err >&5
a848cd7e
SC
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); } &&
be665c07
JS
33085 { ac_try='test -z "$ac_c_werror_flag"
33086 || test ! -s conftest.err'
ac1cb8d3
VS
33087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33088 (eval $ac_try) 2>&5
33089 ac_status=$?
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); }; } &&
33092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094 (eval $ac_try) 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; }; then
33098 eval "$as_ac_var=yes"
33099else
33100 echo "$as_me: failed program was:" >&5
33101sed 's/^/| /' conftest.$ac_ext >&5
33102
33103eval "$as_ac_var=no"
33104fi
ac1cb8d3
VS
33105rm -f conftest.err conftest.$ac_objext \
33106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33107fi
33108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33110if test `eval echo '${'$as_ac_var'}'` = yes; then
33111 cat >>confdefs.h <<_ACEOF
33112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33113_ACEOF
33114
33115fi
33116done
33117
efdf6afe
VZ
33118fi
33119
a848cd7e
SC
33120else
33121 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33122echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33123fi
33124
33125
33126
33127ac_ext=cc
33128ac_cpp='$CXXCPP $CPPFLAGS'
33129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33132
33133
33134
4a767dd5
VZ
33135
33136for ac_func in snprintf vsnprintf
a848cd7e
SC
33137do
33138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33139echo "$as_me:$LINENO: checking for $ac_func" >&5
33140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33141if eval "test \"\${$as_ac_var+set}\" = set"; then
33142 echo $ECHO_N "(cached) $ECHO_C" >&6
33143else
33144 cat >conftest.$ac_ext <<_ACEOF
33145/* confdefs.h. */
33146_ACEOF
33147cat confdefs.h >>conftest.$ac_ext
33148cat >>conftest.$ac_ext <<_ACEOF
33149/* end confdefs.h. */
ac1cb8d3
VS
33150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33152#define $ac_func innocuous_$ac_func
33153
a848cd7e
SC
33154/* System header to define __stub macros and hopefully few prototypes,
33155 which can conflict with char $ac_func (); below.
33156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33157 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33158
a848cd7e
SC
33159#ifdef __STDC__
33160# include <limits.h>
33161#else
33162# include <assert.h>
33163#endif
ac1cb8d3
VS
33164
33165#undef $ac_func
33166
a848cd7e
SC
33167/* Override any gcc2 internal prototype to avoid an error. */
33168#ifdef __cplusplus
33169extern "C"
33170{
33171#endif
33172/* We use char because int might match the return type of a gcc2
33173 builtin and then its argument prototype would still apply. */
33174char $ac_func ();
33175/* The GNU C library defines this for functions which it implements
33176 to always fail with ENOSYS. Some functions are actually named
33177 something starting with __ and the normal name is an alias. */
33178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33179choke me
33180#else
33181char (*f) () = $ac_func;
33182#endif
33183#ifdef __cplusplus
33184}
33185#endif
33186
33187int
33188main ()
33189{
33190return f != $ac_func;
33191 ;
33192 return 0;
33193}
33194_ACEOF
33195rm -f conftest.$ac_objext conftest$ac_exeext
33196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33197 (eval $ac_link) 2>conftest.er1
a848cd7e 33198 ac_status=$?
ac1cb8d3
VS
33199 grep -v '^ *+' conftest.er1 >conftest.err
33200 rm -f conftest.er1
33201 cat conftest.err >&5
a848cd7e
SC
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); } &&
be665c07
JS
33204 { ac_try='test -z "$ac_cxx_werror_flag"
33205 || test ! -s conftest.err'
ac1cb8d3
VS
33206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33207 (eval $ac_try) 2>&5
33208 ac_status=$?
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; } &&
33211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213 (eval $ac_try) 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; }; then
33217 eval "$as_ac_var=yes"
33218else
33219 echo "$as_me: failed program was:" >&5
33220sed 's/^/| /' conftest.$ac_ext >&5
33221
33222eval "$as_ac_var=no"
33223fi
ac1cb8d3
VS
33224rm -f conftest.err conftest.$ac_objext \
33225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33226fi
33227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33229if test `eval echo '${'$as_ac_var'}'` = yes; then
33230 cat >>confdefs.h <<_ACEOF
33231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33232_ACEOF
33233
33234fi
33235done
33236
33237
33238if test "$ac_cv_func_vsnprintf" = "yes"; then
33239 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33240echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33241if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
33243else
33244
efdf6afe 33245 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33246/* confdefs.h. */
33247_ACEOF
33248cat confdefs.h >>conftest.$ac_ext
33249cat >>conftest.$ac_ext <<_ACEOF
33250/* end confdefs.h. */
33251
33252 #include <stdio.h>
33253 #include <stdarg.h>
efdf6afe
VZ
33254 #ifdef __MSL__
33255 #if __MSL__ >= 0x6000
33256 namespace std {}
33257 using namespace std;
33258 #endif
33259 #endif
a848cd7e
SC
33260
33261int
33262main ()
33263{
33264
33265 char *buf;
33266 va_list ap;
62fa8b3a 33267 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33268
33269 ;
33270 return 0;
33271}
33272_ACEOF
33273rm -f conftest.$ac_objext
33274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33275 (eval $ac_compile) 2>conftest.er1
33276 ac_status=$?
33277 grep -v '^ *+' conftest.er1 >conftest.err
33278 rm -f conftest.er1
33279 cat conftest.err >&5
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); } &&
be665c07
JS
33282 { ac_try='test -z "$ac_cxx_werror_flag"
33283 || test ! -s conftest.err'
c122b164
DE
33284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285 (eval $ac_try) 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; } &&
33289 { ac_try='test -s conftest.$ac_objext'
33290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33291 (eval $ac_try) 2>&5
33292 ac_status=$?
33293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294 (exit $ac_status); }; }; then
33295 wx_cv_func_vsnprintf_decl=yes
33296else
33297 echo "$as_me: failed program was:" >&5
33298sed 's/^/| /' conftest.$ac_ext >&5
33299
a848cd7e
SC
33300wx_cv_func_vsnprintf_decl=no
33301
33302fi
ac1cb8d3 33303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33304
33305
33306fi
33307echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33308echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33309
33310 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33311 cat >>confdefs.h <<\_ACEOF
33312#define HAVE_VSNPRINTF_DECL 1
33313_ACEOF
33314
62fa8b3a
MW
33315
33316 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33317echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33318if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33319 echo $ECHO_N "(cached) $ECHO_C" >&6
33320else
33321
33322 cat >conftest.$ac_ext <<_ACEOF
33323/* confdefs.h. */
33324_ACEOF
33325cat confdefs.h >>conftest.$ac_ext
33326cat >>conftest.$ac_ext <<_ACEOF
33327/* end confdefs.h. */
33328
33329 #include <stdio.h>
33330 #include <stdarg.h>
33331 #ifdef __MSL__
33332 #if __MSL__ >= 0x6000
33333 namespace std {}
33334 using namespace std;
33335 #endif
33336 #endif
33337
33338int
33339main ()
33340{
33341
33342 char *buf;
33343 va_list ap;
33344 const char *fmt = "%s";
33345 vsnprintf(buf, 10u, fmt, ap);
33346
33347 ;
33348 return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext
33352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33353 (eval $ac_compile) 2>conftest.er1
33354 ac_status=$?
33355 grep -v '^ *+' conftest.er1 >conftest.err
33356 rm -f conftest.er1
33357 cat conftest.err >&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); } &&
be665c07
JS
33360 { ac_try='test -z "$ac_cxx_werror_flag"
33361 || test ! -s conftest.err'
62fa8b3a
MW
33362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33363 (eval $ac_try) 2>&5
33364 ac_status=$?
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); }; } &&
33367 { ac_try='test -s conftest.$ac_objext'
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; }; then
33373 wx_cv_func_broken_vsnprintf_decl=no
33374else
33375 echo "$as_me: failed program was:" >&5
33376sed 's/^/| /' conftest.$ac_ext >&5
33377
33378wx_cv_func_broken_vsnprintf_decl=yes
33379
33380fi
33381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33382
33383
33384fi
33385echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33386echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33387
33388 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33389 cat >>confdefs.h <<\_ACEOF
33390#define HAVE_BROKEN_VSNPRINTF_DECL 1
33391_ACEOF
33392
33393 fi
a848cd7e
SC
33394 fi
33395fi
33396
4a767dd5
VZ
33397if test "$ac_cv_func_snprintf" = "yes"; then
33398 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33399echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33400if test "${wx_cv_func_snprintf_decl+set}" = set; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33402else
33403
33404 cat >conftest.$ac_ext <<_ACEOF
33405/* confdefs.h. */
33406_ACEOF
33407cat confdefs.h >>conftest.$ac_ext
33408cat >>conftest.$ac_ext <<_ACEOF
33409/* end confdefs.h. */
33410
33411 #include <stdio.h>
33412 #include <stdarg.h>
33413 #ifdef __MSL__
33414 #if __MSL__ >= 0x6000
33415 namespace std {}
33416 using namespace std;
33417 #endif
33418 #endif
33419
33420int
33421main ()
33422{
33423
33424 char *buf;
62fa8b3a 33425 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33426
33427 ;
33428 return 0;
33429}
33430_ACEOF
33431rm -f conftest.$ac_objext
33432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33433 (eval $ac_compile) 2>conftest.er1
33434 ac_status=$?
33435 grep -v '^ *+' conftest.er1 >conftest.err
33436 rm -f conftest.er1
33437 cat conftest.err >&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); } &&
be665c07
JS
33440 { ac_try='test -z "$ac_cxx_werror_flag"
33441 || test ! -s conftest.err'
4a767dd5
VZ
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest.$ac_objext'
33448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33449 (eval $ac_try) 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); }; }; then
33453 wx_cv_func_snprintf_decl=yes
33454else
33455 echo "$as_me: failed program was:" >&5
33456sed 's/^/| /' conftest.$ac_ext >&5
33457
33458wx_cv_func_snprintf_decl=no
33459
33460fi
33461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33462
33463
33464fi
33465echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33466echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33467
33468 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33469 cat >>confdefs.h <<\_ACEOF
33470#define HAVE_SNPRINTF_DECL 1
33471_ACEOF
33472
62fa8b3a
MW
33473
33474 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33475echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33476if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33477 echo $ECHO_N "(cached) $ECHO_C" >&6
33478else
33479
33480 cat >conftest.$ac_ext <<_ACEOF
33481/* confdefs.h. */
33482_ACEOF
33483cat confdefs.h >>conftest.$ac_ext
33484cat >>conftest.$ac_ext <<_ACEOF
33485/* end confdefs.h. */
33486
33487 #include <stdio.h>
33488 #include <stdarg.h>
33489 #ifdef __MSL__
33490 #if __MSL__ >= 0x6000
33491 namespace std {}
33492 using namespace std;
33493 #endif
33494 #endif
33495
33496int
33497main ()
33498{
33499
33500 char *buf;
33501 const char *fmt = "%s";
33502 snprintf(buf, 10u, fmt, "wx");
33503
33504 ;
33505 return 0;
33506}
33507_ACEOF
33508rm -f conftest.$ac_objext
33509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33510 (eval $ac_compile) 2>conftest.er1
33511 ac_status=$?
33512 grep -v '^ *+' conftest.er1 >conftest.err
33513 rm -f conftest.er1
33514 cat conftest.err >&5
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); } &&
be665c07
JS
33517 { ac_try='test -z "$ac_cxx_werror_flag"
33518 || test ! -s conftest.err'
62fa8b3a
MW
33519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33520 (eval $ac_try) 2>&5
33521 ac_status=$?
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); }; } &&
33524 { ac_try='test -s conftest.$ac_objext'
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; }; then
33530 wx_cv_func_broken_snprintf_decl=no
33531else
33532 echo "$as_me: failed program was:" >&5
33533sed 's/^/| /' conftest.$ac_ext >&5
33534
33535wx_cv_func_broken_snprintf_decl=yes
33536
33537fi
33538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33539
33540
33541fi
33542echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33543echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33544
33545 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33546 cat >>confdefs.h <<\_ACEOF
33547#define HAVE_BROKEN_SNPRINTF_DECL 1
33548_ACEOF
33549
33550 fi
4a767dd5
VZ
33551 fi
33552fi
33553
a848cd7e
SC
33554if test "$wxUSE_UNICODE" = yes; then
33555
33556
33557
fbe47c7b
VS
33558
33559
33560
33561for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33562do
33563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33564echo "$as_me:$LINENO: checking for $ac_func" >&5
33565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33566if eval "test \"\${$as_ac_var+set}\" = set"; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568else
33569 cat >conftest.$ac_ext <<_ACEOF
33570/* confdefs.h. */
33571_ACEOF
33572cat confdefs.h >>conftest.$ac_ext
33573cat >>conftest.$ac_ext <<_ACEOF
33574/* end confdefs.h. */
ac1cb8d3
VS
33575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33577#define $ac_func innocuous_$ac_func
33578
a848cd7e
SC
33579/* System header to define __stub macros and hopefully few prototypes,
33580 which can conflict with char $ac_func (); below.
33581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33583
a848cd7e
SC
33584#ifdef __STDC__
33585# include <limits.h>
33586#else
33587# include <assert.h>
33588#endif
ac1cb8d3
VS
33589
33590#undef $ac_func
33591
a848cd7e
SC
33592/* Override any gcc2 internal prototype to avoid an error. */
33593#ifdef __cplusplus
33594extern "C"
33595{
33596#endif
33597/* We use char because int might match the return type of a gcc2
33598 builtin and then its argument prototype would still apply. */
33599char $ac_func ();
33600/* The GNU C library defines this for functions which it implements
33601 to always fail with ENOSYS. Some functions are actually named
33602 something starting with __ and the normal name is an alias. */
33603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33604choke me
33605#else
33606char (*f) () = $ac_func;
33607#endif
33608#ifdef __cplusplus
33609}
33610#endif
33611
33612int
33613main ()
33614{
33615return f != $ac_func;
33616 ;
33617 return 0;
33618}
33619_ACEOF
33620rm -f conftest.$ac_objext conftest$ac_exeext
33621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33622 (eval $ac_link) 2>conftest.er1
a848cd7e 33623 ac_status=$?
ac1cb8d3
VS
33624 grep -v '^ *+' conftest.er1 >conftest.err
33625 rm -f conftest.er1
33626 cat conftest.err >&5
a848cd7e
SC
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); } &&
be665c07
JS
33629 { ac_try='test -z "$ac_cxx_werror_flag"
33630 || test ! -s conftest.err'
ac1cb8d3
VS
33631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632 (eval $ac_try) 2>&5
33633 ac_status=$?
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); }; } &&
33636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33638 (eval $ac_try) 2>&5
33639 ac_status=$?
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); }; }; then
33642 eval "$as_ac_var=yes"
33643else
33644 echo "$as_me: failed program was:" >&5
33645sed 's/^/| /' conftest.$ac_ext >&5
33646
33647eval "$as_ac_var=no"
33648fi
ac1cb8d3
VS
33649rm -f conftest.err conftest.$ac_objext \
33650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33651fi
33652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33654if test `eval echo '${'$as_ac_var'}'` = yes; then
33655 cat >>confdefs.h <<_ACEOF
33656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33657_ACEOF
33658
33659fi
33660done
33661
33662
33663 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33664echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33665 cat >conftest.$ac_ext <<_ACEOF
33666/* confdefs.h. */
33667_ACEOF
33668cat confdefs.h >>conftest.$ac_ext
33669cat >>conftest.$ac_ext <<_ACEOF
33670/* end confdefs.h. */
33671#include <wchar.h>
33672int
33673main ()
33674{
33675&_vsnwprintf;
33676 ;
33677 return 0;
33678}
33679_ACEOF
33680rm -f conftest.$ac_objext
33681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33682 (eval $ac_compile) 2>conftest.er1
a848cd7e 33683 ac_status=$?
ac1cb8d3
VS
33684 grep -v '^ *+' conftest.er1 >conftest.err
33685 rm -f conftest.er1
33686 cat conftest.err >&5
a848cd7e
SC
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 (exit $ac_status); } &&
be665c07
JS
33689 { ac_try='test -z "$ac_cxx_werror_flag"
33690 || test ! -s conftest.err'
ac1cb8d3
VS
33691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 (eval $ac_try) 2>&5
33693 ac_status=$?
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; } &&
33696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33699 ac_status=$?
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; }; then
33702 echo "$as_me:$LINENO: result: yes" >&5
33703echo "${ECHO_T}yes" >&6
33704 cat >>confdefs.h <<\_ACEOF
33705#define HAVE__VSNWPRINTF 1
33706_ACEOF
33707
33708else
33709 echo "$as_me: failed program was:" >&5
33710sed 's/^/| /' conftest.$ac_ext >&5
33711
33712echo "$as_me:$LINENO: result: no" >&5
33713echo "${ECHO_T}no" >&6
33714fi
ac1cb8d3 33715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33716fi
33717
33718ac_ext=c
33719ac_cpp='$CPP $CPPFLAGS'
33720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33722ac_compiler_gnu=$ac_cv_c_compiler_gnu
33723
33724
6ebeb4c7
VZ
33725if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33726
33727for ac_func in fnmatch
33728do
33729as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33730echo "$as_me:$LINENO: checking for $ac_func" >&5
33731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33732if eval "test \"\${$as_ac_var+set}\" = set"; then
33733 echo $ECHO_N "(cached) $ECHO_C" >&6
33734else
33735 cat >conftest.$ac_ext <<_ACEOF
33736/* confdefs.h. */
33737_ACEOF
33738cat confdefs.h >>conftest.$ac_ext
33739cat >>conftest.$ac_ext <<_ACEOF
33740/* end confdefs.h. */
33741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33743#define $ac_func innocuous_$ac_func
33744
33745/* System header to define __stub macros and hopefully few prototypes,
33746 which can conflict with char $ac_func (); below.
33747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33748 <limits.h> exists even on freestanding compilers. */
33749
33750#ifdef __STDC__
33751# include <limits.h>
33752#else
33753# include <assert.h>
33754#endif
33755
33756#undef $ac_func
33757
33758/* Override any gcc2 internal prototype to avoid an error. */
33759#ifdef __cplusplus
33760extern "C"
33761{
33762#endif
33763/* We use char because int might match the return type of a gcc2
33764 builtin and then its argument prototype would still apply. */
33765char $ac_func ();
33766/* The GNU C library defines this for functions which it implements
33767 to always fail with ENOSYS. Some functions are actually named
33768 something starting with __ and the normal name is an alias. */
33769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33770choke me
33771#else
33772char (*f) () = $ac_func;
33773#endif
33774#ifdef __cplusplus
33775}
33776#endif
33777
33778int
33779main ()
33780{
33781return f != $ac_func;
33782 ;
33783 return 0;
33784}
33785_ACEOF
33786rm -f conftest.$ac_objext conftest$ac_exeext
33787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33788 (eval $ac_link) 2>conftest.er1
33789 ac_status=$?
33790 grep -v '^ *+' conftest.er1 >conftest.err
33791 rm -f conftest.er1
33792 cat conftest.err >&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } &&
be665c07
JS
33795 { ac_try='test -z "$ac_c_werror_flag"
33796 || test ! -s conftest.err'
6ebeb4c7
VZ
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; } &&
33802 { ac_try='test -s conftest$ac_exeext'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33805 ac_status=$?
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
33808 eval "$as_ac_var=yes"
33809else
33810 echo "$as_me: failed program was:" >&5
33811sed 's/^/| /' conftest.$ac_ext >&5
33812
33813eval "$as_ac_var=no"
33814fi
33815rm -f conftest.err conftest.$ac_objext \
33816 conftest$ac_exeext conftest.$ac_ext
33817fi
33818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33820if test `eval echo '${'$as_ac_var'}'` = yes; then
33821 cat >>confdefs.h <<_ACEOF
33822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33823_ACEOF
33824
33825fi
33826done
33827
33828fi
33829
33830if test "$wxUSE_FILE" = "yes"; then
33831
33832for ac_func in fsync
33833do
33834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33835echo "$as_me:$LINENO: checking for $ac_func" >&5
33836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33837if eval "test \"\${$as_ac_var+set}\" = set"; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839else
33840 cat >conftest.$ac_ext <<_ACEOF
33841/* confdefs.h. */
33842_ACEOF
33843cat confdefs.h >>conftest.$ac_ext
33844cat >>conftest.$ac_ext <<_ACEOF
33845/* end confdefs.h. */
33846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33848#define $ac_func innocuous_$ac_func
33849
33850/* System header to define __stub macros and hopefully few prototypes,
33851 which can conflict with char $ac_func (); below.
33852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33853 <limits.h> exists even on freestanding compilers. */
33854
33855#ifdef __STDC__
33856# include <limits.h>
33857#else
33858# include <assert.h>
33859#endif
33860
33861#undef $ac_func
33862
33863/* Override any gcc2 internal prototype to avoid an error. */
33864#ifdef __cplusplus
33865extern "C"
33866{
33867#endif
33868/* We use char because int might match the return type of a gcc2
33869 builtin and then its argument prototype would still apply. */
33870char $ac_func ();
33871/* The GNU C library defines this for functions which it implements
33872 to always fail with ENOSYS. Some functions are actually named
33873 something starting with __ and the normal name is an alias. */
33874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33875choke me
33876#else
33877char (*f) () = $ac_func;
33878#endif
33879#ifdef __cplusplus
33880}
33881#endif
33882
33883int
33884main ()
33885{
33886return f != $ac_func;
33887 ;
33888 return 0;
33889}
33890_ACEOF
33891rm -f conftest.$ac_objext conftest$ac_exeext
33892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33893 (eval $ac_link) 2>conftest.er1
33894 ac_status=$?
33895 grep -v '^ *+' conftest.er1 >conftest.err
33896 rm -f conftest.er1
33897 cat conftest.err >&5
33898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33899 (exit $ac_status); } &&
be665c07
JS
33900 { ac_try='test -z "$ac_c_werror_flag"
33901 || test ! -s conftest.err'
6ebeb4c7
VZ
33902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33903 (eval $ac_try) 2>&5
33904 ac_status=$?
33905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 (exit $ac_status); }; } &&
33907 { ac_try='test -s conftest$ac_exeext'
33908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33909 (eval $ac_try) 2>&5
33910 ac_status=$?
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; }; then
33913 eval "$as_ac_var=yes"
33914else
33915 echo "$as_me: failed program was:" >&5
33916sed 's/^/| /' conftest.$ac_ext >&5
33917
33918eval "$as_ac_var=no"
33919fi
33920rm -f conftest.err conftest.$ac_objext \
33921 conftest$ac_exeext conftest.$ac_ext
33922fi
33923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33925if test `eval echo '${'$as_ac_var'}'` = yes; then
33926 cat >>confdefs.h <<_ACEOF
33927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33928_ACEOF
33929
33930fi
33931done
33932
33933fi
a848cd7e
SC
33934
33935
33936if test "$TOOLKIT" != "MSW"; then
33937
33938
33939
33940
33941ac_ext=cc
33942ac_cpp='$CXXCPP $CPPFLAGS'
33943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33946
33947
33948
33949
33950# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33951if test "${with_libiconv_prefix+set}" = set; then
33952 withval="$with_libiconv_prefix"
33953
33954 for dir in `echo "$withval" | tr : ' '`; do
33955 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33956 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33957 done
33958
33959fi;
33960
33961 echo "$as_me:$LINENO: checking for iconv" >&5
33962echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33963if test "${am_cv_func_iconv+set}" = set; then
33964 echo $ECHO_N "(cached) $ECHO_C" >&6
33965else
33966
33967 am_cv_func_iconv="no, consider installing GNU libiconv"
33968 am_cv_lib_iconv=no
33969 cat >conftest.$ac_ext <<_ACEOF
33970/* confdefs.h. */
33971_ACEOF
33972cat confdefs.h >>conftest.$ac_ext
33973cat >>conftest.$ac_ext <<_ACEOF
33974/* end confdefs.h. */
33975#include <stdlib.h>
33976#include <iconv.h>
33977int
33978main ()
33979{
33980iconv_t cd = iconv_open("","");
33981 iconv(cd,NULL,NULL,NULL,NULL);
33982 iconv_close(cd);
33983 ;
33984 return 0;
33985}
33986_ACEOF
33987rm -f conftest.$ac_objext conftest$ac_exeext
33988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33989 (eval $ac_link) 2>conftest.er1
a848cd7e 33990 ac_status=$?
ac1cb8d3
VS
33991 grep -v '^ *+' conftest.er1 >conftest.err
33992 rm -f conftest.er1
33993 cat conftest.err >&5
a848cd7e
SC
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); } &&
be665c07
JS
33996 { ac_try='test -z "$ac_cxx_werror_flag"
33997 || test ! -s conftest.err'
ac1cb8d3
VS
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34009 am_cv_func_iconv=yes
34010else
34011 echo "$as_me: failed program was:" >&5
34012sed 's/^/| /' conftest.$ac_ext >&5
34013
34014fi
ac1cb8d3
VS
34015rm -f conftest.err conftest.$ac_objext \
34016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34017 if test "$am_cv_func_iconv" != yes; then
34018 am_save_LIBS="$LIBS"
34019 LIBS="$LIBS -liconv"
34020 cat >conftest.$ac_ext <<_ACEOF
34021/* confdefs.h. */
34022_ACEOF
34023cat confdefs.h >>conftest.$ac_ext
34024cat >>conftest.$ac_ext <<_ACEOF
34025/* end confdefs.h. */
34026#include <stdlib.h>
34027#include <iconv.h>
34028int
34029main ()
34030{
34031iconv_t cd = iconv_open("","");
34032 iconv(cd,NULL,NULL,NULL,NULL);
34033 iconv_close(cd);
34034 ;
34035 return 0;
34036}
34037_ACEOF
34038rm -f conftest.$ac_objext conftest$ac_exeext
34039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34040 (eval $ac_link) 2>conftest.er1
a848cd7e 34041 ac_status=$?
ac1cb8d3
VS
34042 grep -v '^ *+' conftest.er1 >conftest.err
34043 rm -f conftest.er1
34044 cat conftest.err >&5
a848cd7e
SC
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); } &&
be665c07
JS
34047 { ac_try='test -z "$ac_cxx_werror_flag"
34048 || test ! -s conftest.err'
ac1cb8d3
VS
34049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34050 (eval $ac_try) 2>&5
34051 ac_status=$?
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); }; } &&
34054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34056 (eval $ac_try) 2>&5
34057 ac_status=$?
34058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059 (exit $ac_status); }; }; then
34060 am_cv_lib_iconv=yes
34061 am_cv_func_iconv=yes
34062else
34063 echo "$as_me: failed program was:" >&5
34064sed 's/^/| /' conftest.$ac_ext >&5
34065
34066fi
ac1cb8d3
VS
34067rm -f conftest.err conftest.$ac_objext \
34068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34069 LIBS="$am_save_LIBS"
34070 fi
34071
34072fi
34073echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34074echo "${ECHO_T}$am_cv_func_iconv" >&6
34075 if test "$am_cv_func_iconv" = yes; then
34076
34077cat >>confdefs.h <<\_ACEOF
34078#define HAVE_ICONV 1
34079_ACEOF
34080
34081 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34082echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34083if test "${wx_cv_func_iconv_const+set}" = set; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34085else
34086 cat >conftest.$ac_ext <<_ACEOF
34087/* confdefs.h. */
34088_ACEOF
34089cat confdefs.h >>conftest.$ac_ext
34090cat >>conftest.$ac_ext <<_ACEOF
34091/* end confdefs.h. */
34092
34093#include <stdlib.h>
34094#include <iconv.h>
34095extern
34096#ifdef __cplusplus
34097"C"
34098#endif
34099#if defined(__STDC__) || defined(__cplusplus)
34100size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34101#else
34102size_t iconv();
34103#endif
34104
34105int
34106main ()
34107{
34108
34109 ;
34110 return 0;
34111}
34112_ACEOF
34113rm -f conftest.$ac_objext
34114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34115 (eval $ac_compile) 2>conftest.er1
a848cd7e 34116 ac_status=$?
ac1cb8d3
VS
34117 grep -v '^ *+' conftest.er1 >conftest.err
34118 rm -f conftest.er1
34119 cat conftest.err >&5
a848cd7e
SC
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); } &&
be665c07
JS
34122 { ac_try='test -z "$ac_cxx_werror_flag"
34123 || test ! -s conftest.err'
ac1cb8d3
VS
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; } &&
34129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34132 ac_status=$?
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; }; then
34135 wx_cv_func_iconv_const="no"
34136else
34137 echo "$as_me: failed program was:" >&5
34138sed 's/^/| /' conftest.$ac_ext >&5
34139
34140wx_cv_func_iconv_const="yes"
34141
34142fi
ac1cb8d3 34143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34144
34145fi
34146echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34147echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34148
34149 iconv_const=
34150 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34151 iconv_const="const"
34152 fi
34153
34154
34155cat >>confdefs.h <<_ACEOF
34156#define ICONV_CONST $iconv_const
34157_ACEOF
34158
34159 fi
34160 LIBICONV=
34161 if test "$am_cv_lib_iconv" = yes; then
34162 LIBICONV="-liconv"
34163 fi
34164
34165
34166LIBS="$LIBICONV $LIBS"
34167ac_ext=c
34168ac_cpp='$CPP $CPPFLAGS'
34169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34171ac_compiler_gnu=$ac_cv_c_compiler_gnu
34172
34173
34174if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34175
34176for ac_func in sigaction
34177do
34178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34179echo "$as_me:$LINENO: checking for $ac_func" >&5
34180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34181if eval "test \"\${$as_ac_var+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. */
ac1cb8d3
VS
34190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34192#define $ac_func innocuous_$ac_func
34193
a848cd7e
SC
34194/* System header to define __stub macros and hopefully few prototypes,
34195 which can conflict with char $ac_func (); below.
34196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34197 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34198
a848cd7e
SC
34199#ifdef __STDC__
34200# include <limits.h>
34201#else
34202# include <assert.h>
34203#endif
ac1cb8d3
VS
34204
34205#undef $ac_func
34206
a848cd7e
SC
34207/* Override any gcc2 internal prototype to avoid an error. */
34208#ifdef __cplusplus
34209extern "C"
34210{
34211#endif
34212/* We use char because int might match the return type of a gcc2
34213 builtin and then its argument prototype would still apply. */
34214char $ac_func ();
34215/* The GNU C library defines this for functions which it implements
34216 to always fail with ENOSYS. Some functions are actually named
34217 something starting with __ and the normal name is an alias. */
34218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34219choke me
34220#else
34221char (*f) () = $ac_func;
34222#endif
34223#ifdef __cplusplus
34224}
34225#endif
34226
34227int
34228main ()
34229{
34230return f != $ac_func;
34231 ;
34232 return 0;
34233}
34234_ACEOF
34235rm -f conftest.$ac_objext conftest$ac_exeext
34236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34237 (eval $ac_link) 2>conftest.er1
a848cd7e 34238 ac_status=$?
ac1cb8d3
VS
34239 grep -v '^ *+' conftest.er1 >conftest.err
34240 rm -f conftest.er1
34241 cat conftest.err >&5
a848cd7e
SC
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } &&
be665c07
JS
34244 { ac_try='test -z "$ac_c_werror_flag"
34245 || test ! -s conftest.err'
ac1cb8d3
VS
34246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 (eval $ac_try) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; } &&
34251 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 (eval $ac_try) 2>&5
34254 ac_status=$?
34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 (exit $ac_status); }; }; then
34257 eval "$as_ac_var=yes"
34258else
34259 echo "$as_me: failed program was:" >&5
34260sed 's/^/| /' conftest.$ac_ext >&5
34261
34262eval "$as_ac_var=no"
34263fi
ac1cb8d3
VS
34264rm -f conftest.err conftest.$ac_objext \
34265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34266fi
34267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34269if test `eval echo '${'$as_ac_var'}'` = yes; then
34270 cat >>confdefs.h <<_ACEOF
34271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34272_ACEOF
34273
34274fi
34275done
34276
34277
34278 if test "$ac_cv_func_sigaction" = "no"; then
34279 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34280echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34281 wxUSE_ON_FATAL_EXCEPTION=no
34282 fi
34283
34284 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34285
34286
34287 ac_ext=cc
34288ac_cpp='$CXXCPP $CPPFLAGS'
34289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34292
34293
34294 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34295echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34296if test "${wx_cv_type_sa_handler+set}" = set; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34298else
34299
34300 cat >conftest.$ac_ext <<_ACEOF
34301/* confdefs.h. */
34302_ACEOF
34303cat confdefs.h >>conftest.$ac_ext
34304cat >>conftest.$ac_ext <<_ACEOF
34305/* end confdefs.h. */
34306#include <signal.h>
34307int
34308main ()
34309{
34310
34311 extern void testSigHandler(int);
34312
34313 struct sigaction sa;
34314 sa.sa_handler = testSigHandler;
34315
34316 ;
34317 return 0;
34318}
34319_ACEOF
34320rm -f conftest.$ac_objext
34321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34322 (eval $ac_compile) 2>conftest.er1
a848cd7e 34323 ac_status=$?
ac1cb8d3
VS
34324 grep -v '^ *+' conftest.er1 >conftest.err
34325 rm -f conftest.er1
34326 cat conftest.err >&5
a848cd7e
SC
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); } &&
be665c07
JS
34329 { ac_try='test -z "$ac_cxx_werror_flag"
34330 || test ! -s conftest.err'
ac1cb8d3
VS
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; } &&
34336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34338 (eval $ac_try) 2>&5
34339 ac_status=$?
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); }; }; then
34342
34343 wx_cv_type_sa_handler=int
34344
34345else
34346 echo "$as_me: failed program was:" >&5
34347sed 's/^/| /' conftest.$ac_ext >&5
34348
34349
34350 wx_cv_type_sa_handler=void
34351
34352fi
ac1cb8d3 34353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34354
34355fi
34356echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34357echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34358
34359 ac_ext=c
34360ac_cpp='$CPP $CPPFLAGS'
34361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34363ac_compiler_gnu=$ac_cv_c_compiler_gnu
34364
34365
34366 cat >>confdefs.h <<_ACEOF
34367#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34368_ACEOF
34369
34370 fi
34371fi
34372
eaff0f0d
VZ
34373if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34374
34375
34376 ac_ext=cc
34377ac_cpp='$CXXCPP $CPPFLAGS'
34378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34381
34382
34383 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34384echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34385if test "${wx_cv_func_backtrace+set}" = set; then
34386 echo $ECHO_N "(cached) $ECHO_C" >&6
34387else
34388
34389 cat >conftest.$ac_ext <<_ACEOF
34390/* confdefs.h. */
34391_ACEOF
34392cat confdefs.h >>conftest.$ac_ext
34393cat >>conftest.$ac_ext <<_ACEOF
34394/* end confdefs.h. */
34395#include <execinfo.h>
34396int
34397main ()
34398{
34399
34400 void *trace[1];
34401 char **messages;
34402
34403 backtrace(trace, 1);
34404 messages = backtrace_symbols(trace, 1);
34405
34406 ;
34407 return 0;
34408}
34409_ACEOF
34410rm -f conftest.$ac_objext
34411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34412 (eval $ac_compile) 2>conftest.er1
34413 ac_status=$?
34414 grep -v '^ *+' conftest.er1 >conftest.err
34415 rm -f conftest.er1
34416 cat conftest.err >&5
34417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418 (exit $ac_status); } &&
be665c07
JS
34419 { ac_try='test -z "$ac_cxx_werror_flag"
34420 || test ! -s conftest.err'
eaff0f0d
VZ
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; } &&
34426 { ac_try='test -s conftest.$ac_objext'
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34429 ac_status=$?
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; }; then
34432 wx_cv_func_backtrace=yes
34433else
34434 echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437wx_cv_func_backtrace=no
34438
34439fi
34440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34441
34442
34443fi
34444echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34445echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34446
34447
34448 if test "$wx_cv_func_backtrace" = "no"; then
34449 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34450echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34451 wxUSE_STACKWALKER=no
34452 else
34453 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34454echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34455if test "${wx_cv_func_cxa_demangle+set}" = set; then
34456 echo $ECHO_N "(cached) $ECHO_C" >&6
34457else
34458
34459 cat >conftest.$ac_ext <<_ACEOF
34460/* confdefs.h. */
34461_ACEOF
34462cat confdefs.h >>conftest.$ac_ext
34463cat >>conftest.$ac_ext <<_ACEOF
34464/* end confdefs.h. */
34465#include <cxxabi.h>
34466int
34467main ()
34468{
34469
34470 int rc;
34471 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34472
34473 ;
34474 return 0;
34475}
34476_ACEOF
dfe0c803
JS
34477rm -f conftest.$ac_objext conftest$ac_exeext
34478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34479 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34480 ac_status=$?
34481 grep -v '^ *+' conftest.er1 >conftest.err
34482 rm -f conftest.er1
34483 cat conftest.err >&5
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); } &&
be665c07
JS
34486 { ac_try='test -z "$ac_cxx_werror_flag"
34487 || test ! -s conftest.err'
eaff0f0d
VZ
34488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34489 (eval $ac_try) 2>&5
34490 ac_status=$?
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); }; } &&
dfe0c803 34493 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34495 (eval $ac_try) 2>&5
34496 ac_status=$?
34497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498 (exit $ac_status); }; }; then
34499 wx_cv_func_cxa_demangle=yes
34500else
34501 echo "$as_me: failed program was:" >&5
34502sed 's/^/| /' conftest.$ac_ext >&5
34503
34504wx_cv_func_cxa_demangle=no
34505
34506fi
dfe0c803
JS
34507rm -f conftest.err conftest.$ac_objext \
34508 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34509
34510
34511fi
34512echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34513echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34514
34515 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34516 cat >>confdefs.h <<\_ACEOF
34517#define HAVE_CXA_DEMANGLE 1
34518_ACEOF
34519
34520 fi
34521 fi
34522
34523 ac_ext=c
34524ac_cpp='$CPP $CPPFLAGS'
34525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34527ac_compiler_gnu=$ac_cv_c_compiler_gnu
34528
34529fi
34530
898beab1
DE
34531if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34532 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34533echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34534 wxUSE_STACKWALKER=no
34535fi
34536
34537
a848cd7e
SC
34538
34539
34540for ac_func in mkstemp mktemp
34541do
34542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34543echo "$as_me:$LINENO: checking for $ac_func" >&5
34544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34545if eval "test \"\${$as_ac_var+set}\" = set"; then
34546 echo $ECHO_N "(cached) $ECHO_C" >&6
34547else
34548 cat >conftest.$ac_ext <<_ACEOF
34549/* confdefs.h. */
34550_ACEOF
34551cat confdefs.h >>conftest.$ac_ext
34552cat >>conftest.$ac_ext <<_ACEOF
34553/* end confdefs.h. */
ac1cb8d3
VS
34554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34556#define $ac_func innocuous_$ac_func
34557
a848cd7e
SC
34558/* System header to define __stub macros and hopefully few prototypes,
34559 which can conflict with char $ac_func (); below.
34560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34561 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34562
a848cd7e
SC
34563#ifdef __STDC__
34564# include <limits.h>
34565#else
34566# include <assert.h>
34567#endif
ac1cb8d3
VS
34568
34569#undef $ac_func
34570
a848cd7e
SC
34571/* Override any gcc2 internal prototype to avoid an error. */
34572#ifdef __cplusplus
34573extern "C"
34574{
34575#endif
34576/* We use char because int might match the return type of a gcc2
34577 builtin and then its argument prototype would still apply. */
34578char $ac_func ();
34579/* The GNU C library defines this for functions which it implements
34580 to always fail with ENOSYS. Some functions are actually named
34581 something starting with __ and the normal name is an alias. */
34582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34583choke me
34584#else
34585char (*f) () = $ac_func;
34586#endif
34587#ifdef __cplusplus
34588}
34589#endif
34590
34591int
34592main ()
34593{
34594return f != $ac_func;
34595 ;
34596 return 0;
34597}
34598_ACEOF
34599rm -f conftest.$ac_objext conftest$ac_exeext
34600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34601 (eval $ac_link) 2>conftest.er1
a848cd7e 34602 ac_status=$?
ac1cb8d3
VS
34603 grep -v '^ *+' conftest.er1 >conftest.err
34604 rm -f conftest.er1
34605 cat conftest.err >&5
a848cd7e
SC
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } &&
be665c07
JS
34608 { ac_try='test -z "$ac_c_werror_flag"
34609 || test ! -s conftest.err'
ac1cb8d3
VS
34610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34611 (eval $ac_try) 2>&5
34612 ac_status=$?
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); }; } &&
34615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34618 ac_status=$?
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; }; then
34621 eval "$as_ac_var=yes"
34622else
34623 echo "$as_me: failed program was:" >&5
34624sed 's/^/| /' conftest.$ac_ext >&5
34625
34626eval "$as_ac_var=no"
34627fi
ac1cb8d3
VS
34628rm -f conftest.err conftest.$ac_objext \
34629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34630fi
34631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34633if test `eval echo '${'$as_ac_var'}'` = yes; then
34634 cat >>confdefs.h <<_ACEOF
34635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34636_ACEOF
34637 break
34638fi
34639done
34640
34641
34642echo "$as_me:$LINENO: checking for statfs" >&5
34643echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34644if test "${wx_cv_func_statfs+set}" = set; then
34645 echo $ECHO_N "(cached) $ECHO_C" >&6
34646else
34647 cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h. */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h. */
34653
34654 #if defined(__BSD__)
84ae7ca4
VZ
34655 #include <sys/param.h>
34656 #include <sys/mount.h>
a848cd7e 34657 #else
84ae7ca4 34658 #include <sys/vfs.h>
a848cd7e
SC
34659 #endif
34660
34661int
34662main ()
34663{
34664
34665 long l;
34666 struct statfs fs;
34667 statfs("/", &fs);
34668 l = fs.f_bsize;
34669 l += fs.f_blocks;
34670 l += fs.f_bavail;
34671
34672 ;
34673 return 0;
34674}
34675_ACEOF
34676rm -f conftest.$ac_objext
34677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34678 (eval $ac_compile) 2>conftest.er1
a848cd7e 34679 ac_status=$?
ac1cb8d3
VS
34680 grep -v '^ *+' conftest.er1 >conftest.err
34681 rm -f conftest.er1
34682 cat conftest.err >&5
a848cd7e
SC
34683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); } &&
be665c07
JS
34685 { ac_try='test -z "$ac_c_werror_flag"
34686 || test ! -s conftest.err'
ac1cb8d3
VS
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34689 ac_status=$?
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; } &&
34692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34694 (eval $ac_try) 2>&5
34695 ac_status=$?
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); }; }; then
84ae7ca4 34698 wx_cv_func_statfs=yes
a848cd7e
SC
34699else
34700 echo "$as_me: failed program was:" >&5
34701sed 's/^/| /' conftest.$ac_ext >&5
34702
84ae7ca4 34703wx_cv_func_statfs=no
a848cd7e
SC
34704
34705fi
ac1cb8d3 34706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34707
34708fi
34709echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34710echo "${ECHO_T}$wx_cv_func_statfs" >&6
34711
34712if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34713
34714
34715 ac_ext=cc
34716ac_cpp='$CXXCPP $CPPFLAGS'
34717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34720
34721 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34722echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34723if test "${wx_cv_func_statfs_decl+set}" = set; then
34724 echo $ECHO_N "(cached) $ECHO_C" >&6
34725else
0683aca6
VZ
34726 cat >conftest.$ac_ext <<_ACEOF
34727/* confdefs.h. */
34728_ACEOF
34729cat confdefs.h >>conftest.$ac_ext
34730cat >>conftest.$ac_ext <<_ACEOF
34731/* end confdefs.h. */
84ae7ca4 34732
0683aca6
VZ
34733 #if defined(__BSD__)
34734 #include <sys/param.h>
34735 #include <sys/mount.h>
34736 #else
34737 #include <sys/vfs.h>
34738 #endif
34739
34740int
34741main ()
34742{
34743
34744 struct statfs fs;
34745 statfs("", &fs);
34746
34747 ;
34748 return 0;
34749}
34750_ACEOF
34751rm -f conftest.$ac_objext
34752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34753 (eval $ac_compile) 2>conftest.er1
34754 ac_status=$?
34755 grep -v '^ *+' conftest.er1 >conftest.err
34756 rm -f conftest.er1
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } &&
be665c07
JS
34760 { ac_try='test -z "$ac_cxx_werror_flag"
34761 || test ! -s conftest.err'
0683aca6
VZ
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; } &&
34767 { ac_try='test -s conftest.$ac_objext'
34768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34769 (eval $ac_try) 2>&5
34770 ac_status=$?
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; }; then
34773 wx_cv_func_statfs_decl=yes
34774else
34775 echo "$as_me: failed program was:" >&5
34776sed 's/^/| /' conftest.$ac_ext >&5
34777
34778wx_cv_func_statfs_decl=no
34779
34780fi
34781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34782
34783fi
34784echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34785echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34786 ac_ext=c
34787ac_cpp='$CPP $CPPFLAGS'
34788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34790ac_compiler_gnu=$ac_cv_c_compiler_gnu
34791
34792
34793 if test "$wx_cv_func_statfs_decl" = "yes"; then
34794 cat >>confdefs.h <<\_ACEOF
34795#define HAVE_STATFS_DECL 1
34796_ACEOF
34797
34798 fi
34799
a848cd7e
SC
34800 wx_cv_type_statvfs_t="struct statfs"
34801 cat >>confdefs.h <<\_ACEOF
34802#define HAVE_STATFS 1
34803_ACEOF
34804
34805else
34806 echo "$as_me:$LINENO: checking for statvfs" >&5
34807echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34808if test "${wx_cv_func_statvfs+set}" = set; then
34809 echo $ECHO_N "(cached) $ECHO_C" >&6
34810else
34811 cat >conftest.$ac_ext <<_ACEOF
34812/* confdefs.h. */
34813_ACEOF
34814cat confdefs.h >>conftest.$ac_ext
34815cat >>conftest.$ac_ext <<_ACEOF
34816/* end confdefs.h. */
34817
34818 #include <stddef.h>
34819 #include <sys/statvfs.h>
34820
34821int
34822main ()
34823{
34824
34825 statvfs("/", NULL);
34826
34827 ;
34828 return 0;
34829}
34830_ACEOF
34831rm -f conftest.$ac_objext
34832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34833 (eval $ac_compile) 2>conftest.er1
a848cd7e 34834 ac_status=$?
ac1cb8d3
VS
34835 grep -v '^ *+' conftest.er1 >conftest.err
34836 rm -f conftest.er1
34837 cat conftest.err >&5
a848cd7e
SC
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); } &&
be665c07
JS
34840 { ac_try='test -z "$ac_c_werror_flag"
34841 || test ! -s conftest.err'
ac1cb8d3
VS
34842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34843 (eval $ac_try) 2>&5
34844 ac_status=$?
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); }; } &&
34847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34849 (eval $ac_try) 2>&5
34850 ac_status=$?
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); }; }; then
34853 wx_cv_func_statvfs=yes
34854else
34855 echo "$as_me: failed program was:" >&5
34856sed 's/^/| /' conftest.$ac_ext >&5
34857
34858wx_cv_func_statvfs=no
34859
34860fi
ac1cb8d3 34861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34862
34863fi
34864echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34865echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34866
34867 if test "$wx_cv_func_statvfs" = "yes"; then
34868
34869
34870 ac_ext=cc
34871ac_cpp='$CXXCPP $CPPFLAGS'
34872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34875
34876
34877 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34878echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34879if test "${wx_cv_type_statvfs_t+set}" = set; then
34880 echo $ECHO_N "(cached) $ECHO_C" >&6
34881else
34882 cat >conftest.$ac_ext <<_ACEOF
34883/* confdefs.h. */
34884_ACEOF
34885cat confdefs.h >>conftest.$ac_ext
34886cat >>conftest.$ac_ext <<_ACEOF
34887/* end confdefs.h. */
34888
34889 #include <sys/statvfs.h>
34890
34891int
34892main ()
34893{
34894
34895 long l;
34896 statvfs_t fs;
34897 statvfs("/", &fs);
34898 l = fs.f_bsize;
34899 l += fs.f_blocks;
34900 l += fs.f_bavail;
34901
34902 ;
34903 return 0;
34904}
34905_ACEOF
34906rm -f conftest.$ac_objext
34907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34908 (eval $ac_compile) 2>conftest.er1
a848cd7e 34909 ac_status=$?
ac1cb8d3
VS
34910 grep -v '^ *+' conftest.er1 >conftest.err
34911 rm -f conftest.er1
34912 cat conftest.err >&5
a848cd7e
SC
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); } &&
be665c07
JS
34915 { ac_try='test -z "$ac_cxx_werror_flag"
34916 || test ! -s conftest.err'
ac1cb8d3
VS
34917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34918 (eval $ac_try) 2>&5
34919 ac_status=$?
34920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); }; } &&
34922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34928 wx_cv_type_statvfs_t=statvfs_t
34929else
34930 echo "$as_me: failed program was:" >&5
34931sed 's/^/| /' conftest.$ac_ext >&5
34932
34933
34934 cat >conftest.$ac_ext <<_ACEOF
34935/* confdefs.h. */
34936_ACEOF
34937cat confdefs.h >>conftest.$ac_ext
34938cat >>conftest.$ac_ext <<_ACEOF
34939/* end confdefs.h. */
34940
34941 #include <sys/statvfs.h>
34942
34943int
34944main ()
34945{
34946
34947 long l;
34948 struct statvfs fs;
34949 statvfs("/", &fs);
34950 l = fs.f_bsize;
34951 l += fs.f_blocks;
34952 l += fs.f_bavail;
34953
34954 ;
34955 return 0;
34956}
34957_ACEOF
34958rm -f conftest.$ac_objext
34959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34960 (eval $ac_compile) 2>conftest.er1
a848cd7e 34961 ac_status=$?
ac1cb8d3
VS
34962 grep -v '^ *+' conftest.er1 >conftest.err
34963 rm -f conftest.er1
34964 cat conftest.err >&5
a848cd7e
SC
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } &&
be665c07
JS
34967 { ac_try='test -z "$ac_cxx_werror_flag"
34968 || test ! -s conftest.err'
ac1cb8d3
VS
34969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970 (eval $ac_try) 2>&5
34971 ac_status=$?
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); }; } &&
34974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34976 (eval $ac_try) 2>&5
34977 ac_status=$?
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); }; }; then
34980 wx_cv_type_statvfs_t="struct statvfs"
34981else
34982 echo "$as_me: failed program was:" >&5
34983sed 's/^/| /' conftest.$ac_ext >&5
34984
34985wx_cv_type_statvfs_t="unknown"
34986
34987fi
ac1cb8d3 34988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34989
34990
34991fi
ac1cb8d3 34992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34993
34994fi
34995echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34996echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34997
34998 ac_ext=c
34999ac_cpp='$CPP $CPPFLAGS'
35000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35002ac_compiler_gnu=$ac_cv_c_compiler_gnu
35003
35004
35005 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35006 cat >>confdefs.h <<\_ACEOF
35007#define HAVE_STATVFS 1
35008_ACEOF
35009
35010 fi
35011 else
35012 wx_cv_type_statvfs_t="unknown"
35013 fi
35014fi
35015
35016if test "$wx_cv_type_statvfs_t" != "unknown"; then
35017 cat >>confdefs.h <<_ACEOF
35018#define WX_STATFS_T $wx_cv_type_statvfs_t
35019_ACEOF
35020
35021else
35022 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35023echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35024fi
35025
35026if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35027
35028
35029for ac_func in fcntl flock
35030do
35031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35032echo "$as_me:$LINENO: checking for $ac_func" >&5
35033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35034if eval "test \"\${$as_ac_var+set}\" = set"; then
35035 echo $ECHO_N "(cached) $ECHO_C" >&6
35036else
35037 cat >conftest.$ac_ext <<_ACEOF
35038/* confdefs.h. */
35039_ACEOF
35040cat confdefs.h >>conftest.$ac_ext
35041cat >>conftest.$ac_ext <<_ACEOF
35042/* end confdefs.h. */
ac1cb8d3
VS
35043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35045#define $ac_func innocuous_$ac_func
35046
a848cd7e
SC
35047/* System header to define __stub macros and hopefully few prototypes,
35048 which can conflict with char $ac_func (); below.
35049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35050 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35051
a848cd7e
SC
35052#ifdef __STDC__
35053# include <limits.h>
35054#else
35055# include <assert.h>
35056#endif
ac1cb8d3
VS
35057
35058#undef $ac_func
35059
a848cd7e
SC
35060/* Override any gcc2 internal prototype to avoid an error. */
35061#ifdef __cplusplus
35062extern "C"
35063{
35064#endif
35065/* We use char because int might match the return type of a gcc2
35066 builtin and then its argument prototype would still apply. */
35067char $ac_func ();
35068/* The GNU C library defines this for functions which it implements
35069 to always fail with ENOSYS. Some functions are actually named
35070 something starting with __ and the normal name is an alias. */
35071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35072choke me
35073#else
35074char (*f) () = $ac_func;
35075#endif
35076#ifdef __cplusplus
35077}
35078#endif
35079
35080int
35081main ()
35082{
35083return f != $ac_func;
35084 ;
35085 return 0;
35086}
35087_ACEOF
35088rm -f conftest.$ac_objext conftest$ac_exeext
35089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35090 (eval $ac_link) 2>conftest.er1
a848cd7e 35091 ac_status=$?
ac1cb8d3
VS
35092 grep -v '^ *+' conftest.er1 >conftest.err
35093 rm -f conftest.er1
35094 cat conftest.err >&5
a848cd7e
SC
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); } &&
be665c07
JS
35097 { ac_try='test -z "$ac_c_werror_flag"
35098 || test ! -s conftest.err'
ac1cb8d3
VS
35099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35100 (eval $ac_try) 2>&5
35101 ac_status=$?
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); }; } &&
35104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106 (eval $ac_try) 2>&5
35107 ac_status=$?
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); }; }; then
35110 eval "$as_ac_var=yes"
35111else
35112 echo "$as_me: failed program was:" >&5
35113sed 's/^/| /' conftest.$ac_ext >&5
35114
35115eval "$as_ac_var=no"
35116fi
ac1cb8d3
VS
35117rm -f conftest.err conftest.$ac_objext \
35118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35119fi
35120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35122if test `eval echo '${'$as_ac_var'}'` = yes; then
35123 cat >>confdefs.h <<_ACEOF
35124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35125_ACEOF
35126 break
35127fi
35128done
35129
35130
35131 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35132 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35133echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35134 wxUSE_SNGLINST_CHECKER=no
35135 fi
35136fi
35137
35138
35139for ac_func in timegm
35140do
35141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35142echo "$as_me:$LINENO: checking for $ac_func" >&5
35143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35144if eval "test \"\${$as_ac_var+set}\" = set"; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35146else
35147 cat >conftest.$ac_ext <<_ACEOF
35148/* confdefs.h. */
35149_ACEOF
35150cat confdefs.h >>conftest.$ac_ext
35151cat >>conftest.$ac_ext <<_ACEOF
35152/* end confdefs.h. */
ac1cb8d3
VS
35153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35155#define $ac_func innocuous_$ac_func
35156
a848cd7e
SC
35157/* System header to define __stub macros and hopefully few prototypes,
35158 which can conflict with char $ac_func (); below.
35159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35161
a848cd7e
SC
35162#ifdef __STDC__
35163# include <limits.h>
35164#else
35165# include <assert.h>
35166#endif
ac1cb8d3
VS
35167
35168#undef $ac_func
35169
a848cd7e
SC
35170/* Override any gcc2 internal prototype to avoid an error. */
35171#ifdef __cplusplus
35172extern "C"
35173{
35174#endif
35175/* We use char because int might match the return type of a gcc2
35176 builtin and then its argument prototype would still apply. */
35177char $ac_func ();
35178/* The GNU C library defines this for functions which it implements
35179 to always fail with ENOSYS. Some functions are actually named
35180 something starting with __ and the normal name is an alias. */
35181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35182choke me
35183#else
35184char (*f) () = $ac_func;
35185#endif
35186#ifdef __cplusplus
35187}
35188#endif
35189
35190int
35191main ()
35192{
35193return f != $ac_func;
35194 ;
35195 return 0;
35196}
35197_ACEOF
35198rm -f conftest.$ac_objext conftest$ac_exeext
35199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35200 (eval $ac_link) 2>conftest.er1
a848cd7e 35201 ac_status=$?
ac1cb8d3
VS
35202 grep -v '^ *+' conftest.er1 >conftest.err
35203 rm -f conftest.er1
35204 cat conftest.err >&5
a848cd7e
SC
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
be665c07
JS
35207 { ac_try='test -z "$ac_c_werror_flag"
35208 || test ! -s conftest.err'
ac1cb8d3
VS
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; } &&
35214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
35220 eval "$as_ac_var=yes"
35221else
35222 echo "$as_me: failed program was:" >&5
35223sed 's/^/| /' conftest.$ac_ext >&5
35224
35225eval "$as_ac_var=no"
35226fi
ac1cb8d3
VS
35227rm -f conftest.err conftest.$ac_objext \
35228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35229fi
35230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35232if test `eval echo '${'$as_ac_var'}'` = yes; then
35233 cat >>confdefs.h <<_ACEOF
35234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35235_ACEOF
35236
35237fi
35238done
35239
35240
35241
35242
35243for ac_func in putenv setenv
35244do
35245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35246echo "$as_me:$LINENO: checking for $ac_func" >&5
35247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35248if eval "test \"\${$as_ac_var+set}\" = set"; then
35249 echo $ECHO_N "(cached) $ECHO_C" >&6
35250else
35251 cat >conftest.$ac_ext <<_ACEOF
35252/* confdefs.h. */
35253_ACEOF
35254cat confdefs.h >>conftest.$ac_ext
35255cat >>conftest.$ac_ext <<_ACEOF
35256/* end confdefs.h. */
ac1cb8d3
VS
35257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35259#define $ac_func innocuous_$ac_func
35260
a848cd7e
SC
35261/* System header to define __stub macros and hopefully few prototypes,
35262 which can conflict with char $ac_func (); below.
35263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35265
a848cd7e
SC
35266#ifdef __STDC__
35267# include <limits.h>
35268#else
35269# include <assert.h>
35270#endif
ac1cb8d3
VS
35271
35272#undef $ac_func
35273
a848cd7e
SC
35274/* Override any gcc2 internal prototype to avoid an error. */
35275#ifdef __cplusplus
35276extern "C"
35277{
35278#endif
35279/* We use char because int might match the return type of a gcc2
35280 builtin and then its argument prototype would still apply. */
35281char $ac_func ();
35282/* The GNU C library defines this for functions which it implements
35283 to always fail with ENOSYS. Some functions are actually named
35284 something starting with __ and the normal name is an alias. */
35285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35286choke me
35287#else
35288char (*f) () = $ac_func;
35289#endif
35290#ifdef __cplusplus
35291}
35292#endif
35293
35294int
35295main ()
35296{
35297return f != $ac_func;
35298 ;
35299 return 0;
35300}
35301_ACEOF
35302rm -f conftest.$ac_objext conftest$ac_exeext
35303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35304 (eval $ac_link) 2>conftest.er1
a848cd7e 35305 ac_status=$?
ac1cb8d3
VS
35306 grep -v '^ *+' conftest.er1 >conftest.err
35307 rm -f conftest.er1
35308 cat conftest.err >&5
a848cd7e
SC
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } &&
be665c07
JS
35311 { ac_try='test -z "$ac_c_werror_flag"
35312 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
35318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35324 eval "$as_ac_var=yes"
35325else
35326 echo "$as_me: failed program was:" >&5
35327sed 's/^/| /' conftest.$ac_ext >&5
35328
35329eval "$as_ac_var=no"
35330fi
ac1cb8d3
VS
35331rm -f conftest.err conftest.$ac_objext \
35332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35333fi
35334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35336if test `eval echo '${'$as_ac_var'}'` = yes; then
35337 cat >>confdefs.h <<_ACEOF
35338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35339_ACEOF
35340 break
35341fi
35342done
35343
35344
35345HAVE_SOME_SLEEP_FUNC=0
35346if test "$USE_BEOS" = 1; then
35347 cat >>confdefs.h <<\_ACEOF
35348#define HAVE_SLEEP 1
35349_ACEOF
35350
35351 HAVE_SOME_SLEEP_FUNC=1
35352fi
35353
35354if test "$USE_DARWIN" = 1; then
35355 cat >>confdefs.h <<\_ACEOF
35356#define HAVE_USLEEP 1
35357_ACEOF
35358
35359 HAVE_SOME_SLEEP_FUNC=1
35360fi
35361
35362if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35363 POSIX4_LINK=
35364
35365for ac_func in nanosleep
35366do
35367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35368echo "$as_me:$LINENO: checking for $ac_func" >&5
35369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35370if eval "test \"\${$as_ac_var+set}\" = set"; then
35371 echo $ECHO_N "(cached) $ECHO_C" >&6
35372else
35373 cat >conftest.$ac_ext <<_ACEOF
35374/* confdefs.h. */
35375_ACEOF
35376cat confdefs.h >>conftest.$ac_ext
35377cat >>conftest.$ac_ext <<_ACEOF
35378/* end confdefs.h. */
ac1cb8d3
VS
35379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35381#define $ac_func innocuous_$ac_func
35382
a848cd7e
SC
35383/* System header to define __stub macros and hopefully few prototypes,
35384 which can conflict with char $ac_func (); below.
35385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35386 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35387
a848cd7e
SC
35388#ifdef __STDC__
35389# include <limits.h>
35390#else
35391# include <assert.h>
35392#endif
ac1cb8d3
VS
35393
35394#undef $ac_func
35395
a848cd7e
SC
35396/* Override any gcc2 internal prototype to avoid an error. */
35397#ifdef __cplusplus
35398extern "C"
35399{
35400#endif
35401/* We use char because int might match the return type of a gcc2
35402 builtin and then its argument prototype would still apply. */
35403char $ac_func ();
35404/* The GNU C library defines this for functions which it implements
35405 to always fail with ENOSYS. Some functions are actually named
35406 something starting with __ and the normal name is an alias. */
35407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35408choke me
35409#else
35410char (*f) () = $ac_func;
35411#endif
35412#ifdef __cplusplus
35413}
35414#endif
35415
35416int
35417main ()
35418{
35419return f != $ac_func;
35420 ;
35421 return 0;
35422}
35423_ACEOF
35424rm -f conftest.$ac_objext conftest$ac_exeext
35425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35426 (eval $ac_link) 2>conftest.er1
a848cd7e 35427 ac_status=$?
ac1cb8d3
VS
35428 grep -v '^ *+' conftest.er1 >conftest.err
35429 rm -f conftest.er1
35430 cat conftest.err >&5
a848cd7e
SC
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); } &&
be665c07
JS
35433 { ac_try='test -z "$ac_c_werror_flag"
35434 || test ! -s conftest.err'
ac1cb8d3
VS
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35437 ac_status=$?
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; } &&
35440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; }; then
35446 eval "$as_ac_var=yes"
35447else
35448 echo "$as_me: failed program was:" >&5
35449sed 's/^/| /' conftest.$ac_ext >&5
35450
35451eval "$as_ac_var=no"
35452fi
ac1cb8d3
VS
35453rm -f conftest.err conftest.$ac_objext \
35454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35455fi
35456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35458if test `eval echo '${'$as_ac_var'}'` = yes; then
35459 cat >>confdefs.h <<_ACEOF
35460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35461_ACEOF
35462 cat >>confdefs.h <<\_ACEOF
35463#define HAVE_NANOSLEEP 1
35464_ACEOF
35465
35466else
35467
35468 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35469echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35470if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35471 echo $ECHO_N "(cached) $ECHO_C" >&6
35472else
35473 ac_check_lib_save_LIBS=$LIBS
35474LIBS="-lposix4 $LIBS"
35475cat >conftest.$ac_ext <<_ACEOF
35476/* confdefs.h. */
35477_ACEOF
35478cat confdefs.h >>conftest.$ac_ext
35479cat >>conftest.$ac_ext <<_ACEOF
35480/* end confdefs.h. */
35481
35482/* Override any gcc2 internal prototype to avoid an error. */
35483#ifdef __cplusplus
35484extern "C"
35485#endif
35486/* We use char because int might match the return type of a gcc2
35487 builtin and then its argument prototype would still apply. */
35488char nanosleep ();
35489int
35490main ()
35491{
35492nanosleep ();
35493 ;
35494 return 0;
35495}
35496_ACEOF
35497rm -f conftest.$ac_objext conftest$ac_exeext
35498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35499 (eval $ac_link) 2>conftest.er1
a848cd7e 35500 ac_status=$?
ac1cb8d3
VS
35501 grep -v '^ *+' conftest.er1 >conftest.err
35502 rm -f conftest.er1
35503 cat conftest.err >&5
a848cd7e
SC
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); } &&
be665c07
JS
35506 { ac_try='test -z "$ac_c_werror_flag"
35507 || test ! -s conftest.err'
ac1cb8d3
VS
35508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35509 (eval $ac_try) 2>&5
35510 ac_status=$?
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); }; } &&
35513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35515 (eval $ac_try) 2>&5
35516 ac_status=$?
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; }; then
35519 ac_cv_lib_posix4_nanosleep=yes
35520else
35521 echo "$as_me: failed program was:" >&5
35522sed 's/^/| /' conftest.$ac_ext >&5
35523
35524ac_cv_lib_posix4_nanosleep=no
35525fi
ac1cb8d3
VS
35526rm -f conftest.err conftest.$ac_objext \
35527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35528LIBS=$ac_check_lib_save_LIBS
35529fi
35530echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35531echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35532if test $ac_cv_lib_posix4_nanosleep = yes; then
35533
35534 cat >>confdefs.h <<\_ACEOF
35535#define HAVE_NANOSLEEP 1
35536_ACEOF
35537
35538 POSIX4_LINK=" -lposix4"
35539
35540else
35541
35542
35543for ac_func in usleep
35544do
35545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35546echo "$as_me:$LINENO: checking for $ac_func" >&5
35547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35548if eval "test \"\${$as_ac_var+set}\" = set"; then
35549 echo $ECHO_N "(cached) $ECHO_C" >&6
35550else
35551 cat >conftest.$ac_ext <<_ACEOF
35552/* confdefs.h. */
35553_ACEOF
35554cat confdefs.h >>conftest.$ac_ext
35555cat >>conftest.$ac_ext <<_ACEOF
35556/* end confdefs.h. */
ac1cb8d3
VS
35557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35559#define $ac_func innocuous_$ac_func
35560
a848cd7e
SC
35561/* System header to define __stub macros and hopefully few prototypes,
35562 which can conflict with char $ac_func (); below.
35563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35565
a848cd7e
SC
35566#ifdef __STDC__
35567# include <limits.h>
35568#else
35569# include <assert.h>
35570#endif
ac1cb8d3
VS
35571
35572#undef $ac_func
35573
a848cd7e
SC
35574/* Override any gcc2 internal prototype to avoid an error. */
35575#ifdef __cplusplus
35576extern "C"
35577{
35578#endif
35579/* We use char because int might match the return type of a gcc2
35580 builtin and then its argument prototype would still apply. */
35581char $ac_func ();
35582/* The GNU C library defines this for functions which it implements
35583 to always fail with ENOSYS. Some functions are actually named
35584 something starting with __ and the normal name is an alias. */
35585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35586choke me
35587#else
35588char (*f) () = $ac_func;
35589#endif
35590#ifdef __cplusplus
35591}
35592#endif
35593
35594int
35595main ()
35596{
35597return f != $ac_func;
35598 ;
35599 return 0;
35600}
35601_ACEOF
35602rm -f conftest.$ac_objext conftest$ac_exeext
35603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35604 (eval $ac_link) 2>conftest.er1
a848cd7e 35605 ac_status=$?
ac1cb8d3
VS
35606 grep -v '^ *+' conftest.er1 >conftest.err
35607 rm -f conftest.er1
35608 cat conftest.err >&5
a848cd7e
SC
35609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610 (exit $ac_status); } &&
be665c07
JS
35611 { ac_try='test -z "$ac_c_werror_flag"
35612 || test ! -s conftest.err'
ac1cb8d3
VS
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35615 ac_status=$?
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; } &&
35618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35621 ac_status=$?
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; }; then
35624 eval "$as_ac_var=yes"
35625else
35626 echo "$as_me: failed program was:" >&5
35627sed 's/^/| /' conftest.$ac_ext >&5
35628
35629eval "$as_ac_var=no"
35630fi
ac1cb8d3
VS
35631rm -f conftest.err conftest.$ac_objext \
35632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35633fi
35634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35636if test `eval echo '${'$as_ac_var'}'` = yes; then
35637 cat >>confdefs.h <<_ACEOF
35638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35639_ACEOF
35640 cat >>confdefs.h <<\_ACEOF
35641#define HAVE_USLEEP 1
35642_ACEOF
35643
35644else
35645 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35646echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35647
35648fi
35649done
35650
35651
35652
35653fi
35654
35655
35656
35657fi
35658done
35659
35660fi
35661
35662
35663
35664for ac_func in uname gethostname
35665do
35666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35667echo "$as_me:$LINENO: checking for $ac_func" >&5
35668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35669if eval "test \"\${$as_ac_var+set}\" = set"; then
35670 echo $ECHO_N "(cached) $ECHO_C" >&6
35671else
35672 cat >conftest.$ac_ext <<_ACEOF
35673/* confdefs.h. */
35674_ACEOF
35675cat confdefs.h >>conftest.$ac_ext
35676cat >>conftest.$ac_ext <<_ACEOF
35677/* end confdefs.h. */
ac1cb8d3
VS
35678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35680#define $ac_func innocuous_$ac_func
35681
a848cd7e
SC
35682/* System header to define __stub macros and hopefully few prototypes,
35683 which can conflict with char $ac_func (); below.
35684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35686
a848cd7e
SC
35687#ifdef __STDC__
35688# include <limits.h>
35689#else
35690# include <assert.h>
35691#endif
ac1cb8d3
VS
35692
35693#undef $ac_func
35694
a848cd7e
SC
35695/* Override any gcc2 internal prototype to avoid an error. */
35696#ifdef __cplusplus
35697extern "C"
35698{
35699#endif
35700/* We use char because int might match the return type of a gcc2
35701 builtin and then its argument prototype would still apply. */
35702char $ac_func ();
35703/* The GNU C library defines this for functions which it implements
35704 to always fail with ENOSYS. Some functions are actually named
35705 something starting with __ and the normal name is an alias. */
35706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35707choke me
35708#else
35709char (*f) () = $ac_func;
35710#endif
35711#ifdef __cplusplus
35712}
35713#endif
35714
35715int
35716main ()
35717{
35718return f != $ac_func;
35719 ;
35720 return 0;
35721}
35722_ACEOF
35723rm -f conftest.$ac_objext conftest$ac_exeext
35724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35725 (eval $ac_link) 2>conftest.er1
a848cd7e 35726 ac_status=$?
ac1cb8d3
VS
35727 grep -v '^ *+' conftest.er1 >conftest.err
35728 rm -f conftest.er1
35729 cat conftest.err >&5
a848cd7e
SC
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); } &&
be665c07
JS
35732 { ac_try='test -z "$ac_c_werror_flag"
35733 || test ! -s conftest.err'
ac1cb8d3
VS
35734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735 (eval $ac_try) 2>&5
35736 ac_status=$?
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); }; } &&
35739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741 (eval $ac_try) 2>&5
35742 ac_status=$?
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); }; }; then
35745 eval "$as_ac_var=yes"
35746else
35747 echo "$as_me: failed program was:" >&5
35748sed 's/^/| /' conftest.$ac_ext >&5
35749
35750eval "$as_ac_var=no"
35751fi
ac1cb8d3
VS
35752rm -f conftest.err conftest.$ac_objext \
35753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35754fi
35755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35757if test `eval echo '${'$as_ac_var'}'` = yes; then
35758 cat >>confdefs.h <<_ACEOF
35759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35760_ACEOF
35761 break
35762fi
35763done
35764
35765
35766
35767
35768ac_ext=cc
35769ac_cpp='$CXXCPP $CPPFLAGS'
35770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35773
35774
35775
35776for ac_func in strtok_r
35777do
35778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35779echo "$as_me:$LINENO: checking for $ac_func" >&5
35780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35781if eval "test \"\${$as_ac_var+set}\" = set"; then
35782 echo $ECHO_N "(cached) $ECHO_C" >&6
35783else
35784 cat >conftest.$ac_ext <<_ACEOF
35785/* confdefs.h. */
35786_ACEOF
35787cat confdefs.h >>conftest.$ac_ext
35788cat >>conftest.$ac_ext <<_ACEOF
35789/* end confdefs.h. */
ac1cb8d3
VS
35790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35792#define $ac_func innocuous_$ac_func
35793
a848cd7e
SC
35794/* System header to define __stub macros and hopefully few prototypes,
35795 which can conflict with char $ac_func (); below.
35796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35798
a848cd7e
SC
35799#ifdef __STDC__
35800# include <limits.h>
35801#else
35802# include <assert.h>
35803#endif
ac1cb8d3
VS
35804
35805#undef $ac_func
35806
a848cd7e
SC
35807/* Override any gcc2 internal prototype to avoid an error. */
35808#ifdef __cplusplus
35809extern "C"
35810{
35811#endif
35812/* We use char because int might match the return type of a gcc2
35813 builtin and then its argument prototype would still apply. */
35814char $ac_func ();
35815/* The GNU C library defines this for functions which it implements
35816 to always fail with ENOSYS. Some functions are actually named
35817 something starting with __ and the normal name is an alias. */
35818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35819choke me
35820#else
35821char (*f) () = $ac_func;
35822#endif
35823#ifdef __cplusplus
35824}
35825#endif
35826
35827int
35828main ()
35829{
35830return f != $ac_func;
35831 ;
35832 return 0;
35833}
35834_ACEOF
35835rm -f conftest.$ac_objext conftest$ac_exeext
35836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35837 (eval $ac_link) 2>conftest.er1
a848cd7e 35838 ac_status=$?
ac1cb8d3
VS
35839 grep -v '^ *+' conftest.er1 >conftest.err
35840 rm -f conftest.er1
35841 cat conftest.err >&5
a848cd7e
SC
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); } &&
be665c07
JS
35844 { ac_try='test -z "$ac_cxx_werror_flag"
35845 || test ! -s conftest.err'
ac1cb8d3
VS
35846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847 (eval $ac_try) 2>&5
35848 ac_status=$?
35849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850 (exit $ac_status); }; } &&
35851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35854 ac_status=$?
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; }; then
35857 eval "$as_ac_var=yes"
35858else
35859 echo "$as_me: failed program was:" >&5
35860sed 's/^/| /' conftest.$ac_ext >&5
35861
35862eval "$as_ac_var=no"
35863fi
ac1cb8d3
VS
35864rm -f conftest.err conftest.$ac_objext \
35865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35866fi
35867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35868echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35869if test `eval echo '${'$as_ac_var'}'` = yes; then
35870 cat >>confdefs.h <<_ACEOF
35871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35872_ACEOF
35873
35874fi
35875done
35876
35877
35878ac_ext=c
35879ac_cpp='$CPP $CPPFLAGS'
35880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35882ac_compiler_gnu=$ac_cv_c_compiler_gnu
35883
35884
35885INET_LINK=
35886
35887for ac_func in inet_addr
35888do
35889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35890echo "$as_me:$LINENO: checking for $ac_func" >&5
35891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35892if eval "test \"\${$as_ac_var+set}\" = set"; then
35893 echo $ECHO_N "(cached) $ECHO_C" >&6
35894else
35895 cat >conftest.$ac_ext <<_ACEOF
35896/* confdefs.h. */
35897_ACEOF
35898cat confdefs.h >>conftest.$ac_ext
35899cat >>conftest.$ac_ext <<_ACEOF
35900/* end confdefs.h. */
ac1cb8d3
VS
35901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35903#define $ac_func innocuous_$ac_func
35904
a848cd7e
SC
35905/* System header to define __stub macros and hopefully few prototypes,
35906 which can conflict with char $ac_func (); below.
35907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35908 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35909
a848cd7e
SC
35910#ifdef __STDC__
35911# include <limits.h>
35912#else
35913# include <assert.h>
35914#endif
ac1cb8d3
VS
35915
35916#undef $ac_func
35917
a848cd7e
SC
35918/* Override any gcc2 internal prototype to avoid an error. */
35919#ifdef __cplusplus
35920extern "C"
35921{
35922#endif
35923/* We use char because int might match the return type of a gcc2
35924 builtin and then its argument prototype would still apply. */
35925char $ac_func ();
35926/* The GNU C library defines this for functions which it implements
35927 to always fail with ENOSYS. Some functions are actually named
35928 something starting with __ and the normal name is an alias. */
35929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35930choke me
35931#else
35932char (*f) () = $ac_func;
35933#endif
35934#ifdef __cplusplus
35935}
35936#endif
35937
35938int
35939main ()
35940{
35941return f != $ac_func;
35942 ;
35943 return 0;
35944}
35945_ACEOF
35946rm -f conftest.$ac_objext conftest$ac_exeext
35947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35948 (eval $ac_link) 2>conftest.er1
a848cd7e 35949 ac_status=$?
ac1cb8d3
VS
35950 grep -v '^ *+' conftest.er1 >conftest.err
35951 rm -f conftest.er1
35952 cat conftest.err >&5
a848cd7e
SC
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); } &&
be665c07
JS
35955 { ac_try='test -z "$ac_c_werror_flag"
35956 || test ! -s conftest.err'
ac1cb8d3
VS
35957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35958 (eval $ac_try) 2>&5
35959 ac_status=$?
35960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961 (exit $ac_status); }; } &&
35962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35964 (eval $ac_try) 2>&5
35965 ac_status=$?
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); }; }; then
35968 eval "$as_ac_var=yes"
35969else
35970 echo "$as_me: failed program was:" >&5
35971sed 's/^/| /' conftest.$ac_ext >&5
35972
35973eval "$as_ac_var=no"
35974fi
ac1cb8d3
VS
35975rm -f conftest.err conftest.$ac_objext \
35976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35977fi
35978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35980if test `eval echo '${'$as_ac_var'}'` = yes; then
35981 cat >>confdefs.h <<_ACEOF
35982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35983_ACEOF
35984 cat >>confdefs.h <<\_ACEOF
35985#define HAVE_INET_ADDR 1
35986_ACEOF
35987
35988else
35989
35990 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35991echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35992if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35993 echo $ECHO_N "(cached) $ECHO_C" >&6
35994else
35995 ac_check_lib_save_LIBS=$LIBS
35996LIBS="-lnsl $LIBS"
35997cat >conftest.$ac_ext <<_ACEOF
35998/* confdefs.h. */
35999_ACEOF
36000cat confdefs.h >>conftest.$ac_ext
36001cat >>conftest.$ac_ext <<_ACEOF
36002/* end confdefs.h. */
36003
36004/* Override any gcc2 internal prototype to avoid an error. */
36005#ifdef __cplusplus
36006extern "C"
36007#endif
36008/* We use char because int might match the return type of a gcc2
36009 builtin and then its argument prototype would still apply. */
36010char inet_addr ();
36011int
36012main ()
36013{
36014inet_addr ();
36015 ;
36016 return 0;
36017}
36018_ACEOF
36019rm -f conftest.$ac_objext conftest$ac_exeext
36020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36021 (eval $ac_link) 2>conftest.er1
a848cd7e 36022 ac_status=$?
ac1cb8d3
VS
36023 grep -v '^ *+' conftest.er1 >conftest.err
36024 rm -f conftest.er1
36025 cat conftest.err >&5
a848cd7e
SC
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); } &&
be665c07
JS
36028 { ac_try='test -z "$ac_c_werror_flag"
36029 || test ! -s conftest.err'
ac1cb8d3
VS
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36032 ac_status=$?
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; } &&
36035 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037 (eval $ac_try) 2>&5
36038 ac_status=$?
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; }; then
36041 ac_cv_lib_nsl_inet_addr=yes
36042else
36043 echo "$as_me: failed program was:" >&5
36044sed 's/^/| /' conftest.$ac_ext >&5
36045
36046ac_cv_lib_nsl_inet_addr=no
36047fi
ac1cb8d3
VS
36048rm -f conftest.err conftest.$ac_objext \
36049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36050LIBS=$ac_check_lib_save_LIBS
36051fi
36052echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36053echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36054if test $ac_cv_lib_nsl_inet_addr = yes; then
36055 INET_LINK="nsl"
36056else
36057
36058 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36059echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36060if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36061 echo $ECHO_N "(cached) $ECHO_C" >&6
36062else
36063 ac_check_lib_save_LIBS=$LIBS
36064LIBS="-lresolv $LIBS"
36065cat >conftest.$ac_ext <<_ACEOF
36066/* confdefs.h. */
36067_ACEOF
36068cat confdefs.h >>conftest.$ac_ext
36069cat >>conftest.$ac_ext <<_ACEOF
36070/* end confdefs.h. */
36071
36072/* Override any gcc2 internal prototype to avoid an error. */
36073#ifdef __cplusplus
36074extern "C"
36075#endif
36076/* We use char because int might match the return type of a gcc2
36077 builtin and then its argument prototype would still apply. */
36078char inet_addr ();
36079int
36080main ()
36081{
36082inet_addr ();
36083 ;
36084 return 0;
36085}
36086_ACEOF
36087rm -f conftest.$ac_objext conftest$ac_exeext
36088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36089 (eval $ac_link) 2>conftest.er1
a848cd7e 36090 ac_status=$?
ac1cb8d3
VS
36091 grep -v '^ *+' conftest.er1 >conftest.err
36092 rm -f conftest.er1
36093 cat conftest.err >&5
a848cd7e
SC
36094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095 (exit $ac_status); } &&
be665c07
JS
36096 { ac_try='test -z "$ac_c_werror_flag"
36097 || test ! -s conftest.err'
ac1cb8d3
VS
36098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36099 (eval $ac_try) 2>&5
36100 ac_status=$?
36101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102 (exit $ac_status); }; } &&
36103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36105 (eval $ac_try) 2>&5
36106 ac_status=$?
36107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36108 (exit $ac_status); }; }; then
36109 ac_cv_lib_resolv_inet_addr=yes
36110else
36111 echo "$as_me: failed program was:" >&5
36112sed 's/^/| /' conftest.$ac_ext >&5
36113
36114ac_cv_lib_resolv_inet_addr=no
36115fi
ac1cb8d3
VS
36116rm -f conftest.err conftest.$ac_objext \
36117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36118LIBS=$ac_check_lib_save_LIBS
36119fi
36120echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36121echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36122if test $ac_cv_lib_resolv_inet_addr = yes; then
36123 INET_LINK="resolv"
36124else
36125
36126 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36127echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36128if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130else
36131 ac_check_lib_save_LIBS=$LIBS
36132LIBS="-lsocket $LIBS"
36133cat >conftest.$ac_ext <<_ACEOF
36134/* confdefs.h. */
36135_ACEOF
36136cat confdefs.h >>conftest.$ac_ext
36137cat >>conftest.$ac_ext <<_ACEOF
36138/* end confdefs.h. */
36139
36140/* Override any gcc2 internal prototype to avoid an error. */
36141#ifdef __cplusplus
36142extern "C"
36143#endif
36144/* We use char because int might match the return type of a gcc2
36145 builtin and then its argument prototype would still apply. */
36146char inet_addr ();
36147int
36148main ()
36149{
36150inet_addr ();
36151 ;
36152 return 0;
36153}
36154_ACEOF
36155rm -f conftest.$ac_objext conftest$ac_exeext
36156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36157 (eval $ac_link) 2>conftest.er1
a848cd7e 36158 ac_status=$?
ac1cb8d3
VS
36159 grep -v '^ *+' conftest.er1 >conftest.err
36160 rm -f conftest.er1
36161 cat conftest.err >&5
a848cd7e
SC
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); } &&
be665c07
JS
36164 { ac_try='test -z "$ac_c_werror_flag"
36165 || test ! -s conftest.err'
ac1cb8d3
VS
36166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167 (eval $ac_try) 2>&5
36168 ac_status=$?
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; } &&
36171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173 (eval $ac_try) 2>&5
36174 ac_status=$?
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; }; then
36177 ac_cv_lib_socket_inet_addr=yes
36178else
36179 echo "$as_me: failed program was:" >&5
36180sed 's/^/| /' conftest.$ac_ext >&5
36181
36182ac_cv_lib_socket_inet_addr=no
36183fi
ac1cb8d3
VS
36184rm -f conftest.err conftest.$ac_objext \
36185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36186LIBS=$ac_check_lib_save_LIBS
36187fi
36188echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36189echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36190if test $ac_cv_lib_socket_inet_addr = yes; then
36191 INET_LINK="socket"
36192
36193fi
36194
36195
36196
36197fi
36198
36199
36200
36201fi
36202
36203
36204
36205fi
36206done
36207
36208
36209
36210for ac_func in inet_aton
36211do
36212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36213echo "$as_me:$LINENO: checking for $ac_func" >&5
36214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36215if eval "test \"\${$as_ac_var+set}\" = set"; then
36216 echo $ECHO_N "(cached) $ECHO_C" >&6
36217else
36218 cat >conftest.$ac_ext <<_ACEOF
36219/* confdefs.h. */
36220_ACEOF
36221cat confdefs.h >>conftest.$ac_ext
36222cat >>conftest.$ac_ext <<_ACEOF
36223/* end confdefs.h. */
ac1cb8d3
VS
36224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36226#define $ac_func innocuous_$ac_func
36227
a848cd7e
SC
36228/* System header to define __stub macros and hopefully few prototypes,
36229 which can conflict with char $ac_func (); below.
36230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36231 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36232
a848cd7e
SC
36233#ifdef __STDC__
36234# include <limits.h>
36235#else
36236# include <assert.h>
36237#endif
ac1cb8d3
VS
36238
36239#undef $ac_func
36240
a848cd7e
SC
36241/* Override any gcc2 internal prototype to avoid an error. */
36242#ifdef __cplusplus
36243extern "C"
36244{
36245#endif
36246/* We use char because int might match the return type of a gcc2
36247 builtin and then its argument prototype would still apply. */
36248char $ac_func ();
36249/* The GNU C library defines this for functions which it implements
36250 to always fail with ENOSYS. Some functions are actually named
36251 something starting with __ and the normal name is an alias. */
36252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36253choke me
36254#else
36255char (*f) () = $ac_func;
36256#endif
36257#ifdef __cplusplus
36258}
36259#endif
36260
36261int
36262main ()
36263{
36264return f != $ac_func;
36265 ;
36266 return 0;
36267}
36268_ACEOF
36269rm -f conftest.$ac_objext conftest$ac_exeext
36270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36271 (eval $ac_link) 2>conftest.er1
a848cd7e 36272 ac_status=$?
ac1cb8d3
VS
36273 grep -v '^ *+' conftest.er1 >conftest.err
36274 rm -f conftest.er1
36275 cat conftest.err >&5
a848cd7e
SC
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); } &&
be665c07
JS
36278 { ac_try='test -z "$ac_c_werror_flag"
36279 || test ! -s conftest.err'
ac1cb8d3
VS
36280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36281 (eval $ac_try) 2>&5
36282 ac_status=$?
36283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 (exit $ac_status); }; } &&
36285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287 (eval $ac_try) 2>&5
36288 ac_status=$?
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); }; }; then
36291 eval "$as_ac_var=yes"
36292else
36293 echo "$as_me: failed program was:" >&5
36294sed 's/^/| /' conftest.$ac_ext >&5
36295
36296eval "$as_ac_var=no"
36297fi
ac1cb8d3
VS
36298rm -f conftest.err conftest.$ac_objext \
36299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36300fi
36301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36303if test `eval echo '${'$as_ac_var'}'` = yes; then
36304 cat >>confdefs.h <<_ACEOF
36305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36306_ACEOF
36307 cat >>confdefs.h <<\_ACEOF
36308#define HAVE_INET_ATON 1
36309_ACEOF
36310
36311else
36312
36313 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36314echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36315echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36316if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36317 echo $ECHO_N "(cached) $ECHO_C" >&6
36318else
36319 ac_check_lib_save_LIBS=$LIBS
36320LIBS="-l$INET_LINK $LIBS"
36321cat >conftest.$ac_ext <<_ACEOF
36322/* confdefs.h. */
36323_ACEOF
36324cat confdefs.h >>conftest.$ac_ext
36325cat >>conftest.$ac_ext <<_ACEOF
36326/* end confdefs.h. */
36327
36328/* Override any gcc2 internal prototype to avoid an error. */
36329#ifdef __cplusplus
36330extern "C"
36331#endif
36332/* We use char because int might match the return type of a gcc2
36333 builtin and then its argument prototype would still apply. */
36334char inet_aton ();
36335int
36336main ()
36337{
36338inet_aton ();
36339 ;
36340 return 0;
36341}
36342_ACEOF
36343rm -f conftest.$ac_objext conftest$ac_exeext
36344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36345 (eval $ac_link) 2>conftest.er1
a848cd7e 36346 ac_status=$?
ac1cb8d3
VS
36347 grep -v '^ *+' conftest.er1 >conftest.err
36348 rm -f conftest.er1
36349 cat conftest.err >&5
a848cd7e
SC
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); } &&
be665c07
JS
36352 { ac_try='test -z "$ac_c_werror_flag"
36353 || test ! -s conftest.err'
ac1cb8d3
VS
36354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36355 (eval $ac_try) 2>&5
36356 ac_status=$?
36357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358 (exit $ac_status); }; } &&
36359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36361 (eval $ac_try) 2>&5
36362 ac_status=$?
36363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36364 (exit $ac_status); }; }; then
36365 eval "$as_ac_Lib=yes"
36366else
36367 echo "$as_me: failed program was:" >&5
36368sed 's/^/| /' conftest.$ac_ext >&5
36369
36370eval "$as_ac_Lib=no"
36371fi
ac1cb8d3
VS
36372rm -f conftest.err conftest.$ac_objext \
36373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36374LIBS=$ac_check_lib_save_LIBS
36375fi
36376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36377echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36378if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36379 cat >>confdefs.h <<\_ACEOF
36380#define HAVE_INET_ATON 1
36381_ACEOF
36382
36383fi
36384
36385
36386fi
36387done
36388
36389
36390if test "x$INET_LINK" != "x"; then
36391 cat >>confdefs.h <<\_ACEOF
36392#define HAVE_INET_ADDR 1
36393_ACEOF
36394
36395 INET_LINK=" -l$INET_LINK"
36396fi
36397
36398fi
36399
36400
36401
36402EXTRALIBS_ESD=
36403echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36404echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36405if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36406 echo $ECHO_N "(cached) $ECHO_C" >&6
36407else
36408 ac_check_lib_save_LIBS=$LIBS
36409LIBS="-lesd $LIBS"
36410cat >conftest.$ac_ext <<_ACEOF
36411/* confdefs.h. */
36412_ACEOF
36413cat confdefs.h >>conftest.$ac_ext
36414cat >>conftest.$ac_ext <<_ACEOF
36415/* end confdefs.h. */
36416
36417/* Override any gcc2 internal prototype to avoid an error. */
36418#ifdef __cplusplus
36419extern "C"
36420#endif
36421/* We use char because int might match the return type of a gcc2
36422 builtin and then its argument prototype would still apply. */
36423char esd_close ();
36424int
36425main ()
36426{
36427esd_close ();
36428 ;
36429 return 0;
36430}
36431_ACEOF
36432rm -f conftest.$ac_objext conftest$ac_exeext
36433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36434 (eval $ac_link) 2>conftest.er1
a848cd7e 36435 ac_status=$?
ac1cb8d3
VS
36436 grep -v '^ *+' conftest.er1 >conftest.err
36437 rm -f conftest.er1
36438 cat conftest.err >&5
a848cd7e
SC
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); } &&
be665c07
JS
36441 { ac_try='test -z "$ac_c_werror_flag"
36442 || test ! -s conftest.err'
ac1cb8d3
VS
36443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36444 (eval $ac_try) 2>&5
36445 ac_status=$?
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); }; } &&
36448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36450 (eval $ac_try) 2>&5
36451 ac_status=$?
36452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453 (exit $ac_status); }; }; then
36454 ac_cv_lib_esd_esd_close=yes
36455else
36456 echo "$as_me: failed program was:" >&5
36457sed 's/^/| /' conftest.$ac_ext >&5
36458
36459ac_cv_lib_esd_esd_close=no
36460fi
ac1cb8d3
VS
36461rm -f conftest.err conftest.$ac_objext \
36462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36463LIBS=$ac_check_lib_save_LIBS
36464fi
36465echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36466echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36467if test $ac_cv_lib_esd_esd_close = yes; then
36468
36469
36470for ac_header in esd.h
36471do
36472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36473if eval "test \"\${$as_ac_Header+set}\" = set"; then
36474 echo "$as_me:$LINENO: checking for $ac_header" >&5
36475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36476if eval "test \"\${$as_ac_Header+set}\" = set"; then
36477 echo $ECHO_N "(cached) $ECHO_C" >&6
36478fi
36479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36481else
36482 # Is the header compilable?
36483echo "$as_me:$LINENO: checking $ac_header usability" >&5
36484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36485cat >conftest.$ac_ext <<_ACEOF
36486/* confdefs.h. */
36487_ACEOF
36488cat confdefs.h >>conftest.$ac_ext
36489cat >>conftest.$ac_ext <<_ACEOF
36490/* end confdefs.h. */
36491$ac_includes_default
36492#include <$ac_header>
36493_ACEOF
36494rm -f conftest.$ac_objext
36495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36496 (eval $ac_compile) 2>conftest.er1
a848cd7e 36497 ac_status=$?
ac1cb8d3
VS
36498 grep -v '^ *+' conftest.er1 >conftest.err
36499 rm -f conftest.er1
36500 cat conftest.err >&5
a848cd7e
SC
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); } &&
be665c07
JS
36503 { ac_try='test -z "$ac_c_werror_flag"
36504 || test ! -s conftest.err'
ac1cb8d3
VS
36505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36506 (eval $ac_try) 2>&5
36507 ac_status=$?
36508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509 (exit $ac_status); }; } &&
36510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36512 (eval $ac_try) 2>&5
36513 ac_status=$?
36514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515 (exit $ac_status); }; }; then
36516 ac_header_compiler=yes
36517else
36518 echo "$as_me: failed program was:" >&5
36519sed 's/^/| /' conftest.$ac_ext >&5
36520
36521ac_header_compiler=no
36522fi
ac1cb8d3 36523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36525echo "${ECHO_T}$ac_header_compiler" >&6
36526
36527# Is the header present?
36528echo "$as_me:$LINENO: checking $ac_header presence" >&5
36529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36530cat >conftest.$ac_ext <<_ACEOF
36531/* confdefs.h. */
36532_ACEOF
36533cat confdefs.h >>conftest.$ac_ext
36534cat >>conftest.$ac_ext <<_ACEOF
36535/* end confdefs.h. */
36536#include <$ac_header>
36537_ACEOF
36538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36540 ac_status=$?
36541 grep -v '^ *+' conftest.er1 >conftest.err
36542 rm -f conftest.er1
36543 cat conftest.err >&5
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); } >/dev/null; then
36546 if test -s conftest.err; then
36547 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36549 else
36550 ac_cpp_err=
36551 fi
36552else
36553 ac_cpp_err=yes
36554fi
36555if test -z "$ac_cpp_err"; then
36556 ac_header_preproc=yes
36557else
36558 echo "$as_me: failed program was:" >&5
36559sed 's/^/| /' conftest.$ac_ext >&5
36560
36561 ac_header_preproc=no
36562fi
36563rm -f conftest.err conftest.$ac_ext
36564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36565echo "${ECHO_T}$ac_header_preproc" >&6
36566
36567# So? What about this header?
ac1cb8d3
VS
36568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36569 yes:no: )
a848cd7e
SC
36570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36573echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36574 ac_header_preproc=yes
a848cd7e 36575 ;;
ac1cb8d3 36576 no:yes:* )
a848cd7e
SC
36577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36582echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36584echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36588echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36589 (
36590 cat <<\_ASBOX
ac1cb8d3
VS
36591## ----------------------------------------- ##
36592## Report this to wx-dev@lists.wxwidgets.org ##
36593## ----------------------------------------- ##
a848cd7e
SC
36594_ASBOX
36595 ) |
36596 sed "s/^/$as_me: WARNING: /" >&2
36597 ;;
36598esac
36599echo "$as_me:$LINENO: checking for $ac_header" >&5
36600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36601if eval "test \"\${$as_ac_Header+set}\" = set"; then
36602 echo $ECHO_N "(cached) $ECHO_C" >&6
36603else
ac1cb8d3 36604 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36605fi
36606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36608
36609fi
36610if test `eval echo '${'$as_ac_Header'}'` = yes; then
36611 cat >>confdefs.h <<_ACEOF
36612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36613_ACEOF
36614
36615 EXTRALIBS_ESD="-lesd"
36616
36617fi
36618
36619done
36620
36621
36622fi
36623
36624
36625
36626echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36627echo $ECHO_N "checking for known CD-ROM interface... $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#ifdef __linux__
36635 #include <linux/cdrom.h>
36636 #else
36637 /* For Solaris */
36638 #include <sys/cdio.h>
36639 #endif
36640
36641int
36642main ()
36643{
36644struct cdrom_tocentry entry, old_entry;
36645 ;
36646 return 0;
36647}
36648_ACEOF
36649rm -f conftest.$ac_objext
36650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36651 (eval $ac_compile) 2>conftest.er1
a848cd7e 36652 ac_status=$?
ac1cb8d3
VS
36653 grep -v '^ *+' conftest.er1 >conftest.err
36654 rm -f conftest.er1
36655 cat conftest.err >&5
a848cd7e
SC
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } &&
be665c07
JS
36658 { ac_try='test -z "$ac_c_werror_flag"
36659 || test ! -s conftest.err'
ac1cb8d3
VS
36660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661 (eval $ac_try) 2>&5
36662 ac_status=$?
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); }; } &&
36665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667 (eval $ac_try) 2>&5
36668 ac_status=$?
36669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670 (exit $ac_status); }; }; then
36671 echo "$as_me:$LINENO: result: yes" >&5
36672echo "${ECHO_T}yes" >&6
36673 cat >>confdefs.h <<\_ACEOF
36674#define HAVE_KNOWN_CDROM_INTERFACE 1
36675_ACEOF
36676
36677else
36678 echo "$as_me: failed program was:" >&5
36679sed 's/^/| /' conftest.$ac_ext >&5
36680
36681echo "$as_me:$LINENO: result: no" >&5
36682echo "${ECHO_T}no" >&6
36683fi
ac1cb8d3 36684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36685
36686
36687cat >confcache <<\_ACEOF
36688# This file is a shell script that caches the results of configure
36689# tests run on this system so they can be shared between configure
36690# scripts and configure runs, see configure's option --config-cache.
36691# It is not useful on other systems. If it contains results you don't
36692# want to keep, you may remove or edit it.
36693#
36694# config.status only pays attention to the cache file if you give it
36695# the --recheck option to rerun configure.
36696#
36697# `ac_cv_env_foo' variables (set or unset) will be overridden when
36698# loading this file, other *unset* `ac_cv_foo' will be assigned the
36699# following values.
36700
36701_ACEOF
36702
36703# The following way of writing the cache mishandles newlines in values,
36704# but we know of no workaround that is simple, portable, and efficient.
36705# So, don't put newlines in cache variables' values.
36706# Ultrix sh set writes to stderr and can't be redirected directly,
36707# and sets the high bit in the cache file unless we assign to the vars.
36708{
36709 (set) 2>&1 |
36710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36711 *ac_space=\ *)
36712 # `set' does not quote correctly, so add quotes (double-quote
36713 # substitution turns \\\\ into \\, and sed turns \\ into \).
36714 sed -n \
ac1cb8d3
VS
36715 "s/'/'\\\\''/g;
36716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36717 ;;
36718 *)
36719 # `set' quotes correctly as required by POSIX, so do not add quotes.
36720 sed -n \
ac1cb8d3 36721 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36722 ;;
36723 esac;
36724} |
36725 sed '
36726 t clear
36727 : clear
36728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36729 t end
36730 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36731 : end' >>confcache
36732if diff $cache_file confcache >/dev/null 2>&1; then :; else
36733 if test -w $cache_file; then
36734 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36735 cat confcache >$cache_file
36736 else
36737 echo "not updating unwritable cache $cache_file"
36738 fi
36739fi
36740rm -f confcache
36741
36742
36743CPP_MT_FLAG=
36744if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36745
36746
36747 THREADS_LINK=
36748 THREADS_CFLAGS=
36749
36750 if test "$wxUSE_THREADS" = "yes" ; then
36751 if test "$USE_BEOS" = 1; then
36752 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36753echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36754 wxUSE_THREADS="no"
36755 fi
36756 fi
36757
36758 if test "$wxUSE_THREADS" = "yes" ; then
36759
36760
36761 THREAD_OPTS="-pthread"
36762 case "${host}" in
36763 *-*-solaris2* | *-*-sunos4* )
36764 if test "x$GCC" = "xyes"; then
36765 THREAD_OPTS="-pthreads $THREAD_OPTS"
36766 else
36767 THREAD_OPTS="-mt $THREAD_OPTS"
36768 fi
36769 ;;
36770 *-*-freebsd*)
36771 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36772 ;;
36773 *-*-darwin* | *-*-cygwin* )
36774 THREAD_OPTS=""
36775 ;;
36776 *-*-aix*)
36777 THREAD_OPTS="pthreads"
36778 ;;
36779 *-hp-hpux* )
00421666
MW
36780 if test "x$GCC" = "xyes"; then
36781 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36782 THREAD_OPTS=""
36783 else
0093c2fc 36784 THREAD_OPTS="-mt"
a848cd7e
SC
36785 fi
36786 ;;
36787
36788 *-*-irix* )
36789 if test "x$GCC" = "xyes"; then
36790 THREAD_OPTS=""
36791 fi
36792 ;;
36793
36794 *-*-*UnixWare*)
36795 if test "x$GCC" != "xyes"; then
36796 THREAD_OPTS="-Ethread"
36797 fi
36798 ;;
36799 esac
36800
36801 THREAD_OPTS="$THREAD_OPTS pthread none"
36802
36803 THREADS_OK=no
36804 for flag in $THREAD_OPTS; do
36805 case $flag in
36806 none)
36807 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36808echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36809 ;;
36810
36811 -*)
36812 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36813echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36814 THREADS_CFLAGS="$flag"
36815 ;;
36816
36817 *)
36818 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36819echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36820 THREADS_LINK="-l$flag"
36821 ;;
36822 esac
36823
36824 save_LIBS="$LIBS"
36825 save_CFLAGS="$CFLAGS"
36826 LIBS="$THREADS_LINK $LIBS"
36827 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36828
36829 cat >conftest.$ac_ext <<_ACEOF
36830/* confdefs.h. */
36831_ACEOF
36832cat confdefs.h >>conftest.$ac_ext
36833cat >>conftest.$ac_ext <<_ACEOF
36834/* end confdefs.h. */
36835#include <pthread.h>
36836int
36837main ()
36838{
36839pthread_create(0,0,0,0);
36840 ;
36841 return 0;
36842}
36843_ACEOF
36844rm -f conftest.$ac_objext conftest$ac_exeext
36845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36846 (eval $ac_link) 2>conftest.er1
a848cd7e 36847 ac_status=$?
ac1cb8d3
VS
36848 grep -v '^ *+' conftest.er1 >conftest.err
36849 rm -f conftest.er1
36850 cat conftest.err >&5
a848cd7e
SC
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); } &&
be665c07
JS
36853 { ac_try='test -z "$ac_c_werror_flag"
36854 || test ! -s conftest.err'
ac1cb8d3
VS
36855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856 (eval $ac_try) 2>&5
36857 ac_status=$?
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); }; } &&
36860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862 (eval $ac_try) 2>&5
36863 ac_status=$?
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); }; }; then
36866 THREADS_OK=yes
36867else
36868 echo "$as_me: failed program was:" >&5
36869sed 's/^/| /' conftest.$ac_ext >&5
36870
36871fi
ac1cb8d3
VS
36872rm -f conftest.err conftest.$ac_objext \
36873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36874
36875 LIBS="$save_LIBS"
36876 CFLAGS="$save_CFLAGS"
36877
36878 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36879echo "${ECHO_T}$THREADS_OK" >&6
36880 if test "x$THREADS_OK" = "xyes"; then
36881 break;
36882 fi
36883
36884 THREADS_LINK=""
36885 THREADS_CFLAGS=""
36886 done
36887
36888 if test "x$THREADS_OK" != "xyes"; then
36889 wxUSE_THREADS=no
36890 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36891echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36892 else
36893 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36894 LIBS="$THREADS_LINK $LIBS"
36895
36896 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36897echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36898 flag=no
36899 case "${host}" in
36900 *-aix*)
36901 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36902 flag="-D_THREAD_SAFE"
36903 ;;
36904 *-freebsd*)
36905 flag="-D_THREAD_SAFE"
36906 ;;
36907 *-hp-hpux* )
36908 flag="-D_REENTRANT"
36909 if test "x$GCC" != "xyes"; then
36910 flag="$flag -D_RWSTD_MULTI_THREAD"
36911 fi
36912 ;;
36913 *solaris* | alpha*-osf*)
36914 flag="-D_REENTRANT"
36915 ;;
36916 esac
36917 echo "$as_me:$LINENO: result: ${flag}" >&5
36918echo "${ECHO_T}${flag}" >&6
36919 if test "x$flag" != xno; then
36920 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36921 fi
36922
36923 if test "x$THREADS_CFLAGS" != "x"; then
36924 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36925 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36926 fi
36927 fi
36928 fi
36929
36930 if test "$wxUSE_THREADS" = "yes" ; then
36931
36932for ac_func in thr_setconcurrency
36933do
36934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36935echo "$as_me:$LINENO: checking for $ac_func" >&5
36936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36937if eval "test \"\${$as_ac_var+set}\" = set"; then
36938 echo $ECHO_N "(cached) $ECHO_C" >&6
36939else
36940 cat >conftest.$ac_ext <<_ACEOF
36941/* confdefs.h. */
36942_ACEOF
36943cat confdefs.h >>conftest.$ac_ext
36944cat >>conftest.$ac_ext <<_ACEOF
36945/* end confdefs.h. */
ac1cb8d3
VS
36946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36948#define $ac_func innocuous_$ac_func
36949
a848cd7e
SC
36950/* System header to define __stub macros and hopefully few prototypes,
36951 which can conflict with char $ac_func (); below.
36952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36953 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36954
a848cd7e
SC
36955#ifdef __STDC__
36956# include <limits.h>
36957#else
36958# include <assert.h>
36959#endif
ac1cb8d3
VS
36960
36961#undef $ac_func
36962
a848cd7e
SC
36963/* Override any gcc2 internal prototype to avoid an error. */
36964#ifdef __cplusplus
36965extern "C"
36966{
36967#endif
36968/* We use char because int might match the return type of a gcc2
36969 builtin and then its argument prototype would still apply. */
36970char $ac_func ();
36971/* The GNU C library defines this for functions which it implements
36972 to always fail with ENOSYS. Some functions are actually named
36973 something starting with __ and the normal name is an alias. */
36974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36975choke me
36976#else
36977char (*f) () = $ac_func;
36978#endif
36979#ifdef __cplusplus
36980}
36981#endif
36982
36983int
36984main ()
36985{
36986return f != $ac_func;
36987 ;
36988 return 0;
36989}
36990_ACEOF
36991rm -f conftest.$ac_objext conftest$ac_exeext
36992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36993 (eval $ac_link) 2>conftest.er1
a848cd7e 36994 ac_status=$?
ac1cb8d3
VS
36995 grep -v '^ *+' conftest.er1 >conftest.err
36996 rm -f conftest.er1
36997 cat conftest.err >&5
a848cd7e
SC
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); } &&
be665c07
JS
37000 { ac_try='test -z "$ac_c_werror_flag"
37001 || test ! -s conftest.err'
ac1cb8d3
VS
37002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003 (eval $ac_try) 2>&5
37004 ac_status=$?
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); }; } &&
37007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37009 (eval $ac_try) 2>&5
37010 ac_status=$?
37011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012 (exit $ac_status); }; }; then
37013 eval "$as_ac_var=yes"
37014else
37015 echo "$as_me: failed program was:" >&5
37016sed 's/^/| /' conftest.$ac_ext >&5
37017
37018eval "$as_ac_var=no"
37019fi
ac1cb8d3
VS
37020rm -f conftest.err conftest.$ac_objext \
37021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37022fi
37023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37025if test `eval echo '${'$as_ac_var'}'` = yes; then
37026 cat >>confdefs.h <<_ACEOF
37027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37028_ACEOF
37029
37030fi
37031done
37032
37033
6ebeb4c7
VZ
37034 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37035echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37036if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37037 echo $ECHO_N "(cached) $ECHO_C" >&6
37038else
37039
37040 cat >conftest.$ac_ext <<_ACEOF
37041/* confdefs.h. */
37042_ACEOF
37043cat confdefs.h >>conftest.$ac_ext
37044cat >>conftest.$ac_ext <<_ACEOF
37045/* end confdefs.h. */
37046#include <pthread.h>
37047 void ThreadCleanupFunc(void *p);
37048
37049int
37050main ()
37051{
37052
37053 void *p;
37054 pthread_cleanup_push(ThreadCleanupFunc, p);
37055 pthread_cleanup_pop(0);
37056
37057 ;
37058 return 0;
37059}
37060_ACEOF
37061rm -f conftest.$ac_objext
37062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37063 (eval $ac_compile) 2>conftest.er1
37064 ac_status=$?
37065 grep -v '^ *+' conftest.er1 >conftest.err
37066 rm -f conftest.er1
37067 cat conftest.err >&5
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); } &&
be665c07
JS
37070 { ac_try='test -z "$ac_c_werror_flag"
37071 || test ! -s conftest.err'
6ebeb4c7
VZ
37072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37073 (eval $ac_try) 2>&5
37074 ac_status=$?
37075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076 (exit $ac_status); }; } &&
37077 { ac_try='test -s conftest.$ac_objext'
37078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37079 (eval $ac_try) 2>&5
37080 ac_status=$?
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); }; }; then
37083
37084 wx_cv_func_pthread_cleanup=yes
37085
37086else
37087 echo "$as_me: failed program was:" >&5
37088sed 's/^/| /' conftest.$ac_ext >&5
37089
37090
37091 wx_cv_func_pthread_cleanup=no
37092
37093
37094fi
37095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37096
37097fi
37098echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37099echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37100 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37101 cat >>confdefs.h <<\_ACEOF
37102#define wxHAVE_PTHREAD_CLEANUP 1
37103_ACEOF
37104
37105 fi
37106
a848cd7e
SC
37107
37108for ac_header in sched.h
37109do
37110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37111if eval "test \"\${$as_ac_Header+set}\" = set"; then
37112 echo "$as_me:$LINENO: checking for $ac_header" >&5
37113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37114if eval "test \"\${$as_ac_Header+set}\" = set"; then
37115 echo $ECHO_N "(cached) $ECHO_C" >&6
37116fi
37117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37119else
37120 # Is the header compilable?
37121echo "$as_me:$LINENO: checking $ac_header usability" >&5
37122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37123cat >conftest.$ac_ext <<_ACEOF
37124/* confdefs.h. */
37125_ACEOF
37126cat confdefs.h >>conftest.$ac_ext
37127cat >>conftest.$ac_ext <<_ACEOF
37128/* end confdefs.h. */
37129$ac_includes_default
37130#include <$ac_header>
37131_ACEOF
37132rm -f conftest.$ac_objext
37133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37134 (eval $ac_compile) 2>conftest.er1
a848cd7e 37135 ac_status=$?
ac1cb8d3
VS
37136 grep -v '^ *+' conftest.er1 >conftest.err
37137 rm -f conftest.er1
37138 cat conftest.err >&5
a848cd7e
SC
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); } &&
be665c07
JS
37141 { ac_try='test -z "$ac_c_werror_flag"
37142 || test ! -s conftest.err'
ac1cb8d3
VS
37143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144 (eval $ac_try) 2>&5
37145 ac_status=$?
37146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147 (exit $ac_status); }; } &&
37148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37150 (eval $ac_try) 2>&5
37151 ac_status=$?
37152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153 (exit $ac_status); }; }; then
37154 ac_header_compiler=yes
37155else
37156 echo "$as_me: failed program was:" >&5
37157sed 's/^/| /' conftest.$ac_ext >&5
37158
37159ac_header_compiler=no
37160fi
ac1cb8d3 37161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37163echo "${ECHO_T}$ac_header_compiler" >&6
37164
37165# Is the header present?
37166echo "$as_me:$LINENO: checking $ac_header presence" >&5
37167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37168cat >conftest.$ac_ext <<_ACEOF
37169/* confdefs.h. */
37170_ACEOF
37171cat confdefs.h >>conftest.$ac_ext
37172cat >>conftest.$ac_ext <<_ACEOF
37173/* end confdefs.h. */
37174#include <$ac_header>
37175_ACEOF
37176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37178 ac_status=$?
37179 grep -v '^ *+' conftest.er1 >conftest.err
37180 rm -f conftest.er1
37181 cat conftest.err >&5
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); } >/dev/null; then
37184 if test -s conftest.err; then
37185 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37187 else
37188 ac_cpp_err=
37189 fi
37190else
37191 ac_cpp_err=yes
37192fi
37193if test -z "$ac_cpp_err"; then
37194 ac_header_preproc=yes
37195else
37196 echo "$as_me: failed program was:" >&5
37197sed 's/^/| /' conftest.$ac_ext >&5
37198
37199 ac_header_preproc=no
37200fi
37201rm -f conftest.err conftest.$ac_ext
37202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37203echo "${ECHO_T}$ac_header_preproc" >&6
37204
37205# So? What about this header?
ac1cb8d3
VS
37206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37207 yes:no: )
a848cd7e
SC
37208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37212 ac_header_preproc=yes
a848cd7e 37213 ;;
ac1cb8d3 37214 no:yes:* )
a848cd7e
SC
37215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37227 (
37228 cat <<\_ASBOX
ac1cb8d3
VS
37229## ----------------------------------------- ##
37230## Report this to wx-dev@lists.wxwidgets.org ##
37231## ----------------------------------------- ##
a848cd7e
SC
37232_ASBOX
37233 ) |
37234 sed "s/^/$as_me: WARNING: /" >&2
37235 ;;
37236esac
37237echo "$as_me:$LINENO: checking for $ac_header" >&5
37238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37239if eval "test \"\${$as_ac_Header+set}\" = set"; then
37240 echo $ECHO_N "(cached) $ECHO_C" >&6
37241else
ac1cb8d3 37242 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37243fi
37244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37246
37247fi
37248if test `eval echo '${'$as_ac_Header'}'` = yes; then
37249 cat >>confdefs.h <<_ACEOF
37250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37251_ACEOF
37252
37253fi
37254
37255done
37256
37257 if test "$ac_cv_header_sched_h" = "yes"; then
37258 echo "$as_me:$LINENO: checking for sched_yield" >&5
37259echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37260if test "${ac_cv_func_sched_yield+set}" = set; then
37261 echo $ECHO_N "(cached) $ECHO_C" >&6
37262else
37263 cat >conftest.$ac_ext <<_ACEOF
37264/* confdefs.h. */
37265_ACEOF
37266cat confdefs.h >>conftest.$ac_ext
37267cat >>conftest.$ac_ext <<_ACEOF
37268/* end confdefs.h. */
ac1cb8d3
VS
37269/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37271#define sched_yield innocuous_sched_yield
37272
a848cd7e
SC
37273/* System header to define __stub macros and hopefully few prototypes,
37274 which can conflict with char sched_yield (); below.
37275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37276 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37277
a848cd7e
SC
37278#ifdef __STDC__
37279# include <limits.h>
37280#else
37281# include <assert.h>
37282#endif
ac1cb8d3
VS
37283
37284#undef sched_yield
37285
a848cd7e
SC
37286/* Override any gcc2 internal prototype to avoid an error. */
37287#ifdef __cplusplus
37288extern "C"
37289{
37290#endif
37291/* We use char because int might match the return type of a gcc2
37292 builtin and then its argument prototype would still apply. */
37293char sched_yield ();
37294/* The GNU C library defines this for functions which it implements
37295 to always fail with ENOSYS. Some functions are actually named
37296 something starting with __ and the normal name is an alias. */
37297#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37298choke me
37299#else
37300char (*f) () = sched_yield;
37301#endif
37302#ifdef __cplusplus
37303}
37304#endif
37305
37306int
37307main ()
37308{
37309return f != sched_yield;
37310 ;
37311 return 0;
37312}
37313_ACEOF
37314rm -f conftest.$ac_objext conftest$ac_exeext
37315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37316 (eval $ac_link) 2>conftest.er1
a848cd7e 37317 ac_status=$?
ac1cb8d3
VS
37318 grep -v '^ *+' conftest.er1 >conftest.err
37319 rm -f conftest.er1
37320 cat conftest.err >&5
a848cd7e
SC
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); } &&
be665c07
JS
37323 { ac_try='test -z "$ac_c_werror_flag"
37324 || test ! -s conftest.err'
ac1cb8d3
VS
37325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37326 (eval $ac_try) 2>&5
37327 ac_status=$?
37328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); }; } &&
37330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37332 (eval $ac_try) 2>&5
37333 ac_status=$?
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); }; }; then
37336 ac_cv_func_sched_yield=yes
37337else
37338 echo "$as_me: failed program was:" >&5
37339sed 's/^/| /' conftest.$ac_ext >&5
37340
37341ac_cv_func_sched_yield=no
37342fi
ac1cb8d3
VS
37343rm -f conftest.err conftest.$ac_objext \
37344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37345fi
37346echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37347echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37348if test $ac_cv_func_sched_yield = yes; then
37349 cat >>confdefs.h <<\_ACEOF
37350#define HAVE_SCHED_YIELD 1
37351_ACEOF
37352
37353else
37354
37355 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37356echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37357if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37359else
37360 ac_check_lib_save_LIBS=$LIBS
37361LIBS="-lposix4 $LIBS"
37362cat >conftest.$ac_ext <<_ACEOF
37363/* confdefs.h. */
37364_ACEOF
37365cat confdefs.h >>conftest.$ac_ext
37366cat >>conftest.$ac_ext <<_ACEOF
37367/* end confdefs.h. */
37368
37369/* Override any gcc2 internal prototype to avoid an error. */
37370#ifdef __cplusplus
37371extern "C"
37372#endif
37373/* We use char because int might match the return type of a gcc2
37374 builtin and then its argument prototype would still apply. */
37375char sched_yield ();
37376int
37377main ()
37378{
37379sched_yield ();
37380 ;
37381 return 0;
37382}
37383_ACEOF
37384rm -f conftest.$ac_objext conftest$ac_exeext
37385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37386 (eval $ac_link) 2>conftest.er1
a848cd7e 37387 ac_status=$?
ac1cb8d3
VS
37388 grep -v '^ *+' conftest.er1 >conftest.err
37389 rm -f conftest.er1
37390 cat conftest.err >&5
a848cd7e
SC
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); } &&
be665c07
JS
37393 { ac_try='test -z "$ac_c_werror_flag"
37394 || test ! -s conftest.err'
ac1cb8d3
VS
37395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37396 (eval $ac_try) 2>&5
37397 ac_status=$?
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); }; } &&
37400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37402 (eval $ac_try) 2>&5
37403 ac_status=$?
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); }; }; then
37406 ac_cv_lib_posix4_sched_yield=yes
37407else
37408 echo "$as_me: failed program was:" >&5
37409sed 's/^/| /' conftest.$ac_ext >&5
37410
37411ac_cv_lib_posix4_sched_yield=no
37412fi
ac1cb8d3
VS
37413rm -f conftest.err conftest.$ac_objext \
37414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37415LIBS=$ac_check_lib_save_LIBS
37416fi
37417echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37418echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37419if test $ac_cv_lib_posix4_sched_yield = yes; then
37420 cat >>confdefs.h <<\_ACEOF
37421#define HAVE_SCHED_YIELD 1
37422_ACEOF
37423 POSIX4_LINK=" -lposix4"
37424else
37425 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37426echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37427
37428fi
37429
37430
37431
37432fi
37433
37434 fi
37435
37436 HAVE_PRIOR_FUNCS=0
37437 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37438echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37439if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37440 echo $ECHO_N "(cached) $ECHO_C" >&6
37441else
37442 cat >conftest.$ac_ext <<_ACEOF
37443/* confdefs.h. */
37444_ACEOF
37445cat confdefs.h >>conftest.$ac_ext
37446cat >>conftest.$ac_ext <<_ACEOF
37447/* end confdefs.h. */
ac1cb8d3
VS
37448/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37450#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37451
a848cd7e
SC
37452/* System header to define __stub macros and hopefully few prototypes,
37453 which can conflict with char pthread_attr_getschedpolicy (); below.
37454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37456
a848cd7e
SC
37457#ifdef __STDC__
37458# include <limits.h>
37459#else
37460# include <assert.h>
37461#endif
ac1cb8d3
VS
37462
37463#undef pthread_attr_getschedpolicy
37464
a848cd7e
SC
37465/* Override any gcc2 internal prototype to avoid an error. */
37466#ifdef __cplusplus
37467extern "C"
37468{
37469#endif
37470/* We use char because int might match the return type of a gcc2
37471 builtin and then its argument prototype would still apply. */
37472char pthread_attr_getschedpolicy ();
37473/* The GNU C library defines this for functions which it implements
37474 to always fail with ENOSYS. Some functions are actually named
37475 something starting with __ and the normal name is an alias. */
37476#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37477choke me
37478#else
37479char (*f) () = pthread_attr_getschedpolicy;
37480#endif
37481#ifdef __cplusplus
37482}
37483#endif
37484
37485int
37486main ()
37487{
37488return f != pthread_attr_getschedpolicy;
37489 ;
37490 return 0;
37491}
37492_ACEOF
37493rm -f conftest.$ac_objext conftest$ac_exeext
37494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37495 (eval $ac_link) 2>conftest.er1
a848cd7e 37496 ac_status=$?
ac1cb8d3
VS
37497 grep -v '^ *+' conftest.er1 >conftest.err
37498 rm -f conftest.er1
37499 cat conftest.err >&5
a848cd7e
SC
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); } &&
be665c07
JS
37502 { ac_try='test -z "$ac_c_werror_flag"
37503 || test ! -s conftest.err'
ac1cb8d3
VS
37504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37505 (eval $ac_try) 2>&5
37506 ac_status=$?
37507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508 (exit $ac_status); }; } &&
37509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37511 (eval $ac_try) 2>&5
37512 ac_status=$?
37513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514 (exit $ac_status); }; }; then
37515 ac_cv_func_pthread_attr_getschedpolicy=yes
37516else
37517 echo "$as_me: failed program was:" >&5
37518sed 's/^/| /' conftest.$ac_ext >&5
37519
37520ac_cv_func_pthread_attr_getschedpolicy=no
37521fi
ac1cb8d3
VS
37522rm -f conftest.err conftest.$ac_objext \
37523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37524fi
37525echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37526echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37527if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37528 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37529echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37530if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37531 echo $ECHO_N "(cached) $ECHO_C" >&6
37532else
37533 cat >conftest.$ac_ext <<_ACEOF
37534/* confdefs.h. */
37535_ACEOF
37536cat confdefs.h >>conftest.$ac_ext
37537cat >>conftest.$ac_ext <<_ACEOF
37538/* end confdefs.h. */
ac1cb8d3
VS
37539/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37541#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37542
a848cd7e
SC
37543/* System header to define __stub macros and hopefully few prototypes,
37544 which can conflict with char pthread_attr_setschedparam (); below.
37545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37546 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37547
a848cd7e
SC
37548#ifdef __STDC__
37549# include <limits.h>
37550#else
37551# include <assert.h>
37552#endif
ac1cb8d3
VS
37553
37554#undef pthread_attr_setschedparam
37555
a848cd7e
SC
37556/* Override any gcc2 internal prototype to avoid an error. */
37557#ifdef __cplusplus
37558extern "C"
37559{
37560#endif
37561/* We use char because int might match the return type of a gcc2
37562 builtin and then its argument prototype would still apply. */
37563char pthread_attr_setschedparam ();
37564/* The GNU C library defines this for functions which it implements
37565 to always fail with ENOSYS. Some functions are actually named
37566 something starting with __ and the normal name is an alias. */
37567#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37568choke me
37569#else
37570char (*f) () = pthread_attr_setschedparam;
37571#endif
37572#ifdef __cplusplus
37573}
37574#endif
37575
37576int
37577main ()
37578{
37579return f != pthread_attr_setschedparam;
37580 ;
37581 return 0;
37582}
37583_ACEOF
37584rm -f conftest.$ac_objext conftest$ac_exeext
37585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37586 (eval $ac_link) 2>conftest.er1
a848cd7e 37587 ac_status=$?
ac1cb8d3
VS
37588 grep -v '^ *+' conftest.er1 >conftest.err
37589 rm -f conftest.er1
37590 cat conftest.err >&5
a848cd7e
SC
37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); } &&
be665c07
JS
37593 { ac_try='test -z "$ac_c_werror_flag"
37594 || test ! -s conftest.err'
ac1cb8d3
VS
37595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37596 (eval $ac_try) 2>&5
37597 ac_status=$?
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); }; } &&
37600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; }; then
37606 ac_cv_func_pthread_attr_setschedparam=yes
37607else
37608 echo "$as_me: failed program was:" >&5
37609sed 's/^/| /' conftest.$ac_ext >&5
37610
37611ac_cv_func_pthread_attr_setschedparam=no
37612fi
ac1cb8d3
VS
37613rm -f conftest.err conftest.$ac_objext \
37614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37615fi
37616echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37617echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37618if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37619 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37620echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37621if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37622 echo $ECHO_N "(cached) $ECHO_C" >&6
37623else
37624 cat >conftest.$ac_ext <<_ACEOF
37625/* confdefs.h. */
37626_ACEOF
37627cat confdefs.h >>conftest.$ac_ext
37628cat >>conftest.$ac_ext <<_ACEOF
37629/* end confdefs.h. */
ac1cb8d3
VS
37630/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37632#define sched_get_priority_max innocuous_sched_get_priority_max
37633
a848cd7e
SC
37634/* System header to define __stub macros and hopefully few prototypes,
37635 which can conflict with char sched_get_priority_max (); below.
37636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37637 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37638
a848cd7e
SC
37639#ifdef __STDC__
37640# include <limits.h>
37641#else
37642# include <assert.h>
37643#endif
ac1cb8d3
VS
37644
37645#undef sched_get_priority_max
37646
a848cd7e
SC
37647/* Override any gcc2 internal prototype to avoid an error. */
37648#ifdef __cplusplus
37649extern "C"
37650{
37651#endif
37652/* We use char because int might match the return type of a gcc2
37653 builtin and then its argument prototype would still apply. */
37654char sched_get_priority_max ();
37655/* The GNU C library defines this for functions which it implements
37656 to always fail with ENOSYS. Some functions are actually named
37657 something starting with __ and the normal name is an alias. */
37658#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37659choke me
37660#else
37661char (*f) () = sched_get_priority_max;
37662#endif
37663#ifdef __cplusplus
37664}
37665#endif
37666
37667int
37668main ()
37669{
37670return f != sched_get_priority_max;
37671 ;
37672 return 0;
37673}
37674_ACEOF
37675rm -f conftest.$ac_objext conftest$ac_exeext
37676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37677 (eval $ac_link) 2>conftest.er1
a848cd7e 37678 ac_status=$?
ac1cb8d3
VS
37679 grep -v '^ *+' conftest.er1 >conftest.err
37680 rm -f conftest.er1
37681 cat conftest.err >&5
a848cd7e
SC
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); } &&
be665c07
JS
37684 { ac_try='test -z "$ac_c_werror_flag"
37685 || test ! -s conftest.err'
ac1cb8d3
VS
37686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37687 (eval $ac_try) 2>&5
37688 ac_status=$?
37689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690 (exit $ac_status); }; } &&
37691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37693 (eval $ac_try) 2>&5
37694 ac_status=$?
37695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696 (exit $ac_status); }; }; then
37697 ac_cv_func_sched_get_priority_max=yes
37698else
37699 echo "$as_me: failed program was:" >&5
37700sed 's/^/| /' conftest.$ac_ext >&5
37701
37702ac_cv_func_sched_get_priority_max=no
37703fi
ac1cb8d3
VS
37704rm -f conftest.err conftest.$ac_objext \
37705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37706fi
37707echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37708echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37709if test $ac_cv_func_sched_get_priority_max = yes; then
37710 HAVE_PRIOR_FUNCS=1
37711else
37712 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37713echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37714if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37716else
37717 ac_check_lib_save_LIBS=$LIBS
37718LIBS="-lposix4 $LIBS"
37719cat >conftest.$ac_ext <<_ACEOF
37720/* confdefs.h. */
37721_ACEOF
37722cat confdefs.h >>conftest.$ac_ext
37723cat >>conftest.$ac_ext <<_ACEOF
37724/* end confdefs.h. */
37725
37726/* Override any gcc2 internal prototype to avoid an error. */
37727#ifdef __cplusplus
37728extern "C"
37729#endif
37730/* We use char because int might match the return type of a gcc2
37731 builtin and then its argument prototype would still apply. */
37732char sched_get_priority_max ();
37733int
37734main ()
37735{
37736sched_get_priority_max ();
37737 ;
37738 return 0;
37739}
37740_ACEOF
37741rm -f conftest.$ac_objext conftest$ac_exeext
37742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37743 (eval $ac_link) 2>conftest.er1
a848cd7e 37744 ac_status=$?
ac1cb8d3
VS
37745 grep -v '^ *+' conftest.er1 >conftest.err
37746 rm -f conftest.er1
37747 cat conftest.err >&5
a848cd7e
SC
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); } &&
be665c07
JS
37750 { ac_try='test -z "$ac_c_werror_flag"
37751 || test ! -s conftest.err'
ac1cb8d3
VS
37752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37753 (eval $ac_try) 2>&5
37754 ac_status=$?
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); }; } &&
37757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37760 ac_status=$?
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; }; then
37763 ac_cv_lib_posix4_sched_get_priority_max=yes
37764else
37765 echo "$as_me: failed program was:" >&5
37766sed 's/^/| /' conftest.$ac_ext >&5
37767
37768ac_cv_lib_posix4_sched_get_priority_max=no
37769fi
ac1cb8d3
VS
37770rm -f conftest.err conftest.$ac_objext \
37771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37772LIBS=$ac_check_lib_save_LIBS
37773fi
37774echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37775echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37776if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37777
37778 HAVE_PRIOR_FUNCS=1
37779 POSIX4_LINK=" -lposix4"
37780
37781fi
37782
37783
37784fi
37785
37786
37787fi
37788
37789
37790fi
37791
37792
37793 if test "$HAVE_PRIOR_FUNCS" = 1; then
37794 cat >>confdefs.h <<\_ACEOF
37795#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37796_ACEOF
37797
37798 else
37799 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37800echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37801 fi
37802
37803 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37804echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37805if test "${ac_cv_func_pthread_cancel+set}" = set; then
37806 echo $ECHO_N "(cached) $ECHO_C" >&6
37807else
37808 cat >conftest.$ac_ext <<_ACEOF
37809/* confdefs.h. */
37810_ACEOF
37811cat confdefs.h >>conftest.$ac_ext
37812cat >>conftest.$ac_ext <<_ACEOF
37813/* end confdefs.h. */
ac1cb8d3
VS
37814/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37816#define pthread_cancel innocuous_pthread_cancel
37817
a848cd7e
SC
37818/* System header to define __stub macros and hopefully few prototypes,
37819 which can conflict with char pthread_cancel (); below.
37820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37821 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37822
a848cd7e
SC
37823#ifdef __STDC__
37824# include <limits.h>
37825#else
37826# include <assert.h>
37827#endif
ac1cb8d3
VS
37828
37829#undef pthread_cancel
37830
a848cd7e
SC
37831/* Override any gcc2 internal prototype to avoid an error. */
37832#ifdef __cplusplus
37833extern "C"
37834{
37835#endif
37836/* We use char because int might match the return type of a gcc2
37837 builtin and then its argument prototype would still apply. */
37838char pthread_cancel ();
37839/* The GNU C library defines this for functions which it implements
37840 to always fail with ENOSYS. Some functions are actually named
37841 something starting with __ and the normal name is an alias. */
37842#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37843choke me
37844#else
37845char (*f) () = pthread_cancel;
37846#endif
37847#ifdef __cplusplus
37848}
37849#endif
37850
37851int
37852main ()
37853{
37854return f != pthread_cancel;
37855 ;
37856 return 0;
37857}
37858_ACEOF
37859rm -f conftest.$ac_objext conftest$ac_exeext
37860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37861 (eval $ac_link) 2>conftest.er1
a848cd7e 37862 ac_status=$?
ac1cb8d3
VS
37863 grep -v '^ *+' conftest.er1 >conftest.err
37864 rm -f conftest.er1
37865 cat conftest.err >&5
a848cd7e
SC
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); } &&
be665c07
JS
37868 { ac_try='test -z "$ac_c_werror_flag"
37869 || test ! -s conftest.err'
ac1cb8d3
VS
37870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37871 (eval $ac_try) 2>&5
37872 ac_status=$?
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); }; } &&
37875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37878 ac_status=$?
37879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; }; then
37881 ac_cv_func_pthread_cancel=yes
37882else
37883 echo "$as_me: failed program was:" >&5
37884sed 's/^/| /' conftest.$ac_ext >&5
37885
37886ac_cv_func_pthread_cancel=no
37887fi
ac1cb8d3
VS
37888rm -f conftest.err conftest.$ac_objext \
37889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37890fi
37891echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37892echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37893if test $ac_cv_func_pthread_cancel = yes; then
37894 cat >>confdefs.h <<\_ACEOF
37895#define HAVE_PTHREAD_CANCEL 1
37896_ACEOF
37897
37898else
37899 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37900echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37901fi
37902
37903
abc736fd
MW
37904 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37905echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37906if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37907 echo $ECHO_N "(cached) $ECHO_C" >&6
37908else
37909 cat >conftest.$ac_ext <<_ACEOF
37910/* confdefs.h. */
37911_ACEOF
37912cat confdefs.h >>conftest.$ac_ext
37913cat >>conftest.$ac_ext <<_ACEOF
37914/* end confdefs.h. */
37915/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37917#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37918
37919/* System header to define __stub macros and hopefully few prototypes,
37920 which can conflict with char pthread_attr_setstacksize (); below.
37921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37922 <limits.h> exists even on freestanding compilers. */
37923
37924#ifdef __STDC__
37925# include <limits.h>
37926#else
37927# include <assert.h>
37928#endif
37929
37930#undef pthread_attr_setstacksize
37931
37932/* Override any gcc2 internal prototype to avoid an error. */
37933#ifdef __cplusplus
37934extern "C"
37935{
37936#endif
37937/* We use char because int might match the return type of a gcc2
37938 builtin and then its argument prototype would still apply. */
37939char pthread_attr_setstacksize ();
37940/* The GNU C library defines this for functions which it implements
37941 to always fail with ENOSYS. Some functions are actually named
37942 something starting with __ and the normal name is an alias. */
37943#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37944choke me
37945#else
37946char (*f) () = pthread_attr_setstacksize;
37947#endif
37948#ifdef __cplusplus
37949}
37950#endif
37951
37952int
37953main ()
37954{
37955return f != pthread_attr_setstacksize;
37956 ;
37957 return 0;
37958}
37959_ACEOF
37960rm -f conftest.$ac_objext conftest$ac_exeext
37961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37962 (eval $ac_link) 2>conftest.er1
37963 ac_status=$?
37964 grep -v '^ *+' conftest.er1 >conftest.err
37965 rm -f conftest.er1
37966 cat conftest.err >&5
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); } &&
be665c07
JS
37969 { ac_try='test -z "$ac_c_werror_flag"
37970 || test ! -s conftest.err'
abc736fd
MW
37971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37972 (eval $ac_try) 2>&5
37973 ac_status=$?
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); }; } &&
37976 { ac_try='test -s conftest$ac_exeext'
37977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37978 (eval $ac_try) 2>&5
37979 ac_status=$?
37980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981 (exit $ac_status); }; }; then
37982 ac_cv_func_pthread_attr_setstacksize=yes
37983else
37984 echo "$as_me: failed program was:" >&5
37985sed 's/^/| /' conftest.$ac_ext >&5
37986
37987ac_cv_func_pthread_attr_setstacksize=no
37988fi
37989rm -f conftest.err conftest.$ac_objext \
37990 conftest$ac_exeext conftest.$ac_ext
37991fi
37992echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37993echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37994if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37995 cat >>confdefs.h <<\_ACEOF
37996#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37997_ACEOF
37998
37999fi
38000
a848cd7e
SC
38001
38002
38003 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38004echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38005if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38006 echo $ECHO_N "(cached) $ECHO_C" >&6
38007else
38008
38009 cat >conftest.$ac_ext <<_ACEOF
38010/* confdefs.h. */
38011_ACEOF
38012cat confdefs.h >>conftest.$ac_ext
38013cat >>conftest.$ac_ext <<_ACEOF
38014/* end confdefs.h. */
38015#include <pthread.h>
38016int
38017main ()
38018{
38019
38020 pthread_mutexattr_t attr;
38021 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38022
38023 ;
38024 return 0;
38025}
38026_ACEOF
38027rm -f conftest.$ac_objext
38028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38029 (eval $ac_compile) 2>conftest.er1
a848cd7e 38030 ac_status=$?
ac1cb8d3
VS
38031 grep -v '^ *+' conftest.er1 >conftest.err
38032 rm -f conftest.er1
38033 cat conftest.err >&5
a848cd7e
SC
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); } &&
be665c07
JS
38036 { ac_try='test -z "$ac_c_werror_flag"
38037 || test ! -s conftest.err'
ac1cb8d3
VS
38038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039 (eval $ac_try) 2>&5
38040 ac_status=$?
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); }; } &&
38043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045 (eval $ac_try) 2>&5
38046 ac_status=$?
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); }; }; then
123dca7d 38049 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38050else
38051 echo "$as_me: failed program was:" >&5
38052sed 's/^/| /' conftest.$ac_ext >&5
38053
123dca7d 38054wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38055
38056fi
ac1cb8d3 38057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38058
38059fi
38060echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38061echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38062
38063 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38064 cat >>confdefs.h <<\_ACEOF
38065#define HAVE_PTHREAD_MUTEXATTR_T 1
38066_ACEOF
38067
123dca7d
VZ
38068
38069 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38070echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38071if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38072 echo $ECHO_N "(cached) $ECHO_C" >&6
38073else
38074
38075 cat >conftest.$ac_ext <<_ACEOF
38076/* confdefs.h. */
38077_ACEOF
38078cat confdefs.h >>conftest.$ac_ext
38079cat >>conftest.$ac_ext <<_ACEOF
38080/* end confdefs.h. */
38081#include <pthread.h>
38082int
38083main ()
38084{
38085
38086 pthread_mutexattr_t attr;
38087 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38088
38089 ;
38090 return 0;
38091}
38092_ACEOF
38093rm -f conftest.$ac_objext
38094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38095 (eval $ac_compile) 2>conftest.er1
38096 ac_status=$?
38097 grep -v '^ *+' conftest.er1 >conftest.err
38098 rm -f conftest.er1
38099 cat conftest.err >&5
38100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); } &&
be665c07
JS
38102 { ac_try='test -z "$ac_c_werror_flag"
38103 || test ! -s conftest.err'
123dca7d
VZ
38104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105 (eval $ac_try) 2>&5
38106 ac_status=$?
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); }; } &&
38109 { ac_try='test -s conftest.$ac_objext'
38110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38111 (eval $ac_try) 2>&5
38112 ac_status=$?
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); }; }; then
38115 wx_cv_func_pthread_mutexattr_settype_decl=yes
38116else
38117 echo "$as_me: failed program was:" >&5
38118sed 's/^/| /' conftest.$ac_ext >&5
38119
38120wx_cv_func_pthread_mutexattr_settype_decl=no
38121
38122fi
38123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38124
38125fi
38126echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38127echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38128 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38129 cat >>confdefs.h <<\_ACEOF
38130#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38131_ACEOF
38132
38133 fi
a848cd7e
SC
38134 else
38135 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38136echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38137if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38138 echo $ECHO_N "(cached) $ECHO_C" >&6
38139else
38140
38141 cat >conftest.$ac_ext <<_ACEOF
38142/* confdefs.h. */
38143_ACEOF
38144cat confdefs.h >>conftest.$ac_ext
38145cat >>conftest.$ac_ext <<_ACEOF
38146/* end confdefs.h. */
38147#include <pthread.h>
38148int
38149main ()
38150{
38151
38152 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38153
38154 ;
38155 return 0;
38156}
38157_ACEOF
38158rm -f conftest.$ac_objext
38159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38160 (eval $ac_compile) 2>conftest.er1
a848cd7e 38161 ac_status=$?
ac1cb8d3
VS
38162 grep -v '^ *+' conftest.er1 >conftest.err
38163 rm -f conftest.er1
38164 cat conftest.err >&5
a848cd7e
SC
38165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166 (exit $ac_status); } &&
be665c07
JS
38167 { ac_try='test -z "$ac_c_werror_flag"
38168 || test ! -s conftest.err'
ac1cb8d3
VS
38169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38170 (eval $ac_try) 2>&5
38171 ac_status=$?
38172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38173 (exit $ac_status); }; } &&
38174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38176 (eval $ac_try) 2>&5
38177 ac_status=$?
38178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179 (exit $ac_status); }; }; then
38180
38181 wx_cv_type_pthread_rec_mutex_init=yes
38182
38183else
38184 echo "$as_me: failed program was:" >&5
38185sed 's/^/| /' conftest.$ac_ext >&5
38186
38187
38188 wx_cv_type_pthread_rec_mutex_init=no
38189
38190
38191fi
ac1cb8d3 38192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38193
38194fi
38195echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38196echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38197 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38198 cat >>confdefs.h <<\_ACEOF
38199#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38200_ACEOF
38201
38202 else
38203 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38204echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38205 fi
38206 fi
38207 fi
38208
38209else
38210 if test "$wxUSE_THREADS" = "yes" ; then
38211 case "${host}" in
38212 *-*-mingw32* )
38213 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38214echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38215if test "${wx_cv_cflags_mthread+set}" = set; then
38216 echo $ECHO_N "(cached) $ECHO_C" >&6
38217else
38218
38219 CFLAGS_OLD="$CFLAGS"
38220 CFLAGS="$CFLAGS -mthreads"
38221 cat >conftest.$ac_ext <<_ACEOF
38222/* confdefs.h. */
38223_ACEOF
38224cat confdefs.h >>conftest.$ac_ext
38225cat >>conftest.$ac_ext <<_ACEOF
38226/* end confdefs.h. */
38227
38228int
38229main ()
38230{
38231
38232 ;
38233 return 0;
38234}
38235_ACEOF
38236rm -f conftest.$ac_objext
38237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38238 (eval $ac_compile) 2>conftest.er1
a848cd7e 38239 ac_status=$?
ac1cb8d3
VS
38240 grep -v '^ *+' conftest.er1 >conftest.err
38241 rm -f conftest.er1
38242 cat conftest.err >&5
a848cd7e
SC
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); } &&
be665c07
JS
38245 { ac_try='test -z "$ac_c_werror_flag"
38246 || test ! -s conftest.err'
ac1cb8d3
VS
38247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38248 (eval $ac_try) 2>&5
38249 ac_status=$?
38250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251 (exit $ac_status); }; } &&
38252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254 (eval $ac_try) 2>&5
38255 ac_status=$?
38256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); }; }; then
38258 wx_cv_cflags_mthread=yes
38259else
38260 echo "$as_me: failed program was:" >&5
38261sed 's/^/| /' conftest.$ac_ext >&5
38262
38263wx_cv_cflags_mthread=no
38264
38265fi
ac1cb8d3 38266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38267
38268
38269fi
38270echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38271echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38272
38273 if test "$wx_cv_cflags_mthread" = "yes"; then
38274 CXXFLAGS="$CXXFLAGS -mthreads"
38275 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
38276 LDFLAGS="$LDFLAGS -mthreads"
38277 else
38278 CFLAGS="$CFLAGS_OLD"
38279 fi
38280 ;;
38281 *-pc-os2*emx )
38282 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
38283 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
38284 LDFLAGS="$LDFLAGS -Zmt"
38285 ;;
38286 esac
38287 fi
38288fi
38289
38290if test "$wxUSE_THREADS" = "yes"; then
38291 cat >>confdefs.h <<\_ACEOF
38292#define wxUSE_THREADS 1
38293_ACEOF
38294
38295
38296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
38297else
38298 if test "$ac_cv_func_strtok_r" = "yes"; then
38299 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
38300echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
38301 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
38302 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
38303 echo "$as_me:$LINENO: result: yes" >&5
38304echo "${ECHO_T}yes" >&6
38305 else
38306 echo "$as_me:$LINENO: result: no" >&5
38307echo "${ECHO_T}no" >&6
38308 fi
38309 fi
38310fi
38311
38312if test "$WXGTK20" = 1 ; then
38313 cat >>confdefs.h <<_ACEOF
38314#define __WXGTK20__ $WXGTK20
38315_ACEOF
38316
38317 WXGTK12=1
38318fi
38319
38320if test "$WXGTK12" = 1 ; then
38321 cat >>confdefs.h <<_ACEOF
38322#define __WXGTK12__ $WXGTK12
38323_ACEOF
38324
38325fi
38326
38327if test "$WXGTK127" = 1 ; then
38328 cat >>confdefs.h <<_ACEOF
38329#define __WXGTK127__ $WXGTK127
38330_ACEOF
38331
38332fi
38333
38334if test "$WXGPE" = 1 ; then
38335 cat >>confdefs.h <<_ACEOF
38336#define __WXGPE__ $WXGPE
38337_ACEOF
38338
38339fi
38340
38341WXDEBUG=
38342
38343if test "$wxUSE_DEBUG_INFO" = "yes" ; then
38344 WXDEBUG="-g"
38345 wxUSE_OPTIMISE=no
38346fi
38347
38348if test "$wxUSE_DEBUG_GDB" = "yes" ; then
38349 wxUSE_DEBUG_INFO=yes
18228ab4
MW
38350 if test "$GCC" = yes; then
38351 WXDEBUG="-ggdb"
38352 fi
a848cd7e
SC
38353fi
38354
38355if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
38356 cat >>confdefs.h <<\_ACEOF
38357#define WXDEBUG 1
38358_ACEOF
38359
38360 WXDEBUG_DEFINE="-D__WXDEBUG__"
38361else
38362 if test "$wxUSE_GTK" = 1 ; then
38363 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
38364 fi
38365fi
38366
38367if test "$wxUSE_MEM_TRACING" = "yes" ; then
38368 cat >>confdefs.h <<\_ACEOF
38369#define wxUSE_MEMORY_TRACING 1
38370_ACEOF
38371
38372 cat >>confdefs.h <<\_ACEOF
38373#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38374_ACEOF
38375
38376 cat >>confdefs.h <<\_ACEOF
38377#define wxUSE_DEBUG_NEW_ALWAYS 1
38378_ACEOF
38379
38380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38381fi
38382
38383if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 38384 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
38385fi
38386
38387PROFILE=
38388if test "$wxUSE_PROFILE" = "yes" ; then
38389 PROFILE=" -pg"
38390fi
38391
38392CODE_GEN_FLAGS=
38393CODE_GEN_FLAGS_CXX=
38394if test "$GCC" = "yes" ; then
38395 if test "$wxUSE_NO_RTTI" = "yes" ; then
38396 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
38397 fi
38398 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38399 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
38400 fi
38401 if test "$wxUSE_PERMISSIVE" = "yes" ; then
38402 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
38403 fi
38404
38405 case "${host}" in
38406 powerpc*-*-aix* )
38407 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
38408 ;;
38409 *-hppa* )
38410 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
38411 ;;
38412 esac
38413fi
38414
38415OPTIMISE=
38416if test "$wxUSE_OPTIMISE" = "no" ; then
38417 if test "$GCC" = yes ; then
38418 OPTIMISE="-O0"
38419 fi
38420else
38421 if test "$GCC" = yes ; then
38422 OPTIMISE="-O2"
38423
38424 case "${host}" in
38425 i586-*-*|i686-*-* )
38426 OPTIMISE="${OPTIMISE} "
38427 ;;
38428 esac
38429 else
38430 OPTIMISE="-O"
38431 fi
38432fi
38433
38434
dee1a63f 38435if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
a848cd7e 38436 cat >>confdefs.h <<\_ACEOF
dee1a63f 38437#define WXWIN_COMPATIBILITY_2_4 1
a848cd7e
SC
38438_ACEOF
38439
38440
dee1a63f 38441 WXWIN_COMPATIBILITY_2_6="yes"
a848cd7e
SC
38442fi
38443
dee1a63f 38444if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
a848cd7e 38445 cat >>confdefs.h <<\_ACEOF
dee1a63f 38446#define WXWIN_COMPATIBILITY_2_6 1
a848cd7e
SC
38447_ACEOF
38448
38449fi
38450
38451
38452if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38453 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38454#define wxUSE_GUI 1
38455_ACEOF
38456
38457
370fd4c2 38458 fi
a848cd7e
SC
38459
38460
38461if test "$wxUSE_UNIX" = "yes"; then
38462 cat >>confdefs.h <<\_ACEOF
38463#define wxUSE_UNIX 1
38464_ACEOF
38465
38466fi
38467
38468
38469if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38470
38471 HAVE_DL_FUNCS=0
38472 HAVE_SHL_FUNCS=0
38473 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38474 if test "$USE_DARWIN" = 1; then
38475 HAVE_DL_FUNCS=1
47a7e797
MW
38476 elif test "$USE_DOS" = 1; then
38477 HAVE_DL_FUNCS=0
a848cd7e
SC
38478 else
38479
38480for ac_func in dlopen
38481do
38482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38483echo "$as_me:$LINENO: checking for $ac_func" >&5
38484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38485if eval "test \"\${$as_ac_var+set}\" = set"; then
38486 echo $ECHO_N "(cached) $ECHO_C" >&6
38487else
38488 cat >conftest.$ac_ext <<_ACEOF
38489/* confdefs.h. */
38490_ACEOF
38491cat confdefs.h >>conftest.$ac_ext
38492cat >>conftest.$ac_ext <<_ACEOF
38493/* end confdefs.h. */
ac1cb8d3
VS
38494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38496#define $ac_func innocuous_$ac_func
38497
a848cd7e
SC
38498/* System header to define __stub macros and hopefully few prototypes,
38499 which can conflict with char $ac_func (); below.
38500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38501 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38502
a848cd7e
SC
38503#ifdef __STDC__
38504# include <limits.h>
38505#else
38506# include <assert.h>
38507#endif
ac1cb8d3
VS
38508
38509#undef $ac_func
38510
a848cd7e
SC
38511/* Override any gcc2 internal prototype to avoid an error. */
38512#ifdef __cplusplus
38513extern "C"
38514{
38515#endif
38516/* We use char because int might match the return type of a gcc2
38517 builtin and then its argument prototype would still apply. */
38518char $ac_func ();
38519/* The GNU C library defines this for functions which it implements
38520 to always fail with ENOSYS. Some functions are actually named
38521 something starting with __ and the normal name is an alias. */
38522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38523choke me
38524#else
38525char (*f) () = $ac_func;
38526#endif
38527#ifdef __cplusplus
38528}
38529#endif
38530
38531int
38532main ()
38533{
38534return f != $ac_func;
38535 ;
38536 return 0;
38537}
38538_ACEOF
38539rm -f conftest.$ac_objext conftest$ac_exeext
38540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38541 (eval $ac_link) 2>conftest.er1
a848cd7e 38542 ac_status=$?
ac1cb8d3
VS
38543 grep -v '^ *+' conftest.er1 >conftest.err
38544 rm -f conftest.er1
38545 cat conftest.err >&5
a848cd7e
SC
38546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38547 (exit $ac_status); } &&
be665c07
JS
38548 { ac_try='test -z "$ac_c_werror_flag"
38549 || test ! -s conftest.err'
ac1cb8d3
VS
38550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38551 (eval $ac_try) 2>&5
38552 ac_status=$?
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); }; } &&
38555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38557 (eval $ac_try) 2>&5
38558 ac_status=$?
38559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); }; }; then
38561 eval "$as_ac_var=yes"
38562else
38563 echo "$as_me: failed program was:" >&5
38564sed 's/^/| /' conftest.$ac_ext >&5
38565
38566eval "$as_ac_var=no"
38567fi
ac1cb8d3
VS
38568rm -f conftest.err conftest.$ac_objext \
38569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38570fi
38571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38573if test `eval echo '${'$as_ac_var'}'` = yes; then
38574 cat >>confdefs.h <<_ACEOF
38575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38576_ACEOF
38577
38578 cat >>confdefs.h <<\_ACEOF
38579#define HAVE_DLOPEN 1
38580_ACEOF
38581
38582 HAVE_DL_FUNCS=1
38583
38584else
38585
38586 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38587echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38588if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38589 echo $ECHO_N "(cached) $ECHO_C" >&6
38590else
38591 ac_check_lib_save_LIBS=$LIBS
38592LIBS="-ldl $LIBS"
38593cat >conftest.$ac_ext <<_ACEOF
38594/* confdefs.h. */
38595_ACEOF
38596cat confdefs.h >>conftest.$ac_ext
38597cat >>conftest.$ac_ext <<_ACEOF
38598/* end confdefs.h. */
38599
38600/* Override any gcc2 internal prototype to avoid an error. */
38601#ifdef __cplusplus
38602extern "C"
38603#endif
38604/* We use char because int might match the return type of a gcc2
38605 builtin and then its argument prototype would still apply. */
38606char dlopen ();
38607int
38608main ()
38609{
38610dlopen ();
38611 ;
38612 return 0;
38613}
38614_ACEOF
38615rm -f conftest.$ac_objext conftest$ac_exeext
38616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38617 (eval $ac_link) 2>conftest.er1
a848cd7e 38618 ac_status=$?
ac1cb8d3
VS
38619 grep -v '^ *+' conftest.er1 >conftest.err
38620 rm -f conftest.er1
38621 cat conftest.err >&5
a848cd7e
SC
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } &&
be665c07
JS
38624 { ac_try='test -z "$ac_c_werror_flag"
38625 || test ! -s conftest.err'
ac1cb8d3
VS
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; } &&
38631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633 (eval $ac_try) 2>&5
38634 ac_status=$?
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); }; }; then
38637 ac_cv_lib_dl_dlopen=yes
38638else
38639 echo "$as_me: failed program was:" >&5
38640sed 's/^/| /' conftest.$ac_ext >&5
38641
38642ac_cv_lib_dl_dlopen=no
38643fi
ac1cb8d3
VS
38644rm -f conftest.err conftest.$ac_objext \
38645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38646LIBS=$ac_check_lib_save_LIBS
38647fi
38648echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38649echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38650if test $ac_cv_lib_dl_dlopen = yes; then
38651
38652 cat >>confdefs.h <<\_ACEOF
38653#define HAVE_DLOPEN 1
38654_ACEOF
38655
38656 HAVE_DL_FUNCS=1
38657 DL_LINK=" -ldl$DL_LINK"
38658
38659else
38660
38661
38662for ac_func in shl_load
38663do
38664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38665echo "$as_me:$LINENO: checking for $ac_func" >&5
38666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38667if eval "test \"\${$as_ac_var+set}\" = set"; then
38668 echo $ECHO_N "(cached) $ECHO_C" >&6
38669else
38670 cat >conftest.$ac_ext <<_ACEOF
38671/* confdefs.h. */
38672_ACEOF
38673cat confdefs.h >>conftest.$ac_ext
38674cat >>conftest.$ac_ext <<_ACEOF
38675/* end confdefs.h. */
ac1cb8d3
VS
38676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38678#define $ac_func innocuous_$ac_func
38679
a848cd7e
SC
38680/* System header to define __stub macros and hopefully few prototypes,
38681 which can conflict with char $ac_func (); below.
38682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38683 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38684
a848cd7e
SC
38685#ifdef __STDC__
38686# include <limits.h>
38687#else
38688# include <assert.h>
38689#endif
ac1cb8d3
VS
38690
38691#undef $ac_func
38692
a848cd7e
SC
38693/* Override any gcc2 internal prototype to avoid an error. */
38694#ifdef __cplusplus
38695extern "C"
38696{
38697#endif
38698/* We use char because int might match the return type of a gcc2
38699 builtin and then its argument prototype would still apply. */
38700char $ac_func ();
38701/* The GNU C library defines this for functions which it implements
38702 to always fail with ENOSYS. Some functions are actually named
38703 something starting with __ and the normal name is an alias. */
38704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38705choke me
38706#else
38707char (*f) () = $ac_func;
38708#endif
38709#ifdef __cplusplus
38710}
38711#endif
38712
38713int
38714main ()
38715{
38716return f != $ac_func;
38717 ;
38718 return 0;
38719}
38720_ACEOF
38721rm -f conftest.$ac_objext conftest$ac_exeext
38722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38723 (eval $ac_link) 2>conftest.er1
a848cd7e 38724 ac_status=$?
ac1cb8d3
VS
38725 grep -v '^ *+' conftest.er1 >conftest.err
38726 rm -f conftest.er1
38727 cat conftest.err >&5
a848cd7e
SC
38728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729 (exit $ac_status); } &&
be665c07
JS
38730 { ac_try='test -z "$ac_c_werror_flag"
38731 || test ! -s conftest.err'
ac1cb8d3
VS
38732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38733 (eval $ac_try) 2>&5
38734 ac_status=$?
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); }; } &&
38737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38739 (eval $ac_try) 2>&5
38740 ac_status=$?
38741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38742 (exit $ac_status); }; }; then
38743 eval "$as_ac_var=yes"
38744else
38745 echo "$as_me: failed program was:" >&5
38746sed 's/^/| /' conftest.$ac_ext >&5
38747
38748eval "$as_ac_var=no"
38749fi
ac1cb8d3
VS
38750rm -f conftest.err conftest.$ac_objext \
38751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38752fi
38753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38755if test `eval echo '${'$as_ac_var'}'` = yes; then
38756 cat >>confdefs.h <<_ACEOF
38757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38758_ACEOF
38759
38760 cat >>confdefs.h <<\_ACEOF
38761#define HAVE_SHL_LOAD 1
38762_ACEOF
38763
38764 HAVE_SHL_FUNCS=1
38765
38766else
38767
38768 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38769echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38770if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38772else
38773 ac_check_lib_save_LIBS=$LIBS
38774LIBS="-lshl_load $LIBS"
38775cat >conftest.$ac_ext <<_ACEOF
38776/* confdefs.h. */
38777_ACEOF
38778cat confdefs.h >>conftest.$ac_ext
38779cat >>conftest.$ac_ext <<_ACEOF
38780/* end confdefs.h. */
38781
38782/* Override any gcc2 internal prototype to avoid an error. */
38783#ifdef __cplusplus
38784extern "C"
38785#endif
38786/* We use char because int might match the return type of a gcc2
38787 builtin and then its argument prototype would still apply. */
38788char dld ();
38789int
38790main ()
38791{
38792dld ();
38793 ;
38794 return 0;
38795}
38796_ACEOF
38797rm -f conftest.$ac_objext conftest$ac_exeext
38798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38799 (eval $ac_link) 2>conftest.er1
a848cd7e 38800 ac_status=$?
ac1cb8d3
VS
38801 grep -v '^ *+' conftest.er1 >conftest.err
38802 rm -f conftest.er1
38803 cat conftest.err >&5
a848cd7e
SC
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); } &&
be665c07
JS
38806 { ac_try='test -z "$ac_c_werror_flag"
38807 || test ! -s conftest.err'
ac1cb8d3
VS
38808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38809 (eval $ac_try) 2>&5
38810 ac_status=$?
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); }; } &&
38813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815 (eval $ac_try) 2>&5
38816 ac_status=$?
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); }; }; then
38819 ac_cv_lib_shl_load_dld=yes
38820else
38821 echo "$as_me: failed program was:" >&5
38822sed 's/^/| /' conftest.$ac_ext >&5
38823
38824ac_cv_lib_shl_load_dld=no
38825fi
ac1cb8d3
VS
38826rm -f conftest.err conftest.$ac_objext \
38827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38828LIBS=$ac_check_lib_save_LIBS
38829fi
38830echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38831echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38832if test $ac_cv_lib_shl_load_dld = yes; then
38833
38834 HAVE_SHL_FUNCS=1
38835 DL_LINK=" -ldld$DL_LINK"
38836
38837fi
38838
38839
38840fi
38841done
38842
38843
38844fi
38845
38846
38847fi
38848done
38849
38850
38851 if test "$HAVE_DL_FUNCS" = 1; then
38852
38853for ac_func in dlerror
38854do
38855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38856echo "$as_me:$LINENO: checking for $ac_func" >&5
38857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38858if eval "test \"\${$as_ac_var+set}\" = set"; then
38859 echo $ECHO_N "(cached) $ECHO_C" >&6
38860else
38861 cat >conftest.$ac_ext <<_ACEOF
38862/* confdefs.h. */
38863_ACEOF
38864cat confdefs.h >>conftest.$ac_ext
38865cat >>conftest.$ac_ext <<_ACEOF
38866/* end confdefs.h. */
ac1cb8d3
VS
38867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38869#define $ac_func innocuous_$ac_func
38870
a848cd7e
SC
38871/* System header to define __stub macros and hopefully few prototypes,
38872 which can conflict with char $ac_func (); below.
38873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38874 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38875
a848cd7e
SC
38876#ifdef __STDC__
38877# include <limits.h>
38878#else
38879# include <assert.h>
38880#endif
ac1cb8d3
VS
38881
38882#undef $ac_func
38883
a848cd7e
SC
38884/* Override any gcc2 internal prototype to avoid an error. */
38885#ifdef __cplusplus
38886extern "C"
38887{
38888#endif
38889/* We use char because int might match the return type of a gcc2
38890 builtin and then its argument prototype would still apply. */
38891char $ac_func ();
38892/* The GNU C library defines this for functions which it implements
38893 to always fail with ENOSYS. Some functions are actually named
38894 something starting with __ and the normal name is an alias. */
38895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38896choke me
38897#else
38898char (*f) () = $ac_func;
38899#endif
38900#ifdef __cplusplus
38901}
38902#endif
38903
38904int
38905main ()
38906{
38907return f != $ac_func;
38908 ;
38909 return 0;
38910}
38911_ACEOF
38912rm -f conftest.$ac_objext conftest$ac_exeext
38913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38914 (eval $ac_link) 2>conftest.er1
a848cd7e 38915 ac_status=$?
ac1cb8d3
VS
38916 grep -v '^ *+' conftest.er1 >conftest.err
38917 rm -f conftest.er1
38918 cat conftest.err >&5
a848cd7e
SC
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); } &&
be665c07
JS
38921 { ac_try='test -z "$ac_c_werror_flag"
38922 || test ! -s conftest.err'
ac1cb8d3
VS
38923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38924 (eval $ac_try) 2>&5
38925 ac_status=$?
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); }; } &&
38928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38930 (eval $ac_try) 2>&5
38931 ac_status=$?
38932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 (exit $ac_status); }; }; then
38934 eval "$as_ac_var=yes"
38935else
38936 echo "$as_me: failed program was:" >&5
38937sed 's/^/| /' conftest.$ac_ext >&5
38938
38939eval "$as_ac_var=no"
38940fi
ac1cb8d3
VS
38941rm -f conftest.err conftest.$ac_objext \
38942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38943fi
38944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38946if test `eval echo '${'$as_ac_var'}'` = yes; then
38947 cat >>confdefs.h <<_ACEOF
38948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38949_ACEOF
38950 cat >>confdefs.h <<\_ACEOF
38951#define HAVE_DLERROR 1
38952_ACEOF
38953
38954else
38955
38956 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38957echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38958if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38959 echo $ECHO_N "(cached) $ECHO_C" >&6
38960else
38961 ac_check_lib_save_LIBS=$LIBS
38962LIBS="-ldl $LIBS"
38963cat >conftest.$ac_ext <<_ACEOF
38964/* confdefs.h. */
38965_ACEOF
38966cat confdefs.h >>conftest.$ac_ext
38967cat >>conftest.$ac_ext <<_ACEOF
38968/* end confdefs.h. */
38969
38970/* Override any gcc2 internal prototype to avoid an error. */
38971#ifdef __cplusplus
38972extern "C"
38973#endif
38974/* We use char because int might match the return type of a gcc2
38975 builtin and then its argument prototype would still apply. */
38976char dlerror ();
38977int
38978main ()
38979{
38980dlerror ();
38981 ;
38982 return 0;
38983}
38984_ACEOF
38985rm -f conftest.$ac_objext conftest$ac_exeext
38986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38987 (eval $ac_link) 2>conftest.er1
a848cd7e 38988 ac_status=$?
ac1cb8d3
VS
38989 grep -v '^ *+' conftest.er1 >conftest.err
38990 rm -f conftest.er1
38991 cat conftest.err >&5
a848cd7e
SC
38992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993 (exit $ac_status); } &&
be665c07
JS
38994 { ac_try='test -z "$ac_c_werror_flag"
38995 || test ! -s conftest.err'
ac1cb8d3
VS
38996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38997 (eval $ac_try) 2>&5
38998 ac_status=$?
38999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39000 (exit $ac_status); }; } &&
39001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39003 (eval $ac_try) 2>&5
39004 ac_status=$?
39005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39006 (exit $ac_status); }; }; then
39007 ac_cv_lib_dl_dlerror=yes
39008else
39009 echo "$as_me: failed program was:" >&5
39010sed 's/^/| /' conftest.$ac_ext >&5
39011
39012ac_cv_lib_dl_dlerror=no
39013fi
ac1cb8d3
VS
39014rm -f conftest.err conftest.$ac_objext \
39015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39016LIBS=$ac_check_lib_save_LIBS
39017fi
39018echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
39019echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
39020if test $ac_cv_lib_dl_dlerror = yes; then
39021 cat >>confdefs.h <<\_ACEOF
39022#define HAVE_DLERROR 1
39023_ACEOF
39024
39025fi
39026
39027
39028
39029fi
39030done
39031
39032 fi
39033 fi
39034
39035 if test "$HAVE_DL_FUNCS" = 0; then
39036 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 39037 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
39038 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
39039echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
39040 wxUSE_DYNAMIC_LOADER=no
39041 wxUSE_DYNLIB_CLASS=no
39042 else
39043 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
39044echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
39045 fi
39046 fi
39047 fi
39048 fi
39049fi
39050
39051if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
39052 cat >>confdefs.h <<\_ACEOF
39053#define wxUSE_DYNAMIC_LOADER 1
39054_ACEOF
39055
39056fi
39057if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39058 cat >>confdefs.h <<\_ACEOF
39059#define wxUSE_DYNLIB_CLASS 1
39060_ACEOF
39061
39062fi
39063
39064
39065
39066if test "$wxUSE_PLUGINS" = "yes" ; then
39067 if test "$wxUSE_SHARED" = "no" ; then
39068 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
39069echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
39070 wxUSE_PLUGINS=no
39071 fi
39072 if test "$wxUSE_MONOLITHIC" = "yes" ; then
39073 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
39074echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
39075 wxUSE_PLUGINS=no
39076 fi
39077 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
39078 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
39079echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
39080 wxUSE_PLUGINS=no
39081 fi
39082 if test "$wxUSE_PLUGINS" = "yes" ; then
39083 cat >>confdefs.h <<\_ACEOF
39084#define wxUSE_PLUGINS 1
39085_ACEOF
39086
39087 fi
39088fi
39089
39090
39091if test "$wxUSE_STL" = "yes"; then
39092 cat >>confdefs.h <<\_ACEOF
39093#define wxUSE_STL 1
39094_ACEOF
39095
39096fi
39097
39098if test "$wxUSE_APPLE_IEEE" = "yes"; then
39099 cat >>confdefs.h <<\_ACEOF
39100#define wxUSE_APPLE_IEEE 1
39101_ACEOF
39102
39103fi
39104
39105if test "$wxUSE_TIMER" = "yes"; then
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_TIMER 1
39108_ACEOF
39109
39110fi
39111
9c112555 39112if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
39113 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
39114echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
39115if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 39116 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 39117else
d12aef51
VZ
39118
39119 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
39120/* confdefs.h. */
39121_ACEOF
39122cat confdefs.h >>conftest.$ac_ext
39123cat >>conftest.$ac_ext <<_ACEOF
39124/* end confdefs.h. */
d12aef51
VZ
39125
39126 #include <sys/soundcard.h>
39127
39128int
39129main ()
39130{
39131
39132 ioctl(0, SNDCTL_DSP_SYNC, 0);
39133
39134 ;
39135 return 0;
39136}
a848cd7e 39137_ACEOF
d12aef51
VZ
39138rm -f conftest.$ac_objext conftest$ac_exeext
39139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39140 (eval $ac_link) 2>conftest.er1
a848cd7e 39141 ac_status=$?
ac1cb8d3
VS
39142 grep -v '^ *+' conftest.er1 >conftest.err
39143 rm -f conftest.er1
39144 cat conftest.err >&5
a848cd7e
SC
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); } &&
be665c07
JS
39147 { ac_try='test -z "$ac_c_werror_flag"
39148 || test ! -s conftest.err'
ac1cb8d3
VS
39149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39150 (eval $ac_try) 2>&5
39151 ac_status=$?
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); }; } &&
d12aef51 39154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
d12aef51 39160 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
39161else
39162 echo "$as_me: failed program was:" >&5
39163sed 's/^/| /' conftest.$ac_ext >&5
39164
a848cd7e 39165
d12aef51
VZ
39166 saveLibs="$LIBS"
39167 LIBS="$saveLibs -lossaudio"
39168 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
39169/* confdefs.h. */
39170_ACEOF
39171cat confdefs.h >>conftest.$ac_ext
39172cat >>conftest.$ac_ext <<_ACEOF
39173/* end confdefs.h. */
d12aef51
VZ
39174
39175 #include <sys/soundcard.h>
39176
39177int
39178main ()
39179{
39180
39181 ioctl(0, SNDCTL_DSP_SYNC, 0);
39182
39183 ;
39184 return 0;
39185}
a848cd7e 39186_ACEOF
d12aef51
VZ
39187rm -f conftest.$ac_objext conftest$ac_exeext
39188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39189 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
39190 ac_status=$?
39191 grep -v '^ *+' conftest.er1 >conftest.err
39192 rm -f conftest.er1
39193 cat conftest.err >&5
39194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 39195 (exit $ac_status); } &&
be665c07
JS
39196 { ac_try='test -z "$ac_c_werror_flag"
39197 || test ! -s conftest.err'
d12aef51
VZ
39198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39199 (eval $ac_try) 2>&5
39200 ac_status=$?
39201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202 (exit $ac_status); }; } &&
39203 { ac_try='test -s conftest$ac_exeext'
39204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39205 (eval $ac_try) 2>&5
39206 ac_status=$?
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); }; }; then
39209 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
39210else
39211 echo "$as_me: failed program was:" >&5
39212sed 's/^/| /' conftest.$ac_ext >&5
39213
a848cd7e 39214
d12aef51
VZ
39215 LIBS="$saveLibs"
39216 ac_cv_header_sys_soundcard=no
39217
39218
a848cd7e 39219fi
d12aef51
VZ
39220rm -f conftest.err conftest.$ac_objext \
39221 conftest$ac_exeext conftest.$ac_ext
39222
a848cd7e
SC
39223
39224fi
d12aef51
VZ
39225rm -f conftest.err conftest.$ac_objext \
39226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39227
39228fi
d12aef51
VZ
39229echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
39230echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 39231
d12aef51
VZ
39232 if test "$ac_cv_header_sys_soundcard" = "yes"; then
39233 cat >>confdefs.h <<\_ACEOF
39234#define HAVE_SYS_SOUNDCARD_H 1
39235_ACEOF
a848cd7e 39236
d12aef51
VZ
39237 else
39238 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
39239 fi
9c112555
MW
39240fi
39241WITH_PLUGIN_SDL=0
39242if test "$wxUSE_SOUND" = "yes"; then
39243 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
39244 if test "$wxUSE_LIBSDL" != "no"; then
39245
39246# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
39247if test "${with_sdl_prefix+set}" = set; then
39248 withval="$with_sdl_prefix"
39249 sdl_prefix="$withval"
39250else
39251 sdl_prefix=""
39252fi;
39253
39254# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
39255if test "${with_sdl_exec_prefix+set}" = set; then
39256 withval="$with_sdl_exec_prefix"
39257 sdl_exec_prefix="$withval"
39258else
39259 sdl_exec_prefix=""
39260fi;
39261# Check whether --enable-sdltest or --disable-sdltest was given.
39262if test "${enable_sdltest+set}" = set; then
39263 enableval="$enable_sdltest"
39264
39265else
39266 enable_sdltest=yes
39267fi;
39268
39269 if test x$sdl_exec_prefix != x ; then
39270 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
39271 if test x${SDL_CONFIG+set} != xset ; then
39272 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
39273 fi
39274 fi
39275 if test x$sdl_prefix != x ; then
39276 sdl_args="$sdl_args --prefix=$sdl_prefix"
39277 if test x${SDL_CONFIG+set} != xset ; then
39278 SDL_CONFIG=$sdl_prefix/bin/sdl-config
39279 fi
39280 fi
39281
39282
39283 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
39284 # Extract the first word of "sdl-config", so it can be a program name with args.
39285set dummy sdl-config; ac_word=$2
39286echo "$as_me:$LINENO: checking for $ac_word" >&5
39287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39288if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
39289 echo $ECHO_N "(cached) $ECHO_C" >&6
39290else
39291 case $SDL_CONFIG in
39292 [\\/]* | ?:[\\/]*)
39293 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
39294 ;;
39295 *)
39296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39297for as_dir in $PATH
39298do
39299 IFS=$as_save_IFS
39300 test -z "$as_dir" && as_dir=.
39301 for ac_exec_ext in '' $ac_executable_extensions; do
39302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39303 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39305 break 2
39306 fi
39307done
39308done
39309
39310 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
39311 ;;
39312esac
39313fi
39314SDL_CONFIG=$ac_cv_path_SDL_CONFIG
39315
39316if test -n "$SDL_CONFIG"; then
39317 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
39318echo "${ECHO_T}$SDL_CONFIG" >&6
39319else
39320 echo "$as_me:$LINENO: result: no" >&5
39321echo "${ECHO_T}no" >&6
39322fi
39323
39324 min_sdl_version=1.2.0
39325 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
39326echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
39327 no_sdl=""
39328 if test "$SDL_CONFIG" = "no" ; then
39329 no_sdl=yes
39330 else
39331 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
39332 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
39333
39334 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
39335 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39336 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
39337 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39338 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
39339 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39340 if test "x$enable_sdltest" = "xyes" ; then
39341 ac_save_CFLAGS="$CFLAGS"
94acd38e 39342 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
39343 ac_save_LIBS="$LIBS"
39344 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39345 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39346 LIBS="$LIBS $SDL_LIBS"
39347 rm -f conf.sdltest
39348 if test "$cross_compiling" = yes; then
39349 echo $ac_n "cross compiling; assumed OK... $ac_c"
39350else
39351 cat >conftest.$ac_ext <<_ACEOF
39352/* confdefs.h. */
39353_ACEOF
39354cat confdefs.h >>conftest.$ac_ext
39355cat >>conftest.$ac_ext <<_ACEOF
39356/* end confdefs.h. */
39357
39358#include <stdio.h>
39359#include <stdlib.h>
39360#include <string.h>
39361#include "SDL.h"
39362
39363char*
39364my_strdup (char *str)
39365{
39366 char *new_str;
39367
39368 if (str)
39369 {
39370 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
39371 strcpy (new_str, str);
39372 }
39373 else
39374 new_str = NULL;
39375
39376 return new_str;
39377}
39378
39379int main (int argc, char *argv[])
39380{
39381 int major, minor, micro;
39382 char *tmp_version;
39383
39384 /* This hangs on some systems (?)
39385 system ("touch conf.sdltest");
39386 */
39387 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39388
39389 /* HP/UX 9 (%@#!) writes to sscanf strings */
39390 tmp_version = my_strdup("$min_sdl_version");
39391 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39392 printf("%s, bad version string\n", "$min_sdl_version");
39393 exit(1);
39394 }
39395
39396 if (($sdl_major_version > major) ||
39397 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39398 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39399 {
39400 return 0;
39401 }
39402 else
39403 {
39404 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39405 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39406 printf("*** best to upgrade to the required version.\n");
39407 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39408 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39409 printf("*** config.cache before re-running configure\n");
39410 return 1;
39411 }
39412}
39413
39414
39415_ACEOF
39416rm -f conftest$ac_exeext
39417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39418 (eval $ac_link) 2>&5
39419 ac_status=$?
39420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423 (eval $ac_try) 2>&5
39424 ac_status=$?
39425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426 (exit $ac_status); }; }; then
39427 :
39428else
39429 echo "$as_me: program exited with status $ac_status" >&5
39430echo "$as_me: failed program was:" >&5
39431sed 's/^/| /' conftest.$ac_ext >&5
39432
39433( exit $ac_status )
39434no_sdl=yes
39435fi
ac1cb8d3 39436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39437fi
39438 CFLAGS="$ac_save_CFLAGS"
94acd38e 39439 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39440 LIBS="$ac_save_LIBS"
39441 fi
39442 fi
39443 if test "x$no_sdl" = x ; then
39444 echo "$as_me:$LINENO: result: yes" >&5
39445echo "${ECHO_T}yes" >&6
39446
39447 EXTRALIBS_SDL="$SDL_LIBS"
39448 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39449 cat >>confdefs.h <<\_ACEOF
39450#define wxUSE_LIBSDL 1
39451_ACEOF
39452
39453
39454 else
39455 echo "$as_me:$LINENO: result: no" >&5
39456echo "${ECHO_T}no" >&6
39457 if test "$SDL_CONFIG" = "no" ; then
39458 echo "*** The sdl-config script installed by SDL could not be found"
39459 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39460 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39461 echo "*** full path to sdl-config."
39462 else
39463 if test -f conf.sdltest ; then
39464 :
39465 else
39466 echo "*** Could not run SDL test program, checking why..."
39467 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39468 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39469 LIBS="$LIBS $SDL_LIBS"
39470 cat >conftest.$ac_ext <<_ACEOF
39471/* confdefs.h. */
39472_ACEOF
39473cat confdefs.h >>conftest.$ac_ext
39474cat >>conftest.$ac_ext <<_ACEOF
39475/* end confdefs.h. */
39476
39477#include <stdio.h>
39478#include "SDL.h"
39479
39480int main(int argc, char *argv[])
39481{ return 0; }
39482#undef main
39483#define main K_and_R_C_main
39484
39485int
39486main ()
39487{
39488 return 0;
39489 ;
39490 return 0;
39491}
39492_ACEOF
39493rm -f conftest.$ac_objext conftest$ac_exeext
39494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39495 (eval $ac_link) 2>conftest.er1
a848cd7e 39496 ac_status=$?
ac1cb8d3
VS
39497 grep -v '^ *+' conftest.er1 >conftest.err
39498 rm -f conftest.er1
39499 cat conftest.err >&5
a848cd7e
SC
39500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501 (exit $ac_status); } &&
be665c07
JS
39502 { ac_try='test -z "$ac_c_werror_flag"
39503 || test ! -s conftest.err'
ac1cb8d3
VS
39504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39505 (eval $ac_try) 2>&5
39506 ac_status=$?
39507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508 (exit $ac_status); }; } &&
39509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39511 (eval $ac_try) 2>&5
39512 ac_status=$?
39513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 (exit $ac_status); }; }; then
39515 echo "*** The test program compiled, but did not run. This usually means"
39516 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39517 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39520 echo "*** is required on your system"
39521 echo "***"
39522 echo "*** If you have an old version installed, it is best to remove it, although"
39523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39524else
39525 echo "$as_me: failed program was:" >&5
39526sed 's/^/| /' conftest.$ac_ext >&5
39527
39528 echo "*** The test program failed to compile or link. See the file config.log for the"
39529 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39530 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39531 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39532fi
ac1cb8d3
VS
39533rm -f conftest.err conftest.$ac_objext \
39534 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39535 CFLAGS="$ac_save_CFLAGS"
94acd38e 39536 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39537 LIBS="$ac_save_LIBS"
39538 fi
39539 fi
39540 SDL_CFLAGS=""
39541 SDL_LIBS=""
39542 wxUSE_LIBSDL="no"
39543 fi
39544
39545
39546 rm -f conf.sdltest
39547
39548 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39549 WITH_PLUGIN_SDL=1
39550 fi
39551 fi
39552 fi
39553
39554 cat >>confdefs.h <<\_ACEOF
39555#define wxUSE_SOUND 1
39556_ACEOF
39557
39558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39559fi
39560
d1c38808
VZ
39561if test "$WXGTK20" = 1; then
39562 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39563 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39564
39565
39566 succeeded=no
39567
39568 if test -z "$PKG_CONFIG"; then
39569 # Extract the first word of "pkg-config", so it can be a program name with args.
39570set dummy pkg-config; ac_word=$2
39571echo "$as_me:$LINENO: checking for $ac_word" >&5
39572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39573if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39574 echo $ECHO_N "(cached) $ECHO_C" >&6
39575else
39576 case $PKG_CONFIG in
39577 [\\/]* | ?:[\\/]*)
39578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39579 ;;
39580 *)
39581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39582for as_dir in $PATH
39583do
39584 IFS=$as_save_IFS
39585 test -z "$as_dir" && as_dir=.
39586 for ac_exec_ext in '' $ac_executable_extensions; do
39587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39590 break 2
39591 fi
39592done
39593done
39594
39595 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39596 ;;
39597esac
39598fi
39599PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39600
39601if test -n "$PKG_CONFIG"; then
39602 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39603echo "${ECHO_T}$PKG_CONFIG" >&6
39604else
39605 echo "$as_me:$LINENO: result: no" >&5
39606echo "${ECHO_T}no" >&6
39607fi
39608
39609 fi
39610
39611 if test "$PKG_CONFIG" = "no" ; then
39612 echo "*** The pkg-config script could not be found. Make sure it is"
39613 echo "*** in your path, or set the PKG_CONFIG environment variable"
39614 echo "*** to the full path to pkg-config."
39615 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39616 else
39617 PKG_CONFIG_MIN_VERSION=0.9.0
39618 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39619 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39620echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39621
ffa762ff 39622 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39623 echo "$as_me:$LINENO: result: yes" >&5
39624echo "${ECHO_T}yes" >&6
39625 succeeded=yes
39626
39627 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39628echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39629 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39630 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39631echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39632
39633 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39634echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39635 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39636 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39637echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39638 else
39639 LIBGNOMEPRINTUI_CFLAGS=""
39640 LIBGNOMEPRINTUI_LIBS=""
39641 ## If we have a custom action on failure, don't print errors, but
39642 ## do set a variable so people can do so.
ffa762ff 39643 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39644
39645 fi
39646
39647
39648
39649 else
39650 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39651 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39652 fi
39653 fi
39654
39655 if test $succeeded = yes; then
39656
d1c38808
VZ
39657 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39658 cat >>confdefs.h <<\_ACEOF
39659#define wxUSE_LIBGNOMEPRINT 1
39660_ACEOF
39661
39662
39663 else
39664
39665 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39666echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39667 wxUSE_LIBGNOMEPRINT="no"
39668
39669
39670 fi
39671
39672 fi
39673 fi
39674fi
39675
39676
a848cd7e
SC
39677if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39678 cat >>confdefs.h <<\_ACEOF
39679#define wxUSE_CMDLINE_PARSER 1
39680_ACEOF
39681
39682fi
39683
39684if test "$wxUSE_STOPWATCH" = "yes"; then
39685 cat >>confdefs.h <<\_ACEOF
39686#define wxUSE_STOPWATCH 1
39687_ACEOF
39688
39689fi
39690
39691if test "$wxUSE_DATETIME" = "yes"; then
39692 cat >>confdefs.h <<\_ACEOF
39693#define wxUSE_DATETIME 1
39694_ACEOF
39695
39696fi
39697
39698if test "$wxUSE_FILE" = "yes"; then
39699 cat >>confdefs.h <<\_ACEOF
39700#define wxUSE_FILE 1
39701_ACEOF
39702
39703fi
39704
39705if test "$wxUSE_FFILE" = "yes"; then
39706 cat >>confdefs.h <<\_ACEOF
39707#define wxUSE_FFILE 1
39708_ACEOF
39709
39710fi
39711
39712if test "$wxUSE_FILESYSTEM" = "yes"; then
39713 cat >>confdefs.h <<\_ACEOF
39714#define wxUSE_FILESYSTEM 1
39715_ACEOF
39716
39717fi
39718
39719if test "$wxUSE_FS_ZIP" = "yes"; then
39720 cat >>confdefs.h <<\_ACEOF
39721#define wxUSE_FS_ZIP 1
39722_ACEOF
39723
39724fi
39725
9e8e867f 39726if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39727 cat >>confdefs.h <<\_ACEOF
9e8e867f 39728#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39729_ACEOF
39730
39731fi
39732
39733if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39734 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39735 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39736echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39737 elif test "$wxUSE_ZLIB" = "no"; then
39738 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39739echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39740 else
39741 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39742#define wxUSE_ZIPSTREAM 1
39743_ACEOF
39744
81f90336 39745 fi
a848cd7e
SC
39746fi
39747
a848cd7e 39748if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39749 if test "$USE_UNIX" != 1; then
39750 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39751echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39752 wxUSE_ON_FATAL_EXCEPTION=no
39753 else
39754 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39755#define wxUSE_ON_FATAL_EXCEPTION 1
39756_ACEOF
39757
18228ab4 39758 fi
a848cd7e
SC
39759fi
39760
eaff0f0d
VZ
39761if test "$wxUSE_STACKWALKER" = "yes"; then
39762 cat >>confdefs.h <<\_ACEOF
39763#define wxUSE_STACKWALKER 1
39764_ACEOF
39765
39766fi
39767
36b6448c 39768if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39769 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39770 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39771echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39772 wxUSE_DEBUGREPORT=no
39773 else
39774 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39775#define wxUSE_DEBUGREPORT 1
39776_ACEOF
39777
21dfc162
MW
39778 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39780 fi
dfe0c803 39781 fi
36b6448c
VZ
39782fi
39783
a848cd7e
SC
39784if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39785 cat >>confdefs.h <<\_ACEOF
39786#define wxUSE_SNGLINST_CHECKER 1
39787_ACEOF
39788
39789fi
39790
39791if test "$wxUSE_BUSYINFO" = "yes"; then
39792 cat >>confdefs.h <<\_ACEOF
39793#define wxUSE_BUSYINFO 1
39794_ACEOF
39795
39796fi
39797
39798if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39799 cat >>confdefs.h <<\_ACEOF
39800#define wxUSE_STD_IOSTREAM 1
39801_ACEOF
39802
39803fi
39804
59746b65
MW
39805if test "$wxUSE_STD_STRING" = "yes"; then
39806 cat >>confdefs.h <<\_ACEOF
39807#define wxUSE_STD_STRING 1
39808_ACEOF
39809
39810fi
39811
07158944
VZ
39812if test "$wxUSE_STDPATHS" = "yes"; then
39813 cat >>confdefs.h <<\_ACEOF
39814#define wxUSE_STDPATHS 1
39815_ACEOF
39816
39817fi
39818
a848cd7e
SC
39819if test "$wxUSE_TEXTBUFFER" = "yes"; then
39820 cat >>confdefs.h <<\_ACEOF
39821#define wxUSE_TEXTBUFFER 1
39822_ACEOF
39823
39824fi
39825
39826if test "$wxUSE_TEXTFILE" = "yes"; then
39827 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39828 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39829echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39830 else
39831 cat >>confdefs.h <<\_ACEOF
39832#define wxUSE_TEXTFILE 1
39833_ACEOF
39834
39835 fi
39836fi
39837
39838if test "$wxUSE_CONFIG" = "yes" ; then
39839 if test "$wxUSE_TEXTFILE" != "yes"; then
39840 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39841echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39842 else
39843 cat >>confdefs.h <<\_ACEOF
39844#define wxUSE_CONFIG 1
89be85c2
VS
39845_ACEOF
39846
39847 cat >>confdefs.h <<\_ACEOF
39848#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39849_ACEOF
39850
39851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39852 fi
39853fi
39854
39855if test "$wxUSE_INTL" = "yes" ; then
39856 if test "$wxUSE_FILE" != "yes"; then
39857 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39858echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39859 else
39860 cat >>confdefs.h <<\_ACEOF
39861#define wxUSE_INTL 1
39862_ACEOF
39863
39864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39865 GUIDIST="$GUIDIST INTL_DIST"
39866 fi
39867fi
39868
39869if test "$wxUSE_LOG" = "yes"; then
39870 cat >>confdefs.h <<\_ACEOF
39871#define wxUSE_LOG 1
39872_ACEOF
39873
39874
39875 if test "$wxUSE_LOGGUI" = "yes"; then
39876 cat >>confdefs.h <<\_ACEOF
39877#define wxUSE_LOGGUI 1
39878_ACEOF
39879
39880 fi
39881
39882 if test "$wxUSE_LOGWINDOW" = "yes"; then
39883 cat >>confdefs.h <<\_ACEOF
39884#define wxUSE_LOGWINDOW 1
39885_ACEOF
39886
39887 fi
39888
39889 if test "$wxUSE_LOGDIALOG" = "yes"; then
39890 cat >>confdefs.h <<\_ACEOF
39891#define wxUSE_LOG_DIALOG 1
39892_ACEOF
39893
39894 fi
0b78747f
MW
39895
39896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39897fi
39898
39899if test "$wxUSE_LONGLONG" = "yes"; then
39900 cat >>confdefs.h <<\_ACEOF
39901#define wxUSE_LONGLONG 1
39902_ACEOF
39903
39904fi
39905
39906if test "$wxUSE_GEOMETRY" = "yes"; then
39907 cat >>confdefs.h <<\_ACEOF
39908#define wxUSE_GEOMETRY 1
39909_ACEOF
39910
39911fi
39912
a848cd7e
SC
39913if test "$wxUSE_STREAMS" = "yes" ; then
39914 cat >>confdefs.h <<\_ACEOF
39915#define wxUSE_STREAMS 1
39916_ACEOF
39917
39918fi
39919
39920
39921if test "$wxUSE_DATETIME" = "yes"; then
39922
39923for ac_func in strptime
39924do
39925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39926echo "$as_me:$LINENO: checking for $ac_func" >&5
39927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39928if eval "test \"\${$as_ac_var+set}\" = set"; then
39929 echo $ECHO_N "(cached) $ECHO_C" >&6
39930else
39931 cat >conftest.$ac_ext <<_ACEOF
39932/* confdefs.h. */
39933_ACEOF
39934cat confdefs.h >>conftest.$ac_ext
39935cat >>conftest.$ac_ext <<_ACEOF
39936/* end confdefs.h. */
ac1cb8d3
VS
39937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39939#define $ac_func innocuous_$ac_func
39940
a848cd7e
SC
39941/* System header to define __stub macros and hopefully few prototypes,
39942 which can conflict with char $ac_func (); below.
39943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39944 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39945
a848cd7e
SC
39946#ifdef __STDC__
39947# include <limits.h>
39948#else
39949# include <assert.h>
39950#endif
ac1cb8d3
VS
39951
39952#undef $ac_func
39953
a848cd7e
SC
39954/* Override any gcc2 internal prototype to avoid an error. */
39955#ifdef __cplusplus
39956extern "C"
39957{
39958#endif
39959/* We use char because int might match the return type of a gcc2
39960 builtin and then its argument prototype would still apply. */
39961char $ac_func ();
39962/* The GNU C library defines this for functions which it implements
39963 to always fail with ENOSYS. Some functions are actually named
39964 something starting with __ and the normal name is an alias. */
39965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39966choke me
39967#else
39968char (*f) () = $ac_func;
39969#endif
39970#ifdef __cplusplus
39971}
39972#endif
39973
39974int
39975main ()
39976{
39977return f != $ac_func;
39978 ;
39979 return 0;
39980}
39981_ACEOF
39982rm -f conftest.$ac_objext conftest$ac_exeext
39983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39984 (eval $ac_link) 2>conftest.er1
a848cd7e 39985 ac_status=$?
ac1cb8d3
VS
39986 grep -v '^ *+' conftest.er1 >conftest.err
39987 rm -f conftest.er1
39988 cat conftest.err >&5
a848cd7e
SC
39989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990 (exit $ac_status); } &&
be665c07
JS
39991 { ac_try='test -z "$ac_c_werror_flag"
39992 || test ! -s conftest.err'
ac1cb8d3
VS
39993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994 (eval $ac_try) 2>&5
39995 ac_status=$?
39996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 (exit $ac_status); }; } &&
39998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40000 (eval $ac_try) 2>&5
40001 ac_status=$?
40002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); }; }; then
40004 eval "$as_ac_var=yes"
40005else
40006 echo "$as_me: failed program was:" >&5
40007sed 's/^/| /' conftest.$ac_ext >&5
40008
40009eval "$as_ac_var=no"
40010fi
ac1cb8d3
VS
40011rm -f conftest.err conftest.$ac_objext \
40012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40013fi
40014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40016if test `eval echo '${'$as_ac_var'}'` = yes; then
40017 cat >>confdefs.h <<_ACEOF
40018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40019_ACEOF
40020
40021fi
40022done
40023
f536f005
VZ
40024 if test "$ac_cv_func_strptime" = "yes"; then
40025 echo "$as_me:$LINENO: checking for strptime declaration" >&5
40026echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
40027if test "${wx_cv_func_strptime_decl+set}" = set; then
40028 echo $ECHO_N "(cached) $ECHO_C" >&6
40029else
40030
40031
40032
40033 ac_ext=cc
40034ac_cpp='$CXXCPP $CPPFLAGS'
40035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40038
40039 cat >conftest.$ac_ext <<_ACEOF
40040/* confdefs.h. */
40041_ACEOF
40042cat confdefs.h >>conftest.$ac_ext
40043cat >>conftest.$ac_ext <<_ACEOF
40044/* end confdefs.h. */
40045
40046 #include <time.h>
40047
40048int
40049main ()
40050{
40051
40052 struct tm t;
40053 strptime("foo", "bar", &t);
40054
40055 ;
40056 return 0;
40057}
40058_ACEOF
40059rm -f conftest.$ac_objext
40060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40061 (eval $ac_compile) 2>conftest.er1
40062 ac_status=$?
40063 grep -v '^ *+' conftest.er1 >conftest.err
40064 rm -f conftest.er1
40065 cat conftest.err >&5
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); } &&
be665c07
JS
40068 { ac_try='test -z "$ac_cxx_werror_flag"
40069 || test ! -s conftest.err'
f536f005
VZ
40070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071 (eval $ac_try) 2>&5
40072 ac_status=$?
40073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074 (exit $ac_status); }; } &&
40075 { ac_try='test -s conftest.$ac_objext'
40076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40077 (eval $ac_try) 2>&5
40078 ac_status=$?
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); }; }; then
40081 wx_cv_func_strptime_decl=yes
40082else
40083 echo "$as_me: failed program was:" >&5
40084sed 's/^/| /' conftest.$ac_ext >&5
40085
40086wx_cv_func_strptime_decl=no
40087
40088fi
40089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40090 ac_ext=c
40091ac_cpp='$CPP $CPPFLAGS'
40092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40094ac_compiler_gnu=$ac_cv_c_compiler_gnu
40095
40096
40097
40098fi
40099echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
40100echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
40101 fi
40102 if test "$wx_cv_func_strptime_decl" = "yes"; then
40103 cat >>confdefs.h <<\_ACEOF
40104#define HAVE_STRPTIME_DECL 1
40105_ACEOF
40106
40107 fi
a848cd7e
SC
40108
40109 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
40110echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
40111if test "${wx_cv_var_timezone+set}" = set; then
40112 echo $ECHO_N "(cached) $ECHO_C" >&6
40113else
40114
40115 cat >conftest.$ac_ext <<_ACEOF
40116/* confdefs.h. */
40117_ACEOF
40118cat confdefs.h >>conftest.$ac_ext
40119cat >>conftest.$ac_ext <<_ACEOF
40120/* end confdefs.h. */
40121
40122 #include <time.h>
40123
40124int
40125main ()
40126{
40127
40128 int tz;
40129 tz = timezone;
40130
40131 ;
40132 return 0;
40133}
40134_ACEOF
40135rm -f conftest.$ac_objext
40136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40137 (eval $ac_compile) 2>conftest.er1
a848cd7e 40138 ac_status=$?
ac1cb8d3
VS
40139 grep -v '^ *+' conftest.er1 >conftest.err
40140 rm -f conftest.er1
40141 cat conftest.err >&5
a848cd7e
SC
40142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40143 (exit $ac_status); } &&
be665c07
JS
40144 { ac_try='test -z "$ac_c_werror_flag"
40145 || test ! -s conftest.err'
ac1cb8d3
VS
40146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40147 (eval $ac_try) 2>&5
40148 ac_status=$?
40149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40150 (exit $ac_status); }; } &&
40151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40153 (eval $ac_try) 2>&5
40154 ac_status=$?
40155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156 (exit $ac_status); }; }; then
40157
40158 wx_cv_var_timezone=timezone
40159
40160else
40161 echo "$as_me: failed program was:" >&5
40162sed 's/^/| /' conftest.$ac_ext >&5
40163
40164
40165 cat >conftest.$ac_ext <<_ACEOF
40166/* confdefs.h. */
40167_ACEOF
40168cat confdefs.h >>conftest.$ac_ext
40169cat >>conftest.$ac_ext <<_ACEOF
40170/* end confdefs.h. */
40171
40172 #include <time.h>
40173
40174int
40175main ()
40176{
40177
40178 int tz;
40179 tz = _timezone;
40180
40181 ;
40182 return 0;
40183}
40184_ACEOF
40185rm -f conftest.$ac_objext
40186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40187 (eval $ac_compile) 2>conftest.er1
a848cd7e 40188 ac_status=$?
ac1cb8d3
VS
40189 grep -v '^ *+' conftest.er1 >conftest.err
40190 rm -f conftest.er1
40191 cat conftest.err >&5
a848cd7e
SC
40192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193 (exit $ac_status); } &&
be665c07
JS
40194 { ac_try='test -z "$ac_c_werror_flag"
40195 || test ! -s conftest.err'
ac1cb8d3
VS
40196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40197 (eval $ac_try) 2>&5
40198 ac_status=$?
40199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40200 (exit $ac_status); }; } &&
40201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40203 (eval $ac_try) 2>&5
40204 ac_status=$?
40205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206 (exit $ac_status); }; }; then
40207
40208 wx_cv_var_timezone=_timezone
40209
40210else
40211 echo "$as_me: failed program was:" >&5
40212sed 's/^/| /' conftest.$ac_ext >&5
40213
40214
40215 cat >conftest.$ac_ext <<_ACEOF
40216/* confdefs.h. */
40217_ACEOF
40218cat confdefs.h >>conftest.$ac_ext
40219cat >>conftest.$ac_ext <<_ACEOF
40220/* end confdefs.h. */
40221
40222 #include <time.h>
40223
40224int
40225main ()
40226{
40227
40228 int tz;
40229 tz = __timezone;
40230
40231 ;
40232 return 0;
40233}
40234_ACEOF
40235rm -f conftest.$ac_objext
40236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40237 (eval $ac_compile) 2>conftest.er1
a848cd7e 40238 ac_status=$?
ac1cb8d3
VS
40239 grep -v '^ *+' conftest.er1 >conftest.err
40240 rm -f conftest.er1
40241 cat conftest.err >&5
a848cd7e
SC
40242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243 (exit $ac_status); } &&
be665c07
JS
40244 { ac_try='test -z "$ac_c_werror_flag"
40245 || test ! -s conftest.err'
ac1cb8d3
VS
40246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40247 (eval $ac_try) 2>&5
40248 ac_status=$?
40249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250 (exit $ac_status); }; } &&
40251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40253 (eval $ac_try) 2>&5
40254 ac_status=$?
40255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256 (exit $ac_status); }; }; then
40257
40258 wx_cv_var_timezone=__timezone
40259
40260else
40261 echo "$as_me: failed program was:" >&5
40262sed 's/^/| /' conftest.$ac_ext >&5
40263
40264
40265 if test "$USE_DOS" = 0 ; then
40266 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
40267echo "$as_me: WARNING: no timezone variable" >&2;}
40268 fi
40269
40270
40271fi
ac1cb8d3 40272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40273
40274
40275fi
ac1cb8d3 40276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40277
40278
40279fi
ac1cb8d3 40280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40281
40282
40283fi
40284echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
40285echo "${ECHO_T}$wx_cv_var_timezone" >&6
40286
40287 if test "x$wx_cv_var_timezone" != x ; then
40288 cat >>confdefs.h <<_ACEOF
40289#define WX_TIMEZONE $wx_cv_var_timezone
40290_ACEOF
40291
40292 fi
40293
40294
40295for ac_func in localtime
40296do
40297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40298echo "$as_me:$LINENO: checking for $ac_func" >&5
40299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40300if eval "test \"\${$as_ac_var+set}\" = set"; then
40301 echo $ECHO_N "(cached) $ECHO_C" >&6
40302else
40303 cat >conftest.$ac_ext <<_ACEOF
40304/* confdefs.h. */
40305_ACEOF
40306cat confdefs.h >>conftest.$ac_ext
40307cat >>conftest.$ac_ext <<_ACEOF
40308/* end confdefs.h. */
ac1cb8d3
VS
40309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40311#define $ac_func innocuous_$ac_func
40312
a848cd7e
SC
40313/* System header to define __stub macros and hopefully few prototypes,
40314 which can conflict with char $ac_func (); below.
40315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40316 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40317
a848cd7e
SC
40318#ifdef __STDC__
40319# include <limits.h>
40320#else
40321# include <assert.h>
40322#endif
ac1cb8d3
VS
40323
40324#undef $ac_func
40325
a848cd7e
SC
40326/* Override any gcc2 internal prototype to avoid an error. */
40327#ifdef __cplusplus
40328extern "C"
40329{
40330#endif
40331/* We use char because int might match the return type of a gcc2
40332 builtin and then its argument prototype would still apply. */
40333char $ac_func ();
40334/* The GNU C library defines this for functions which it implements
40335 to always fail with ENOSYS. Some functions are actually named
40336 something starting with __ and the normal name is an alias. */
40337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40338choke me
40339#else
40340char (*f) () = $ac_func;
40341#endif
40342#ifdef __cplusplus
40343}
40344#endif
40345
40346int
40347main ()
40348{
40349return f != $ac_func;
40350 ;
40351 return 0;
40352}
40353_ACEOF
40354rm -f conftest.$ac_objext conftest$ac_exeext
40355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40356 (eval $ac_link) 2>conftest.er1
a848cd7e 40357 ac_status=$?
ac1cb8d3
VS
40358 grep -v '^ *+' conftest.er1 >conftest.err
40359 rm -f conftest.er1
40360 cat conftest.err >&5
a848cd7e
SC
40361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40362 (exit $ac_status); } &&
be665c07
JS
40363 { ac_try='test -z "$ac_c_werror_flag"
40364 || test ! -s conftest.err'
ac1cb8d3
VS
40365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40366 (eval $ac_try) 2>&5
40367 ac_status=$?
40368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40369 (exit $ac_status); }; } &&
40370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40372 (eval $ac_try) 2>&5
40373 ac_status=$?
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); }; }; then
40376 eval "$as_ac_var=yes"
40377else
40378 echo "$as_me: failed program was:" >&5
40379sed 's/^/| /' conftest.$ac_ext >&5
40380
40381eval "$as_ac_var=no"
40382fi
ac1cb8d3
VS
40383rm -f conftest.err conftest.$ac_objext \
40384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40385fi
40386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40388if test `eval echo '${'$as_ac_var'}'` = yes; then
40389 cat >>confdefs.h <<_ACEOF
40390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40391_ACEOF
40392
40393fi
40394done
40395
40396
40397 if test "$ac_cv_func_localtime" = "yes"; then
40398 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40399echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40400if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40401 echo $ECHO_N "(cached) $ECHO_C" >&6
40402else
40403
40404 cat >conftest.$ac_ext <<_ACEOF
40405/* confdefs.h. */
40406_ACEOF
40407cat confdefs.h >>conftest.$ac_ext
40408cat >>conftest.$ac_ext <<_ACEOF
40409/* end confdefs.h. */
40410
40411 #include <time.h>
40412
40413int
40414main ()
40415{
40416
40417 struct tm tm;
40418 tm.tm_gmtoff++;
40419
40420 ;
40421 return 0;
40422}
40423_ACEOF
40424rm -f conftest.$ac_objext
40425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40426 (eval $ac_compile) 2>conftest.er1
a848cd7e 40427 ac_status=$?
ac1cb8d3
VS
40428 grep -v '^ *+' conftest.er1 >conftest.err
40429 rm -f conftest.er1
40430 cat conftest.err >&5
a848cd7e
SC
40431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432 (exit $ac_status); } &&
be665c07
JS
40433 { ac_try='test -z "$ac_c_werror_flag"
40434 || test ! -s conftest.err'
ac1cb8d3
VS
40435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436 (eval $ac_try) 2>&5
40437 ac_status=$?
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); }; } &&
40440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40442 (eval $ac_try) 2>&5
40443 ac_status=$?
40444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445 (exit $ac_status); }; }; then
40446
40447 wx_cv_struct_tm_has_gmtoff=yes
40448
40449else
40450 echo "$as_me: failed program was:" >&5
40451sed 's/^/| /' conftest.$ac_ext >&5
40452
40453wx_cv_struct_tm_has_gmtoff=no
40454
40455fi
ac1cb8d3 40456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40457
40458fi
40459echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40460echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40461 fi
40462
40463 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40464 cat >>confdefs.h <<\_ACEOF
40465#define WX_GMTOFF_IN_TM 1
40466_ACEOF
40467
40468 fi
40469
40470
40471
40472for ac_func in gettimeofday ftime
40473do
40474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40475echo "$as_me:$LINENO: checking for $ac_func" >&5
40476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40477if eval "test \"\${$as_ac_var+set}\" = set"; then
40478 echo $ECHO_N "(cached) $ECHO_C" >&6
40479else
40480 cat >conftest.$ac_ext <<_ACEOF
40481/* confdefs.h. */
40482_ACEOF
40483cat confdefs.h >>conftest.$ac_ext
40484cat >>conftest.$ac_ext <<_ACEOF
40485/* end confdefs.h. */
ac1cb8d3
VS
40486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40488#define $ac_func innocuous_$ac_func
40489
a848cd7e
SC
40490/* System header to define __stub macros and hopefully few prototypes,
40491 which can conflict with char $ac_func (); below.
40492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40493 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40494
a848cd7e
SC
40495#ifdef __STDC__
40496# include <limits.h>
40497#else
40498# include <assert.h>
40499#endif
ac1cb8d3
VS
40500
40501#undef $ac_func
40502
a848cd7e
SC
40503/* Override any gcc2 internal prototype to avoid an error. */
40504#ifdef __cplusplus
40505extern "C"
40506{
40507#endif
40508/* We use char because int might match the return type of a gcc2
40509 builtin and then its argument prototype would still apply. */
40510char $ac_func ();
40511/* The GNU C library defines this for functions which it implements
40512 to always fail with ENOSYS. Some functions are actually named
40513 something starting with __ and the normal name is an alias. */
40514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40515choke me
40516#else
40517char (*f) () = $ac_func;
40518#endif
40519#ifdef __cplusplus
40520}
40521#endif
40522
40523int
40524main ()
40525{
40526return f != $ac_func;
40527 ;
40528 return 0;
40529}
40530_ACEOF
40531rm -f conftest.$ac_objext conftest$ac_exeext
40532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40533 (eval $ac_link) 2>conftest.er1
a848cd7e 40534 ac_status=$?
ac1cb8d3
VS
40535 grep -v '^ *+' conftest.er1 >conftest.err
40536 rm -f conftest.er1
40537 cat conftest.err >&5
a848cd7e
SC
40538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539 (exit $ac_status); } &&
be665c07
JS
40540 { ac_try='test -z "$ac_c_werror_flag"
40541 || test ! -s conftest.err'
ac1cb8d3
VS
40542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40543 (eval $ac_try) 2>&5
40544 ac_status=$?
40545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546 (exit $ac_status); }; } &&
40547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40549 (eval $ac_try) 2>&5
40550 ac_status=$?
40551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552 (exit $ac_status); }; }; then
40553 eval "$as_ac_var=yes"
40554else
40555 echo "$as_me: failed program was:" >&5
40556sed 's/^/| /' conftest.$ac_ext >&5
40557
40558eval "$as_ac_var=no"
40559fi
ac1cb8d3
VS
40560rm -f conftest.err conftest.$ac_objext \
40561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40562fi
40563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40565if test `eval echo '${'$as_ac_var'}'` = yes; then
40566 cat >>confdefs.h <<_ACEOF
40567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40568_ACEOF
40569 break
40570fi
40571done
40572
40573
40574 if test "$ac_cv_func_gettimeofday" = "yes"; then
40575 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40576echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40577if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40578 echo $ECHO_N "(cached) $ECHO_C" >&6
40579else
40580
40581
40582
40583 ac_ext=cc
40584ac_cpp='$CXXCPP $CPPFLAGS'
40585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40588
40589
40590 cat >conftest.$ac_ext <<_ACEOF
40591/* confdefs.h. */
40592_ACEOF
40593cat confdefs.h >>conftest.$ac_ext
40594cat >>conftest.$ac_ext <<_ACEOF
40595/* end confdefs.h. */
40596
40597 #include <sys/time.h>
40598 #include <unistd.h>
40599
40600int
40601main ()
40602{
40603
40604 struct timeval tv;
40605 gettimeofday(&tv, NULL);
40606
40607 ;
40608 return 0;
40609}
40610_ACEOF
40611rm -f conftest.$ac_objext
40612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40613 (eval $ac_compile) 2>conftest.er1
a848cd7e 40614 ac_status=$?
ac1cb8d3
VS
40615 grep -v '^ *+' conftest.er1 >conftest.err
40616 rm -f conftest.er1
40617 cat conftest.err >&5
a848cd7e
SC
40618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40619 (exit $ac_status); } &&
be665c07
JS
40620 { ac_try='test -z "$ac_cxx_werror_flag"
40621 || test ! -s conftest.err'
ac1cb8d3
VS
40622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40623 (eval $ac_try) 2>&5
40624 ac_status=$?
40625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626 (exit $ac_status); }; } &&
40627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40629 (eval $ac_try) 2>&5
40630 ac_status=$?
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); }; }; then
40633 wx_cv_func_gettimeofday_has_2_args=yes
40634else
40635 echo "$as_me: failed program was:" >&5
40636sed 's/^/| /' conftest.$ac_ext >&5
40637
40638cat >conftest.$ac_ext <<_ACEOF
40639/* confdefs.h. */
40640_ACEOF
40641cat confdefs.h >>conftest.$ac_ext
40642cat >>conftest.$ac_ext <<_ACEOF
40643/* end confdefs.h. */
40644
40645 #include <sys/time.h>
40646 #include <unistd.h>
40647
40648int
40649main ()
40650{
40651
40652 struct timeval tv;
40653 gettimeofday(&tv);
40654
40655 ;
40656 return 0;
40657}
40658_ACEOF
40659rm -f conftest.$ac_objext
40660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40661 (eval $ac_compile) 2>conftest.er1
a848cd7e 40662 ac_status=$?
ac1cb8d3
VS
40663 grep -v '^ *+' conftest.er1 >conftest.err
40664 rm -f conftest.er1
40665 cat conftest.err >&5
a848cd7e
SC
40666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40667 (exit $ac_status); } &&
be665c07
JS
40668 { ac_try='test -z "$ac_cxx_werror_flag"
40669 || test ! -s conftest.err'
ac1cb8d3
VS
40670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40671 (eval $ac_try) 2>&5
40672 ac_status=$?
40673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40674 (exit $ac_status); }; } &&
40675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40677 (eval $ac_try) 2>&5
40678 ac_status=$?
40679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40680 (exit $ac_status); }; }; then
40681 wx_cv_func_gettimeofday_has_2_args=no
40682else
40683 echo "$as_me: failed program was:" >&5
40684sed 's/^/| /' conftest.$ac_ext >&5
40685
40686
40687 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40688echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40689 wx_cv_func_gettimeofday_has_2_args=unknown
40690
40691
40692fi
ac1cb8d3 40693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40694
40695fi
ac1cb8d3 40696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40697 ac_ext=c
40698ac_cpp='$CPP $CPPFLAGS'
40699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40701ac_compiler_gnu=$ac_cv_c_compiler_gnu
40702
40703
40704fi
40705echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40706echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40707
40708 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40709 cat >>confdefs.h <<\_ACEOF
40710#define WX_GETTIMEOFDAY_NO_TZ 1
40711_ACEOF
40712
40713 fi
40714 fi
40715
40716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40717fi
40718
40719
40720if test "$wxUSE_SOCKETS" = "yes"; then
40721 if test "$wxUSE_MGL" = "1"; then
40722 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40723echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40724 wxUSE_SOCKETS="no"
40725 fi
40726fi
40727
40728if test "$wxUSE_SOCKETS" = "yes"; then
40729 if test "$TOOLKIT" != "MSW"; then
40730 echo "$as_me:$LINENO: checking for socket" >&5
40731echo $ECHO_N "checking for socket... $ECHO_C" >&6
40732if test "${ac_cv_func_socket+set}" = set; then
40733 echo $ECHO_N "(cached) $ECHO_C" >&6
40734else
40735 cat >conftest.$ac_ext <<_ACEOF
40736/* confdefs.h. */
40737_ACEOF
40738cat confdefs.h >>conftest.$ac_ext
40739cat >>conftest.$ac_ext <<_ACEOF
40740/* end confdefs.h. */
ac1cb8d3
VS
40741/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40743#define socket innocuous_socket
40744
a848cd7e
SC
40745/* System header to define __stub macros and hopefully few prototypes,
40746 which can conflict with char socket (); below.
40747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40748 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40749
a848cd7e
SC
40750#ifdef __STDC__
40751# include <limits.h>
40752#else
40753# include <assert.h>
40754#endif
ac1cb8d3
VS
40755
40756#undef socket
40757
a848cd7e
SC
40758/* Override any gcc2 internal prototype to avoid an error. */
40759#ifdef __cplusplus
40760extern "C"
40761{
40762#endif
40763/* We use char because int might match the return type of a gcc2
40764 builtin and then its argument prototype would still apply. */
40765char socket ();
40766/* The GNU C library defines this for functions which it implements
40767 to always fail with ENOSYS. Some functions are actually named
40768 something starting with __ and the normal name is an alias. */
40769#if defined (__stub_socket) || defined (__stub___socket)
40770choke me
40771#else
40772char (*f) () = socket;
40773#endif
40774#ifdef __cplusplus
40775}
40776#endif
40777
40778int
40779main ()
40780{
40781return f != socket;
40782 ;
40783 return 0;
40784}
40785_ACEOF
40786rm -f conftest.$ac_objext conftest$ac_exeext
40787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40788 (eval $ac_link) 2>conftest.er1
a848cd7e 40789 ac_status=$?
ac1cb8d3
VS
40790 grep -v '^ *+' conftest.er1 >conftest.err
40791 rm -f conftest.er1
40792 cat conftest.err >&5
a848cd7e
SC
40793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40794 (exit $ac_status); } &&
be665c07
JS
40795 { ac_try='test -z "$ac_c_werror_flag"
40796 || test ! -s conftest.err'
ac1cb8d3
VS
40797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40798 (eval $ac_try) 2>&5
40799 ac_status=$?
40800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801 (exit $ac_status); }; } &&
40802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
40806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); }; }; then
40808 ac_cv_func_socket=yes
40809else
40810 echo "$as_me: failed program was:" >&5
40811sed 's/^/| /' conftest.$ac_ext >&5
40812
40813ac_cv_func_socket=no
40814fi
ac1cb8d3
VS
40815rm -f conftest.err conftest.$ac_objext \
40816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40817fi
40818echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40819echo "${ECHO_T}$ac_cv_func_socket" >&6
40820if test $ac_cv_func_socket = yes; then
40821 :
40822else
40823
40824 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40825echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40826if test "${ac_cv_lib_socket_socket+set}" = set; then
40827 echo $ECHO_N "(cached) $ECHO_C" >&6
40828else
40829 ac_check_lib_save_LIBS=$LIBS
40830LIBS="-lsocket $LIBS"
40831cat >conftest.$ac_ext <<_ACEOF
40832/* confdefs.h. */
40833_ACEOF
40834cat confdefs.h >>conftest.$ac_ext
40835cat >>conftest.$ac_ext <<_ACEOF
40836/* end confdefs.h. */
40837
40838/* Override any gcc2 internal prototype to avoid an error. */
40839#ifdef __cplusplus
40840extern "C"
40841#endif
40842/* We use char because int might match the return type of a gcc2
40843 builtin and then its argument prototype would still apply. */
40844char socket ();
40845int
40846main ()
40847{
40848socket ();
40849 ;
40850 return 0;
40851}
40852_ACEOF
40853rm -f conftest.$ac_objext conftest$ac_exeext
40854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40855 (eval $ac_link) 2>conftest.er1
a848cd7e 40856 ac_status=$?
ac1cb8d3
VS
40857 grep -v '^ *+' conftest.er1 >conftest.err
40858 rm -f conftest.er1
40859 cat conftest.err >&5
a848cd7e
SC
40860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861 (exit $ac_status); } &&
be665c07
JS
40862 { ac_try='test -z "$ac_c_werror_flag"
40863 || test ! -s conftest.err'
ac1cb8d3
VS
40864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865 (eval $ac_try) 2>&5
40866 ac_status=$?
40867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868 (exit $ac_status); }; } &&
40869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871 (eval $ac_try) 2>&5
40872 ac_status=$?
40873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); }; }; then
40875 ac_cv_lib_socket_socket=yes
40876else
40877 echo "$as_me: failed program was:" >&5
40878sed 's/^/| /' conftest.$ac_ext >&5
40879
40880ac_cv_lib_socket_socket=no
40881fi
ac1cb8d3
VS
40882rm -f conftest.err conftest.$ac_objext \
40883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40884LIBS=$ac_check_lib_save_LIBS
40885fi
40886echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40887echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40888if test $ac_cv_lib_socket_socket = yes; then
40889 if test "$INET_LINK" != " -lsocket"; then
40890 INET_LINK="$INET_LINK -lsocket"
40891 fi
40892else
40893
40894 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40895echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40896 wxUSE_SOCKETS=no
40897
40898
40899fi
40900
40901
40902
40903fi
40904
40905 fi
40906fi
40907
40908if test "$wxUSE_SOCKETS" = "yes" ; then
40909 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40910 ac_ext=cc
40911ac_cpp='$CXXCPP $CPPFLAGS'
40912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40915
40916 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40917echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40918if test "${wx_cv_type_getsockname3+set}" = set; then
40919 echo $ECHO_N "(cached) $ECHO_C" >&6
40920else
40921
40922 cat >conftest.$ac_ext <<_ACEOF
40923/* confdefs.h. */
40924_ACEOF
40925cat confdefs.h >>conftest.$ac_ext
40926cat >>conftest.$ac_ext <<_ACEOF
40927/* end confdefs.h. */
40928
40929 #include <sys/types.h>
40930 #include <sys/socket.h>
40931
40932int
40933main ()
40934{
40935
40936 socklen_t len;
40937 getsockname(0, 0, &len);
40938
40939 ;
40940 return 0;
40941}
40942_ACEOF
40943rm -f conftest.$ac_objext
40944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40945 (eval $ac_compile) 2>conftest.er1
a848cd7e 40946 ac_status=$?
ac1cb8d3
VS
40947 grep -v '^ *+' conftest.er1 >conftest.err
40948 rm -f conftest.er1
40949 cat conftest.err >&5
a848cd7e
SC
40950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40951 (exit $ac_status); } &&
be665c07
JS
40952 { ac_try='test -z "$ac_cxx_werror_flag"
40953 || test ! -s conftest.err'
ac1cb8d3
VS
40954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40955 (eval $ac_try) 2>&5
40956 ac_status=$?
40957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40958 (exit $ac_status); }; } &&
40959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40961 (eval $ac_try) 2>&5
40962 ac_status=$?
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); }; }; then
40965 wx_cv_type_getsockname3=socklen_t
40966else
40967 echo "$as_me: failed program was:" >&5
40968sed 's/^/| /' conftest.$ac_ext >&5
40969
40970
6459a506 40971 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40972 if test "$GCC" = yes ; then
6459a506 40973 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40974 fi
40975
40976 cat >conftest.$ac_ext <<_ACEOF
40977/* confdefs.h. */
40978_ACEOF
40979cat confdefs.h >>conftest.$ac_ext
40980cat >>conftest.$ac_ext <<_ACEOF
40981/* end confdefs.h. */
40982
40983 #include <sys/types.h>
40984 #include <sys/socket.h>
40985
40986int
40987main ()
40988{
40989
40990 size_t len;
40991 getsockname(0, 0, &len);
40992
40993 ;
40994 return 0;
40995}
40996_ACEOF
40997rm -f conftest.$ac_objext
40998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40999 (eval $ac_compile) 2>conftest.er1
a848cd7e 41000 ac_status=$?
ac1cb8d3
VS
41001 grep -v '^ *+' conftest.er1 >conftest.err
41002 rm -f conftest.er1
41003 cat conftest.err >&5
a848cd7e
SC
41004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005 (exit $ac_status); } &&
be665c07
JS
41006 { ac_try='test -z "$ac_cxx_werror_flag"
41007 || test ! -s conftest.err'
ac1cb8d3
VS
41008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41009 (eval $ac_try) 2>&5
41010 ac_status=$?
41011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41012 (exit $ac_status); }; } &&
41013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41015 (eval $ac_try) 2>&5
41016 ac_status=$?
41017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018 (exit $ac_status); }; }; then
41019 wx_cv_type_getsockname3=size_t
41020else
41021 echo "$as_me: failed program was:" >&5
41022sed 's/^/| /' conftest.$ac_ext >&5
41023
41024cat >conftest.$ac_ext <<_ACEOF
41025/* confdefs.h. */
41026_ACEOF
41027cat confdefs.h >>conftest.$ac_ext
41028cat >>conftest.$ac_ext <<_ACEOF
41029/* end confdefs.h. */
41030
41031 #include <sys/types.h>
41032 #include <sys/socket.h>
41033
41034int
41035main ()
41036{
41037
41038 int len;
41039 getsockname(0, 0, &len);
41040
41041 ;
41042 return 0;
41043}
41044_ACEOF
41045rm -f conftest.$ac_objext
41046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41047 (eval $ac_compile) 2>conftest.er1
a848cd7e 41048 ac_status=$?
ac1cb8d3
VS
41049 grep -v '^ *+' conftest.er1 >conftest.err
41050 rm -f conftest.er1
41051 cat conftest.err >&5
a848cd7e
SC
41052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053 (exit $ac_status); } &&
be665c07
JS
41054 { ac_try='test -z "$ac_cxx_werror_flag"
41055 || test ! -s conftest.err'
ac1cb8d3
VS
41056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41057 (eval $ac_try) 2>&5
41058 ac_status=$?
41059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060 (exit $ac_status); }; } &&
41061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41063 (eval $ac_try) 2>&5
41064 ac_status=$?
41065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41066 (exit $ac_status); }; }; then
41067 wx_cv_type_getsockname3=int
41068else
41069 echo "$as_me: failed program was:" >&5
41070sed 's/^/| /' conftest.$ac_ext >&5
41071
41072wx_cv_type_getsockname3=unknown
41073
41074fi
ac1cb8d3 41075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41076
41077fi
ac1cb8d3 41078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41079
6459a506 41080 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
41081
41082
41083fi
ac1cb8d3 41084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41085
41086fi
41087echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
41088echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
41089
41090 if test "$wx_cv_type_getsockname3" = "unknown"; then
41091 wxUSE_SOCKETS=no
41092 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
41093echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
41094 else
41095 cat >>confdefs.h <<_ACEOF
9e03e02d 41096#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
41097_ACEOF
41098
41099 fi
41100 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
41101echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
41102if test "${wx_cv_type_getsockopt5+set}" = set; then
41103 echo $ECHO_N "(cached) $ECHO_C" >&6
41104else
41105
41106 cat >conftest.$ac_ext <<_ACEOF
41107/* confdefs.h. */
41108_ACEOF
41109cat confdefs.h >>conftest.$ac_ext
41110cat >>conftest.$ac_ext <<_ACEOF
41111/* end confdefs.h. */
41112
41113 #include <sys/types.h>
41114 #include <sys/socket.h>
41115
41116int
41117main ()
41118{
41119
41120 socklen_t len;
41121 getsockopt(0, 0, 0, 0, &len);
41122
41123 ;
41124 return 0;
41125}
41126_ACEOF
41127rm -f conftest.$ac_objext
41128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41129 (eval $ac_compile) 2>conftest.er1
41130 ac_status=$?
41131 grep -v '^ *+' conftest.er1 >conftest.err
41132 rm -f conftest.er1
41133 cat conftest.err >&5
41134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41135 (exit $ac_status); } &&
be665c07
JS
41136 { ac_try='test -z "$ac_cxx_werror_flag"
41137 || test ! -s conftest.err'
5b674b9d
DE
41138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41139 (eval $ac_try) 2>&5
41140 ac_status=$?
41141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); }; } &&
41143 { ac_try='test -s conftest.$ac_objext'
41144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41145 (eval $ac_try) 2>&5
41146 ac_status=$?
41147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148 (exit $ac_status); }; }; then
41149 wx_cv_type_getsockopt5=socklen_t
41150else
41151 echo "$as_me: failed program was:" >&5
41152sed 's/^/| /' conftest.$ac_ext >&5
41153
41154
6459a506 41155 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 41156 if test "$GCC" = yes ; then
6459a506 41157 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
41158 fi
41159
41160 cat >conftest.$ac_ext <<_ACEOF
41161/* confdefs.h. */
41162_ACEOF
41163cat confdefs.h >>conftest.$ac_ext
41164cat >>conftest.$ac_ext <<_ACEOF
41165/* end confdefs.h. */
41166
41167 #include <sys/types.h>
41168 #include <sys/socket.h>
41169
41170int
41171main ()
41172{
41173
41174 size_t len;
41175 getsockopt(0, 0, 0, 0, &len);
41176
41177 ;
41178 return 0;
41179}
41180_ACEOF
41181rm -f conftest.$ac_objext
41182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41183 (eval $ac_compile) 2>conftest.er1
41184 ac_status=$?
41185 grep -v '^ *+' conftest.er1 >conftest.err
41186 rm -f conftest.er1
41187 cat conftest.err >&5
41188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189 (exit $ac_status); } &&
be665c07
JS
41190 { ac_try='test -z "$ac_cxx_werror_flag"
41191 || test ! -s conftest.err'
5b674b9d
DE
41192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41193 (eval $ac_try) 2>&5
41194 ac_status=$?
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); }; } &&
41197 { ac_try='test -s conftest.$ac_objext'
41198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199 (eval $ac_try) 2>&5
41200 ac_status=$?
41201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202 (exit $ac_status); }; }; then
41203 wx_cv_type_getsockopt5=size_t
41204else
41205 echo "$as_me: failed program was:" >&5
41206sed 's/^/| /' conftest.$ac_ext >&5
41207
41208cat >conftest.$ac_ext <<_ACEOF
41209/* confdefs.h. */
41210_ACEOF
41211cat confdefs.h >>conftest.$ac_ext
41212cat >>conftest.$ac_ext <<_ACEOF
41213/* end confdefs.h. */
41214
41215 #include <sys/types.h>
41216 #include <sys/socket.h>
41217
41218int
41219main ()
41220{
41221
41222 int len;
41223 getsockopt(0, 0, 0, 0, &len);
41224
41225 ;
41226 return 0;
41227}
41228_ACEOF
41229rm -f conftest.$ac_objext
41230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41231 (eval $ac_compile) 2>conftest.er1
41232 ac_status=$?
41233 grep -v '^ *+' conftest.er1 >conftest.err
41234 rm -f conftest.er1
41235 cat conftest.err >&5
41236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41237 (exit $ac_status); } &&
be665c07
JS
41238 { ac_try='test -z "$ac_cxx_werror_flag"
41239 || test ! -s conftest.err'
5b674b9d
DE
41240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41241 (eval $ac_try) 2>&5
41242 ac_status=$?
41243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244 (exit $ac_status); }; } &&
41245 { ac_try='test -s conftest.$ac_objext'
41246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41247 (eval $ac_try) 2>&5
41248 ac_status=$?
41249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41250 (exit $ac_status); }; }; then
41251 wx_cv_type_getsockopt5=int
41252else
41253 echo "$as_me: failed program was:" >&5
41254sed 's/^/| /' conftest.$ac_ext >&5
41255
41256wx_cv_type_getsockopt5=unknown
41257
41258fi
41259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41260
41261fi
41262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41263
6459a506 41264 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
41265
41266
41267fi
41268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41269
41270fi
41271echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
41272echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
41273
41274 if test "$wx_cv_type_getsockopt5" = "unknown"; then
41275 wxUSE_SOCKETS=no
41276 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
41277echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
41278 else
41279 cat >>confdefs.h <<_ACEOF
41280#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
41281_ACEOF
41282
41283 fi
4d4ff94c
VZ
41284 ac_ext=c
41285ac_cpp='$CPP $CPPFLAGS'
41286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41288ac_compiler_gnu=$ac_cv_c_compiler_gnu
41289
a848cd7e
SC
41290 fi
41291fi
41292
41293if test "$wxUSE_SOCKETS" = "yes" ; then
41294 cat >>confdefs.h <<\_ACEOF
41295#define wxUSE_SOCKETS 1
41296_ACEOF
41297
41298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
41299fi
41300
41301if test "$wxUSE_PROTOCOL" = "yes"; then
41302 if test "$wxUSE_SOCKETS" != "yes"; then
41303 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
41304echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
41305 wxUSE_PROTOCOL=no
41306 fi
41307fi
41308
41309if test "$wxUSE_PROTOCOL" = "yes"; then
41310 cat >>confdefs.h <<\_ACEOF
41311#define wxUSE_PROTOCOL 1
41312_ACEOF
41313
41314
41315 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
41316 cat >>confdefs.h <<\_ACEOF
41317#define wxUSE_PROTOCOL_HTTP 1
41318_ACEOF
41319
41320 fi
41321 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
41322 cat >>confdefs.h <<\_ACEOF
41323#define wxUSE_PROTOCOL_FTP 1
41324_ACEOF
41325
41326 fi
41327 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
41328 cat >>confdefs.h <<\_ACEOF
41329#define wxUSE_PROTOCOL_FILE 1
41330_ACEOF
41331
41332 fi
41333else
41334 if test "$wxUSE_FS_INET" = "yes"; then
41335 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
41336echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
41337 wxUSE_FS_INET="no"
41338 fi
41339fi
41340
41341if test "$wxUSE_URL" = "yes"; then
41342 if test "$wxUSE_PROTOCOL" != "yes"; then
41343 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
41344echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
41345 wxUSE_URL=no
41346 fi
41347 if test "$wxUSE_URL" = "yes"; then
41348 cat >>confdefs.h <<\_ACEOF
41349#define wxUSE_URL 1
41350_ACEOF
41351
41352 fi
41353fi
41354
41355if test "$wxUSE_FS_INET" = "yes"; then
41356 cat >>confdefs.h <<\_ACEOF
41357#define wxUSE_FS_INET 1
41358_ACEOF
41359
41360fi
41361
41362
ee45c548
MW
41363if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
41364 wxUSE_JOYSTICK=no
41365
41366 if test "$TOOLKIT" = "MSW"; then
41367 wxUSE_JOYSTICK=yes
41368
41369 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
41370 if test "$USE_DARWIN" = 1; then
41371 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
41372echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
41373 ac_ext=cc
41374ac_cpp='$CXXCPP $CPPFLAGS'
41375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41378
41379 cat >conftest.$ac_ext <<_ACEOF
41380/* confdefs.h. */
41381_ACEOF
41382cat confdefs.h >>conftest.$ac_ext
41383cat >>conftest.$ac_ext <<_ACEOF
41384/* end confdefs.h. */
41385 #include <IOKit/hid/IOHIDLib.h>
41386int
41387main ()
41388{
41389 IOHIDQueueInterface *qi = NULL;
41390 IOHIDCallbackFunction cb = NULL;
41391 qi->setEventCallout(NULL, cb, NULL, NULL);
41392 ;
41393 return 0;
41394}
41395_ACEOF
41396rm -f conftest.$ac_objext
41397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41398 (eval $ac_compile) 2>conftest.er1
41399 ac_status=$?
41400 grep -v '^ *+' conftest.er1 >conftest.err
41401 rm -f conftest.er1
41402 cat conftest.err >&5
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); } &&
be665c07
JS
41405 { ac_try='test -z "$ac_cxx_werror_flag"
41406 || test ! -s conftest.err'
ee45c548
MW
41407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41408 (eval $ac_try) 2>&5
41409 ac_status=$?
41410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411 (exit $ac_status); }; } &&
41412 { ac_try='test -s conftest.$ac_objext'
41413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41414 (eval $ac_try) 2>&5
41415 ac_status=$?
41416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41417 (exit $ac_status); }; }; then
41418 wxUSE_JOYSTICK=yes
a848cd7e 41419
ee45c548
MW
41420else
41421 echo "$as_me: failed program was:" >&5
41422sed 's/^/| /' conftest.$ac_ext >&5
41423
41424fi
41425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41426 ac_ext=c
41427ac_cpp='$CPP $CPPFLAGS'
41428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41430ac_compiler_gnu=$ac_cv_c_compiler_gnu
41431
41432 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41433echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41434 fi
41435
41436 else
a848cd7e
SC
41437
41438for ac_header in linux/joystick.h
41439do
41440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41441if eval "test \"\${$as_ac_Header+set}\" = set"; then
41442 echo "$as_me:$LINENO: checking for $ac_header" >&5
41443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41444if eval "test \"\${$as_ac_Header+set}\" = set"; then
41445 echo $ECHO_N "(cached) $ECHO_C" >&6
41446fi
41447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41449else
41450 # Is the header compilable?
41451echo "$as_me:$LINENO: checking $ac_header usability" >&5
41452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41453cat >conftest.$ac_ext <<_ACEOF
41454/* confdefs.h. */
41455_ACEOF
41456cat confdefs.h >>conftest.$ac_ext
41457cat >>conftest.$ac_ext <<_ACEOF
41458/* end confdefs.h. */
41459$ac_includes_default
41460#include <$ac_header>
41461_ACEOF
41462rm -f conftest.$ac_objext
41463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41464 (eval $ac_compile) 2>conftest.er1
a848cd7e 41465 ac_status=$?
ac1cb8d3
VS
41466 grep -v '^ *+' conftest.er1 >conftest.err
41467 rm -f conftest.er1
41468 cat conftest.err >&5
a848cd7e
SC
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); } &&
be665c07
JS
41471 { ac_try='test -z "$ac_c_werror_flag"
41472 || test ! -s conftest.err'
ac1cb8d3
VS
41473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474 (eval $ac_try) 2>&5
41475 ac_status=$?
41476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477 (exit $ac_status); }; } &&
41478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41480 (eval $ac_try) 2>&5
41481 ac_status=$?
41482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483 (exit $ac_status); }; }; then
41484 ac_header_compiler=yes
41485else
41486 echo "$as_me: failed program was:" >&5
41487sed 's/^/| /' conftest.$ac_ext >&5
41488
41489ac_header_compiler=no
41490fi
ac1cb8d3 41491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41493echo "${ECHO_T}$ac_header_compiler" >&6
41494
41495# Is the header present?
41496echo "$as_me:$LINENO: checking $ac_header presence" >&5
41497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41498cat >conftest.$ac_ext <<_ACEOF
41499/* confdefs.h. */
41500_ACEOF
41501cat confdefs.h >>conftest.$ac_ext
41502cat >>conftest.$ac_ext <<_ACEOF
41503/* end confdefs.h. */
41504#include <$ac_header>
41505_ACEOF
41506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41508 ac_status=$?
41509 grep -v '^ *+' conftest.er1 >conftest.err
41510 rm -f conftest.er1
41511 cat conftest.err >&5
41512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513 (exit $ac_status); } >/dev/null; then
41514 if test -s conftest.err; then
41515 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41517 else
41518 ac_cpp_err=
41519 fi
41520else
41521 ac_cpp_err=yes
41522fi
41523if test -z "$ac_cpp_err"; then
41524 ac_header_preproc=yes
41525else
41526 echo "$as_me: failed program was:" >&5
41527sed 's/^/| /' conftest.$ac_ext >&5
41528
41529 ac_header_preproc=no
41530fi
41531rm -f conftest.err conftest.$ac_ext
41532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41533echo "${ECHO_T}$ac_header_preproc" >&6
41534
41535# So? What about this header?
ac1cb8d3
VS
41536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41537 yes:no: )
a848cd7e
SC
41538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41542 ac_header_preproc=yes
a848cd7e 41543 ;;
ac1cb8d3 41544 no:yes:* )
a848cd7e
SC
41545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41557 (
41558 cat <<\_ASBOX
ac1cb8d3
VS
41559## ----------------------------------------- ##
41560## Report this to wx-dev@lists.wxwidgets.org ##
41561## ----------------------------------------- ##
a848cd7e
SC
41562_ASBOX
41563 ) |
41564 sed "s/^/$as_me: WARNING: /" >&2
41565 ;;
41566esac
41567echo "$as_me:$LINENO: checking for $ac_header" >&5
41568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41569if eval "test \"\${$as_ac_Header+set}\" = set"; then
41570 echo $ECHO_N "(cached) $ECHO_C" >&6
41571else
ac1cb8d3 41572 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41573fi
41574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41576
41577fi
41578if test `eval echo '${'$as_ac_Header'}'` = yes; then
41579 cat >>confdefs.h <<_ACEOF
41580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41581_ACEOF
ee45c548 41582 wxUSE_JOYSTICK=yes
a848cd7e
SC
41583fi
41584
41585done
41586
ee45c548 41587 fi
4cb1d3da 41588
ee45c548
MW
41589 if test "$wxUSE_JOYSTICK" = "yes"; then
41590 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41591#define wxUSE_JOYSTICK 1
41592_ACEOF
41593
ee45c548
MW
41594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41595 else
41596 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41597echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41598 fi
41599fi
41600
41601
41602
41603if test "$wxUSE_FONTMAP" = "yes" ; then
41604 cat >>confdefs.h <<\_ACEOF
41605#define wxUSE_FONTMAP 1
41606_ACEOF
41607
41608fi
41609
41610if test "$wxUSE_UNICODE" = "yes" ; then
41611 cat >>confdefs.h <<\_ACEOF
41612#define wxUSE_UNICODE 1
41613_ACEOF
41614
41615
41616 if test "$USE_WIN32" != 1; then
41617 wxUSE_UNICODE_MSLU=no
41618 fi
41619
41620 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41621 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41622echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41623if test "${ac_cv_lib_unicows_main+set}" = set; then
41624 echo $ECHO_N "(cached) $ECHO_C" >&6
41625else
41626 ac_check_lib_save_LIBS=$LIBS
41627LIBS="-lunicows $LIBS"
41628cat >conftest.$ac_ext <<_ACEOF
41629/* confdefs.h. */
41630_ACEOF
41631cat confdefs.h >>conftest.$ac_ext
41632cat >>conftest.$ac_ext <<_ACEOF
41633/* end confdefs.h. */
41634
41635
41636int
41637main ()
41638{
41639main ();
41640 ;
41641 return 0;
41642}
41643_ACEOF
41644rm -f conftest.$ac_objext conftest$ac_exeext
41645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41646 (eval $ac_link) 2>conftest.er1
a848cd7e 41647 ac_status=$?
ac1cb8d3
VS
41648 grep -v '^ *+' conftest.er1 >conftest.err
41649 rm -f conftest.er1
41650 cat conftest.err >&5
a848cd7e
SC
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); } &&
be665c07
JS
41653 { ac_try='test -z "$ac_c_werror_flag"
41654 || test ! -s conftest.err'
ac1cb8d3
VS
41655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41656 (eval $ac_try) 2>&5
41657 ac_status=$?
41658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659 (exit $ac_status); }; } &&
41660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662 (eval $ac_try) 2>&5
41663 ac_status=$?
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); }; }; then
41666 ac_cv_lib_unicows_main=yes
41667else
41668 echo "$as_me: failed program was:" >&5
41669sed 's/^/| /' conftest.$ac_ext >&5
41670
41671ac_cv_lib_unicows_main=no
41672fi
ac1cb8d3
VS
41673rm -f conftest.err conftest.$ac_objext \
41674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41675LIBS=$ac_check_lib_save_LIBS
41676fi
41677echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41678echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41679if test $ac_cv_lib_unicows_main = yes; then
41680
41681 cat >>confdefs.h <<\_ACEOF
41682#define wxUSE_UNICODE_MSLU 1
41683_ACEOF
41684
41685
41686else
41687
41688 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41689 Applications will only run on Windows NT/2000/XP!" >&5
41690echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41691 Applications will only run on Windows NT/2000/XP!" >&2;}
41692 wxUSE_UNICODE_MSLU=no
41693
41694fi
41695
41696 fi
41697fi
41698
41699if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41700 cat >>confdefs.h <<\_ACEOF
41701#define wxUSE_EXPERIMENTAL_PRINTF 1
41702_ACEOF
41703
41704fi
41705
41706
41707if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41708 cat >>confdefs.h <<\_ACEOF
41709#define wxUSE_POSTSCRIPT 1
41710_ACEOF
41711
41712fi
41713
41714cat >>confdefs.h <<\_ACEOF
41715#define wxUSE_AFM_FOR_POSTSCRIPT 1
41716_ACEOF
41717
41718
41719cat >>confdefs.h <<\_ACEOF
41720#define wxUSE_NORMALIZED_PS_FONTS 1
41721_ACEOF
41722
41723
41724
41725if test "$wxUSE_CONSTRAINTS" = "yes"; then
41726 cat >>confdefs.h <<\_ACEOF
41727#define wxUSE_CONSTRAINTS 1
41728_ACEOF
41729
41730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41731fi
41732
8a7b1113
VZ
41733if test "$wxUSE_MDI" = "yes"; then
41734 cat >>confdefs.h <<\_ACEOF
41735#define wxUSE_MDI 1
41736_ACEOF
41737
41738
41739 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41740 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41741#define wxUSE_MDI_ARCHITECTURE 1
41742_ACEOF
41743
8a7b1113
VZ
41744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41745 fi
a848cd7e
SC
41746fi
41747
41748if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41749 cat >>confdefs.h <<\_ACEOF
41750#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41751_ACEOF
41752
41753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41754 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41756 fi
41757fi
41758
41759if test "$wxUSE_HELP" = "yes"; then
41760 cat >>confdefs.h <<\_ACEOF
41761#define wxUSE_HELP 1
41762_ACEOF
41763
41764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41765
41766 if test "$wxUSE_MSW" = 1; then
41767 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41768 cat >>confdefs.h <<\_ACEOF
41769#define wxUSE_MS_HTML_HELP 1
41770_ACEOF
41771
41772 fi
41773 fi
41774
41775 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41776 if test "$wxUSE_HTML" = "yes"; then
41777 cat >>confdefs.h <<\_ACEOF
41778#define wxUSE_WXHTML_HELP 1
41779_ACEOF
41780
41781 else
41782 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41783echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41784 wxUSE_WXHTML_HELP=no
41785 fi
41786 fi
41787fi
41788
41789if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41790 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41791 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41792echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41793 else
41794 cat >>confdefs.h <<\_ACEOF
41795#define wxUSE_PRINTING_ARCHITECTURE 1
41796_ACEOF
41797
41798 fi
41799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41800fi
41801
41802if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41803 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41804echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41805 { (exit 1); exit 1; }; }
41806fi
41807
41808
efdf6afe
VZ
41809if test "$wxUSE_METAFILE" = "yes"; then
41810 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41811 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41812echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41813 wxUSE_METAFILE=no
41814 fi
41815fi
41816
41817
a848cd7e
SC
41818if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41819 -o "$wxUSE_CLIPBOARD" = "yes" \
41820 -o "$wxUSE_OLE" = "yes" \
41821 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41822
41823for ac_header in ole2.h
41824do
41825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41826if eval "test \"\${$as_ac_Header+set}\" = set"; then
41827 echo "$as_me:$LINENO: checking for $ac_header" >&5
41828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41829if eval "test \"\${$as_ac_Header+set}\" = set"; then
41830 echo $ECHO_N "(cached) $ECHO_C" >&6
41831fi
41832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41834else
41835 # Is the header compilable?
41836echo "$as_me:$LINENO: checking $ac_header usability" >&5
41837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41838cat >conftest.$ac_ext <<_ACEOF
41839/* confdefs.h. */
41840_ACEOF
41841cat confdefs.h >>conftest.$ac_ext
41842cat >>conftest.$ac_ext <<_ACEOF
41843/* end confdefs.h. */
41844$ac_includes_default
41845#include <$ac_header>
41846_ACEOF
41847rm -f conftest.$ac_objext
41848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41849 (eval $ac_compile) 2>conftest.er1
a848cd7e 41850 ac_status=$?
ac1cb8d3
VS
41851 grep -v '^ *+' conftest.er1 >conftest.err
41852 rm -f conftest.er1
41853 cat conftest.err >&5
a848cd7e
SC
41854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855 (exit $ac_status); } &&
be665c07
JS
41856 { ac_try='test -z "$ac_c_werror_flag"
41857 || test ! -s conftest.err'
ac1cb8d3
VS
41858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41859 (eval $ac_try) 2>&5
41860 ac_status=$?
41861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41862 (exit $ac_status); }; } &&
41863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41865 (eval $ac_try) 2>&5
41866 ac_status=$?
41867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41868 (exit $ac_status); }; }; then
41869 ac_header_compiler=yes
41870else
41871 echo "$as_me: failed program was:" >&5
41872sed 's/^/| /' conftest.$ac_ext >&5
41873
41874ac_header_compiler=no
41875fi
ac1cb8d3 41876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41878echo "${ECHO_T}$ac_header_compiler" >&6
41879
41880# Is the header present?
41881echo "$as_me:$LINENO: checking $ac_header presence" >&5
41882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41883cat >conftest.$ac_ext <<_ACEOF
41884/* confdefs.h. */
41885_ACEOF
41886cat confdefs.h >>conftest.$ac_ext
41887cat >>conftest.$ac_ext <<_ACEOF
41888/* end confdefs.h. */
41889#include <$ac_header>
41890_ACEOF
41891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41893 ac_status=$?
41894 grep -v '^ *+' conftest.er1 >conftest.err
41895 rm -f conftest.er1
41896 cat conftest.err >&5
41897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898 (exit $ac_status); } >/dev/null; then
41899 if test -s conftest.err; then
41900 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41902 else
41903 ac_cpp_err=
41904 fi
41905else
41906 ac_cpp_err=yes
41907fi
41908if test -z "$ac_cpp_err"; then
41909 ac_header_preproc=yes
41910else
41911 echo "$as_me: failed program was:" >&5
41912sed 's/^/| /' conftest.$ac_ext >&5
41913
41914 ac_header_preproc=no
41915fi
41916rm -f conftest.err conftest.$ac_ext
41917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41918echo "${ECHO_T}$ac_header_preproc" >&6
41919
41920# So? What about this header?
ac1cb8d3
VS
41921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41922 yes:no: )
a848cd7e
SC
41923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41927 ac_header_preproc=yes
a848cd7e 41928 ;;
ac1cb8d3 41929 no:yes:* )
a848cd7e
SC
41930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41942 (
41943 cat <<\_ASBOX
ac1cb8d3
VS
41944## ----------------------------------------- ##
41945## Report this to wx-dev@lists.wxwidgets.org ##
41946## ----------------------------------------- ##
a848cd7e
SC
41947_ASBOX
41948 ) |
41949 sed "s/^/$as_me: WARNING: /" >&2
41950 ;;
41951esac
41952echo "$as_me:$LINENO: checking for $ac_header" >&5
41953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41954if eval "test \"\${$as_ac_Header+set}\" = set"; then
41955 echo $ECHO_N "(cached) $ECHO_C" >&6
41956else
ac1cb8d3 41957 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41958fi
41959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41961
41962fi
41963if test `eval echo '${'$as_ac_Header'}'` = yes; then
41964 cat >>confdefs.h <<_ACEOF
41965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41966_ACEOF
41967
41968fi
41969
41970done
41971
41972
41973 if test "$ac_cv_header_ole2_h" = "yes" ; then
41974 if test "$GCC" = yes ; then
41975
41976
41977 ac_ext=cc
41978ac_cpp='$CXXCPP $CPPFLAGS'
41979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41982
41983
41984 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41985echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41986 cat >conftest.$ac_ext <<_ACEOF
41987/* confdefs.h. */
41988_ACEOF
41989cat confdefs.h >>conftest.$ac_ext
41990cat >>conftest.$ac_ext <<_ACEOF
41991/* end confdefs.h. */
41992#include <windows.h>
41993 #include <ole2.h>
41994int
41995main ()
41996{
41997
41998 ;
41999 return 0;
42000}
42001_ACEOF
42002rm -f conftest.$ac_objext
42003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42004 (eval $ac_compile) 2>conftest.er1
a848cd7e 42005 ac_status=$?
ac1cb8d3
VS
42006 grep -v '^ *+' conftest.er1 >conftest.err
42007 rm -f conftest.er1
42008 cat conftest.err >&5
a848cd7e
SC
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); } &&
be665c07
JS
42011 { ac_try='test -z "$ac_cxx_werror_flag"
42012 || test ! -s conftest.err'
ac1cb8d3
VS
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42015 ac_status=$?
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; } &&
42018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42020 (eval $ac_try) 2>&5
42021 ac_status=$?
42022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023 (exit $ac_status); }; }; then
42024 echo "$as_me:$LINENO: result: no" >&5
42025echo "${ECHO_T}no" >&6
42026else
42027 echo "$as_me: failed program was:" >&5
42028sed 's/^/| /' conftest.$ac_ext >&5
42029
42030echo "$as_me:$LINENO: result: yes" >&5
42031echo "${ECHO_T}yes" >&6
42032 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
42033fi
ac1cb8d3 42034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42035 ac_ext=c
42036ac_cpp='$CPP $CPPFLAGS'
42037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42039ac_compiler_gnu=$ac_cv_c_compiler_gnu
42040
a848cd7e
SC
42041 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
42042 if test "$wxUSE_OLE" = "yes" ; then
42043 cat >>confdefs.h <<\_ACEOF
42044#define wxUSE_OLE 1
42045_ACEOF
42046
0b78747f 42047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
42048 fi
42049 fi
42050
42051 if test "$wxUSE_DATAOBJ" = "yes" ; then
42052 cat >>confdefs.h <<\_ACEOF
42053#define wxUSE_DATAOBJ 1
42054_ACEOF
42055
42056 fi
42057 else
42058 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
42059echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
42060
42061 wxUSE_CLIPBOARD=no
42062 wxUSE_DRAG_AND_DROP=no
42063 wxUSE_DATAOBJ=no
42064 wxUSE_OLE=no
42065 fi
42066
42067 if test "$wxUSE_METAFILE" = "yes"; then
42068 cat >>confdefs.h <<\_ACEOF
42069#define wxUSE_METAFILE 1
42070_ACEOF
42071
42072
42073 cat >>confdefs.h <<\_ACEOF
42074#define wxUSE_ENH_METAFILE 1
42075_ACEOF
42076
42077 fi
42078fi
42079
42080if test "$wxUSE_IPC" = "yes"; then
0b78747f 42081 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
42082 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
42083echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 42084 wxUSE_IPC=no
a848cd7e
SC
42085 fi
42086
0b78747f
MW
42087 if test "$wxUSE_IPC" = "yes"; then
42088 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42089#define wxUSE_IPC 1
42090_ACEOF
42091
0b78747f
MW
42092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
42093 fi
a848cd7e
SC
42094fi
42095
eb730a0c 42096if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
42097 if test "$wxUSE_MGL" = 1; then
42098 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
42099echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
42100 wxUSE_DATAOBJ=no
42101 else
42102 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
42103#define wxUSE_DATAOBJ 1
42104_ACEOF
42105
2113bc77 42106 fi
eb730a0c
JS
42107else
42108 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
42109echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
42110 wxUSE_CLIPBOARD=no
42111 wxUSE_DRAG_AND_DROP=no
42112fi
42113
a848cd7e
SC
42114if test "$wxUSE_CLIPBOARD" = "yes"; then
42115 if test "$wxUSE_MGL" = 1; then
42116 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
42117echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
42118 wxUSE_CLIPBOARD=no
42119 fi
42120
42121 if test "$wxUSE_CLIPBOARD" = "yes"; then
42122 cat >>confdefs.h <<\_ACEOF
42123#define wxUSE_CLIPBOARD 1
42124_ACEOF
42125
a848cd7e
SC
42126 fi
42127fi
42128
42129if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
42130 if test "$wxUSE_GTK" = 1; then
42131 if test "$WXGTK12" != 1; then
42132 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
42133echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
42134 wxUSE_DRAG_AND_DROP=no
42135 fi
42136 fi
42137
42138 if test "$wxUSE_MOTIF" = 1; then
42139 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
42140echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
42141 wxUSE_DRAG_AND_DROP=no
42142 fi
42143
42144 if test "$wxUSE_X11" = 1; then
42145 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
42146echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
42147 wxUSE_DRAG_AND_DROP=no
42148 fi
42149
42150 if test "$wxUSE_MGL" = 1; then
42151 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
42152echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
42153 wxUSE_DRAG_AND_DROP=no
42154 fi
42155
42156 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
42157 cat >>confdefs.h <<\_ACEOF
42158#define wxUSE_DRAG_AND_DROP 1
42159_ACEOF
42160
42161 fi
42162
42163fi
42164
42165if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
42166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
42167fi
42168
42169if test "$wxUSE_SPLINES" = "yes" ; then
42170 cat >>confdefs.h <<\_ACEOF
42171#define wxUSE_SPLINES 1
42172_ACEOF
42173
42174fi
42175
fbe2ca43
SN
42176if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
42177 cat >>confdefs.h <<\_ACEOF
42178#define wxUSE_MOUSEWHEEL 1
42179_ACEOF
42180
42181fi
42182
a848cd7e
SC
42183
42184USES_CONTROLS=0
42185if test "$wxUSE_CONTROLS" = "yes"; then
42186 USES_CONTROLS=1
42187fi
42188
42189if test "$wxUSE_ACCEL" = "yes"; then
42190 cat >>confdefs.h <<\_ACEOF
42191#define wxUSE_ACCEL 1
42192_ACEOF
42193
42194 USES_CONTROLS=1
42195fi
42196
42197if test "$wxUSE_BUTTON" = "yes"; then
42198 cat >>confdefs.h <<\_ACEOF
42199#define wxUSE_BUTTON 1
42200_ACEOF
42201
42202 USES_CONTROLS=1
42203fi
42204
42205if test "$wxUSE_BMPBUTTON" = "yes"; then
42206 cat >>confdefs.h <<\_ACEOF
42207#define wxUSE_BMPBUTTON 1
42208_ACEOF
42209
42210 USES_CONTROLS=1
42211fi
42212
42213if test "$wxUSE_CALCTRL" = "yes"; then
42214 cat >>confdefs.h <<\_ACEOF
42215#define wxUSE_CALENDARCTRL 1
42216_ACEOF
42217
42218 USES_CONTROLS=1
42219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
42220fi
42221
42222if test "$wxUSE_CARET" = "yes"; then
42223 cat >>confdefs.h <<\_ACEOF
42224#define wxUSE_CARET 1
42225_ACEOF
42226
42227 USES_CONTROLS=1
42228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
42229fi
42230
42231if test "$wxUSE_COMBOBOX" = "yes"; then
42232 cat >>confdefs.h <<\_ACEOF
42233#define wxUSE_COMBOBOX 1
42234_ACEOF
42235
42236 USES_CONTROLS=1
42237fi
42238
42239if test "$wxUSE_CHOICE" = "yes"; then
42240 cat >>confdefs.h <<\_ACEOF
42241#define wxUSE_CHOICE 1
42242_ACEOF
42243
42244 USES_CONTROLS=1
42245fi
42246
92bbdbcd
WS
42247if test "$wxUSE_CHOICEBOOK" = "yes"; then
42248 cat >>confdefs.h <<\_ACEOF
42249#define wxUSE_CHOICEBOOK 1
42250_ACEOF
42251
42252 USES_CONTROLS=1
42253fi
42254
a848cd7e
SC
42255if test "$wxUSE_CHECKBOX" = "yes"; then
42256 cat >>confdefs.h <<\_ACEOF
42257#define wxUSE_CHECKBOX 1
42258_ACEOF
42259
42260 USES_CONTROLS=1
42261fi
42262
42263if test "$wxUSE_CHECKLST" = "yes"; then
42264 cat >>confdefs.h <<\_ACEOF
42265#define wxUSE_CHECKLISTBOX 1
42266_ACEOF
42267
42268 USES_CONTROLS=1
42269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
42270fi
42271
da98e9be
VZ
42272if test "$wxUSE_DATEPICKCTRL" = "yes"; then
42273 cat >>confdefs.h <<\_ACEOF
42274#define wxUSE_DATEPICKCTRL 1
42275_ACEOF
42276
42277 USES_CONTROLS=1
42278fi
42279
a848cd7e
SC
42280if test "$wxUSE_DISPLAY" = "yes"; then
42281 cat >>confdefs.h <<\_ACEOF
42282#define wxUSE_DISPLAY 1
42283_ACEOF
42284
0b78747f 42285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
42286fi
42287
42288if test "$wxUSE_GAUGE" = "yes"; then
42289 cat >>confdefs.h <<\_ACEOF
42290#define wxUSE_GAUGE 1
42291_ACEOF
42292
42293 USES_CONTROLS=1
42294fi
42295
42296if test "$wxUSE_GRID" = "yes"; then
42297 cat >>confdefs.h <<\_ACEOF
42298#define wxUSE_GRID 1
42299_ACEOF
42300
42301 USES_CONTROLS=1
42302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
42303fi
42304
42305if test "$wxUSE_IMAGLIST" = "yes"; then
42306 cat >>confdefs.h <<\_ACEOF
42307#define wxUSE_IMAGLIST 1
42308_ACEOF
42309
42310fi
42311
42312if test "$wxUSE_LISTBOOK" = "yes"; then
42313 cat >>confdefs.h <<\_ACEOF
42314#define wxUSE_LISTBOOK 1
42315_ACEOF
42316
42317 USES_CONTROLS=1
42318fi
42319
42320if test "$wxUSE_LISTBOX" = "yes"; then
42321 cat >>confdefs.h <<\_ACEOF
42322#define wxUSE_LISTBOX 1
42323_ACEOF
42324
42325 USES_CONTROLS=1
0b78747f 42326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
42327fi
42328
42329if test "$wxUSE_LISTCTRL" = "yes"; then
42330 if test "$wxUSE_IMAGLIST" = "yes"; then
42331 cat >>confdefs.h <<\_ACEOF
42332#define wxUSE_LISTCTRL 1
42333_ACEOF
42334
42335 USES_CONTROLS=1
42336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
42337 else
42338 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
42339echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
42340 fi
42341fi
42342
42343if test "$wxUSE_NOTEBOOK" = "yes"; then
42344 cat >>confdefs.h <<\_ACEOF
42345#define wxUSE_NOTEBOOK 1
42346_ACEOF
42347
42348 USES_CONTROLS=1
42349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
42350fi
42351
42352
42353if test "$wxUSE_RADIOBOX" = "yes"; then
42354 cat >>confdefs.h <<\_ACEOF
42355#define wxUSE_RADIOBOX 1
42356_ACEOF
42357
42358 USES_CONTROLS=1
42359fi
42360
42361if test "$wxUSE_RADIOBTN" = "yes"; then
42362 cat >>confdefs.h <<\_ACEOF
42363#define wxUSE_RADIOBTN 1
42364_ACEOF
42365
42366 USES_CONTROLS=1
42367fi
42368
42369if test "$wxUSE_SASH" = "yes"; then
42370 cat >>confdefs.h <<\_ACEOF
42371#define wxUSE_SASH 1
42372_ACEOF
42373
42374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
42375fi
42376
42377if test "$wxUSE_SCROLLBAR" = "yes"; then
42378 cat >>confdefs.h <<\_ACEOF
42379#define wxUSE_SCROLLBAR 1
42380_ACEOF
42381
42382 USES_CONTROLS=1
42383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
42384fi
42385
42386if test "$wxUSE_SLIDER" = "yes"; then
42387 cat >>confdefs.h <<\_ACEOF
42388#define wxUSE_SLIDER 1
42389_ACEOF
42390
42391 USES_CONTROLS=1
42392fi
42393
42394if test "$wxUSE_SPINBTN" = "yes"; then
42395 cat >>confdefs.h <<\_ACEOF
42396#define wxUSE_SPINBTN 1
42397_ACEOF
42398
42399 USES_CONTROLS=1
42400fi
42401
42402if test "$wxUSE_SPINCTRL" = "yes"; then
42403 cat >>confdefs.h <<\_ACEOF
42404#define wxUSE_SPINCTRL 1
42405_ACEOF
42406
42407 USES_CONTROLS=1
42408fi
42409
42410if test "$wxUSE_SPLITTER" = "yes"; then
42411 cat >>confdefs.h <<\_ACEOF
42412#define wxUSE_SPLITTER 1
42413_ACEOF
42414
42415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42416fi
42417
42418if test "$wxUSE_STATBMP" = "yes"; then
42419 cat >>confdefs.h <<\_ACEOF
42420#define wxUSE_STATBMP 1
42421_ACEOF
42422
42423 USES_CONTROLS=1
42424fi
42425
42426if test "$wxUSE_STATBOX" = "yes"; then
42427 cat >>confdefs.h <<\_ACEOF
42428#define wxUSE_STATBOX 1
42429_ACEOF
42430
42431 USES_CONTROLS=1
42432fi
42433
42434if test "$wxUSE_STATTEXT" = "yes"; then
42435 cat >>confdefs.h <<\_ACEOF
42436#define wxUSE_STATTEXT 1
42437_ACEOF
42438
42439 USES_CONTROLS=1
42440fi
42441
42442if test "$wxUSE_STATLINE" = "yes"; then
42443 cat >>confdefs.h <<\_ACEOF
42444#define wxUSE_STATLINE 1
42445_ACEOF
42446
42447 USES_CONTROLS=1
42448fi
42449
42450if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42451 cat >>confdefs.h <<\_ACEOF
42452#define wxUSE_NATIVE_STATUSBAR 1
42453_ACEOF
42454
a848cd7e
SC
42455 cat >>confdefs.h <<\_ACEOF
42456#define wxUSE_STATUSBAR 1
42457_ACEOF
42458
42459 USES_CONTROLS=1
42460
42461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42462fi
42463
42464if test "$wxUSE_TABDIALOG" = "yes"; then
42465 cat >>confdefs.h <<\_ACEOF
42466#define wxUSE_TAB_DIALOG 1
42467_ACEOF
42468
a848cd7e
SC
42469fi
42470
42471if test "$wxUSE_TEXTCTRL" = "yes"; then
42472 cat >>confdefs.h <<\_ACEOF
42473#define wxUSE_TEXTCTRL 1
42474_ACEOF
42475
42476 USES_CONTROLS=1
42477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42478fi
42479
42480if test "$wxUSE_TOGGLEBTN" = "yes"; then
42481 if test "$wxUSE_COCOA" = 1 ; then
42482 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42483echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42484 wxUSE_TOGGLEBTN=no
42485 fi
42486 if test "$wxUSE_UNIVERSAL" = "yes"; then
42487 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42488echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42489 wxUSE_TOGGLEBTN=no
42490 fi
42491
42492 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42493 cat >>confdefs.h <<\_ACEOF
42494#define wxUSE_TOGGLEBTN 1
42495_ACEOF
42496
42497 USES_CONTROLS=1
42498 fi
42499fi
42500
42501if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42502 cat >>confdefs.h <<\_ACEOF
42503#define wxUSE_TOOLBAR_SIMPLE 1
42504_ACEOF
42505
42506 wxUSE_TOOLBAR="yes"
42507 USES_CONTROLS=1
42508fi
42509
42510if test "$wxUSE_TOOLBAR" = "yes"; then
42511 cat >>confdefs.h <<\_ACEOF
42512#define wxUSE_TOOLBAR 1
42513_ACEOF
42514
42515 USES_CONTROLS=1
42516
42517 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42518 wxUSE_TOOLBAR_NATIVE="yes"
42519 fi
42520
42521 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42522 cat >>confdefs.h <<\_ACEOF
42523#define wxUSE_TOOLBAR_NATIVE 1
42524_ACEOF
42525
42526 USES_CONTROLS=1
42527 fi
42528
42529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42530fi
42531
42532if test "$wxUSE_TOOLTIPS" = "yes"; then
42533 if test "$wxUSE_MOTIF" = 1; then
42534 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42535echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42536 else
42537 if test "$wxUSE_UNIVERSAL" = "yes"; then
42538 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42539echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42540 else
42541 cat >>confdefs.h <<\_ACEOF
42542#define wxUSE_TOOLTIPS 1
42543_ACEOF
42544
42545 fi
42546 fi
42547fi
42548
0093c2fc
VZ
42549if test "$wxUSE_TREEBOOK" = "yes"; then
42550 cat >>confdefs.h <<\_ACEOF
42551#define wxUSE_TREEBOOK 1
42552_ACEOF
42553
42554 USES_CONTROLS=1
42555fi
42556
a848cd7e
SC
42557if test "$wxUSE_TREECTRL" = "yes"; then
42558 if test "$wxUSE_IMAGLIST" = "yes"; then
42559 cat >>confdefs.h <<\_ACEOF
42560#define wxUSE_TREECTRL 1
42561_ACEOF
42562
42563 USES_CONTROLS=1
42564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42565 else
42566 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42567echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42568 fi
42569fi
42570
42571if test "$wxUSE_POPUPWIN" = "yes"; then
42572 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42573 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42574echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42575 else
42576 if test "$wxUSE_PM" = 1; then
42577 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42578echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42579 else
42580 cat >>confdefs.h <<\_ACEOF
42581#define wxUSE_POPUPWIN 1
42582_ACEOF
42583
0b78747f 42584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42585
42586 USES_CONTROLS=1
42587 fi
42588 fi
42589fi
42590
0dcd06dd 42591if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42592 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42593 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42594echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42595 else
42596 cat >>confdefs.h <<\_ACEOF
42597#define wxUSE_DIALUP_MANAGER 1
42598_ACEOF
42599
42600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42601 fi
42602fi
42603
a848cd7e
SC
42604if test "$wxUSE_TIPWINDOW" = "yes"; then
42605 if test "$wxUSE_PM" = 1; then
42606 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42607echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42608 else
42609 cat >>confdefs.h <<\_ACEOF
42610#define wxUSE_TIPWINDOW 1
42611_ACEOF
42612
42613 fi
42614fi
42615
42616if test "$USES_CONTROLS" = 1; then
42617 cat >>confdefs.h <<\_ACEOF
42618#define wxUSE_CONTROLS 1
42619_ACEOF
42620
42621fi
42622
42623
42624if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42625 cat >>confdefs.h <<\_ACEOF
42626#define wxUSE_ACCESSIBILITY 1
42627_ACEOF
42628
42629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42630fi
42631
38b4a946
VZ
42632if test "$wxUSE_DC_CACHEING" = "yes"; then
42633 cat >>confdefs.h <<\_ACEOF
42634#define wxUSE_DC_CACHEING 1
42635_ACEOF
42636
42637fi
42638
a848cd7e
SC
42639if test "$wxUSE_DRAGIMAGE" = "yes"; then
42640 cat >>confdefs.h <<\_ACEOF
42641#define wxUSE_DRAGIMAGE 1
42642_ACEOF
42643
42644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42645fi
42646
42647if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42648 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42649 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42650echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42651 else
42652 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42653#define wxUSE_EXCEPTIONS 1
42654_ACEOF
42655
07bea8f0
VS
42656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42657 fi
a848cd7e
SC
42658fi
42659
42660USE_HTML=0
42661if test "$wxUSE_HTML" = "yes"; then
42662 cat >>confdefs.h <<\_ACEOF
42663#define wxUSE_HTML 1
42664_ACEOF
42665
42666 USE_HTML=1
42667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42668 if test "$wxUSE_MAC" = 1; then
42669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42670 fi
a848cd7e 42671fi
646b6ec1 42672if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42673 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42674 old_CPPFLAGS="$CPPFLAGS"
42675 CPPFLAGS="$CPPFLAGS -x objective-c++"
42676 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42677echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42678if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42679 echo $ECHO_N "(cached) $ECHO_C" >&6
42680else
42681 cat >conftest.$ac_ext <<_ACEOF
42682/* confdefs.h. */
42683_ACEOF
42684cat confdefs.h >>conftest.$ac_ext
42685cat >>conftest.$ac_ext <<_ACEOF
42686/* end confdefs.h. */
42687#include <Carbon/Carbon.h>
42688
42689#include <WebKit/HIWebView.h>
42690_ACEOF
42691rm -f conftest.$ac_objext
42692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42693 (eval $ac_compile) 2>conftest.er1
42694 ac_status=$?
42695 grep -v '^ *+' conftest.er1 >conftest.err
42696 rm -f conftest.er1
42697 cat conftest.err >&5
42698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42699 (exit $ac_status); } &&
be665c07
JS
42700 { ac_try='test -z "$ac_c_werror_flag"
42701 || test ! -s conftest.err'
07bea8f0
VS
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42704 ac_status=$?
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; } &&
42707 { ac_try='test -s conftest.$ac_objext'
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; }; then
42713 ac_cv_header_WebKit_HIWebView_h=yes
42714else
42715 echo "$as_me: failed program was:" >&5
42716sed 's/^/| /' conftest.$ac_ext >&5
42717
42718ac_cv_header_WebKit_HIWebView_h=no
42719fi
42720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42721fi
42722echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42723echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42724if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42725
42726 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42727#define wxUSE_WEBKIT 1
42728_ACEOF
42729
07bea8f0
VS
42730 WEBKIT_LINK="-framework WebKit"
42731
42732else
42733
42734 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42735echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42736 wxUSE_WEBKIT=no
42737
646b6ec1
VS
42738fi
42739
07bea8f0
VS
42740
42741 CPPFLAGS="$old_CPPFLAGS"
42742 elif test "$wxUSE_COCOA" = 1; then
42743 cat >>confdefs.h <<\_ACEOF
42744#define wxUSE_WEBKIT 1
42745_ACEOF
42746
42747 else
42748 wxUSE_WEBKIT=no
42749 fi
42750fi
42751
9a8f0513
VS
42752USE_XRC=0
42753if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42754 if test "$wxUSE_XML" != "yes"; then
42755 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42756echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42757 wxUSE_XRC=no
42758 else
42759 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42760#define wxUSE_XRC 1
42761_ACEOF
42762
d2ebf0b7
VS
42763 USE_XRC=1
42764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42765 fi
9a8f0513 42766fi
07bea8f0 42767
a848cd7e
SC
42768if test "$wxUSE_MENUS" = "yes"; then
42769 cat >>confdefs.h <<\_ACEOF
42770#define wxUSE_MENUS 1
42771_ACEOF
42772
42773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42774fi
42775
42776if test "$wxUSE_METAFILE" = "yes"; then
42777 cat >>confdefs.h <<\_ACEOF
42778#define wxUSE_METAFILE 1
42779_ACEOF
42780
42781fi
42782
42783if test "$wxUSE_MIMETYPE" = "yes"; then
42784 cat >>confdefs.h <<\_ACEOF
42785#define wxUSE_MIMETYPE 1
42786_ACEOF
42787
42788fi
42789
42790if test "$wxUSE_MINIFRAME" = "yes"; then
42791 cat >>confdefs.h <<\_ACEOF
42792#define wxUSE_MINIFRAME 1
42793_ACEOF
42794
42795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42796fi
42797
42798if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42799 cat >>confdefs.h <<\_ACEOF
42800#define wxUSE_SYSTEM_OPTIONS 1
42801_ACEOF
42802
42803 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42804 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42806 fi
42807fi
42808
42809
42810if test "$wxUSE_VALIDATORS" = "yes"; then
42811 cat >>confdefs.h <<\_ACEOF
42812#define wxUSE_VALIDATORS 1
42813_ACEOF
42814
42815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42816fi
42817
42818if test "$wxUSE_PALETTE" = "yes" ; then
42819 cat >>confdefs.h <<\_ACEOF
42820#define wxUSE_PALETTE 1
42821_ACEOF
42822
42823fi
42824
42825if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42826 LIBS=" -lunicows $LIBS"
42827fi
42828
91dea314
MW
42829USE_RICHTEXT=0
42830if test "$wxUSE_RICHTEXT" = "yes"; then
42831 cat >>confdefs.h <<\_ACEOF
42832#define wxUSE_RICHTEXT 1
42833_ACEOF
42834
42835 USE_RICHTEXT=1
42836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
42837fi
42838
a848cd7e
SC
42839
42840if test "$wxUSE_IMAGE" = "yes" ; then
42841 cat >>confdefs.h <<\_ACEOF
42842#define wxUSE_IMAGE 1
42843_ACEOF
42844
42845
42846 if test "$wxUSE_GIF" = "yes" ; then
42847 cat >>confdefs.h <<\_ACEOF
42848#define wxUSE_GIF 1
42849_ACEOF
42850
42851 fi
42852
42853 if test "$wxUSE_PCX" = "yes" ; then
42854 cat >>confdefs.h <<\_ACEOF
42855#define wxUSE_PCX 1
42856_ACEOF
42857
42858 fi
42859
42860 if test "$wxUSE_IFF" = "yes" ; then
42861 cat >>confdefs.h <<\_ACEOF
42862#define wxUSE_IFF 1
42863_ACEOF
42864
42865 fi
42866
42867 if test "$wxUSE_PNM" = "yes" ; then
42868 cat >>confdefs.h <<\_ACEOF
42869#define wxUSE_PNM 1
42870_ACEOF
42871
42872 fi
42873
42874 if test "$wxUSE_XPM" = "yes" ; then
42875 cat >>confdefs.h <<\_ACEOF
42876#define wxUSE_XPM 1
42877_ACEOF
42878
42879 fi
42880
42881 if test "$wxUSE_ICO_CUR" = "yes" ; then
42882 cat >>confdefs.h <<\_ACEOF
42883#define wxUSE_ICO_CUR 1
42884_ACEOF
42885
42886 fi
42887fi
42888
42889
42890if test "$wxUSE_CHOICEDLG" = "yes"; then
42891 cat >>confdefs.h <<\_ACEOF
42892#define wxUSE_CHOICEDLG 1
42893_ACEOF
42894
42895fi
42896
42897if test "$wxUSE_COLOURDLG" = "yes"; then
42898 cat >>confdefs.h <<\_ACEOF
42899#define wxUSE_COLOURDLG 1
42900_ACEOF
42901
42902fi
42903
42904if test "$wxUSE_FILEDLG" = "yes"; then
42905 cat >>confdefs.h <<\_ACEOF
42906#define wxUSE_FILEDLG 1
42907_ACEOF
42908
42909fi
42910
42911if test "$wxUSE_FINDREPLDLG" = "yes"; then
42912 cat >>confdefs.h <<\_ACEOF
42913#define wxUSE_FINDREPLDLG 1
42914_ACEOF
42915
42916fi
42917
42918if test "$wxUSE_FONTDLG" = "yes"; then
42919 cat >>confdefs.h <<\_ACEOF
42920#define wxUSE_FONTDLG 1
42921_ACEOF
42922
42923fi
42924
42925if test "$wxUSE_DIRDLG" = "yes"; then
42926 if test "$wxUSE_TREECTRL" != "yes"; then
42927 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42928echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42929 else
42930 cat >>confdefs.h <<\_ACEOF
42931#define wxUSE_DIRDLG 1
42932_ACEOF
42933
42934 fi
42935fi
42936
42937if test "$wxUSE_MSGDLG" = "yes"; then
42938 cat >>confdefs.h <<\_ACEOF
42939#define wxUSE_MSGDLG 1
42940_ACEOF
42941
42942fi
42943
42944if test "$wxUSE_NUMBERDLG" = "yes"; then
42945 cat >>confdefs.h <<\_ACEOF
42946#define wxUSE_NUMBERDLG 1
42947_ACEOF
42948
42949fi
42950
42951if test "$wxUSE_PROGRESSDLG" = "yes"; then
42952 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42953 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42954echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42955 else
42956 cat >>confdefs.h <<\_ACEOF
42957#define wxUSE_PROGRESSDLG 1
42958_ACEOF
42959
42960 fi
42961fi
42962
42963if test "$wxUSE_SPLASH" = "yes"; then
42964 cat >>confdefs.h <<\_ACEOF
42965#define wxUSE_SPLASH 1
42966_ACEOF
42967
2057db16 42968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42969fi
42970
42971if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42972 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42973 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42974echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42975 else
42976 cat >>confdefs.h <<\_ACEOF
42977#define wxUSE_STARTUP_TIPS 1
42978_ACEOF
42979
42980 fi
42981fi
42982
42983if test "$wxUSE_TEXTDLG" = "yes"; then
42984 cat >>confdefs.h <<\_ACEOF
42985#define wxUSE_TEXTDLG 1
42986_ACEOF
42987
42988fi
42989
42990if test "$wxUSE_WIZARDDLG" = "yes"; then
42991 cat >>confdefs.h <<\_ACEOF
42992#define wxUSE_WIZARDDLG 1
42993_ACEOF
42994
42995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42996fi
42997
42998
ce756cb0 42999if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
43000 if test "$wxUSE_GTK" = 1; then
43001 wxUSE_GSTREAMER="yes"
43002
ce756cb0 43003
dae87f93 43004 succeeded=no
ce756cb0 43005
dae87f93
RN
43006 if test -z "$PKG_CONFIG"; then
43007 # Extract the first word of "pkg-config", so it can be a program name with args.
43008set dummy pkg-config; ac_word=$2
43009echo "$as_me:$LINENO: checking for $ac_word" >&5
43010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43011if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43012 echo $ECHO_N "(cached) $ECHO_C" >&6
43013else
43014 case $PKG_CONFIG in
43015 [\\/]* | ?:[\\/]*)
43016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43017 ;;
43018 *)
43019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43020for as_dir in $PATH
43021do
43022 IFS=$as_save_IFS
43023 test -z "$as_dir" && as_dir=.
43024 for ac_exec_ext in '' $ac_executable_extensions; do
43025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43028 break 2
43029 fi
43030done
43031done
43032
43033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
43034 ;;
43035esac
43036fi
43037PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43038
43039if test -n "$PKG_CONFIG"; then
43040 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43041echo "${ECHO_T}$PKG_CONFIG" >&6
43042else
43043 echo "$as_me:$LINENO: result: no" >&5
43044echo "${ECHO_T}no" >&6
43045fi
43046
43047 fi
43048
43049 if test "$PKG_CONFIG" = "no" ; then
43050 echo "*** The pkg-config script could not be found. Make sure it is"
43051 echo "*** in your path, or set the PKG_CONFIG environment variable"
43052 echo "*** to the full path to pkg-config."
43053 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
43054 else
43055 PKG_CONFIG_MIN_VERSION=0.9.0
43056 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
43057 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
43058echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
43059
43060 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
43061 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 43062echo "${ECHO_T}yes" >&6
dae87f93 43063 succeeded=yes
ce756cb0 43064
dae87f93
RN
43065 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
43066echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
43067 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
43068 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
43069echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
43070
43071 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
43072echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
43073 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
43074 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
43075echo "${ECHO_T}$GSTREAMER_LIBS" >&6
43076 else
43077 GSTREAMER_CFLAGS=""
43078 GSTREAMER_LIBS=""
43079 ## If we have a custom action on failure, don't print errors, but
43080 ## do set a variable so people can do so.
43081 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 43082
dae87f93
RN
43083 fi
43084
43085
43086
43087 else
43088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
43089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
43090 fi
43091 fi
43092
43093 if test $succeeded = yes; then
43094
43095 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
43096 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 43097
ce756cb0 43098 else
dae87f93
RN
43099
43100 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
43101echo "$as_me: WARNING: GStreamer installation not found" >&2;}
43102 wxUSE_GSTREAMER="no"
43103
43104 fi
43105
43106
43107
43108
43109
43110 if test "x$GST_INSPECT" == "x"; then
43111 # Extract the first word of "gst-inspect", so it can be a program name with args.
43112set dummy gst-inspect; ac_word=$2
43113echo "$as_me:$LINENO: checking for $ac_word" >&5
43114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43115if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
43116 echo $ECHO_N "(cached) $ECHO_C" >&6
43117else
43118 if test -n "$GST_INSPECT"; then
43119 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
43120else
43121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43122for as_dir in $PATH
43123do
43124 IFS=$as_save_IFS
43125 test -z "$as_dir" && as_dir=.
43126 for ac_exec_ext in '' $ac_executable_extensions; do
43127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43128 ac_cv_prog_GST_INSPECT="gst-inspect"
43129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43130 break 2
ce756cb0 43131 fi
dae87f93
RN
43132done
43133done
43134
43135fi
43136fi
43137GST_INSPECT=$ac_cv_prog_GST_INSPECT
43138if test -n "$GST_INSPECT"; then
43139 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
43140echo "${ECHO_T}$GST_INSPECT" >&6
43141else
43142 echo "$as_me:$LINENO: result: no" >&5
43143echo "${ECHO_T}no" >&6
43144fi
43145
43146 fi
43147
43148 if test "x$GST_INSPECT" != "x"; then
43149 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
43150echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
43151 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
43152 echo "$as_me:$LINENO: result: found." >&5
43153echo "${ECHO_T}found." >&6
ce756cb0 43154
ce756cb0 43155 else
dae87f93
RN
43156 echo "$as_me:$LINENO: result: not found." >&5
43157echo "${ECHO_T}not found." >&6
43158
43159 wxUSE_GSTREAMER="no"
43160 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
43161echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
43162
43163 fi
43164 fi
43165
43166
43167 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
43168echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
43169if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
43170 echo $ECHO_N "(cached) $ECHO_C" >&6
43171else
43172 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
43173/* confdefs.h. */
43174_ACEOF
43175cat confdefs.h >>conftest.$ac_ext
43176cat >>conftest.$ac_ext <<_ACEOF
43177/* end confdefs.h. */
dae87f93 43178#include <gst/gst.h>
ce756cb0 43179
dae87f93 43180#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
43181_ACEOF
43182rm -f conftest.$ac_objext
43183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43184 (eval $ac_compile) 2>conftest.er1
43185 ac_status=$?
43186 grep -v '^ *+' conftest.er1 >conftest.err
43187 rm -f conftest.er1
43188 cat conftest.err >&5
43189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190 (exit $ac_status); } &&
be665c07
JS
43191 { ac_try='test -z "$ac_c_werror_flag"
43192 || test ! -s conftest.err'
ce756cb0
RN
43193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43194 (eval $ac_try) 2>&5
43195 ac_status=$?
43196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43197 (exit $ac_status); }; } &&
43198 { ac_try='test -s conftest.$ac_objext'
43199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43200 (eval $ac_try) 2>&5
43201 ac_status=$?
43202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43203 (exit $ac_status); }; }; then
dae87f93 43204 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
43205else
43206 echo "$as_me: failed program was:" >&5
43207sed 's/^/| /' conftest.$ac_ext >&5
43208
dae87f93 43209ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
43210fi
43211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
43212fi
43213echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
43214echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
43215if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
43216 :
43217else
ce756cb0 43218
dae87f93
RN
43219 wxUSE_GSTREAMER="no"
43220 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
43221echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 43222
dae87f93 43223fi
ce756cb0 43224
dae87f93
RN
43225
43226
43227 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
43228echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
43229
0ad5d837
VZ
43230 ac_find_libraries=
43231 for ac_dir in $SEARCH_LIB;
ce756cb0 43232 do
3eca31dc 43233 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
43234 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
43235 ac_find_libraries=$ac_dir
43236 break 2
43237 fi
43238 done
43239 done
43240
ce756cb0 43241
dae87f93
RN
43242 if test "$ac_find_libraries" = "" ; then
43243 echo "$as_me:$LINENO: result: no" >&5
43244echo "${ECHO_T}no" >&6
43245 wxUSE_GSTREAMER="no"
43246 else
43247 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 43248echo "${ECHO_T}yes" >&6
dae87f93 43249 fi
ce756cb0 43250
dae87f93
RN
43251 if test "$wxUSE_GSTREAMER" = "yes"; then
43252 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
43253#define wxUSE_GSTREAMER 1
43254_ACEOF
43255
dae87f93
RN
43256 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
43257echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
43258 fi
43259 fi
43260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
43261 cat >>confdefs.h <<\_ACEOF
43262#define wxUSE_MEDIACTRL 1
43263_ACEOF
43264
43265fi
43266
43267
a848cd7e
SC
43268if test "$cross_compiling" = "yes"; then
43269 OSINFO="\"$host\""
43270else
43271 OSINFO=`uname -s -r -m`
43272 OSINFO="\"$OSINFO\""
43273fi
43274
43275cat >>confdefs.h <<_ACEOF
43276#define WXWIN_OS_DESCRIPTION $OSINFO
43277_ACEOF
43278
43279
43280
43281if test "x$prefix" != "xNONE"; then
43282 wxPREFIX=$prefix
43283else
43284 wxPREFIX=$ac_default_prefix
43285fi
43286
43287cat >>confdefs.h <<_ACEOF
43288#define wxINSTALL_PREFIX "$wxPREFIX"
43289_ACEOF
43290
43291
a848cd7e
SC
43292
43293
43294CORE_BASE_LIBS="net base"
43295CORE_GUI_LIBS="adv core"
43296
43297if test "$wxUSE_XML" = "yes" ; then
43298 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
43299fi
43300if test "$wxUSE_ODBC" != "no" ; then
43301 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
43302 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
43303fi
43304if test "$wxUSE_HTML" = "yes" ; then
43305 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
43306fi
61639efb
VZ
43307if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43308 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
43309fi
9a8f0513
VS
43310if test "$wxUSE_XRC" = "yes" ; then
43311 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
43312fi
a848cd7e
SC
43313
43314if test "$wxUSE_GUI" != "yes"; then
43315 CORE_GUI_LIBS=""
43316fi
43317
43318
43319
43320
43321
43322
43323
43324
43325if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 43326 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
43327 if test "$USE_DARWIN" = 1; then
43328 LDFLAGS="$LDFLAGS -framework QuickTime"
43329 else
43330 LDFLAGS="$LDFLAGS -lQuickTimeLib"
43331 fi
07bea8f0 43332 fi
5dcf30a0 43333 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
43334 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
43335 else
43336 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 43337 fi
a848cd7e
SC
43338fi
43339if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 43340 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
43341 if test "$wxUSE_MEDIACTRL" = "yes"; then
43342 LDFLAGS="$LDFLAGS -framework QuickTime"
43343 fi
a848cd7e 43344fi
19b27e78
MW
43345if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
43346 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
43347fi
a848cd7e
SC
43348
43349
43350LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
43351
43352have_cos=0
43353have_floor=0
43354
43355for ac_func in cos
43356do
43357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43358echo "$as_me:$LINENO: checking for $ac_func" >&5
43359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43360if eval "test \"\${$as_ac_var+set}\" = set"; then
43361 echo $ECHO_N "(cached) $ECHO_C" >&6
43362else
43363 cat >conftest.$ac_ext <<_ACEOF
43364/* confdefs.h. */
43365_ACEOF
43366cat confdefs.h >>conftest.$ac_ext
43367cat >>conftest.$ac_ext <<_ACEOF
43368/* end confdefs.h. */
ac1cb8d3
VS
43369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43371#define $ac_func innocuous_$ac_func
43372
a848cd7e
SC
43373/* System header to define __stub macros and hopefully few prototypes,
43374 which can conflict with char $ac_func (); below.
43375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43376 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43377
a848cd7e
SC
43378#ifdef __STDC__
43379# include <limits.h>
43380#else
43381# include <assert.h>
43382#endif
ac1cb8d3
VS
43383
43384#undef $ac_func
43385
a848cd7e
SC
43386/* Override any gcc2 internal prototype to avoid an error. */
43387#ifdef __cplusplus
43388extern "C"
43389{
43390#endif
43391/* We use char because int might match the return type of a gcc2
43392 builtin and then its argument prototype would still apply. */
43393char $ac_func ();
43394/* The GNU C library defines this for functions which it implements
43395 to always fail with ENOSYS. Some functions are actually named
43396 something starting with __ and the normal name is an alias. */
43397#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43398choke me
43399#else
43400char (*f) () = $ac_func;
43401#endif
43402#ifdef __cplusplus
43403}
43404#endif
43405
43406int
43407main ()
43408{
43409return f != $ac_func;
43410 ;
43411 return 0;
43412}
43413_ACEOF
43414rm -f conftest.$ac_objext conftest$ac_exeext
43415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43416 (eval $ac_link) 2>conftest.er1
a848cd7e 43417 ac_status=$?
ac1cb8d3
VS
43418 grep -v '^ *+' conftest.er1 >conftest.err
43419 rm -f conftest.er1
43420 cat conftest.err >&5
a848cd7e
SC
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); } &&
be665c07
JS
43423 { ac_try='test -z "$ac_c_werror_flag"
43424 || test ! -s conftest.err'
ac1cb8d3
VS
43425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43426 (eval $ac_try) 2>&5
43427 ac_status=$?
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); }; } &&
43430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43432 (eval $ac_try) 2>&5
43433 ac_status=$?
43434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); }; }; then
43436 eval "$as_ac_var=yes"
43437else
43438 echo "$as_me: failed program was:" >&5
43439sed 's/^/| /' conftest.$ac_ext >&5
43440
43441eval "$as_ac_var=no"
43442fi
ac1cb8d3
VS
43443rm -f conftest.err conftest.$ac_objext \
43444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43445fi
43446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43448if test `eval echo '${'$as_ac_var'}'` = yes; then
43449 cat >>confdefs.h <<_ACEOF
43450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43451_ACEOF
43452 have_cos=1
43453fi
43454done
43455
43456
43457for ac_func in floor
43458do
43459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43460echo "$as_me:$LINENO: checking for $ac_func" >&5
43461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43462if eval "test \"\${$as_ac_var+set}\" = set"; then
43463 echo $ECHO_N "(cached) $ECHO_C" >&6
43464else
43465 cat >conftest.$ac_ext <<_ACEOF
43466/* confdefs.h. */
43467_ACEOF
43468cat confdefs.h >>conftest.$ac_ext
43469cat >>conftest.$ac_ext <<_ACEOF
43470/* end confdefs.h. */
ac1cb8d3
VS
43471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43473#define $ac_func innocuous_$ac_func
43474
a848cd7e
SC
43475/* System header to define __stub macros and hopefully few prototypes,
43476 which can conflict with char $ac_func (); below.
43477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43479
a848cd7e
SC
43480#ifdef __STDC__
43481# include <limits.h>
43482#else
43483# include <assert.h>
43484#endif
ac1cb8d3
VS
43485
43486#undef $ac_func
43487
a848cd7e
SC
43488/* Override any gcc2 internal prototype to avoid an error. */
43489#ifdef __cplusplus
43490extern "C"
43491{
43492#endif
43493/* We use char because int might match the return type of a gcc2
43494 builtin and then its argument prototype would still apply. */
43495char $ac_func ();
43496/* The GNU C library defines this for functions which it implements
43497 to always fail with ENOSYS. Some functions are actually named
43498 something starting with __ and the normal name is an alias. */
43499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43500choke me
43501#else
43502char (*f) () = $ac_func;
43503#endif
43504#ifdef __cplusplus
43505}
43506#endif
43507
43508int
43509main ()
43510{
43511return f != $ac_func;
43512 ;
43513 return 0;
43514}
43515_ACEOF
43516rm -f conftest.$ac_objext conftest$ac_exeext
43517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43518 (eval $ac_link) 2>conftest.er1
a848cd7e 43519 ac_status=$?
ac1cb8d3
VS
43520 grep -v '^ *+' conftest.er1 >conftest.err
43521 rm -f conftest.er1
43522 cat conftest.err >&5
a848cd7e
SC
43523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43524 (exit $ac_status); } &&
be665c07
JS
43525 { ac_try='test -z "$ac_c_werror_flag"
43526 || test ! -s conftest.err'
ac1cb8d3
VS
43527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43528 (eval $ac_try) 2>&5
43529 ac_status=$?
43530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43531 (exit $ac_status); }; } &&
43532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43534 (eval $ac_try) 2>&5
43535 ac_status=$?
43536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43537 (exit $ac_status); }; }; then
43538 eval "$as_ac_var=yes"
43539else
43540 echo "$as_me: failed program was:" >&5
43541sed 's/^/| /' conftest.$ac_ext >&5
43542
43543eval "$as_ac_var=no"
43544fi
ac1cb8d3
VS
43545rm -f conftest.err conftest.$ac_objext \
43546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43547fi
43548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43550if test `eval echo '${'$as_ac_var'}'` = yes; then
43551 cat >>confdefs.h <<_ACEOF
43552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43553_ACEOF
43554 have_floor=1
43555fi
43556done
43557
43558echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43559echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43560if test "$have_cos" = 1 -a "$have_floor" = 1; then
43561 echo "$as_me:$LINENO: result: yes" >&5
43562echo "${ECHO_T}yes" >&6
43563else
43564 echo "$as_me:$LINENO: result: no" >&5
43565echo "${ECHO_T}no" >&6
43566 LIBS="$LIBS -lm"
43567 # use different functions to avoid configure caching
43568 have_sin=0
43569 have_ceil=0
43570
43571for ac_func in sin
43572do
43573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43574echo "$as_me:$LINENO: checking for $ac_func" >&5
43575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43576if eval "test \"\${$as_ac_var+set}\" = set"; then
43577 echo $ECHO_N "(cached) $ECHO_C" >&6
43578else
43579 cat >conftest.$ac_ext <<_ACEOF
43580/* confdefs.h. */
43581_ACEOF
43582cat confdefs.h >>conftest.$ac_ext
43583cat >>conftest.$ac_ext <<_ACEOF
43584/* end confdefs.h. */
ac1cb8d3
VS
43585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43587#define $ac_func innocuous_$ac_func
43588
a848cd7e
SC
43589/* System header to define __stub macros and hopefully few prototypes,
43590 which can conflict with char $ac_func (); below.
43591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43592 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43593
a848cd7e
SC
43594#ifdef __STDC__
43595# include <limits.h>
43596#else
43597# include <assert.h>
43598#endif
ac1cb8d3
VS
43599
43600#undef $ac_func
43601
a848cd7e
SC
43602/* Override any gcc2 internal prototype to avoid an error. */
43603#ifdef __cplusplus
43604extern "C"
43605{
43606#endif
43607/* We use char because int might match the return type of a gcc2
43608 builtin and then its argument prototype would still apply. */
43609char $ac_func ();
43610/* The GNU C library defines this for functions which it implements
43611 to always fail with ENOSYS. Some functions are actually named
43612 something starting with __ and the normal name is an alias. */
43613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43614choke me
43615#else
43616char (*f) () = $ac_func;
43617#endif
43618#ifdef __cplusplus
43619}
43620#endif
43621
43622int
43623main ()
43624{
43625return f != $ac_func;
43626 ;
43627 return 0;
43628}
43629_ACEOF
43630rm -f conftest.$ac_objext conftest$ac_exeext
43631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43632 (eval $ac_link) 2>conftest.er1
a848cd7e 43633 ac_status=$?
ac1cb8d3
VS
43634 grep -v '^ *+' conftest.er1 >conftest.err
43635 rm -f conftest.er1
43636 cat conftest.err >&5
a848cd7e
SC
43637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43638 (exit $ac_status); } &&
be665c07
JS
43639 { ac_try='test -z "$ac_c_werror_flag"
43640 || test ! -s conftest.err'
ac1cb8d3
VS
43641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43642 (eval $ac_try) 2>&5
43643 ac_status=$?
43644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43645 (exit $ac_status); }; } &&
43646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43648 (eval $ac_try) 2>&5
43649 ac_status=$?
43650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43651 (exit $ac_status); }; }; then
43652 eval "$as_ac_var=yes"
43653else
43654 echo "$as_me: failed program was:" >&5
43655sed 's/^/| /' conftest.$ac_ext >&5
43656
43657eval "$as_ac_var=no"
43658fi
ac1cb8d3
VS
43659rm -f conftest.err conftest.$ac_objext \
43660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43661fi
43662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43664if test `eval echo '${'$as_ac_var'}'` = yes; then
43665 cat >>confdefs.h <<_ACEOF
43666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43667_ACEOF
43668 have_sin=1
43669fi
43670done
43671
43672
43673for ac_func in ceil
43674do
43675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43676echo "$as_me:$LINENO: checking for $ac_func" >&5
43677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43678if eval "test \"\${$as_ac_var+set}\" = set"; then
43679 echo $ECHO_N "(cached) $ECHO_C" >&6
43680else
43681 cat >conftest.$ac_ext <<_ACEOF
43682/* confdefs.h. */
43683_ACEOF
43684cat confdefs.h >>conftest.$ac_ext
43685cat >>conftest.$ac_ext <<_ACEOF
43686/* end confdefs.h. */
ac1cb8d3
VS
43687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43689#define $ac_func innocuous_$ac_func
43690
a848cd7e
SC
43691/* System header to define __stub macros and hopefully few prototypes,
43692 which can conflict with char $ac_func (); below.
43693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43694 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43695
a848cd7e
SC
43696#ifdef __STDC__
43697# include <limits.h>
43698#else
43699# include <assert.h>
43700#endif
ac1cb8d3
VS
43701
43702#undef $ac_func
43703
a848cd7e
SC
43704/* Override any gcc2 internal prototype to avoid an error. */
43705#ifdef __cplusplus
43706extern "C"
43707{
43708#endif
43709/* We use char because int might match the return type of a gcc2
43710 builtin and then its argument prototype would still apply. */
43711char $ac_func ();
43712/* The GNU C library defines this for functions which it implements
43713 to always fail with ENOSYS. Some functions are actually named
43714 something starting with __ and the normal name is an alias. */
43715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43716choke me
43717#else
43718char (*f) () = $ac_func;
43719#endif
43720#ifdef __cplusplus
43721}
43722#endif
43723
43724int
43725main ()
43726{
43727return f != $ac_func;
43728 ;
43729 return 0;
43730}
43731_ACEOF
43732rm -f conftest.$ac_objext conftest$ac_exeext
43733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43734 (eval $ac_link) 2>conftest.er1
a848cd7e 43735 ac_status=$?
ac1cb8d3
VS
43736 grep -v '^ *+' conftest.er1 >conftest.err
43737 rm -f conftest.er1
43738 cat conftest.err >&5
a848cd7e
SC
43739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43740 (exit $ac_status); } &&
be665c07
JS
43741 { ac_try='test -z "$ac_c_werror_flag"
43742 || test ! -s conftest.err'
ac1cb8d3
VS
43743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43744 (eval $ac_try) 2>&5
43745 ac_status=$?
43746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43747 (exit $ac_status); }; } &&
43748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43750 (eval $ac_try) 2>&5
43751 ac_status=$?
43752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43753 (exit $ac_status); }; }; then
43754 eval "$as_ac_var=yes"
43755else
43756 echo "$as_me: failed program was:" >&5
43757sed 's/^/| /' conftest.$ac_ext >&5
43758
43759eval "$as_ac_var=no"
43760fi
ac1cb8d3
VS
43761rm -f conftest.err conftest.$ac_objext \
43762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43763fi
43764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43766if test `eval echo '${'$as_ac_var'}'` = yes; then
43767 cat >>confdefs.h <<_ACEOF
43768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43769_ACEOF
43770 have_ceil=1
43771fi
43772done
43773
43774 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43775echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43776 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43777 echo "$as_me:$LINENO: result: yes" >&5
43778echo "${ECHO_T}yes" >&6
43779 else
43780 echo "$as_me:$LINENO: result: no" >&5
43781echo "${ECHO_T}no" >&6
43782 # not sure we should warn the user, crash, etc.
43783 fi
43784fi
43785
43786if test "$wxUSE_GUI" = "yes"; then
43787
43788
8bce5cda
MW
43789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43790 dynamic erase event exec font image minimal mobile \
43791 mobile/wxedit mobile/styles propsize render \
43792 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43793
43794 if test "$wxUSE_MONOLITHIC" != "yes"; then
43795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43796 fi
0b78747f 43797 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43799 if test "$wxUSE_UNIVERSAL" != "yes"; then
43800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43801 fi
43802 fi
43803 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43805 fi
a848cd7e
SC
43806else
43807 SAMPLES_SUBDIRS="console"
43808fi
43809
43810
ceec2216 43811INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
43812-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43813
48f625bc 43814if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43815 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43816elif test "$GCC" = yes ; then
43817 CWARNINGS="-Wall -Wundef"
43818fi
43819
48f625bc 43820if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43821 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43822elif test "$GXX" = yes ; then
43823 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43824fi
a848cd7e
SC
43825
43826EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43827
0c3c69fc 43828CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 43829CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 43830CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 43831
95986553
DE
43832if test "x$MWCC" = "xyes"; then
43833
43834 CC="$CC -cwd source -I-"
43835 CXX="$CXX -cwd source -I-"
43836fi
43837
a848cd7e 43838
0c3c69fc 43839LIBS=`echo $LIBS`
a848cd7e
SC
43840EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43841EXTRALIBS_XML="$EXPAT_LINK"
43842EXTRALIBS_HTML="$MSPACK_LINK"
43843EXTRALIBS_ODBC="$ODBC_LINK"
43844if test "$wxUSE_GUI" = "yes"; then
2e350179 43845 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43846fi
43847if test "$wxUSE_OPENGL" = "yes"; then
43848 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43849fi
43850
43851LDFLAGS="$LDFLAGS $PROFILE"
43852
43853if test "$wxUSE_GTK" = 1; then
43854 WXCONFIG_INCLUDE=
43855else
43856 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43857fi
43858
43859WXCONFIG_EXTRALIBS="$LIBS"
43860
43861if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43862 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43863fi
43864if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43865 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43866fi
43867if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43868 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43869fi
43870if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43871 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43872fi
43873if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43874 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43875fi
43876if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43877 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43878fi
43879if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43880 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43881fi
43882
43883for i in $wxconfig_3rdparty ; do
74802184 43884 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
43885done
43886
43887
43888if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43889 WXUNIV=1
43890else
43891 WXUNIV=0
43892fi
43893
43894
43895
43896
43897
43898
43899
43900
43901
43902if test $wxUSE_MONOLITHIC = "yes" ; then
43903 MONOLITHIC=1
43904else
43905 MONOLITHIC=0
43906fi
43907
43908if test $wxUSE_PLUGINS = "yes" ; then
43909 USE_PLUGINS=1
43910else
43911 USE_PLUGINS=0
43912fi
43913
43914if test $wxUSE_ODBC != "no" ; then
43915 USE_ODBC=1
43916else
43917 USE_ODBC=0
43918fi
43919
16358932
VZ
43920if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43921 USE_QA=1
43922else
43923 USE_QA=0
43924fi
43925
a848cd7e
SC
43926if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43927 OFFICIAL_BUILD=1
43928else
43929 OFFICIAL_BUILD=0
43930fi
43931
43932
43933
43934
43935
43936
43937
43938
43939
43940
43941
43942
43943
43944
43945
43946
43947
43948
43949
ceec2216 43950
d1c38808 43951
a848cd7e
SC
43952
43953
43954TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43955
43956
43957
43958
43959
43960
43961
43962
4d4ff94c
VZ
43963case "$TOOLKIT" in
43964 GTK)
43965 TOOLKIT_USER="GTK+"
43966 if test "$WXGTK20" = 1; then
43967 TOOLKIT_USER="$TOOLKIT_USER 2"
43968 fi
9a8f0513 43969 ;;
4d4ff94c
VZ
43970
43971 *)
43972 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43973 ;;
4d4ff94c 43974esac
a848cd7e 43975
fb00f58d
JS
43976if test "$wxUSE_WINE" = "yes"; then
43977 BAKEFILE_FORCE_PLATFORM=win32
43978fi
43979
9a8f0513 43980
1e9e8aba
DE
43981
43982
a848cd7e
SC
43983 if test "x$BAKEFILE_HOST" = "x"; then
43984 BAKEFILE_HOST="${host}"
43985 fi
43986
43987 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43988
43989 if test -n "$ac_tool_prefix"; then
43990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43992echo "$as_me:$LINENO: checking for $ac_word" >&5
43993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43994if test "${ac_cv_prog_RANLIB+set}" = set; then
43995 echo $ECHO_N "(cached) $ECHO_C" >&6
43996else
43997 if test -n "$RANLIB"; then
43998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43999else
44000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44001for as_dir in $PATH
44002do
44003 IFS=$as_save_IFS
44004 test -z "$as_dir" && as_dir=.
44005 for ac_exec_ext in '' $ac_executable_extensions; do
44006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
44008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44009 break 2
44010 fi
44011done
44012done
44013
44014fi
44015fi
44016RANLIB=$ac_cv_prog_RANLIB
44017if test -n "$RANLIB"; then
44018 echo "$as_me:$LINENO: result: $RANLIB" >&5
44019echo "${ECHO_T}$RANLIB" >&6
44020else
44021 echo "$as_me:$LINENO: result: no" >&5
44022echo "${ECHO_T}no" >&6
44023fi
44024
44025fi
44026if test -z "$ac_cv_prog_RANLIB"; then
44027 ac_ct_RANLIB=$RANLIB
44028 # Extract the first word of "ranlib", so it can be a program name with args.
44029set dummy ranlib; ac_word=$2
44030echo "$as_me:$LINENO: checking for $ac_word" >&5
44031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
44033 echo $ECHO_N "(cached) $ECHO_C" >&6
44034else
44035 if test -n "$ac_ct_RANLIB"; then
44036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
44037else
44038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44039for as_dir in $PATH
44040do
44041 IFS=$as_save_IFS
44042 test -z "$as_dir" && as_dir=.
44043 for ac_exec_ext in '' $ac_executable_extensions; do
44044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44045 ac_cv_prog_ac_ct_RANLIB="ranlib"
44046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44047 break 2
44048 fi
44049done
44050done
44051
44052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
44053fi
44054fi
44055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
44056if test -n "$ac_ct_RANLIB"; then
44057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
44058echo "${ECHO_T}$ac_ct_RANLIB" >&6
44059else
44060 echo "$as_me:$LINENO: result: no" >&5
44061echo "${ECHO_T}no" >&6
44062fi
44063
44064 RANLIB=$ac_ct_RANLIB
44065else
44066 RANLIB="$ac_cv_prog_RANLIB"
44067fi
44068
44069 # Find a good install program. We prefer a C program (faster),
44070# so one script is as good as another. But avoid the broken or
44071# incompatible versions:
44072# SysV /etc/install, /usr/sbin/install
44073# SunOS /usr/etc/install
44074# IRIX /sbin/install
44075# AIX /bin/install
44076# AmigaOS /C/install, which installs bootblocks on floppy discs
44077# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
44078# AFS /usr/afsws/bin/install, which mishandles nonexistent args
44079# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 44080# OS/2's system install, which has a completely different semantic
a848cd7e
SC
44081# ./install, which can be erroneously created by make from ./install.sh.
44082echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
44083echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
44084if test -z "$INSTALL"; then
44085if test "${ac_cv_path_install+set}" = set; then
44086 echo $ECHO_N "(cached) $ECHO_C" >&6
44087else
44088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44089for as_dir in $PATH
44090do
44091 IFS=$as_save_IFS
44092 test -z "$as_dir" && as_dir=.
44093 # Account for people who put trailing slashes in PATH elements.
44094case $as_dir/ in
44095 ./ | .// | /cC/* | \
44096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 44097 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
44098 /usr/ucb/* ) ;;
44099 *)
44100 # OSF1 and SCO ODT 3.0 have their own names for install.
44101 # Don't use installbsd from OSF since it installs stuff as root
44102 # by default.
44103 for ac_prog in ginstall scoinst install; do
44104 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
44105 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
44106 if test $ac_prog = install &&
44107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
44108 # AIX install. It has an incompatible calling convention.
44109 :
44110 elif test $ac_prog = install &&
44111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
44112 # program-specific install script used by HP pwplus--don't use.
44113 :
44114 else
44115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
44116 break 3
44117 fi
44118 fi
a848cd7e
SC
44119 done
44120 done
44121 ;;
44122esac
44123done
44124
44125
44126fi
44127 if test "${ac_cv_path_install+set}" = set; then
44128 INSTALL=$ac_cv_path_install
44129 else
44130 # As a last resort, use the slow shell script. We don't cache a
44131 # path for INSTALL within a source directory, because that will
44132 # break other packages using the cache if that directory is
44133 # removed, or if the path is relative.
44134 INSTALL=$ac_install_sh
44135 fi
44136fi
44137echo "$as_me:$LINENO: result: $INSTALL" >&5
44138echo "${ECHO_T}$INSTALL" >&6
44139
44140# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
44141# It thinks the first close brace ends the variable substitution.
44142test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
44143
44144test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
44145
44146test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
44147
44148 echo "$as_me:$LINENO: checking whether ln -s works" >&5
44149echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
44150LN_S=$as_ln_s
44151if test "$LN_S" = "ln -s"; then
44152 echo "$as_me:$LINENO: result: yes" >&5
44153echo "${ECHO_T}yes" >&6
44154else
44155 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
44156echo "${ECHO_T}no, using $LN_S" >&6
44157fi
44158
44159
44160 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44161echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44162set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44163if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44164 echo $ECHO_N "(cached) $ECHO_C" >&6
44165else
44166 cat >conftest.make <<\_ACEOF
44167all:
44168 @echo 'ac_maketemp="$(MAKE)"'
44169_ACEOF
44170# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44171eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44172if test -n "$ac_maketemp"; then
44173 eval ac_cv_prog_make_${ac_make}_set=yes
44174else
44175 eval ac_cv_prog_make_${ac_make}_set=no
44176fi
44177rm -f conftest.make
44178fi
44179if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44180 echo "$as_me:$LINENO: result: yes" >&5
44181echo "${ECHO_T}yes" >&6
44182 SET_MAKE=
44183else
44184 echo "$as_me:$LINENO: result: no" >&5
44185echo "${ECHO_T}no" >&6
44186 SET_MAKE="MAKE=${MAKE-make}"
44187fi
44188
44189
44190
44191 if test -n "$ac_tool_prefix"; then
44192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
44193set dummy ${ac_tool_prefix}ar; ac_word=$2
44194echo "$as_me:$LINENO: checking for $ac_word" >&5
44195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44196if test "${ac_cv_prog_AR+set}" = set; then
44197 echo $ECHO_N "(cached) $ECHO_C" >&6
44198else
44199 if test -n "$AR"; then
44200 ac_cv_prog_AR="$AR" # Let the user override the test.
44201else
44202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44203for as_dir in $PATH
44204do
44205 IFS=$as_save_IFS
44206 test -z "$as_dir" && as_dir=.
44207 for ac_exec_ext in '' $ac_executable_extensions; do
44208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44209 ac_cv_prog_AR="${ac_tool_prefix}ar"
44210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44211 break 2
44212 fi
44213done
44214done
44215
44216fi
44217fi
44218AR=$ac_cv_prog_AR
44219if test -n "$AR"; then
44220 echo "$as_me:$LINENO: result: $AR" >&5
44221echo "${ECHO_T}$AR" >&6
44222else
44223 echo "$as_me:$LINENO: result: no" >&5
44224echo "${ECHO_T}no" >&6
44225fi
44226
44227fi
44228if test -z "$ac_cv_prog_AR"; then
44229 ac_ct_AR=$AR
44230 # Extract the first word of "ar", so it can be a program name with args.
44231set dummy ar; ac_word=$2
44232echo "$as_me:$LINENO: checking for $ac_word" >&5
44233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44234if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
44235 echo $ECHO_N "(cached) $ECHO_C" >&6
44236else
44237 if test -n "$ac_ct_AR"; then
44238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
44239else
44240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44241for as_dir in $PATH
44242do
44243 IFS=$as_save_IFS
44244 test -z "$as_dir" && as_dir=.
44245 for ac_exec_ext in '' $ac_executable_extensions; do
44246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44247 ac_cv_prog_ac_ct_AR="ar"
44248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44249 break 2
44250 fi
44251done
44252done
44253
44254 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
44255fi
44256fi
44257ac_ct_AR=$ac_cv_prog_ac_ct_AR
44258if test -n "$ac_ct_AR"; then
44259 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
44260echo "${ECHO_T}$ac_ct_AR" >&6
44261else
44262 echo "$as_me:$LINENO: result: no" >&5
44263echo "${ECHO_T}no" >&6
44264fi
44265
44266 AR=$ac_ct_AR
44267else
44268 AR="$ac_cv_prog_AR"
44269fi
44270
44271 if test -n "$ac_tool_prefix"; then
44272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
44273set dummy ${ac_tool_prefix}strip; ac_word=$2
44274echo "$as_me:$LINENO: checking for $ac_word" >&5
44275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44276if test "${ac_cv_prog_STRIP+set}" = set; then
44277 echo $ECHO_N "(cached) $ECHO_C" >&6
44278else
44279 if test -n "$STRIP"; then
44280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
44281else
44282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44283for as_dir in $PATH
44284do
44285 IFS=$as_save_IFS
44286 test -z "$as_dir" && as_dir=.
44287 for ac_exec_ext in '' $ac_executable_extensions; do
44288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
44290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44291 break 2
44292 fi
44293done
44294done
44295
44296fi
44297fi
44298STRIP=$ac_cv_prog_STRIP
44299if test -n "$STRIP"; then
44300 echo "$as_me:$LINENO: result: $STRIP" >&5
44301echo "${ECHO_T}$STRIP" >&6
44302else
44303 echo "$as_me:$LINENO: result: no" >&5
44304echo "${ECHO_T}no" >&6
44305fi
44306
44307fi
44308if test -z "$ac_cv_prog_STRIP"; then
44309 ac_ct_STRIP=$STRIP
44310 # Extract the first word of "strip", so it can be a program name with args.
44311set dummy strip; ac_word=$2
44312echo "$as_me:$LINENO: checking for $ac_word" >&5
44313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44314if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
44315 echo $ECHO_N "(cached) $ECHO_C" >&6
44316else
44317 if test -n "$ac_ct_STRIP"; then
44318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
44319else
44320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44321for as_dir in $PATH
44322do
44323 IFS=$as_save_IFS
44324 test -z "$as_dir" && as_dir=.
44325 for ac_exec_ext in '' $ac_executable_extensions; do
44326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44327 ac_cv_prog_ac_ct_STRIP="strip"
44328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44329 break 2
44330 fi
44331done
44332done
44333
44334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
44335fi
44336fi
44337ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
44338if test -n "$ac_ct_STRIP"; then
44339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
44340echo "${ECHO_T}$ac_ct_STRIP" >&6
44341else
44342 echo "$as_me:$LINENO: result: no" >&5
44343echo "${ECHO_T}no" >&6
44344fi
44345
44346 STRIP=$ac_ct_STRIP
44347else
44348 STRIP="$ac_cv_prog_STRIP"
44349fi
44350
44351 if test -n "$ac_tool_prefix"; then
44352 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
44353set dummy ${ac_tool_prefix}nm; ac_word=$2
44354echo "$as_me:$LINENO: checking for $ac_word" >&5
44355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44356if test "${ac_cv_prog_NM+set}" = set; then
44357 echo $ECHO_N "(cached) $ECHO_C" >&6
44358else
44359 if test -n "$NM"; then
44360 ac_cv_prog_NM="$NM" # Let the user override the test.
44361else
44362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44363for as_dir in $PATH
44364do
44365 IFS=$as_save_IFS
44366 test -z "$as_dir" && as_dir=.
44367 for ac_exec_ext in '' $ac_executable_extensions; do
44368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44369 ac_cv_prog_NM="${ac_tool_prefix}nm"
44370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44371 break 2
44372 fi
44373done
44374done
44375
44376fi
44377fi
44378NM=$ac_cv_prog_NM
44379if test -n "$NM"; then
44380 echo "$as_me:$LINENO: result: $NM" >&5
44381echo "${ECHO_T}$NM" >&6
44382else
44383 echo "$as_me:$LINENO: result: no" >&5
44384echo "${ECHO_T}no" >&6
44385fi
44386
44387fi
44388if test -z "$ac_cv_prog_NM"; then
44389 ac_ct_NM=$NM
44390 # Extract the first word of "nm", so it can be a program name with args.
44391set dummy nm; ac_word=$2
44392echo "$as_me:$LINENO: checking for $ac_word" >&5
44393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44394if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
44395 echo $ECHO_N "(cached) $ECHO_C" >&6
44396else
44397 if test -n "$ac_ct_NM"; then
44398 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
44399else
44400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44401for as_dir in $PATH
44402do
44403 IFS=$as_save_IFS
44404 test -z "$as_dir" && as_dir=.
44405 for ac_exec_ext in '' $ac_executable_extensions; do
44406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44407 ac_cv_prog_ac_ct_NM="nm"
44408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44409 break 2
44410 fi
44411done
44412done
44413
44414 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44415fi
44416fi
44417ac_ct_NM=$ac_cv_prog_ac_ct_NM
44418if test -n "$ac_ct_NM"; then
44419 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44420echo "${ECHO_T}$ac_ct_NM" >&6
44421else
44422 echo "$as_me:$LINENO: result: no" >&5
44423echo "${ECHO_T}no" >&6
44424fi
44425
44426 NM=$ac_ct_NM
44427else
44428 NM="$ac_cv_prog_NM"
44429fi
44430
44431
44432 case ${BAKEFILE_HOST} in
44433 *-hp-hpux* )
1e9e8aba 44434 INSTALL_DIR="mkdir -p"
a848cd7e
SC
44435 ;;
44436 *) INSTALL_DIR="$INSTALL -d"
44437 ;;
44438 esac
44439
44440
44441 LDFLAGS_GUI=
44442 case ${BAKEFILE_HOST} in
44443 *-*-cygwin* | *-*-mingw32* )
44444 LDFLAGS_GUI="-mwindows"
44445 esac
44446
44447
44448 fi
44449
44450 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44451echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44452if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44453 echo $ECHO_N "(cached) $ECHO_C" >&6
44454else
44455
44456 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44457 egrep -s GNU > /dev/null); then
44458 bakefile_cv_prog_makeisgnu="yes"
44459 else
44460 bakefile_cv_prog_makeisgnu="no"
44461 fi
44462
44463fi
44464echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44465echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44466
44467 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44468 IF_GNU_MAKE=""
44469 else
44470 IF_GNU_MAKE="#"
44471 fi
44472
44473
44474
44475 PLATFORM_UNIX=0
44476 PLATFORM_WIN32=0
44477 PLATFORM_MSDOS=0
44478 PLATFORM_MAC=0
1e9e8aba 44479 PLATFORM_MACOS=0
a848cd7e
SC
44480 PLATFORM_MACOSX=0
44481 PLATFORM_OS2=0
1e9e8aba 44482 PLATFORM_BEOS=0
a848cd7e
SC
44483
44484 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44485 case "${BAKEFILE_HOST}" in
810b94f0 44486 *-*-mingw32* )
a848cd7e
SC
44487 PLATFORM_WIN32=1
44488 ;;
44489 *-pc-msdosdjgpp )
44490 PLATFORM_MSDOS=1
44491 ;;
44492 *-pc-os2_emx | *-pc-os2-emx )
44493 PLATFORM_OS2=1
44494 ;;
47bd5406 44495 *-*-darwin* )
a848cd7e
SC
44496 PLATFORM_MAC=1
44497 PLATFORM_MACOSX=1
44498 ;;
1e9e8aba
DE
44499 *-*-beos* )
44500 PLATFORM_BEOS=1
44501 ;;
44502 powerpc-apple-macos* )
44503 PLATFORM_MAC=1
44504 PLATFORM_MACOS=1
44505 ;;
a848cd7e
SC
44506 * )
44507 PLATFORM_UNIX=1
44508 ;;
44509 esac
44510 else
44511 case "$BAKEFILE_FORCE_PLATFORM" in
44512 win32 )
44513 PLATFORM_WIN32=1
44514 ;;
44515 msdos )
44516 PLATFORM_MSDOS=1
44517 ;;
44518 os2 )
44519 PLATFORM_OS2=1
44520 ;;
44521 darwin )
44522 PLATFORM_MAC=1
44523 PLATFORM_MACOSX=1
44524 ;;
44525 unix )
44526 PLATFORM_UNIX=1
44527 ;;
1e9e8aba
DE
44528 beos )
44529 PLATFORM_BEOS=1
44530 ;;
a848cd7e
SC
44531 * )
44532 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44533echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44534 { (exit 1); exit 1; }; }
44535 ;;
44536 esac
44537 fi
44538
44539
44540
44541
44542
44543
44544
44545
44546
1e9e8aba
DE
44547
44548
a848cd7e
SC
44549 # Check whether --enable-omf or --disable-omf was given.
44550if test "${enable_omf+set}" = set; then
44551 enableval="$enable_omf"
44552 bk_os2_use_omf="$enableval"
44553fi;
44554
44555 case "${BAKEFILE_HOST}" in
44556 *-*-darwin* )
47bd5406
VZ
44557 if test "x$GCC" = "xyes"; then
44558 CFLAGS="$CFLAGS -fno-common"
44559 CXXFLAGS="$CXXFLAGS -fno-common"
44560 fi
44561 if test "x$XLCC" = "xyes"; then
44562 CFLAGS="$CFLAGS -qnocommon"
44563 CXXFLAGS="$CXXFLAGS -qnocommon"
44564 fi
a848cd7e
SC
44565 ;;
44566
44567 *-pc-os2_emx | *-pc-os2-emx )
44568 if test "x$bk_os2_use_omf" = "xyes" ; then
44569 AR=emxomfar
44570 RANLIB=:
44571 LDFLAGS="-Zomf $LDFLAGS"
44572 CFLAGS="-Zomf $CFLAGS"
44573 CXXFLAGS="-Zomf $CXXFLAGS"
44574 OS2_LIBEXT="lib"
44575 else
44576 OS2_LIBEXT="a"
44577 fi
44578 ;;
1e9e8aba
DE
44579
44580 i*86-*-beos* )
44581 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44582 ;;
a848cd7e
SC
44583 esac
44584
44585
44586 SO_SUFFIX="so"
44587 SO_SUFFIX_MODULE="so"
44588 EXEEXT=""
44589 LIBPREFIX="lib"
44590 LIBEXT=".a"
44591 DLLPREFIX="lib"
44592 DLLPREFIX_MODULE=""
44593 DLLIMP_SUFFIX=""
810b94f0 44594 dlldir="$libdir"
a848cd7e
SC
44595
44596 case "${BAKEFILE_HOST}" in
44597 *-hp-hpux* )
44598 SO_SUFFIX="sl"
44599 SO_SUFFIX_MODULE="sl"
44600 ;;
44601 *-*-aix* )
44602 SO_SUFFIX="a"
44603 SO_SUFFIX_MODULE="a"
44604 ;;
810b94f0
MW
44605 *-*-cygwin* )
44606 SO_SUFFIX="dll"
44607 SO_SUFFIX_MODULE="dll"
44608 DLLIMP_SUFFIX="dll.a"
44609 EXEEXT=".exe"
44610 DLLPREFIX="cyg"
44611 dlldir="$bindir"
44612 ;;
44613 *-*-mingw32* )
a848cd7e
SC
44614 SO_SUFFIX="dll"
44615 SO_SUFFIX_MODULE="dll"
44616 DLLIMP_SUFFIX="dll.a"
44617 EXEEXT=".exe"
44618 DLLPREFIX=""
810b94f0 44619 dlldir="$bindir"
a848cd7e
SC
44620 ;;
44621 *-pc-msdosdjgpp )
44622 EXEEXT=".exe"
44623 DLLPREFIX=""
810b94f0 44624 dlldir="$bindir"
a848cd7e
SC
44625 ;;
44626 *-pc-os2_emx | *-pc-os2-emx )
44627 SO_SUFFIX="dll"
44628 SO_SUFFIX_MODULE="dll"
44629 DLLIMP_SUFFIX=$OS2_LIBEXT
44630 EXEEXT=".exe"
44631 DLLPREFIX=""
44632 LIBPREFIX=""
44633 LIBEXT=".$OS2_LIBEXT"
810b94f0 44634 dlldir="$bindir"
a848cd7e 44635 ;;
47bd5406 44636 *-*-darwin* )
a848cd7e
SC
44637 SO_SUFFIX="dylib"
44638 SO_SUFFIX_MODULE="bundle"
44639 ;;
44640 esac
44641
44642 if test "x$DLLIMP_SUFFIX" = "x" ; then
44643 DLLIMP_SUFFIX="$SO_SUFFIX"
44644 fi
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
810b94f0 44656
1e9e8aba
DE
44657 PIC_FLAG=""
44658 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44659 PIC_FLAG="-fPIC"
44660 fi
44661
1e9e8aba
DE
44662 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44663 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44664 WINDOWS_IMPLIB=0
1e9e8aba 44665
a848cd7e
SC
44666 case "${BAKEFILE_HOST}" in
44667 *-hp-hpux* )
1e9e8aba 44668 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44669 LDFLAGS="$LDFLAGS -L/usr/lib"
44670
44671 SHARED_LD_CC="${CC} -b -o"
44672 SHARED_LD_CXX="${CXX} -b -o"
44673 PIC_FLAG="+Z"
44674 fi
44675 ;;
44676
44677 *-*-linux* )
44678 if test "x$GCC" != "xyes"; then
44679 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44680echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44681if test "${bakefile_cv_prog_icc+set}" = set; then
44682 echo $ECHO_N "(cached) $ECHO_C" >&6
44683else
44684
44685 cat >conftest.$ac_ext <<_ACEOF
44686/* confdefs.h. */
44687_ACEOF
44688cat confdefs.h >>conftest.$ac_ext
44689cat >>conftest.$ac_ext <<_ACEOF
44690/* end confdefs.h. */
44691
44692int
44693main ()
44694{
44695
44696 #ifndef __INTEL_COMPILER
44697 #error Not icc
44698 #endif
44699
44700 ;
44701 return 0;
44702}
44703_ACEOF
44704rm -f conftest.$ac_objext
44705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44706 (eval $ac_compile) 2>conftest.er1
a848cd7e 44707 ac_status=$?
ac1cb8d3
VS
44708 grep -v '^ *+' conftest.er1 >conftest.err
44709 rm -f conftest.er1
44710 cat conftest.err >&5
a848cd7e
SC
44711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712 (exit $ac_status); } &&
be665c07
JS
44713 { ac_try='test -z "$ac_c_werror_flag"
44714 || test ! -s conftest.err'
ac1cb8d3
VS
44715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44716 (eval $ac_try) 2>&5
44717 ac_status=$?
44718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44719 (exit $ac_status); }; } &&
44720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44722 (eval $ac_try) 2>&5
44723 ac_status=$?
44724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725 (exit $ac_status); }; }; then
44726 bakefile_cv_prog_icc=yes
44727else
44728 echo "$as_me: failed program was:" >&5
44729sed 's/^/| /' conftest.$ac_ext >&5
44730
44731bakefile_cv_prog_icc=no
44732
44733fi
ac1cb8d3 44734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44735
44736fi
44737echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44738echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44739 if test "$bakefile_cv_prog_icc" = "yes"; then
44740 PIC_FLAG="-KPIC"
44741 fi
44742 fi
44743 ;;
44744
44745 *-*-solaris2* )
44746 if test "x$GCC" != xyes ; then
44747 SHARED_LD_CC="${CC} -G -o"
44748 SHARED_LD_CXX="${CXX} -G -o"
44749 PIC_FLAG="-KPIC"
44750 fi
44751 ;;
44752
44753 *-*-darwin* )
44754
473276a9
VS
44755D='$'
44756cat <<EOF >shared-ld-sh
a848cd7e
SC
44757#!/bin/sh
44758#-----------------------------------------------------------------------------
44759#-- Name: distrib/mac/shared-ld-sh
44760#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44761#-- Author: Gilles Depeyrot
44762#-- Copyright: (c) 2002 Gilles Depeyrot
44763#-- Licence: any use permitted
44764#-----------------------------------------------------------------------------
44765
44766verbose=0
44767args=""
44768objects=""
44769linking_flag="-dynamiclib"
810b94f0 44770ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44771
473276a9
VS
44772while test ${D}# -gt 0; do
44773 case ${D}1 in
a848cd7e
SC
44774
44775 -v)
44776 verbose=1
44777 ;;
44778
44779 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44780 # collect these options and values
473276a9 44781 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44782 shift
44783 ;;
44784
810b94f0
MW
44785 -s|-Wl,*)
44786 # collect these load args
44787 ldargs="${D}{ldargs} ${D}1"
2113bc77 44788 ;;
810b94f0
MW
44789
44790 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44791 # collect these options
473276a9 44792 args="${D}{args} ${D}1"
a848cd7e
SC
44793 ;;
44794
44795 -dynamiclib|-bundle)
473276a9 44796 linking_flag="${D}1"
a848cd7e
SC
44797 ;;
44798
44799 -*)
473276a9 44800 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44801 exit 1
44802 ;;
44803
44804 *.o | *.a | *.dylib)
44805 # collect object files
473276a9 44806 objects="${D}{objects} ${D}1"
a848cd7e
SC
44807 ;;
44808
44809 *)
473276a9 44810 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44811 exit 1
44812 ;;
44813
44814 esac
44815 shift
44816done
44817
810b94f0
MW
44818status=0
44819
a848cd7e
SC
44820#
44821# Link one module containing all the others
44822#
473276a9 44823if test ${D}{verbose} = 1; then
810b94f0 44824 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44825fi
810b94f0 44826c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44827status=${D}?
a848cd7e
SC
44828
44829#
810b94f0
MW
44830# Link the shared library from the single module created, but only if the
44831# previous command didn't fail:
a848cd7e 44832#
810b94f0
MW
44833if test ${D}{status} = 0; then
44834 if test ${D}{verbose} = 1; then
44835 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44836 fi
44837 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44838 status=${D}?
a848cd7e
SC
44839fi
44840
44841#
44842# Remove intermediate module
44843#
473276a9 44844rm -f master.${D}${D}.o
a848cd7e 44845
810b94f0 44846exit ${D}status
a848cd7e 44847EOF
473276a9 44848
583d6b4b
VZ
44849 chmod +x shared-ld-sh
44850
44851 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44852 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44853
44854
44855 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44856echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44857if test "${bakefile_cv_gcc31+set}" = set; then
44858 echo $ECHO_N "(cached) $ECHO_C" >&6
44859else
44860
44861 cat >conftest.$ac_ext <<_ACEOF
44862/* confdefs.h. */
44863_ACEOF
44864cat confdefs.h >>conftest.$ac_ext
44865cat >>conftest.$ac_ext <<_ACEOF
44866/* end confdefs.h. */
44867
44868int
44869main ()
44870{
44871
44872 #if (__GNUC__ < 3) || \
44873 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44874 #error old gcc
44875 #endif
a848cd7e 44876
583d6b4b
VZ
44877 ;
44878 return 0;
44879}
44880_ACEOF
44881rm -f conftest.$ac_objext
44882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44883 (eval $ac_compile) 2>conftest.er1
44884 ac_status=$?
44885 grep -v '^ *+' conftest.er1 >conftest.err
44886 rm -f conftest.er1
44887 cat conftest.err >&5
44888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44889 (exit $ac_status); } &&
be665c07
JS
44890 { ac_try='test -z "$ac_c_werror_flag"
44891 || test ! -s conftest.err'
583d6b4b
VZ
44892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44893 (eval $ac_try) 2>&5
44894 ac_status=$?
44895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44896 (exit $ac_status); }; } &&
44897 { ac_try='test -s conftest.$ac_objext'
44898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44899 (eval $ac_try) 2>&5
44900 ac_status=$?
44901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44902 (exit $ac_status); }; }; then
44903
44904 bakefile_cv_gcc31=yes
44905
44906else
44907 echo "$as_me: failed program was:" >&5
44908sed 's/^/| /' conftest.$ac_ext >&5
44909
44910
44911 bakefile_cv_gcc31=no
44912
44913
44914fi
44915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44916
44917fi
44918echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44919echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44920 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 44921 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44922 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44923 else
44924 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44925 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44926 fi
44927
47bd5406
VZ
44928 if test "x$GCC" == "xyes"; then
44929 PIC_FLAG="-dynamic -fPIC"
44930 fi
44931 if test "x$XLCC" = "xyes"; then
44932 PIC_FLAG="-dynamic -DPIC"
44933 fi
a848cd7e
SC
44934 ;;
44935
44936 *-*-aix* )
f6b50c59 44937 if test "x$GCC" = "xyes"; then
583d6b4b 44938 PIC_FLAG=""
f6b50c59 44939
583d6b4b
VZ
44940 case "${BAKEFILE_HOST}" in
44941 *-*-aix5* )
44942 LD_EXPFULL="-Wl,-bexpfull"
44943 ;;
44944 esac
f6b50c59 44945
583d6b4b
VZ
44946 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44947 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44948 else
44949 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44950set dummy makeC++SharedLib; ac_word=$2
44951echo "$as_me:$LINENO: checking for $ac_word" >&5
44952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44953if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44954 echo $ECHO_N "(cached) $ECHO_C" >&6
44955else
44956 if test -n "$AIX_CXX_LD"; then
44957 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44958else
44959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44960for as_dir in $PATH
44961do
44962 IFS=$as_save_IFS
44963 test -z "$as_dir" && as_dir=.
44964 for ac_exec_ext in '' $ac_executable_extensions; do
44965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44966 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44968 break 2
44969 fi
44970done
44971done
44972
44973 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44974fi
44975fi
44976AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44977if test -n "$AIX_CXX_LD"; then
44978 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44979echo "${ECHO_T}$AIX_CXX_LD" >&6
44980else
44981 echo "$as_me:$LINENO: result: no" >&5
44982echo "${ECHO_T}no" >&6
44983fi
44984
f6b50c59 44985 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44986 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44987 fi
44988 ;;
44989
44990 *-*-beos* )
1e9e8aba
DE
44991 SHARED_LD_CC="${LD} -nostart -o"
44992 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44993 ;;
44994
44995 *-*-irix* )
44996 if test "x$GCC" != "xyes"; then
44997 PIC_FLAG="-KPIC"
44998 fi
44999 ;;
45000
45001 *-*-cygwin* | *-*-mingw32* )
45002 PIC_FLAG=""
1e9e8aba
DE
45003 SHARED_LD_CC="\$(CC) -shared -o"
45004 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 45005 WINDOWS_IMPLIB=1
a848cd7e
SC
45006 ;;
45007
45008 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
45009 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45010 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 45011 PIC_FLAG=""
473276a9
VS
45012
45013D='$'
45014cat <<EOF >dllar.sh
45015#!/bin/sh
45016#
45017# dllar - a tool to build both a .dll and an .a file
45018# from a set of object (.o) files for EMX/OS2.
45019#
45020# Written by Andrew Zabolotny, bit@freya.etu.ru
45021# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
45022#
45023# This script will accept a set of files on the command line.
45024# All the public symbols from the .o files will be exported into
45025# a .DEF file, then linker will be run (through gcc) against them to
45026# build a shared library consisting of all given .o files. All libraries
45027# (.a) will be first decompressed into component .o files then act as
45028# described above. You can optionally give a description (-d "description")
45029# which will be put into .DLL. To see the list of accepted options (as well
45030# as command-line format) simply run this program without options. The .DLL
45031# is built to be imported by name (there is no guarantee that new versions
45032# of the library you build will have same ordinals for same symbols).
45033#
45034# dllar is free software; you can redistribute it and/or modify
45035# it under the terms of the GNU General Public License as published by
45036# the Free Software Foundation; either version 2, or (at your option)
45037# any later version.
45038#
45039# dllar is distributed in the hope that it will be useful,
45040# but WITHOUT ANY WARRANTY; without even the implied warranty of
45041# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45042# GNU General Public License for more details.
45043#
45044# You should have received a copy of the GNU General Public License
45045# along with dllar; see the file COPYING. If not, write to the Free
45046# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
45047# 02111-1307, USA.
45048
45049# To successfuly run this program you will need:
45050# - Current drive should have LFN support (HPFS, ext2, network, etc)
45051# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
45052# - gcc
45053# (used to build the .dll)
45054# - emxexp
45055# (used to create .def file from .o files)
45056# - emximp
45057# (used to create .a file from .def file)
45058# - GNU text utilites (cat, sort, uniq)
45059# used to process emxexp output
45060# - GNU file utilities (mv, rm)
45061# - GNU sed
45062# - lxlite (optional, see flag below)
45063# (used for general .dll cleanup)
45064#
45065
45066flag_USE_LXLITE=1;
45067
45068#
45069# helper functions
45070# basnam, variant of basename, which does _not_ remove the path, _iff_
45071# second argument (suffix to remove) is given
45072basnam(){
45073 case ${D}# in
45074 1)
1e9e8aba 45075 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
45076 ;;
45077 2)
45078 echo ${D}1 | sed 's/'${D}2'${D}//'
45079 ;;
45080 *)
45081 echo "error in basnam ${D}*"
45082 exit 8
45083 ;;
45084 esac
45085}
45086
45087# Cleanup temporary files and output
45088CleanUp() {
45089 cd ${D}curDir
45090 for i in ${D}inputFiles ; do
45091 case ${D}i in
45092 *!)
45093 rm -rf \`basnam ${D}i !\`
45094 ;;
45095 *)
45096 ;;
45097 esac
45098 done
45099
45100 # Kill result in case of failure as there is just to many stupid make/nmake
45101 # things out there which doesn't do this.
1e9e8aba 45102 if [ ${D}# -eq 0 ]; then
473276a9
VS
45103 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
45104 fi
45105}
45106
45107# Print usage and exit script with rc=1.
45108PrintHelp() {
b1d22ded
DE
45109 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
45110 echo ' [-name-mangler-script script.sh]'
45111 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
45112 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
45113 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 45114 echo ' [*.o] [*.a]'
473276a9
VS
45115 echo '*> "output_file" should have no extension.'
45116 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
45117 echo ' The import library name is derived from this and is set to "name".a,'
45118 echo ' unless overridden by -import'
45119 echo '*> "importlib_name" should have no extension.'
45120 echo ' If it has the .o, or .a extension, it is automatically removed.'
45121 echo ' This name is used as the import library name and may be longer and'
45122 echo ' more descriptive than the DLL name which has to follow the old '
45123 echo ' 8.3 convention of FAT.'
b1d22ded
DE
45124 echo '*> "script.sh may be given to override the output_file name by a'
45125 echo ' different name. It is mainly useful if the regular make process'
45126 echo ' of some package does not take into account OS/2 restriction of'
45127 echo ' DLL name lengths. It takes the importlib name as input and is'
45128 echo ' supposed to procude a shorter name as output. The script should'
45129 echo ' expect to get importlib_name without extension and should produce'
45130 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
45131 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
45132 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
45133 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
45134 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
45135 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
45136 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
45137 echo ' If the last character of a symbol is "*", all symbols beginning'
45138 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 45139 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 45140 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 45141 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 45142 echo ' C runtime DLLs.'
b1d22ded 45143 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
45144 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
45145 echo ' unchanged to GCC at the end of command line.'
45146 echo '*> If you create a DLL from a library and you do not specify -o,'
45147 echo ' the basename for DLL and import library will be set to library name,'
45148 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
45149 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
45150 echo ' library will be renamed into gcc_s.a.'
45151 echo '--------'
45152 echo 'Example:'
45153 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
45154 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
45155 CleanUp
45156 exit 1
45157}
45158
45159# Execute a command.
45160# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
45161# @Uses Whatever CleanUp() uses.
45162doCommand() {
45163 echo "${D}*"
45164 eval ${D}*
45165 rcCmd=${D}?
45166
1e9e8aba 45167 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
45168 echo "command failed, exit code="${D}rcCmd
45169 CleanUp
45170 exit ${D}rcCmd
45171 fi
45172}
45173
45174# main routine
45175# setup globals
45176cmdLine=${D}*
45177outFile=""
45178outimpFile=""
45179inputFiles=""
b1d22ded 45180renameScript=""
473276a9
VS
45181description=""
45182CC=gcc.exe
45183CFLAGS="-s -Zcrtdll"
45184EXTRA_CFLAGS=""
45185EXPORT_BY_ORDINALS=0
45186exclude_symbols=""
45187library_flags=""
45188curDir=\`pwd\`
45189curDirS=curDir
45190case ${D}curDirS in
45191*/)
45192 ;;
45193*)
45194 curDirS=${D}{curDirS}"/"
45195 ;;
45196esac
45197# Parse commandline
45198libsToLink=0
b1d22ded 45199omfLinking=0
1e9e8aba 45200while [ ${D}1 ]; do
473276a9
VS
45201 case ${D}1 in
45202 -ord*)
45203 EXPORT_BY_ORDINALS=1;
45204 ;;
45205 -o*)
45206 shift
45207 outFile=${D}1
45208 ;;
45209 -i*)
45210 shift
45211 outimpFile=${D}1
45212 ;;
b1d22ded
DE
45213 -name-mangler-script)
45214 shift
45215 renameScript=${D}1
45216 ;;
473276a9
VS
45217 -d*)
45218 shift
45219 description=${D}1
45220 ;;
45221 -f*)
45222 shift
45223 CFLAGS=${D}1
45224 ;;
45225 -c*)
45226 shift
45227 CC=${D}1
45228 ;;
45229 -h*)
45230 PrintHelp
45231 ;;
45232 -ex*)
45233 shift
45234 exclude_symbols=${D}{exclude_symbols}${D}1" "
45235 ;;
45236 -libf*)
45237 shift
45238 library_flags=${D}{library_flags}${D}1" "
45239 ;;
45240 -nocrt*)
45241 CFLAGS="-s"
45242 ;;
45243 -nolxl*)
45244 flag_USE_LXLITE=0
45245 ;;
45246 -* | /*)
45247 case ${D}1 in
45248 -L* | -l*)
45249 libsToLink=1
45250 ;;
b1d22ded
DE
45251 -Zomf)
45252 omfLinking=1
45253 ;;
473276a9
VS
45254 *)
45255 ;;
45256 esac
45257 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
45258 ;;
b1d22ded
DE
45259 *.dll)
45260 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
45261 if [ ${D}omfLinking -eq 1 ]; then
45262 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
45263 else
45264 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
45265 fi
45266 ;;
473276a9
VS
45267 *)
45268 found=0;
1e9e8aba 45269 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
45270 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
45271 else
45272 for file in ${D}1 ; do
1e9e8aba 45273 if [ -f ${D}file ]; then
473276a9
VS
45274 inputFiles="${D}{inputFiles} ${D}file"
45275 found=1
45276 fi
45277 done
1e9e8aba 45278 if [ ${D}found -eq 0 ]; then
473276a9
VS
45279 echo "ERROR: No file(s) found: "${D}1
45280 exit 8
45281 fi
45282 fi
45283 ;;
45284 esac
45285 shift
45286done # iterate cmdline words
45287
45288#
1e9e8aba 45289if [ -z "${D}inputFiles" ]; then
473276a9
VS
45290 echo "dllar: no input files"
45291 PrintHelp
45292fi
45293
45294# Now extract all .o files from .a files
45295newInputFiles=""
45296for file in ${D}inputFiles ; do
45297 case ${D}file in
45298 *.a | *.lib)
45299 case ${D}file in
45300 *.a)
45301 suffix=".a"
45302 AR="ar"
45303 ;;
45304 *.lib)
45305 suffix=".lib"
45306 AR="emxomfar"
45307 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
45308 ;;
45309 *)
45310 ;;
45311 esac
45312 dirname=\`basnam ${D}file ${D}suffix\`"_%"
45313 mkdir ${D}dirname
1e9e8aba 45314 if [ ${D}? -ne 0 ]; then
473276a9
VS
45315 echo "Failed to create subdirectory ./${D}dirname"
45316 CleanUp
45317 exit 8;
45318 fi
45319 # Append '!' to indicate archive
45320 newInputFiles="${D}newInputFiles ${D}{dirname}!"
45321 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
45322 cd ${D}curDir
45323 found=0;
45324 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 45325 if [ -f ${D}subfile ]; then
473276a9 45326 found=1
1e9e8aba 45327 if [ -s ${D}subfile ]; then
473276a9
VS
45328 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
45329 newInputFiles="${D}newInputFiles ${D}subfile"
45330 fi
45331 fi
45332 done
1e9e8aba
DE
45333 if [ ${D}found -eq 0 ]; then
45334 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
45335 fi
45336 ;;
45337 *)
45338 newInputFiles="${D}{newInputFiles} ${D}file"
45339 ;;
45340 esac
45341done
45342inputFiles="${D}newInputFiles"
45343
45344# Output filename(s).
45345do_backup=0;
1e9e8aba 45346if [ -z ${D}outFile ]; then
473276a9
VS
45347 do_backup=1;
45348 set outFile ${D}inputFiles; outFile=${D}2
45349fi
45350
45351# If it is an archive, remove the '!' and the '_%' suffixes
45352case ${D}outFile in
45353*_%!)
45354 outFile=\`basnam ${D}outFile _%!\`
45355 ;;
45356*)
45357 ;;
45358esac
45359case ${D}outFile in
45360*.dll)
45361 outFile=\`basnam ${D}outFile .dll\`
45362 ;;
45363*.DLL)
45364 outFile=\`basnam ${D}outFile .DLL\`
45365 ;;
45366*.o)
45367 outFile=\`basnam ${D}outFile .o\`
45368 ;;
45369*.obj)
45370 outFile=\`basnam ${D}outFile .obj\`
45371 ;;
45372*.a)
45373 outFile=\`basnam ${D}outFile .a\`
45374 ;;
45375*.lib)
45376 outFile=\`basnam ${D}outFile .lib\`
45377 ;;
45378*)
45379 ;;
45380esac
45381case ${D}outimpFile in
45382*.a)
45383 outimpFile=\`basnam ${D}outimpFile .a\`
45384 ;;
45385*.lib)
45386 outimpFile=\`basnam ${D}outimpFile .lib\`
45387 ;;
45388*)
45389 ;;
45390esac
1e9e8aba 45391if [ -z ${D}outimpFile ]; then
473276a9
VS
45392 outimpFile=${D}outFile
45393fi
45394defFile="${D}{outFile}.def"
45395arcFile="${D}{outimpFile}.a"
45396arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
45397
45398#create ${D}dllFile as something matching 8.3 restrictions,
45399if [ -z ${D}renameScript ] ; then
45400 dllFile="${D}outFile"
45401else
45402 dllFile=\`${D}renameScript ${D}outimpFile\`
45403fi
473276a9 45404
1e9e8aba
DE
45405if [ ${D}do_backup -ne 0 ] ; then
45406 if [ -f ${D}arcFile ] ; then
473276a9
VS
45407 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
45408 fi
1e9e8aba 45409 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
45410 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
45411 fi
45412fi
45413
45414# Extract public symbols from all the object files.
45415tmpdefFile=${D}{defFile}_%
45416rm -f ${D}tmpdefFile
45417for file in ${D}inputFiles ; do
45418 case ${D}file in
45419 *!)
45420 ;;
45421 *)
45422 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45423 ;;
45424 esac
45425done
45426
45427# Create the def file.
45428rm -f ${D}defFile
45429echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
45430dllFile="${D}{dllFile}.dll"
45431if [ ! -z ${D}description ]; then
1e9e8aba 45432 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
45433fi
45434echo "EXPORTS" >> ${D}defFile
45435
45436doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45437grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45438
45439# Checks if the export is ok or not.
45440for word in ${D}exclude_symbols; do
45441 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45442 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45443done
45444
45445
1e9e8aba
DE
45446if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45447 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
45448 sed '
45449 N
45450 : loop
1e9e8aba 45451 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
45452 t loop
45453 ' > ${D}{tmpdefFile}%
45454 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45455else
45456 rm -f ${D}{tmpdefFile}%
45457fi
45458cat ${D}tmpdefFile >> ${D}defFile
45459rm -f ${D}tmpdefFile
45460
45461# Do linking, create implib, and apply lxlite.
45462gccCmdl="";
45463for file in ${D}inputFiles ; do
45464 case ${D}file in
45465 *!)
45466 ;;
45467 *)
45468 gccCmdl="${D}gccCmdl ${D}file"
45469 ;;
45470 esac
45471done
45472doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45473touch "${D}{outFile}.dll"
45474
45475doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45476if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45477 add_flags="";
1e9e8aba 45478 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45479 add_flags="-ynd"
45480 fi
45481 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45482fi
45483doCommand "emxomf -s -l ${D}arcFile"
45484
45485# Successful exit.
45486CleanUp 1
45487exit 0
45488EOF
45489
45490 chmod +x dllar.sh
a848cd7e
SC
45491 ;;
45492
1e9e8aba 45493 powerpc-apple-macos* | \
0ad5d837 45494 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45495 *-*-sunos4* | \
45496 *-*-osf* | \
45497 *-*-dgux5* | \
47a7e797
MW
45498 *-*-sysv5* | \
45499 *-pc-msdosdjgpp )
a848cd7e
SC
45500 ;;
45501
45502 *)
45503 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45504echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45505 { (exit 1); exit 1; }; }
45506 esac
45507
2057db16
VS
45508 if test "x$PIC_FLAG" != "x" ; then
45509 PIC_FLAG="$PIC_FLAG -DPIC"
45510 fi
45511
a848cd7e
SC
45512 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45513 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45514 fi
45515 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45516 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45517 fi
45518
45519
45520
45521
45522
45523
45524
45525
810b94f0 45526
a848cd7e
SC
45527 USE_SOVERSION=0
45528 USE_SOVERLINUX=0
45529 USE_SOVERSOLARIS=0
810b94f0 45530 USE_SOVERCYGWIN=0
a848cd7e
SC
45531 USE_SOSYMLINKS=0
45532 USE_MACVERSION=0
45533 SONAME_FLAG=
45534
45535 case "${BAKEFILE_HOST}" in
0ad5d837 45536 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45537 SONAME_FLAG="-Wl,-soname,"
45538 USE_SOVERSION=1
45539 USE_SOVERLINUX=1
45540 USE_SOSYMLINKS=1
45541 ;;
45542
a848cd7e
SC
45543 *-*-solaris2* )
45544 SONAME_FLAG="-h "
45545 USE_SOVERSION=1
45546 USE_SOVERSOLARIS=1
45547 USE_SOSYMLINKS=1
45548 ;;
45549
45550 *-*-darwin* )
45551 USE_MACVERSION=1
45552 USE_SOVERSION=1
45553 USE_SOSYMLINKS=1
45554 ;;
810b94f0
MW
45555
45556 *-*-cygwin* )
45557 USE_SOVERSION=1
45558 USE_SOVERCYGWIN=1
45559 ;;
a848cd7e
SC
45560 esac
45561
45562
45563
45564
45565
45566
45567
45568
45569
810b94f0 45570
a848cd7e
SC
45571 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45572echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45573 DEPS_TRACKING=1
a848cd7e
SC
45574
45575 if test "x$GCC" = "xyes"; then
45576 DEPSMODE=gcc
a848cd7e 45577 case "${BAKEFILE_HOST}" in
47bd5406 45578 *-*-darwin* )
0ad5d837 45579 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45580 ;;
45581 * )
0ad5d837 45582 DEPSFLAG="-MMD"
a848cd7e
SC
45583 ;;
45584 esac
45585 echo "$as_me:$LINENO: result: gcc" >&5
45586echo "${ECHO_T}gcc" >&6
b1d22ded 45587 elif test "x$MWCC" = "xyes"; then
81f90336 45588 DEPSMODE=mwcc
0ad5d837 45589 DEPSFLAG="-MM"
b1d22ded
DE
45590 echo "$as_me:$LINENO: result: mwcc" >&5
45591echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45592 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45593 DEPSMODE=unixcc
45594 DEPSFLAG="-xM1"
45595 echo "$as_me:$LINENO: result: Sun cc" >&5
45596echo "${ECHO_T}Sun cc" >&6
45597 elif test "x$SGICC" = "xyes"; then
45598 DEPSMODE=unixcc
45599 DEPSFLAG="-M"
45600 echo "$as_me:$LINENO: result: SGI cc" >&5
45601echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45602 elif test "x$HPCC" = "xyes"; then
45603 DEPSMODE=unixcc
45604 DEPSFLAG="+make"
45605 echo "$as_me:$LINENO: result: HP cc" >&5
45606echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45607 elif test "x$COMPAQCC" = "xyes"; then
45608 DEPSMODE=gcc
45609 DEPSFLAG="-MD"
45610 echo "$as_me:$LINENO: result: Compaq cc" >&5
45611echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45612 else
3006edc0 45613 DEPS_TRACKING=0
a848cd7e
SC
45614 echo "$as_me:$LINENO: result: none" >&5
45615echo "${ECHO_T}none" >&6
45616 fi
45617
45618 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45619
45620D='$'
45621cat <<EOF >bk-deps
a848cd7e
SC
45622#!/bin/sh
45623
45624# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45625# script. It is used to track C/C++ files dependencies in portable way.
45626#
45627# Permission is given to use this file in any way.
45628
473276a9 45629DEPSMODE=${DEPSMODE}
a848cd7e 45630DEPSDIR=.deps
0ad5d837 45631DEPSFLAG="${DEPSFLAG}"
a848cd7e 45632
473276a9 45633mkdir -p ${D}DEPSDIR
a848cd7e 45634
473276a9 45635if test ${D}DEPSMODE = gcc ; then
0ad5d837 45636 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45637 status=${D}?
45638 if test ${D}{status} != 0 ; then
45639 exit ${D}{status}
a848cd7e
SC
45640 fi
45641 # move created file to the location we want it in:
473276a9
VS
45642 while test ${D}# -gt 0; do
45643 case "${D}1" in
a848cd7e
SC
45644 -o )
45645 shift
473276a9 45646 objfile=${D}1
a848cd7e
SC
45647 ;;
45648 -* )
45649 ;;
45650 * )
473276a9 45651 srcfile=${D}1
a848cd7e
SC
45652 ;;
45653 esac
45654 shift
45655 done
1e9e8aba
DE
45656 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45657 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45658 if test -f ${D}depfile ; then
45659 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45660 rm -f ${D}depfile
a848cd7e 45661 else
a1aa0349 45662 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45663 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45664 if test ! -f ${D}depfile ; then
45665 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45666 depfile="${D}objfile.d"
45667 fi
473276a9
VS
45668 if test -f ${D}depfile ; then
45669 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45670 rm -f ${D}depfile
a848cd7e
SC
45671 fi
45672 fi
45673 exit 0
81f90336 45674elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45675 ${D}* || exit ${D}?
81f90336
MW
45676 # Run mwcc again with -MM and redirect into the dep file we want
45677 # NOTE: We can't use shift here because we need ${D}* to be valid
45678 prevarg=
45679 for arg in ${D}* ; do
45680 if test "${D}prevarg" = "-o"; then
45681 objfile=${D}arg
45682 else
45683 case "${D}arg" in
45684 -* )
45685 ;;
45686 * )
45687 srcfile=${D}arg
45688 ;;
45689 esac
45690 fi
45691 prevarg="${D}arg"
45692 done
0ad5d837 45693 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45694 exit 0
0ad5d837 45695elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45696 ${D}* || exit ${D}?
a9e5b1f0
MW
45697 # Run compiler again with deps flag and redirect into the dep file.
45698 # It doesn't work if the '-o FILE' option is used, but without it the
45699 # dependency file will contain the wrong name for the object. So it is
45700 # removed from the command line, and the dep file is fixed with sed.
45701 cmd=""
45702 while test ${D}# -gt 0; do
45703 case "${D}1" in
45704 -o )
45705 shift
45706 objfile=${D}1
45707 ;;
45708 * )
45709 eval arg${D}#=\\${D}1
45710 cmd="${D}cmd \\${D}arg${D}#"
45711 ;;
45712 esac
45713 shift
45714 done
0ad5d837 45715 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45716 exit 0
a848cd7e 45717else
473276a9
VS
45718 ${D}*
45719 exit ${D}?
a848cd7e
SC
45720fi
45721EOF
473276a9 45722
a848cd7e
SC
45723 chmod +x bk-deps
45724 fi
45725
45726
45727
45728
45729 RESCOMP=
45730 SETFILE=
45731
45732 case ${BAKEFILE_HOST} in
45733 *-*-cygwin* | *-*-mingw32* )
45734 if test "$build" != "$host" ; then
45735 RESCOMP=$host_alias-windres
45736 else
45737 # Extract the first word of "windres", so it can be a program name with args.
45738set dummy windres; ac_word=$2
45739echo "$as_me:$LINENO: checking for $ac_word" >&5
45740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45741if test "${ac_cv_prog_RESCOMP+set}" = set; then
45742 echo $ECHO_N "(cached) $ECHO_C" >&6
45743else
45744 if test -n "$RESCOMP"; then
45745 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45746else
45747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45748for as_dir in $PATH
45749do
45750 IFS=$as_save_IFS
45751 test -z "$as_dir" && as_dir=.
45752 for ac_exec_ext in '' $ac_executable_extensions; do
45753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45754 ac_cv_prog_RESCOMP="windres"
45755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45756 break 2
45757 fi
45758done
45759done
45760
45761 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45762fi
45763fi
45764RESCOMP=$ac_cv_prog_RESCOMP
45765if test -n "$RESCOMP"; then
45766 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45767echo "${ECHO_T}$RESCOMP" >&6
45768else
45769 echo "$as_me:$LINENO: result: no" >&5
45770echo "${ECHO_T}no" >&6
45771fi
45772
45773 fi
45774 ;;
45775
1e9e8aba 45776 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45777 # Extract the first word of "Rez", so it can be a program name with args.
45778set dummy Rez; ac_word=$2
45779echo "$as_me:$LINENO: checking for $ac_word" >&5
45780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45781if test "${ac_cv_prog_RESCOMP+set}" = set; then
45782 echo $ECHO_N "(cached) $ECHO_C" >&6
45783else
45784 if test -n "$RESCOMP"; then
45785 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45786else
45787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45788for as_dir in $PATH
45789do
45790 IFS=$as_save_IFS
45791 test -z "$as_dir" && as_dir=.
45792 for ac_exec_ext in '' $ac_executable_extensions; do
45793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45794 ac_cv_prog_RESCOMP="Rez"
45795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45796 break 2
45797 fi
45798done
45799done
45800
45801 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45802fi
45803fi
45804RESCOMP=$ac_cv_prog_RESCOMP
45805if test -n "$RESCOMP"; then
45806 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45807echo "${ECHO_T}$RESCOMP" >&6
45808else
45809 echo "$as_me:$LINENO: result: no" >&5
45810echo "${ECHO_T}no" >&6
45811fi
45812
45813 # Extract the first word of "SetFile", so it can be a program name with args.
45814set dummy SetFile; ac_word=$2
45815echo "$as_me:$LINENO: checking for $ac_word" >&5
45816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45817if test "${ac_cv_prog_SETFILE+set}" = set; then
45818 echo $ECHO_N "(cached) $ECHO_C" >&6
45819else
45820 if test -n "$SETFILE"; then
45821 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45822else
45823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45824for as_dir in $PATH
45825do
45826 IFS=$as_save_IFS
45827 test -z "$as_dir" && as_dir=.
45828 for ac_exec_ext in '' $ac_executable_extensions; do
45829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45830 ac_cv_prog_SETFILE="SetFile"
45831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45832 break 2
45833 fi
45834done
45835done
45836
45837 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45838fi
45839fi
45840SETFILE=$ac_cv_prog_SETFILE
45841if test -n "$SETFILE"; then
45842 echo "$as_me:$LINENO: result: $SETFILE" >&5
45843echo "${ECHO_T}$SETFILE" >&6
45844else
45845 echo "$as_me:$LINENO: result: no" >&5
45846echo "${ECHO_T}no" >&6
45847fi
45848
45849 ;;
45850 esac
45851
45852
45853
45854
45855
c9469659 45856 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45857
dcc1b6ad 45858
c9469659 45859BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45860
646b6ec1 45861
74b84332 45862
a848cd7e
SC
45863 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45864if test "${enable_precomp_headers+set}" = set; then
45865 enableval="$enable_precomp_headers"
45866 bk_use_pch="$enableval"
45867fi;
45868
45869 GCC_PCH=0
45870
5c60e845
MW
45871 case ${BAKEFILE_HOST} in
45872 *-*-cygwin* )
45873 bk_use_pch="no"
45874 ;;
45875 esac
45876
a848cd7e
SC
45877 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45878 if test "x$GCC" = "xyes"; then
45879 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45880echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45881 cat >conftest.$ac_ext <<_ACEOF
45882/* confdefs.h. */
45883_ACEOF
45884cat confdefs.h >>conftest.$ac_ext
45885cat >>conftest.$ac_ext <<_ACEOF
45886/* end confdefs.h. */
45887
45888int
45889main ()
45890{
45891
45892 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45893 #error "no pch support"
45894 #endif
45895 #if (__GNUC__ < 3)
45896 #error "no pch support"
45897 #endif
45898 #if (__GNUC__ == 3) && \
45899 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45900 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45901 #error "no pch support"
45902 #endif
45903
45904 ;
45905 return 0;
45906}
45907_ACEOF
45908rm -f conftest.$ac_objext
45909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45910 (eval $ac_compile) 2>conftest.er1
a848cd7e 45911 ac_status=$?
ac1cb8d3
VS
45912 grep -v '^ *+' conftest.er1 >conftest.err
45913 rm -f conftest.er1
45914 cat conftest.err >&5
a848cd7e
SC
45915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45916 (exit $ac_status); } &&
be665c07
JS
45917 { ac_try='test -z "$ac_c_werror_flag"
45918 || test ! -s conftest.err'
ac1cb8d3
VS
45919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45920 (eval $ac_try) 2>&5
45921 ac_status=$?
45922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45923 (exit $ac_status); }; } &&
45924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45926 (eval $ac_try) 2>&5
45927 ac_status=$?
45928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45929 (exit $ac_status); }; }; then
45930
45931 echo "$as_me:$LINENO: result: yes" >&5
45932echo "${ECHO_T}yes" >&6
a848cd7e
SC
45933 GCC_PCH=1
45934
45935else
45936 echo "$as_me: failed program was:" >&5
45937sed 's/^/| /' conftest.$ac_ext >&5
45938
45939
45940 echo "$as_me:$LINENO: result: no" >&5
45941echo "${ECHO_T}no" >&6
45942
45943fi
ac1cb8d3 45944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45945 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45946
45947D='$'
45948cat <<EOF >bk-make-pch
a848cd7e
SC
45949#!/bin/sh
45950
45951# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45952# script. It is used to generated precompiled headers.
45953#
45954# Permission is given to use this file in any way.
45955
1e9e8aba
DE
45956outfile="${D}{1}"
45957header="${D}{2}"
a848cd7e
SC
45958shift
45959shift
45960
45961compiler=
45962headerfile=
1e9e8aba
DE
45963while test ${D}{#} -gt 0; do
45964 case "${D}{1}" in
a848cd7e 45965 -I* )
1e9e8aba
DE
45966 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45967 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45968 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45969 fi
45970 ;;
45971 esac
1e9e8aba 45972 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45973 shift
45974done
45975
1e9e8aba
DE
45976if test "x${D}{headerfile}" = "x" ; then
45977 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45978else
1e9e8aba
DE
45979 if test -f ${D}{outfile} ; then
45980 rm -f ${D}{outfile}
a848cd7e 45981 else
1e9e8aba 45982 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45983 fi
1e9e8aba 45984 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45985 mkdir -p .deps
45986 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45987 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45988 exit ${D}{?}
a848cd7e
SC
45989fi
45990EOF
1e9e8aba 45991
a848cd7e
SC
45992 chmod +x bk-make-pch
45993 fi
45994 fi
45995 fi
45996
45997
45998
a848cd7e
SC
45999 COND_BUILD_DEBUG="#"
46000 if test "x$BUILD" = "xdebug" ; then
46001 COND_BUILD_DEBUG=""
46002 fi
46003
46004 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
46005 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
46006 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
46007 fi
46008
46009 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
46010 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
46011 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
46012 fi
46013
46014 COND_BUILD_DEBUG_UNICODE_0="#"
46015 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
46016 COND_BUILD_DEBUG_UNICODE_0=""
46017 fi
46018
46019 COND_BUILD_DEBUG_UNICODE_1="#"
46020 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
46021 COND_BUILD_DEBUG_UNICODE_1=""
46022 fi
46023
46024 COND_BUILD_RELEASE="#"
46025 if test "x$BUILD" = "xrelease" ; then
46026 COND_BUILD_RELEASE=""
46027 fi
46028
46029 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
46030 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
46031 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
46032 fi
46033
46034 COND_BUILD_RELEASE_UNICODE_0="#"
46035 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
46036 COND_BUILD_RELEASE_UNICODE_0=""
46037 fi
46038
46039 COND_BUILD_RELEASE_UNICODE_1="#"
46040 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
46041 COND_BUILD_RELEASE_UNICODE_1=""
46042 fi
46043
46044 COND_DEBUG_FLAG_1="#"
46045 if test "x$DEBUG_FLAG" = "x1" ; then
46046 COND_DEBUG_FLAG_1=""
46047 fi
46048
46049 COND_DEBUG_INFO_0="#"
46050 if test "x$DEBUG_INFO" = "x0" ; then
46051 COND_DEBUG_INFO_0=""
46052 fi
46053
46054 COND_DEBUG_INFO_1="#"
46055 if test "x$DEBUG_INFO" = "x1" ; then
46056 COND_DEBUG_INFO_1=""
46057 fi
46058
46059 COND_DEPS_TRACKING_0="#"
46060 if test "x$DEPS_TRACKING" = "x0" ; then
46061 COND_DEPS_TRACKING_0=""
46062 fi
46063
46064 COND_DEPS_TRACKING_1="#"
46065 if test "x$DEPS_TRACKING" = "x1" ; then
46066 COND_DEPS_TRACKING_1=""
46067 fi
46068
46069 COND_GCC_PCH_1="#"
46070 if test "x$GCC_PCH" = "x1" ; then
46071 COND_GCC_PCH_1=""
46072 fi
46073
46074 COND_MONOLITHIC_0="#"
46075 if test "x$MONOLITHIC" = "x0" ; then
46076 COND_MONOLITHIC_0=""
46077 fi
46078
46079 COND_MONOLITHIC_0_SHARED_0="#"
46080 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
46081 COND_MONOLITHIC_0_SHARED_0=""
46082 fi
46083
46084 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
46085 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
46086 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
46087 fi
46088
90970d69
DE
46089 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
46090 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
46091 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
46092 fi
46093
a848cd7e
SC
46094 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
46095 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
46096 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
46097 fi
46098
6671c68b
VZ
46099 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
46100 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
46101 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
46102 fi
46103
a848cd7e
SC
46104 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
46105 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
46106 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
46107 fi
46108
ceec2216
RL
46109 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
46110 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
46111 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
46112 fi
46113
a848cd7e
SC
46114 COND_MONOLITHIC_0_SHARED_1="#"
46115 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
46116 COND_MONOLITHIC_0_SHARED_1=""
46117 fi
46118
46119 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
46120 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
46121 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
46122 fi
46123
90970d69
DE
46124 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
46125 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
46126 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
46127 fi
46128
a848cd7e
SC
46129 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
46130 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
46131 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
46132 fi
46133
6671c68b
VZ
46134 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
46135 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
46136 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
46137 fi
46138
a848cd7e
SC
46139 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
46140 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
46141 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
46142 fi
46143
ceec2216
RL
46144 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
46145 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
46146 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
46147 fi
46148
a848cd7e
SC
46149 COND_MONOLITHIC_0_USE_ODBC_1="#"
46150 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
46151 COND_MONOLITHIC_0_USE_ODBC_1=""
46152 fi
46153
46154 COND_MONOLITHIC_1="#"
46155 if test "x$MONOLITHIC" = "x1" ; then
46156 COND_MONOLITHIC_1=""
46157 fi
46158
46159 COND_MONOLITHIC_1_SHARED_0="#"
46160 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
46161 COND_MONOLITHIC_1_SHARED_0=""
46162 fi
46163
46164 COND_MONOLITHIC_1_SHARED_1="#"
46165 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
46166 COND_MONOLITHIC_1_SHARED_1=""
46167 fi
46168
46169 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
46170 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
46171 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
46172 fi
46173
46174 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
46175 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
46176 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
46177 fi
46178
eb730a0c
JS
46179 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
46180 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
46181 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
46182 fi
46183
a848cd7e
SC
46184 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
46185 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
46186 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
46187 fi
46188
46189 COND_PLATFORM_MACOSX_1="#"
46190 if test "x$PLATFORM_MACOSX" = "x1" ; then
46191 COND_PLATFORM_MACOSX_1=""
46192 fi
46193
a30f955f
VS
46194 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
46195 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
46196 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
46197 fi
46198
a848cd7e
SC
46199 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
46200 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
46201 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
46202 fi
46203
46204 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
46205 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
46206 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
46207 fi
46208
46209 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
46210 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
46211 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
46212 fi
46213
fc480dc1
DE
46214 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
46215 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46216 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
46217 fi
46218
1e9e8aba
DE
46219 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46220 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46221 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46222 fi
46223
ebee3cd0
VS
46224 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
46225 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
46226 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
46227 fi
46228
46229 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
46230 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
46231 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
46232 fi
46233
a848cd7e
SC
46234 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
46235 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
46236 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
46237 fi
46238
46239 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
46240 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46241 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
46242 fi
46243
b48a2016
DE
46244 COND_PLATFORM_MACOS_1="#"
46245 if test "x$PLATFORM_MACOS" = "x1" ; then
46246 COND_PLATFORM_MACOS_1=""
46247 fi
46248
083508af
MW
46249 COND_PLATFORM_MAC_1="#"
46250 if test "x$PLATFORM_MAC" = "x1" ; then
46251 COND_PLATFORM_MAC_1=""
46252 fi
46253
83d8eb47
MW
46254 COND_PLATFORM_MSDOS_1="#"
46255 if test "x$PLATFORM_MSDOS" = "x1" ; then
46256 COND_PLATFORM_MSDOS_1=""
46257 fi
46258
a848cd7e
SC
46259 COND_PLATFORM_OS2_1="#"
46260 if test "x$PLATFORM_OS2" = "x1" ; then
46261 COND_PLATFORM_OS2_1=""
46262 fi
46263
46264 COND_PLATFORM_UNIX_0="#"
46265 if test "x$PLATFORM_UNIX" = "x0" ; then
46266 COND_PLATFORM_UNIX_0=""
46267 fi
46268
46269 COND_PLATFORM_UNIX_1="#"
46270 if test "x$PLATFORM_UNIX" = "x1" ; then
46271 COND_PLATFORM_UNIX_1=""
46272 fi
46273
46274 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
46275 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
46276 COND_PLATFORM_UNIX_1_USE_GUI_1=""
46277 fi
46278
46279 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
46280 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
46281 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
46282 fi
46283
46284 COND_PLATFORM_WIN32_0="#"
46285 if test "x$PLATFORM_WIN32" = "x0" ; then
46286 COND_PLATFORM_WIN32_0=""
46287 fi
46288
46289 COND_PLATFORM_WIN32_1="#"
46290 if test "x$PLATFORM_WIN32" = "x1" ; then
46291 COND_PLATFORM_WIN32_1=""
46292 fi
46293
46294 COND_SHARED_0="#"
46295 if test "x$SHARED" = "x0" ; then
46296 COND_SHARED_0=""
46297 fi
46298
083508af
MW
46299 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
46300 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
46301 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
46302 fi
46303
46304 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
46305 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46306 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
46307 fi
46308
46309 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
46310 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
46311 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
46312 fi
46313
a848cd7e
SC
46314 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
46315 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
46316 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
46317 fi
46318
46319 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46320 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46321 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46322 fi
46323
46324 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46325 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46326 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46327 fi
46328
46329 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46330 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46331 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46332 fi
46333
083508af
MW
46334 COND_SHARED_0_USE_XRC_1="#"
46335 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
46336 COND_SHARED_0_USE_XRC_1=""
46337 fi
46338
a848cd7e
SC
46339 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
46340 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
46341 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
46342 fi
46343
46344 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
46345 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
46346 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
46347 fi
46348
46349 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
46350 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
46351 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
46352 fi
46353
46354 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
46355 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
46356 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
46357 fi
46358
46359 COND_SHARED_1="#"
46360 if test "x$SHARED" = "x1" ; then
46361 COND_SHARED_1=""
46362 fi
46363
46364 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
46365 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
46366 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
46367 fi
46368
083508af
MW
46369 COND_SHARED_1_USE_XRC_1="#"
46370 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
46371 COND_SHARED_1_USE_XRC_1=""
46372 fi
46373
a30f955f
VS
46374 COND_TOOLKIT_="#"
46375 if test "x$TOOLKIT" = "x" ; then
46376 COND_TOOLKIT_=""
46377 fi
46378
a848cd7e
SC
46379 COND_TOOLKIT_COCOA="#"
46380 if test "x$TOOLKIT" = "xCOCOA" ; then
46381 COND_TOOLKIT_COCOA=""
46382 fi
46383
a49baeab
DE
46384 COND_TOOLKIT_COCOA_USE_GUI_1="#"
46385 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
46386 COND_TOOLKIT_COCOA_USE_GUI_1=""
46387 fi
46388
a848cd7e
SC
46389 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
46390 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46391 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
46392 fi
46393
46394 COND_TOOLKIT_GTK="#"
46395 if test "x$TOOLKIT" = "xGTK" ; then
46396 COND_TOOLKIT_GTK=""
46397 fi
46398
46399 COND_TOOLKIT_GTK_USE_GUI_1="#"
46400 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
46401 COND_TOOLKIT_GTK_USE_GUI_1=""
46402 fi
46403
46404 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
46405 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46406 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
46407 fi
46408
46409 COND_TOOLKIT_MAC="#"
46410 if test "x$TOOLKIT" = "xMAC" ; then
46411 COND_TOOLKIT_MAC=""
46412 fi
46413
46414 COND_TOOLKIT_MAC_USE_GUI_1="#"
46415 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46416 COND_TOOLKIT_MAC_USE_GUI_1=""
46417 fi
46418
46419 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46420 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46421 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46422 fi
46423
46424 COND_TOOLKIT_MGL="#"
46425 if test "x$TOOLKIT" = "xMGL" ; then
46426 COND_TOOLKIT_MGL=""
46427 fi
46428
46429 COND_TOOLKIT_MGL_USE_GUI_1="#"
46430 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46431 COND_TOOLKIT_MGL_USE_GUI_1=""
46432 fi
46433
46434 COND_TOOLKIT_MOTIF="#"
46435 if test "x$TOOLKIT" = "xMOTIF" ; then
46436 COND_TOOLKIT_MOTIF=""
46437 fi
46438
46439 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46440 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46441 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46442 fi
46443
46444 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46445 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46446 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46447 fi
46448
46449 COND_TOOLKIT_MSW="#"
46450 if test "x$TOOLKIT" = "xMSW" ; then
46451 COND_TOOLKIT_MSW=""
46452 fi
46453
46454 COND_TOOLKIT_MSW_USE_GUI_1="#"
46455 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46456 COND_TOOLKIT_MSW_USE_GUI_1=""
46457 fi
46458
46459 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46460 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46461 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46462 fi
46463
0ee4059d
DE
46464 COND_TOOLKIT_MSW_WXUNIV_0="#"
46465 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46466 COND_TOOLKIT_MSW_WXUNIV_0=""
46467 fi
46468
a848cd7e
SC
46469 COND_TOOLKIT_PM="#"
46470 if test "x$TOOLKIT" = "xPM" ; then
46471 COND_TOOLKIT_PM=""
46472 fi
46473
46474 COND_TOOLKIT_PM_USE_GUI_1="#"
46475 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46476 COND_TOOLKIT_PM_USE_GUI_1=""
46477 fi
46478
46479 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46480 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46481 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46482 fi
46483
3fd9c298
DE
46484 COND_TOOLKIT_WINCE="#"
46485 if test "x$TOOLKIT" = "xWINCE" ; then
46486 COND_TOOLKIT_WINCE=""
46487 fi
46488
46489 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46490 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46491 COND_TOOLKIT_WINCE_USE_GUI_1=""
46492 fi
46493
46494 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46495 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46496 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46497 fi
46498
0ee4059d
DE
46499 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46500 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46501 COND_TOOLKIT_WINCE_WXUNIV_0=""
46502 fi
46503
a848cd7e
SC
46504 COND_TOOLKIT_X11="#"
46505 if test "x$TOOLKIT" = "xX11" ; then
46506 COND_TOOLKIT_X11=""
46507 fi
46508
46509 COND_TOOLKIT_X11_USE_GUI_1="#"
46510 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46511 COND_TOOLKIT_X11_USE_GUI_1=""
46512 fi
46513
46514 COND_UNICODE_1="#"
46515 if test "x$UNICODE" = "x1" ; then
46516 COND_UNICODE_1=""
46517 fi
46518
46519 COND_USE_EXCEPTIONS_0="#"
46520 if test "x$USE_EXCEPTIONS" = "x0" ; then
46521 COND_USE_EXCEPTIONS_0=""
46522 fi
46523
46524 COND_USE_EXCEPTIONS_1="#"
46525 if test "x$USE_EXCEPTIONS" = "x1" ; then
46526 COND_USE_EXCEPTIONS_1=""
46527 fi
46528
46529 COND_USE_GUI_0="#"
46530 if test "x$USE_GUI" = "x0" ; then
46531 COND_USE_GUI_0=""
46532 fi
46533
46534 COND_USE_GUI_1="#"
46535 if test "x$USE_GUI" = "x1" ; then
46536 COND_USE_GUI_1=""
46537 fi
46538
46539 COND_USE_GUI_1_WXUNIV_0="#"
46540 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46541 COND_USE_GUI_1_WXUNIV_0=""
46542 fi
46543
46544 COND_USE_GUI_1_WXUNIV_1="#"
46545 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46546 COND_USE_GUI_1_WXUNIV_1=""
46547 fi
46548
46549 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46550 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46551 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46552 fi
46553
46554 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46555 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46556 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46557 fi
46558
46559 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46560 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46561 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46562 fi
46563
083508af
MW
46564 COND_USE_ODBC_1="#"
46565 if test "x$USE_ODBC" = "x1" ; then
46566 COND_USE_ODBC_1=""
46567 fi
46568
46569 COND_USE_OPENGL_1="#"
46570 if test "x$USE_OPENGL" = "x1" ; then
46571 COND_USE_OPENGL_1=""
46572 fi
46573
a848cd7e
SC
46574 COND_USE_PLUGINS_0="#"
46575 if test "x$USE_PLUGINS" = "x0" ; then
46576 COND_USE_PLUGINS_0=""
46577 fi
46578
0b78747f
MW
46579 COND_USE_RTTI_0="#"
46580 if test "x$USE_RTTI" = "x0" ; then
46581 COND_USE_RTTI_0=""
46582 fi
46583
46584 COND_USE_RTTI_1="#"
46585 if test "x$USE_RTTI" = "x1" ; then
46586 COND_USE_RTTI_1=""
46587 fi
46588
a848cd7e
SC
46589 COND_USE_SOSYMLINKS_1="#"
46590 if test "x$USE_SOSYMLINKS" = "x1" ; then
46591 COND_USE_SOSYMLINKS_1=""
46592 fi
46593
eb730a0c
JS
46594 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46595 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46596 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46597 fi
46598
a848cd7e
SC
46599 COND_USE_SOVERLINUX_1="#"
46600 if test "x$USE_SOVERLINUX" = "x1" ; then
46601 COND_USE_SOVERLINUX_1=""
46602 fi
46603
46604 COND_USE_SOVERSION_0="#"
46605 if test "x$USE_SOVERSION" = "x0" ; then
46606 COND_USE_SOVERSION_0=""
46607 fi
46608
46609 COND_USE_SOVERSOLARIS_1="#"
46610 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46611 COND_USE_SOVERSOLARIS_1=""
46612 fi
46613
0b78747f
MW
46614 COND_USE_THREADS_0="#"
46615 if test "x$USE_THREADS" = "x0" ; then
46616 COND_USE_THREADS_0=""
46617 fi
46618
46619 COND_USE_THREADS_1="#"
46620 if test "x$USE_THREADS" = "x1" ; then
46621 COND_USE_THREADS_1=""
46622 fi
46623
a13a7f89
RL
46624 COND_USE_XRC_1="#"
46625 if test "x$USE_XRC" = "x1" ; then
46626 COND_USE_XRC_1=""
46627 fi
46628
eb730a0c
JS
46629 COND_WINDOWS_IMPLIB_1="#"
46630 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46631 COND_WINDOWS_IMPLIB_1=""
46632 fi
46633
a848cd7e
SC
46634 COND_WITH_PLUGIN_SDL_1="#"
46635 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46636 COND_WITH_PLUGIN_SDL_1=""
46637 fi
46638
1e6eb025
VZ
46639 COND_WXUNIV_0="#"
46640 if test "x$WXUNIV" = "x0" ; then
46641 COND_WXUNIV_0=""
46642 fi
46643
a848cd7e
SC
46644 COND_WXUNIV_1="#"
46645 if test "x$WXUNIV" = "x1" ; then
46646 COND_WXUNIV_1=""
46647 fi
46648
46649 COND_WXUSE_EXPAT_BUILTIN="#"
46650 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46651 COND_WXUSE_EXPAT_BUILTIN=""
46652 fi
46653
46654 COND_WXUSE_LIBJPEG_BUILTIN="#"
46655 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46656 COND_WXUSE_LIBJPEG_BUILTIN=""
46657 fi
46658
46659 COND_WXUSE_LIBPNG_BUILTIN="#"
46660 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46661 COND_WXUSE_LIBPNG_BUILTIN=""
46662 fi
46663
46664 COND_WXUSE_LIBTIFF_BUILTIN="#"
46665 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46666 COND_WXUSE_LIBTIFF_BUILTIN=""
46667 fi
46668
46669 COND_WXUSE_ODBC_BUILTIN="#"
46670 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46671 COND_WXUSE_ODBC_BUILTIN=""
46672 fi
46673
46674 COND_WXUSE_REGEX_BUILTIN="#"
46675 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46676 COND_WXUSE_REGEX_BUILTIN=""
46677 fi
46678
46679 COND_WXUSE_ZLIB_BUILTIN="#"
46680 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46681 COND_WXUSE_ZLIB_BUILTIN=""
46682 fi
46683
46684
46685
810b94f0
MW
46686 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46687 { { 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
46688echo "$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;}
46689 { (exit 1); exit 1; }; }
46690 fi
46691
2057db16
VS
46692 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46693 { { 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
46694echo "$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;}
46695 { (exit 1); exit 1; }; }
46696 fi
46697
a848cd7e 46698
ceec2216
RL
46699if test "$wxUSE_SHARED" = "yes"; then
46700
46701 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46702 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46703
5b674b9d
DE
46704 case "${host}" in
46705 *-pc-os2_emx | *-pc-os2-emx )
46706 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46707 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46708 cp -p ${srcdir}/src/os2/dllnames.sh .
46709 cp -p ${srcdir}/src/os2/dllar.sh .
46710 ;;
46711 esac
ceec2216
RL
46712else
46713
46714 EXE_LINKER="$CXX -o"
46715
46716fi
69120ee4
VZ
46717if test "$wxUSE_OMF" = "yes"; then
46718 case "${host}" in
46719 *-pc-os2_emx | *-pc-os2-emx )
46720 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46721 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46722 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46723 ;;
46724 esac
46725fi
a848cd7e 46726
c08ebc62 46727if test $GCC_PCH = 1 ; then
254e8e29 46728 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46729fi
a848cd7e 46730
2eef8513 46731CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
46732
46733SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46734
46735
46736
46737
46738
46739
46740
46741
46742
46743
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754
46755
46756
46757
46758
46759
46760
46761
46762
46763
46764
46765
46766
46767
46768
46769
46770
46771
46772
46773
46774
46775
a848cd7e
SC
46776
46777
46778
46779
46780
46781
46782
46783
46784
46785
46786
46787
46788
46789
46790
46791
46792
46793
ddd14b14 46794
a848cd7e
SC
46795
46796
46797echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46798echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46799set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46800if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46801 echo $ECHO_N "(cached) $ECHO_C" >&6
46802else
46803 cat >conftest.make <<\_ACEOF
46804all:
46805 @echo 'ac_maketemp="$(MAKE)"'
46806_ACEOF
46807# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46808eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46809if test -n "$ac_maketemp"; then
46810 eval ac_cv_prog_make_${ac_make}_set=yes
46811else
46812 eval ac_cv_prog_make_${ac_make}_set=no
46813fi
46814rm -f conftest.make
46815fi
46816if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46817 echo "$as_me:$LINENO: result: yes" >&5
46818echo "${ECHO_T}yes" >&6
46819 SET_MAKE=
46820else
46821 echo "$as_me:$LINENO: result: no" >&5
46822echo "${ECHO_T}no" >&6
46823 SET_MAKE="MAKE=${MAKE-make}"
46824fi
46825
46826
a848cd7e 46827
ceec2216
RL
46828 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46829
a848cd7e 46830
5c60e845
MW
46831if test "$USE_WIN32" = 1; then
46832 ac_config_commands="$ac_config_commands
46833 rcdefs.h
46834 "
46835
46836fi
46837
ceec2216 46838 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46839
a848cd7e 46840
ceec2216 46841 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46842
ceec2216
RL
46843
46844 ac_config_files="$ac_config_files version-script Makefile"
46845
46846
5c60e845 46847 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
46848
46849
9103d280 46850
1c14217d 46851if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46852if test "$wxUSE_GUI" = "yes"; then
46853 SUBDIRS="samples demos utils contrib"
46854else SUBDIRS="samples utils"
46855fi
46856
46857
46858
46859# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46860if test "${with_cppunit_prefix+set}" = set; then
46861 withval="$with_cppunit_prefix"
46862 cppunit_config_prefix="$withval"
46863else
46864 cppunit_config_prefix=""
46865fi;
46866
46867# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46868if test "${with_cppunit_exec_prefix+set}" = set; then
46869 withval="$with_cppunit_exec_prefix"
46870 cppunit_config_exec_prefix="$withval"
46871else
46872 cppunit_config_exec_prefix=""
46873fi;
46874
46875 if test x$cppunit_config_exec_prefix != x ; then
46876 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46877 if test x${CPPUNIT_CONFIG+set} != xset ; then
46878 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46879 fi
46880 fi
46881 if test x$cppunit_config_prefix != x ; then
46882 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46883 if test x${CPPUNIT_CONFIG+set} != xset ; then
46884 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46885 fi
46886 fi
46887
46888 # Extract the first word of "cppunit-config", so it can be a program name with args.
46889set dummy cppunit-config; ac_word=$2
46890echo "$as_me:$LINENO: checking for $ac_word" >&5
46891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46892if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46893 echo $ECHO_N "(cached) $ECHO_C" >&6
46894else
46895 case $CPPUNIT_CONFIG in
46896 [\\/]* | ?:[\\/]*)
46897 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46898 ;;
46899 *)
46900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46901for as_dir in $PATH
46902do
46903 IFS=$as_save_IFS
46904 test -z "$as_dir" && as_dir=.
46905 for ac_exec_ext in '' $ac_executable_extensions; do
46906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46907 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46909 break 2
46910 fi
46911done
46912done
46913
46914 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46915 ;;
46916esac
46917fi
46918CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46919
46920if test -n "$CPPUNIT_CONFIG"; then
46921 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46922echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46923else
46924 echo "$as_me:$LINENO: result: no" >&5
46925echo "${ECHO_T}no" >&6
46926fi
46927
46928 cppunit_version_min=1.8.0
46929
46930 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46931echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46932 no_cppunit=""
46933 if test "$CPPUNIT_CONFIG" = "no" ; then
46934 no_cppunit=yes
46935 else
46936 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46937 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46938 cppunit_version=`$CPPUNIT_CONFIG --version`
46939
46940 cppunit_major_version=`echo $cppunit_version | \
46941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46942 cppunit_minor_version=`echo $cppunit_version | \
46943 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46944 cppunit_micro_version=`echo $cppunit_version | \
46945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46946
46947 cppunit_major_min=`echo $cppunit_version_min | \
46948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46949 cppunit_minor_min=`echo $cppunit_version_min | \
46950 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46951 cppunit_micro_min=`echo $cppunit_version_min | \
46952 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46953
46954 cppunit_version_proper=`expr \
46955 $cppunit_major_version \> $cppunit_major_min \| \
46956 $cppunit_major_version \= $cppunit_major_min \& \
46957 $cppunit_minor_version \> $cppunit_minor_min \| \
46958 $cppunit_major_version \= $cppunit_major_min \& \
46959 $cppunit_minor_version \= $cppunit_minor_min \& \
46960 $cppunit_micro_version \>= $cppunit_micro_min `
46961
46962 if test "$cppunit_version_proper" = "1" ; then
46963 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46964echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46965 else
46966 echo "$as_me:$LINENO: result: no" >&5
46967echo "${ECHO_T}no" >&6
46968 no_cppunit=yes
46969 fi
46970 fi
46971
46972 if test "x$no_cppunit" = x ; then
c2218763 46973 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46974 else
46975 CPPUNIT_CFLAGS=""
46976 CPPUNIT_LIBS=""
c2218763 46977 :
a848cd7e
SC
46978 fi
46979
46980
46981
46982
46983
46984for subdir in `echo $SUBDIRS`; do
46985 if test -d ${srcdir}/${subdir} ; then
46986 if test "$wxUSE_GUI" = "yes"; then
46987 if test ${subdir} = "samples"; then
46988 makefiles="samples/Makefile.in $makefiles"
46989 for sample in `echo $SAMPLES_SUBDIRS`; do
46990 if test -d $srcdir/samples/$sample; then
46991 makefiles="samples/$sample/Makefile.in $makefiles"
46992 fi
46993 done
9c112555
MW
46994 else
46995 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46996 eval "disabled=\$$disabled_var"
46997 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46998 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46999 fi
47000 else if test ${subdir} = "samples"; then
47001 makefiles="samples/Makefile.in samples/console/Makefile.in"
47002 elif test ${subdir} = "utils"; then
6537ccf8
VS
47003 makefiles=""
47004 for util in HelpGen tex2rtf ; do
47005 if test -d $srcdir/utils/$util ; then
47006 makefiles="utils/$util/Makefile.in \
47007 utils/$util/src/Makefile.in \
47008 $makefiles"
47009 fi
47010 done
a848cd7e
SC
47011 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
47012 fi
47013 fi
47014
47015 for mkin in $makefiles ; do
47016 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
47017 ac_config_files="$ac_config_files $mk"
47018
47019 done
47020 fi
47021done
1c14217d 47022fi
a848cd7e
SC
47023cat >confcache <<\_ACEOF
47024# This file is a shell script that caches the results of configure
47025# tests run on this system so they can be shared between configure
47026# scripts and configure runs, see configure's option --config-cache.
47027# It is not useful on other systems. If it contains results you don't
47028# want to keep, you may remove or edit it.
47029#
47030# config.status only pays attention to the cache file if you give it
47031# the --recheck option to rerun configure.
47032#
47033# `ac_cv_env_foo' variables (set or unset) will be overridden when
47034# loading this file, other *unset* `ac_cv_foo' will be assigned the
47035# following values.
47036
47037_ACEOF
47038
47039# The following way of writing the cache mishandles newlines in values,
47040# but we know of no workaround that is simple, portable, and efficient.
47041# So, don't put newlines in cache variables' values.
47042# Ultrix sh set writes to stderr and can't be redirected directly,
47043# and sets the high bit in the cache file unless we assign to the vars.
47044{
47045 (set) 2>&1 |
47046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
47047 *ac_space=\ *)
47048 # `set' does not quote correctly, so add quotes (double-quote
47049 # substitution turns \\\\ into \\, and sed turns \\ into \).
47050 sed -n \
ac1cb8d3
VS
47051 "s/'/'\\\\''/g;
47052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
47053 ;;
47054 *)
47055 # `set' quotes correctly as required by POSIX, so do not add quotes.
47056 sed -n \
ac1cb8d3 47057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
47058 ;;
47059 esac;
47060} |
47061 sed '
47062 t clear
47063 : clear
47064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47065 t end
47066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47067 : end' >>confcache
47068if diff $cache_file confcache >/dev/null 2>&1; then :; else
47069 if test -w $cache_file; then
47070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
47071 cat confcache >$cache_file
47072 else
47073 echo "not updating unwritable cache $cache_file"
47074 fi
47075fi
47076rm -f confcache
47077
47078test "x$prefix" = xNONE && prefix=$ac_default_prefix
47079# Let make expand exec_prefix.
47080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47081
47082# VPATH may cause trouble with some makes, so we remove $(srcdir),
47083# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47084# trailing colons and then remove the whole line if VPATH becomes empty
47085# (actually we leave an empty line to preserve line numbers).
47086if test "x$srcdir" = x.; then
ac1cb8d3 47087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
47088s/:*\$(srcdir):*/:/;
47089s/:*\${srcdir}:*/:/;
47090s/:*@srcdir@:*/:/;
ac1cb8d3 47091s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 47092s/:*$//;
ac1cb8d3 47093s/^[^=]*=[ ]*$//;
a848cd7e
SC
47094}'
47095fi
47096
47097DEFS=-DHAVE_CONFIG_H
47098
47099ac_libobjs=
47100ac_ltlibobjs=
47101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47102 # 1. Remove the extension, and $U if already installed.
47103 ac_i=`echo "$ac_i" |
ac1cb8d3 47104 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
47105 # 2. Add them.
47106 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
47107 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
47108done
47109LIBOBJS=$ac_libobjs
47110
47111LTLIBOBJS=$ac_ltlibobjs
47112
47113
47114
47115: ${CONFIG_STATUS=./config.status}
47116ac_clean_files_save=$ac_clean_files
47117ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47118{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47119echo "$as_me: creating $CONFIG_STATUS" >&6;}
47120cat >$CONFIG_STATUS <<_ACEOF
47121#! $SHELL
47122# Generated by $as_me.
47123# Run this file to recreate the current configuration.
47124# Compiler output produced by configure, useful for debugging
47125# configure, is in config.log if it exists.
47126
47127debug=false
47128ac_cs_recheck=false
47129ac_cs_silent=false
47130SHELL=\${CONFIG_SHELL-$SHELL}
47131_ACEOF
47132
47133cat >>$CONFIG_STATUS <<\_ACEOF
47134## --------------------- ##
47135## M4sh Initialization. ##
47136## --------------------- ##
47137
47138# Be Bourne compatible
47139if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47140 emulate sh
47141 NULLCMD=:
47142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
47143 # is contrary to our usage. Disable this feature.
47144 alias -g '${1+"$@"}'='"$@"'
47145elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
47146 set -o posix
47147fi
ac1cb8d3 47148DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
47149
47150# Support unset when possible.
ac1cb8d3 47151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
47152 as_unset=unset
47153else
47154 as_unset=false
47155fi
47156
47157
47158# Work around bugs in pre-3.0 UWIN ksh.
47159$as_unset ENV MAIL MAILPATH
47160PS1='$ '
47161PS2='> '
47162PS4='+ '
47163
47164# NLS nuisances.
47165for as_var in \
47166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47168 LC_TELEPHONE LC_TIME
47169do
ac1cb8d3 47170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
47171 eval $as_var=C; export $as_var
47172 else
47173 $as_unset $as_var
47174 fi
47175done
47176
47177# Required to use basename.
47178if expr a : '\(a\)' >/dev/null 2>&1; then
47179 as_expr=expr
47180else
47181 as_expr=false
47182fi
47183
47184if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
47185 as_basename=basename
47186else
47187 as_basename=false
47188fi
47189
47190
47191# Name of the executable.
47192as_me=`$as_basename "$0" ||
47193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47194 X"$0" : 'X\(//\)$' \| \
47195 X"$0" : 'X\(/\)$' \| \
47196 . : '\(.\)' 2>/dev/null ||
47197echo X/"$0" |
47198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
47199 /^X\/\(\/\/\)$/{ s//\1/; q; }
47200 /^X\/\(\/\).*/{ s//\1/; q; }
47201 s/.*/./; q'`
47202
47203
47204# PATH needs CR, and LINENO needs CR and PATH.
47205# Avoid depending upon Character Ranges.
47206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47209as_cr_digits='0123456789'
47210as_cr_alnum=$as_cr_Letters$as_cr_digits
47211
47212# The user is always right.
47213if test "${PATH_SEPARATOR+set}" != set; then
47214 echo "#! /bin/sh" >conf$$.sh
47215 echo "exit 0" >>conf$$.sh
47216 chmod +x conf$$.sh
47217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47218 PATH_SEPARATOR=';'
47219 else
47220 PATH_SEPARATOR=:
47221 fi
47222 rm -f conf$$.sh
47223fi
47224
47225
47226 as_lineno_1=$LINENO
47227 as_lineno_2=$LINENO
47228 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
47229 test "x$as_lineno_1" != "x$as_lineno_2" &&
47230 test "x$as_lineno_3" = "x$as_lineno_2" || {
47231 # Find who we are. Look in the path if we contain no path at all
47232 # relative or not.
47233 case $0 in
47234 *[\\/]* ) as_myself=$0 ;;
47235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47236for as_dir in $PATH
47237do
47238 IFS=$as_save_IFS
47239 test -z "$as_dir" && as_dir=.
47240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47241done
47242
47243 ;;
47244 esac
47245 # We did not find ourselves, most probably we were run as `sh COMMAND'
47246 # in which case we are not to be found in the path.
47247 if test "x$as_myself" = x; then
47248 as_myself=$0
47249 fi
47250 if test ! -f "$as_myself"; then
47251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
47252echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
47253 { (exit 1); exit 1; }; }
47254 fi
47255 case $CONFIG_SHELL in
47256 '')
47257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47258for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
47259do
47260 IFS=$as_save_IFS
47261 test -z "$as_dir" && as_dir=.
47262 for as_base in sh bash ksh sh5; do
47263 case $as_dir in
47264 /*)
47265 if ("$as_dir/$as_base" -c '
47266 as_lineno_1=$LINENO
47267 as_lineno_2=$LINENO
47268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
47269 test "x$as_lineno_1" != "x$as_lineno_2" &&
47270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
47271 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
47272 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
47273 CONFIG_SHELL=$as_dir/$as_base
47274 export CONFIG_SHELL
47275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
47276 fi;;
47277 esac
47278 done
47279done
47280;;
47281 esac
47282
47283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47284 # uniformly replaced by the line number. The first 'sed' inserts a
47285 # line-number line before each line; the second 'sed' does the real
47286 # work. The second script uses 'N' to pair each line-number line
47287 # with the numbered line, and appends trailing '-' during
47288 # substitution so that $LINENO is not a special case at line end.
47289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
47291 sed '=' <$as_myself |
47292 sed '
47293 N
47294 s,$,-,
47295 : loop
47296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
47297 t loop
47298 s,-$,,
47299 s,^['$as_cr_digits']*\n,,
47300 ' >$as_me.lineno &&
47301 chmod +x $as_me.lineno ||
47302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
47303echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
47304 { (exit 1); exit 1; }; }
47305
47306 # Don't try to exec as it changes $[0], causing all sort of problems
47307 # (the dirname of $[0] is not the place where we might find the
47308 # original and so on. Autoconf is especially sensible to this).
47309 . ./$as_me.lineno
47310 # Exit status is that of the last command.
47311 exit
47312}
47313
47314
47315case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
47316 *c*,-n*) ECHO_N= ECHO_C='
47317' ECHO_T=' ' ;;
47318 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
47319 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
47320esac
47321
47322if expr a : '\(a\)' >/dev/null 2>&1; then
47323 as_expr=expr
47324else
47325 as_expr=false
47326fi
47327
47328rm -f conf$$ conf$$.exe conf$$.file
47329echo >conf$$.file
47330if ln -s conf$$.file conf$$ 2>/dev/null; then
47331 # We could just check for DJGPP; but this test a) works b) is more generic
47332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47333 if test -f conf$$.exe; then
47334 # Don't use ln at all; we don't have any links
47335 as_ln_s='cp -p'
47336 else
47337 as_ln_s='ln -s'
47338 fi
47339elif ln conf$$.file conf$$ 2>/dev/null; then
47340 as_ln_s=ln
47341else
47342 as_ln_s='cp -p'
47343fi
47344rm -f conf$$ conf$$.exe conf$$.file
47345
47346if mkdir -p . 2>/dev/null; then
47347 as_mkdir_p=:
47348else
ac1cb8d3 47349 test -d ./-p && rmdir ./-p
a848cd7e
SC
47350 as_mkdir_p=false
47351fi
47352
47353as_executable_p="test -f"
47354
47355# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 47356as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
47357
47358# Sed expression to map a string onto a valid variable name.
ac1cb8d3 47359as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
47360
47361
47362# IFS
47363# We need space, tab and new line, in precisely that order.
47364as_nl='
47365'
47366IFS=" $as_nl"
47367
47368# CDPATH.
47369$as_unset CDPATH
47370
47371exec 6>&1
47372
47373# Open the log real soon, to keep \$[0] and so on meaningful, and to
47374# report actual input values of CONFIG_FILES etc. instead of their
47375# values after options handling. Logging --version etc. is OK.
47376exec 5>>config.log
47377{
47378 echo
47379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47380## Running $as_me. ##
47381_ASBOX
47382} >&5
47383cat >&5 <<_CSEOF
47384
dd8df4fc 47385This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 47386generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
47387
47388 CONFIG_FILES = $CONFIG_FILES
47389 CONFIG_HEADERS = $CONFIG_HEADERS
47390 CONFIG_LINKS = $CONFIG_LINKS
47391 CONFIG_COMMANDS = $CONFIG_COMMANDS
47392 $ $0 $@
47393
47394_CSEOF
47395echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47396echo >&5
47397_ACEOF
47398
47399# Files that config.status was made for.
47400if test -n "$ac_config_files"; then
47401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47402fi
47403
47404if test -n "$ac_config_headers"; then
47405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47406fi
47407
47408if test -n "$ac_config_links"; then
47409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47410fi
47411
47412if test -n "$ac_config_commands"; then
47413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47414fi
47415
47416cat >>$CONFIG_STATUS <<\_ACEOF
47417
47418ac_cs_usage="\
47419\`$as_me' instantiates files from templates according to the
47420current configuration.
47421
47422Usage: $0 [OPTIONS] [FILE]...
47423
47424 -h, --help print this help, then exit
47425 -V, --version print version number, then exit
47426 -q, --quiet do not print progress messages
47427 -d, --debug don't remove temporary files
47428 --recheck update $as_me by reconfiguring in the same conditions
47429 --file=FILE[:TEMPLATE]
ac1cb8d3 47430 instantiate the configuration file FILE
a848cd7e 47431 --header=FILE[:TEMPLATE]
ac1cb8d3 47432 instantiate the configuration header FILE
a848cd7e
SC
47433
47434Configuration files:
47435$config_files
47436
47437Configuration headers:
47438$config_headers
47439
47440Configuration commands:
47441$config_commands
47442
47443Report bugs to <bug-autoconf@gnu.org>."
47444_ACEOF
47445
47446cat >>$CONFIG_STATUS <<_ACEOF
47447ac_cs_version="\\
dd8df4fc 47448wxWidgets config.status 2.7.0
ac1cb8d3 47449configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
47450 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47451
ac1cb8d3 47452Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
47453This config.status script is free software; the Free Software Foundation
47454gives unlimited permission to copy, distribute and modify it."
47455srcdir=$srcdir
47456INSTALL="$INSTALL"
47457_ACEOF
47458
47459cat >>$CONFIG_STATUS <<\_ACEOF
47460# If no file are specified by the user, then we need to provide default
47461# value. By we need to know if files were specified by the user.
47462ac_need_defaults=:
47463while test $# != 0
47464do
47465 case $1 in
47466 --*=*)
47467 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47468 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47469 ac_shift=:
47470 ;;
47471 -*)
47472 ac_option=$1
47473 ac_optarg=$2
47474 ac_shift=shift
47475 ;;
47476 *) # This is not an option, so the user has probably given explicit
47477 # arguments.
47478 ac_option=$1
47479 ac_need_defaults=false;;
47480 esac
47481
47482 case $ac_option in
47483 # Handling of the options.
47484_ACEOF
47485cat >>$CONFIG_STATUS <<\_ACEOF
47486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47487 ac_cs_recheck=: ;;
47488 --version | --vers* | -V )
47489 echo "$ac_cs_version"; exit 0 ;;
47490 --he | --h)
47491 # Conflict between --help and --header
47492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47493Try \`$0 --help' for more information." >&5
47494echo "$as_me: error: ambiguous option: $1
47495Try \`$0 --help' for more information." >&2;}
47496 { (exit 1); exit 1; }; };;
47497 --help | --hel | -h )
47498 echo "$ac_cs_usage"; exit 0 ;;
47499 --debug | --d* | -d )
47500 debug=: ;;
47501 --file | --fil | --fi | --f )
47502 $ac_shift
47503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47504 ac_need_defaults=false;;
47505 --header | --heade | --head | --hea )
47506 $ac_shift
47507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47508 ac_need_defaults=false;;
47509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47511 ac_cs_silent=: ;;
47512
47513 # This is an error.
47514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47515Try \`$0 --help' for more information." >&5
47516echo "$as_me: error: unrecognized option: $1
47517Try \`$0 --help' for more information." >&2;}
47518 { (exit 1); exit 1; }; } ;;
47519
47520 *) ac_config_targets="$ac_config_targets $1" ;;
47521
47522 esac
47523 shift
47524done
47525
47526ac_configure_extra_args=
47527
47528if $ac_cs_silent; then
47529 exec 6>/dev/null
47530 ac_configure_extra_args="$ac_configure_extra_args --silent"
47531fi
47532
47533_ACEOF
47534cat >>$CONFIG_STATUS <<_ACEOF
47535if \$ac_cs_recheck; then
47536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47538fi
47539
47540_ACEOF
47541
47542cat >>$CONFIG_STATUS <<_ACEOF
47543#
47544# INIT-COMMANDS section.
47545#
47546
5c60e845
MW
47547
47548 CPP="$CPP"
47549 infile="$srcdir/include/wx/msw/genrcdefs.h"
47550 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
47551
47552
ceec2216
RL
47553 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47554 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47555 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47556 LN_S="${LN_S}"
a848cd7e
SC
47557
47558
47559_ACEOF
47560
47561
47562
47563cat >>$CONFIG_STATUS <<\_ACEOF
47564for ac_config_target in $ac_config_targets
47565do
47566 case "$ac_config_target" in
47567 # Handling of arguments.
ceec2216
RL
47568 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47569 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47570 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47571 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47572 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 47573 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
47574 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47575 "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
47576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47577echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47578 { (exit 1); exit 1; }; };;
47579 esac
47580done
47581
47582# If the user did not use the arguments to specify the items to instantiate,
47583# then the envvar interface is used. Set only those that are not.
47584# We use the long form for the default assignment because of an extremely
47585# bizarre bug on SunOS 4.1.3.
47586if $ac_need_defaults; then
47587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47590fi
47591
47592# Have a temporary directory for convenience. Make it in the build tree
47593# simply because there is no reason to put it here, and in addition,
47594# creating and moving files from /tmp can sometimes cause problems.
47595# Create a temporary directory, and hook for its removal unless debugging.
47596$debug ||
47597{
47598 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47599 trap '{ (exit 1); exit 1; }' 1 2 13 15
47600}
47601
47602# Create a (secure) tmp directory for tmp files.
47603
47604{
47605 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47606 test -n "$tmp" && test -d "$tmp"
47607} ||
47608{
47609 tmp=./confstat$$-$RANDOM
47610 (umask 077 && mkdir $tmp)
47611} ||
47612{
47613 echo "$me: cannot create a temporary directory in ." >&2
47614 { (exit 1); exit 1; }
47615}
47616
47617_ACEOF
47618
47619cat >>$CONFIG_STATUS <<_ACEOF
47620
47621#
47622# CONFIG_FILES section.
47623#
47624
47625# No need to generate the scripts if there are no CONFIG_FILES.
47626# This happens for instance when ./config.status config.h
47627if test -n "\$CONFIG_FILES"; then
47628 # Protect against being on the right side of a sed subst in config.status.
47629 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47630 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47631s,@SHELL@,$SHELL,;t t
47632s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47633s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47634s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47635s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47636s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47637s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47638s,@exec_prefix@,$exec_prefix,;t t
47639s,@prefix@,$prefix,;t t
47640s,@program_transform_name@,$program_transform_name,;t t
47641s,@bindir@,$bindir,;t t
47642s,@sbindir@,$sbindir,;t t
47643s,@libexecdir@,$libexecdir,;t t
47644s,@datadir@,$datadir,;t t
47645s,@sysconfdir@,$sysconfdir,;t t
47646s,@sharedstatedir@,$sharedstatedir,;t t
47647s,@localstatedir@,$localstatedir,;t t
47648s,@libdir@,$libdir,;t t
47649s,@includedir@,$includedir,;t t
47650s,@oldincludedir@,$oldincludedir,;t t
47651s,@infodir@,$infodir,;t t
47652s,@mandir@,$mandir,;t t
47653s,@build_alias@,$build_alias,;t t
47654s,@host_alias@,$host_alias,;t t
47655s,@target_alias@,$target_alias,;t t
47656s,@DEFS@,$DEFS,;t t
47657s,@ECHO_C@,$ECHO_C,;t t
47658s,@ECHO_N@,$ECHO_N,;t t
47659s,@ECHO_T@,$ECHO_T,;t t
47660s,@LIBS@,$LIBS,;t t
47661s,@build@,$build,;t t
47662s,@build_cpu@,$build_cpu,;t t
47663s,@build_vendor@,$build_vendor,;t t
47664s,@build_os@,$build_os,;t t
47665s,@host@,$host,;t t
47666s,@host_cpu@,$host_cpu,;t t
47667s,@host_vendor@,$host_vendor,;t t
47668s,@host_os@,$host_os,;t t
47669s,@target@,$target,;t t
47670s,@target_cpu@,$target_cpu,;t t
47671s,@target_vendor@,$target_vendor,;t t
47672s,@target_os@,$target_os,;t t
47673s,@CC@,$CC,;t t
47674s,@CFLAGS@,$CFLAGS,;t t
47675s,@LDFLAGS@,$LDFLAGS,;t t
47676s,@CPPFLAGS@,$CPPFLAGS,;t t
47677s,@ac_ct_CC@,$ac_ct_CC,;t t
47678s,@EXEEXT@,$EXEEXT,;t t
47679s,@OBJEXT@,$OBJEXT,;t t
47680s,@CPP@,$CPP,;t t
47681s,@EGREP@,$EGREP,;t t
47682s,@CXX@,$CXX,;t t
47683s,@CXXFLAGS@,$CXXFLAGS,;t t
47684s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47685s,@RANLIB@,$RANLIB,;t t
47686s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47687s,@AR@,$AR,;t t
8c80d384 47688s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47689s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47690s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47691s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47692s,@STRIP@,$STRIP,;t t
8c80d384
DE
47693s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47694s,@RESCOMP@,$RESCOMP,;t t
47695s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47696s,@DLLTOOL@,$DLLTOOL,;t t
47697s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47698s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47699s,@LN_S@,$LN_S,;t t
bcaab0f9 47700s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
47701s,@CXXCPP@,$CXXCPP,;t t
47702s,@subdirs@,$subdirs,;t t
47703s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47704s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47705s,@GTK_LIBS@,$GTK_LIBS,;t t
47706s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47707s,@X_CFLAGS@,$X_CFLAGS,;t t
47708s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47709s,@X_LIBS@,$X_LIBS,;t t
47710s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47711s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47712s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47713s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47714s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47715s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47716s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47717s,@DEREZ@,$DEREZ,;t t
47718s,@SETFILE@,$SETFILE,;t t
47719s,@LIBICONV@,$LIBICONV,;t t
47720s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47721s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47722s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47723s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47724s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47725s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47726s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47727s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47728s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47729s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47730s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47731s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47732s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47733s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47734s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47735s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47736s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47737s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47738s,@VENDOR@,$VENDOR,;t t
47739s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47740s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47741s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47742s,@WXUNIV@,$WXUNIV,;t t
47743s,@MONOLITHIC@,$MONOLITHIC,;t t
47744s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47745s,@EXTRALIBS@,$EXTRALIBS,;t t
47746s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47747s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47748s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47749s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47750s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47751s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47752s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47753s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47754s,@UNICODE@,$UNICODE,;t t
47755s,@BUILD@,$BUILD,;t t
47756s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47757s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47758s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47759s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47760s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47761s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47762s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47763s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47764s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47765s,@SET_MAKE@,$SET_MAKE,;t t
47766s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47767s,@NM@,$NM,;t t
47768s,@ac_ct_NM@,$ac_ct_NM,;t t
47769s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47770s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47771s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47772s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47773s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47774s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47775s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47776s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47777s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47778s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47779s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47780s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47781s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47782s,@LIBPREFIX@,$LIBPREFIX,;t t
47783s,@LIBEXT@,$LIBEXT,;t t
47784s,@DLLPREFIX@,$DLLPREFIX,;t t
47785s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47786s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47787s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47788s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47789s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47790s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47791s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47792s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47793s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47794s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47795s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47796s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47797s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47798s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47799s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47800s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47801s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47802s,@GCC_PCH@,$GCC_PCH,;t t
47803s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47804s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47805s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47806s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47807s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47808s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47809s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47810s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47811s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47812s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47813s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47814s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47815s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47816s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47817s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47818s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47819s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47820s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47821s,@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 47822s,@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 47823s,@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 47824s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47825s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47826s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47827s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47828s,@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 47829s,@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 47830s,@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 47831s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47832s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47833s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47834s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47835s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47836s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47837s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47838s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47839s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47840s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47841s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47842s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47843s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47844s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47845s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47846s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47847s,@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
47848s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47849s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47850s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47851s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47852s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47853s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47854s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47855s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47856s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47857s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47858s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47859s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47860s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47861s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47862s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47863s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47864s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47865s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47866s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47867s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47868s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47869s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47870s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47871s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47872s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47873s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47874s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47875s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47876s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47877s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47878s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47879s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47880s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47881s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47882s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47883s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47884s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47885s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47886s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47887s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47888s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47889s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47890s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47891s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47892s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47893s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47894s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47895s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47896s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47897s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47898s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47899s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47900s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47901s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47902s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47903s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47904s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47905s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47906s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47907s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47908s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47909s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47910s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47911s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47912s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47913s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47914s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47915s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47916s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47917s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47918s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47919s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47920s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47921s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47922s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47923s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47924s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47925s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47926s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47927s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47928s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47929s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47930s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47931s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47932s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47933s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47934s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47935s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47936s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47937s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47938s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47939s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47940s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47941s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47942s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47943s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47944s,@USE_GUI@,$USE_GUI,;t t
47945s,@AFMINSTALL@,$AFMINSTALL,;t t
47946s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47947s,@TOOLKIT@,$TOOLKIT,;t t
47948s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47949s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47950s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
47951s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47952s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 47953s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47954s,@WIDGET_SET@,$WIDGET_SET,;t t
47955s,@WX_RELEASE@,$WX_RELEASE,;t t
47956s,@WX_VERSION@,$WX_VERSION,;t t
47957s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47958s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47959s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 47960s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
47961s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47962s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47963s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47964s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 47965s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
47966s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47967s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 47968s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47969s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47970s,@DISTDIR@,$DISTDIR,;t t
47971s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47972s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47973s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47974s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47975s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47976s,@RESFLAGS@,$RESFLAGS,;t t
47977s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47978s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47979s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47980s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47981s,@MACRESCOMP@,$MACRESCOMP,;t t
47982s,@MACSETFILE@,$MACSETFILE,;t t
47983s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47984s,@GCC@,$GCC,;t t
a848cd7e
SC
47985s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47986s,@LIBOBJS@,$LIBOBJS,;t t
47987s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47988CEOF
47989
47990_ACEOF
47991
47992 cat >>$CONFIG_STATUS <<\_ACEOF
47993 # Split the substitutions into bite-sized pieces for seds with
47994 # small command number limits, like on Digital OSF/1 and HP-UX.
47995 ac_max_sed_lines=48
47996 ac_sed_frag=1 # Number of current file.
47997 ac_beg=1 # First line for current file.
47998 ac_end=$ac_max_sed_lines # Line after last line for current file.
47999 ac_more_lines=:
48000 ac_sed_cmds=
48001 while $ac_more_lines; do
48002 if test $ac_beg -gt 1; then
48003 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
48004 else
48005 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
48006 fi
48007 if test ! -s $tmp/subs.frag; then
48008 ac_more_lines=false
48009 else
48010 # The purpose of the label and of the branching condition is to
48011 # speed up the sed processing (if there are no `@' at all, there
48012 # is no need to browse any of the substitutions).
48013 # These are the two extra sed commands mentioned above.
48014 (echo ':t
48015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
48016 if test -z "$ac_sed_cmds"; then
ac1cb8d3 48017 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 48018 else
ac1cb8d3 48019 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
48020 fi
48021 ac_sed_frag=`expr $ac_sed_frag + 1`
48022 ac_beg=$ac_end
48023 ac_end=`expr $ac_end + $ac_max_sed_lines`
48024 fi
48025 done
48026 if test -z "$ac_sed_cmds"; then
48027 ac_sed_cmds=cat
48028 fi
48029fi # test -n "$CONFIG_FILES"
48030
48031_ACEOF
48032cat >>$CONFIG_STATUS <<\_ACEOF
48033for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
48034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
48035 case $ac_file in
48036 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
48037 cat >$tmp/stdin
48038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
48039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 48040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 48041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
48042 * ) ac_file_in=$ac_file.in ;;
48043 esac
48044
48045 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
48046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48048 X"$ac_file" : 'X\(//\)[^/]' \| \
48049 X"$ac_file" : 'X\(//\)$' \| \
48050 X"$ac_file" : 'X\(/\)' \| \
48051 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48052echo X"$ac_file" |
48053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48055 /^X\(\/\/\)$/{ s//\1/; q; }
48056 /^X\(\/\).*/{ s//\1/; q; }
48057 s/.*/./; q'`
48058 { if $as_mkdir_p; then
48059 mkdir -p "$ac_dir"
48060 else
48061 as_dir="$ac_dir"
48062 as_dirs=
48063 while test ! -d "$as_dir"; do
48064 as_dirs="$as_dir $as_dirs"
48065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48067 X"$as_dir" : 'X\(//\)[^/]' \| \
48068 X"$as_dir" : 'X\(//\)$' \| \
48069 X"$as_dir" : 'X\(/\)' \| \
48070 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48071echo X"$as_dir" |
48072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48074 /^X\(\/\/\)$/{ s//\1/; q; }
48075 /^X\(\/\).*/{ s//\1/; q; }
48076 s/.*/./; q'`
48077 done
48078 test ! -n "$as_dirs" || mkdir $as_dirs
48079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48080echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48081 { (exit 1); exit 1; }; }; }
48082
48083 ac_builddir=.
48084
48085if test "$ac_dir" != .; then
48086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48087 # A "../" for each directory in $ac_dir_suffix.
48088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48089else
48090 ac_dir_suffix= ac_top_builddir=
48091fi
48092
48093case $srcdir in
48094 .) # No --srcdir option. We are building in place.
48095 ac_srcdir=.
48096 if test -z "$ac_top_builddir"; then
48097 ac_top_srcdir=.
48098 else
48099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48100 fi ;;
48101 [\\/]* | ?:[\\/]* ) # Absolute path.
48102 ac_srcdir=$srcdir$ac_dir_suffix;
48103 ac_top_srcdir=$srcdir ;;
48104 *) # Relative path.
48105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48107esac
ac1cb8d3
VS
48108
48109# Do not use `cd foo && pwd` to compute absolute paths, because
48110# the directories may not exist.
48111case `pwd` in
48112.) ac_abs_builddir="$ac_dir";;
48113*)
48114 case "$ac_dir" in
48115 .) ac_abs_builddir=`pwd`;;
48116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48118 esac;;
48119esac
48120case $ac_abs_builddir in
48121.) ac_abs_top_builddir=${ac_top_builddir}.;;
48122*)
48123 case ${ac_top_builddir}. in
48124 .) ac_abs_top_builddir=$ac_abs_builddir;;
48125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48127 esac;;
48128esac
48129case $ac_abs_builddir in
48130.) ac_abs_srcdir=$ac_srcdir;;
48131*)
48132 case $ac_srcdir in
48133 .) ac_abs_srcdir=$ac_abs_builddir;;
48134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48136 esac;;
48137esac
48138case $ac_abs_builddir in
48139.) ac_abs_top_srcdir=$ac_top_srcdir;;
48140*)
48141 case $ac_top_srcdir in
48142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48145 esac;;
48146esac
a848cd7e
SC
48147
48148
48149 case $INSTALL in
48150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48151 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
48152 esac
48153
be665c07
JS
48154 if test x"$ac_file" != x-; then
48155 { echo "$as_me:$LINENO: creating $ac_file" >&5
48156echo "$as_me: creating $ac_file" >&6;}
48157 rm -f "$ac_file"
48158 fi
a848cd7e
SC
48159 # Let's still pretend it is `configure' which instantiates (i.e., don't
48160 # use $as_me), people would be surprised to read:
48161 # /* config.h. Generated by config.status. */
48162 if test x"$ac_file" = x-; then
48163 configure_input=
48164 else
48165 configure_input="$ac_file. "
48166 fi
48167 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 48168 sed 's,.*/,,'` by configure."
a848cd7e
SC
48169
48170 # First look for the input files in the build tree, otherwise in the
48171 # src tree.
48172 ac_file_inputs=`IFS=:
48173 for f in $ac_file_in; do
48174 case $f in
48175 -) echo $tmp/stdin ;;
48176 [\\/$]*)
ac1cb8d3
VS
48177 # Absolute (can't be DOS-style, as IFS=:)
48178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
48179echo "$as_me: error: cannot find input file: $f" >&2;}
48180 { (exit 1); exit 1; }; }
ac1cb8d3 48181 echo "$f";;
a848cd7e 48182 *) # Relative
ac1cb8d3
VS
48183 if test -f "$f"; then
48184 # Build tree
48185 echo "$f"
48186 elif test -f "$srcdir/$f"; then
48187 # Source tree
48188 echo "$srcdir/$f"
48189 else
48190 # /dev/null tree
48191 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
48192echo "$as_me: error: cannot find input file: $f" >&2;}
48193 { (exit 1); exit 1; }; }
ac1cb8d3 48194 fi;;
a848cd7e
SC
48195 esac
48196 done` || { (exit 1); exit 1; }
48197_ACEOF
48198cat >>$CONFIG_STATUS <<_ACEOF
48199 sed "$ac_vpsub
48200$extrasub
48201_ACEOF
48202cat >>$CONFIG_STATUS <<\_ACEOF
48203:t
48204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48205s,@configure_input@,$configure_input,;t t
48206s,@srcdir@,$ac_srcdir,;t t
48207s,@abs_srcdir@,$ac_abs_srcdir,;t t
48208s,@top_srcdir@,$ac_top_srcdir,;t t
48209s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
48210s,@builddir@,$ac_builddir,;t t
48211s,@abs_builddir@,$ac_abs_builddir,;t t
48212s,@top_builddir@,$ac_top_builddir,;t t
48213s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
48214s,@INSTALL@,$ac_INSTALL,;t t
48215" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
48216 rm -f $tmp/stdin
48217 if test x"$ac_file" != x-; then
48218 mv $tmp/out $ac_file
48219 else
48220 cat $tmp/out
48221 rm -f $tmp/out
48222 fi
48223
ceec2216
RL
48224 # Run the commands associated with the file.
48225 case $ac_file in
48226 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
48227 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
48228 esac
a848cd7e
SC
48229done
48230_ACEOF
48231cat >>$CONFIG_STATUS <<\_ACEOF
48232
48233#
48234# CONFIG_HEADER section.
48235#
48236
48237# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
48238# NAME is the cpp macro being defined and VALUE is the value it is being given.
48239#
48240# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
48241ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
48242ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
48243ac_dC=' '
48244ac_dD=',;t'
48245# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 48246ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
48247ac_uB='$,\1#\2define\3'
48248ac_uC=' '
48249ac_uD=',;t'
48250
48251for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
48252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
48253 case $ac_file in
48254 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
48255 cat >$tmp/stdin
48256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
48257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 48258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 48259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
48260 * ) ac_file_in=$ac_file.in ;;
48261 esac
48262
48263 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
48264echo "$as_me: creating $ac_file" >&6;}
48265
48266 # First look for the input files in the build tree, otherwise in the
48267 # src tree.
48268 ac_file_inputs=`IFS=:
48269 for f in $ac_file_in; do
48270 case $f in
48271 -) echo $tmp/stdin ;;
48272 [\\/$]*)
ac1cb8d3
VS
48273 # Absolute (can't be DOS-style, as IFS=:)
48274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
48275echo "$as_me: error: cannot find input file: $f" >&2;}
48276 { (exit 1); exit 1; }; }
ac1cb8d3
VS
48277 # Do quote $f, to prevent DOS paths from being IFS'd.
48278 echo "$f";;
a848cd7e 48279 *) # Relative
ac1cb8d3
VS
48280 if test -f "$f"; then
48281 # Build tree
48282 echo "$f"
48283 elif test -f "$srcdir/$f"; then
48284 # Source tree
48285 echo "$srcdir/$f"
48286 else
48287 # /dev/null tree
48288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
48289echo "$as_me: error: cannot find input file: $f" >&2;}
48290 { (exit 1); exit 1; }; }
ac1cb8d3 48291 fi;;
a848cd7e
SC
48292 esac
48293 done` || { (exit 1); exit 1; }
48294 # Remove the trailing spaces.
ac1cb8d3 48295 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
48296
48297_ACEOF
48298
48299# Transform confdefs.h into two sed scripts, `conftest.defines' and
48300# `conftest.undefs', that substitutes the proper values into
48301# config.h.in to produce config.h. The first handles `#define'
48302# templates, and the second `#undef' templates.
48303# And first: Protect against being on the right side of a sed subst in
48304# config.status. Protect against being in an unquoted here document
48305# in config.status.
48306rm -f conftest.defines conftest.undefs
48307# Using a here document instead of a string reduces the quoting nightmare.
48308# Putting comments in sed scripts is not portable.
48309#
48310# `end' is used to avoid that the second main sed command (meant for
48311# 0-ary CPP macros) applies to n-ary macro definitions.
48312# See the Autoconf documentation for `clear'.
48313cat >confdef2sed.sed <<\_ACEOF
48314s/[\\&,]/\\&/g
48315s,[\\$`],\\&,g
48316t clear
48317: clear
ac1cb8d3 48318s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 48319t end
ac1cb8d3 48320s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
48321: end
48322_ACEOF
48323# If some macros were called several times there might be several times
48324# the same #defines, which is useless. Nevertheless, we may not want to
48325# sort them, since we want the *last* AC-DEFINE to be honored.
48326uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
48327sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
48328rm -f confdef2sed.sed
48329
48330# This sed command replaces #undef with comments. This is necessary, for
48331# example, in the case of _POSIX_SOURCE, which is predefined and required
48332# on some systems where configure will not decide to define it.
48333cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 48334s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
48335_ACEOF
48336
48337# Break up conftest.defines because some shells have a limit on the size
48338# of here documents, and old seds have small limits too (100 cmds).
48339echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 48340echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
48341echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
48342echo ' :' >>$CONFIG_STATUS
48343rm -f conftest.tail
48344while grep . conftest.defines >/dev/null
48345do
48346 # Write a limited-size here document to $tmp/defines.sed.
48347 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
48348 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 48349 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
48350 # Work around the forget-to-reset-the-flag bug.
48351 echo 't clr' >>$CONFIG_STATUS
48352 echo ': clr' >>$CONFIG_STATUS
48353 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
48354 echo 'CEOF
48355 sed -f $tmp/defines.sed $tmp/in >$tmp/out
48356 rm -f $tmp/in
48357 mv $tmp/out $tmp/in
48358' >>$CONFIG_STATUS
48359 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
48360 rm -f conftest.defines
48361 mv conftest.tail conftest.defines
48362done
48363rm -f conftest.defines
48364echo ' fi # grep' >>$CONFIG_STATUS
48365echo >>$CONFIG_STATUS
48366
48367# Break up conftest.undefs because some shells have a limit on the size
48368# of here documents, and old seds have small limits too (100 cmds).
48369echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
48370rm -f conftest.tail
48371while grep . conftest.undefs >/dev/null
48372do
48373 # Write a limited-size here document to $tmp/undefs.sed.
48374 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
48375 # Speed up: don't consider the non `#undef'
ac1cb8d3 48376 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
48377 # Work around the forget-to-reset-the-flag bug.
48378 echo 't clr' >>$CONFIG_STATUS
48379 echo ': clr' >>$CONFIG_STATUS
48380 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
48381 echo 'CEOF
48382 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
48383 rm -f $tmp/in
48384 mv $tmp/out $tmp/in
48385' >>$CONFIG_STATUS
48386 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
48387 rm -f conftest.undefs
48388 mv conftest.tail conftest.undefs
48389done
48390rm -f conftest.undefs
48391
48392cat >>$CONFIG_STATUS <<\_ACEOF
48393 # Let's still pretend it is `configure' which instantiates (i.e., don't
48394 # use $as_me), people would be surprised to read:
48395 # /* config.h. Generated by config.status. */
48396 if test x"$ac_file" = x-; then
48397 echo "/* Generated by configure. */" >$tmp/config.h
48398 else
48399 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
48400 fi
48401 cat $tmp/in >>$tmp/config.h
48402 rm -f $tmp/in
48403 if test x"$ac_file" != x-; then
48404 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
48405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48406echo "$as_me: $ac_file is unchanged" >&6;}
48407 else
48408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48410 X"$ac_file" : 'X\(//\)[^/]' \| \
48411 X"$ac_file" : 'X\(//\)$' \| \
48412 X"$ac_file" : 'X\(/\)' \| \
48413 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48414echo X"$ac_file" |
48415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48417 /^X\(\/\/\)$/{ s//\1/; q; }
48418 /^X\(\/\).*/{ s//\1/; q; }
48419 s/.*/./; q'`
48420 { if $as_mkdir_p; then
48421 mkdir -p "$ac_dir"
48422 else
48423 as_dir="$ac_dir"
48424 as_dirs=
48425 while test ! -d "$as_dir"; do
48426 as_dirs="$as_dir $as_dirs"
48427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48429 X"$as_dir" : 'X\(//\)[^/]' \| \
48430 X"$as_dir" : 'X\(//\)$' \| \
48431 X"$as_dir" : 'X\(/\)' \| \
48432 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48433echo X"$as_dir" |
48434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48436 /^X\(\/\/\)$/{ s//\1/; q; }
48437 /^X\(\/\).*/{ s//\1/; q; }
48438 s/.*/./; q'`
48439 done
48440 test ! -n "$as_dirs" || mkdir $as_dirs
48441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48443 { (exit 1); exit 1; }; }; }
48444
48445 rm -f $ac_file
48446 mv $tmp/config.h $ac_file
48447 fi
48448 else
48449 cat $tmp/config.h
48450 rm -f $tmp/config.h
48451 fi
48452done
48453_ACEOF
48454cat >>$CONFIG_STATUS <<\_ACEOF
48455
48456#
48457# CONFIG_COMMANDS section.
48458#
48459for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48462 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48463$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48464 X"$ac_dest" : 'X\(//\)[^/]' \| \
48465 X"$ac_dest" : 'X\(//\)$' \| \
48466 X"$ac_dest" : 'X\(/\)' \| \
48467 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48468echo X"$ac_dest" |
48469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48471 /^X\(\/\/\)$/{ s//\1/; q; }
48472 /^X\(\/\).*/{ s//\1/; q; }
48473 s/.*/./; q'`
ac1cb8d3
VS
48474 { if $as_mkdir_p; then
48475 mkdir -p "$ac_dir"
48476 else
48477 as_dir="$ac_dir"
48478 as_dirs=
48479 while test ! -d "$as_dir"; do
48480 as_dirs="$as_dir $as_dirs"
48481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48483 X"$as_dir" : 'X\(//\)[^/]' \| \
48484 X"$as_dir" : 'X\(//\)$' \| \
48485 X"$as_dir" : 'X\(/\)' \| \
48486 . : '\(.\)' 2>/dev/null ||
48487echo X"$as_dir" |
48488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48490 /^X\(\/\/\)$/{ s//\1/; q; }
48491 /^X\(\/\).*/{ s//\1/; q; }
48492 s/.*/./; q'`
48493 done
48494 test ! -n "$as_dirs" || mkdir $as_dirs
48495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48496echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48497 { (exit 1); exit 1; }; }; }
48498
a848cd7e
SC
48499 ac_builddir=.
48500
48501if test "$ac_dir" != .; then
48502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48503 # A "../" for each directory in $ac_dir_suffix.
48504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48505else
48506 ac_dir_suffix= ac_top_builddir=
48507fi
48508
48509case $srcdir in
48510 .) # No --srcdir option. We are building in place.
48511 ac_srcdir=.
48512 if test -z "$ac_top_builddir"; then
48513 ac_top_srcdir=.
48514 else
48515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48516 fi ;;
48517 [\\/]* | ?:[\\/]* ) # Absolute path.
48518 ac_srcdir=$srcdir$ac_dir_suffix;
48519 ac_top_srcdir=$srcdir ;;
48520 *) # Relative path.
48521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48523esac
ac1cb8d3
VS
48524
48525# Do not use `cd foo && pwd` to compute absolute paths, because
48526# the directories may not exist.
48527case `pwd` in
48528.) ac_abs_builddir="$ac_dir";;
48529*)
48530 case "$ac_dir" in
48531 .) ac_abs_builddir=`pwd`;;
48532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48534 esac;;
48535esac
48536case $ac_abs_builddir in
48537.) ac_abs_top_builddir=${ac_top_builddir}.;;
48538*)
48539 case ${ac_top_builddir}. in
48540 .) ac_abs_top_builddir=$ac_abs_builddir;;
48541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48543 esac;;
48544esac
48545case $ac_abs_builddir in
48546.) ac_abs_srcdir=$ac_srcdir;;
48547*)
48548 case $ac_srcdir in
48549 .) ac_abs_srcdir=$ac_abs_builddir;;
48550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48552 esac;;
48553esac
48554case $ac_abs_builddir in
48555.) ac_abs_top_srcdir=$ac_top_srcdir;;
48556*)
48557 case $ac_top_srcdir in
48558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48561 esac;;
48562esac
a848cd7e
SC
48563
48564
48565 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48566echo "$as_me: executing $ac_dest commands" >&6;}
48567 case $ac_dest in
5c60e845
MW
48568 rcdefs.h )
48569 mkdir -p $outdir &&
48570 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
48571 ;;
ceec2216
RL
48572 wx-config ) rm -f wx-config
48573 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48574 ;;
a848cd7e
SC
48575 esac
48576done
48577_ACEOF
48578
48579cat >>$CONFIG_STATUS <<\_ACEOF
48580
48581{ (exit 0); exit 0; }
48582_ACEOF
48583chmod +x $CONFIG_STATUS
48584ac_clean_files=$ac_clean_files_save
48585
48586
48587# configure is writing to config.log, and then calls config.status.
48588# config.status does its own redirection, appending to config.log.
48589# Unfortunately, on DOS this fails, as config.log is still kept open
48590# by configure, so config.status won't be able to write to it; its
48591# output is simply discarded. So we exec the FD to /dev/null,
48592# effectively closing config.log, so it can be properly (re)opened and
48593# appended to by config.status. When coming back to configure, we
48594# need to make the FD available again.
48595if test "$no_create" != yes; then
48596 ac_cs_success=:
48597 ac_config_status_args=
48598 test "$silent" = yes &&
48599 ac_config_status_args="$ac_config_status_args --quiet"
48600 exec 5>/dev/null
48601 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48602 exec 5>>config.log
48603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48604 # would make configure fail if this is the last instruction.
48605 $ac_cs_success || { (exit 1); exit 1; }
48606fi
48607
48608#
48609# CONFIG_SUBDIRS section.
48610#
48611if test "$no_recursion" != yes; then
48612
48613 # Remove --cache-file and --srcdir arguments so they do not pile up.
48614 ac_sub_configure_args=
48615 ac_prev=
48616 for ac_arg in $ac_configure_args; do
48617 if test -n "$ac_prev"; then
48618 ac_prev=
48619 continue
48620 fi
48621 case $ac_arg in
48622 -cache-file | --cache-file | --cache-fil | --cache-fi \
48623 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48624 ac_prev=cache_file ;;
48625 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48626 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48627 | --c=*)
48628 ;;
48629 --config-cache | -C)
48630 ;;
48631 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48632 ac_prev=srcdir ;;
48633 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48634 ;;
48635 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48636 ac_prev=prefix ;;
48637 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48638 ;;
48639 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48640 esac
48641 done
48642
48643 # Always prepend --prefix to ensure using the same prefix
48644 # in subdir configurations.
48645 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48646
48647 ac_popdir=`pwd`
48648 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48649
48650 # Do not complain, so a configure script can configure whichever
48651 # parts of a large source tree are present.
48652 test -d $srcdir/$ac_dir || continue
48653
48654 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48655echo "$as_me: configuring in $ac_dir" >&6;}
48656 { if $as_mkdir_p; then
48657 mkdir -p "$ac_dir"
48658 else
48659 as_dir="$ac_dir"
48660 as_dirs=
48661 while test ! -d "$as_dir"; do
48662 as_dirs="$as_dir $as_dirs"
48663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48665 X"$as_dir" : 'X\(//\)[^/]' \| \
48666 X"$as_dir" : 'X\(//\)$' \| \
48667 X"$as_dir" : 'X\(/\)' \| \
48668 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48669echo X"$as_dir" |
48670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48672 /^X\(\/\/\)$/{ s//\1/; q; }
48673 /^X\(\/\).*/{ s//\1/; q; }
48674 s/.*/./; q'`
48675 done
48676 test ! -n "$as_dirs" || mkdir $as_dirs
48677 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48678echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48679 { (exit 1); exit 1; }; }; }
48680
48681 ac_builddir=.
48682
48683if test "$ac_dir" != .; then
48684 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48685 # A "../" for each directory in $ac_dir_suffix.
48686 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48687else
48688 ac_dir_suffix= ac_top_builddir=
48689fi
48690
48691case $srcdir in
48692 .) # No --srcdir option. We are building in place.
48693 ac_srcdir=.
48694 if test -z "$ac_top_builddir"; then
48695 ac_top_srcdir=.
48696 else
48697 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48698 fi ;;
48699 [\\/]* | ?:[\\/]* ) # Absolute path.
48700 ac_srcdir=$srcdir$ac_dir_suffix;
48701 ac_top_srcdir=$srcdir ;;
48702 *) # Relative path.
48703 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48704 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48705esac
ac1cb8d3
VS
48706
48707# Do not use `cd foo && pwd` to compute absolute paths, because
48708# the directories may not exist.
48709case `pwd` in
48710.) ac_abs_builddir="$ac_dir";;
48711*)
48712 case "$ac_dir" in
48713 .) ac_abs_builddir=`pwd`;;
48714 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48715 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48716 esac;;
48717esac
48718case $ac_abs_builddir in
48719.) ac_abs_top_builddir=${ac_top_builddir}.;;
48720*)
48721 case ${ac_top_builddir}. in
48722 .) ac_abs_top_builddir=$ac_abs_builddir;;
48723 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48724 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48725 esac;;
48726esac
48727case $ac_abs_builddir in
48728.) ac_abs_srcdir=$ac_srcdir;;
48729*)
48730 case $ac_srcdir in
48731 .) ac_abs_srcdir=$ac_abs_builddir;;
48732 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48733 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48734 esac;;
48735esac
48736case $ac_abs_builddir in
48737.) ac_abs_top_srcdir=$ac_top_srcdir;;
48738*)
48739 case $ac_top_srcdir in
48740 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48741 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48742 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48743 esac;;
48744esac
a848cd7e
SC
48745
48746
48747 cd $ac_dir
48748
48749 # Check for guested configure; otherwise get Cygnus style configure.
48750 if test -f $ac_srcdir/configure.gnu; then
48751 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48752 elif test -f $ac_srcdir/configure; then
48753 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48754 elif test -f $ac_srcdir/configure.in; then
48755 ac_sub_configure=$ac_configure
48756 else
48757 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48758echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48759 ac_sub_configure=
48760 fi
48761
48762 # The recursion is here.
48763 if test -n "$ac_sub_configure"; then
48764 # Make the cache file name correct relative to the subdirectory.
48765 case $cache_file in
48766 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48767 *) # Relative path.
ac1cb8d3 48768 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48769 esac
48770
48771 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48772echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48773 # The eval makes quoting arguments work.
48774 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48775 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48776 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48777echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48778 { (exit 1); exit 1; }; }
48779 fi
48780
be665c07 48781 cd $ac_popdir
a848cd7e
SC
48782 done
48783fi
48784
48785
48786echo
77ffb593 48787echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48788echo ""
4d4ff94c 48789echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48790echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48791
77ffb593
JS
48792echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48793echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48794echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48795
77ffb593 48796echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
48797echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48798echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 48799
77ffb593 48800echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48801echo " jpeg ${wxUSE_LIBJPEG-none}"
48802echo " png ${wxUSE_LIBPNG-none}"
48803echo " regex ${wxUSE_REGEX}"
48804echo " tiff ${wxUSE_LIBTIFF-none}"
48805if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48806echo " xpm ${wxUSE_LIBXPM-none}"
48807fi
48808echo " zlib ${wxUSE_ZLIB}"
48809echo " odbc ${wxUSE_ODBC}"
48810echo " expat ${wxUSE_EXPAT}"
48811echo " libmspack ${wxUSE_LIBMSPACK}"
48812echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48813echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48814
48815echo ""
48816