]> git.saurik.com Git - wxWidgets.git/blame - configure
keep m_value in sync with real combobox value (set it initially and update it correct...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
ac1cb8d3 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
273PACKAGE_VERSION='2.5.2'
274PACKAGE_STRING='wxWidgets 2.5.2'
275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
4d4ff94c 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC_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_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
77ffb593 797\`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
77ffb593 863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
92bbdbcd 970 --enable-choicebook use wxChoicebook class
a848cd7e
SC
971 --enable-combobox use wxComboBox class
972 --enable-display use wxDisplay class
973 --enable-gauge use wxGauge class
974 --enable-grid use wxGrid class
975 --enable-imaglist use wxImageList class
976 --enable-listbook use wxListbook class
977 --enable-listbox use wxListBox class
978 --enable-listctrl use wxListCtrl class
979 --enable-notebook use wxNotebook class
980 --enable-radiobox use wxRadioBox class
981 --enable-radiobtn use wxRadioButton class
982 --enable-sash use wxSashWindow class
983 --enable-scrollbar use wxScrollBar class and scrollable windows
984 --enable-slider use wxSlider class
985 --enable-spinbtn use wxSpinButton class
986 --enable-spinctrl use wxSpinCtrl class
987 --enable-splitter use wxSplitterWindow class
988 --enable-statbmp use wxStaticBitmap class
989 --enable-statbox use wxStaticBox class
990 --enable-statline use wxStaticLine class
991 --enable-stattext use wxStaticText class
992 --enable-statusbar use wxStatusBar class
993 --enable-tabdialog use wxTabControl class
994 --enable-textctrl use wxTextCtrl class
995 --enable-togglebtn use wxToggleButton class
996 --enable-toolbar use wxToolBar class
997 --enable-tbarnative use native wxToolBar class
998 --enable-tbarsmpl use wxToolBarSimple class
999 --enable-treectrl use wxTreeCtrl class
1000 --enable-tipwindow use wxTipWindow class
1001 --enable-popupwin use wxPopUpWindow class
1002 --enable-commondlg use all common dialogs
1003 --enable-choicedlg use wxChoiceDialog
1004 --enable-coldlg use wxColourDialog
1005 --enable-filedlg use wxFileDialog
1006 --enable-finddlg use wxFindReplaceDialog
1007 --enable-fontdlg use wxFontDialog
1008 --enable-dirdlg use wxDirDialog
1009 --enable-msgdlg use wxMessageDialog
1010 --enable-numberdlg use wxNumberEntryDialog
1011 --enable-splash use wxSplashScreen
1012 --enable-textdlg use wxTextDialog
1013 --enable-tipdlg use startup tips
1014 --enable-progressdlg use wxProgressDialog
1015 --enable-wizarddlg use wxWizard
1016 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1017 --enable-miniframe use wxMiniFrame class
1018 --enable-tooltips use wxToolTip class
1019 --enable-splines use spline drawing code
1020 --enable-validators use wxValidator and derived classes
1021 --enable-busyinfo use wxBusyInfo
1022 --enable-joystick use wxJoystick (Linux only)
1023 --enable-metafiles use wxMetaFile (Windows only)
1024 --enable-dragimage use wxDragImage
1025 --enable-accessibility enable accessibility support
1026 --enable-palette use wxPalette class
1027 --enable-image use wxImage class
1028 --enable-gif use gif images (GIF file format)
1029 --enable-pcx use pcx images (PCX file format)
1030 --enable-iff use iff images (IFF file format)
1031 --enable-pnm use pnm images (PNM file format)
1032 --enable-xpm use xpm images (XPM file format)
1033 --enable-icocur use Windows ICO and CUR formats
77ffb593 1034 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1035 --enable-vendor=VENDOR vendor name (win32 DLL only)
1036 --disable-largefile omit support for large files
1037 --disable-gtktest do not try to compile and run a test GTK+ program
1038 --disable-gtktest Do not try to compile and run a test GTK program
1039 --disable-sdltest Do not try to compile and run a test SDL program
1040 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1041 --disable-precomp-headers
1042 don't use precompiled headers even if compiler can
a848cd7e
SC
1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gtk use GTK+
1048 --with-motif use Motif/Lesstif
1049 --with-mac use Mac OS X
1050 --with-cocoa use Cocoa
1051 --with-wine use Wine
1052 --with-msw use MS-Windows
1053 --with-pm use OS/2 Presentation Manager
1054 --with-mgl use SciTech MGL
1055 --with-microwin use MicroWindows
1056 --with-x11 use X11
1057 --with-libpng use libpng (PNG image format)
1058 --with-libjpeg use libjpeg (JPEG file format)
1059 --with-libtiff use libtiff (TIFF file format)
1060 --with-libxpm use libxpm (XPM file format)
1061 --with-libmspack use libmspack (CHM help files loading)
1062 --with-sdl use SDL for audio on Unix
1063 --with-opengl use OpenGL (or Mesa)
1064 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1065 --with-regex enable support for wxRegEx class
1066 --with-zlib use zlib for LZW compression
1067 --with-odbc use the IODBC and wxODBC classes
1068 --with-expat enable XML support using expat parser
1069 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1070 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1071 --with-x use the X Window System
1072 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1073 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1074 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1075 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1076 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1077
1078Some influential environment variables:
dcc1b6ad
VS
1079 CC C compiler command
1080 CFLAGS C compiler flags
1081 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1082 nonstandard directory <lib dir>
1083 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1084 headers in a nonstandard directory <include dir>
1085 CPP C preprocessor
1086 CXX C++ compiler command
1087 CXXFLAGS C++ compiler flags
1088 CXXCPP C++ preprocessor
a848cd7e
SC
1089
1090Use these variables to override the choices made by `configure' or to help
1091it to find libraries and programs with nonstandard names/locations.
1092
77ffb593 1093Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1094_ACEOF
1095fi
1096
1097if test "$ac_init_help" = "recursive"; then
1098 # If there are subdirs, report their specific --help.
1099 ac_popdir=`pwd`
1100 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1101 test -d $ac_dir || continue
1102 ac_builddir=.
1103
1104if test "$ac_dir" != .; then
1105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1106 # A "../" for each directory in $ac_dir_suffix.
1107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1108else
1109 ac_dir_suffix= ac_top_builddir=
1110fi
1111
1112case $srcdir in
1113 .) # No --srcdir option. We are building in place.
1114 ac_srcdir=.
1115 if test -z "$ac_top_builddir"; then
1116 ac_top_srcdir=.
1117 else
1118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1119 fi ;;
1120 [\\/]* | ?:[\\/]* ) # Absolute path.
1121 ac_srcdir=$srcdir$ac_dir_suffix;
1122 ac_top_srcdir=$srcdir ;;
1123 *) # Relative path.
1124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1126esac
ac1cb8d3
VS
1127
1128# Do not use `cd foo && pwd` to compute absolute paths, because
1129# the directories may not exist.
1130case `pwd` in
1131.) ac_abs_builddir="$ac_dir";;
1132*)
1133 case "$ac_dir" in
1134 .) ac_abs_builddir=`pwd`;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1137 esac;;
1138esac
1139case $ac_abs_builddir in
1140.) ac_abs_top_builddir=${ac_top_builddir}.;;
1141*)
1142 case ${ac_top_builddir}. in
1143 .) ac_abs_top_builddir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_srcdir=$ac_srcdir;;
1150*)
1151 case $ac_srcdir in
1152 .) ac_abs_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_top_srcdir=$ac_top_srcdir;;
1159*)
1160 case $ac_top_srcdir in
1161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1164 esac;;
1165esac
a848cd7e
SC
1166
1167 cd $ac_dir
1168 # Check for guested configure; otherwise get Cygnus style configure.
1169 if test -f $ac_srcdir/configure.gnu; then
1170 echo
1171 $SHELL $ac_srcdir/configure.gnu --help=recursive
1172 elif test -f $ac_srcdir/configure; then
1173 echo
1174 $SHELL $ac_srcdir/configure --help=recursive
1175 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1176 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1177 echo
1178 $ac_configure --help
1179 else
1180 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1181 fi
4d4ff94c 1182 cd "$ac_popdir"
a848cd7e
SC
1183 done
1184fi
1185
1186test -n "$ac_init_help" && exit 0
1187if $ac_init_version; then
1188 cat <<\_ACEOF
77ffb593 1189wxWidgets configure 2.5.2
ac1cb8d3 1190generated by GNU Autoconf 2.59
a848cd7e 1191
ac1cb8d3 1192Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1193This configure script is free software; the Free Software Foundation
1194gives unlimited permission to copy, distribute and modify it.
1195_ACEOF
1196 exit 0
1197fi
1198exec 5>config.log
1199cat >&5 <<_ACEOF
1200This file contains any messages produced by compilers while
1201running configure, to aid debugging if configure makes a mistake.
1202
77ffb593 1203It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1204generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1205
1206 $ $0 $@
1207
1208_ACEOF
1209{
1210cat <<_ASUNAME
1211## --------- ##
1212## Platform. ##
1213## --------- ##
1214
1215hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1216uname -m = `(uname -m) 2>/dev/null || echo unknown`
1217uname -r = `(uname -r) 2>/dev/null || echo unknown`
1218uname -s = `(uname -s) 2>/dev/null || echo unknown`
1219uname -v = `(uname -v) 2>/dev/null || echo unknown`
1220
1221/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1222/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1223
1224/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1225/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1226/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1227hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1228/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1229/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1230/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1231
1232_ASUNAME
1233
1234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235for as_dir in $PATH
1236do
1237 IFS=$as_save_IFS
1238 test -z "$as_dir" && as_dir=.
1239 echo "PATH: $as_dir"
1240done
1241
1242} >&5
1243
1244cat >&5 <<_ACEOF
1245
1246
1247## ----------- ##
1248## Core tests. ##
1249## ----------- ##
1250
1251_ACEOF
1252
1253
1254# Keep a trace of the command line.
1255# Strip out --no-create and --no-recursion so they do not pile up.
1256# Strip out --silent because we don't want to record it for future runs.
1257# Also quote any args containing shell meta-characters.
1258# Make two passes to allow for proper duplicate-argument suppression.
1259ac_configure_args=
1260ac_configure_args0=
1261ac_configure_args1=
1262ac_sep=
1263ac_must_keep_next=false
1264for ac_pass in 1 2
1265do
1266 for ac_arg
1267 do
1268 case $ac_arg in
1269 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1272 continue ;;
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 esac
1276 case $ac_pass in
1277 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278 2)
1279 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1280 if test $ac_must_keep_next = true; then
ac1cb8d3 1281 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1282 else
ac1cb8d3
VS
1283 case $ac_arg in
1284 *=* | --config-cache | -C | -disable-* | --disable-* \
1285 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1286 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1287 | -with-* | --with-* | -without-* | --without-* | --x)
1288 case "$ac_configure_args0 " in
1289 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1290 esac
1291 ;;
1292 -* ) ac_must_keep_next=true ;;
1293 esac
a848cd7e
SC
1294 fi
1295 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1296 # Get rid of the leading space.
1297 ac_sep=" "
1298 ;;
1299 esac
1300 done
1301done
1302$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1303$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304
1305# When interrupted or exit'd, cleanup temporary files, and complete
1306# config.log. We remove comments because anyway the quotes in there
1307# would cause problems or look ugly.
1308# WARNING: Be sure not to use single quotes in there, as some shells,
1309# such as our DU 5.0 friend, will then `close' the trap.
1310trap 'exit_status=$?
1311 # Save into config.log some information that might help in debugging.
1312 {
1313 echo
1314
1315 cat <<\_ASBOX
1316## ---------------- ##
1317## Cache variables. ##
1318## ---------------- ##
1319_ASBOX
1320 echo
1321 # The following way of writing the cache mishandles newlines in values,
1322{
1323 (set) 2>&1 |
1324 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1325 *ac_space=\ *)
1326 sed -n \
ac1cb8d3
VS
1327 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1329 ;;
1330 *)
1331 sed -n \
ac1cb8d3 1332 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1333 ;;
1334 esac;
1335}
1336 echo
1337
1338 cat <<\_ASBOX
1339## ----------------- ##
1340## Output variables. ##
1341## ----------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_vars
1345 do
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1348 done | sort
1349 echo
1350
1351 if test -n "$ac_subst_files"; then
1352 cat <<\_ASBOX
1353## ------------- ##
1354## Output files. ##
1355## ------------- ##
1356_ASBOX
1357 echo
1358 for ac_var in $ac_subst_files
1359 do
1360 eval ac_val=$`echo $ac_var`
ac1cb8d3 1361 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1362 done | sort
1363 echo
1364 fi
1365
1366 if test -s confdefs.h; then
1367 cat <<\_ASBOX
1368## ----------- ##
1369## confdefs.h. ##
1370## ----------- ##
1371_ASBOX
1372 echo
1373 sed "/^$/d" confdefs.h | sort
1374 echo
1375 fi
1376 test "$ac_signal" != 0 &&
1377 echo "$as_me: caught signal $ac_signal"
1378 echo "$as_me: exit $exit_status"
1379 } >&5
ac1cb8d3 1380 rm -f core *.core &&
a848cd7e
SC
1381 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1382 exit $exit_status
1383 ' 0
1384for ac_signal in 1 2 13 15; do
1385 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1386done
1387ac_signal=0
1388
1389# confdefs.h avoids OS command line length limits that DEFS can exceed.
1390rm -rf conftest* confdefs.h
1391# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1392echo >confdefs.h
1393
1394# Predefined preprocessor variables.
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_NAME "$PACKAGE_NAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_VERSION "$PACKAGE_VERSION"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_STRING "$PACKAGE_STRING"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1418_ACEOF
1419
1420
1421# Let the site file select an alternate cache file if it wants to.
1422# Prefer explicitly selected file to automatically selected ones.
1423if test -z "$CONFIG_SITE"; then
1424 if test "x$prefix" != xNONE; then
1425 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1426 else
1427 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1428 fi
1429fi
1430for ac_site_file in $CONFIG_SITE; do
1431 if test -r "$ac_site_file"; then
1432 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433echo "$as_me: loading site script $ac_site_file" >&6;}
1434 sed 's/^/| /' "$ac_site_file" >&5
1435 . "$ac_site_file"
1436 fi
1437done
1438
1439if test -r "$cache_file"; then
1440 # Some versions of bash will fail to source /dev/null (special
1441 # files actually), so we avoid doing that.
1442 if test -f "$cache_file"; then
1443 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444echo "$as_me: loading cache $cache_file" >&6;}
1445 case $cache_file in
1446 [\\/]* | ?:[\\/]* ) . $cache_file;;
1447 *) . ./$cache_file;;
1448 esac
1449 fi
1450else
1451 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452echo "$as_me: creating cache $cache_file" >&6;}
1453 >$cache_file
1454fi
1455
1456# Check that the precious variables saved in the cache have kept the same
1457# value.
1458ac_cache_corrupted=false
1459for ac_var in `(set) 2>&1 |
ac1cb8d3 1460 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462 eval ac_new_set=\$ac_env_${ac_var}_set
1463 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464 eval ac_new_val="\$ac_env_${ac_var}_value"
1465 case $ac_old_set,$ac_new_set in
1466 set,)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,set)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,);;
1475 *)
1476 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1477 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1478echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1479 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1480echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1482echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1483 ac_cache_corrupted=:
a848cd7e
SC
1484 fi;;
1485 esac
1486 # Pass precious variables to config.status.
1487 if test "$ac_new_set" = set; then
1488 case $ac_new_val in
1489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 *) ac_arg=$ac_var=$ac_new_val ;;
1492 esac
1493 case " $ac_configure_args " in
1494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1495 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1496 esac
1497 fi
1498done
1499if $ac_cache_corrupted; then
1500 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504 { (exit 1); exit 1; }; }
1505fi
1506
1507ac_ext=c
1508ac_cpp='$CPP $CPPFLAGS'
1509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542ac_aux_dir=
1543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break
1548 elif test -f $ac_dir/install.sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 break
1552 elif test -f $ac_dir/shtool; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break
1556 fi
1557done
1558if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561 { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567# Make sure we can run config.sub.
1568$ac_config_sub sun4 >/dev/null 2>&1 ||
1569 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1570echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1571 { (exit 1); exit 1; }; }
1572
1573echo "$as_me:$LINENO: checking build system type" >&5
1574echo $ECHO_N "checking build system type... $ECHO_C" >&6
1575if test "${ac_cv_build+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_build_alias=$build_alias
1579test -z "$ac_cv_build_alias" &&
1580 ac_cv_build_alias=`$ac_config_guess`
1581test -z "$ac_cv_build_alias" &&
1582 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1583echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1584 { (exit 1); exit 1; }; }
1585ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1586 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1587echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590fi
1591echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1592echo "${ECHO_T}$ac_cv_build" >&6
1593build=$ac_cv_build
1594build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597
1598
1599echo "$as_me:$LINENO: checking host system type" >&5
1600echo $ECHO_N "checking host system type... $ECHO_C" >&6
1601if test "${ac_cv_host+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 ac_cv_host_alias=$host_alias
1605test -z "$ac_cv_host_alias" &&
1606 ac_cv_host_alias=$ac_cv_build_alias
1607ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1608 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1609echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1610 { (exit 1); exit 1; }; }
1611
1612fi
1613echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1614echo "${ECHO_T}$ac_cv_host" >&6
1615host=$ac_cv_host
1616host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619
1620
1621echo "$as_me:$LINENO: checking target system type" >&5
1622echo $ECHO_N "checking target system type... $ECHO_C" >&6
1623if test "${ac_cv_target+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 ac_cv_target_alias=$target_alias
1627test "x$ac_cv_target_alias" = "x" &&
1628 ac_cv_target_alias=$ac_cv_host_alias
1629ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1630 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1631echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1632 { (exit 1); exit 1; }; }
1633
1634fi
1635echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1636echo "${ECHO_T}$ac_cv_target" >&6
1637target=$ac_cv_target
1638target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641
1642
1643# The aliases save the names the user supplied, while $host etc.
1644# will get canonicalized.
1645test -n "$target_alias" &&
1646 test "$program_prefix$program_suffix$program_transform_name" = \
1647 NONENONEs,x,x, &&
1648 program_prefix=${target_alias}-
1649
1650
1651
1652WX_MAJOR_VERSION_NUMBER=2
1653WX_MINOR_VERSION_NUMBER=5
de59c161 1654WX_RELEASE_NUMBER=2
224bf05c 1655WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1656
1657WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1658WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1659
1660WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1661
de59c161 1662WX_CURRENT=2
a848cd7e
SC
1663WX_REVISION=0
1664WX_AGE=0
1665
1666
1667
1668USE_UNIX=1
1669USE_OS2=0
1670USE_WIN32=0
1671USE_DOS=0
1672USE_BEOS=0
1673USE_MAC=0
1674
1675USE_AIX=
1676USE_BSD= USE_DARWIN= USE_FREEBSD=
1677USE_GNU= USE_HPUX=
1678USE_LINUX=
1679USE_NETBSD=
1680USE_OPENBSD=
1681USE_OSF= USE_SGI=
1682USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1683USE_ULTRIX=
1684USE_UNIXWARE=
1685
1686USE_ALPHA=
1687
1688NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1689
1690ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1691
1692DEFAULT_wxUSE_COCOA=0
1693DEFAULT_wxUSE_GTK=0
1694DEFAULT_wxUSE_MAC=0
1695DEFAULT_wxUSE_MGL=0
1696DEFAULT_wxUSE_MICROWIN=0
1697DEFAULT_wxUSE_MOTIF=0
1698DEFAULT_wxUSE_MSW=0
1699DEFAULT_wxUSE_PM=0
1700DEFAULT_wxUSE_X11=0
1701
1702DEFAULT_DEFAULT_wxUSE_COCOA=0
1703DEFAULT_DEFAULT_wxUSE_GTK=0
1704DEFAULT_DEFAULT_wxUSE_MAC=0
1705DEFAULT_DEFAULT_wxUSE_MGL=0
1706DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_DEFAULT_wxUSE_MSW=0
1709DEFAULT_DEFAULT_wxUSE_PM=0
1710DEFAULT_DEFAULT_wxUSE_X11=0
1711
1712PROGRAM_EXT=
1713SO_SUFFIX=so
1714SAMPLES_RPATH_FLAG=
1715SAMPLES_RPATH_POSTLINK=
1716
1717case "${host}" in
1718 *-hp-hpux* )
1719 USE_HPUX=1
1720 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1721 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1722 SO_SUFFIX=sl
1723 cat >>confdefs.h <<\_ACEOF
1724#define __HPUX__ 1
1725_ACEOF
1726
1727 ;;
1728 *-*-linux* )
1729 USE_LINUX=1
1730 cat >>confdefs.h <<\_ACEOF
1731#define __LINUX__ 1
1732_ACEOF
1733
1734 TMP=`uname -m`
1735 if test "x$TMP" = "xalpha"; then
1736 USE_ALPHA=1
1737 cat >>confdefs.h <<\_ACEOF
1738#define __ALPHA__ 1
1739_ACEOF
1740
1741 fi
1742 DEFAULT_DEFAULT_wxUSE_GTK=1
1743 ;;
1744 *-*-gnu* | *-*-k*bsd*-gnu )
1745 USE_GNU=1
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-irix5* | *-*-irix6* )
1757 USE_SGI=1
1758 USE_SVR4=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __SGI__ 1
1761_ACEOF
1762
1763 cat >>confdefs.h <<\_ACEOF
1764#define __SVR4__ 1
1765_ACEOF
1766
1767 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1768 ;;
1769 *-*-solaris2* )
1770 USE_SUN=1
1771 USE_SOLARIS=1
1772 USE_SVR4=1
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SUN__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SOLARIS__ 1
1779_ACEOF
1780
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SVR4__ 1
1783_ACEOF
1784
1785 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1786 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1787 ;;
1788 *-*-sunos4* )
1789 USE_SUN=1
1790 USE_SUNOS=1
1791 USE_BSD=1
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SUN__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SUNOS__ 1
1798_ACEOF
1799
1800 cat >>confdefs.h <<\_ACEOF
1801#define __BSD__ 1
1802_ACEOF
1803
1804 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1805 ;;
1806 *-*-freebsd*)
1807 USE_BSD=1
1808 USE_FREEBSD=1
1809 cat >>confdefs.h <<\_ACEOF
1810#define __FREEBSD__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __BSD__ 1
1815_ACEOF
1816
1817 DEFAULT_DEFAULT_wxUSE_GTK=1
1818 ;;
1819 *-*-openbsd*)
1820 USE_BSD=1
1821 USE_OPENBSD=1
1822 cat >>confdefs.h <<\_ACEOF
1823#define __OPENBSD__ 1
1824_ACEOF
1825
1826 cat >>confdefs.h <<\_ACEOF
1827#define __BSD__ 1
1828_ACEOF
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-netbsd*)
1833 USE_BSD=1
1834 USE_NETBSD=1
1835 cat >>confdefs.h <<\_ACEOF
1836#define __NETBSD__ 1
1837_ACEOF
1838
1839 cat >>confdefs.h <<\_ACEOF
1840#define __BSD__ 1
1841_ACEOF
1842
1843 DEFAULT_DEFAULT_wxUSE_GTK=1
1844 ;;
1845 *-*-osf* )
1846 USE_ALPHA=1
1847 USE_OSF=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __ALPHA__ 1
1850_ACEOF
1851
1852 cat >>confdefs.h <<\_ACEOF
1853#define __OSF__ 1
1854_ACEOF
1855
1856 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1857 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1858 ;;
1859 *-*-dgux5* )
1860 USE_ALPHA=1
1861 USE_SVR4=1
1862 cat >>confdefs.h <<\_ACEOF
1863#define __ALPHA__ 1
1864_ACEOF
1865
1866 cat >>confdefs.h <<\_ACEOF
1867#define __SVR4__ 1
1868_ACEOF
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 ;;
1872 *-*-sysv5* )
1873 USE_SYSV=1
1874 USE_SVR4=1
1875 cat >>confdefs.h <<\_ACEOF
1876#define __SYSV__ 1
1877_ACEOF
1878
1879 cat >>confdefs.h <<\_ACEOF
1880#define __SVR4__ 1
1881_ACEOF
1882
1883 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1884 ;;
1885 *-*-aix* )
1886 USE_AIX=1
1887 USE_SYSV=1
1888 USE_SVR4=1
1889 SO_SUFFIX=a
1890 cat >>confdefs.h <<\_ACEOF
1891#define __AIX__ 1
1892_ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SYSV__ 1
1896_ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SVR4__ 1
1900_ACEOF
1901
1902 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1903 ;;
1904
1905 *-*-*UnixWare*)
1906 USE_SYSV=1
1907 USE_SVR4=1
1908 USE_UNIXWARE=1
1909 cat >>confdefs.h <<\_ACEOF
1910#define __UNIXWARE__ 1
1911_ACEOF
1912
1913 ;;
1914
1915 *-*-cygwin* | *-*-mingw32* )
1916 SO_SUFFIX=dll
1917 PROGRAM_EXT=".exe"
1918 RESCOMP=windres
1919 DEFAULT_DEFAULT_wxUSE_MSW=1
1920 ;;
1921
1922 *-pc-msdosdjgpp )
1923 USE_UNIX=0
1924 USE_DOS=1
1925 cat >>confdefs.h <<\_ACEOF
1926#define __DOS__ 1
1927_ACEOF
1928
1929 PROGRAM_EXT=".exe"
1930 DEFAULT_DEFAULT_wxUSE_MGL=1
1931 LIBS="$LIBS -lstdc++"
1932 ;;
1933
1934 *-pc-os2_emx | *-pc-os2-emx )
1935 cat >>confdefs.h <<\_ACEOF
1936#define __EMX__ 1
1937_ACEOF
1938
1939 USE_OS2=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __OS2__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_PM=1
1946 CXX=gcc
1947 LDFLAGS="$LDFLAGS -Zcrtdll"
1948 ac_executable_extensions=".exe"
1949 export ac_executable_extensions
1950 ac_save_IFS="$IFS"
1951 IFS='\\'
1952 ac_TEMP_PATH=
1953 for ac_dir in $PATH; do
1954 IFS=$ac_save_IFS
1955 if test -z "$ac_TEMP_PATH"; then
1956 ac_TEMP_PATH="$ac_dir"
1957 else
1958 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1959 fi
1960 done
1961 export PATH="$ac_TEMP_PATH"
1962 unset ac_TEMP_PATH
1963 ;;
1964
1965 powerpc-*-darwin* )
1966 USE_BSD=1
1967 USE_DARWIN=1
1968 SO_SUFFIX=dylib
1969 cat >>confdefs.h <<\_ACEOF
1970#define __BSD__ 1
1971_ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974#define __DARWIN__ 1
1975_ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978#define __POWERPC__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define TARGET_CARBON 1
1983_ACEOF
1984
1985 DEFAULT_DEFAULT_wxUSE_MAC=1
1986 ;;
1987
1988 *-*-beos* )
1989 USE_BEOS=1
1990 cat >>confdefs.h <<\_ACEOF
1991#define __BEOS__ 1
1992_ACEOF
1993
1994 ;;
1995
1996 *)
1997 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1998echo "$as_me: error: unknown system type ${host}." >&2;}
1999 { (exit 1); exit 1; }; }
2000esac
2001
2002
2003
2004
2005 wx_arg_cache_file="configarg.cache"
2006 echo "loading argument cache $wx_arg_cache_file"
2007 rm -f ${wx_arg_cache_file}.tmp
2008 touch ${wx_arg_cache_file}.tmp
2009 touch ${wx_arg_cache_file}
2010
2011
2012DEBUG_CONFIGURE=0
2013if test $DEBUG_CONFIGURE = 1; then
2014 DEFAULT_wxUSE_UNIVERSAL=no
2015 DEFAULT_wxUSE_STL=no
2016
2017 DEFAULT_wxUSE_NANOX=no
2018
2019 DEFAULT_wxUSE_THREADS=yes
2020
2021 DEFAULT_wxUSE_SHARED=yes
2022 DEFAULT_wxUSE_OPTIMISE=no
2023 DEFAULT_wxUSE_PROFILE=no
2024 DEFAULT_wxUSE_NO_DEPS=no
2025 DEFAULT_wxUSE_NO_RTTI=no
2026 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2027 DEFAULT_wxUSE_PERMISSIVE=no
2028 DEFAULT_wxUSE_DEBUG_FLAG=yes
2029 DEFAULT_wxUSE_DEBUG_INFO=yes
2030 DEFAULT_wxUSE_DEBUG_GDB=yes
2031 DEFAULT_wxUSE_MEM_TRACING=no
2032 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2033 DEFAULT_wxUSE_DMALLOC=no
2034 DEFAULT_wxUSE_APPLE_IEEE=no
2035
2036 DEFAULT_wxUSE_EXCEPTIONS=no
2037 DEFAULT_wxUSE_LOG=yes
2038 DEFAULT_wxUSE_LOGWINDOW=no
2039 DEFAULT_wxUSE_LOGGUI=no
2040 DEFAULT_wxUSE_LOGDIALOG=no
2041
2042 DEFAULT_wxUSE_GUI=yes
2043 DEFAULT_wxUSE_CONTROLS=no
2044
2045 DEFAULT_wxUSE_REGEX=no
2046 DEFAULT_wxUSE_XML=no
2047 DEFAULT_wxUSE_EXPAT=no
2048 DEFAULT_wxUSE_ZLIB=no
2049 DEFAULT_wxUSE_LIBPNG=no
2050 DEFAULT_wxUSE_LIBJPEG=no
2051 DEFAULT_wxUSE_LIBTIFF=no
2052 DEFAULT_wxUSE_LIBXPM=no
2053 DEFAULT_wxUSE_LIBMSPACK=no
2054 DEFAULT_wxUSE_LIBSDL=no
2055 DEFAULT_wxUSE_ODBC=no
2056 DEFAULT_wxUSE_OPENGL=no
2057
2058 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2059 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2060 DEFAULT_wxUSE_STD_IOSTREAM=no
2061 DEFAULT_wxUSE_CMDLINE_PARSER=no
2062 DEFAULT_wxUSE_DATETIME=no
2063 DEFAULT_wxUSE_TIMER=no
2064 DEFAULT_wxUSE_STOPWATCH=no
2065 DEFAULT_wxUSE_FILE=no
2066 DEFAULT_wxUSE_FFILE=no
2067 DEFAULT_wxUSE_TEXTBUFFER=no
2068 DEFAULT_wxUSE_TEXTFILE=no
2069 DEFAULT_wxUSE_SOUND=no
2070 DEFAULT_wxUSE_INTL=no
2071 DEFAULT_wxUSE_CONFIG=no
2072 DEFAULT_wxUSE_FONTMAP=no
2073 DEFAULT_wxUSE_STREAMS=no
2074 DEFAULT_wxUSE_SOCKETS=no
2075 DEFAULT_wxUSE_OLE=no
2076 DEFAULT_wxUSE_DATAOBJ=no
2077 DEFAULT_wxUSE_DIALUP_MANAGER=no
2078 DEFAULT_wxUSE_JOYSTICK=no
2079 DEFAULT_wxUSE_DYNLIB_CLASS=no
2080 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2081 DEFAULT_wxUSE_LONGLONG=no
2082 DEFAULT_wxUSE_GEOMETRY=no
2083
2084 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2085 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2086 DEFAULT_wxUSE_POSTSCRIPT=no
2087
2088 DEFAULT_wxUSE_CLIPBOARD=no
2089 DEFAULT_wxUSE_TOOLTIPS=no
2090 DEFAULT_wxUSE_DRAG_AND_DROP=no
2091 DEFAULT_wxUSE_DRAGIMAGE=no
2092 DEFAULT_wxUSE_SPLINES=no
2093
8a7b1113 2094 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2095 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2096 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2097 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2098
2099 DEFAULT_wxUSE_RESOURCES=no
2100 DEFAULT_wxUSE_CONSTRAINTS=no
2101 DEFAULT_wxUSE_IPC=no
2102 DEFAULT_wxUSE_HELP=no
2103 DEFAULT_wxUSE_MS_HTML_HELP=no
2104 DEFAULT_wxUSE_WXHTML_HELP=no
2105 DEFAULT_wxUSE_TREELAYOUT=no
2106 DEFAULT_wxUSE_METAFILE=no
2107 DEFAULT_wxUSE_MIMETYPE=no
2108 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2109 DEFAULT_wxUSE_PROTOCOL=no
2110 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2111 DEFAULT_wxUSE_PROTOCOL_FTP=no
2112 DEFAULT_wxUSE_PROTOCOL_FILE=no
2113 DEFAULT_wxUSE_URL=no
2114
2115 DEFAULT_wxUSE_COMMONDLGS=no
2116 DEFAULT_wxUSE_CHOICEDLG=no
2117 DEFAULT_wxUSE_COLOURDLG=no
2118 DEFAULT_wxUSE_DIRDLG=no
2119 DEFAULT_wxUSE_FILEDLG=no
2120 DEFAULT_wxUSE_FINDREPLDLG=no
2121 DEFAULT_wxUSE_FONTDLG=no
2122 DEFAULT_wxUSE_MSGDLG=no
2123 DEFAULT_wxUSE_NUMBERDLG=no
2124 DEFAULT_wxUSE_TEXTDLG=no
2125 DEFAULT_wxUSE_SPLASH=no
2126 DEFAULT_wxUSE_STARTUP_TIPS=no
2127 DEFAULT_wxUSE_PROGRESSDLG=no
2128 DEFAULT_wxUSE_WIZARDDLG=no
2129
2130 DEFAULT_wxUSE_MENUS=no
2131 DEFAULT_wxUSE_MINIFRAME=no
2132 DEFAULT_wxUSE_HTML=no
646b6ec1 2133 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2134 DEFAULT_wxUSE_FILESYSTEM=no
2135 DEFAULT_wxUSE_FS_INET=no
2136 DEFAULT_wxUSE_FS_ZIP=no
2137 DEFAULT_wxUSE_BUSYINFO=no
2138 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2139 DEFAULT_wxUSE_VALIDATORS=no
2140
2141 DEFAULT_wxUSE_ACCEL=no
2142 DEFAULT_wxUSE_BUTTON=no
2143 DEFAULT_wxUSE_BMPBUTTON=no
2144 DEFAULT_wxUSE_CALCTRL=no
2145 DEFAULT_wxUSE_CARET=no
2146 DEFAULT_wxUSE_CHECKBOX=no
2147 DEFAULT_wxUSE_CHECKLST=no
2148 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2149 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2150 DEFAULT_wxUSE_COMBOBOX=no
2151 DEFAULT_wxUSE_DISPLAY=no
2152 DEFAULT_wxUSE_GAUGE=no
2153 DEFAULT_wxUSE_GRID=no
2154 DEFAULT_wxUSE_IMAGLIST=no
2155 DEFAULT_wxUSE_LISTBOOK=no
2156 DEFAULT_wxUSE_LISTBOX=no
2157 DEFAULT_wxUSE_LISTCTRL=no
2158 DEFAULT_wxUSE_NOTEBOOK=no
2159 DEFAULT_wxUSE_RADIOBOX=no
2160 DEFAULT_wxUSE_RADIOBTN=no
2161 DEFAULT_wxUSE_SASH=no
2162 DEFAULT_wxUSE_SCROLLBAR=no
2163 DEFAULT_wxUSE_SLIDER=no
2164 DEFAULT_wxUSE_SPINBTN=no
2165 DEFAULT_wxUSE_SPINCTRL=no
2166 DEFAULT_wxUSE_SPLITTER=no
2167 DEFAULT_wxUSE_STATBMP=no
2168 DEFAULT_wxUSE_STATBOX=no
2169 DEFAULT_wxUSE_STATLINE=no
2170 DEFAULT_wxUSE_STATTEXT=no
2171 DEFAULT_wxUSE_STATUSBAR=yes
2172 DEFAULT_wxUSE_TABDIALOG=no
2173 DEFAULT_wxUSE_TEXTCTRL=no
2174 DEFAULT_wxUSE_TOGGLEBTN=no
2175 DEFAULT_wxUSE_TOOLBAR=no
2176 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2177 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2178 DEFAULT_wxUSE_TREECTRL=no
2179 DEFAULT_wxUSE_POPUPWIN=no
2180 DEFAULT_wxUSE_TIPWINDOW=no
2181
2182 DEFAULT_wxUSE_UNICODE=no
2183 DEFAULT_wxUSE_UNICODE_MSLU=no
2184 DEFAULT_wxUSE_WCSRTOMBS=no
2185
2186 DEFAULT_wxUSE_PALETTE=no
2187 DEFAULT_wxUSE_IMAGE=no
2188 DEFAULT_wxUSE_GIF=no
2189 DEFAULT_wxUSE_PCX=no
2190 DEFAULT_wxUSE_PNM=no
2191 DEFAULT_wxUSE_IFF=no
2192 DEFAULT_wxUSE_XPM=no
2193 DEFAULT_wxUSE_ICO_CUR=no
2194 DEFAULT_wxUSE_ACCESSIBILITY=no
2195
2196 DEFAULT_wxUSE_MONOLITHIC=no
2197 DEFAULT_wxUSE_PLUGINS=no
2198 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2199else
2200 DEFAULT_wxUSE_UNIVERSAL=no
2201 DEFAULT_wxUSE_STL=no
2202
2203 DEFAULT_wxUSE_NANOX=no
2204
2205 DEFAULT_wxUSE_THREADS=yes
2206
2207 DEFAULT_wxUSE_SHARED=yes
2208 DEFAULT_wxUSE_OPTIMISE=yes
2209 DEFAULT_wxUSE_PROFILE=no
2210 DEFAULT_wxUSE_NO_DEPS=no
2211 DEFAULT_wxUSE_NO_RTTI=no
2212 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2213 DEFAULT_wxUSE_PERMISSIVE=no
2214 DEFAULT_wxUSE_DEBUG_FLAG=no
2215 DEFAULT_wxUSE_DEBUG_INFO=no
2216 DEFAULT_wxUSE_DEBUG_GDB=no
2217 DEFAULT_wxUSE_MEM_TRACING=no
2218 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2219 DEFAULT_wxUSE_DMALLOC=no
2220 DEFAULT_wxUSE_APPLE_IEEE=yes
2221
2222 DEFAULT_wxUSE_EXCEPTIONS=yes
2223 DEFAULT_wxUSE_LOG=yes
2224 DEFAULT_wxUSE_LOGWINDOW=yes
2225 DEFAULT_wxUSE_LOGGUI=yes
2226 DEFAULT_wxUSE_LOGDIALOG=yes
2227
2228 DEFAULT_wxUSE_GUI=yes
2229
2230 DEFAULT_wxUSE_REGEX=yes
2231 DEFAULT_wxUSE_XML=yes
2232 DEFAULT_wxUSE_EXPAT=yes
2233 DEFAULT_wxUSE_ZLIB=yes
2234 DEFAULT_wxUSE_LIBPNG=yes
2235 DEFAULT_wxUSE_LIBJPEG=yes
2236 DEFAULT_wxUSE_LIBTIFF=yes
2237 DEFAULT_wxUSE_LIBXPM=yes
2238 DEFAULT_wxUSE_LIBMSPACK=yes
2239 DEFAULT_wxUSE_LIBSDL=no
2240 DEFAULT_wxUSE_ODBC=no
2241 DEFAULT_wxUSE_OPENGL=no
2242
2243 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2244 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2245 DEFAULT_wxUSE_STD_IOSTREAM=no
2246 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2247 DEFAULT_wxUSE_DATETIME=yes
2248 DEFAULT_wxUSE_TIMER=yes
2249 DEFAULT_wxUSE_STOPWATCH=yes
2250 DEFAULT_wxUSE_FILE=yes
2251 DEFAULT_wxUSE_FFILE=yes
2252 DEFAULT_wxUSE_TEXTBUFFER=yes
2253 DEFAULT_wxUSE_TEXTFILE=yes
2254 DEFAULT_wxUSE_SOUND=yes
2255 DEFAULT_wxUSE_INTL=yes
2256 DEFAULT_wxUSE_CONFIG=yes
2257 DEFAULT_wxUSE_FONTMAP=yes
2258 DEFAULT_wxUSE_STREAMS=yes
2259 DEFAULT_wxUSE_SOCKETS=yes
2260 DEFAULT_wxUSE_OLE=yes
2261 DEFAULT_wxUSE_DATAOBJ=yes
2262 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2263 DEFAULT_wxUSE_JOYSTICK=yes
2264 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2265 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2266 DEFAULT_wxUSE_LONGLONG=yes
2267 DEFAULT_wxUSE_GEOMETRY=yes
2268
2269 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2270 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2271 DEFAULT_wxUSE_POSTSCRIPT=yes
2272
2273 DEFAULT_wxUSE_CLIPBOARD=yes
2274 DEFAULT_wxUSE_TOOLTIPS=yes
2275 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2276 DEFAULT_wxUSE_DRAGIMAGE=yes
2277 DEFAULT_wxUSE_SPLINES=yes
2278
8a7b1113 2279 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2280 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2281 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2282 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2283
2284 DEFAULT_wxUSE_RESOURCES=no
2285 DEFAULT_wxUSE_CONSTRAINTS=yes
2286 DEFAULT_wxUSE_IPC=yes
2287 DEFAULT_wxUSE_HELP=yes
2288 DEFAULT_wxUSE_MS_HTML_HELP=yes
2289 DEFAULT_wxUSE_WXHTML_HELP=yes
2290 DEFAULT_wxUSE_TREELAYOUT=yes
2291 DEFAULT_wxUSE_METAFILE=yes
2292 DEFAULT_wxUSE_MIMETYPE=yes
2293 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2294 DEFAULT_wxUSE_PROTOCOL=yes
2295 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2296 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2297 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2298 DEFAULT_wxUSE_URL=yes
2299
2300 DEFAULT_wxUSE_COMMONDLGS=yes
2301 DEFAULT_wxUSE_CHOICEDLG=yes
2302 DEFAULT_wxUSE_COLOURDLG=yes
2303 DEFAULT_wxUSE_DIRDLG=yes
2304 DEFAULT_wxUSE_FILEDLG=yes
2305 DEFAULT_wxUSE_FINDREPLDLG=yes
2306 DEFAULT_wxUSE_FONTDLG=yes
2307 DEFAULT_wxUSE_MSGDLG=yes
2308 DEFAULT_wxUSE_NUMBERDLG=yes
2309 DEFAULT_wxUSE_TEXTDLG=yes
2310 DEFAULT_wxUSE_SPLASH=yes
2311 DEFAULT_wxUSE_STARTUP_TIPS=yes
2312 DEFAULT_wxUSE_PROGRESSDLG=yes
2313 DEFAULT_wxUSE_WIZARDDLG=yes
2314
2315 DEFAULT_wxUSE_MENUS=yes
2316 DEFAULT_wxUSE_MINIFRAME=yes
2317 DEFAULT_wxUSE_HTML=yes
646b6ec1 2318 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2319 DEFAULT_wxUSE_FILESYSTEM=yes
2320 DEFAULT_wxUSE_FS_INET=yes
2321 DEFAULT_wxUSE_FS_ZIP=yes
2322 DEFAULT_wxUSE_BUSYINFO=yes
2323 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2324 DEFAULT_wxUSE_VALIDATORS=yes
2325
2326 DEFAULT_wxUSE_ACCEL=yes
2327 DEFAULT_wxUSE_BUTTON=yes
2328 DEFAULT_wxUSE_BMPBUTTON=yes
2329 DEFAULT_wxUSE_CALCTRL=yes
2330 DEFAULT_wxUSE_CARET=yes
2331 DEFAULT_wxUSE_CHECKBOX=yes
2332 DEFAULT_wxUSE_CHECKLST=yes
2333 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2334 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2335 DEFAULT_wxUSE_COMBOBOX=yes
2336 DEFAULT_wxUSE_DISPLAY=yes
2337 DEFAULT_wxUSE_GAUGE=yes
2338 DEFAULT_wxUSE_GRID=yes
2339 DEFAULT_wxUSE_IMAGLIST=yes
2340 DEFAULT_wxUSE_LISTBOOK=yes
2341 DEFAULT_wxUSE_LISTBOX=yes
2342 DEFAULT_wxUSE_LISTCTRL=yes
2343 DEFAULT_wxUSE_NOTEBOOK=yes
2344 DEFAULT_wxUSE_RADIOBOX=yes
2345 DEFAULT_wxUSE_RADIOBTN=yes
2346 DEFAULT_wxUSE_SASH=yes
2347 DEFAULT_wxUSE_SCROLLBAR=yes
2348 DEFAULT_wxUSE_SLIDER=yes
2349 DEFAULT_wxUSE_SPINBTN=yes
2350 DEFAULT_wxUSE_SPINCTRL=yes
2351 DEFAULT_wxUSE_SPLITTER=yes
2352 DEFAULT_wxUSE_STATBMP=yes
2353 DEFAULT_wxUSE_STATBOX=yes
2354 DEFAULT_wxUSE_STATLINE=yes
2355 DEFAULT_wxUSE_STATTEXT=yes
2356 DEFAULT_wxUSE_STATUSBAR=yes
2357 DEFAULT_wxUSE_TABDIALOG=no
2358 DEFAULT_wxUSE_TEXTCTRL=yes
2359 DEFAULT_wxUSE_TOGGLEBTN=yes
2360 DEFAULT_wxUSE_TOOLBAR=yes
2361 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2362 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2363 DEFAULT_wxUSE_TREECTRL=yes
2364 DEFAULT_wxUSE_POPUPWIN=yes
2365 DEFAULT_wxUSE_TIPWINDOW=yes
2366
2367 DEFAULT_wxUSE_UNICODE=no
2368 DEFAULT_wxUSE_UNICODE_MSLU=yes
2369 DEFAULT_wxUSE_WCSRTOMBS=no
2370
2371 DEFAULT_wxUSE_PALETTE=yes
2372 DEFAULT_wxUSE_IMAGE=yes
2373 DEFAULT_wxUSE_GIF=yes
2374 DEFAULT_wxUSE_PCX=yes
2375 DEFAULT_wxUSE_IFF=no
2376 DEFAULT_wxUSE_PNM=yes
2377 DEFAULT_wxUSE_XPM=yes
2378 DEFAULT_wxUSE_ICO_CUR=yes
2379 DEFAULT_wxUSE_ACCESSIBILITY=no
2380
2381 DEFAULT_wxUSE_MONOLITHIC=no
2382 DEFAULT_wxUSE_PLUGINS=no
2383 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2384
2385 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2386fi
2387
2388
2389
2390for toolkit in `echo $ALL_TOOLKITS`; do
2391 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2392 if test "x$LINE" != "x" ; then
2393 has_toolkit_in_cache=1
2394 eval "DEFAULT_$LINE"
2395 eval "CACHE_$toolkit=1"
2396 fi
2397done
2398
2399
2400
2401 enablestring=
2402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2403echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2404 no_cache=0
2405 # Check whether --enable-gui or --disable-gui was given.
2406if test "${enable_gui+set}" = set; then
2407 enableval="$enable_gui"
2408
2409 if test "$enableval" = yes; then
2410 ac_cv_use_gui='wxUSE_GUI=yes'
2411 else
2412 ac_cv_use_gui='wxUSE_GUI=no'
2413 fi
2414
2415else
2416
2417 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2418 if test "x$LINE" != x ; then
2419 eval "DEFAULT_$LINE"
2420 else
2421 no_cache=1
2422 fi
2423
2424 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2425
2426fi;
2427
2428 eval "$ac_cv_use_gui"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_GUI" = yes; then
2434 echo "$as_me:$LINENO: result: yes" >&5
2435echo "${ECHO_T}yes" >&6
2436 else
2437 echo "$as_me:$LINENO: result: no" >&5
2438echo "${ECHO_T}no" >&6
2439 fi
2440
2441
2442 enablestring=
2443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2444echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2445 no_cache=0
2446 # Check whether --enable-monolithic or --disable-monolithic was given.
2447if test "${enable_monolithic+set}" = set; then
2448 enableval="$enable_monolithic"
2449
2450 if test "$enableval" = yes; then
2451 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2452 else
2453 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2454 fi
2455
2456else
2457
2458 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2459 if test "x$LINE" != x ; then
2460 eval "DEFAULT_$LINE"
2461 else
2462 no_cache=1
2463 fi
2464
2465 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2466
2467fi;
2468
2469 eval "$ac_cv_use_monolithic"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_MONOLITHIC" = yes; then
2475 echo "$as_me:$LINENO: result: yes" >&5
2476echo "${ECHO_T}yes" >&6
2477 else
2478 echo "$as_me:$LINENO: result: no" >&5
2479echo "${ECHO_T}no" >&6
2480 fi
2481
2482
2483 enablestring=
2484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2485echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2486 no_cache=0
2487 # Check whether --enable-plugins or --disable-plugins was given.
2488if test "${enable_plugins+set}" = set; then
2489 enableval="$enable_plugins"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2493 else
2494 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2495 fi
2496
2497else
2498
2499 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2507
2508fi;
2509
2510 eval "$ac_cv_use_plugins"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_PLUGINS" = yes; then
2516 echo "$as_me:$LINENO: result: yes" >&5
2517echo "${ECHO_T}yes" >&6
2518 else
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
2521 fi
2522
2523
2524if test "$wxUSE_GUI" = "yes"; then
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-universal or --disable-universal was given.
2532if test "${enable_universal+set}" = set; then
2533 enableval="$enable_universal"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2537 else
2538 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2551
2552fi;
2553
2554 eval "$ac_cv_use_universal"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_UNIVERSAL" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568# Check whether --with-gtk or --without-gtk was given.
2569if test "${with_gtk+set}" = set; then
2570 withval="$with_gtk"
2571 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2572fi;
2573
2574# Check whether --with-motif or --without-motif was given.
2575if test "${with_motif+set}" = set; then
2576 withval="$with_motif"
2577 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2578fi;
2579
2580# Check whether --with-mac or --without-mac was given.
2581if test "${with_mac+set}" = set; then
2582 withval="$with_mac"
2583 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2584fi;
2585
2586# Check whether --with-cocoa or --without-cocoa was given.
2587if test "${with_cocoa+set}" = set; then
2588 withval="$with_cocoa"
2589 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2590fi;
2591
2592# Check whether --with-wine or --without-wine was given.
2593if test "${with_wine+set}" = set; then
2594 withval="$with_wine"
2595 wxUSE_WINE="$withval" CACHE_WINE=1
2596fi;
2597
2598# Check whether --with-msw or --without-msw was given.
2599if test "${with_msw+set}" = set; then
2600 withval="$with_msw"
2601 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2602fi;
2603
2604# Check whether --with-pm or --without-pm was given.
2605if test "${with_pm+set}" = set; then
2606 withval="$with_pm"
2607 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2608fi;
2609
2610# Check whether --with-mgl or --without-mgl was given.
2611if test "${with_mgl+set}" = set; then
2612 withval="$with_mgl"
2613 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2614fi;
2615
2616# Check whether --with-microwin or --without-microwin was given.
2617if test "${with_microwin+set}" = set; then
2618 withval="$with_microwin"
2619 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2620fi;
2621
2622# Check whether --with-x11 or --without-x11 was given.
2623if test "${with_x11+set}" = set; then
2624 withval="$with_x11"
2625 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2626fi;
2627
2628 enablestring=
2629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2630echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2631 no_cache=0
2632 # Check whether --enable-nanox or --disable-nanox was given.
2633if test "${enable_nanox+set}" = set; then
2634 enableval="$enable_nanox"
2635
2636 if test "$enableval" = yes; then
2637 ac_cv_use_nanox='wxUSE_NANOX=yes'
2638 else
2639 ac_cv_use_nanox='wxUSE_NANOX=no'
2640 fi
2641
2642else
2643
2644 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2645 if test "x$LINE" != x ; then
2646 eval "DEFAULT_$LINE"
2647 else
2648 no_cache=1
2649 fi
2650
2651 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2652
2653fi;
2654
2655 eval "$ac_cv_use_nanox"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_NANOX" = yes; then
2661 echo "$as_me:$LINENO: result: yes" >&5
2662echo "${ECHO_T}yes" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666 fi
2667
2668
2669
2670 enablestring=
2671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2672echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2673 no_cache=0
2674 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2675if test "${enable_gtk2+set}" = set; then
2676 enableval="$enable_gtk2"
2677
2678 if test "$enableval" = yes; then
2679 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2680 else
2681 ac_cv_use_gtk2='wxUSE_GTK2=no'
2682 fi
2683
2684else
2685
2686 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2687 if test "x$LINE" != x ; then
2688 eval "DEFAULT_$LINE"
2689 else
2690 no_cache=1
2691 fi
2692
2693 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2694
2695fi;
2696
2697 eval "$ac_cv_use_gtk2"
2698 if test "$no_cache" != 1; then
2699 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2700 fi
2701
2702 if test "$wxUSE_GTK2" = yes; then
2703 echo "$as_me:$LINENO: result: yes" >&5
2704echo "${ECHO_T}yes" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708 fi
2709
2710
2711 enablestring=
2712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2713echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2714 no_cache=0
2715 # Check whether --enable-gpe or --disable-gpe was given.
2716if test "${enable_gpe+set}" = set; then
2717 enableval="$enable_gpe"
2718
2719 if test "$enableval" = yes; then
2720 ac_cv_use_gpe='wxUSE_GPE=yes'
2721 else
2722 ac_cv_use_gpe='wxUSE_GPE=no'
2723 fi
2724
2725else
2726
2727 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2728 if test "x$LINE" != x ; then
2729 eval "DEFAULT_$LINE"
2730 else
2731 no_cache=1
2732 fi
2733
2734 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2735
2736fi;
2737
2738 eval "$ac_cv_use_gpe"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_GPE" = yes; then
2744 echo "$as_me:$LINENO: result: yes" >&5
2745echo "${ECHO_T}yes" >&6
2746 else
2747 echo "$as_me:$LINENO: result: no" >&5
2748echo "${ECHO_T}no" >&6
2749 fi
2750
2751
2752
2753 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2754echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2755 no_cache=0
2756
2757# Check whether --with-libpng or --without-libpng was given.
2758if test "${with_libpng+set}" = set; then
2759 withval="$with_libpng"
2760
2761 if test "$withval" = yes; then
2762 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2763 elif test "$withval" = no; then
2764 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2765 elif test "$withval" = sys; then
2766 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2767 elif test "$withval" = builtin; then
2768 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2769 else
2770 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2771echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2772 { (exit 1); exit 1; }; }
2773 fi
2774
2775else
2776
2777 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2785
2786fi;
2787
2788 eval "$ac_cv_use_libpng"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_LIBPNG" = yes; then
2794 echo "$as_me:$LINENO: result: yes" >&5
2795echo "${ECHO_T}yes" >&6
2796 elif test "$wxUSE_LIBPNG" = no; then
2797 echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6
2799 elif test "$wxUSE_LIBPNG" = sys; then
2800 echo "$as_me:$LINENO: result: system version" >&5
2801echo "${ECHO_T}system version" >&6
2802 elif test "$wxUSE_LIBPNG" = builtin; then
2803 echo "$as_me:$LINENO: result: builtin version" >&5
2804echo "${ECHO_T}builtin version" >&6
2805 else
2806 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2807echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2808 { (exit 1); exit 1; }; }
2809 fi
2810
2811
2812 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2813echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2814 no_cache=0
2815
2816# Check whether --with-libjpeg or --without-libjpeg was given.
2817if test "${with_libjpeg+set}" = set; then
2818 withval="$with_libjpeg"
2819
2820 if test "$withval" = yes; then
2821 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2822 elif test "$withval" = no; then
2823 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2824 elif test "$withval" = sys; then
2825 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2826 elif test "$withval" = builtin; then
2827 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2828 else
2829 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2830echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2831 { (exit 1); exit 1; }; }
2832 fi
2833
2834else
2835
2836 LINE=`grep "wxUSE_LIBJPEG" ${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_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2844
2845fi;
2846
2847 eval "$ac_cv_use_libjpeg"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_LIBJPEG" = yes; then
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855 elif test "$wxUSE_LIBJPEG" = no; then
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858 elif test "$wxUSE_LIBJPEG" = sys; then
2859 echo "$as_me:$LINENO: result: system version" >&5
2860echo "${ECHO_T}system version" >&6
2861 elif test "$wxUSE_LIBJPEG" = 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-libjpeg: should be yes, no, sys, or builtin" >&5
2866echo "$as_me: error: Invalid value for --with-libjpeg: 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-libtiff" >&5
2872echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2873 no_cache=0
2874
2875# Check whether --with-libtiff or --without-libtiff was given.
2876if test "${with_libtiff+set}" = set; then
2877 withval="$with_libtiff"
2878
2879 if test "$withval" = yes; then
2880 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2881 elif test "$withval" = no; then
2882 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2883 elif test "$withval" = sys; then
2884 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2885 elif test "$withval" = builtin; then
2886 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2887 else
2888 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2889echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2890 { (exit 1); exit 1; }; }
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_LIBTIFF" ${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_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2903
2904fi;
2905
2906 eval "$ac_cv_use_libtiff"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_LIBTIFF" = yes; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6
2914 elif test "$wxUSE_LIBTIFF" = no; then
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917 elif test "$wxUSE_LIBTIFF" = sys; then
2918 echo "$as_me:$LINENO: result: system version" >&5
2919echo "${ECHO_T}system version" >&6
2920 elif test "$wxUSE_LIBTIFF" = 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-libtiff: should be yes, no, sys, or builtin" >&5
2925echo "$as_me: error: Invalid value for --with-libtiff: 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-libxpm" >&5
2931echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2932 no_cache=0
2933
2934# Check whether --with-libxpm or --without-libxpm was given.
2935if test "${with_libxpm+set}" = set; then
2936 withval="$with_libxpm"
2937
2938 if test "$withval" = yes; then
2939 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2940 elif test "$withval" = no; then
2941 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2942 elif test "$withval" = sys; then
2943 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2944 elif test "$withval" = builtin; then
2945 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2946 else
2947 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2948echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951
2952else
2953
2954 LINE=`grep "wxUSE_LIBXPM" ${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_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2962
2963fi;
2964
2965 eval "$ac_cv_use_libxpm"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_LIBXPM" = yes; then
2971 echo "$as_me:$LINENO: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
2973 elif test "$wxUSE_LIBXPM" = no; then
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
2976 elif test "$wxUSE_LIBXPM" = sys; then
2977 echo "$as_me:$LINENO: result: system version" >&5
2978echo "${ECHO_T}system version" >&6
2979 elif test "$wxUSE_LIBXPM" = 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-libxpm: should be yes, no, sys, or builtin" >&5
2984echo "$as_me: error: Invalid value for --with-libxpm: 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-libmspack" >&5
2990echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2991 no_cache=0
2992
2993# Check whether --with-libmspack or --without-libmspack was given.
2994if test "${with_libmspack+set}" = set; then
2995 withval="$with_libmspack"
2996
2997 if test "$withval" = yes; then
2998 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2999 else
3000 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3001 fi
3002
3003else
3004
3005 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3006 if test "x$LINE" != x ; then
3007 eval "DEFAULT_$LINE"
3008 else
3009 no_cache=1
3010 fi
3011
3012 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3013
3014fi;
3015
3016 eval "$ac_cv_use_libmspack"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$wxUSE_LIBMSPACK" = yes; then
3022 echo "$as_me:$LINENO: result: yes" >&5
3023echo "${ECHO_T}yes" >&6
3024 else
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027 fi
3028
3029
3030 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3031echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3032 no_cache=0
3033
3034# Check whether --with-sdl or --without-sdl was given.
3035if test "${with_sdl+set}" = set; then
3036 withval="$with_sdl"
3037
3038 if test "$withval" = yes; then
3039 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3040 else
3041 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3042 fi
3043
3044else
3045
3046 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3054
3055fi;
3056
3057 eval "$ac_cv_use_sdl"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_LIBSDL" = yes; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
3065 else
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
3068 fi
3069
3070
3071 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3072echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3073 no_cache=0
3074
3075# Check whether --with-opengl or --without-opengl was given.
3076if test "${with_opengl+set}" = set; then
3077 withval="$with_opengl"
3078
3079 if test "$withval" = yes; then
3080 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3081 else
3082 ac_cv_use_opengl='wxUSE_OPENGL=no'
3083 fi
3084
3085else
3086
3087 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3088 if test "x$LINE" != x ; then
3089 eval "DEFAULT_$LINE"
3090 else
3091 no_cache=1
3092 fi
3093
3094 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3095
3096fi;
3097
3098 eval "$ac_cv_use_opengl"
3099 if test "$no_cache" != 1; then
3100 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3101 fi
3102
3103 if test "$wxUSE_OPENGL" = yes; then
3104 echo "$as_me:$LINENO: result: yes" >&5
3105echo "${ECHO_T}yes" >&6
3106 else
3107 echo "$as_me:$LINENO: result: no" >&5
3108echo "${ECHO_T}no" >&6
3109 fi
3110
3111
3112fi
3113
3114
3115 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3116echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3117 no_cache=0
3118
3119# Check whether --with-dmalloc or --without-dmalloc was given.
3120if test "${with_dmalloc+set}" = set; then
3121 withval="$with_dmalloc"
3122
3123 if test "$withval" = yes; then
3124 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3125 else
3126 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3127 fi
3128
3129else
3130
3131 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3139
3140fi;
3141
3142 eval "$ac_cv_use_dmalloc"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_DMALLOC" = yes; then
3148 echo "$as_me:$LINENO: result: yes" >&5
3149echo "${ECHO_T}yes" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
3153 fi
3154
3155
3156 echo "$as_me:$LINENO: checking for --with-regex" >&5
3157echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3158 no_cache=0
3159
3160# Check whether --with-regex or --without-regex was given.
3161if test "${with_regex+set}" = set; then
3162 withval="$with_regex"
3163
3164 if test "$withval" = yes; then
3165 ac_cv_use_regex='wxUSE_REGEX=yes'
3166 elif test "$withval" = no; then
3167 ac_cv_use_regex='wxUSE_REGEX=no'
3168 elif test "$withval" = sys; then
3169 ac_cv_use_regex='wxUSE_REGEX=sys'
3170 elif test "$withval" = builtin; then
3171 ac_cv_use_regex='wxUSE_REGEX=builtin'
3172 else
3173 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3174echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3175 { (exit 1); exit 1; }; }
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3188
3189fi;
3190
3191 eval "$ac_cv_use_regex"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_REGEX" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 elif test "$wxUSE_REGEX" = no; then
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 elif test "$wxUSE_REGEX" = sys; then
3203 echo "$as_me:$LINENO: result: system version" >&5
3204echo "${ECHO_T}system version" >&6
3205 elif test "$wxUSE_REGEX" = builtin; then
3206 echo "$as_me:$LINENO: result: builtin version" >&5
3207echo "${ECHO_T}builtin version" >&6
3208 else
3209 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3210echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3211 { (exit 1); exit 1; }; }
3212 fi
3213
3214
3215 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3216echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3217 no_cache=0
3218
3219# Check whether --with-zlib or --without-zlib was given.
3220if test "${with_zlib+set}" = set; then
3221 withval="$with_zlib"
3222
3223 if test "$withval" = yes; then
3224 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3225 elif test "$withval" = no; then
3226 ac_cv_use_zlib='wxUSE_ZLIB=no'
3227 elif test "$withval" = sys; then
3228 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3229 elif test "$withval" = builtin; then
3230 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3231 else
3232 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3233echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3234 { (exit 1); exit 1; }; }
3235 fi
3236
3237else
3238
3239 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3240 if test "x$LINE" != x ; then
3241 eval "DEFAULT_$LINE"
3242 else
3243 no_cache=1
3244 fi
3245
3246 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3247
3248fi;
3249
3250 eval "$ac_cv_use_zlib"
3251 if test "$no_cache" != 1; then
3252 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3253 fi
3254
3255 if test "$wxUSE_ZLIB" = yes; then
3256 echo "$as_me:$LINENO: result: yes" >&5
3257echo "${ECHO_T}yes" >&6
3258 elif test "$wxUSE_ZLIB" = no; then
3259 echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261 elif test "$wxUSE_ZLIB" = sys; then
3262 echo "$as_me:$LINENO: result: system version" >&5
3263echo "${ECHO_T}system version" >&6
3264 elif test "$wxUSE_ZLIB" = builtin; then
3265 echo "$as_me:$LINENO: result: builtin version" >&5
3266echo "${ECHO_T}builtin version" >&6
3267 else
3268 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3269echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3270 { (exit 1); exit 1; }; }
3271 fi
3272
3273
3274 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3275echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3276 no_cache=0
3277
3278# Check whether --with-odbc or --without-odbc was given.
3279if test "${with_odbc+set}" = set; then
3280 withval="$with_odbc"
3281
3282 if test "$withval" = yes; then
3283 ac_cv_use_odbc='wxUSE_ODBC=yes'
3284 elif test "$withval" = no; then
3285 ac_cv_use_odbc='wxUSE_ODBC=no'
3286 elif test "$withval" = sys; then
3287 ac_cv_use_odbc='wxUSE_ODBC=sys'
3288 elif test "$withval" = builtin; then
3289 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3290 else
3291 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3292echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3293 { (exit 1); exit 1; }; }
3294 fi
3295
3296else
3297
3298 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3299 if test "x$LINE" != x ; then
3300 eval "DEFAULT_$LINE"
3301 else
3302 no_cache=1
3303 fi
3304
3305 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3306
3307fi;
3308
3309 eval "$ac_cv_use_odbc"
3310 if test "$no_cache" != 1; then
3311 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3312 fi
3313
3314 if test "$wxUSE_ODBC" = yes; then
3315 echo "$as_me:$LINENO: result: yes" >&5
3316echo "${ECHO_T}yes" >&6
3317 elif test "$wxUSE_ODBC" = no; then
3318 echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
3320 elif test "$wxUSE_ODBC" = sys; then
3321 echo "$as_me:$LINENO: result: system version" >&5
3322echo "${ECHO_T}system version" >&6
3323 elif test "$wxUSE_ODBC" = builtin; then
3324 echo "$as_me:$LINENO: result: builtin version" >&5
3325echo "${ECHO_T}builtin version" >&6
3326 else
3327 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3328echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3329 { (exit 1); exit 1; }; }
3330 fi
3331
3332
3333 echo "$as_me:$LINENO: checking for --with-expat" >&5
3334echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3335 no_cache=0
3336
3337# Check whether --with-expat or --without-expat was given.
3338if test "${with_expat+set}" = set; then
3339 withval="$with_expat"
3340
3341 if test "$withval" = yes; then
3342 ac_cv_use_expat='wxUSE_EXPAT=yes'
3343 elif test "$withval" = no; then
3344 ac_cv_use_expat='wxUSE_EXPAT=no'
3345 elif test "$withval" = sys; then
3346 ac_cv_use_expat='wxUSE_EXPAT=sys'
3347 elif test "$withval" = builtin; then
3348 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3349 else
3350 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3351echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3352 { (exit 1); exit 1; }; }
3353 fi
3354
3355else
3356
3357 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3358 if test "x$LINE" != x ; then
3359 eval "DEFAULT_$LINE"
3360 else
3361 no_cache=1
3362 fi
3363
3364 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3365
3366fi;
3367
3368 eval "$ac_cv_use_expat"
3369 if test "$no_cache" != 1; then
3370 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3371 fi
3372
3373 if test "$wxUSE_EXPAT" = yes; then
3374 echo "$as_me:$LINENO: result: yes" >&5
3375echo "${ECHO_T}yes" >&6
3376 elif test "$wxUSE_EXPAT" = no; then
3377 echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379 elif test "$wxUSE_EXPAT" = sys; then
3380 echo "$as_me:$LINENO: result: system version" >&5
3381echo "${ECHO_T}system version" >&6
3382 elif test "$wxUSE_EXPAT" = builtin; then
3383 echo "$as_me:$LINENO: result: builtin version" >&5
3384echo "${ECHO_T}builtin version" >&6
3385 else
3386 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3387echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3388 { (exit 1); exit 1; }; }
3389 fi
3390
3391
3392
3393
3394 enablestring=
3395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3396echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3397 no_cache=0
3398 # Check whether --enable-shared or --disable-shared was given.
3399if test "${enable_shared+set}" = set; then
3400 enableval="$enable_shared"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_shared='wxUSE_SHARED=yes'
3404 else
3405 ac_cv_use_shared='wxUSE_SHARED=no'
3406 fi
3407
3408else
3409
3410 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3418
3419fi;
3420
3421 eval "$ac_cv_use_shared"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_SHARED" = yes; then
3427 echo "$as_me:$LINENO: result: yes" >&5
3428echo "${ECHO_T}yes" >&6
3429 else
3430 echo "$as_me:$LINENO: result: no" >&5
3431echo "${ECHO_T}no" >&6
3432 fi
3433
3434
3435 enablestring=
3436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3437echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3438 no_cache=0
3439 # Check whether --enable-optimise or --disable-optimise was given.
3440if test "${enable_optimise+set}" = set; then
3441 enableval="$enable_optimise"
3442
3443 if test "$enableval" = yes; then
3444 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3445 else
3446 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3447 fi
3448
3449else
3450
3451 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3452 if test "x$LINE" != x ; then
3453 eval "DEFAULT_$LINE"
3454 else
3455 no_cache=1
3456 fi
3457
3458 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3459
3460fi;
3461
3462 eval "$ac_cv_use_optimise"
3463 if test "$no_cache" != 1; then
3464 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3465 fi
3466
3467 if test "$wxUSE_OPTIMISE" = yes; then
3468 echo "$as_me:$LINENO: result: yes" >&5
3469echo "${ECHO_T}yes" >&6
3470 else
3471 echo "$as_me:$LINENO: result: no" >&5
3472echo "${ECHO_T}no" >&6
3473 fi
3474
3475
3476 enablestring=
3477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3478echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3479 no_cache=0
3480 # Check whether --enable-debug or --disable-debug was given.
3481if test "${enable_debug+set}" = set; then
3482 enableval="$enable_debug"
3483
3484 if test "$enableval" = yes; then
3485 ac_cv_use_debug='wxUSE_DEBUG=yes'
3486 else
3487 ac_cv_use_debug='wxUSE_DEBUG=no'
3488 fi
3489
3490else
3491
3492 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3493 if test "x$LINE" != x ; then
3494 eval "DEFAULT_$LINE"
3495 else
3496 no_cache=1
3497 fi
3498
3499 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3500
3501fi;
3502
3503 eval "$ac_cv_use_debug"
3504 if test "$no_cache" != 1; then
3505 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3506 fi
3507
3508 if test "$wxUSE_DEBUG" = yes; then
3509 echo "$as_me:$LINENO: result: yes" >&5
3510echo "${ECHO_T}yes" >&6
3511 else
3512 echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6
3514 fi
3515
3516
3517 enablestring=
3518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3519echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3520 no_cache=0
3521 # Check whether --enable-stl or --disable-stl was given.
3522if test "${enable_stl+set}" = set; then
3523 enableval="$enable_stl"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_stl='wxUSE_STL=yes'
3527 else
3528 ac_cv_use_stl='wxUSE_STL=no'
3529 fi
3530
3531else
3532
3533 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3541
3542fi;
3543
3544 eval "$ac_cv_use_stl"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_STL" = yes; then
3550 echo "$as_me:$LINENO: result: yes" >&5
3551echo "${ECHO_T}yes" >&6
3552 else
3553 echo "$as_me:$LINENO: result: no" >&5
3554echo "${ECHO_T}no" >&6
3555 fi
3556
3557if test "$USE_OS2" = "1"; then
3558
3559 enablestring=
3560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3561echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3562 no_cache=0
3563 # Check whether --enable-omf or --disable-omf was given.
3564if test "${enable_omf+set}" = set; then
3565 enableval="$enable_omf"
3566
3567 if test "$enableval" = yes; then
3568 ac_cv_use_omf='wxUSE_OMF=yes'
3569 else
3570 ac_cv_use_omf='wxUSE_OMF=no'
3571 fi
3572
3573else
3574
3575 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3583
3584fi;
3585
3586 eval "$ac_cv_use_omf"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_OMF" = yes; then
3592 echo "$as_me:$LINENO: result: yes" >&5
3593echo "${ECHO_T}yes" >&6
3594 else
3595 echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
3597 fi
3598
3599fi
3600
3601if test "$wxUSE_DEBUG" = "yes"; then
3602 DEFAULT_wxUSE_DEBUG_FLAG=yes
3603 DEFAULT_wxUSE_DEBUG_INFO=yes
3604 BUILD=debug
3605elif test "$wxUSE_DEBUG" = "no"; then
3606 DEFAULT_wxUSE_DEBUG_FLAG=no
3607 DEFAULT_wxUSE_DEBUG_INFO=no
3608 BUILD=release
3609fi
3610
3611
3612 enablestring=
3613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3614echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3615 no_cache=0
3616 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3617if test "${enable_debug_flag+set}" = set; then
3618 enableval="$enable_debug_flag"
3619
3620 if test "$enableval" = yes; then
3621 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3622 else
3623 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3624 fi
3625
3626else
3627
3628 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3629 if test "x$LINE" != x ; then
3630 eval "DEFAULT_$LINE"
3631 else
3632 no_cache=1
3633 fi
3634
3635 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3636
3637fi;
3638
3639 eval "$ac_cv_use_debug_flag"
3640 if test "$no_cache" != 1; then
3641 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3642 fi
3643
3644 if test "$wxUSE_DEBUG_FLAG" = yes; then
3645 echo "$as_me:$LINENO: result: yes" >&5
3646echo "${ECHO_T}yes" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649echo "${ECHO_T}no" >&6
3650 fi
3651
3652
3653 enablestring=
3654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3655echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3656 no_cache=0
3657 # Check whether --enable-debug_info or --disable-debug_info was given.
3658if test "${enable_debug_info+set}" = set; then
3659 enableval="$enable_debug_info"
3660
3661 if test "$enableval" = yes; then
3662 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3663 else
3664 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3665 fi
3666
3667else
3668
3669 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3670 if test "x$LINE" != x ; then
3671 eval "DEFAULT_$LINE"
3672 else
3673 no_cache=1
3674 fi
3675
3676 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3677
3678fi;
3679
3680 eval "$ac_cv_use_debug_info"
3681 if test "$no_cache" != 1; then
3682 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3683 fi
3684
3685 if test "$wxUSE_DEBUG_INFO" = yes; then
3686 echo "$as_me:$LINENO: result: yes" >&5
3687echo "${ECHO_T}yes" >&6
3688 else
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691 fi
3692
3693
3694 enablestring=
3695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3696echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3697 no_cache=0
3698 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3699if test "${enable_debug_gdb+set}" = set; then
3700 enableval="$enable_debug_gdb"
3701
3702 if test "$enableval" = yes; then
3703 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3704 else
3705 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3706 fi
3707
3708else
3709
3710 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3711 if test "x$LINE" != x ; then
3712 eval "DEFAULT_$LINE"
3713 else
3714 no_cache=1
3715 fi
3716
3717 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3718
3719fi;
3720
3721 eval "$ac_cv_use_debug_gdb"
3722 if test "$no_cache" != 1; then
3723 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3724 fi
3725
3726 if test "$wxUSE_DEBUG_GDB" = yes; then
3727 echo "$as_me:$LINENO: result: yes" >&5
3728echo "${ECHO_T}yes" >&6
3729 else
3730 echo "$as_me:$LINENO: result: no" >&5
3731echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 enablestring=
3736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3737echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3738 no_cache=0
3739 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3740if test "${enable_debug_cntxt+set}" = set; then
3741 enableval="$enable_debug_cntxt"
3742
3743 if test "$enableval" = yes; then
3744 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3745 else
3746 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3747 fi
3748
3749else
3750
3751 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3759
3760fi;
3761
3762 eval "$ac_cv_use_debug_cntxt"
3763 if test "$no_cache" != 1; then
3764 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3765 fi
3766
3767 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3768 echo "$as_me:$LINENO: result: yes" >&5
3769echo "${ECHO_T}yes" >&6
3770 else
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
3773 fi
3774
3775
3776 enablestring=
3777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3778echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3779 no_cache=0
3780 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3781if test "${enable_mem_tracing+set}" = set; then
3782 enableval="$enable_mem_tracing"
3783
3784 if test "$enableval" = yes; then
3785 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3786 else
3787 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3788 fi
3789
3790else
3791
3792 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3793 if test "x$LINE" != x ; then
3794 eval "DEFAULT_$LINE"
3795 else
3796 no_cache=1
3797 fi
3798
3799 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3800
3801fi;
3802
3803 eval "$ac_cv_use_mem_tracing"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_MEM_TRACING" = yes; then
3809 echo "$as_me:$LINENO: result: yes" >&5
3810echo "${ECHO_T}yes" >&6
3811 else
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814 fi
3815
3816
3817 enablestring=
3818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3819echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3820 no_cache=0
3821 # Check whether --enable-profile or --disable-profile was given.
3822if test "${enable_profile+set}" = set; then
3823 enableval="$enable_profile"
3824
3825 if test "$enableval" = yes; then
3826 ac_cv_use_profile='wxUSE_PROFILE=yes'
3827 else
3828 ac_cv_use_profile='wxUSE_PROFILE=no'
3829 fi
3830
3831else
3832
3833 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3841
3842fi;
3843
3844 eval "$ac_cv_use_profile"
3845 if test "$no_cache" != 1; then
3846 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3847 fi
3848
3849 if test "$wxUSE_PROFILE" = yes; then
3850 echo "$as_me:$LINENO: result: yes" >&5
3851echo "${ECHO_T}yes" >&6
3852 else
3853 echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
3855 fi
3856
3857
3858 enablestring=
3859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3860echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3861 no_cache=0
3862 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3863if test "${enable_no_rtti+set}" = set; then
3864 enableval="$enable_no_rtti"
3865
3866 if test "$enableval" = yes; then
3867 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3868 else
3869 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3870 fi
3871
3872else
3873
3874 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3875 if test "x$LINE" != x ; then
3876 eval "DEFAULT_$LINE"
3877 else
3878 no_cache=1
3879 fi
3880
3881 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3882
3883fi;
3884
3885 eval "$ac_cv_use_no_rtti"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_NO_RTTI" = yes; then
3891 echo "$as_me:$LINENO: result: yes" >&5
3892echo "${ECHO_T}yes" >&6
3893 else
3894 echo "$as_me:$LINENO: result: no" >&5
3895echo "${ECHO_T}no" >&6
3896 fi
3897
3898
3899 enablestring=
3900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3901echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3902 no_cache=0
3903 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3904if test "${enable_no_exceptions+set}" = set; then
3905 enableval="$enable_no_exceptions"
3906
3907 if test "$enableval" = yes; then
3908 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3909 else
3910 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3911 fi
3912
3913else
3914
3915 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3916 if test "x$LINE" != x ; then
3917 eval "DEFAULT_$LINE"
3918 else
3919 no_cache=1
3920 fi
3921
3922 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3923
3924fi;
3925
3926 eval "$ac_cv_use_no_exceptions"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3932 echo "$as_me:$LINENO: result: yes" >&5
3933echo "${ECHO_T}yes" >&6
3934 else
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937 fi
3938
3939
3940 enablestring=
3941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3942echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3943 no_cache=0
3944 # Check whether --enable-permissive or --disable-permissive was given.
3945if test "${enable_permissive+set}" = set; then
3946 enableval="$enable_permissive"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3950 else
3951 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3952 fi
3953
3954else
3955
3956 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3964
3965fi;
3966
3967 eval "$ac_cv_use_permissive"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_PERMISSIVE" = yes; then
3973 echo "$as_me:$LINENO: result: yes" >&5
3974echo "${ECHO_T}yes" >&6
3975 else
3976 echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978 fi
3979
3980
3981 enablestring=
3982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3983echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3984 no_cache=0
3985 # Check whether --enable-no_deps or --disable-no_deps was given.
3986if test "${enable_no_deps+set}" = set; then
3987 enableval="$enable_no_deps"
3988
3989 if test "$enableval" = yes; then
3990 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3991 else
3992 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3993 fi
3994
3995else
3996
3997 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3998 if test "x$LINE" != x ; then
3999 eval "DEFAULT_$LINE"
4000 else
4001 no_cache=1
4002 fi
4003
4004 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4005
4006fi;
4007
4008 eval "$ac_cv_use_no_deps"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_NO_DEPS" = yes; then
4014 echo "$as_me:$LINENO: result: yes" >&5
4015echo "${ECHO_T}yes" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6
4019 fi
4020
4021
4022
4023 enablestring=
4024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4025echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4026 no_cache=0
4027 # Check whether --enable-compat22 or --disable-compat22 was given.
4028if test "${enable_compat22+set}" = set; then
4029 enableval="$enable_compat22"
4030
4031 if test "$enableval" = yes; then
4032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4033 else
4034 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4035 fi
4036
4037else
4038
4039 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4047
4048fi;
4049
4050 eval "$ac_cv_use_compat22"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
4058 else
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061 fi
4062
4063
4064 enablestring=disable
4065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4066echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4067 no_cache=0
4068 # Check whether --enable-compat24 or --disable-compat24 was given.
4069if test "${enable_compat24+set}" = set; then
4070 enableval="$enable_compat24"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4074 else
4075 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4076 fi
4077
4078else
4079
4080 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4088
4089fi;
4090
4091 eval "$ac_cv_use_compat24"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4097 echo "$as_me:$LINENO: result: yes" >&5
4098echo "${ECHO_T}yes" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102 fi
4103
4104
4105# Check whether --enable-rpath or --disable-rpath was given.
4106if test "${enable_rpath+set}" = set; then
4107 enableval="$enable_rpath"
4108 wxRPATH_DIR="$enableval"
4109fi;
4110
ac1cb8d3 4111if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4112 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4113fi
4114
4115
4116
4117
4118 enablestring=
4119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4120echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4121 no_cache=0
4122 # Check whether --enable-intl or --disable-intl was given.
4123if test "${enable_intl+set}" = set; then
4124 enableval="$enable_intl"
4125
4126 if test "$enableval" = yes; then
4127 ac_cv_use_intl='wxUSE_INTL=yes'
4128 else
4129 ac_cv_use_intl='wxUSE_INTL=no'
4130 fi
4131
4132else
4133
4134 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4135 if test "x$LINE" != x ; then
4136 eval "DEFAULT_$LINE"
4137 else
4138 no_cache=1
4139 fi
4140
4141 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4142
4143fi;
4144
4145 eval "$ac_cv_use_intl"
4146 if test "$no_cache" != 1; then
4147 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4148 fi
4149
4150 if test "$wxUSE_INTL" = yes; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152echo "${ECHO_T}yes" >&6
4153 else
4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
4156 fi
4157
4158
4159 enablestring=
4160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4161echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4162 no_cache=0
4163 # Check whether --enable-config or --disable-config was given.
4164if test "${enable_config+set}" = set; then
4165 enableval="$enable_config"
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_config='wxUSE_CONFIG=yes'
4169 else
4170 ac_cv_use_config='wxUSE_CONFIG=no'
4171 fi
4172
4173else
4174
4175 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4183
4184fi;
4185
4186 eval "$ac_cv_use_config"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_CONFIG" = yes; then
4192 echo "$as_me:$LINENO: result: yes" >&5
4193echo "${ECHO_T}yes" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197 fi
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-protocols or --disable-protocols was given.
4206if test "${enable_protocols+set}" = set; then
4207 enableval="$enable_protocols"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4211 else
4212 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4225
4226fi;
4227
4228 eval "$ac_cv_use_protocols"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_PROTOCOL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-ftp or --disable-ftp was given.
4247if test "${enable_ftp+set}" = set; then
4248 enableval="$enable_ftp"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4252 else
4253 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4266
4267fi;
4268
4269 eval "$ac_cv_use_ftp"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-http or --disable-http was given.
4288if test "${enable_http+set}" = set; then
4289 enableval="$enable_http"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4293 else
4294 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4307
4308fi;
4309
4310 eval "$ac_cv_use_http"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-fileproto or --disable-fileproto was given.
4329if test "${enable_fileproto+set}" = set; then
4330 enableval="$enable_fileproto"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4334 else
4335 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4348
4349fi;
4350
4351 eval "$ac_cv_use_fileproto"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-sockets or --disable-sockets was given.
4370if test "${enable_sockets+set}" = set; then
4371 enableval="$enable_sockets"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4375 else
4376 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4389
4390fi;
4391
4392 eval "$ac_cv_use_sockets"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_SOCKETS" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-ole or --disable-ole was given.
4411if test "${enable_ole+set}" = set; then
4412 enableval="$enable_ole"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_ole='wxUSE_OLE=yes'
4416 else
4417 ac_cv_use_ole='wxUSE_OLE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4430
4431fi;
4432
4433 eval "$ac_cv_use_ole"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_OLE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-dataobj or --disable-dataobj was given.
4452if test "${enable_dataobj+set}" = set; then
4453 enableval="$enable_dataobj"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4457 else
4458 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4471
4472fi;
4473
4474 eval "$ac_cv_use_dataobj"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_DATAOBJ" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ipc or --disable-ipc was given.
4494if test "${enable_ipc+set}" = set; then
4495 enableval="$enable_ipc"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ipc='wxUSE_IPC=yes'
4499 else
4500 ac_cv_use_ipc='wxUSE_IPC=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4513
4514fi;
4515
4516 eval "$ac_cv_use_ipc"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_IPC" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530
4531 enablestring=
4532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4533echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4534 no_cache=0
4535 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4536if test "${enable_apple_ieee+set}" = set; then
4537 enableval="$enable_apple_ieee"
4538
4539 if test "$enableval" = yes; then
4540 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4541 else
4542 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4543 fi
4544
4545else
4546
4547 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4555
4556fi;
4557
4558 eval "$ac_cv_use_apple_ieee"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_APPLE_IEEE" = yes; then
4564 echo "$as_me:$LINENO: result: yes" >&5
4565echo "${ECHO_T}yes" >&6
4566 else
4567 echo "$as_me:$LINENO: result: no" >&5
4568echo "${ECHO_T}no" >&6
4569 fi
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4577if test "${enable_catch_segvs+set}" = set; then
4578 enableval="$enable_catch_segvs"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4582 else
4583 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4596
4597fi;
4598
4599 eval "$ac_cv_use_catch_segvs"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-cmdline or --disable-cmdline was given.
4618if test "${enable_cmdline+set}" = set; then
4619 enableval="$enable_cmdline"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4623 else
4624 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4637
4638fi;
4639
4640 eval "$ac_cv_use_cmdline"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-datetime or --disable-datetime was given.
4659if test "${enable_datetime+set}" = set; then
4660 enableval="$enable_datetime"
4661
4662 if test "$enableval" = yes; then
4663 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4664 else
4665 ac_cv_use_datetime='wxUSE_DATETIME=no'
4666 fi
4667
4668else
4669
4670 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4678
4679fi;
4680
4681 eval "$ac_cv_use_datetime"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4684 fi
4685
4686 if test "$wxUSE_DATETIME" = yes; then
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
4695 enablestring=
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4698 no_cache=0
4699 # Check whether --enable-dialupman or --disable-dialupman was given.
4700if test "${enable_dialupman+set}" = set; then
4701 enableval="$enable_dialupman"
4702
4703 if test "$enableval" = yes; then
4704 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4705 else
4706 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4707 fi
4708
4709else
4710
4711 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
4718 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4719
4720fi;
4721
4722 eval "$ac_cv_use_dialupman"
4723 if test "$no_cache" != 1; then
4724 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4725 fi
4726
4727 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
4736 enablestring=
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4739 no_cache=0
4740 # Check whether --enable-dynlib or --disable-dynlib was given.
4741if test "${enable_dynlib+set}" = set; then
4742 enableval="$enable_dynlib"
4743
4744 if test "$enableval" = yes; then
4745 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4746 else
4747 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4748 fi
4749
4750else
4751
4752 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
4759 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4760
4761fi;
4762
4763 eval "$ac_cv_use_dynlib"
4764 if test "$no_cache" != 1; then
4765 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4766 fi
4767
4768 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4782if test "${enable_dynamicloader+set}" = set; then
4783 enableval="$enable_dynamicloader"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4787 else
4788 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4801
4802fi;
4803
4804 eval "$ac_cv_use_dynamicloader"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-exceptions or --disable-exceptions was given.
4823if test "${enable_exceptions+set}" = set; then
4824 enableval="$enable_exceptions"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4828 else
4829 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4842
4843fi;
4844
4845 eval "$ac_cv_use_exceptions"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_EXCEPTIONS" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-ffile or --disable-ffile was given.
4864if test "${enable_ffile+set}" = set; then
4865 enableval="$enable_ffile"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_ffile='wxUSE_FFILE=yes'
4869 else
4870 ac_cv_use_ffile='wxUSE_FFILE=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4883
4884fi;
4885
4886 eval "$ac_cv_use_ffile"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_FFILE" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-file or --disable-file was given.
4905if test "${enable_file+set}" = set; then
4906 enableval="$enable_file"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_file='wxUSE_FILE=yes'
4910 else
4911 ac_cv_use_file='wxUSE_FILE=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4924
4925fi;
4926
4927 eval "$ac_cv_use_file"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_FILE" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-filesystem or --disable-filesystem was given.
4946if test "${enable_filesystem+set}" = set; then
4947 enableval="$enable_filesystem"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4951 else
4952 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4965
4966fi;
4967
4968 eval "$ac_cv_use_filesystem"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_FILESYSTEM" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-fontmap or --disable-fontmap was given.
4987if test "${enable_fontmap+set}" = set; then
4988 enableval="$enable_fontmap"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4992 else
4993 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5006
5007fi;
5008
5009 eval "$ac_cv_use_fontmap"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_FONTMAP" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5028if test "${enable_fs_inet+set}" = set; then
5029 enableval="$enable_fs_inet"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5033 else
5034 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5047
5048fi;
5049
5050 eval "$ac_cv_use_fs_inet"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_FS_INET" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5069if test "${enable_fs_zip+set}" = set; then
5070 enableval="$enable_fs_zip"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5074 else
5075 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5088
5089fi;
5090
5091 eval "$ac_cv_use_fs_zip"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FS_ZIP" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-geometry or --disable-geometry was given.
5110if test "${enable_geometry+set}" = set; then
5111 enableval="$enable_geometry"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5115 else
5116 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5129
5130fi;
5131
5132 eval "$ac_cv_use_geometry"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_GEOMETRY" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-log or --disable-log was given.
5151if test "${enable_log+set}" = set; then
5152 enableval="$enable_log"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_log='wxUSE_LOG=yes'
5156 else
5157 ac_cv_use_log='wxUSE_LOG=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5170
5171fi;
5172
5173 eval "$ac_cv_use_log"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_LOG" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-longlong or --disable-longlong was given.
5192if test "${enable_longlong+set}" = set; then
5193 enableval="$enable_longlong"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5197 else
5198 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5211
5212fi;
5213
5214 eval "$ac_cv_use_longlong"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_LONGLONG" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-mimetype or --disable-mimetype was given.
5233if test "${enable_mimetype+set}" = set; then
5234 enableval="$enable_mimetype"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5238 else
5239 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5252
5253fi;
5254
5255 eval "$ac_cv_use_mimetype"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_MIMETYPE" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-mslu or --disable-mslu was given.
5274if test "${enable_mslu+set}" = set; then
5275 enableval="$enable_mslu"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5279 else
5280 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5293
5294fi;
5295
5296 eval "$ac_cv_use_mslu"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_UNICODE_MSLU" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-snglinst or --disable-snglinst was given.
5315if test "${enable_snglinst+set}" = set; then
5316 enableval="$enable_snglinst"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5320 else
5321 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5334
5335fi;
5336
5337 eval "$ac_cv_use_snglinst"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-streams or --disable-streams was given.
5356if test "${enable_streams+set}" = set; then
5357 enableval="$enable_streams"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_streams='wxUSE_STREAMS=yes'
5361 else
5362 ac_cv_use_streams='wxUSE_STREAMS=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5375
5376fi;
5377
5378 eval "$ac_cv_use_streams"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_STREAMS" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5397if test "${enable_std_iostreams+set}" = set; then
5398 enableval="$enable_std_iostreams"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5402 else
5403 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5416
5417fi;
5418
5419 eval "$ac_cv_use_std_iostreams"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_STD_IOSTREAM" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5438if test "${enable_stopwatch+set}" = set; then
5439 enableval="$enable_stopwatch"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5443 else
5444 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5457
5458fi;
5459
5460 eval "$ac_cv_use_stopwatch"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_STOPWATCH" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-system_options or --disable-system_options was given.
5479if test "${enable_system_options+set}" = set; then
5480 enableval="$enable_system_options"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5484 else
5485 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5498
5499fi;
5500
5501 eval "$ac_cv_use_system_options"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-textbuf or --disable-textbuf was given.
5520if test "${enable_textbuf+set}" = set; then
5521 enableval="$enable_textbuf"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5525 else
5526 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5539
5540fi;
5541
5542 eval "$ac_cv_use_textbuf"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_TEXTBUFFER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5559 no_cache=0
5560 # Check whether --enable-textfile or --disable-textfile was given.
5561if test "${enable_textfile+set}" = set; then
5562 enableval="$enable_textfile"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5566 else
5567 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5568 fi
5569
5570else
5571
5572 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5580
5581fi;
5582
5583 eval "$ac_cv_use_textfile"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_TEXTFILE" = yes; then
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-timer or --disable-timer was given.
5602if test "${enable_timer+set}" = set; then
5603 enableval="$enable_timer"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_timer='wxUSE_TIMER=yes'
5607 else
5608 ac_cv_use_timer='wxUSE_TIMER=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5621
5622fi;
5623
5624 eval "$ac_cv_use_timer"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_TIMER" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
5638 enablestring=
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5641 no_cache=0
5642 # Check whether --enable-unicode or --disable-unicode was given.
5643if test "${enable_unicode+set}" = set; then
5644 enableval="$enable_unicode"
5645
5646 if test "$enableval" = yes; then
5647 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5648 else
5649 ac_cv_use_unicode='wxUSE_UNICODE=no'
5650 fi
5651
5652else
5653
5654 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
5661 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5662
5663fi;
5664
5665 eval "$ac_cv_use_unicode"
5666 if test "$no_cache" != 1; then
5667 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5668 fi
5669
5670 if test "$wxUSE_UNICODE" = yes; then
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-sound or --disable-sound was given.
5684if test "${enable_sound+set}" = set; then
5685 enableval="$enable_sound"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_sound='wxUSE_SOUND=yes'
5689 else
5690 ac_cv_use_sound='wxUSE_SOUND=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5703
5704fi;
5705
5706 eval "$ac_cv_use_sound"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_SOUND" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5725if test "${enable_wxprintfv+set}" = set; then
5726 enableval="$enable_wxprintfv"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5730 else
5731 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5744
5745fi;
5746
5747 eval "$ac_cv_use_wxprintfv"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-zipstream or --disable-zipstream was given.
5766if test "${enable_zipstream+set}" = set; then
5767 enableval="$enable_zipstream"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5771 else
5772 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5785
5786fi;
5787
5788 eval "$ac_cv_use_zipstream"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_ZIPSTREAM" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
a848cd7e
SC
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-url or --disable-url was given.
5808if test "${enable_url+set}" = set; then
5809 enableval="$enable_url"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_url='wxUSE_URL=yes'
5813 else
5814 ac_cv_use_url='wxUSE_URL=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5827
5828fi;
5829
5830 eval "$ac_cv_use_url"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_URL" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-protocol or --disable-protocol was given.
5849if test "${enable_protocol+set}" = set; then
5850 enableval="$enable_protocol"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5854 else
5855 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5868
5869fi;
5870
5871 eval "$ac_cv_use_protocol"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_PROTOCOL" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5890if test "${enable_protocol_http+set}" = set; then
5891 enableval="$enable_protocol_http"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5895 else
5896 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5909
5910fi;
5911
5912 eval "$ac_cv_use_protocol_http"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5931if test "${enable_protocol_ftp+set}" = set; then
5932 enableval="$enable_protocol_ftp"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5936 else
5937 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5950
5951fi;
5952
5953 eval "$ac_cv_use_protocol_ftp"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5970 no_cache=0
5971 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5972if test "${enable_protocol_file+set}" = set; then
5973 enableval="$enable_protocol_file"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5977 else
5978 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5991
5992fi;
5993
5994 eval "$ac_cv_use_protocol_file"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
6008
6009
6010
6011 enablestring=
6012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6013echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6014 no_cache=0
6015 # Check whether --enable-threads or --disable-threads was given.
6016if test "${enable_threads+set}" = set; then
6017 enableval="$enable_threads"
6018
6019 if test "$enableval" = yes; then
6020 ac_cv_use_threads='wxUSE_THREADS=yes'
6021 else
6022 ac_cv_use_threads='wxUSE_THREADS=no'
6023 fi
6024
6025else
6026
6027 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6028 if test "x$LINE" != x ; then
6029 eval "DEFAULT_$LINE"
6030 else
6031 no_cache=1
6032 fi
6033
6034 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6035
6036fi;
6037
6038 eval "$ac_cv_use_threads"
6039 if test "$no_cache" != 1; then
6040 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6041 fi
6042
6043 if test "$wxUSE_THREADS" = yes; then
6044 echo "$as_me:$LINENO: result: yes" >&5
6045echo "${ECHO_T}yes" >&6
6046 else
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
6049 fi
6050
6051
6052if test "$wxUSE_GUI" = "yes"; then
6053
6054
6055
6056 enablestring=
6057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6058echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6059 no_cache=0
6060 # Check whether --enable-docview or --disable-docview was given.
6061if test "${enable_docview+set}" = set; then
6062 enableval="$enable_docview"
6063
6064 if test "$enableval" = yes; then
6065 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6066 else
6067 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6068 fi
6069
6070else
6071
6072 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6073 if test "x$LINE" != x ; then
6074 eval "DEFAULT_$LINE"
6075 else
6076 no_cache=1
6077 fi
6078
6079 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6080
6081fi;
6082
6083 eval "$ac_cv_use_docview"
6084 if test "$no_cache" != 1; then
6085 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6086 fi
6087
6088 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6089 echo "$as_me:$LINENO: result: yes" >&5
6090echo "${ECHO_T}yes" >&6
6091 else
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
6094 fi
6095
6096
6097 enablestring=
6098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6099echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6100 no_cache=0
6101 # Check whether --enable-help or --disable-help was given.
6102if test "${enable_help+set}" = set; then
6103 enableval="$enable_help"
6104
6105 if test "$enableval" = yes; then
6106 ac_cv_use_help='wxUSE_HELP=yes'
6107 else
6108 ac_cv_use_help='wxUSE_HELP=no'
6109 fi
6110
6111else
6112
6113 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6114 if test "x$LINE" != x ; then
6115 eval "DEFAULT_$LINE"
6116 else
6117 no_cache=1
6118 fi
6119
6120 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6121
6122fi;
6123
6124 eval "$ac_cv_use_help"
6125 if test "$no_cache" != 1; then
6126 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6127 fi
6128
6129 if test "$wxUSE_HELP" = yes; then
6130 echo "$as_me:$LINENO: result: yes" >&5
6131echo "${ECHO_T}yes" >&6
6132 else
6133 echo "$as_me:$LINENO: result: no" >&5
6134echo "${ECHO_T}no" >&6
6135 fi
6136
6137
6138 enablestring=
6139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6140echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6141 no_cache=0
6142 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6143if test "${enable_mshtmlhelp+set}" = set; then
6144 enableval="$enable_mshtmlhelp"
6145
6146 if test "$enableval" = yes; then
6147 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6148 else
6149 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6150 fi
6151
6152else
6153
6154 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6162
6163fi;
6164
6165 eval "$ac_cv_use_mshtmlhelp"
6166 if test "$no_cache" != 1; then
6167 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6168 fi
6169
6170 if test "$wxUSE_MS_HTML_HELP" = yes; then
6171 echo "$as_me:$LINENO: result: yes" >&5
6172echo "${ECHO_T}yes" >&6
6173 else
6174 echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176 fi
6177
6178
6179 enablestring=
6180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6181echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6182 no_cache=0
6183 # Check whether --enable-html or --disable-html was given.
6184if test "${enable_html+set}" = set; then
6185 enableval="$enable_html"
6186
6187 if test "$enableval" = yes; then
6188 ac_cv_use_html='wxUSE_HTML=yes'
6189 else
6190 ac_cv_use_html='wxUSE_HTML=no'
6191 fi
6192
6193else
6194
6195 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6196 if test "x$LINE" != x ; then
6197 eval "DEFAULT_$LINE"
6198 else
6199 no_cache=1
6200 fi
6201
6202 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6203
6204fi;
6205
6206 eval "$ac_cv_use_html"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_HTML" = yes; then
6212 echo "$as_me:$LINENO: result: yes" >&5
6213echo "${ECHO_T}yes" >&6
6214 else
6215 echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6
6217 fi
6218
6219
6220 enablestring=
6221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6222echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6223 no_cache=0
6224 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6225if test "${enable_htmlhelp+set}" = set; then
6226 enableval="$enable_htmlhelp"
6227
6228 if test "$enableval" = yes; then
6229 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6230 else
6231 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6232 fi
6233
6234else
6235
6236 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6244
6245fi;
6246
6247 eval "$ac_cv_use_htmlhelp"
6248 if test "$no_cache" != 1; then
6249 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6250 fi
6251
6252 if test "$wxUSE_WXHTML_HELP" = yes; then
6253 echo "$as_me:$LINENO: result: yes" >&5
6254echo "${ECHO_T}yes" >&6
6255 else
6256 echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6
6258 fi
6259
6260
6261 enablestring=
6262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6263echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6264 no_cache=0
6265 # Check whether --enable-constraints or --disable-constraints was given.
6266if test "${enable_constraints+set}" = set; then
6267 enableval="$enable_constraints"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6271 else
6272 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6273 fi
6274
6275else
6276
6277 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6285
6286fi;
6287
6288 eval "$ac_cv_use_constraints"
6289 if test "$no_cache" != 1; then
6290 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6291 fi
6292
6293 if test "$wxUSE_CONSTRAINTS" = yes; then
6294 echo "$as_me:$LINENO: result: yes" >&5
6295echo "${ECHO_T}yes" >&6
6296 else
6297 echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
6299 fi
6300
6301
6302 enablestring=
6303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6304echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6305 no_cache=0
6306 # Check whether --enable-printarch or --disable-printarch was given.
6307if test "${enable_printarch+set}" = set; then
6308 enableval="$enable_printarch"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6312 else
6313 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6314 fi
6315
6316else
6317
6318 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6326
6327fi;
6328
6329 eval "$ac_cv_use_printarch"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6335 echo "$as_me:$LINENO: result: yes" >&5
6336echo "${ECHO_T}yes" >&6
6337 else
6338 echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6
6340 fi
6341
6342
6343 enablestring=
6344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6345echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6346 no_cache=0
6347 # Check whether --enable-mdi or --disable-mdi was given.
6348if test "${enable_mdi+set}" = set; then
6349 enableval="$enable_mdi"
6350
6351 if test "$enableval" = yes; then
8a7b1113 6352 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6353 else
8a7b1113 6354 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6355 fi
6356
6357else
6358
8a7b1113 6359 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
8a7b1113 6366 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6367
6368fi;
6369
6370 eval "$ac_cv_use_mdi"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6373 fi
6374
8a7b1113
VZ
6375 if test "$wxUSE_MDI" = yes; then
6376 echo "$as_me:$LINENO: result: yes" >&5
6377echo "${ECHO_T}yes" >&6
6378 else
6379 echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381 fi
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6389if test "${enable_mdidoc+set}" = set; then
6390 enableval="$enable_mdidoc"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_mdidoc"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6414 fi
6415
a848cd7e
SC
6416 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-loggui or --disable-loggui was given.
6430if test "${enable_loggui+set}" = set; then
6431 enableval="$enable_loggui"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6435 else
6436 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6449
6450fi;
6451
6452 eval "$ac_cv_use_loggui"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_LOGGUI" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-logwin or --disable-logwin was given.
6471if test "${enable_logwin+set}" = set; then
6472 enableval="$enable_logwin"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6476 else
6477 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6490
6491fi;
6492
6493 eval "$ac_cv_use_logwin"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_LOGWINDOW" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-logdialog or --disable-logdialog was given.
6512if test "${enable_logdialog+set}" = set; then
6513 enableval="$enable_logdialog"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6517 else
6518 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6531
6532fi;
6533
6534 eval "$ac_cv_use_logdialog"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_LOGDIALOG" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
646b6ec1
VS
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-webkit or --disable-webkit was given.
6553if test "${enable_webkit+set}" = set; then
6554 enableval="$enable_webkit"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6558 else
6559 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6572
6573fi;
6574
6575 eval "$ac_cv_use_webkit"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WEBKIT" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
a848cd7e
SC
6589
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-postscript or --disable-postscript was given.
6595if test "${enable_postscript+set}" = set; then
6596 enableval="$enable_postscript"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6600 else
6601 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6614
6615fi;
6616
6617 eval "$ac_cv_use_postscript"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_POSTSCRIPT" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
6631
6632
6633
6634 enablestring=
6635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6636echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6637 no_cache=0
6638 # Check whether --enable-prologio or --disable-prologio was given.
6639if test "${enable_prologio+set}" = set; then
6640 enableval="$enable_prologio"
6641
6642 if test "$enableval" = yes; then
6643 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6644 else
6645 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6646 fi
6647
6648else
6649
6650 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6651 if test "x$LINE" != x ; then
6652 eval "DEFAULT_$LINE"
6653 else
6654 no_cache=1
6655 fi
6656
6657 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6658
6659fi;
6660
6661 eval "$ac_cv_use_prologio"
6662 if test "$no_cache" != 1; then
6663 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6664 fi
6665
6666 if test "$wxUSE_PROLOGIO" = yes; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668echo "${ECHO_T}yes" >&6
6669 else
6670 echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6
6672 fi
6673
6674
6675 enablestring=
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6678 no_cache=0
6679 # Check whether --enable-resources or --disable-resources was given.
6680if test "${enable_resources+set}" = set; then
6681 enableval="$enable_resources"
6682
6683 if test "$enableval" = yes; then
6684 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6685 else
6686 ac_cv_use_resources='wxUSE_RESOURCES=no'
6687 fi
6688
6689else
6690
6691 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6699
6700fi;
6701
6702 eval "$ac_cv_use_resources"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_RESOURCES" = yes; then
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
6710 else
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
6713 fi
6714
6715
6716
6717
6718 enablestring=
6719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6720echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6721 no_cache=0
6722 # Check whether --enable-clipboard or --disable-clipboard was given.
6723if test "${enable_clipboard+set}" = set; then
6724 enableval="$enable_clipboard"
6725
6726 if test "$enableval" = yes; then
6727 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6728 else
6729 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6730 fi
6731
6732else
6733
6734 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6735 if test "x$LINE" != x ; then
6736 eval "DEFAULT_$LINE"
6737 else
6738 no_cache=1
6739 fi
6740
6741 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6742
6743fi;
6744
6745 eval "$ac_cv_use_clipboard"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_CLIPBOARD" = yes; then
6751 echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
6756 fi
6757
6758
6759 enablestring=
6760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6761echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6762 no_cache=0
6763 # Check whether --enable-dnd or --disable-dnd was given.
6764if test "${enable_dnd+set}" = set; then
6765 enableval="$enable_dnd"
6766
6767 if test "$enableval" = yes; then
6768 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6769 else
6770 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6771 fi
6772
6773else
6774
6775 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6776 if test "x$LINE" != x ; then
6777 eval "DEFAULT_$LINE"
6778 else
6779 no_cache=1
6780 fi
6781
6782 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6783
6784fi;
6785
6786 eval "$ac_cv_use_dnd"
6787 if test "$no_cache" != 1; then
6788 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6789 fi
6790
6791 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6792 echo "$as_me:$LINENO: result: yes" >&5
6793echo "${ECHO_T}yes" >&6
6794 else
6795 echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6
6797 fi
6798
6799
6800 enablestring=
6801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6802echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6803 no_cache=0
6804 # Check whether --enable-metafile or --disable-metafile was given.
6805if test "${enable_metafile+set}" = set; then
6806 enableval="$enable_metafile"
6807
6808 if test "$enableval" = yes; then
6809 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6810 else
6811 ac_cv_use_metafile='wxUSE_METAFILE=no'
6812 fi
6813
6814else
6815
6816 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6824
6825fi;
6826
6827 eval "$ac_cv_use_metafile"
6828 if test "$no_cache" != 1; then
6829 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6830 fi
6831
6832 if test "$wxUSE_METAFILE" = yes; then
6833 echo "$as_me:$LINENO: result: yes" >&5
6834echo "${ECHO_T}yes" >&6
6835 else
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
6838 fi
6839
6840
6841
6842
6843
6844 enablestring=
6845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6846echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6847 no_cache=0
6848 # Check whether --enable-controls or --disable-controls was given.
6849if test "${enable_controls+set}" = set; then
6850 enableval="$enable_controls"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6854 else
6855 ac_cv_use_controls='wxUSE_CONTROLS=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6868
6869fi;
6870
6871 eval "$ac_cv_use_controls"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_CONTROLS" = yes; then
6877 echo "$as_me:$LINENO: result: yes" >&5
6878echo "${ECHO_T}yes" >&6
6879 else
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
6882 fi
6883
6884
6885if test "$wxUSE_CONTROLS" = "yes"; then
6886 DEFAULT_wxUSE_ACCEL=yes
6887 DEFAULT_wxUSE_BMPBUTTON=yes
6888 DEFAULT_wxUSE_BUTTON=yes
6889 DEFAULT_wxUSE_CALCTRL=no
6890 DEFAULT_wxUSE_CARET=yes
6891 DEFAULT_wxUSE_COMBOBOX=yes
6892 DEFAULT_wxUSE_CHECKBOX=yes
6893 DEFAULT_wxUSE_CHECKLISTBOX=yes
6894 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6895 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6896 DEFAULT_wxUSE_GAUGE=yes
6897 DEFAULT_wxUSE_GRID=yes
6898 DEFAULT_wxUSE_IMAGLIST=yes
6899 DEFAULT_wxUSE_LISTBOOK=yes
6900 DEFAULT_wxUSE_LISTBOX=yes
6901 DEFAULT_wxUSE_LISTCTRL=yes
6902 DEFAULT_wxUSE_NOTEBOOK=yes
6903 DEFAULT_wxUSE_RADIOBOX=yes
6904 DEFAULT_wxUSE_RADIOBTN=yes
6905 DEFAULT_wxUSE_SASH=yes
6906 DEFAULT_wxUSE_SCROLLBAR=yes
6907 DEFAULT_wxUSE_SLIDER=yes
6908 DEFAULT_wxUSE_SPINBTN=yes
6909 DEFAULT_wxUSE_SPINCTRL=yes
6910 DEFAULT_wxUSE_SPLITTER=yes
6911 DEFAULT_wxUSE_STATBMP=yes
6912 DEFAULT_wxUSE_STATBOX=yes
6913 DEFAULT_wxUSE_STATLINE=yes
6914 DEFAULT_wxUSE_STATUSBAR=yes
6915 DEFAULT_wxUSE_TAB_DIALOG=yes
6916 DEFAULT_wxUSE_TOGGLEBTN=yes
6917 DEFAULT_wxUSE_TOOLBAR=yes
6918 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6919 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6920 DEFAULT_wxUSE_TOOLTIPS=yes
6921 DEFAULT_wxUSE_TREECTRL=yes
6922 DEFAULT_wxUSE_POPUPWIN=yes
6923 DEFAULT_wxUSE_TIPWINDOW=yes
6924elif test "$wxUSE_CONTROLS" = "no"; then
6925 DEFAULT_wxUSE_ACCEL=no
6926 DEFAULT_wxUSE_BMPBUTTON=no
6927 DEFAULT_wxUSE_BUTTON=no
6928 DEFAULT_wxUSE_CALCTRL=no
6929 DEFAULT_wxUSE_CARET=no
6930 DEFAULT_wxUSE_COMBOBOX=no
6931 DEFAULT_wxUSE_CHECKBOX=no
6932 DEFAULT_wxUSE_CHECKLISTBOX=no
6933 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 6934 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
6935 DEFAULT_wxUSE_GAUGE=no
6936 DEFAULT_wxUSE_GRID=no
6937 DEFAULT_wxUSE_IMAGLIST=no
6938 DEFAULT_wxUSE_LISTBOOK=no
6939 DEFAULT_wxUSE_LISTBOX=no
6940 DEFAULT_wxUSE_LISTCTRL=no
6941 DEFAULT_wxUSE_NOTEBOOK=no
6942 DEFAULT_wxUSE_RADIOBOX=no
6943 DEFAULT_wxUSE_RADIOBTN=no
6944 DEFAULT_wxUSE_SASH=no
6945 DEFAULT_wxUSE_SCROLLBAR=no
6946 DEFAULT_wxUSE_SLIDER=no
6947 DEFAULT_wxUSE_SPINBTN=no
6948 DEFAULT_wxUSE_SPINCTRL=no
6949 DEFAULT_wxUSE_SPLITTER=no
6950 DEFAULT_wxUSE_STATBMP=no
6951 DEFAULT_wxUSE_STATBOX=no
6952 DEFAULT_wxUSE_STATLINE=no
6953 DEFAULT_wxUSE_STATUSBAR=no
6954 DEFAULT_wxUSE_TAB_DIALOG=no
6955 DEFAULT_wxUSE_TOGGLEBTN=no
6956 DEFAULT_wxUSE_TOOLBAR=no
6957 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6958 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6959 DEFAULT_wxUSE_TOOLTIPS=no
6960 DEFAULT_wxUSE_TREECTRL=no
6961 DEFAULT_wxUSE_POPUPWIN=no
6962 DEFAULT_wxUSE_TIPWINDOW=no
6963fi
6964
6965## FIXME: This is a blatant hack
6966if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6967 wxUSE_PRINTING_ARCHITECTURE=no
6968 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6969 DEFAULT_wxUSE_TOOLTIPS=no
6970 DEFAULT_wxUSE_DRAGIMAGE=no
6971fi
6972
6973
6974 enablestring=
6975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6976echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6977 no_cache=0
6978 # Check whether --enable-accel or --disable-accel was given.
6979if test "${enable_accel+set}" = set; then
6980 enableval="$enable_accel"
6981
6982 if test "$enableval" = yes; then
6983 ac_cv_use_accel='wxUSE_ACCEL=yes'
6984 else
6985 ac_cv_use_accel='wxUSE_ACCEL=no'
6986 fi
6987
6988else
6989
6990 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6991 if test "x$LINE" != x ; then
6992 eval "DEFAULT_$LINE"
6993 else
6994 no_cache=1
6995 fi
6996
6997 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6998
6999fi;
7000
7001 eval "$ac_cv_use_accel"
7002 if test "$no_cache" != 1; then
7003 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7004 fi
7005
7006 if test "$wxUSE_ACCEL" = yes; then
7007 echo "$as_me:$LINENO: result: yes" >&5
7008echo "${ECHO_T}yes" >&6
7009 else
7010 echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6
7012 fi
7013
7014
7015 enablestring=
7016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7017echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7018 no_cache=0
7019 # Check whether --enable-button or --disable-button was given.
7020if test "${enable_button+set}" = set; then
7021 enableval="$enable_button"
7022
7023 if test "$enableval" = yes; then
7024 ac_cv_use_button='wxUSE_BUTTON=yes'
7025 else
7026 ac_cv_use_button='wxUSE_BUTTON=no'
7027 fi
7028
7029else
7030
7031 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7032 if test "x$LINE" != x ; then
7033 eval "DEFAULT_$LINE"
7034 else
7035 no_cache=1
7036 fi
7037
7038 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7039
7040fi;
7041
7042 eval "$ac_cv_use_button"
7043 if test "$no_cache" != 1; then
7044 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7045 fi
7046
7047 if test "$wxUSE_BUTTON" = yes; then
7048 echo "$as_me:$LINENO: result: yes" >&5
7049echo "${ECHO_T}yes" >&6
7050 else
7051 echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6
7053 fi
7054
7055
7056 enablestring=
7057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7058echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7059 no_cache=0
7060 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7061if test "${enable_bmpbutton+set}" = set; then
7062 enableval="$enable_bmpbutton"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7066 else
7067 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7068 fi
7069
7070else
7071
7072 LINE=`grep "wxUSE_BMPBUTTON" ${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_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7080
7081fi;
7082
7083 eval "$ac_cv_use_bmpbutton"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_BMPBUTTON" = 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 enablestring=
7098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7099echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7100 no_cache=0
7101 # Check whether --enable-calendar or --disable-calendar was given.
7102if test "${enable_calendar+set}" = set; then
7103 enableval="$enable_calendar"
7104
7105 if test "$enableval" = yes; then
7106 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7107 else
7108 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7109 fi
7110
7111else
7112
7113 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7114 if test "x$LINE" != x ; then
7115 eval "DEFAULT_$LINE"
7116 else
7117 no_cache=1
7118 fi
7119
7120 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7121
7122fi;
7123
7124 eval "$ac_cv_use_calendar"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_CALCTRL" = yes; then
7130 echo "$as_me:$LINENO: result: yes" >&5
7131echo "${ECHO_T}yes" >&6
7132 else
7133 echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6
7135 fi
7136
7137
7138 enablestring=
7139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7140echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7141 no_cache=0
7142 # Check whether --enable-caret or --disable-caret was given.
7143if test "${enable_caret+set}" = set; then
7144 enableval="$enable_caret"
7145
7146 if test "$enableval" = yes; then
7147 ac_cv_use_caret='wxUSE_CARET=yes'
7148 else
7149 ac_cv_use_caret='wxUSE_CARET=no'
7150 fi
7151
7152else
7153
7154 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7155 if test "x$LINE" != x ; then
7156 eval "DEFAULT_$LINE"
7157 else
7158 no_cache=1
7159 fi
7160
7161 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7162
7163fi;
7164
7165 eval "$ac_cv_use_caret"
7166 if test "$no_cache" != 1; then
7167 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7168 fi
7169
7170 if test "$wxUSE_CARET" = yes; then
7171 echo "$as_me:$LINENO: result: yes" >&5
7172echo "${ECHO_T}yes" >&6
7173 else
7174 echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6
7176 fi
7177
7178
7179 enablestring=
7180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7181echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7182 no_cache=0
7183 # Check whether --enable-checkbox or --disable-checkbox was given.
7184if test "${enable_checkbox+set}" = set; then
7185 enableval="$enable_checkbox"
7186
7187 if test "$enableval" = yes; then
7188 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7189 else
7190 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7191 fi
7192
7193else
7194
7195 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7196 if test "x$LINE" != x ; then
7197 eval "DEFAULT_$LINE"
7198 else
7199 no_cache=1
7200 fi
7201
7202 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7203
7204fi;
7205
7206 eval "$ac_cv_use_checkbox"
7207 if test "$no_cache" != 1; then
7208 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7209 fi
7210
7211 if test "$wxUSE_CHECKBOX" = yes; then
7212 echo "$as_me:$LINENO: result: yes" >&5
7213echo "${ECHO_T}yes" >&6
7214 else
7215 echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6
7217 fi
7218
7219
7220 enablestring=
7221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7222echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7223 no_cache=0
7224 # Check whether --enable-checklst or --disable-checklst was given.
7225if test "${enable_checklst+set}" = set; then
7226 enableval="$enable_checklst"
7227
7228 if test "$enableval" = yes; then
7229 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7230 else
7231 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7232 fi
7233
7234else
7235
7236 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7237 if test "x$LINE" != x ; then
7238 eval "DEFAULT_$LINE"
7239 else
7240 no_cache=1
7241 fi
7242
7243 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7244
7245fi;
7246
7247 eval "$ac_cv_use_checklst"
7248 if test "$no_cache" != 1; then
7249 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7250 fi
7251
7252 if test "$wxUSE_CHECKLST" = yes; then
7253 echo "$as_me:$LINENO: result: yes" >&5
7254echo "${ECHO_T}yes" >&6
7255 else
7256 echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258 fi
7259
7260
7261 enablestring=
7262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7263echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7264 no_cache=0
7265 # Check whether --enable-choice or --disable-choice was given.
7266if test "${enable_choice+set}" = set; then
7267 enableval="$enable_choice"
7268
7269 if test "$enableval" = yes; then
7270 ac_cv_use_choice='wxUSE_CHOICE=yes'
7271 else
7272 ac_cv_use_choice='wxUSE_CHOICE=no'
7273 fi
7274
7275else
7276
7277 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7278 if test "x$LINE" != x ; then
7279 eval "DEFAULT_$LINE"
7280 else
7281 no_cache=1
7282 fi
7283
7284 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7285
7286fi;
7287
7288 eval "$ac_cv_use_choice"
7289 if test "$no_cache" != 1; then
7290 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7291 fi
7292
7293 if test "$wxUSE_CHOICE" = yes; then
7294 echo "$as_me:$LINENO: result: yes" >&5
7295echo "${ECHO_T}yes" >&6
7296 else
7297 echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299 fi
7300
7301
92bbdbcd
WS
7302 enablestring=
7303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7304echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7305 no_cache=0
7306 # Check whether --enable-choicebook or --disable-choicebook was given.
7307if test "${enable_choicebook+set}" = set; then
7308 enableval="$enable_choicebook"
7309
7310 if test "$enableval" = yes; then
7311 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7312 else
7313 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7314 fi
7315
7316else
7317
7318 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7319 if test "x$LINE" != x ; then
7320 eval "DEFAULT_$LINE"
7321 else
7322 no_cache=1
7323 fi
7324
7325 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7326
7327fi;
7328
7329 eval "$ac_cv_use_choicebook"
7330 if test "$no_cache" != 1; then
7331 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7332 fi
7333
7334 if test "$wxUSE_CHOICEBOOK" = yes; then
7335 echo "$as_me:$LINENO: result: yes" >&5
7336echo "${ECHO_T}yes" >&6
7337 else
7338 echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6
7340 fi
7341
7342
a848cd7e
SC
7343 enablestring=
7344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7345echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7346 no_cache=0
7347 # Check whether --enable-combobox or --disable-combobox was given.
7348if test "${enable_combobox+set}" = set; then
7349 enableval="$enable_combobox"
7350
7351 if test "$enableval" = yes; then
7352 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7353 else
7354 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7355 fi
7356
7357else
7358
7359 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7367
7368fi;
7369
7370 eval "$ac_cv_use_combobox"
7371 if test "$no_cache" != 1; then
7372 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7373 fi
7374
7375 if test "$wxUSE_COMBOBOX" = yes; then
7376 echo "$as_me:$LINENO: result: yes" >&5
7377echo "${ECHO_T}yes" >&6
7378 else
7379 echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
7381 fi
7382
7383
7384 enablestring=
7385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7386echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7387 no_cache=0
7388 # Check whether --enable-display or --disable-display was given.
7389if test "${enable_display+set}" = set; then
7390 enableval="$enable_display"
7391
7392 if test "$enableval" = yes; then
7393 ac_cv_use_display='wxUSE_DISPLAY=yes'
7394 else
7395 ac_cv_use_display='wxUSE_DISPLAY=no'
7396 fi
7397
7398else
7399
7400 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7401 if test "x$LINE" != x ; then
7402 eval "DEFAULT_$LINE"
7403 else
7404 no_cache=1
7405 fi
7406
7407 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7408
7409fi;
7410
7411 eval "$ac_cv_use_display"
7412 if test "$no_cache" != 1; then
7413 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7414 fi
7415
7416 if test "$wxUSE_DISPLAY" = yes; then
7417 echo "$as_me:$LINENO: result: yes" >&5
7418echo "${ECHO_T}yes" >&6
7419 else
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
7422 fi
7423
7424
7425 enablestring=
7426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7427echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7428 no_cache=0
7429 # Check whether --enable-gauge or --disable-gauge was given.
7430if test "${enable_gauge+set}" = set; then
7431 enableval="$enable_gauge"
7432
7433 if test "$enableval" = yes; then
7434 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7435 else
7436 ac_cv_use_gauge='wxUSE_GAUGE=no'
7437 fi
7438
7439else
7440
7441 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7442 if test "x$LINE" != x ; then
7443 eval "DEFAULT_$LINE"
7444 else
7445 no_cache=1
7446 fi
7447
7448 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7449
7450fi;
7451
7452 eval "$ac_cv_use_gauge"
7453 if test "$no_cache" != 1; then
7454 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7455 fi
7456
7457 if test "$wxUSE_GAUGE" = yes; then
7458 echo "$as_me:$LINENO: result: yes" >&5
7459echo "${ECHO_T}yes" >&6
7460 else
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
7463 fi
7464
7465
7466 enablestring=
7467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7468echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7469 no_cache=0
7470 # Check whether --enable-grid or --disable-grid was given.
7471if test "${enable_grid+set}" = set; then
7472 enableval="$enable_grid"
7473
7474 if test "$enableval" = yes; then
7475 ac_cv_use_grid='wxUSE_GRID=yes'
7476 else
7477 ac_cv_use_grid='wxUSE_GRID=no'
7478 fi
7479
7480else
7481
7482 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7483 if test "x$LINE" != x ; then
7484 eval "DEFAULT_$LINE"
7485 else
7486 no_cache=1
7487 fi
7488
7489 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7490
7491fi;
7492
7493 eval "$ac_cv_use_grid"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_GRID" = yes; then
7499 echo "$as_me:$LINENO: result: yes" >&5
7500echo "${ECHO_T}yes" >&6
7501 else
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504 fi
7505
7506
7507 enablestring=
7508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7509echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7510 no_cache=0
7511 # Check whether --enable-imaglist or --disable-imaglist was given.
7512if test "${enable_imaglist+set}" = set; then
7513 enableval="$enable_imaglist"
7514
7515 if test "$enableval" = yes; then
7516 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7517 else
7518 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7519 fi
7520
7521else
7522
7523 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7524 if test "x$LINE" != x ; then
7525 eval "DEFAULT_$LINE"
7526 else
7527 no_cache=1
7528 fi
7529
7530 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7531
7532fi;
7533
7534 eval "$ac_cv_use_imaglist"
7535 if test "$no_cache" != 1; then
7536 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7537 fi
7538
7539 if test "$wxUSE_IMAGLIST" = yes; then
7540 echo "$as_me:$LINENO: result: yes" >&5
7541echo "${ECHO_T}yes" >&6
7542 else
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
7545 fi
7546
7547
7548 enablestring=
7549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7550echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7551 no_cache=0
7552 # Check whether --enable-listbook or --disable-listbook was given.
7553if test "${enable_listbook+set}" = set; then
7554 enableval="$enable_listbook"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7558 else
7559 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7572
7573fi;
7574
7575 eval "$ac_cv_use_listbook"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_LISTBOOK" = yes; then
7581 echo "$as_me:$LINENO: result: yes" >&5
7582echo "${ECHO_T}yes" >&6
7583 else
7584 echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586 fi
7587
7588
7589 enablestring=
7590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7591echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7592 no_cache=0
7593 # Check whether --enable-listbox or --disable-listbox was given.
7594if test "${enable_listbox+set}" = set; then
7595 enableval="$enable_listbox"
7596
7597 if test "$enableval" = yes; then
7598 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7599 else
7600 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7601 fi
7602
7603else
7604
7605 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7613
7614fi;
7615
7616 eval "$ac_cv_use_listbox"
7617 if test "$no_cache" != 1; then
7618 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7619 fi
7620
7621 if test "$wxUSE_LISTBOX" = yes; then
7622 echo "$as_me:$LINENO: result: yes" >&5
7623echo "${ECHO_T}yes" >&6
7624 else
7625 echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6
7627 fi
7628
7629
7630 enablestring=
7631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7632echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7633 no_cache=0
7634 # Check whether --enable-listctrl or --disable-listctrl was given.
7635if test "${enable_listctrl+set}" = set; then
7636 enableval="$enable_listctrl"
7637
7638 if test "$enableval" = yes; then
7639 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7640 else
7641 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7642 fi
7643
7644else
7645
7646 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7654
7655fi;
7656
7657 eval "$ac_cv_use_listctrl"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_LISTCTRL" = yes; then
7663 echo "$as_me:$LINENO: result: yes" >&5
7664echo "${ECHO_T}yes" >&6
7665 else
7666 echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
7668 fi
7669
7670
7671 enablestring=
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-notebook or --disable-notebook was given.
7676if test "${enable_notebook+set}" = set; then
7677 enableval="$enable_notebook"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7681 else
7682 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7695
7696fi;
7697
7698 eval "$ac_cv_use_notebook"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_NOTEBOOK" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-radiobox or --disable-radiobox was given.
7717if test "${enable_radiobox+set}" = set; then
7718 enableval="$enable_radiobox"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7722 else
7723 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7736
7737fi;
7738
7739 eval "$ac_cv_use_radiobox"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_RADIOBOX" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753 enablestring=
7754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7755echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7756 no_cache=0
7757 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7758if test "${enable_radiobtn+set}" = set; then
7759 enableval="$enable_radiobtn"
7760
7761 if test "$enableval" = yes; then
7762 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7763 else
7764 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7765 fi
7766
7767else
7768
7769 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7777
7778fi;
7779
7780 eval "$ac_cv_use_radiobtn"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_RADIOBTN" = yes; then
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788 else
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
7791 fi
7792
7793
7794 enablestring=
7795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7796echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7797 no_cache=0
7798 # Check whether --enable-sash or --disable-sash was given.
7799if test "${enable_sash+set}" = set; then
7800 enableval="$enable_sash"
7801
7802 if test "$enableval" = yes; then
7803 ac_cv_use_sash='wxUSE_SASH=yes'
7804 else
7805 ac_cv_use_sash='wxUSE_SASH=no'
7806 fi
7807
7808else
7809
7810 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7811 if test "x$LINE" != x ; then
7812 eval "DEFAULT_$LINE"
7813 else
7814 no_cache=1
7815 fi
7816
7817 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7818
7819fi;
7820
7821 eval "$ac_cv_use_sash"
7822 if test "$no_cache" != 1; then
7823 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7824 fi
7825
7826 if test "$wxUSE_SASH" = yes; then
7827 echo "$as_me:$LINENO: result: yes" >&5
7828echo "${ECHO_T}yes" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832 fi
7833
7834
7835 enablestring=
7836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7837echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7838 no_cache=0
7839 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7840if test "${enable_scrollbar+set}" = set; then
7841 enableval="$enable_scrollbar"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7845 else
7846 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7859
7860fi;
7861
7862 eval "$ac_cv_use_scrollbar"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_SCROLLBAR" = yes; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
7874
7875
7876 enablestring=
7877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7878echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7879 no_cache=0
7880 # Check whether --enable-slider or --disable-slider was given.
7881if test "${enable_slider+set}" = set; then
7882 enableval="$enable_slider"
7883
7884 if test "$enableval" = yes; then
7885 ac_cv_use_slider='wxUSE_SLIDER=yes'
7886 else
7887 ac_cv_use_slider='wxUSE_SLIDER=no'
7888 fi
7889
7890else
7891
7892 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7893 if test "x$LINE" != x ; then
7894 eval "DEFAULT_$LINE"
7895 else
7896 no_cache=1
7897 fi
7898
7899 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7900
7901fi;
7902
7903 eval "$ac_cv_use_slider"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_SLIDER" = yes; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914 fi
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7922if test "${enable_spinbtn+set}" = set; then
7923 enableval="$enable_spinbtn"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7927 else
7928 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7941
7942fi;
7943
7944 eval "$ac_cv_use_spinbtn"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_SPINBTN" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
7958 enablestring=
7959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7960echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7961 no_cache=0
7962 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7963if test "${enable_spinctrl+set}" = set; then
7964 enableval="$enable_spinctrl"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7968 else
7969 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7982
7983fi;
7984
7985 eval "$ac_cv_use_spinctrl"
7986 if test "$no_cache" != 1; then
7987 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7988 fi
7989
7990 if test "$wxUSE_SPINCTRL" = yes; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 fi
7997
7998
7999 enablestring=
8000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8001echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8002 no_cache=0
8003 # Check whether --enable-splitter or --disable-splitter was given.
8004if test "${enable_splitter+set}" = set; then
8005 enableval="$enable_splitter"
8006
8007 if test "$enableval" = yes; then
8008 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8009 else
8010 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8011 fi
8012
8013else
8014
8015 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8016 if test "x$LINE" != x ; then
8017 eval "DEFAULT_$LINE"
8018 else
8019 no_cache=1
8020 fi
8021
8022 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8023
8024fi;
8025
8026 eval "$ac_cv_use_splitter"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_SPLITTER" = yes; then
8032 echo "$as_me:$LINENO: result: yes" >&5
8033echo "${ECHO_T}yes" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037 fi
8038
8039
8040 enablestring=
8041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8042echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8043 no_cache=0
8044 # Check whether --enable-statbmp or --disable-statbmp was given.
8045if test "${enable_statbmp+set}" = set; then
8046 enableval="$enable_statbmp"
8047
8048 if test "$enableval" = yes; then
8049 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8050 else
8051 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8052 fi
8053
8054else
8055
8056 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8064
8065fi;
8066
8067 eval "$ac_cv_use_statbmp"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_STATBMP" = yes; then
8073 echo "$as_me:$LINENO: result: yes" >&5
8074echo "${ECHO_T}yes" >&6
8075 else
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078 fi
8079
8080
8081 enablestring=
8082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8083echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8084 no_cache=0
8085 # Check whether --enable-statbox or --disable-statbox was given.
8086if test "${enable_statbox+set}" = set; then
8087 enableval="$enable_statbox"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8091 else
8092 ac_cv_use_statbox='wxUSE_STATBOX=no'
8093 fi
8094
8095else
8096
8097 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8105
8106fi;
8107
8108 eval "$ac_cv_use_statbox"
8109 if test "$no_cache" != 1; then
8110 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8111 fi
8112
8113 if test "$wxUSE_STATBOX" = yes; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119 fi
8120
8121
8122 enablestring=
8123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8124echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8125 no_cache=0
8126 # Check whether --enable-statline or --disable-statline was given.
8127if test "${enable_statline+set}" = set; then
8128 enableval="$enable_statline"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_statline='wxUSE_STATLINE=yes'
8132 else
8133 ac_cv_use_statline='wxUSE_STATLINE=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8146
8147fi;
8148
8149 eval "$ac_cv_use_statline"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_STATLINE" = yes; then
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 fi
8161
8162
8163 enablestring=
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8166 no_cache=0
8167 # Check whether --enable-stattext or --disable-stattext was given.
8168if test "${enable_stattext+set}" = set; then
8169 enableval="$enable_stattext"
8170
8171 if test "$enableval" = yes; then
8172 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8173 else
8174 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8175 fi
8176
8177else
8178
8179 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
8186 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8187
8188fi;
8189
8190 eval "$ac_cv_use_stattext"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_STATTEXT" = yes; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
8201 fi
8202
8203
8204 enablestring=
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8207 no_cache=0
8208 # Check whether --enable-statusbar or --disable-statusbar was given.
8209if test "${enable_statusbar+set}" = set; then
8210 enableval="$enable_statusbar"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8214 else
8215 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8216 fi
8217
8218else
8219
8220 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8228
8229fi;
8230
8231 eval "$ac_cv_use_statusbar"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_STATUSBAR" = yes; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
8242 fi
8243
8244
8245 enablestring=
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8248 no_cache=0
8249 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8250if test "${enable_tabdialog+set}" = set; then
8251 enableval="$enable_tabdialog"
8252
8253 if test "$enableval" = yes; then
8254 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8255 else
8256 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8257 fi
8258
8259else
8260
8261 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8269
8270fi;
8271
8272 eval "$ac_cv_use_tabdialog"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_TABDIALOG" = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
8280 else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 fi
8284
8285
8286 enablestring=
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8289 no_cache=0
8290 # Check whether --enable-textctrl or --disable-textctrl was given.
8291if test "${enable_textctrl+set}" = set; then
8292 enableval="$enable_textctrl"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8296 else
8297 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8298 fi
8299
8300else
8301
8302 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8310
8311fi;
8312
8313 eval "$ac_cv_use_textctrl"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_TEXTCTRL" = yes; then
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324 fi
8325
8326
8327 enablestring=
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8330 no_cache=0
8331 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8332if test "${enable_togglebtn+set}" = set; then
8333 enableval="$enable_togglebtn"
8334
8335 if test "$enableval" = yes; then
8336 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8337 else
8338 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8339 fi
8340
8341else
8342
8343 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
8350 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8351
8352fi;
8353
8354 eval "$ac_cv_use_togglebtn"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_TOGGLEBTN" = yes; then
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365 fi
8366
8367
8368 enablestring=
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8371 no_cache=0
8372 # Check whether --enable-toolbar or --disable-toolbar was given.
8373if test "${enable_toolbar+set}" = set; then
8374 enableval="$enable_toolbar"
8375
8376 if test "$enableval" = yes; then
8377 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8378 else
8379 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8380 fi
8381
8382else
8383
8384 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8392
8393fi;
8394
8395 eval "$ac_cv_use_toolbar"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_TOOLBAR" = yes; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
8403 else
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406 fi
8407
8408
8409 enablestring=
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8412 no_cache=0
8413 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8414if test "${enable_tbarnative+set}" = set; then
8415 enableval="$enable_tbarnative"
8416
8417 if test "$enableval" = yes; then
8418 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8419 else
8420 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8421 fi
8422
8423else
8424
8425 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8433
8434fi;
8435
8436 eval "$ac_cv_use_tbarnative"
8437 if test "$no_cache" != 1; then
8438 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8439 fi
8440
8441 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447 fi
8448
8449
8450 enablestring=
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8453 no_cache=0
8454 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8455if test "${enable_tbarsmpl+set}" = set; then
8456 enableval="$enable_tbarsmpl"
8457
8458 if test "$enableval" = yes; then
8459 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8460 else
8461 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8462 fi
8463
8464else
8465
8466 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
8473 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8474
8475fi;
8476
8477 eval "$ac_cv_use_tbarsmpl"
8478 if test "$no_cache" != 1; then
8479 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8480 fi
8481
8482 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
8485 else
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
8488 fi
8489
8490
8491 enablestring=
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8494 no_cache=0
8495 # Check whether --enable-treectrl or --disable-treectrl was given.
8496if test "${enable_treectrl+set}" = set; then
8497 enableval="$enable_treectrl"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8501 else
8502 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8515
8516fi;
8517
8518 eval "$ac_cv_use_treectrl"
8519 if test "$no_cache" != 1; then
8520 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8521 fi
8522
8523 if test "$wxUSE_TREECTRL" = yes; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526 else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529 fi
8530
8531
8532 enablestring=
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8535 no_cache=0
8536 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8537if test "${enable_tipwindow+set}" = set; then
8538 enableval="$enable_tipwindow"
8539
8540 if test "$enableval" = yes; then
8541 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8542 else
8543 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8544 fi
8545
8546else
8547
8548 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8556
8557fi;
8558
8559 eval "$ac_cv_use_tipwindow"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_TIPWINDOW" = yes; then
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570 fi
8571
8572
8573 enablestring=
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8576 no_cache=0
8577 # Check whether --enable-popupwin or --disable-popupwin was given.
8578if test "${enable_popupwin+set}" = set; then
8579 enableval="$enable_popupwin"
8580
8581 if test "$enableval" = yes; then
8582 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8583 else
8584 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8585 fi
8586
8587else
8588
8589 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8597
8598fi;
8599
8600 eval "$ac_cv_use_popupwin"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_POPUPWIN" = yes; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
8611 fi
8612
8613
8614
8615
8616 enablestring=
8617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8618echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8619 no_cache=0
8620 # Check whether --enable-commondlg or --disable-commondlg was given.
8621if test "${enable_commondlg+set}" = set; then
8622 enableval="$enable_commondlg"
8623
8624 if test "$enableval" = yes; then
8625 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8626 else
8627 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8628 fi
8629
8630else
8631
8632 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8633 if test "x$LINE" != x ; then
8634 eval "DEFAULT_$LINE"
8635 else
8636 no_cache=1
8637 fi
8638
8639 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8640
8641fi;
8642
8643 eval "$ac_cv_use_commondlg"
8644 if test "$no_cache" != 1; then
8645 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8646 fi
8647
8648 if test "$wxUSE_COMMONDLGS" = yes; then
8649 echo "$as_me:$LINENO: result: yes" >&5
8650echo "${ECHO_T}yes" >&6
8651 else
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
8654 fi
8655
8656
8657 enablestring=
8658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8659echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8660 no_cache=0
8661 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8662if test "${enable_choicedlg+set}" = set; then
8663 enableval="$enable_choicedlg"
8664
8665 if test "$enableval" = yes; then
8666 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8667 else
8668 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8669 fi
8670
8671else
8672
8673 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8674 if test "x$LINE" != x ; then
8675 eval "DEFAULT_$LINE"
8676 else
8677 no_cache=1
8678 fi
8679
8680 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8681
8682fi;
8683
8684 eval "$ac_cv_use_choicedlg"
8685 if test "$no_cache" != 1; then
8686 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8687 fi
8688
8689 if test "$wxUSE_CHOICEDLG" = yes; then
8690 echo "$as_me:$LINENO: result: yes" >&5
8691echo "${ECHO_T}yes" >&6
8692 else
8693 echo "$as_me:$LINENO: result: no" >&5
8694echo "${ECHO_T}no" >&6
8695 fi
8696
8697
8698 enablestring=
8699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8700echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8701 no_cache=0
8702 # Check whether --enable-coldlg or --disable-coldlg was given.
8703if test "${enable_coldlg+set}" = set; then
8704 enableval="$enable_coldlg"
8705
8706 if test "$enableval" = yes; then
8707 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8708 else
8709 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8710 fi
8711
8712else
8713
8714 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8715 if test "x$LINE" != x ; then
8716 eval "DEFAULT_$LINE"
8717 else
8718 no_cache=1
8719 fi
8720
8721 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8722
8723fi;
8724
8725 eval "$ac_cv_use_coldlg"
8726 if test "$no_cache" != 1; then
8727 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8728 fi
8729
8730 if test "$wxUSE_COLOURDLG" = yes; then
8731 echo "$as_me:$LINENO: result: yes" >&5
8732echo "${ECHO_T}yes" >&6
8733 else
8734 echo "$as_me:$LINENO: result: no" >&5
8735echo "${ECHO_T}no" >&6
8736 fi
8737
8738
8739 enablestring=
8740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8741echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8742 no_cache=0
8743 # Check whether --enable-filedlg or --disable-filedlg was given.
8744if test "${enable_filedlg+set}" = set; then
8745 enableval="$enable_filedlg"
8746
8747 if test "$enableval" = yes; then
8748 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8749 else
8750 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8751 fi
8752
8753else
8754
8755 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8756 if test "x$LINE" != x ; then
8757 eval "DEFAULT_$LINE"
8758 else
8759 no_cache=1
8760 fi
8761
8762 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8763
8764fi;
8765
8766 eval "$ac_cv_use_filedlg"
8767 if test "$no_cache" != 1; then
8768 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8769 fi
8770
8771 if test "$wxUSE_FILEDLG" = yes; then
8772 echo "$as_me:$LINENO: result: yes" >&5
8773echo "${ECHO_T}yes" >&6
8774 else
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
8777 fi
8778
8779
8780 enablestring=
8781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8782echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8783 no_cache=0
8784 # Check whether --enable-finddlg or --disable-finddlg was given.
8785if test "${enable_finddlg+set}" = set; then
8786 enableval="$enable_finddlg"
8787
8788 if test "$enableval" = yes; then
8789 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8790 else
8791 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8792 fi
8793
8794else
8795
8796 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8797 if test "x$LINE" != x ; then
8798 eval "DEFAULT_$LINE"
8799 else
8800 no_cache=1
8801 fi
8802
8803 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8804
8805fi;
8806
8807 eval "$ac_cv_use_finddlg"
8808 if test "$no_cache" != 1; then
8809 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8810 fi
8811
8812 if test "$wxUSE_FINDREPLDLG" = yes; then
8813 echo "$as_me:$LINENO: result: yes" >&5
8814echo "${ECHO_T}yes" >&6
8815 else
8816 echo "$as_me:$LINENO: result: no" >&5
8817echo "${ECHO_T}no" >&6
8818 fi
8819
8820
8821 enablestring=
8822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8823echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8824 no_cache=0
8825 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8826if test "${enable_fontdlg+set}" = set; then
8827 enableval="$enable_fontdlg"
8828
8829 if test "$enableval" = yes; then
8830 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8831 else
8832 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8833 fi
8834
8835else
8836
8837 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8838 if test "x$LINE" != x ; then
8839 eval "DEFAULT_$LINE"
8840 else
8841 no_cache=1
8842 fi
8843
8844 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8845
8846fi;
8847
8848 eval "$ac_cv_use_fontdlg"
8849 if test "$no_cache" != 1; then
8850 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8851 fi
8852
8853 if test "$wxUSE_FONTDLG" = yes; then
8854 echo "$as_me:$LINENO: result: yes" >&5
8855echo "${ECHO_T}yes" >&6
8856 else
8857 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6
8859 fi
8860
8861
8862 enablestring=
8863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8864echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8865 no_cache=0
8866 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8867if test "${enable_dirdlg+set}" = set; then
8868 enableval="$enable_dirdlg"
8869
8870 if test "$enableval" = yes; then
8871 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8872 else
8873 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8874 fi
8875
8876else
8877
8878 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8879 if test "x$LINE" != x ; then
8880 eval "DEFAULT_$LINE"
8881 else
8882 no_cache=1
8883 fi
8884
8885 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8886
8887fi;
8888
8889 eval "$ac_cv_use_dirdlg"
8890 if test "$no_cache" != 1; then
8891 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8892 fi
8893
8894 if test "$wxUSE_DIRDLG" = yes; then
8895 echo "$as_me:$LINENO: result: yes" >&5
8896echo "${ECHO_T}yes" >&6
8897 else
8898 echo "$as_me:$LINENO: result: no" >&5
8899echo "${ECHO_T}no" >&6
8900 fi
8901
8902
8903 enablestring=
8904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8905echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8906 no_cache=0
8907 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8908if test "${enable_msgdlg+set}" = set; then
8909 enableval="$enable_msgdlg"
8910
8911 if test "$enableval" = yes; then
8912 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8913 else
8914 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8915 fi
8916
8917else
8918
8919 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8920 if test "x$LINE" != x ; then
8921 eval "DEFAULT_$LINE"
8922 else
8923 no_cache=1
8924 fi
8925
8926 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8927
8928fi;
8929
8930 eval "$ac_cv_use_msgdlg"
8931 if test "$no_cache" != 1; then
8932 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8933 fi
8934
8935 if test "$wxUSE_MSGDLG" = yes; then
8936 echo "$as_me:$LINENO: result: yes" >&5
8937echo "${ECHO_T}yes" >&6
8938 else
8939 echo "$as_me:$LINENO: result: no" >&5
8940echo "${ECHO_T}no" >&6
8941 fi
8942
8943
8944 enablestring=
8945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8946echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8947 no_cache=0
8948 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8949if test "${enable_numberdlg+set}" = set; then
8950 enableval="$enable_numberdlg"
8951
8952 if test "$enableval" = yes; then
8953 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8954 else
8955 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8956 fi
8957
8958else
8959
8960 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8961 if test "x$LINE" != x ; then
8962 eval "DEFAULT_$LINE"
8963 else
8964 no_cache=1
8965 fi
8966
8967 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8968
8969fi;
8970
8971 eval "$ac_cv_use_numberdlg"
8972 if test "$no_cache" != 1; then
8973 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8974 fi
8975
8976 if test "$wxUSE_NUMBERDLG" = yes; then
8977 echo "$as_me:$LINENO: result: yes" >&5
8978echo "${ECHO_T}yes" >&6
8979 else
8980 echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6
8982 fi
8983
8984
8985 enablestring=
8986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8987echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8988 no_cache=0
8989 # Check whether --enable-splash or --disable-splash was given.
8990if test "${enable_splash+set}" = set; then
8991 enableval="$enable_splash"
8992
8993 if test "$enableval" = yes; then
8994 ac_cv_use_splash='wxUSE_SPLASH=yes'
8995 else
8996 ac_cv_use_splash='wxUSE_SPLASH=no'
8997 fi
8998
8999else
9000
9001 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9002 if test "x$LINE" != x ; then
9003 eval "DEFAULT_$LINE"
9004 else
9005 no_cache=1
9006 fi
9007
9008 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9009
9010fi;
9011
9012 eval "$ac_cv_use_splash"
9013 if test "$no_cache" != 1; then
9014 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9015 fi
9016
9017 if test "$wxUSE_SPLASH" = yes; then
9018 echo "$as_me:$LINENO: result: yes" >&5
9019echo "${ECHO_T}yes" >&6
9020 else
9021 echo "$as_me:$LINENO: result: no" >&5
9022echo "${ECHO_T}no" >&6
9023 fi
9024
9025
9026 enablestring=
9027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9028echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9029 no_cache=0
9030 # Check whether --enable-textdlg or --disable-textdlg was given.
9031if test "${enable_textdlg+set}" = set; then
9032 enableval="$enable_textdlg"
9033
9034 if test "$enableval" = yes; then
9035 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9036 else
9037 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9038 fi
9039
9040else
9041
9042 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9043 if test "x$LINE" != x ; then
9044 eval "DEFAULT_$LINE"
9045 else
9046 no_cache=1
9047 fi
9048
9049 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9050
9051fi;
9052
9053 eval "$ac_cv_use_textdlg"
9054 if test "$no_cache" != 1; then
9055 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9056 fi
9057
9058 if test "$wxUSE_TEXTDLG" = yes; then
9059 echo "$as_me:$LINENO: result: yes" >&5
9060echo "${ECHO_T}yes" >&6
9061 else
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
9064 fi
9065
9066
9067 enablestring=
9068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9069echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9070 no_cache=0
9071 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9072if test "${enable_tipdlg+set}" = set; then
9073 enableval="$enable_tipdlg"
9074
9075 if test "$enableval" = yes; then
9076 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9077 else
9078 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9079 fi
9080
9081else
9082
9083 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9084 if test "x$LINE" != x ; then
9085 eval "DEFAULT_$LINE"
9086 else
9087 no_cache=1
9088 fi
9089
9090 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9091
9092fi;
9093
9094 eval "$ac_cv_use_tipdlg"
9095 if test "$no_cache" != 1; then
9096 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9097 fi
9098
9099 if test "$wxUSE_STARTUP_TIPS" = yes; then
9100 echo "$as_me:$LINENO: result: yes" >&5
9101echo "${ECHO_T}yes" >&6
9102 else
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
9105 fi
9106
9107
9108 enablestring=
9109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9110echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9111 no_cache=0
9112 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9113if test "${enable_progressdlg+set}" = set; then
9114 enableval="$enable_progressdlg"
9115
9116 if test "$enableval" = yes; then
9117 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9118 else
9119 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9120 fi
9121
9122else
9123
9124 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9125 if test "x$LINE" != x ; then
9126 eval "DEFAULT_$LINE"
9127 else
9128 no_cache=1
9129 fi
9130
9131 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9132
9133fi;
9134
9135 eval "$ac_cv_use_progressdlg"
9136 if test "$no_cache" != 1; then
9137 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9138 fi
9139
9140 if test "$wxUSE_PROGRESSDLG" = yes; then
9141 echo "$as_me:$LINENO: result: yes" >&5
9142echo "${ECHO_T}yes" >&6
9143 else
9144 echo "$as_me:$LINENO: result: no" >&5
9145echo "${ECHO_T}no" >&6
9146 fi
9147
9148
9149 enablestring=
9150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9151echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9152 no_cache=0
9153 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9154if test "${enable_wizarddlg+set}" = set; then
9155 enableval="$enable_wizarddlg"
9156
9157 if test "$enableval" = yes; then
9158 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9159 else
9160 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9161 fi
9162
9163else
9164
9165 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9166 if test "x$LINE" != x ; then
9167 eval "DEFAULT_$LINE"
9168 else
9169 no_cache=1
9170 fi
9171
9172 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9173
9174fi;
9175
9176 eval "$ac_cv_use_wizarddlg"
9177 if test "$no_cache" != 1; then
9178 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9179 fi
9180
9181 if test "$wxUSE_WIZARDDLG" = yes; then
9182 echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6
9184 else
9185 echo "$as_me:$LINENO: result: no" >&5
9186echo "${ECHO_T}no" >&6
9187 fi
9188
9189
9190
9191
9192 enablestring=
9193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9194echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9195 no_cache=0
9196 # Check whether --enable-menus or --disable-menus was given.
9197if test "${enable_menus+set}" = set; then
9198 enableval="$enable_menus"
9199
9200 if test "$enableval" = yes; then
9201 ac_cv_use_menus='wxUSE_MENUS=yes'
9202 else
9203 ac_cv_use_menus='wxUSE_MENUS=no'
9204 fi
9205
9206else
9207
9208 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9209 if test "x$LINE" != x ; then
9210 eval "DEFAULT_$LINE"
9211 else
9212 no_cache=1
9213 fi
9214
9215 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9216
9217fi;
9218
9219 eval "$ac_cv_use_menus"
9220 if test "$no_cache" != 1; then
9221 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9222 fi
9223
9224 if test "$wxUSE_MENUS" = yes; then
9225 echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6
9227 else
9228 echo "$as_me:$LINENO: result: no" >&5
9229echo "${ECHO_T}no" >&6
9230 fi
9231
9232
9233 enablestring=
9234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9235echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9236 no_cache=0
9237 # Check whether --enable-miniframe or --disable-miniframe was given.
9238if test "${enable_miniframe+set}" = set; then
9239 enableval="$enable_miniframe"
9240
9241 if test "$enableval" = yes; then
9242 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9243 else
9244 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9245 fi
9246
9247else
9248
9249 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9250 if test "x$LINE" != x ; then
9251 eval "DEFAULT_$LINE"
9252 else
9253 no_cache=1
9254 fi
9255
9256 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9257
9258fi;
9259
9260 eval "$ac_cv_use_miniframe"
9261 if test "$no_cache" != 1; then
9262 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9263 fi
9264
9265 if test "$wxUSE_MINIFRAME" = yes; then
9266 echo "$as_me:$LINENO: result: yes" >&5
9267echo "${ECHO_T}yes" >&6
9268 else
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
9271 fi
9272
9273
9274 enablestring=
9275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9276echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9277 no_cache=0
9278 # Check whether --enable-tooltips or --disable-tooltips was given.
9279if test "${enable_tooltips+set}" = set; then
9280 enableval="$enable_tooltips"
9281
9282 if test "$enableval" = yes; then
9283 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9284 else
9285 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9286 fi
9287
9288else
9289
9290 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9291 if test "x$LINE" != x ; then
9292 eval "DEFAULT_$LINE"
9293 else
9294 no_cache=1
9295 fi
9296
9297 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9298
9299fi;
9300
9301 eval "$ac_cv_use_tooltips"
9302 if test "$no_cache" != 1; then
9303 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9304 fi
9305
9306 if test "$wxUSE_TOOLTIPS" = yes; then
9307 echo "$as_me:$LINENO: result: yes" >&5
9308echo "${ECHO_T}yes" >&6
9309 else
9310 echo "$as_me:$LINENO: result: no" >&5
9311echo "${ECHO_T}no" >&6
9312 fi
9313
9314
9315 enablestring=
9316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9317echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9318 no_cache=0
9319 # Check whether --enable-splines or --disable-splines was given.
9320if test "${enable_splines+set}" = set; then
9321 enableval="$enable_splines"
9322
9323 if test "$enableval" = yes; then
9324 ac_cv_use_splines='wxUSE_SPLINES=yes'
9325 else
9326 ac_cv_use_splines='wxUSE_SPLINES=no'
9327 fi
9328
9329else
9330
9331 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9332 if test "x$LINE" != x ; then
9333 eval "DEFAULT_$LINE"
9334 else
9335 no_cache=1
9336 fi
9337
9338 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9339
9340fi;
9341
9342 eval "$ac_cv_use_splines"
9343 if test "$no_cache" != 1; then
9344 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9345 fi
9346
9347 if test "$wxUSE_SPLINES" = yes; then
9348 echo "$as_me:$LINENO: result: yes" >&5
9349echo "${ECHO_T}yes" >&6
9350 else
9351 echo "$as_me:$LINENO: result: no" >&5
9352echo "${ECHO_T}no" >&6
9353 fi
9354
9355
9356 enablestring=
9357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9358echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9359 no_cache=0
9360 # Check whether --enable-validators or --disable-validators was given.
9361if test "${enable_validators+set}" = set; then
9362 enableval="$enable_validators"
9363
9364 if test "$enableval" = yes; then
9365 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9366 else
9367 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9368 fi
9369
9370else
9371
9372 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9373 if test "x$LINE" != x ; then
9374 eval "DEFAULT_$LINE"
9375 else
9376 no_cache=1
9377 fi
9378
9379 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9380
9381fi;
9382
9383 eval "$ac_cv_use_validators"
9384 if test "$no_cache" != 1; then
9385 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9386 fi
9387
9388 if test "$wxUSE_VALIDATORS" = yes; then
9389 echo "$as_me:$LINENO: result: yes" >&5
9390echo "${ECHO_T}yes" >&6
9391 else
9392 echo "$as_me:$LINENO: result: no" >&5
9393echo "${ECHO_T}no" >&6
9394 fi
9395
9396
9397 enablestring=
9398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9399echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9400 no_cache=0
9401 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9402if test "${enable_busyinfo+set}" = set; then
9403 enableval="$enable_busyinfo"
9404
9405 if test "$enableval" = yes; then
9406 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9407 else
9408 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9409 fi
9410
9411else
9412
9413 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9414 if test "x$LINE" != x ; then
9415 eval "DEFAULT_$LINE"
9416 else
9417 no_cache=1
9418 fi
9419
9420 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9421
9422fi;
9423
9424 eval "$ac_cv_use_busyinfo"
9425 if test "$no_cache" != 1; then
9426 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9427 fi
9428
9429 if test "$wxUSE_BUSYINFO" = yes; then
9430 echo "$as_me:$LINENO: result: yes" >&5
9431echo "${ECHO_T}yes" >&6
9432 else
9433 echo "$as_me:$LINENO: result: no" >&5
9434echo "${ECHO_T}no" >&6
9435 fi
9436
9437
9438 enablestring=
9439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9440echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9441 no_cache=0
9442 # Check whether --enable-joystick or --disable-joystick was given.
9443if test "${enable_joystick+set}" = set; then
9444 enableval="$enable_joystick"
9445
9446 if test "$enableval" = yes; then
9447 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9448 else
9449 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9450 fi
9451
9452else
9453
9454 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9455 if test "x$LINE" != x ; then
9456 eval "DEFAULT_$LINE"
9457 else
9458 no_cache=1
9459 fi
9460
9461 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9462
9463fi;
9464
9465 eval "$ac_cv_use_joystick"
9466 if test "$no_cache" != 1; then
9467 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9468 fi
9469
9470 if test "$wxUSE_JOYSTICK" = yes; then
9471 echo "$as_me:$LINENO: result: yes" >&5
9472echo "${ECHO_T}yes" >&6
9473 else
9474 echo "$as_me:$LINENO: result: no" >&5
9475echo "${ECHO_T}no" >&6
9476 fi
9477
9478
9479 enablestring=
9480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9481echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9482 no_cache=0
9483 # Check whether --enable-metafile or --disable-metafile was given.
9484if test "${enable_metafile+set}" = set; then
9485 enableval="$enable_metafile"
9486
9487 if test "$enableval" = yes; then
9488 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9489 else
9490 ac_cv_use_metafile='wxUSE_METAFILE=no'
9491 fi
9492
9493else
9494
9495 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9496 if test "x$LINE" != x ; then
9497 eval "DEFAULT_$LINE"
9498 else
9499 no_cache=1
9500 fi
9501
9502 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9503
9504fi;
9505
9506 eval "$ac_cv_use_metafile"
9507 if test "$no_cache" != 1; then
9508 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9509 fi
9510
9511 if test "$wxUSE_METAFILE" = yes; then
9512 echo "$as_me:$LINENO: result: yes" >&5
9513echo "${ECHO_T}yes" >&6
9514 else
9515 echo "$as_me:$LINENO: result: no" >&5
9516echo "${ECHO_T}no" >&6
9517 fi
9518
9519
9520 enablestring=
9521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9522echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9523 no_cache=0
9524 # Check whether --enable-dragimage or --disable-dragimage was given.
9525if test "${enable_dragimage+set}" = set; then
9526 enableval="$enable_dragimage"
9527
9528 if test "$enableval" = yes; then
9529 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9530 else
9531 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9532 fi
9533
9534else
9535
9536 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9537 if test "x$LINE" != x ; then
9538 eval "DEFAULT_$LINE"
9539 else
9540 no_cache=1
9541 fi
9542
9543 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9544
9545fi;
9546
9547 eval "$ac_cv_use_dragimage"
9548 if test "$no_cache" != 1; then
9549 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9550 fi
9551
9552 if test "$wxUSE_DRAGIMAGE" = yes; then
9553 echo "$as_me:$LINENO: result: yes" >&5
9554echo "${ECHO_T}yes" >&6
9555 else
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
9558 fi
9559
9560
9561 enablestring=
9562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9563echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9564 no_cache=0
9565 # Check whether --enable-accessibility or --disable-accessibility was given.
9566if test "${enable_accessibility+set}" = set; then
9567 enableval="$enable_accessibility"
9568
9569 if test "$enableval" = yes; then
9570 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9571 else
9572 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9573 fi
9574
9575else
9576
9577 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9578 if test "x$LINE" != x ; then
9579 eval "DEFAULT_$LINE"
9580 else
9581 no_cache=1
9582 fi
9583
9584 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9585
9586fi;
9587
9588 eval "$ac_cv_use_accessibility"
9589 if test "$no_cache" != 1; then
9590 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9591 fi
9592
9593 if test "$wxUSE_ACCESSIBILITY" = yes; then
9594 echo "$as_me:$LINENO: result: yes" >&5
9595echo "${ECHO_T}yes" >&6
9596 else
9597 echo "$as_me:$LINENO: result: no" >&5
9598echo "${ECHO_T}no" >&6
9599 fi
9600
9601
9602
9603
9604 enablestring=
9605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9606echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9607 no_cache=0
9608 # Check whether --enable-palette or --disable-palette was given.
9609if test "${enable_palette+set}" = set; then
9610 enableval="$enable_palette"
9611
9612 if test "$enableval" = yes; then
9613 ac_cv_use_palette='wxUSE_PALETTE=yes'
9614 else
9615 ac_cv_use_palette='wxUSE_PALETTE=no'
9616 fi
9617
9618else
9619
9620 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9621 if test "x$LINE" != x ; then
9622 eval "DEFAULT_$LINE"
9623 else
9624 no_cache=1
9625 fi
9626
9627 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9628
9629fi;
9630
9631 eval "$ac_cv_use_palette"
9632 if test "$no_cache" != 1; then
9633 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9634 fi
9635
9636 if test "$wxUSE_PALETTE" = yes; then
9637 echo "$as_me:$LINENO: result: yes" >&5
9638echo "${ECHO_T}yes" >&6
9639 else
9640 echo "$as_me:$LINENO: result: no" >&5
9641echo "${ECHO_T}no" >&6
9642 fi
9643
9644
9645 enablestring=
9646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9647echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9648 no_cache=0
9649 # Check whether --enable-image or --disable-image was given.
9650if test "${enable_image+set}" = set; then
9651 enableval="$enable_image"
9652
9653 if test "$enableval" = yes; then
9654 ac_cv_use_image='wxUSE_IMAGE=yes'
9655 else
9656 ac_cv_use_image='wxUSE_IMAGE=no'
9657 fi
9658
9659else
9660
9661 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9662 if test "x$LINE" != x ; then
9663 eval "DEFAULT_$LINE"
9664 else
9665 no_cache=1
9666 fi
9667
9668 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9669
9670fi;
9671
9672 eval "$ac_cv_use_image"
9673 if test "$no_cache" != 1; then
9674 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9675 fi
9676
9677 if test "$wxUSE_IMAGE" = yes; then
9678 echo "$as_me:$LINENO: result: yes" >&5
9679echo "${ECHO_T}yes" >&6
9680 else
9681 echo "$as_me:$LINENO: result: no" >&5
9682echo "${ECHO_T}no" >&6
9683 fi
9684
9685
9686 enablestring=
9687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9688echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9689 no_cache=0
9690 # Check whether --enable-gif or --disable-gif was given.
9691if test "${enable_gif+set}" = set; then
9692 enableval="$enable_gif"
9693
9694 if test "$enableval" = yes; then
9695 ac_cv_use_gif='wxUSE_GIF=yes'
9696 else
9697 ac_cv_use_gif='wxUSE_GIF=no'
9698 fi
9699
9700else
9701
9702 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9703 if test "x$LINE" != x ; then
9704 eval "DEFAULT_$LINE"
9705 else
9706 no_cache=1
9707 fi
9708
9709 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9710
9711fi;
9712
9713 eval "$ac_cv_use_gif"
9714 if test "$no_cache" != 1; then
9715 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9716 fi
9717
9718 if test "$wxUSE_GIF" = yes; then
9719 echo "$as_me:$LINENO: result: yes" >&5
9720echo "${ECHO_T}yes" >&6
9721 else
9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
9724 fi
9725
9726
9727 enablestring=
9728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9729echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9730 no_cache=0
9731 # Check whether --enable-pcx or --disable-pcx was given.
9732if test "${enable_pcx+set}" = set; then
9733 enableval="$enable_pcx"
9734
9735 if test "$enableval" = yes; then
9736 ac_cv_use_pcx='wxUSE_PCX=yes'
9737 else
9738 ac_cv_use_pcx='wxUSE_PCX=no'
9739 fi
9740
9741else
9742
9743 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9744 if test "x$LINE" != x ; then
9745 eval "DEFAULT_$LINE"
9746 else
9747 no_cache=1
9748 fi
9749
9750 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9751
9752fi;
9753
9754 eval "$ac_cv_use_pcx"
9755 if test "$no_cache" != 1; then
9756 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9757 fi
9758
9759 if test "$wxUSE_PCX" = yes; then
9760 echo "$as_me:$LINENO: result: yes" >&5
9761echo "${ECHO_T}yes" >&6
9762 else
9763 echo "$as_me:$LINENO: result: no" >&5
9764echo "${ECHO_T}no" >&6
9765 fi
9766
9767
9768 enablestring=
9769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9770echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9771 no_cache=0
9772 # Check whether --enable-iff or --disable-iff was given.
9773if test "${enable_iff+set}" = set; then
9774 enableval="$enable_iff"
9775
9776 if test "$enableval" = yes; then
9777 ac_cv_use_iff='wxUSE_IFF=yes'
9778 else
9779 ac_cv_use_iff='wxUSE_IFF=no'
9780 fi
9781
9782else
9783
9784 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9785 if test "x$LINE" != x ; then
9786 eval "DEFAULT_$LINE"
9787 else
9788 no_cache=1
9789 fi
9790
9791 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9792
9793fi;
9794
9795 eval "$ac_cv_use_iff"
9796 if test "$no_cache" != 1; then
9797 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9798 fi
9799
9800 if test "$wxUSE_IFF" = yes; then
9801 echo "$as_me:$LINENO: result: yes" >&5
9802echo "${ECHO_T}yes" >&6
9803 else
9804 echo "$as_me:$LINENO: result: no" >&5
9805echo "${ECHO_T}no" >&6
9806 fi
9807
9808
9809 enablestring=
9810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9811echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9812 no_cache=0
9813 # Check whether --enable-pnm or --disable-pnm was given.
9814if test "${enable_pnm+set}" = set; then
9815 enableval="$enable_pnm"
9816
9817 if test "$enableval" = yes; then
9818 ac_cv_use_pnm='wxUSE_PNM=yes'
9819 else
9820 ac_cv_use_pnm='wxUSE_PNM=no'
9821 fi
9822
9823else
9824
9825 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9826 if test "x$LINE" != x ; then
9827 eval "DEFAULT_$LINE"
9828 else
9829 no_cache=1
9830 fi
9831
9832 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9833
9834fi;
9835
9836 eval "$ac_cv_use_pnm"
9837 if test "$no_cache" != 1; then
9838 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9839 fi
9840
9841 if test "$wxUSE_PNM" = yes; then
9842 echo "$as_me:$LINENO: result: yes" >&5
9843echo "${ECHO_T}yes" >&6
9844 else
9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
9847 fi
9848
9849
9850 enablestring=
9851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9852echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9853 no_cache=0
9854 # Check whether --enable-xpm or --disable-xpm was given.
9855if test "${enable_xpm+set}" = set; then
9856 enableval="$enable_xpm"
9857
9858 if test "$enableval" = yes; then
9859 ac_cv_use_xpm='wxUSE_XPM=yes'
9860 else
9861 ac_cv_use_xpm='wxUSE_XPM=no'
9862 fi
9863
9864else
9865
9866 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9867 if test "x$LINE" != x ; then
9868 eval "DEFAULT_$LINE"
9869 else
9870 no_cache=1
9871 fi
9872
9873 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9874
9875fi;
9876
9877 eval "$ac_cv_use_xpm"
9878 if test "$no_cache" != 1; then
9879 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9880 fi
9881
9882 if test "$wxUSE_XPM" = yes; then
9883 echo "$as_me:$LINENO: result: yes" >&5
9884echo "${ECHO_T}yes" >&6
9885 else
9886 echo "$as_me:$LINENO: result: no" >&5
9887echo "${ECHO_T}no" >&6
9888 fi
9889
9890
9891 enablestring=
9892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9893echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9894 no_cache=0
9895 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9896if test "${enable_ico_cur+set}" = set; then
9897 enableval="$enable_ico_cur"
9898
9899 if test "$enableval" = yes; then
9900 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9901 else
9902 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9903 fi
9904
9905else
9906
9907 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9908 if test "x$LINE" != x ; then
9909 eval "DEFAULT_$LINE"
9910 else
9911 no_cache=1
9912 fi
9913
9914 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9915
9916fi;
9917
9918 eval "$ac_cv_use_ico_cur"
9919 if test "$no_cache" != 1; then
9920 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9921 fi
9922
9923 if test "$wxUSE_ICO_CUR" = yes; then
9924 echo "$as_me:$LINENO: result: yes" >&5
9925echo "${ECHO_T}yes" >&6
9926 else
9927 echo "$as_me:$LINENO: result: no" >&5
9928echo "${ECHO_T}no" >&6
9929 fi
9930
9931
9932fi
9933
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-official_build or --disable-official_build was given.
9941if test "${enable_official_build+set}" = set; then
9942 enableval="$enable_official_build"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9946 else
9947 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9960
9961fi;
9962
9963 eval "$ac_cv_use_official_build"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976# Check whether --enable-vendor or --disable-vendor was given.
9977if test "${enable_vendor+set}" = set; then
9978 enableval="$enable_vendor"
9979 VENDOR="$enableval"
9980fi;
9981if test "x$VENDOR" = "x"; then
9982 VENDOR="custom"
9983fi
9984
9985case "${host}" in
9986 *-pc-os2_emx | *-pc-os2-emx )
9987 PATH_IFS=';'
a848cd7e
SC
9988 ;;
9989 *)
9990 PATH_IFS=':'
9991 ;;
9992esac
9993
9994
9995
9996 echo "saving argument cache $wx_arg_cache_file"
9997 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9998
9999
10000
10001echo "$as_me:$LINENO: checking for toolkit" >&5
10002echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10003
10004# In Wine, we need to default to MSW, not GTK or MOTIF
10005if test "$wxUSE_WINE" = "yes"; then
10006 DEFAULT_DEFAULT_wxUSE_GTK=0
10007 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10008 DEFAULT_DEFAULT_wxUSE_MSW=1
10009 wxUSE_SHARED=no
10010fi
10011
10012if test "$wxUSE_GUI" = "yes"; then
10013
10014 if test "$USE_BEOS" = 1; then
10015 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10016echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10017 { (exit 1); exit 1; }; }
10018 fi
10019
10020 if test "$TOOLKIT_GIVEN" = 1; then
10021 for toolkit in `echo $ALL_TOOLKITS`; do
10022 var=wxUSE_$toolkit
10023 eval "value=\$${var}"
10024 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10025 done
10026 else
10027 for toolkit in `echo $ALL_TOOLKITS`; do
10028 if test "$has_toolkit_in_cache" != 1; then
10029 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10030 else
10031 var=DEFAULT_wxUSE_$toolkit
10032 fi
10033 eval "wxUSE_$toolkit=\$${var}"
10034 done
10035 fi
10036
10037 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10038 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10039 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10040
10041 case "${host}" in
10042 *-pc-os2_emx | *-pc-os2-emx )
10043 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10044 esac
10045
10046 case "$NUM_TOOLKITS" in
10047 1)
10048 ;;
10049 0)
10050 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10051echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10052 { (exit 1); exit 1; }; }
10053 ;;
10054 *)
10055 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10056echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10057 { (exit 1); exit 1; }; }
10058 esac
10059
10060 for toolkit in `echo $ALL_TOOLKITS`; do
10061 var=wxUSE_$toolkit
10062 eval "value=\$${var}"
10063 if test "x$value" != x; then
10064 cache_var=CACHE_$toolkit
10065 eval "cache=\$${cache_var}"
10066 if test "$cache" = 1; then
10067 echo "$var=$value" >> ${wx_arg_cache_file}
10068 fi
10069 if test "$value" = 1; then
10070 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10071 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10072echo "${ECHO_T}$toolkit_echo" >&6
10073 fi
10074 fi
10075 done
10076else
10077 if test "x$host_alias" != "x"; then
10078 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10079echo "${ECHO_T}base ($host_alias hosted) only" >&6
10080 else
10081 echo "$as_me:$LINENO: result: base only" >&5
10082echo "${ECHO_T}base only" >&6
10083 fi
10084fi
10085
10086wants_win32=0
10087doesnt_want_win32=0
10088case "${host}" in
10089 *-*-cygwin*)
10090 if test "$wxUSE_MSW" = 1 ; then
10091 wants_win32=1
10092 else
10093 doesnt_want_win32=1
10094 fi
10095 ;;
10096 *-*-mingw*)
10097 wants_win32=1
10098 ;;
10099esac
10100
10101if test "$wxUSE_WINE" = "yes"; then
10102 wants_win32=1
10103 CC=winegcc
10104 CXX=wineg++
10105 RESCOMP=wrc
10106 LDFLAGS_GUI="-mwindows"
10107fi
10108
10109if test "$wants_win32" = 1 ; then
10110 USE_UNIX=0
10111 USE_WIN32=1
10112 cat >>confdefs.h <<\_ACEOF
10113#define __WIN32__ 1
10114_ACEOF
10115
10116 cat >>confdefs.h <<\_ACEOF
10117#define __WIN95__ 1
10118_ACEOF
10119
10120 cat >>confdefs.h <<\_ACEOF
10121#define __WINDOWS__ 1
10122_ACEOF
10123
10124 cat >>confdefs.h <<\_ACEOF
10125#define __GNUWIN32__ 1
10126_ACEOF
10127
10128 cat >>confdefs.h <<\_ACEOF
10129#define STRICT 1
10130_ACEOF
10131
10132 cat >>confdefs.h <<\_ACEOF
10133#define WINVER 0x0400
10134_ACEOF
10135
10136fi
10137if test "$doesnt_want_win32" = 1 ; then
10138 USE_UNIX=1
10139 USE_WIN32=0
10140fi
10141
10142if test "$USE_UNIX" = 1 ; then
10143 wxUSE_UNIX=yes
10144 cat >>confdefs.h <<\_ACEOF
10145#define __UNIX__ 1
10146_ACEOF
10147
10148fi
10149
10150
10151cat >confcache <<\_ACEOF
10152# This file is a shell script that caches the results of configure
10153# tests run on this system so they can be shared between configure
10154# scripts and configure runs, see configure's option --config-cache.
10155# It is not useful on other systems. If it contains results you don't
10156# want to keep, you may remove or edit it.
10157#
10158# config.status only pays attention to the cache file if you give it
10159# the --recheck option to rerun configure.
10160#
10161# `ac_cv_env_foo' variables (set or unset) will be overridden when
10162# loading this file, other *unset* `ac_cv_foo' will be assigned the
10163# following values.
10164
10165_ACEOF
10166
10167# The following way of writing the cache mishandles newlines in values,
10168# but we know of no workaround that is simple, portable, and efficient.
10169# So, don't put newlines in cache variables' values.
10170# Ultrix sh set writes to stderr and can't be redirected directly,
10171# and sets the high bit in the cache file unless we assign to the vars.
10172{
10173 (set) 2>&1 |
10174 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10175 *ac_space=\ *)
10176 # `set' does not quote correctly, so add quotes (double-quote
10177 # substitution turns \\\\ into \\, and sed turns \\ into \).
10178 sed -n \
ac1cb8d3
VS
10179 "s/'/'\\\\''/g;
10180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10181 ;;
10182 *)
10183 # `set' quotes correctly as required by POSIX, so do not add quotes.
10184 sed -n \
ac1cb8d3 10185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10186 ;;
10187 esac;
10188} |
10189 sed '
10190 t clear
10191 : clear
10192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10193 t end
10194 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10195 : end' >>confcache
10196if diff $cache_file confcache >/dev/null 2>&1; then :; else
10197 if test -w $cache_file; then
10198 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10199 cat confcache >$cache_file
10200 else
10201 echo "not updating unwritable cache $cache_file"
10202 fi
10203fi
10204rm -f confcache
10205
10206if test "$build" != "$host" ; then
10207 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10208 CC=$host_alias-gcc
10209 CXX=$host_alias-c++
10210 AR=$host_alias-ar
10211 RANLIB=$host_alias-ranlib
10212 DLLTOOL=$host_alias-dlltool
10213 RESCOMP=$host_alias-windres
10214 LD=$host_alias-ld
10215 NM=$host_alias-nm
10216 STRIP=$host_alias-strip
10217 else
10218 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10219echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10220 { (exit 1); exit 1; }; }
10221 fi
10222fi
10223
10224CFLAGS=${CFLAGS:=}
10225ac_ext=c
10226ac_cpp='$CPP $CPPFLAGS'
10227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10229ac_compiler_gnu=$ac_cv_c_compiler_gnu
10230if test -n "$ac_tool_prefix"; then
10231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10232set dummy ${ac_tool_prefix}gcc; ac_word=$2
10233echo "$as_me:$LINENO: checking for $ac_word" >&5
10234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10235if test "${ac_cv_prog_CC+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238 if test -n "$CC"; then
10239 ac_cv_prog_CC="$CC" # Let the user override the test.
10240else
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253done
10254
10255fi
10256fi
10257CC=$ac_cv_prog_CC
10258if test -n "$CC"; then
10259 echo "$as_me:$LINENO: result: $CC" >&5
10260echo "${ECHO_T}$CC" >&6
10261else
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
10264fi
10265
10266fi
10267if test -z "$ac_cv_prog_CC"; then
10268 ac_ct_CC=$CC
10269 # Extract the first word of "gcc", so it can be a program name with args.
10270set dummy gcc; ac_word=$2
10271echo "$as_me:$LINENO: checking for $ac_word" >&5
10272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276 if test -n "$ac_ct_CC"; then
10277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10278else
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286 ac_cv_prog_ac_ct_CC="gcc"
10287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10289 fi
10290done
10291done
10292
10293fi
10294fi
10295ac_ct_CC=$ac_cv_prog_ac_ct_CC
10296if test -n "$ac_ct_CC"; then
10297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10298echo "${ECHO_T}$ac_ct_CC" >&6
10299else
10300 echo "$as_me:$LINENO: result: no" >&5
10301echo "${ECHO_T}no" >&6
10302fi
10303
10304 CC=$ac_ct_CC
10305else
10306 CC="$ac_cv_prog_CC"
10307fi
10308
10309if test -z "$CC"; then
10310 if test -n "$ac_tool_prefix"; then
10311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10312set dummy ${ac_tool_prefix}cc; ac_word=$2
10313echo "$as_me:$LINENO: checking for $ac_word" >&5
10314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10315if test "${ac_cv_prog_CC+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318 if test -n "$CC"; then
10319 ac_cv_prog_CC="$CC" # Let the user override the test.
10320else
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_CC="${ac_tool_prefix}cc"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332done
10333done
10334
10335fi
10336fi
10337CC=$ac_cv_prog_CC
10338if test -n "$CC"; then
10339 echo "$as_me:$LINENO: result: $CC" >&5
10340echo "${ECHO_T}$CC" >&6
10341else
10342 echo "$as_me:$LINENO: result: no" >&5
10343echo "${ECHO_T}no" >&6
10344fi
10345
10346fi
10347if test -z "$ac_cv_prog_CC"; then
10348 ac_ct_CC=$CC
10349 # Extract the first word of "cc", so it can be a program name with args.
10350set dummy cc; ac_word=$2
10351echo "$as_me:$LINENO: checking for $ac_word" >&5
10352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10353if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356 if test -n "$ac_ct_CC"; then
10357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10358else
10359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360for as_dir in $PATH
10361do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 for ac_exec_ext in '' $ac_executable_extensions; do
10365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10366 ac_cv_prog_ac_ct_CC="cc"
10367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370done
10371done
10372
10373fi
10374fi
10375ac_ct_CC=$ac_cv_prog_ac_ct_CC
10376if test -n "$ac_ct_CC"; then
10377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10378echo "${ECHO_T}$ac_ct_CC" >&6
10379else
10380 echo "$as_me:$LINENO: result: no" >&5
10381echo "${ECHO_T}no" >&6
10382fi
10383
10384 CC=$ac_ct_CC
10385else
10386 CC="$ac_cv_prog_CC"
10387fi
10388
10389fi
10390if test -z "$CC"; then
10391 # Extract the first word of "cc", so it can be a program name with args.
10392set dummy cc; ac_word=$2
10393echo "$as_me:$LINENO: checking for $ac_word" >&5
10394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10395if test "${ac_cv_prog_CC+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398 if test -n "$CC"; then
10399 ac_cv_prog_CC="$CC" # Let the user override the test.
10400else
10401 ac_prog_rejected=no
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10410 ac_prog_rejected=yes
10411 continue
10412 fi
10413 ac_cv_prog_CC="cc"
10414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10416 fi
10417done
10418done
10419
10420if test $ac_prog_rejected = yes; then
10421 # We found a bogon in the path, so make sure we never use it.
10422 set dummy $ac_cv_prog_CC
10423 shift
10424 if test $# != 0; then
10425 # We chose a different compiler from the bogus one.
10426 # However, it has the same basename, so the bogon will be chosen
10427 # first if we set CC to just the basename; use the full file name.
10428 shift
10429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10430 fi
10431fi
10432fi
10433fi
10434CC=$ac_cv_prog_CC
10435if test -n "$CC"; then
10436 echo "$as_me:$LINENO: result: $CC" >&5
10437echo "${ECHO_T}$CC" >&6
10438else
10439 echo "$as_me:$LINENO: result: no" >&5
10440echo "${ECHO_T}no" >&6
10441fi
10442
10443fi
10444if test -z "$CC"; then
10445 if test -n "$ac_tool_prefix"; then
10446 for ac_prog in cl
10447 do
10448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10449set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10450echo "$as_me:$LINENO: checking for $ac_word" >&5
10451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10452if test "${ac_cv_prog_CC+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 if test -n "$CC"; then
10456 ac_cv_prog_CC="$CC" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10468 fi
10469done
10470done
10471
10472fi
10473fi
10474CC=$ac_cv_prog_CC
10475if test -n "$CC"; then
10476 echo "$as_me:$LINENO: result: $CC" >&5
10477echo "${ECHO_T}$CC" >&6
10478else
10479 echo "$as_me:$LINENO: result: no" >&5
10480echo "${ECHO_T}no" >&6
10481fi
10482
10483 test -n "$CC" && break
10484 done
10485fi
10486if test -z "$CC"; then
10487 ac_ct_CC=$CC
10488 for ac_prog in cl
10489do
10490 # Extract the first word of "$ac_prog", so it can be a program name with args.
10491set dummy $ac_prog; ac_word=$2
10492echo "$as_me:$LINENO: checking for $ac_word" >&5
10493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10494if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496else
10497 if test -n "$ac_ct_CC"; then
10498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_ac_ct_CC="$ac_prog"
10508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10510 fi
10511done
10512done
10513
10514fi
10515fi
10516ac_ct_CC=$ac_cv_prog_ac_ct_CC
10517if test -n "$ac_ct_CC"; then
10518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10519echo "${ECHO_T}$ac_ct_CC" >&6
10520else
10521 echo "$as_me:$LINENO: result: no" >&5
10522echo "${ECHO_T}no" >&6
10523fi
10524
10525 test -n "$ac_ct_CC" && break
10526done
10527
10528 CC=$ac_ct_CC
10529fi
10530
10531fi
10532
10533
10534test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10535See \`config.log' for more details." >&5
10536echo "$as_me: error: no acceptable C compiler found in \$PATH
10537See \`config.log' for more details." >&2;}
10538 { (exit 1); exit 1; }; }
10539
10540# Provide some information about the compiler.
10541echo "$as_me:$LINENO:" \
10542 "checking for C compiler version" >&5
10543ac_compiler=`set X $ac_compile; echo $2`
10544{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10545 (eval $ac_compiler --version </dev/null >&5) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }
10549{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10550 (eval $ac_compiler -v </dev/null >&5) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }
10554{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10555 (eval $ac_compiler -V </dev/null >&5) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }
10559
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566
10567int
10568main ()
10569{
10570
10571 ;
10572 return 0;
10573}
10574_ACEOF
10575ac_clean_files_save=$ac_clean_files
10576ac_clean_files="$ac_clean_files a.out a.exe b.out"
10577# Try to create an executable without -o first, disregard a.out.
10578# It will help us diagnose broken compilers, and finding out an intuition
10579# of exeext.
ac1cb8d3
VS
10580echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10581echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10582ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10583if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10584 (eval $ac_link_default) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; then
10588 # Find the output, starting from the most likely. This scheme is
10589# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10590# resort.
10591
10592# Be careful to initialize this variable, since it used to be cached.
10593# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10594ac_cv_exeext=
10595# b.out is created by i960 compilers.
10596for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10597do
10598 test -f "$ac_file" || continue
10599 case $ac_file in
10600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10601 ;;
a848cd7e 10602 conftest.$ac_ext )
ac1cb8d3
VS
10603 # This is the source file.
10604 ;;
a848cd7e 10605 [ab].out )
ac1cb8d3
VS
10606 # We found the default executable, but exeext='' is most
10607 # certainly right.
10608 break;;
a848cd7e 10609 *.* )
ac1cb8d3
VS
10610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10611 # FIXME: I believe we export ac_cv_exeext for Libtool,
10612 # but it would be cool to find out if it's true. Does anybody
10613 # maintain Libtool? --akim.
10614 export ac_cv_exeext
10615 break;;
a848cd7e 10616 * )
ac1cb8d3 10617 break;;
a848cd7e
SC
10618 esac
10619done
10620else
10621 echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10625See \`config.log' for more details." >&5
10626echo "$as_me: error: C compiler cannot create executables
10627See \`config.log' for more details." >&2;}
10628 { (exit 77); exit 77; }; }
10629fi
10630
10631ac_exeext=$ac_cv_exeext
10632echo "$as_me:$LINENO: result: $ac_file" >&5
10633echo "${ECHO_T}$ac_file" >&6
10634
10635# Check the compiler produces executables we can run. If not, either
10636# the compiler is broken, or we cross compile.
10637echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10638echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10639# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10640# If not cross compiling, check that we can run a simple program.
10641if test "$cross_compiling" != yes; then
10642 if { ac_try='./$ac_file'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 cross_compiling=no
10649 else
10650 if test "$cross_compiling" = maybe; then
10651 cross_compiling=yes
10652 else
10653 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10654If you meant to cross compile, use \`--host'.
10655See \`config.log' for more details." >&5
10656echo "$as_me: error: cannot run C compiled programs.
10657If you meant to cross compile, use \`--host'.
10658See \`config.log' for more details." >&2;}
10659 { (exit 1); exit 1; }; }
10660 fi
10661 fi
10662fi
10663echo "$as_me:$LINENO: result: yes" >&5
10664echo "${ECHO_T}yes" >&6
10665
10666rm -f a.out a.exe conftest$ac_cv_exeext b.out
10667ac_clean_files=$ac_clean_files_save
10668# Check the compiler produces executables we can run. If not, either
10669# the compiler is broken, or we cross compile.
10670echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10671echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10672echo "$as_me:$LINENO: result: $cross_compiling" >&5
10673echo "${ECHO_T}$cross_compiling" >&6
10674
10675echo "$as_me:$LINENO: checking for suffix of executables" >&5
10676echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678 (eval $ac_link) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; then
10682 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10683# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10684# work properly (i.e., refer to `conftest.exe'), while it won't with
10685# `rm'.
10686for ac_file in conftest.exe conftest conftest.*; do
10687 test -f "$ac_file" || continue
10688 case $ac_file in
10689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10690 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10691 export ac_cv_exeext
10692 break;;
a848cd7e
SC
10693 * ) break;;
10694 esac
10695done
10696else
10697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10698See \`config.log' for more details." >&5
10699echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10700See \`config.log' for more details." >&2;}
10701 { (exit 1); exit 1; }; }
10702fi
10703
10704rm -f conftest$ac_cv_exeext
10705echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10706echo "${ECHO_T}$ac_cv_exeext" >&6
10707
10708rm -f conftest.$ac_ext
10709EXEEXT=$ac_cv_exeext
10710ac_exeext=$EXEEXT
10711echo "$as_me:$LINENO: checking for suffix of object files" >&5
10712echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10713if test "${ac_cv_objext+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
10722
10723int
10724main ()
10725{
10726
10727 ;
10728 return 0;
10729}
10730_ACEOF
10731rm -f conftest.o conftest.obj
10732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733 (eval $ac_compile) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; then
10737 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10738 case $ac_file in
10739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10741 break;;
10742 esac
10743done
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10749See \`config.log' for more details." >&5
10750echo "$as_me: error: cannot compute suffix of object files: cannot compile
10751See \`config.log' for more details." >&2;}
10752 { (exit 1); exit 1; }; }
10753fi
10754
10755rm -f conftest.$ac_cv_objext conftest.$ac_ext
10756fi
10757echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10758echo "${ECHO_T}$ac_cv_objext" >&6
10759OBJEXT=$ac_cv_objext
10760ac_objext=$OBJEXT
10761echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10762echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10763if test "${ac_cv_c_compiler_gnu+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765else
10766 cat >conftest.$ac_ext <<_ACEOF
10767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
10772
10773int
10774main ()
10775{
10776#ifndef __GNUC__
10777 choke me
10778#endif
10779
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext
10785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10786 (eval $ac_compile) 2>conftest.er1
a848cd7e 10787 ac_status=$?
ac1cb8d3
VS
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
a848cd7e
SC
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
4d4ff94c 10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_compiler_gnu=yes
10806else
10807 echo "$as_me: failed program was:" >&5
10808sed 's/^/| /' conftest.$ac_ext >&5
10809
10810ac_compiler_gnu=no
10811fi
ac1cb8d3 10812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10813ac_cv_c_compiler_gnu=$ac_compiler_gnu
10814
10815fi
10816echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10817echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10818GCC=`test $ac_compiler_gnu = yes && echo yes`
10819ac_test_CFLAGS=${CFLAGS+set}
10820ac_save_CFLAGS=$CFLAGS
10821CFLAGS="-g"
10822echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10823echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10824if test "${ac_cv_prog_cc_g+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826else
10827 cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
10832/* end confdefs.h. */
10833
10834int
10835main ()
10836{
10837
10838 ;
10839 return 0;
10840}
10841_ACEOF
10842rm -f conftest.$ac_objext
10843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10844 (eval $ac_compile) 2>conftest.er1
a848cd7e 10845 ac_status=$?
ac1cb8d3
VS
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
a848cd7e
SC
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
4d4ff94c 10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; } &&
10857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_prog_cc_g=yes
10864else
10865 echo "$as_me: failed program was:" >&5
10866sed 's/^/| /' conftest.$ac_ext >&5
10867
10868ac_cv_prog_cc_g=no
10869fi
ac1cb8d3 10870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10871fi
10872echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10873echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10874if test "$ac_test_CFLAGS" = set; then
10875 CFLAGS=$ac_save_CFLAGS
10876elif test $ac_cv_prog_cc_g = yes; then
10877 if test "$GCC" = yes; then
10878 CFLAGS="-g -O2"
10879 else
10880 CFLAGS="-g"
10881 fi
10882else
10883 if test "$GCC" = yes; then
10884 CFLAGS="-O2"
10885 else
10886 CFLAGS=
10887 fi
10888fi
10889echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10890echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10891if test "${ac_cv_prog_cc_stdc+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894 ac_cv_prog_cc_stdc=no
10895ac_save_CC=$CC
10896cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10902#include <stdarg.h>
10903#include <stdio.h>
10904#include <sys/types.h>
10905#include <sys/stat.h>
10906/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10907struct buf { int x; };
10908FILE * (*rcsopen) (struct buf *, struct stat *, int);
10909static char *e (p, i)
10910 char **p;
10911 int i;
10912{
10913 return p[i];
10914}
10915static char *f (char * (*g) (char **, int), char **p, ...)
10916{
10917 char *s;
10918 va_list v;
10919 va_start (v,p);
10920 s = g (p, va_arg (v,int));
10921 va_end (v);
10922 return s;
10923}
ac1cb8d3
VS
10924
10925/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10926 function prototypes and stuff, but not '\xHH' hex character constants.
10927 These don't provoke an error unfortunately, instead are silently treated
10928 as 'x'. The following induces an error, until -std1 is added to get
10929 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10930 array size at least. It's necessary to write '\x00'==0 to get something
10931 that's true only with -std1. */
10932int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10933
a848cd7e
SC
10934int test (int i, double x);
10935struct s1 {int (*f) (int a);};
10936struct s2 {int (*f) (double a);};
10937int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10938int argc;
10939char **argv;
10940int
10941main ()
10942{
10943return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10944 ;
10945 return 0;
10946}
10947_ACEOF
10948# Don't try gcc -ansi; that turns off useful extensions and
10949# breaks some systems' header files.
10950# AIX -qlanglvl=ansi
10951# Ultrix and OSF/1 -std1
10952# HP-UX 10.20 and later -Ae
10953# HP-UX older versions -Aa -D_HPUX_SOURCE
10954# SVR4 -Xc -D__EXTENSIONS__
10955for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10956do
10957 CC="$ac_save_CC $ac_arg"
10958 rm -f conftest.$ac_objext
10959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10960 (eval $ac_compile) 2>conftest.er1
a848cd7e 10961 ac_status=$?
ac1cb8d3
VS
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
a848cd7e
SC
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
4d4ff94c 10967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_prog_cc_stdc=$ac_arg
10980break
10981else
10982 echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985fi
ac1cb8d3 10986rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10987done
10988rm -f conftest.$ac_ext conftest.$ac_objext
10989CC=$ac_save_CC
10990
10991fi
10992
10993case "x$ac_cv_prog_cc_stdc" in
10994 x|xno)
10995 echo "$as_me:$LINENO: result: none needed" >&5
10996echo "${ECHO_T}none needed" >&6 ;;
10997 *)
10998 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10999echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11000 CC="$CC $ac_cv_prog_cc_stdc" ;;
11001esac
11002
11003# Some people use a C++ compiler to compile C. Since we use `exit',
11004# in C++ we need to declare it. In case someone uses the same compiler
11005# for both compiling C and C++ we need to have the C++ compiler decide
11006# the declaration of exit, since it's the most demanding environment.
11007cat >conftest.$ac_ext <<_ACEOF
11008#ifndef __cplusplus
11009 choke me
11010#endif
11011_ACEOF
11012rm -f conftest.$ac_objext
11013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11014 (eval $ac_compile) 2>conftest.er1
a848cd7e 11015 ac_status=$?
ac1cb8d3
VS
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
a848cd7e
SC
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
4d4ff94c 11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 for ac_declaration in \
ac1cb8d3 11034 '' \
a848cd7e
SC
11035 'extern "C" void std::exit (int) throw (); using std::exit;' \
11036 'extern "C" void std::exit (int); using std::exit;' \
11037 'extern "C" void exit (int) throw ();' \
11038 'extern "C" void exit (int);' \
11039 'void exit (int);'
11040do
11041 cat >conftest.$ac_ext <<_ACEOF
11042/* confdefs.h. */
11043_ACEOF
11044cat confdefs.h >>conftest.$ac_ext
11045cat >>conftest.$ac_ext <<_ACEOF
11046/* end confdefs.h. */
de59c161 11047$ac_declaration
ac1cb8d3 11048#include <stdlib.h>
a848cd7e
SC
11049int
11050main ()
11051{
11052exit (42);
11053 ;
11054 return 0;
11055}
11056_ACEOF
11057rm -f conftest.$ac_objext
11058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11059 (eval $ac_compile) 2>conftest.er1
a848cd7e 11060 ac_status=$?
ac1cb8d3
VS
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
a848cd7e
SC
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
4d4ff94c 11066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 :
11079else
11080 echo "$as_me: failed program was:" >&5
11081sed 's/^/| /' conftest.$ac_ext >&5
11082
11083continue
11084fi
ac1cb8d3 11085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11086 cat >conftest.$ac_ext <<_ACEOF
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
11091/* end confdefs.h. */
11092$ac_declaration
11093int
11094main ()
11095{
11096exit (42);
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101rm -f conftest.$ac_objext
11102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11103 (eval $ac_compile) 2>conftest.er1
a848cd7e 11104 ac_status=$?
ac1cb8d3
VS
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
a848cd7e
SC
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
4d4ff94c 11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 break
11123else
11124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
11127fi
ac1cb8d3 11128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11129done
11130rm -f conftest*
11131if test -n "$ac_declaration"; then
11132 echo '#ifdef __cplusplus' >>confdefs.h
11133 echo $ac_declaration >>confdefs.h
11134 echo '#endif' >>confdefs.h
11135fi
11136
11137else
11138 echo "$as_me: failed program was:" >&5
11139sed 's/^/| /' conftest.$ac_ext >&5
11140
11141fi
ac1cb8d3 11142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11143ac_ext=c
11144ac_cpp='$CPP $CPPFLAGS'
11145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11147ac_compiler_gnu=$ac_cv_c_compiler_gnu
11148
11149
11150
11151ac_ext=c
11152ac_cpp='$CPP $CPPFLAGS'
11153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11155ac_compiler_gnu=$ac_cv_c_compiler_gnu
11156echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11157echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11158# On Suns, sometimes $CPP names a directory.
11159if test -n "$CPP" && test -d "$CPP"; then
11160 CPP=
11161fi
11162if test -z "$CPP"; then
11163 if test "${ac_cv_prog_CPP+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11165else
11166 # Double quotes because CPP needs to be expanded
11167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11168 do
11169 ac_preproc_ok=false
11170for ac_c_preproc_warn_flag in '' yes
11171do
11172 # Use a header file that comes with gcc, so configuring glibc
11173 # with a fresh cross-compiler works.
11174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 # <limits.h> exists even on freestanding compilers.
11176 # On the NeXT, cc -E runs the code through the compiler's parser,
11177 # not just through cpp. "Syntax error" is here to catch this case.
11178 cat >conftest.$ac_ext <<_ACEOF
11179/* confdefs.h. */
11180_ACEOF
11181cat confdefs.h >>conftest.$ac_ext
11182cat >>conftest.$ac_ext <<_ACEOF
11183/* end confdefs.h. */
11184#ifdef __STDC__
11185# include <limits.h>
11186#else
11187# include <assert.h>
11188#endif
ac1cb8d3 11189 Syntax error
a848cd7e
SC
11190_ACEOF
11191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11193 ac_status=$?
11194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } >/dev/null; then
11199 if test -s conftest.err; then
11200 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11202 else
11203 ac_cpp_err=
11204 fi
11205else
11206 ac_cpp_err=yes
11207fi
11208if test -z "$ac_cpp_err"; then
11209 :
11210else
11211 echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 # Broken: fails on valid input.
11215continue
11216fi
11217rm -f conftest.err conftest.$ac_ext
11218
11219 # OK, works on sane cases. Now check whether non-existent headers
11220 # can be detected and how.
11221 cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227#include <ac_nonexistent.h>
11228_ACEOF
11229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } >/dev/null; then
11237 if test -s conftest.err; then
11238 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11240 else
11241 ac_cpp_err=
11242 fi
11243else
11244 ac_cpp_err=yes
11245fi
11246if test -z "$ac_cpp_err"; then
11247 # Broken: success on invalid input.
11248continue
11249else
11250 echo "$as_me: failed program was:" >&5
11251sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 # Passes both tests.
11254ac_preproc_ok=:
11255break
11256fi
11257rm -f conftest.err conftest.$ac_ext
11258
11259done
11260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11261rm -f conftest.err conftest.$ac_ext
11262if $ac_preproc_ok; then
11263 break
11264fi
11265
11266 done
11267 ac_cv_prog_CPP=$CPP
11268
11269fi
11270 CPP=$ac_cv_prog_CPP
11271else
11272 ac_cv_prog_CPP=$CPP
11273fi
11274echo "$as_me:$LINENO: result: $CPP" >&5
11275echo "${ECHO_T}$CPP" >&6
11276ac_preproc_ok=false
11277for ac_c_preproc_warn_flag in '' yes
11278do
11279 # Use a header file that comes with gcc, so configuring glibc
11280 # with a fresh cross-compiler works.
11281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11282 # <limits.h> exists even on freestanding compilers.
11283 # On the NeXT, cc -E runs the code through the compiler's parser,
11284 # not just through cpp. "Syntax error" is here to catch this case.
11285 cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291#ifdef __STDC__
11292# include <limits.h>
11293#else
11294# include <assert.h>
11295#endif
ac1cb8d3 11296 Syntax error
a848cd7e
SC
11297_ACEOF
11298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } >/dev/null; then
11306 if test -s conftest.err; then
11307 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11309 else
11310 ac_cpp_err=
11311 fi
11312else
11313 ac_cpp_err=yes
11314fi
11315if test -z "$ac_cpp_err"; then
11316 :
11317else
11318 echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 # Broken: fails on valid input.
11322continue
11323fi
11324rm -f conftest.err conftest.$ac_ext
11325
11326 # OK, works on sane cases. Now check whether non-existent headers
11327 # can be detected and how.
11328 cat >conftest.$ac_ext <<_ACEOF
11329/* confdefs.h. */
11330_ACEOF
11331cat confdefs.h >>conftest.$ac_ext
11332cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */
11334#include <ac_nonexistent.h>
11335_ACEOF
11336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null; then
11344 if test -s conftest.err; then
11345 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11347 else
11348 ac_cpp_err=
11349 fi
11350else
11351 ac_cpp_err=yes
11352fi
11353if test -z "$ac_cpp_err"; then
11354 # Broken: success on invalid input.
11355continue
11356else
11357 echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 # Passes both tests.
11361ac_preproc_ok=:
11362break
11363fi
11364rm -f conftest.err conftest.$ac_ext
11365
11366done
11367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11368rm -f conftest.err conftest.$ac_ext
11369if $ac_preproc_ok; then
11370 :
11371else
11372 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11373See \`config.log' for more details." >&5
11374echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11375See \`config.log' for more details." >&2;}
11376 { (exit 1); exit 1; }; }
11377fi
11378
11379ac_ext=c
11380ac_cpp='$CPP $CPPFLAGS'
11381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11383ac_compiler_gnu=$ac_cv_c_compiler_gnu
11384
11385
11386echo "$as_me:$LINENO: checking for egrep" >&5
11387echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11388if test "${ac_cv_prog_egrep+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11392 then ac_cv_prog_egrep='grep -E'
11393 else ac_cv_prog_egrep='egrep'
11394 fi
11395fi
11396echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11397echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11398 EGREP=$ac_cv_prog_egrep
11399
11400
11401if test $ac_cv_c_compiler_gnu = yes; then
11402 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11403echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11404if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 ac_pattern="Autoconf.*'x'"
11408 cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414#include <sgtty.h>
11415Autoconf TIOCGETP
11416_ACEOF
11417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11418 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11419 ac_cv_prog_gcc_traditional=yes
11420else
11421 ac_cv_prog_gcc_traditional=no
11422fi
11423rm -f conftest*
11424
11425
11426 if test $ac_cv_prog_gcc_traditional = no; then
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433#include <termio.h>
11434Autoconf TCGETA
11435_ACEOF
11436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11438 ac_cv_prog_gcc_traditional=yes
11439fi
11440rm -f conftest*
11441
11442 fi
11443fi
11444echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11445echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11446 if test $ac_cv_prog_gcc_traditional = yes; then
11447 CC="$CC -traditional"
11448 fi
11449fi
11450
11451
11452
11453
11454ac_ext=cc
11455ac_cpp='$CXXCPP $CPPFLAGS'
11456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11459
11460
11461CXXFLAGS=${CXXFLAGS:=}
11462ac_ext=cc
11463ac_cpp='$CXXCPP $CPPFLAGS'
11464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11467if test -n "$ac_tool_prefix"; then
11468 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11469 do
11470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11472echo "$as_me:$LINENO: checking for $ac_word" >&5
11473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11474if test "${ac_cv_prog_CXX+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476else
11477 if test -n "$CXX"; then
11478 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11479else
11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11490 fi
11491done
11492done
11493
11494fi
11495fi
11496CXX=$ac_cv_prog_CXX
11497if test -n "$CXX"; then
11498 echo "$as_me:$LINENO: result: $CXX" >&5
11499echo "${ECHO_T}$CXX" >&6
11500else
11501 echo "$as_me:$LINENO: result: no" >&5
11502echo "${ECHO_T}no" >&6
11503fi
11504
11505 test -n "$CXX" && break
11506 done
11507fi
11508if test -z "$CXX"; then
11509 ac_ct_CXX=$CXX
11510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11511do
11512 # Extract the first word of "$ac_prog", so it can be a program name with args.
11513set dummy $ac_prog; ac_word=$2
11514echo "$as_me:$LINENO: checking for $ac_word" >&5
11515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 if test -n "$ac_ct_CXX"; then
11520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_ac_ct_CXX="$ac_prog"
11530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533done
11534done
11535
11536fi
11537fi
11538ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11539if test -n "$ac_ct_CXX"; then
11540 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11541echo "${ECHO_T}$ac_ct_CXX" >&6
11542else
11543 echo "$as_me:$LINENO: result: no" >&5
11544echo "${ECHO_T}no" >&6
11545fi
11546
11547 test -n "$ac_ct_CXX" && break
11548done
11549test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11550
11551 CXX=$ac_ct_CXX
11552fi
11553
11554
11555# Provide some information about the compiler.
11556echo "$as_me:$LINENO:" \
11557 "checking for C++ compiler version" >&5
11558ac_compiler=`set X $ac_compile; echo $2`
11559{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11560 (eval $ac_compiler --version </dev/null >&5) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }
11564{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11565 (eval $ac_compiler -v </dev/null >&5) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }
11569{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11570 (eval $ac_compiler -V </dev/null >&5) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }
11574
11575echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11576echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11577if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11579else
11580 cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
11586
11587int
11588main ()
11589{
11590#ifndef __GNUC__
11591 choke me
11592#endif
11593
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext
11599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11600 (eval $ac_compile) 2>conftest.er1
a848cd7e 11601 ac_status=$?
ac1cb8d3
VS
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
a848cd7e
SC
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
4d4ff94c 11607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_compiler_gnu=yes
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624ac_compiler_gnu=no
11625fi
ac1cb8d3 11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11627ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11628
11629fi
11630echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11631echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11632GXX=`test $ac_compiler_gnu = yes && echo yes`
11633ac_test_CXXFLAGS=${CXXFLAGS+set}
11634ac_save_CXXFLAGS=$CXXFLAGS
11635CXXFLAGS="-g"
11636echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11637echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11638if test "${ac_cv_prog_cxx_g+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647
11648int
11649main ()
11650{
11651
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext
11657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11658 (eval $ac_compile) 2>conftest.er1
a848cd7e 11659 ac_status=$?
ac1cb8d3
VS
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
a848cd7e
SC
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
4d4ff94c 11665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 ac_cv_prog_cxx_g=yes
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682ac_cv_prog_cxx_g=no
11683fi
ac1cb8d3 11684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11685fi
11686echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11687echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11688if test "$ac_test_CXXFLAGS" = set; then
11689 CXXFLAGS=$ac_save_CXXFLAGS
11690elif test $ac_cv_prog_cxx_g = yes; then
11691 if test "$GXX" = yes; then
11692 CXXFLAGS="-g -O2"
11693 else
11694 CXXFLAGS="-g"
11695 fi
11696else
11697 if test "$GXX" = yes; then
11698 CXXFLAGS="-O2"
11699 else
11700 CXXFLAGS=
11701 fi
11702fi
11703for ac_declaration in \
ac1cb8d3 11704 '' \
a848cd7e
SC
11705 'extern "C" void std::exit (int) throw (); using std::exit;' \
11706 'extern "C" void std::exit (int); using std::exit;' \
11707 'extern "C" void exit (int) throw ();' \
11708 'extern "C" void exit (int);' \
11709 'void exit (int);'
11710do
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
de59c161 11717$ac_declaration
ac1cb8d3 11718#include <stdlib.h>
a848cd7e
SC
11719int
11720main ()
11721{
11722exit (42);
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11729 (eval $ac_compile) 2>conftest.er1
a848cd7e 11730 ac_status=$?
ac1cb8d3
VS
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
a848cd7e
SC
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
4d4ff94c 11736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 :
11749else
11750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753continue
11754fi
ac1cb8d3 11755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11756 cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
11762$ac_declaration
11763int
11764main ()
11765{
11766exit (42);
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11773 (eval $ac_compile) 2>conftest.er1
a848cd7e 11774 ac_status=$?
ac1cb8d3
VS
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
a848cd7e
SC
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
4d4ff94c 11780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 break
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797fi
ac1cb8d3 11798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11799done
11800rm -f conftest*
11801if test -n "$ac_declaration"; then
11802 echo '#ifdef __cplusplus' >>confdefs.h
11803 echo $ac_declaration >>confdefs.h
11804 echo '#endif' >>confdefs.h
11805fi
11806
11807ac_ext=cc
11808ac_cpp='$CXXCPP $CPPFLAGS'
11809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11812
11813
11814ac_ext=c
11815ac_cpp='$CPP $CPPFLAGS'
11816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818ac_compiler_gnu=$ac_cv_c_compiler_gnu
11819
11820
a848cd7e
SC
11821if test -n "$ac_tool_prefix"; then
11822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11824echo "$as_me:$LINENO: checking for $ac_word" >&5
11825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11826if test "${ac_cv_prog_RANLIB+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 if test -n "$RANLIB"; then
11830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844done
11845
11846fi
11847fi
11848RANLIB=$ac_cv_prog_RANLIB
11849if test -n "$RANLIB"; then
11850 echo "$as_me:$LINENO: result: $RANLIB" >&5
11851echo "${ECHO_T}$RANLIB" >&6
11852else
11853 echo "$as_me:$LINENO: result: no" >&5
11854echo "${ECHO_T}no" >&6
11855fi
11856
11857fi
11858if test -z "$ac_cv_prog_RANLIB"; then
11859 ac_ct_RANLIB=$RANLIB
11860 # Extract the first word of "ranlib", so it can be a program name with args.
11861set dummy ranlib; ac_word=$2
11862echo "$as_me:$LINENO: checking for $ac_word" >&5
11863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11864if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 if test -n "$ac_ct_RANLIB"; then
11868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $PATH
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877 ac_cv_prog_ac_ct_RANLIB="ranlib"
11878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11880 fi
11881done
11882done
11883
11884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11885fi
11886fi
11887ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11888if test -n "$ac_ct_RANLIB"; then
11889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11890echo "${ECHO_T}$ac_ct_RANLIB" >&6
11891else
11892 echo "$as_me:$LINENO: result: no" >&5
11893echo "${ECHO_T}no" >&6
11894fi
11895
11896 RANLIB=$ac_ct_RANLIB
11897else
11898 RANLIB="$ac_cv_prog_RANLIB"
11899fi
11900
11901
11902# Extract the first word of "ar", so it can be a program name with args.
11903set dummy ar; ac_word=$2
11904echo "$as_me:$LINENO: checking for $ac_word" >&5
11905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11906if test "${ac_cv_prog_AR+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 if test -n "$AR"; then
11910 ac_cv_prog_AR="$AR" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_AR="ar"
11920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923done
11924done
11925
11926fi
11927fi
11928AR=$ac_cv_prog_AR
11929if test -n "$AR"; then
11930 echo "$as_me:$LINENO: result: $AR" >&5
11931echo "${ECHO_T}$AR" >&6
11932else
11933 echo "$as_me:$LINENO: result: no" >&5
11934echo "${ECHO_T}no" >&6
11935fi
11936
11937if test "x$AR" = "x" ; then
77ffb593
JS
11938 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11939echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11940 { (exit 1); exit 1; }; }
11941fi
11942
11943# Find a good install program. We prefer a C program (faster),
11944# so one script is as good as another. But avoid the broken or
11945# incompatible versions:
11946# SysV /etc/install, /usr/sbin/install
11947# SunOS /usr/etc/install
11948# IRIX /sbin/install
11949# AIX /bin/install
11950# AmigaOS /C/install, which installs bootblocks on floppy discs
11951# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11952# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11953# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11954# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11955# ./install, which can be erroneously created by make from ./install.sh.
11956echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11957echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11958if test -z "$INSTALL"; then
11959if test "${ac_cv_path_install+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 # Account for people who put trailing slashes in PATH elements.
11968case $as_dir/ in
11969 ./ | .// | /cC/* | \
11970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11971 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11972 /usr/ucb/* ) ;;
11973 *)
11974 # OSF1 and SCO ODT 3.0 have their own names for install.
11975 # Don't use installbsd from OSF since it installs stuff as root
11976 # by default.
11977 for ac_prog in ginstall scoinst install; do
11978 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11979 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11980 if test $ac_prog = install &&
11981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11982 # AIX install. It has an incompatible calling convention.
11983 :
11984 elif test $ac_prog = install &&
11985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11986 # program-specific install script used by HP pwplus--don't use.
11987 :
11988 else
11989 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11990 break 3
11991 fi
11992 fi
a848cd7e
SC
11993 done
11994 done
11995 ;;
11996esac
11997done
11998
11999
12000fi
12001 if test "${ac_cv_path_install+set}" = set; then
12002 INSTALL=$ac_cv_path_install
12003 else
12004 # As a last resort, use the slow shell script. We don't cache a
12005 # path for INSTALL within a source directory, because that will
12006 # break other packages using the cache if that directory is
12007 # removed, or if the path is relative.
12008 INSTALL=$ac_install_sh
12009 fi
12010fi
12011echo "$as_me:$LINENO: result: $INSTALL" >&5
12012echo "${ECHO_T}$INSTALL" >&6
12013
12014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12015# It thinks the first close brace ends the variable substitution.
12016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12017
12018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12019
12020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12021
12022
12023case ${INSTALL} in
12024 /* ) # Absolute
12025 ;;
12026 ?:* ) # Drive letter, considered as absolute.
12027 ;;
12028 *)
12029 INSTALL=`pwd`/${INSTALL} ;;
12030esac
12031
a848cd7e
SC
12032
12033case "${host}" in
12034
12035 powerpc-*-darwin* )
12036 INSTALL_PROGRAM="cp -fp"
12037 INSTALL_DATA="cp -fp"
12038 ;;
12039 *)
12040 ;;
12041esac
12042
12043# Extract the first word of "strip", so it can be a program name with args.
12044set dummy strip; ac_word=$2
12045echo "$as_me:$LINENO: checking for $ac_word" >&5
12046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12047if test "${ac_cv_prog_STRIP+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 if test -n "$STRIP"; then
12051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12052else
12053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054for as_dir in $PATH
12055do
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12060 ac_cv_prog_STRIP="strip"
12061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 break 2
12063 fi
12064done
12065done
12066
12067 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12068fi
12069fi
12070STRIP=$ac_cv_prog_STRIP
12071if test -n "$STRIP"; then
12072 echo "$as_me:$LINENO: result: $STRIP" >&5
12073echo "${ECHO_T}$STRIP" >&6
12074else
12075 echo "$as_me:$LINENO: result: no" >&5
12076echo "${ECHO_T}no" >&6
12077fi
12078
12079
12080echo "$as_me:$LINENO: checking if make is GNU make" >&5
12081echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12082if test "${wx_cv_prog_makeisgnu+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084else
12085
12086 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12087 egrep -s GNU > /dev/null); then
12088 wx_cv_prog_makeisgnu="yes"
12089 else
12090 wx_cv_prog_makeisgnu="no"
12091 fi
12092
12093fi
12094echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12095echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12096
12097if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12098 IF_GNU_MAKE=""
12099else
12100 IF_GNU_MAKE="#"
12101fi
12102
12103
12104
12105if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12106echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12107echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12108if test "${wx_cv_prog_makevpath+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111
12112cat - << EOF > confMake
12113check : file
12114 cp \$? \$@
12115 cp \$? final_file
12116EOF
12117
12118if test ! -d sub ; then
12119 mkdir sub
12120fi
12121echo dummy > sub/file
12122${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12123RESULT=$?
12124rm -f sub/file check final_file confMake
12125rmdir sub
12126if test "$RESULT" = 0; then
12127 wx_cv_prog_makevpath="yes"
12128else
12129 wx_cv_prog_makevpath="no"
12130fi
12131
12132fi
12133echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12134echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12135
12136if test "x$wx_cv_prog_makevpath" != "xyes"; then
12137{ { echo "$as_me:$LINENO: error:
12138You need a make-utility that is able to use the variable
12139VPATH correctly.
12140If your version of make does not support VPATH correctly,
12141please install GNU-make (possibly as gmake), and start
12142configure with the following command:
12143export MAKE=gmake; ./configure for sh-type shells
12144setenv MAKE gmake; ./configure for csh-type shells
12145Also please do remember to use gmake in this case every time
12146you are trying to compile.
12147" >&5
12148echo "$as_me: error:
12149You need a make-utility that is able to use the variable
12150VPATH correctly.
12151If your version of make does not support VPATH correctly,
12152please install GNU-make (possibly as gmake), and start
12153configure with the following command:
12154export MAKE=gmake; ./configure for sh-type shells
12155setenv MAKE gmake; ./configure for csh-type shells
12156Also please do remember to use gmake in this case every time
12157you are trying to compile.
12158" >&2;}
12159 { (exit 1); exit 1; }; }
12160fi fi
12161echo "$as_me:$LINENO: checking whether ln -s works" >&5
12162echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12163LN_S=$as_ln_s
12164if test "$LN_S" = "ln -s"; then
12165 echo "$as_me:$LINENO: result: yes" >&5
12166echo "${ECHO_T}yes" >&6
12167else
12168 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12169echo "${ECHO_T}no, using $LN_S" >&6
12170fi
12171
12172
12173
12174case "${host}" in
12175 *-pc-os2_emx | *-pc-os2-emx )
12176 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12177 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12178echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12179if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182 ac_check_lib_save_LIBS=$LIBS
12183LIBS="-lcExt $LIBS"
12184cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
12190
12191/* Override any gcc2 internal prototype to avoid an error. */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195/* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197char drand48 ();
12198int
12199main ()
12200{
12201drand48 ();
12202 ;
12203 return 0;
12204}
12205_ACEOF
12206rm -f conftest.$ac_objext conftest$ac_exeext
12207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12208 (eval $ac_link) 2>conftest.er1
a848cd7e 12209 ac_status=$?
ac1cb8d3
VS
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
a848cd7e
SC
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
4d4ff94c 12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_cExt_drand48=yes
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232ac_cv_lib_cExt_drand48=no
12233fi
ac1cb8d3
VS
12234rm -f conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12236LIBS=$ac_check_lib_save_LIBS
12237fi
12238echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12239echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12240if test $ac_cv_lib_cExt_drand48 = yes; then
12241 LIBS="$LIBS -lcExt"
12242fi
12243
12244 else
12245 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12246 fi
12247 echo "$as_me:$LINENO: checking for gcc version" >&5
12248echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12249if test "${wx_cv_gccversion+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252
12253 cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h. */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h. */
12259
12260int
12261main ()
12262{
12263
12264 #if (__GNUC__ < 3)
12265 #error old gcc
12266 #endif
12267
12268 ;
12269 return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext
12273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12274 (eval $ac_compile) 2>conftest.er1
a848cd7e 12275 ac_status=$?
ac1cb8d3
VS
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
a848cd7e
SC
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
4d4ff94c 12281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; } &&
12287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293
12294 cat >conftest.$ac_ext <<_ACEOF
12295/* confdefs.h. */
12296_ACEOF
12297cat confdefs.h >>conftest.$ac_ext
12298cat >>conftest.$ac_ext <<_ACEOF
12299/* end confdefs.h. */
12300
12301int
12302main ()
12303{
12304
12305 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12306 #error intermediate gcc
12307 #endif
12308
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313rm -f conftest.$ac_objext
12314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12315 (eval $ac_compile) 2>conftest.er1
a848cd7e 12316 ac_status=$?
ac1cb8d3
VS
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
a848cd7e
SC
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
4d4ff94c 12322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334
12335 wx_cv_gccversion=Innotek
12336
12337else
12338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341
12342 wx_cv_gccversion=3
12343
12344
12345fi
ac1cb8d3 12346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12347
12348else
12349 echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
12352
12353 wx_cv_gccversion=2
12354
12355
12356fi
ac1cb8d3 12357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12358
12359fi
12360echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12361echo "${ECHO_T}$wx_cv_gccversion" >&6
12362 if test "$wx_cv_gccversion" = "2"; then
12363 LIBS="$LIBS -lstdcpp"
12364 LDFLAGS="$LDFLAGS -Zsysv-signals"
12365 else
12366 if test "$wx_cv_gccversion" = "3"; then
12367 LIBS="$LIBS -lstdcxx"
12368 LDFLAGS="$LDFLAGS -Zsysv-signals"
12369 else
12370 LIBS="$LIBS -lstdc++"
12371 fi
12372 fi
12373 if test "$wxUSE_OMF" = "yes"; then
de59c161 12374 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12375 fi
12376 ;;
12377 *)
12378
12379
12380
12381 ac_ext=cc
12382ac_cpp='$CXXCPP $CPPFLAGS'
12383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12386
12387
12388
12389echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12390echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12391if test "${ac_cv_string_strcasecmp+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394
12395 cat >conftest.$ac_ext <<_ACEOF
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
12401
12402 #include <string.h>
12403
12404int
12405main ()
12406{
12407
12408 strcasecmp("foo", "bar");
12409
12410 ;
12411 return 0;
12412}
12413_ACEOF
12414rm -f conftest.$ac_objext conftest$ac_exeext
12415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12416 (eval $ac_link) 2>conftest.er1
a848cd7e 12417 ac_status=$?
ac1cb8d3
VS
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
a848cd7e
SC
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
4d4ff94c 12423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_string_strcasecmp=yes
12436else
12437 echo "$as_me: failed program was:" >&5
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
12440ac_cv_string_strcasecmp=no
12441
12442fi
ac1cb8d3
VS
12443rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12445
12446fi
12447echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12448echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12449
12450 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12451 cat >>confdefs.h <<\_ACEOF
12452#define HAVE_STRCASECMP_IN_STRING_H 1
12453_ACEOF
12454
12455 else
12456 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12457echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12458if test "${ac_cv_strings_strcasecmp+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460else
12461
12462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
12468
12469 #include <strings.h>
12470
12471int
12472main ()
12473{
12474
12475 strcasecmp("foo", "bar");
12476
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext conftest$ac_exeext
12482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12483 (eval $ac_link) 2>conftest.er1
a848cd7e 12484 ac_status=$?
ac1cb8d3
VS
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
a848cd7e
SC
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
4d4ff94c 12490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_strings_strcasecmp=yes
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507ac_cv_strings_strcasecmp=no
12508
12509fi
ac1cb8d3
VS
12510rm -f conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12512
12513fi
12514echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12515echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12516
0c3c69fc 12517 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12518 cat >>confdefs.h <<\_ACEOF
12519#define HAVE_STRCASECMP_IN_STRINGS_H 1
12520_ACEOF
12521
12522 else
12523 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12524echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12525 { (exit 1); exit 1; }; }
12526 fi
12527 fi
12528
12529 ac_ext=c
12530ac_cpp='$CPP $CPPFLAGS'
12531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533ac_compiler_gnu=$ac_cv_c_compiler_gnu
12534
12535 ;;
12536esac
12537
12538
12539echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12541if test "${ac_cv_header_stdc+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544 cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550#include <stdlib.h>
12551#include <stdarg.h>
12552#include <string.h>
12553#include <float.h>
12554
12555int
12556main ()
12557{
12558
12559 ;
12560 return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext
12564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12565 (eval $ac_compile) 2>conftest.er1
a848cd7e 12566 ac_status=$?
ac1cb8d3
VS
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
a848cd7e
SC
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
4d4ff94c 12572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 ac_cv_header_stdc=yes
12585else
12586 echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589ac_cv_header_stdc=no
12590fi
ac1cb8d3 12591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12592
12593if test $ac_cv_header_stdc = yes; then
12594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601#include <string.h>
12602
12603_ACEOF
12604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12605 $EGREP "memchr" >/dev/null 2>&1; then
12606 :
12607else
12608 ac_cv_header_stdc=no
12609fi
12610rm -f conftest*
12611
12612fi
12613
12614if test $ac_cv_header_stdc = yes; then
12615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622#include <stdlib.h>
12623
12624_ACEOF
12625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12626 $EGREP "free" >/dev/null 2>&1; then
12627 :
12628else
12629 ac_cv_header_stdc=no
12630fi
12631rm -f conftest*
12632
12633fi
12634
12635if test $ac_cv_header_stdc = yes; then
12636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12637 if test "$cross_compiling" = yes; then
12638 :
12639else
12640 cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646#include <ctype.h>
12647#if ((' ' & 0x0FF) == 0x020)
12648# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12649# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12650#else
12651# define ISLOWER(c) \
ac1cb8d3
VS
12652 (('a' <= (c) && (c) <= 'i') \
12653 || ('j' <= (c) && (c) <= 'r') \
12654 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12655# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12656#endif
12657
12658#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12659int
12660main ()
12661{
12662 int i;
12663 for (i = 0; i < 256; i++)
12664 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12665 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12666 exit(2);
12667 exit (0);
12668}
12669_ACEOF
12670rm -f conftest$ac_exeext
12671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 :
12682else
12683 echo "$as_me: program exited with status $ac_status" >&5
12684echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
12687( exit $ac_status )
12688ac_cv_header_stdc=no
12689fi
ac1cb8d3 12690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12691fi
12692fi
12693fi
12694echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12695echo "${ECHO_T}$ac_cv_header_stdc" >&6
12696if test $ac_cv_header_stdc = yes; then
12697
12698cat >>confdefs.h <<\_ACEOF
12699#define STDC_HEADERS 1
12700_ACEOF
12701
12702fi
12703
12704# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12715 inttypes.h stdint.h unistd.h
a848cd7e
SC
12716do
12717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718echo "$as_me:$LINENO: checking for $ac_header" >&5
12719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12720if eval "test \"\${$as_ac_Header+set}\" = set"; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729$ac_includes_default
12730
12731#include <$ac_header>
12732_ACEOF
12733rm -f conftest.$ac_objext
12734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12735 (eval $ac_compile) 2>conftest.er1
a848cd7e 12736 ac_status=$?
ac1cb8d3
VS
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
a848cd7e
SC
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
4d4ff94c 12742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 eval "$as_ac_Header=yes"
12755else
12756 echo "$as_me: failed program was:" >&5
12757sed 's/^/| /' conftest.$ac_ext >&5
12758
12759eval "$as_ac_Header=no"
12760fi
ac1cb8d3 12761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12762fi
12763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12765if test `eval echo '${'$as_ac_Header'}'` = yes; then
12766 cat >>confdefs.h <<_ACEOF
12767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12768_ACEOF
12769
12770fi
12771
12772done
12773
12774
12775
12776for ac_header in stdlib.h
12777do
12778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779if eval "test \"\${$as_ac_Header+set}\" = set"; then
12780 echo "$as_me:$LINENO: checking for $ac_header" >&5
12781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784fi
12785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12787else
12788 # Is the header compilable?
12789echo "$as_me:$LINENO: checking $ac_header usability" >&5
12790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798#include <$ac_header>
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12802 (eval $ac_compile) 2>conftest.er1
a848cd7e 12803 ac_status=$?
ac1cb8d3
VS
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
a848cd7e
SC
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
4d4ff94c 12809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 ac_header_compiler=yes
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826ac_header_compiler=no
12827fi
ac1cb8d3 12828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830echo "${ECHO_T}$ac_header_compiler" >&6
12831
12832# Is the header present?
12833echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12835cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841#include <$ac_header>
12842_ACEOF
12843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } >/dev/null; then
12851 if test -s conftest.err; then
12852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12854 else
12855 ac_cpp_err=
12856 fi
12857else
12858 ac_cpp_err=yes
12859fi
12860if test -z "$ac_cpp_err"; then
12861 ac_header_preproc=yes
12862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_header_preproc=no
12867fi
12868rm -f conftest.err conftest.$ac_ext
12869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12870echo "${ECHO_T}$ac_header_preproc" >&6
12871
12872# So? What about this header?
ac1cb8d3
VS
12873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12874 yes:no: )
a848cd7e
SC
12875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12879 ac_header_preproc=yes
a848cd7e 12880 ;;
ac1cb8d3 12881 no:yes:* )
a848cd7e
SC
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12894 (
12895 cat <<\_ASBOX
ac1cb8d3
VS
12896## ----------------------------------------- ##
12897## Report this to wx-dev@lists.wxwidgets.org ##
12898## ----------------------------------------- ##
a848cd7e
SC
12899_ASBOX
12900 ) |
12901 sed "s/^/$as_me: WARNING: /" >&2
12902 ;;
12903esac
12904echo "$as_me:$LINENO: checking for $ac_header" >&5
12905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12906if eval "test \"\${$as_ac_Header+set}\" = set"; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908else
ac1cb8d3 12909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12910fi
12911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12913
12914fi
12915if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12918_ACEOF
12919
12920fi
12921
12922done
12923
12924
12925for ac_header in malloc.h
12926do
12927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo "$as_me:$LINENO: checking for $ac_header" >&5
12930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933fi
12934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936else
12937 # Is the header compilable?
12938echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946$ac_includes_default
12947#include <$ac_header>
12948_ACEOF
12949rm -f conftest.$ac_objext
12950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12951 (eval $ac_compile) 2>conftest.er1
a848cd7e 12952 ac_status=$?
ac1cb8d3
VS
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
a848cd7e
SC
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
4d4ff94c 12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_header_compiler=yes
12971else
12972 echo "$as_me: failed program was:" >&5
12973sed 's/^/| /' conftest.$ac_ext >&5
12974
12975ac_header_compiler=no
12976fi
ac1cb8d3 12977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12979echo "${ECHO_T}$ac_header_compiler" >&6
12980
12981# Is the header present?
12982echo "$as_me:$LINENO: checking $ac_header presence" >&5
12983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12984cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h. */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
12989/* end confdefs.h. */
12990#include <$ac_header>
12991_ACEOF
12992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } >/dev/null; then
13000 if test -s conftest.err; then
13001 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13003 else
13004 ac_cpp_err=
13005 fi
13006else
13007 ac_cpp_err=yes
13008fi
13009if test -z "$ac_cpp_err"; then
13010 ac_header_preproc=yes
13011else
13012 echo "$as_me: failed program was:" >&5
13013sed 's/^/| /' conftest.$ac_ext >&5
13014
13015 ac_header_preproc=no
13016fi
13017rm -f conftest.err conftest.$ac_ext
13018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13019echo "${ECHO_T}$ac_header_preproc" >&6
13020
13021# So? What about this header?
ac1cb8d3
VS
13022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13023 yes:no: )
a848cd7e
SC
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13028 ac_header_preproc=yes
a848cd7e 13029 ;;
ac1cb8d3 13030 no:yes:* )
a848cd7e
SC
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13043 (
13044 cat <<\_ASBOX
ac1cb8d3
VS
13045## ----------------------------------------- ##
13046## Report this to wx-dev@lists.wxwidgets.org ##
13047## ----------------------------------------- ##
a848cd7e
SC
13048_ASBOX
13049 ) |
13050 sed "s/^/$as_me: WARNING: /" >&2
13051 ;;
13052esac
13053echo "$as_me:$LINENO: checking for $ac_header" >&5
13054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13055if eval "test \"\${$as_ac_Header+set}\" = set"; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
ac1cb8d3 13058 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13059fi
13060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13062
13063fi
13064if test `eval echo '${'$as_ac_Header'}'` = yes; then
13065 cat >>confdefs.h <<_ACEOF
13066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13067_ACEOF
13068
13069fi
13070
13071done
13072
13073
13074for ac_header in unistd.h
13075do
13076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13077if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078 echo "$as_me:$LINENO: checking for $ac_header" >&5
13079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13080if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082fi
13083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13085else
13086 # Is the header compilable?
13087echo "$as_me:$LINENO: checking $ac_header usability" >&5
13088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13089cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h. */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h. */
13095$ac_includes_default
13096#include <$ac_header>
13097_ACEOF
13098rm -f conftest.$ac_objext
13099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13100 (eval $ac_compile) 2>conftest.er1
a848cd7e 13101 ac_status=$?
ac1cb8d3
VS
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
a848cd7e
SC
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
4d4ff94c 13107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler=yes
13120else
13121 echo "$as_me: failed program was:" >&5
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
13124ac_header_compiler=no
13125fi
ac1cb8d3 13126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128echo "${ECHO_T}$ac_header_compiler" >&6
13129
13130# Is the header present?
13131echo "$as_me:$LINENO: checking $ac_header presence" >&5
13132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139#include <$ac_header>
13140_ACEOF
13141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } >/dev/null; then
13149 if test -s conftest.err; then
13150 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13152 else
13153 ac_cpp_err=
13154 fi
13155else
13156 ac_cpp_err=yes
13157fi
13158if test -z "$ac_cpp_err"; then
13159 ac_header_preproc=yes
13160else
13161 echo "$as_me: failed program was:" >&5
13162sed 's/^/| /' conftest.$ac_ext >&5
13163
13164 ac_header_preproc=no
13165fi
13166rm -f conftest.err conftest.$ac_ext
13167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168echo "${ECHO_T}$ac_header_preproc" >&6
13169
13170# So? What about this header?
ac1cb8d3
VS
13171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13172 yes:no: )
a848cd7e
SC
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13177 ac_header_preproc=yes
a848cd7e 13178 ;;
ac1cb8d3 13179 no:yes:* )
a848cd7e
SC
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13192 (
13193 cat <<\_ASBOX
ac1cb8d3
VS
13194## ----------------------------------------- ##
13195## Report this to wx-dev@lists.wxwidgets.org ##
13196## ----------------------------------------- ##
a848cd7e
SC
13197_ASBOX
13198 ) |
13199 sed "s/^/$as_me: WARNING: /" >&2
13200 ;;
13201esac
13202echo "$as_me:$LINENO: checking for $ac_header" >&5
13203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13204if eval "test \"\${$as_ac_Header+set}\" = set"; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
ac1cb8d3 13207 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13208fi
13209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13211
13212fi
13213if test `eval echo '${'$as_ac_Header'}'` = yes; then
13214 cat >>confdefs.h <<_ACEOF
13215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13216_ACEOF
13217
13218fi
13219
13220done
13221
13222
13223for ac_header in wchar.h
13224do
13225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13226if eval "test \"\${$as_ac_Header+set}\" = set"; then
13227 echo "$as_me:$LINENO: checking for $ac_header" >&5
13228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13229if eval "test \"\${$as_ac_Header+set}\" = set"; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231fi
13232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13234else
13235 # Is the header compilable?
13236echo "$as_me:$LINENO: checking $ac_header usability" >&5
13237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13238cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h. */
13244$ac_includes_default
13245#include <$ac_header>
13246_ACEOF
13247rm -f conftest.$ac_objext
13248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13249 (eval $ac_compile) 2>conftest.er1
a848cd7e 13250 ac_status=$?
ac1cb8d3
VS
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
a848cd7e
SC
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
4d4ff94c 13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_header_compiler=yes
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273ac_header_compiler=no
13274fi
ac1cb8d3 13275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13276echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13277echo "${ECHO_T}$ac_header_compiler" >&6
13278
13279# Is the header present?
13280echo "$as_me:$LINENO: checking $ac_header presence" >&5
13281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13282cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288#include <$ac_header>
13289_ACEOF
13290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } >/dev/null; then
13298 if test -s conftest.err; then
13299 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13301 else
13302 ac_cpp_err=
13303 fi
13304else
13305 ac_cpp_err=yes
13306fi
13307if test -z "$ac_cpp_err"; then
13308 ac_header_preproc=yes
13309else
13310 echo "$as_me: failed program was:" >&5
13311sed 's/^/| /' conftest.$ac_ext >&5
13312
13313 ac_header_preproc=no
13314fi
13315rm -f conftest.err conftest.$ac_ext
13316echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13317echo "${ECHO_T}$ac_header_preproc" >&6
13318
13319# So? What about this header?
ac1cb8d3
VS
13320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13321 yes:no: )
a848cd7e
SC
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13326 ac_header_preproc=yes
a848cd7e 13327 ;;
ac1cb8d3 13328 no:yes:* )
a848cd7e
SC
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13341 (
13342 cat <<\_ASBOX
ac1cb8d3
VS
13343## ----------------------------------------- ##
13344## Report this to wx-dev@lists.wxwidgets.org ##
13345## ----------------------------------------- ##
a848cd7e
SC
13346_ASBOX
13347 ) |
13348 sed "s/^/$as_me: WARNING: /" >&2
13349 ;;
13350esac
13351echo "$as_me:$LINENO: checking for $ac_header" >&5
13352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13353if eval "test \"\${$as_ac_Header+set}\" = set"; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
ac1cb8d3 13356 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13357fi
13358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13360
13361fi
13362if test `eval echo '${'$as_ac_Header'}'` = yes; then
13363 cat >>confdefs.h <<_ACEOF
13364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13365_ACEOF
13366
13367fi
13368
13369done
13370
13371
13372if test "$ac_cv_header_wchar_h" != "yes"; then
13373
13374for ac_header in wcstr.h
13375do
13376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13377if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378 echo "$as_me:$LINENO: checking for $ac_header" >&5
13379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13380if eval "test \"\${$as_ac_Header+set}\" = set"; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382fi
13383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13385else
13386 # Is the header compilable?
13387echo "$as_me:$LINENO: checking $ac_header usability" >&5
13388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13389cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395$ac_includes_default
13396#include <$ac_header>
13397_ACEOF
13398rm -f conftest.$ac_objext
13399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13400 (eval $ac_compile) 2>conftest.er1
a848cd7e 13401 ac_status=$?
ac1cb8d3
VS
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
a848cd7e
SC
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
4d4ff94c 13407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_header_compiler=yes
13420else
13421 echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
13424ac_header_compiler=no
13425fi
ac1cb8d3 13426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13427echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13428echo "${ECHO_T}$ac_header_compiler" >&6
13429
13430# Is the header present?
13431echo "$as_me:$LINENO: checking $ac_header presence" >&5
13432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13433cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439#include <$ac_header>
13440_ACEOF
13441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } >/dev/null; then
13449 if test -s conftest.err; then
13450 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13452 else
13453 ac_cpp_err=
13454 fi
13455else
13456 ac_cpp_err=yes
13457fi
13458if test -z "$ac_cpp_err"; then
13459 ac_header_preproc=yes
13460else
13461 echo "$as_me: failed program was:" >&5
13462sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ac_header_preproc=no
13465fi
13466rm -f conftest.err conftest.$ac_ext
13467echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13468echo "${ECHO_T}$ac_header_preproc" >&6
13469
13470# So? What about this header?
ac1cb8d3
VS
13471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13472 yes:no: )
a848cd7e
SC
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13477 ac_header_preproc=yes
a848cd7e 13478 ;;
ac1cb8d3 13479 no:yes:* )
a848cd7e
SC
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13492 (
13493 cat <<\_ASBOX
ac1cb8d3
VS
13494## ----------------------------------------- ##
13495## Report this to wx-dev@lists.wxwidgets.org ##
13496## ----------------------------------------- ##
a848cd7e
SC
13497_ASBOX
13498 ) |
13499 sed "s/^/$as_me: WARNING: /" >&2
13500 ;;
13501esac
13502echo "$as_me:$LINENO: checking for $ac_header" >&5
13503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13504if eval "test \"\${$as_ac_Header+set}\" = set"; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506else
ac1cb8d3 13507 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13508fi
13509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13511
13512fi
13513if test `eval echo '${'$as_ac_Header'}'` = yes; then
13514 cat >>confdefs.h <<_ACEOF
13515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13516_ACEOF
13517
13518fi
13519
13520done
13521
13522fi
13523
13524
13525for ac_header in fnmatch.h
13526do
13527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13528if eval "test \"\${$as_ac_Header+set}\" = set"; then
13529 echo "$as_me:$LINENO: checking for $ac_header" >&5
13530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13531if eval "test \"\${$as_ac_Header+set}\" = set"; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533fi
13534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13536else
13537 # Is the header compilable?
13538echo "$as_me:$LINENO: checking $ac_header usability" >&5
13539echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13540cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546$ac_includes_default
13547#include <$ac_header>
13548_ACEOF
13549rm -f conftest.$ac_objext
13550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13551 (eval $ac_compile) 2>conftest.er1
a848cd7e 13552 ac_status=$?
ac1cb8d3
VS
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
a848cd7e
SC
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
4d4ff94c 13558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 ac_header_compiler=yes
13571else
13572 echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
13575ac_header_compiler=no
13576fi
ac1cb8d3 13577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13579echo "${ECHO_T}$ac_header_compiler" >&6
13580
13581# Is the header present?
13582echo "$as_me:$LINENO: checking $ac_header presence" >&5
13583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
13590#include <$ac_header>
13591_ACEOF
13592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } >/dev/null; then
13600 if test -s conftest.err; then
13601 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13603 else
13604 ac_cpp_err=
13605 fi
13606else
13607 ac_cpp_err=yes
13608fi
13609if test -z "$ac_cpp_err"; then
13610 ac_header_preproc=yes
13611else
13612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 ac_header_preproc=no
13616fi
13617rm -f conftest.err conftest.$ac_ext
13618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13619echo "${ECHO_T}$ac_header_preproc" >&6
13620
13621# So? What about this header?
ac1cb8d3
VS
13622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13623 yes:no: )
a848cd7e
SC
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13628 ac_header_preproc=yes
a848cd7e 13629 ;;
ac1cb8d3 13630 no:yes:* )
a848cd7e
SC
13631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13643 (
13644 cat <<\_ASBOX
ac1cb8d3
VS
13645## ----------------------------------------- ##
13646## Report this to wx-dev@lists.wxwidgets.org ##
13647## ----------------------------------------- ##
a848cd7e
SC
13648_ASBOX
13649 ) |
13650 sed "s/^/$as_me: WARNING: /" >&2
13651 ;;
13652esac
13653echo "$as_me:$LINENO: checking for $ac_header" >&5
13654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13655if eval "test \"\${$as_ac_Header+set}\" = set"; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657else
ac1cb8d3 13658 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13659fi
13660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13662
13663fi
13664if test `eval echo '${'$as_ac_Header'}'` = yes; then
13665 cat >>confdefs.h <<_ACEOF
13666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13667_ACEOF
13668
13669fi
13670
13671done
13672
13673
13674if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13675
13676for ac_func in fnmatch
13677do
13678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13679echo "$as_me:$LINENO: checking for $ac_func" >&5
13680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13681if eval "test \"\${$as_ac_var+set}\" = set"; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
ac1cb8d3
VS
13690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13692#define $ac_func innocuous_$ac_func
13693
a848cd7e
SC
13694/* System header to define __stub macros and hopefully few prototypes,
13695 which can conflict with char $ac_func (); below.
13696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13697 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13698
a848cd7e
SC
13699#ifdef __STDC__
13700# include <limits.h>
13701#else
13702# include <assert.h>
13703#endif
ac1cb8d3
VS
13704
13705#undef $ac_func
13706
a848cd7e
SC
13707/* Override any gcc2 internal prototype to avoid an error. */
13708#ifdef __cplusplus
13709extern "C"
13710{
13711#endif
13712/* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13714char $ac_func ();
13715/* The GNU C library defines this for functions which it implements
13716 to always fail with ENOSYS. Some functions are actually named
13717 something starting with __ and the normal name is an alias. */
13718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13719choke me
13720#else
13721char (*f) () = $ac_func;
13722#endif
13723#ifdef __cplusplus
13724}
13725#endif
13726
13727int
13728main ()
13729{
13730return f != $ac_func;
13731 ;
13732 return 0;
13733}
13734_ACEOF
13735rm -f conftest.$ac_objext conftest$ac_exeext
13736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13737 (eval $ac_link) 2>conftest.er1
a848cd7e 13738 ac_status=$?
ac1cb8d3
VS
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
a848cd7e
SC
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
4d4ff94c 13744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } &&
13750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 eval "$as_ac_var=yes"
13757else
13758 echo "$as_me: failed program was:" >&5
13759sed 's/^/| /' conftest.$ac_ext >&5
13760
13761eval "$as_ac_var=no"
13762fi
ac1cb8d3
VS
13763rm -f conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13765fi
13766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13767echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13768if test `eval echo '${'$as_ac_var'}'` = yes; then
13769 cat >>confdefs.h <<_ACEOF
13770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13771_ACEOF
13772
13773fi
13774done
13775
13776fi
13777
13778
13779for ac_header in langinfo.h
13780do
13781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13782if eval "test \"\${$as_ac_Header+set}\" = set"; then
13783 echo "$as_me:$LINENO: checking for $ac_header" >&5
13784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13785if eval "test \"\${$as_ac_Header+set}\" = set"; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787fi
13788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13790else
13791 # Is the header compilable?
13792echo "$as_me:$LINENO: checking $ac_header usability" >&5
13793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13794cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
13799/* end confdefs.h. */
13800$ac_includes_default
13801#include <$ac_header>
13802_ACEOF
13803rm -f conftest.$ac_objext
13804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13805 (eval $ac_compile) 2>conftest.er1
a848cd7e 13806 ac_status=$?
ac1cb8d3
VS
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
a848cd7e
SC
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
4d4ff94c 13812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_header_compiler=yes
13825else
13826 echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829ac_header_compiler=no
13830fi
ac1cb8d3 13831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13833echo "${ECHO_T}$ac_header_compiler" >&6
13834
13835# Is the header present?
13836echo "$as_me:$LINENO: checking $ac_header presence" >&5
13837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13838cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
13844#include <$ac_header>
13845_ACEOF
13846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null; then
13854 if test -s conftest.err; then
13855 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13857 else
13858 ac_cpp_err=
13859 fi
13860else
13861 ac_cpp_err=yes
13862fi
13863if test -z "$ac_cpp_err"; then
13864 ac_header_preproc=yes
13865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ac_header_preproc=no
13870fi
13871rm -f conftest.err conftest.$ac_ext
13872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13873echo "${ECHO_T}$ac_header_preproc" >&6
13874
13875# So? What about this header?
ac1cb8d3
VS
13876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13877 yes:no: )
a848cd7e
SC
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13882 ac_header_preproc=yes
a848cd7e 13883 ;;
ac1cb8d3 13884 no:yes:* )
a848cd7e
SC
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13897 (
13898 cat <<\_ASBOX
ac1cb8d3
VS
13899## ----------------------------------------- ##
13900## Report this to wx-dev@lists.wxwidgets.org ##
13901## ----------------------------------------- ##
a848cd7e
SC
13902_ASBOX
13903 ) |
13904 sed "s/^/$as_me: WARNING: /" >&2
13905 ;;
13906esac
13907echo "$as_me:$LINENO: checking for $ac_header" >&5
13908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13909if eval "test \"\${$as_ac_Header+set}\" = set"; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13911else
ac1cb8d3 13912 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13913fi
13914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13916
13917fi
13918if test `eval echo '${'$as_ac_Header'}'` = yes; then
13919 cat >>confdefs.h <<_ACEOF
13920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13921_ACEOF
13922
13923fi
13924
13925done
13926
13927
13928case "${host}" in
13929 *-pc-os2_emx | *-pc-os2-emx )
13930 if test $ac_cv_header_langinfo_h = "yes"; then
13931 LIBS="$LIBS -lintl"
13932 fi
13933 ;;
13934esac
13935
13936if test "$wxUSE_GUI" = "yes"; then
13937 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13938
13939for ac_header in X11/Xlib.h
13940do
13941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942if eval "test \"\${$as_ac_Header+set}\" = set"; then
13943 echo "$as_me:$LINENO: checking for $ac_header" >&5
13944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13945if eval "test \"\${$as_ac_Header+set}\" = set"; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947fi
13948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13950else
13951 # Is the header compilable?
13952echo "$as_me:$LINENO: checking $ac_header usability" >&5
13953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13954cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960$ac_includes_default
13961#include <$ac_header>
13962_ACEOF
13963rm -f conftest.$ac_objext
13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13965 (eval $ac_compile) 2>conftest.er1
a848cd7e 13966 ac_status=$?
ac1cb8d3
VS
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
a848cd7e
SC
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
4d4ff94c 13972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_header_compiler=yes
13985else
13986 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5
13988
13989ac_header_compiler=no
13990fi
ac1cb8d3 13991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993echo "${ECHO_T}$ac_header_compiler" >&6
13994
13995# Is the header present?
13996echo "$as_me:$LINENO: checking $ac_header presence" >&5
13997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13998cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
14004#include <$ac_header>
14005_ACEOF
14006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } >/dev/null; then
14014 if test -s conftest.err; then
14015 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14017 else
14018 ac_cpp_err=
14019 fi
14020else
14021 ac_cpp_err=yes
14022fi
14023if test -z "$ac_cpp_err"; then
14024 ac_header_preproc=yes
14025else
14026 echo "$as_me: failed program was:" >&5
14027sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 ac_header_preproc=no
14030fi
14031rm -f conftest.err conftest.$ac_ext
14032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033echo "${ECHO_T}$ac_header_preproc" >&6
14034
14035# So? What about this header?
ac1cb8d3
VS
14036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037 yes:no: )
a848cd7e
SC
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042 ac_header_preproc=yes
a848cd7e 14043 ;;
ac1cb8d3 14044 no:yes:* )
a848cd7e
SC
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14057 (
14058 cat <<\_ASBOX
ac1cb8d3
VS
14059## ----------------------------------------- ##
14060## Report this to wx-dev@lists.wxwidgets.org ##
14061## ----------------------------------------- ##
a848cd7e
SC
14062_ASBOX
14063 ) |
14064 sed "s/^/$as_me: WARNING: /" >&2
14065 ;;
14066esac
14067echo "$as_me:$LINENO: checking for $ac_header" >&5
14068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
ac1cb8d3 14072 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14073fi
14074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076
14077fi
14078if test `eval echo '${'$as_ac_Header'}'` = yes; then
14079 cat >>confdefs.h <<_ACEOF
14080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14081_ACEOF
14082
14083fi
14084
14085done
14086
14087
14088for ac_header in X11/XKBlib.h
14089do
14090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14091echo "$as_me:$LINENO: checking for $ac_header" >&5
14092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14093if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095else
14096 cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102
14103 #if HAVE_X11_XLIB_H
14104 #include <X11/Xlib.h>
14105 #endif
14106
14107
14108#include <$ac_header>
14109_ACEOF
14110rm -f conftest.$ac_objext
14111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14112 (eval $ac_compile) 2>conftest.er1
a848cd7e 14113 ac_status=$?
ac1cb8d3
VS
14114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
a848cd7e
SC
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } &&
4d4ff94c 14119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 eval "$as_ac_Header=yes"
14132else
14133 echo "$as_me: failed program was:" >&5
14134sed 's/^/| /' conftest.$ac_ext >&5
14135
14136eval "$as_ac_Header=no"
14137fi
ac1cb8d3 14138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14139fi
14140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14142if test `eval echo '${'$as_ac_Header'}'` = yes; then
14143 cat >>confdefs.h <<_ACEOF
14144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14145_ACEOF
14146
14147fi
14148
14149done
14150
14151 fi
14152fi
14153
14154
14155echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14156echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14157if test "${ac_cv_c_const+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159else
14160 cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h. */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h. */
14166
14167int
14168main ()
14169{
14170/* FIXME: Include the comments suggested by Paul. */
14171#ifndef __cplusplus
14172 /* Ultrix mips cc rejects this. */
14173 typedef int charset[2];
14174 const charset x;
14175 /* SunOS 4.1.1 cc rejects this. */
14176 char const *const *ccp;
14177 char **p;
14178 /* NEC SVR4.0.2 mips cc rejects this. */
14179 struct point {int x, y;};
14180 static struct point const zero = {0,0};
14181 /* AIX XL C 1.02.0.0 rejects this.
14182 It does not let you subtract one const X* pointer from another in
14183 an arm of an if-expression whose if-part is not a constant
14184 expression */
14185 const char *g = "string";
14186 ccp = &g + (g ? g-g : 0);
14187 /* HPUX 7.0 cc rejects these. */
14188 ++ccp;
14189 p = (char**) ccp;
14190 ccp = (char const *const *) p;
14191 { /* SCO 3.2v4 cc rejects this. */
14192 char *t;
14193 char const *s = 0 ? (char *) 0 : (char const *) 0;
14194
14195 *t++ = 0;
14196 }
14197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14198 int x[] = {25, 17};
14199 const int *foo = &x[0];
14200 ++foo;
14201 }
14202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14203 typedef const int *iptr;
14204 iptr p = 0;
14205 ++p;
14206 }
14207 { /* AIX XL C 1.02.0.0 rejects this saying
14208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14209 struct s { int j; const int *ap[3]; };
14210 struct s *b; b->j = 5;
14211 }
14212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14213 const int foo = 10;
14214 }
14215#endif
14216
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221rm -f conftest.$ac_objext
14222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14223 (eval $ac_compile) 2>conftest.er1
a848cd7e 14224 ac_status=$?
ac1cb8d3
VS
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
a848cd7e
SC
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
4d4ff94c 14230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_c_const=yes
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247ac_cv_c_const=no
14248fi
ac1cb8d3 14249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14250fi
14251echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14252echo "${ECHO_T}$ac_cv_c_const" >&6
14253if test $ac_cv_c_const = no; then
14254
14255cat >>confdefs.h <<\_ACEOF
14256#define const
14257_ACEOF
14258
14259fi
14260
14261echo "$as_me:$LINENO: checking for inline" >&5
14262echo $ECHO_N "checking for inline... $ECHO_C" >&6
14263if test "${ac_cv_c_inline+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266 ac_cv_c_inline=no
14267for ac_kw in inline __inline__ __inline; do
14268 cat >conftest.$ac_ext <<_ACEOF
14269/* confdefs.h. */
14270_ACEOF
14271cat confdefs.h >>conftest.$ac_ext
14272cat >>conftest.$ac_ext <<_ACEOF
14273/* end confdefs.h. */
14274#ifndef __cplusplus
14275typedef int foo_t;
14276static $ac_kw foo_t static_foo () {return 0; }
14277$ac_kw foo_t foo () {return 0; }
14278#endif
14279
14280_ACEOF
14281rm -f conftest.$ac_objext
14282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14283 (eval $ac_compile) 2>conftest.er1
a848cd7e 14284 ac_status=$?
ac1cb8d3
VS
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
a848cd7e
SC
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
4d4ff94c 14290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 ac_cv_c_inline=$ac_kw; break
14303else
14304 echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307fi
ac1cb8d3 14308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14309done
14310
14311fi
14312echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14313echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14314
14315
a848cd7e
SC
14316case $ac_cv_c_inline in
14317 inline | yes) ;;
ac1cb8d3
VS
14318 *)
14319 case $ac_cv_c_inline in
14320 no) ac_val=;;
14321 *) ac_val=$ac_cv_c_inline;;
14322 esac
14323 cat >>confdefs.h <<_ACEOF
14324#ifndef __cplusplus
14325#define inline $ac_val
14326#endif
de59c161 14327_ACEOF
ac1cb8d3 14328 ;;
a848cd7e
SC
14329esac
14330
14331
14332echo "$as_me:$LINENO: checking for char" >&5
14333echo $ECHO_N "checking for char... $ECHO_C" >&6
14334if test "${ac_cv_type_char+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
14337 cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343$ac_includes_default
14344int
14345main ()
14346{
14347if ((char *) 0)
14348 return 0;
14349if (sizeof (char))
14350 return 0;
14351 ;
14352 return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext
14356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14357 (eval $ac_compile) 2>conftest.er1
a848cd7e 14358 ac_status=$?
ac1cb8d3
VS
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
a848cd7e
SC
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
4d4ff94c 14364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_cv_type_char=yes
14377else
14378 echo "$as_me: failed program was:" >&5
14379sed 's/^/| /' conftest.$ac_ext >&5
14380
14381ac_cv_type_char=no
14382fi
ac1cb8d3 14383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14384fi
14385echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14386echo "${ECHO_T}$ac_cv_type_char" >&6
14387
14388echo "$as_me:$LINENO: checking size of char" >&5
14389echo $ECHO_N "checking size of char... $ECHO_C" >&6
14390if test "${ac_cv_sizeof_char+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392else
14393 if test "$ac_cv_type_char" = yes; then
14394 # The cast to unsigned long works around a bug in the HP C Compiler
14395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14397 # This bug is HP SR number 8606223364.
14398 if test "$cross_compiling" = yes; then
14399 # Depending upon the size, compute the lo and hi bounds.
14400cat >conftest.$ac_ext <<_ACEOF
14401/* confdefs.h. */
14402_ACEOF
14403cat confdefs.h >>conftest.$ac_ext
14404cat >>conftest.$ac_ext <<_ACEOF
14405/* end confdefs.h. */
14406$ac_includes_default
14407int
14408main ()
14409{
14410static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14411test_array [0] = 0
14412
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417rm -f conftest.$ac_objext
14418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14419 (eval $ac_compile) 2>conftest.er1
a848cd7e 14420 ac_status=$?
ac1cb8d3
VS
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
a848cd7e
SC
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
4d4ff94c 14426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_lo=0 ac_mid=0
14439 while :; do
14440 cat >conftest.$ac_ext <<_ACEOF
14441/* confdefs.h. */
14442_ACEOF
14443cat confdefs.h >>conftest.$ac_ext
14444cat >>conftest.$ac_ext <<_ACEOF
14445/* end confdefs.h. */
14446$ac_includes_default
14447int
14448main ()
14449{
14450static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14451test_array [0] = 0
14452
14453 ;
14454 return 0;
14455}
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14459 (eval $ac_compile) 2>conftest.er1
a848cd7e 14460 ac_status=$?
ac1cb8d3
VS
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
a848cd7e
SC
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
4d4ff94c 14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_hi=$ac_mid; break
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14484 if test $ac_lo -le $ac_mid; then
14485 ac_lo= ac_hi=
14486 break
14487 fi
14488 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14489fi
ac1cb8d3 14490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14491 done
14492else
14493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
14496cat >conftest.$ac_ext <<_ACEOF
14497/* confdefs.h. */
14498_ACEOF
14499cat confdefs.h >>conftest.$ac_ext
14500cat >>conftest.$ac_ext <<_ACEOF
14501/* end confdefs.h. */
14502$ac_includes_default
14503int
14504main ()
14505{
14506static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14507test_array [0] = 0
14508
14509 ;
14510 return 0;
14511}
14512_ACEOF
14513rm -f conftest.$ac_objext
14514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14515 (eval $ac_compile) 2>conftest.er1
a848cd7e 14516 ac_status=$?
ac1cb8d3
VS
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
a848cd7e
SC
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
4d4ff94c 14522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_hi=-1 ac_mid=-1
14535 while :; do
14536 cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
14541/* end confdefs.h. */
14542$ac_includes_default
14543int
14544main ()
14545{
14546static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14547test_array [0] = 0
14548
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14555 (eval $ac_compile) 2>conftest.er1
a848cd7e 14556 ac_status=$?
ac1cb8d3
VS
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
a848cd7e
SC
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
4d4ff94c 14562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_lo=$ac_mid; break
14575else
14576 echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
14579ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14580 if test $ac_mid -le $ac_hi; then
14581 ac_lo= ac_hi=
14582 break
14583 fi
14584 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14585fi
ac1cb8d3 14586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14587 done
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592ac_lo= ac_hi=
14593fi
ac1cb8d3 14594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14595fi
ac1cb8d3 14596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14597# Binary search between lo and hi bounds.
14598while test "x$ac_lo" != "x$ac_hi"; do
14599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14600 cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606$ac_includes_default
14607int
14608main ()
14609{
14610static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14611test_array [0] = 0
14612
14613 ;
14614 return 0;
14615}
14616_ACEOF
14617rm -f conftest.$ac_objext
14618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14619 (eval $ac_compile) 2>conftest.er1
a848cd7e 14620 ac_status=$?
ac1cb8d3
VS
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
a848cd7e
SC
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
4d4ff94c 14626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_hi=$ac_mid
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643ac_lo=`expr '(' $ac_mid ')' + 1`
14644fi
ac1cb8d3 14645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14646done
14647case $ac_lo in
14648?*) ac_cv_sizeof_char=$ac_lo;;
14649'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14650See \`config.log' for more details." >&5
14651echo "$as_me: error: cannot compute sizeof (char), 77
14652See \`config.log' for more details." >&2;}
14653 { (exit 1); exit 1; }; } ;;
14654esac
14655else
14656 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
14657 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14658echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14659 { (exit 1); exit 1; }; }
14660else
14661 cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667$ac_includes_default
14668long longval () { return (long) (sizeof (char)); }
14669unsigned long ulongval () { return (long) (sizeof (char)); }
14670#include <stdio.h>
14671#include <stdlib.h>
14672int
14673main ()
14674{
14675
14676 FILE *f = fopen ("conftest.val", "w");
14677 if (! f)
14678 exit (1);
14679 if (((long) (sizeof (char))) < 0)
14680 {
14681 long i = longval ();
14682 if (i != ((long) (sizeof (char))))
14683 exit (1);
14684 fprintf (f, "%ld\n", i);
14685 }
14686 else
14687 {
14688 unsigned long i = ulongval ();
14689 if (i != ((long) (sizeof (char))))
14690 exit (1);
14691 fprintf (f, "%lu\n", i);
14692 }
14693 exit (ferror (f) || fclose (f) != 0);
14694
14695 ;
14696 return 0;
14697}
14698_ACEOF
14699rm -f conftest$ac_exeext
14700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14701 (eval $ac_link) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_cv_sizeof_char=`cat conftest.val`
14711else
14712 echo "$as_me: program exited with status $ac_status" >&5
14713echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716( exit $ac_status )
14717{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14718See \`config.log' for more details." >&5
14719echo "$as_me: error: cannot compute sizeof (char), 77
14720See \`config.log' for more details." >&2;}
14721 { (exit 1); exit 1; }; }
14722fi
ac1cb8d3 14723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14724fi
14725fi
14726rm -f conftest.val
14727else
14728 ac_cv_sizeof_char=0
14729fi
14730fi
14731echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14732echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14733cat >>confdefs.h <<_ACEOF
14734#define SIZEOF_CHAR $ac_cv_sizeof_char
14735_ACEOF
14736
14737
14738echo "$as_me:$LINENO: checking for short" >&5
14739echo $ECHO_N "checking for short... $ECHO_C" >&6
14740if test "${ac_cv_type_short+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742else
14743 cat >conftest.$ac_ext <<_ACEOF
14744/* confdefs.h. */
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
14749$ac_includes_default
14750int
14751main ()
14752{
14753if ((short *) 0)
14754 return 0;
14755if (sizeof (short))
14756 return 0;
14757 ;
14758 return 0;
14759}
14760_ACEOF
14761rm -f conftest.$ac_objext
14762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14763 (eval $ac_compile) 2>conftest.er1
a848cd7e 14764 ac_status=$?
ac1cb8d3
VS
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
a848cd7e
SC
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
4d4ff94c 14770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_short=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787ac_cv_type_short=no
14788fi
ac1cb8d3 14789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14790fi
14791echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14792echo "${ECHO_T}$ac_cv_type_short" >&6
14793
14794echo "$as_me:$LINENO: checking size of short" >&5
14795echo $ECHO_N "checking size of short... $ECHO_C" >&6
14796if test "${ac_cv_sizeof_short+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798else
14799 if test "$ac_cv_type_short" = yes; then
14800 # The cast to unsigned long works around a bug in the HP C Compiler
14801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14803 # This bug is HP SR number 8606223364.
14804 if test "$cross_compiling" = yes; then
14805 # Depending upon the size, compute the lo and hi bounds.
14806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812$ac_includes_default
14813int
14814main ()
14815{
14816static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14817test_array [0] = 0
14818
14819 ;
14820 return 0;
14821}
14822_ACEOF
14823rm -f conftest.$ac_objext
14824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14825 (eval $ac_compile) 2>conftest.er1
a848cd7e 14826 ac_status=$?
ac1cb8d3
VS
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
a848cd7e
SC
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
4d4ff94c 14832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_lo=0 ac_mid=0
14845 while :; do
14846 cat >conftest.$ac_ext <<_ACEOF
14847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
14852$ac_includes_default
14853int
14854main ()
14855{
14856static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14857test_array [0] = 0
14858
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14865 (eval $ac_compile) 2>conftest.er1
a848cd7e 14866 ac_status=$?
ac1cb8d3
VS
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
a848cd7e
SC
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
4d4ff94c 14872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_hi=$ac_mid; break
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
14889ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14890 if test $ac_lo -le $ac_mid; then
14891 ac_lo= ac_hi=
14892 break
14893 fi
14894 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14895fi
ac1cb8d3 14896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14897 done
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h. */
14908$ac_includes_default
14909int
14910main ()
14911{
14912static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14913test_array [0] = 0
14914
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext
14920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14921 (eval $ac_compile) 2>conftest.er1
a848cd7e 14922 ac_status=$?
ac1cb8d3
VS
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
a848cd7e
SC
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
4d4ff94c 14928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_hi=-1 ac_mid=-1
14941 while :; do
14942 cat >conftest.$ac_ext <<_ACEOF
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
14948$ac_includes_default
14949int
14950main ()
14951{
14952static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14953test_array [0] = 0
14954
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext
14960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14961 (eval $ac_compile) 2>conftest.er1
a848cd7e 14962 ac_status=$?
ac1cb8d3
VS
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
a848cd7e
SC
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
4d4ff94c 14968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; } &&
14974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_lo=$ac_mid; break
14981else
14982 echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14986 if test $ac_mid -le $ac_hi; then
14987 ac_lo= ac_hi=
14988 break
14989 fi
14990 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14991fi
ac1cb8d3 14992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14993 done
14994else
14995 echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998ac_lo= ac_hi=
14999fi
ac1cb8d3 15000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15001fi
ac1cb8d3 15002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15003# Binary search between lo and hi bounds.
15004while test "x$ac_lo" != "x$ac_hi"; do
15005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15006 cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012$ac_includes_default
15013int
15014main ()
15015{
15016static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15017test_array [0] = 0
15018
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
15024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15025 (eval $ac_compile) 2>conftest.er1
a848cd7e 15026 ac_status=$?
ac1cb8d3
VS
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
a848cd7e
SC
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
4d4ff94c 15032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_hi=$ac_mid
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049ac_lo=`expr '(' $ac_mid ')' + 1`
15050fi
ac1cb8d3 15051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15052done
15053case $ac_lo in
15054?*) ac_cv_sizeof_short=$ac_lo;;
15055'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15056See \`config.log' for more details." >&5
15057echo "$as_me: error: cannot compute sizeof (short), 77
15058See \`config.log' for more details." >&2;}
15059 { (exit 1); exit 1; }; } ;;
15060esac
15061else
15062 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
15063 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15064echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15065 { (exit 1); exit 1; }; }
15066else
15067 cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073$ac_includes_default
15074long longval () { return (long) (sizeof (short)); }
15075unsigned long ulongval () { return (long) (sizeof (short)); }
15076#include <stdio.h>
15077#include <stdlib.h>
15078int
15079main ()
15080{
15081
15082 FILE *f = fopen ("conftest.val", "w");
15083 if (! f)
15084 exit (1);
15085 if (((long) (sizeof (short))) < 0)
15086 {
15087 long i = longval ();
15088 if (i != ((long) (sizeof (short))))
15089 exit (1);
15090 fprintf (f, "%ld\n", i);
15091 }
15092 else
15093 {
15094 unsigned long i = ulongval ();
15095 if (i != ((long) (sizeof (short))))
15096 exit (1);
15097 fprintf (f, "%lu\n", i);
15098 }
15099 exit (ferror (f) || fclose (f) != 0);
15100
15101 ;
15102 return 0;
15103}
15104_ACEOF
15105rm -f conftest$ac_exeext
15106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15107 (eval $ac_link) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_sizeof_short=`cat conftest.val`
15117else
15118 echo "$as_me: program exited with status $ac_status" >&5
15119echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122( exit $ac_status )
15123{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15124See \`config.log' for more details." >&5
15125echo "$as_me: error: cannot compute sizeof (short), 77
15126See \`config.log' for more details." >&2;}
15127 { (exit 1); exit 1; }; }
15128fi
ac1cb8d3 15129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15130fi
15131fi
15132rm -f conftest.val
15133else
15134 ac_cv_sizeof_short=0
15135fi
15136fi
15137echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15138echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15139cat >>confdefs.h <<_ACEOF
15140#define SIZEOF_SHORT $ac_cv_sizeof_short
15141_ACEOF
15142
15143
15144echo "$as_me:$LINENO: checking for void *" >&5
15145echo $ECHO_N "checking for void *... $ECHO_C" >&6
15146if test "${ac_cv_type_void_p+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15148else
15149 cat >conftest.$ac_ext <<_ACEOF
15150/* confdefs.h. */
15151_ACEOF
15152cat confdefs.h >>conftest.$ac_ext
15153cat >>conftest.$ac_ext <<_ACEOF
15154/* end confdefs.h. */
15155$ac_includes_default
15156int
15157main ()
15158{
15159if ((void * *) 0)
15160 return 0;
15161if (sizeof (void *))
15162 return 0;
15163 ;
15164 return 0;
15165}
15166_ACEOF
15167rm -f conftest.$ac_objext
15168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15169 (eval $ac_compile) 2>conftest.er1
a848cd7e 15170 ac_status=$?
ac1cb8d3
VS
15171 grep -v '^ *+' conftest.er1 >conftest.err
15172 rm -f conftest.er1
15173 cat conftest.err >&5
a848cd7e
SC
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
4d4ff94c 15176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_type_void_p=yes
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193ac_cv_type_void_p=no
15194fi
ac1cb8d3 15195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15196fi
15197echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15198echo "${ECHO_T}$ac_cv_type_void_p" >&6
15199
15200echo "$as_me:$LINENO: checking size of void *" >&5
15201echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15202if test "${ac_cv_sizeof_void_p+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204else
15205 if test "$ac_cv_type_void_p" = yes; then
15206 # The cast to unsigned long works around a bug in the HP C Compiler
15207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15209 # This bug is HP SR number 8606223364.
15210 if test "$cross_compiling" = yes; then
15211 # Depending upon the size, compute the lo and hi bounds.
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219int
15220main ()
15221{
15222static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15223test_array [0] = 0
15224
15225 ;
15226 return 0;
15227}
15228_ACEOF
15229rm -f conftest.$ac_objext
15230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15231 (eval $ac_compile) 2>conftest.er1
a848cd7e 15232 ac_status=$?
ac1cb8d3
VS
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
a848cd7e
SC
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
4d4ff94c 15238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_lo=0 ac_mid=0
15251 while :; do
15252 cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258$ac_includes_default
15259int
15260main ()
15261{
15262static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15263test_array [0] = 0
15264
15265 ;
15266 return 0;
15267}
15268_ACEOF
15269rm -f conftest.$ac_objext
15270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15271 (eval $ac_compile) 2>conftest.er1
a848cd7e 15272 ac_status=$?
ac1cb8d3
VS
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
a848cd7e
SC
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
4d4ff94c 15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15290 ac_hi=$ac_mid; break
15291else
15292 echo "$as_me: failed program was:" >&5
15293sed 's/^/| /' conftest.$ac_ext >&5
15294
15295ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15296 if test $ac_lo -le $ac_mid; then
15297 ac_lo= ac_hi=
15298 break
15299 fi
15300 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15301fi
ac1cb8d3 15302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15303 done
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314$ac_includes_default
15315int
15316main ()
15317{
15318static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15319test_array [0] = 0
15320
15321 ;
15322 return 0;
15323}
15324_ACEOF
15325rm -f conftest.$ac_objext
15326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15327 (eval $ac_compile) 2>conftest.er1
a848cd7e 15328 ac_status=$?
ac1cb8d3
VS
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
a848cd7e
SC
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
4d4ff94c 15334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15346 ac_hi=-1 ac_mid=-1
15347 while :; do
15348 cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
15354$ac_includes_default
15355int
15356main ()
15357{
15358static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15359test_array [0] = 0
15360
15361 ;
15362 return 0;
15363}
15364_ACEOF
15365rm -f conftest.$ac_objext
15366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15367 (eval $ac_compile) 2>conftest.er1
a848cd7e 15368 ac_status=$?
ac1cb8d3
VS
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
a848cd7e
SC
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
4d4ff94c 15374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_lo=$ac_mid; break
15387else
15388 echo "$as_me: failed program was:" >&5
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
15391ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15392 if test $ac_mid -le $ac_hi; then
15393 ac_lo= ac_hi=
15394 break
15395 fi
15396 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15397fi
ac1cb8d3 15398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15399 done
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_lo= ac_hi=
15405fi
ac1cb8d3 15406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15407fi
ac1cb8d3 15408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15409# Binary search between lo and hi bounds.
15410while test "x$ac_lo" != "x$ac_hi"; do
15411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15412 cat >conftest.$ac_ext <<_ACEOF
15413/* confdefs.h. */
15414_ACEOF
15415cat confdefs.h >>conftest.$ac_ext
15416cat >>conftest.$ac_ext <<_ACEOF
15417/* end confdefs.h. */
15418$ac_includes_default
15419int
15420main ()
15421{
15422static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15423test_array [0] = 0
15424
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext
15430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15431 (eval $ac_compile) 2>conftest.er1
a848cd7e 15432 ac_status=$?
ac1cb8d3
VS
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
a848cd7e
SC
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
4d4ff94c 15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_hi=$ac_mid
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455ac_lo=`expr '(' $ac_mid ')' + 1`
15456fi
ac1cb8d3 15457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15458done
15459case $ac_lo in
15460?*) ac_cv_sizeof_void_p=$ac_lo;;
15461'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15462See \`config.log' for more details." >&5
15463echo "$as_me: error: cannot compute sizeof (void *), 77
15464See \`config.log' for more details." >&2;}
15465 { (exit 1); exit 1; }; } ;;
15466esac
15467else
15468 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
15469 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15470echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15471 { (exit 1); exit 1; }; }
15472else
15473 cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
15479$ac_includes_default
15480long longval () { return (long) (sizeof (void *)); }
15481unsigned long ulongval () { return (long) (sizeof (void *)); }
15482#include <stdio.h>
15483#include <stdlib.h>
15484int
15485main ()
15486{
15487
15488 FILE *f = fopen ("conftest.val", "w");
15489 if (! f)
15490 exit (1);
15491 if (((long) (sizeof (void *))) < 0)
15492 {
15493 long i = longval ();
15494 if (i != ((long) (sizeof (void *))))
15495 exit (1);
15496 fprintf (f, "%ld\n", i);
15497 }
15498 else
15499 {
15500 unsigned long i = ulongval ();
15501 if (i != ((long) (sizeof (void *))))
15502 exit (1);
15503 fprintf (f, "%lu\n", i);
15504 }
15505 exit (ferror (f) || fclose (f) != 0);
15506
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest$ac_exeext
15512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15513 (eval $ac_link) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_cv_sizeof_void_p=`cat conftest.val`
15523else
15524 echo "$as_me: program exited with status $ac_status" >&5
15525echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528( exit $ac_status )
15529{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15530See \`config.log' for more details." >&5
15531echo "$as_me: error: cannot compute sizeof (void *), 77
15532See \`config.log' for more details." >&2;}
15533 { (exit 1); exit 1; }; }
15534fi
ac1cb8d3 15535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15536fi
15537fi
15538rm -f conftest.val
15539else
15540 ac_cv_sizeof_void_p=0
15541fi
15542fi
15543echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15544echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15545cat >>confdefs.h <<_ACEOF
15546#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15547_ACEOF
15548
15549
15550echo "$as_me:$LINENO: checking for int" >&5
15551echo $ECHO_N "checking for int... $ECHO_C" >&6
15552if test "${ac_cv_type_int+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554else
15555 cat >conftest.$ac_ext <<_ACEOF
15556/* confdefs.h. */
15557_ACEOF
15558cat confdefs.h >>conftest.$ac_ext
15559cat >>conftest.$ac_ext <<_ACEOF
15560/* end confdefs.h. */
15561$ac_includes_default
15562int
15563main ()
15564{
15565if ((int *) 0)
15566 return 0;
15567if (sizeof (int))
15568 return 0;
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext
15574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15575 (eval $ac_compile) 2>conftest.er1
a848cd7e 15576 ac_status=$?
ac1cb8d3
VS
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
a848cd7e
SC
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
4d4ff94c 15582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_cv_type_int=yes
15595else
15596 echo "$as_me: failed program was:" >&5
15597sed 's/^/| /' conftest.$ac_ext >&5
15598
15599ac_cv_type_int=no
15600fi
ac1cb8d3 15601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15602fi
15603echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15604echo "${ECHO_T}$ac_cv_type_int" >&6
15605
15606echo "$as_me:$LINENO: checking size of int" >&5
15607echo $ECHO_N "checking size of int... $ECHO_C" >&6
15608if test "${ac_cv_sizeof_int+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610else
15611 if test "$ac_cv_type_int" = yes; then
15612 # The cast to unsigned long works around a bug in the HP C Compiler
15613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615 # This bug is HP SR number 8606223364.
15616 if test "$cross_compiling" = yes; then
15617 # Depending upon the size, compute the lo and hi bounds.
15618cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h. */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h. */
15624$ac_includes_default
15625int
15626main ()
15627{
15628static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15629test_array [0] = 0
15630
15631 ;
15632 return 0;
15633}
15634_ACEOF
15635rm -f conftest.$ac_objext
15636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15637 (eval $ac_compile) 2>conftest.er1
a848cd7e 15638 ac_status=$?
ac1cb8d3
VS
15639 grep -v '^ *+' conftest.er1 >conftest.err
15640 rm -f conftest.er1
15641 cat conftest.err >&5
a848cd7e
SC
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
4d4ff94c 15644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_lo=0 ac_mid=0
15657 while :; do
15658 cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665int
15666main ()
15667{
15668static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15669test_array [0] = 0
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest.$ac_objext
15676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15677 (eval $ac_compile) 2>conftest.er1
a848cd7e 15678 ac_status=$?
ac1cb8d3
VS
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
a848cd7e
SC
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
4d4ff94c 15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_hi=$ac_mid; break
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15702 if test $ac_lo -le $ac_mid; then
15703 ac_lo= ac_hi=
15704 break
15705 fi
15706 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15707fi
ac1cb8d3 15708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15709 done
15710else
15711 echo "$as_me: failed program was:" >&5
15712sed 's/^/| /' conftest.$ac_ext >&5
15713
15714cat >conftest.$ac_ext <<_ACEOF
15715/* confdefs.h. */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h. */
15720$ac_includes_default
15721int
15722main ()
15723{
15724static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15725test_array [0] = 0
15726
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731rm -f conftest.$ac_objext
15732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15733 (eval $ac_compile) 2>conftest.er1
a848cd7e 15734 ac_status=$?
ac1cb8d3
VS
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
a848cd7e
SC
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
4d4ff94c 15740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_hi=-1 ac_mid=-1
15753 while :; do
15754 cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15773 (eval $ac_compile) 2>conftest.er1
a848cd7e 15774 ac_status=$?
ac1cb8d3
VS
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
a848cd7e
SC
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
4d4ff94c 15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_lo=$ac_mid; break
15793else
15794 echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15798 if test $ac_mid -le $ac_hi; then
15799 ac_lo= ac_hi=
15800 break
15801 fi
15802 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15803fi
ac1cb8d3 15804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15805 done
15806else
15807 echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810ac_lo= ac_hi=
15811fi
ac1cb8d3 15812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15813fi
ac1cb8d3 15814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15815# Binary search between lo and hi bounds.
15816while test "x$ac_lo" != "x$ac_hi"; do
15817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15818 cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825int
15826main ()
15827{
15828static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15829test_array [0] = 0
15830
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15837 (eval $ac_compile) 2>conftest.er1
a848cd7e 15838 ac_status=$?
ac1cb8d3
VS
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
a848cd7e
SC
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
4d4ff94c 15844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_hi=$ac_mid
15857else
15858 echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861ac_lo=`expr '(' $ac_mid ')' + 1`
15862fi
ac1cb8d3 15863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15864done
15865case $ac_lo in
15866?*) ac_cv_sizeof_int=$ac_lo;;
15867'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15868See \`config.log' for more details." >&5
15869echo "$as_me: error: cannot compute sizeof (int), 77
15870See \`config.log' for more details." >&2;}
15871 { (exit 1); exit 1; }; } ;;
15872esac
15873else
15874 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
15875 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15876echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15877 { (exit 1); exit 1; }; }
15878else
15879 cat >conftest.$ac_ext <<_ACEOF
15880/* confdefs.h. */
15881_ACEOF
15882cat confdefs.h >>conftest.$ac_ext
15883cat >>conftest.$ac_ext <<_ACEOF
15884/* end confdefs.h. */
15885$ac_includes_default
15886long longval () { return (long) (sizeof (int)); }
15887unsigned long ulongval () { return (long) (sizeof (int)); }
15888#include <stdio.h>
15889#include <stdlib.h>
15890int
15891main ()
15892{
15893
15894 FILE *f = fopen ("conftest.val", "w");
15895 if (! f)
15896 exit (1);
15897 if (((long) (sizeof (int))) < 0)
15898 {
15899 long i = longval ();
15900 if (i != ((long) (sizeof (int))))
15901 exit (1);
15902 fprintf (f, "%ld\n", i);
15903 }
15904 else
15905 {
15906 unsigned long i = ulongval ();
15907 if (i != ((long) (sizeof (int))))
15908 exit (1);
15909 fprintf (f, "%lu\n", i);
15910 }
15911 exit (ferror (f) || fclose (f) != 0);
15912
15913 ;
15914 return 0;
15915}
15916_ACEOF
15917rm -f conftest$ac_exeext
15918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_cv_sizeof_int=`cat conftest.val`
15929else
15930 echo "$as_me: program exited with status $ac_status" >&5
15931echo "$as_me: failed program was:" >&5
15932sed 's/^/| /' conftest.$ac_ext >&5
15933
15934( exit $ac_status )
15935{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15936See \`config.log' for more details." >&5
15937echo "$as_me: error: cannot compute sizeof (int), 77
15938See \`config.log' for more details." >&2;}
15939 { (exit 1); exit 1; }; }
15940fi
ac1cb8d3 15941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15942fi
15943fi
15944rm -f conftest.val
15945else
15946 ac_cv_sizeof_int=0
15947fi
15948fi
15949echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15950echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15951cat >>confdefs.h <<_ACEOF
15952#define SIZEOF_INT $ac_cv_sizeof_int
15953_ACEOF
15954
15955
15956echo "$as_me:$LINENO: checking for long" >&5
15957echo $ECHO_N "checking for long... $ECHO_C" >&6
15958if test "${ac_cv_type_long+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960else
15961 cat >conftest.$ac_ext <<_ACEOF
15962/* confdefs.h. */
15963_ACEOF
15964cat confdefs.h >>conftest.$ac_ext
15965cat >>conftest.$ac_ext <<_ACEOF
15966/* end confdefs.h. */
15967$ac_includes_default
15968int
15969main ()
15970{
15971if ((long *) 0)
15972 return 0;
15973if (sizeof (long))
15974 return 0;
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15981 (eval $ac_compile) 2>conftest.er1
a848cd7e 15982 ac_status=$?
ac1cb8d3
VS
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
a848cd7e
SC
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
4d4ff94c 15988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_cv_type_long=yes
16001else
16002 echo "$as_me: failed program was:" >&5
16003sed 's/^/| /' conftest.$ac_ext >&5
16004
16005ac_cv_type_long=no
16006fi
ac1cb8d3 16007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16008fi
16009echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16010echo "${ECHO_T}$ac_cv_type_long" >&6
16011
16012echo "$as_me:$LINENO: checking size of long" >&5
16013echo $ECHO_N "checking size of long... $ECHO_C" >&6
16014if test "${ac_cv_sizeof_long+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016else
16017 if test "$ac_cv_type_long" = yes; then
16018 # The cast to unsigned long works around a bug in the HP C Compiler
16019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16021 # This bug is HP SR number 8606223364.
16022 if test "$cross_compiling" = yes; then
16023 # Depending upon the size, compute the lo and hi bounds.
16024cat >conftest.$ac_ext <<_ACEOF
16025/* confdefs.h. */
16026_ACEOF
16027cat confdefs.h >>conftest.$ac_ext
16028cat >>conftest.$ac_ext <<_ACEOF
16029/* end confdefs.h. */
16030$ac_includes_default
16031int
16032main ()
16033{
16034static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16035test_array [0] = 0
16036
16037 ;
16038 return 0;
16039}
16040_ACEOF
16041rm -f conftest.$ac_objext
16042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16043 (eval $ac_compile) 2>conftest.er1
a848cd7e 16044 ac_status=$?
ac1cb8d3
VS
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
a848cd7e
SC
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
4d4ff94c 16050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_lo=0 ac_mid=0
16063 while :; do
16064 cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071int
16072main ()
16073{
16074static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16075test_array [0] = 0
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16083 (eval $ac_compile) 2>conftest.er1
a848cd7e 16084 ac_status=$?
ac1cb8d3
VS
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
a848cd7e
SC
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
4d4ff94c 16090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_hi=$ac_mid; break
16103else
16104 echo "$as_me: failed program was:" >&5
16105sed 's/^/| /' conftest.$ac_ext >&5
16106
16107ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16108 if test $ac_lo -le $ac_mid; then
16109 ac_lo= ac_hi=
16110 break
16111 fi
16112 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16113fi
ac1cb8d3 16114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16115 done
16116else
16117 echo "$as_me: failed program was:" >&5
16118sed 's/^/| /' conftest.$ac_ext >&5
16119
16120cat >conftest.$ac_ext <<_ACEOF
16121/* confdefs.h. */
16122_ACEOF
16123cat confdefs.h >>conftest.$ac_ext
16124cat >>conftest.$ac_ext <<_ACEOF
16125/* end confdefs.h. */
16126$ac_includes_default
16127int
16128main ()
16129{
16130static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16131test_array [0] = 0
16132
16133 ;
16134 return 0;
16135}
16136_ACEOF
16137rm -f conftest.$ac_objext
16138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16139 (eval $ac_compile) 2>conftest.er1
a848cd7e 16140 ac_status=$?
ac1cb8d3
VS
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
a848cd7e
SC
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
4d4ff94c 16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_hi=-1 ac_mid=-1
16159 while :; do
16160 cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167int
16168main ()
16169{
16170static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16171test_array [0] = 0
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext
16178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16179 (eval $ac_compile) 2>conftest.er1
a848cd7e 16180 ac_status=$?
ac1cb8d3
VS
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
a848cd7e
SC
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
4d4ff94c 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_lo=$ac_mid; break
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16204 if test $ac_mid -le $ac_hi; then
16205 ac_lo= ac_hi=
16206 break
16207 fi
16208 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16209fi
ac1cb8d3 16210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16211 done
16212else
16213 echo "$as_me: failed program was:" >&5
16214sed 's/^/| /' conftest.$ac_ext >&5
16215
16216ac_lo= ac_hi=
16217fi
ac1cb8d3 16218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16219fi
ac1cb8d3 16220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16221# Binary search between lo and hi bounds.
16222while test "x$ac_lo" != "x$ac_hi"; do
16223 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16224 cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231int
16232main ()
16233{
16234static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16235test_array [0] = 0
16236
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16243 (eval $ac_compile) 2>conftest.er1
a848cd7e 16244 ac_status=$?
ac1cb8d3
VS
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
a848cd7e
SC
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
4d4ff94c 16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_hi=$ac_mid
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267ac_lo=`expr '(' $ac_mid ')' + 1`
16268fi
ac1cb8d3 16269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16270done
16271case $ac_lo in
16272?*) ac_cv_sizeof_long=$ac_lo;;
16273'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16274See \`config.log' for more details." >&5
16275echo "$as_me: error: cannot compute sizeof (long), 77
16276See \`config.log' for more details." >&2;}
16277 { (exit 1); exit 1; }; } ;;
16278esac
16279else
16280 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
16281 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16282echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16283 { (exit 1); exit 1; }; }
16284else
16285 cat >conftest.$ac_ext <<_ACEOF
16286/* confdefs.h. */
16287_ACEOF
16288cat confdefs.h >>conftest.$ac_ext
16289cat >>conftest.$ac_ext <<_ACEOF
16290/* end confdefs.h. */
16291$ac_includes_default
16292long longval () { return (long) (sizeof (long)); }
16293unsigned long ulongval () { return (long) (sizeof (long)); }
16294#include <stdio.h>
16295#include <stdlib.h>
16296int
16297main ()
16298{
16299
16300 FILE *f = fopen ("conftest.val", "w");
16301 if (! f)
16302 exit (1);
16303 if (((long) (sizeof (long))) < 0)
16304 {
16305 long i = longval ();
16306 if (i != ((long) (sizeof (long))))
16307 exit (1);
16308 fprintf (f, "%ld\n", i);
16309 }
16310 else
16311 {
16312 unsigned long i = ulongval ();
16313 if (i != ((long) (sizeof (long))))
16314 exit (1);
16315 fprintf (f, "%lu\n", i);
16316 }
16317 exit (ferror (f) || fclose (f) != 0);
16318
16319 ;
16320 return 0;
16321}
16322_ACEOF
16323rm -f conftest$ac_exeext
16324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16325 (eval $ac_link) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_sizeof_long=`cat conftest.val`
16335else
16336 echo "$as_me: program exited with status $ac_status" >&5
16337echo "$as_me: failed program was:" >&5
16338sed 's/^/| /' conftest.$ac_ext >&5
16339
16340( exit $ac_status )
16341{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16342See \`config.log' for more details." >&5
16343echo "$as_me: error: cannot compute sizeof (long), 77
16344See \`config.log' for more details." >&2;}
16345 { (exit 1); exit 1; }; }
16346fi
ac1cb8d3 16347rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16348fi
16349fi
16350rm -f conftest.val
16351else
16352 ac_cv_sizeof_long=0
16353fi
16354fi
16355echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16356echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16357cat >>confdefs.h <<_ACEOF
16358#define SIZEOF_LONG $ac_cv_sizeof_long
16359_ACEOF
16360
16361
16362echo "$as_me:$LINENO: checking for size_t" >&5
16363echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16364if test "${ac_cv_type_size_t+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366else
16367 cat >conftest.$ac_ext <<_ACEOF
16368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h. */
16373$ac_includes_default
16374int
16375main ()
16376{
16377if ((size_t *) 0)
16378 return 0;
16379if (sizeof (size_t))
16380 return 0;
16381 ;
16382 return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext
16386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16387 (eval $ac_compile) 2>conftest.er1
a848cd7e 16388 ac_status=$?
ac1cb8d3
VS
16389 grep -v '^ *+' conftest.er1 >conftest.err
16390 rm -f conftest.er1
16391 cat conftest.err >&5
a848cd7e
SC
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
4d4ff94c 16394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_cv_type_size_t=yes
16407else
16408 echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411ac_cv_type_size_t=no
16412fi
ac1cb8d3 16413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16414fi
16415echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16416echo "${ECHO_T}$ac_cv_type_size_t" >&6
16417
16418echo "$as_me:$LINENO: checking size of size_t" >&5
16419echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16420if test "${ac_cv_sizeof_size_t+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422else
16423 if test "$ac_cv_type_size_t" = yes; then
16424 # The cast to unsigned long works around a bug in the HP C Compiler
16425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16427 # This bug is HP SR number 8606223364.
16428 if test "$cross_compiling" = yes; then
16429 # Depending upon the size, compute the lo and hi bounds.
16430cat >conftest.$ac_ext <<_ACEOF
16431/* confdefs.h. */
16432_ACEOF
16433cat confdefs.h >>conftest.$ac_ext
16434cat >>conftest.$ac_ext <<_ACEOF
16435/* end confdefs.h. */
16436$ac_includes_default
16437int
16438main ()
16439{
16440static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16441test_array [0] = 0
16442
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447rm -f conftest.$ac_objext
16448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16449 (eval $ac_compile) 2>conftest.er1
a848cd7e 16450 ac_status=$?
ac1cb8d3
VS
16451 grep -v '^ *+' conftest.er1 >conftest.err
16452 rm -f conftest.er1
16453 cat conftest.err >&5
a848cd7e
SC
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
4d4ff94c 16456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16459 ac_status=$?
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; } &&
16462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468 ac_lo=0 ac_mid=0
16469 while :; do
16470 cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476$ac_includes_default
16477int
16478main ()
16479{
16480static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16481test_array [0] = 0
16482
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487rm -f conftest.$ac_objext
16488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16489 (eval $ac_compile) 2>conftest.er1
a848cd7e 16490 ac_status=$?
ac1cb8d3
VS
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
a848cd7e
SC
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
4d4ff94c 16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_hi=$ac_mid; break
16509else
16510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
16513ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16514 if test $ac_lo -le $ac_mid; then
16515 ac_lo= ac_hi=
16516 break
16517 fi
16518 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16519fi
ac1cb8d3 16520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16521 done
16522else
16523 echo "$as_me: failed program was:" >&5
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526cat >conftest.$ac_ext <<_ACEOF
16527/* confdefs.h. */
16528_ACEOF
16529cat confdefs.h >>conftest.$ac_ext
16530cat >>conftest.$ac_ext <<_ACEOF
16531/* end confdefs.h. */
16532$ac_includes_default
16533int
16534main ()
16535{
16536static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16537test_array [0] = 0
16538
16539 ;
16540 return 0;
16541}
16542_ACEOF
16543rm -f conftest.$ac_objext
16544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16545 (eval $ac_compile) 2>conftest.er1
a848cd7e 16546 ac_status=$?
ac1cb8d3
VS
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
a848cd7e
SC
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
4d4ff94c 16552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_hi=-1 ac_mid=-1
16565 while :; do
16566 cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573int
16574main ()
16575{
16576static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16577test_array [0] = 0
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16585 (eval $ac_compile) 2>conftest.er1
a848cd7e 16586 ac_status=$?
ac1cb8d3
VS
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
a848cd7e
SC
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
4d4ff94c 16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_lo=$ac_mid; break
16605else
16606 echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16610 if test $ac_mid -le $ac_hi; then
16611 ac_lo= ac_hi=
16612 break
16613 fi
16614 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16615fi
ac1cb8d3 16616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16617 done
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622ac_lo= ac_hi=
16623fi
ac1cb8d3 16624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16625fi
ac1cb8d3 16626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16627# Binary search between lo and hi bounds.
16628while test "x$ac_lo" != "x$ac_hi"; do
16629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16630 cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636$ac_includes_default
16637int
16638main ()
16639{
16640static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16641test_array [0] = 0
16642
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16649 (eval $ac_compile) 2>conftest.er1
a848cd7e 16650 ac_status=$?
ac1cb8d3
VS
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
a848cd7e
SC
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
4d4ff94c 16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_hi=$ac_mid
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_lo=`expr '(' $ac_mid ')' + 1`
16674fi
ac1cb8d3 16675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16676done
16677case $ac_lo in
16678?*) ac_cv_sizeof_size_t=$ac_lo;;
16679'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16680See \`config.log' for more details." >&5
16681echo "$as_me: error: cannot compute sizeof (size_t), 77
16682See \`config.log' for more details." >&2;}
16683 { (exit 1); exit 1; }; } ;;
16684esac
16685else
16686 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
16687 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16688echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16689 { (exit 1); exit 1; }; }
16690else
16691 cat >conftest.$ac_ext <<_ACEOF
16692/* confdefs.h. */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h. */
16697$ac_includes_default
16698long longval () { return (long) (sizeof (size_t)); }
16699unsigned long ulongval () { return (long) (sizeof (size_t)); }
16700#include <stdio.h>
16701#include <stdlib.h>
16702int
16703main ()
16704{
16705
16706 FILE *f = fopen ("conftest.val", "w");
16707 if (! f)
16708 exit (1);
16709 if (((long) (sizeof (size_t))) < 0)
16710 {
16711 long i = longval ();
16712 if (i != ((long) (sizeof (size_t))))
16713 exit (1);
16714 fprintf (f, "%ld\n", i);
16715 }
16716 else
16717 {
16718 unsigned long i = ulongval ();
16719 if (i != ((long) (sizeof (size_t))))
16720 exit (1);
16721 fprintf (f, "%lu\n", i);
16722 }
16723 exit (ferror (f) || fclose (f) != 0);
16724
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest$ac_exeext
16730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_cv_sizeof_size_t=`cat conftest.val`
16741else
16742 echo "$as_me: program exited with status $ac_status" >&5
16743echo "$as_me: failed program was:" >&5
16744sed 's/^/| /' conftest.$ac_ext >&5
16745
16746( exit $ac_status )
16747{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16748See \`config.log' for more details." >&5
16749echo "$as_me: error: cannot compute sizeof (size_t), 77
16750See \`config.log' for more details." >&2;}
16751 { (exit 1); exit 1; }; }
16752fi
ac1cb8d3 16753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16754fi
16755fi
16756rm -f conftest.val
16757else
16758 ac_cv_sizeof_size_t=0
16759fi
16760fi
16761echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16762echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16763cat >>confdefs.h <<_ACEOF
16764#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16765_ACEOF
16766
16767
16768
16769case "${host}" in
16770 arm-*-linux* )
16771 echo "$as_me:$LINENO: checking for long long" >&5
16772echo $ECHO_N "checking for long long... $ECHO_C" >&6
16773if test "${ac_cv_type_long_long+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775else
16776 cat >conftest.$ac_ext <<_ACEOF
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
16782$ac_includes_default
16783int
16784main ()
16785{
16786if ((long long *) 0)
16787 return 0;
16788if (sizeof (long long))
16789 return 0;
16790 ;
16791 return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext
16795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16796 (eval $ac_compile) 2>conftest.er1
a848cd7e 16797 ac_status=$?
ac1cb8d3
VS
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
a848cd7e
SC
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
4d4ff94c 16803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_type_long_long=yes
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820ac_cv_type_long_long=no
16821fi
ac1cb8d3 16822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16823fi
16824echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16825echo "${ECHO_T}$ac_cv_type_long_long" >&6
16826
16827echo "$as_me:$LINENO: checking size of long long" >&5
16828echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16829if test "${ac_cv_sizeof_long_long+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16831else
16832 if test "$ac_cv_type_long_long" = yes; then
16833 # The cast to unsigned long works around a bug in the HP C Compiler
16834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16836 # This bug is HP SR number 8606223364.
16837 if test "$cross_compiling" = yes; then
16838 # Depending upon the size, compute the lo and hi bounds.
16839cat >conftest.$ac_ext <<_ACEOF
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16850test_array [0] = 0
16851
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16858 (eval $ac_compile) 2>conftest.er1
a848cd7e 16859 ac_status=$?
ac1cb8d3
VS
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
a848cd7e
SC
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
4d4ff94c 16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; } &&
16871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_lo=0 ac_mid=0
16878 while :; do
16879 cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885$ac_includes_default
16886int
16887main ()
16888{
16889static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16890test_array [0] = 0
16891
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext
16897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16898 (eval $ac_compile) 2>conftest.er1
a848cd7e 16899 ac_status=$?
ac1cb8d3
VS
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
a848cd7e
SC
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
4d4ff94c 16905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_hi=$ac_mid; break
16918else
16919 echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16923 if test $ac_lo -le $ac_mid; then
16924 ac_lo= ac_hi=
16925 break
16926 fi
16927 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16928fi
ac1cb8d3 16929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16930 done
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935cat >conftest.$ac_ext <<_ACEOF
16936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
16941$ac_includes_default
16942int
16943main ()
16944{
16945static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16946test_array [0] = 0
16947
16948 ;
16949 return 0;
16950}
16951_ACEOF
16952rm -f conftest.$ac_objext
16953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16954 (eval $ac_compile) 2>conftest.er1
a848cd7e 16955 ac_status=$?
ac1cb8d3
VS
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
a848cd7e
SC
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
4d4ff94c 16961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_hi=-1 ac_mid=-1
16974 while :; do
16975 cat >conftest.$ac_ext <<_ACEOF
16976/* confdefs.h. */
16977_ACEOF
16978cat confdefs.h >>conftest.$ac_ext
16979cat >>conftest.$ac_ext <<_ACEOF
16980/* end confdefs.h. */
16981$ac_includes_default
16982int
16983main ()
16984{
16985static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16986test_array [0] = 0
16987
16988 ;
16989 return 0;
16990}
16991_ACEOF
16992rm -f conftest.$ac_objext
16993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16994 (eval $ac_compile) 2>conftest.er1
a848cd7e 16995 ac_status=$?
ac1cb8d3
VS
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
a848cd7e
SC
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
4d4ff94c 17001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_lo=$ac_mid; break
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17019 if test $ac_mid -le $ac_hi; then
17020 ac_lo= ac_hi=
17021 break
17022 fi
17023 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17024fi
ac1cb8d3 17025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17026 done
17027else
17028 echo "$as_me: failed program was:" >&5
17029sed 's/^/| /' conftest.$ac_ext >&5
17030
17031ac_lo= ac_hi=
17032fi
ac1cb8d3 17033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17034fi
ac1cb8d3 17035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17036# Binary search between lo and hi bounds.
17037while test "x$ac_lo" != "x$ac_hi"; do
17038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17039 cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045$ac_includes_default
17046int
17047main ()
17048{
17049static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17050test_array [0] = 0
17051
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17058 (eval $ac_compile) 2>conftest.er1
a848cd7e 17059 ac_status=$?
ac1cb8d3
VS
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
a848cd7e
SC
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
4d4ff94c 17065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_hi=$ac_mid
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
17082ac_lo=`expr '(' $ac_mid ')' + 1`
17083fi
ac1cb8d3 17084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17085done
17086case $ac_lo in
17087?*) ac_cv_sizeof_long_long=$ac_lo;;
17088'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17089See \`config.log' for more details." >&5
17090echo "$as_me: error: cannot compute sizeof (long long), 77
17091See \`config.log' for more details." >&2;}
17092 { (exit 1); exit 1; }; } ;;
17093esac
17094else
17095 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
17096 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17097echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17098 { (exit 1); exit 1; }; }
17099else
17100 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h. */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h. */
17106$ac_includes_default
17107long longval () { return (long) (sizeof (long long)); }
17108unsigned long ulongval () { return (long) (sizeof (long long)); }
17109#include <stdio.h>
17110#include <stdlib.h>
17111int
17112main ()
17113{
17114
17115 FILE *f = fopen ("conftest.val", "w");
17116 if (! f)
17117 exit (1);
17118 if (((long) (sizeof (long long))) < 0)
17119 {
17120 long i = longval ();
17121 if (i != ((long) (sizeof (long long))))
17122 exit (1);
17123 fprintf (f, "%ld\n", i);
17124 }
17125 else
17126 {
17127 unsigned long i = ulongval ();
17128 if (i != ((long) (sizeof (long long))))
17129 exit (1);
17130 fprintf (f, "%lu\n", i);
17131 }
17132 exit (ferror (f) || fclose (f) != 0);
17133
17134 ;
17135 return 0;
17136}
17137_ACEOF
17138rm -f conftest$ac_exeext
17139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140 (eval $ac_link) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 ac_cv_sizeof_long_long=`cat conftest.val`
17150else
17151 echo "$as_me: program exited with status $ac_status" >&5
17152echo "$as_me: failed program was:" >&5
17153sed 's/^/| /' conftest.$ac_ext >&5
17154
17155( exit $ac_status )
17156{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17157See \`config.log' for more details." >&5
17158echo "$as_me: error: cannot compute sizeof (long long), 77
17159See \`config.log' for more details." >&2;}
17160 { (exit 1); exit 1; }; }
17161fi
ac1cb8d3 17162rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17163fi
17164fi
17165rm -f conftest.val
17166else
17167 ac_cv_sizeof_long_long=0
17168fi
17169fi
17170echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17171echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17172cat >>confdefs.h <<_ACEOF
17173#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17174_ACEOF
17175
17176
17177 ;;
17178 *-hp-hpux* )
17179 echo "$as_me:$LINENO: checking for long long" >&5
17180echo $ECHO_N "checking for long long... $ECHO_C" >&6
17181if test "${ac_cv_type_long_long+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184 cat >conftest.$ac_ext <<_ACEOF
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
17190$ac_includes_default
17191int
17192main ()
17193{
17194if ((long long *) 0)
17195 return 0;
17196if (sizeof (long long))
17197 return 0;
17198 ;
17199 return 0;
17200}
17201_ACEOF
17202rm -f conftest.$ac_objext
17203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17204 (eval $ac_compile) 2>conftest.er1
a848cd7e 17205 ac_status=$?
ac1cb8d3
VS
17206 grep -v '^ *+' conftest.er1 >conftest.err
17207 rm -f conftest.er1
17208 cat conftest.err >&5
a848cd7e
SC
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
4d4ff94c 17211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_type_long_long=yes
17224else
17225 echo "$as_me: failed program was:" >&5
17226sed 's/^/| /' conftest.$ac_ext >&5
17227
17228ac_cv_type_long_long=no
17229fi
ac1cb8d3 17230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17231fi
17232echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17233echo "${ECHO_T}$ac_cv_type_long_long" >&6
17234
17235echo "$as_me:$LINENO: checking size of long long" >&5
17236echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17237if test "${ac_cv_sizeof_long_long+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239else
17240 if test "$ac_cv_type_long_long" = yes; then
17241 # The cast to unsigned long works around a bug in the HP C Compiler
17242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17244 # This bug is HP SR number 8606223364.
17245 if test "$cross_compiling" = yes; then
17246 # Depending upon the size, compute the lo and hi bounds.
17247cat >conftest.$ac_ext <<_ACEOF
17248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
17253$ac_includes_default
17254int
17255main ()
17256{
17257static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17258test_array [0] = 0
17259
17260 ;
17261 return 0;
17262}
17263_ACEOF
17264rm -f conftest.$ac_objext
17265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17266 (eval $ac_compile) 2>conftest.er1
a848cd7e 17267 ac_status=$?
ac1cb8d3
VS
17268 grep -v '^ *+' conftest.er1 >conftest.err
17269 rm -f conftest.er1
17270 cat conftest.err >&5
a848cd7e
SC
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
4d4ff94c 17273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_lo=0 ac_mid=0
17286 while :; do
17287 cat >conftest.$ac_ext <<_ACEOF
17288/* confdefs.h. */
17289_ACEOF
17290cat confdefs.h >>conftest.$ac_ext
17291cat >>conftest.$ac_ext <<_ACEOF
17292/* end confdefs.h. */
17293$ac_includes_default
17294int
17295main ()
17296{
17297static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17298test_array [0] = 0
17299
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext
17305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17306 (eval $ac_compile) 2>conftest.er1
a848cd7e 17307 ac_status=$?
ac1cb8d3
VS
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
a848cd7e
SC
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
4d4ff94c 17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_hi=$ac_mid; break
17326else
17327 echo "$as_me: failed program was:" >&5
17328sed 's/^/| /' conftest.$ac_ext >&5
17329
17330ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17331 if test $ac_lo -le $ac_mid; then
17332 ac_lo= ac_hi=
17333 break
17334 fi
17335 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17336fi
ac1cb8d3 17337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17338 done
17339else
17340 echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343cat >conftest.$ac_ext <<_ACEOF
17344/* confdefs.h. */
17345_ACEOF
17346cat confdefs.h >>conftest.$ac_ext
17347cat >>conftest.$ac_ext <<_ACEOF
17348/* end confdefs.h. */
17349$ac_includes_default
17350int
17351main ()
17352{
17353static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17354test_array [0] = 0
17355
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext
17361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17362 (eval $ac_compile) 2>conftest.er1
a848cd7e 17363 ac_status=$?
ac1cb8d3
VS
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
a848cd7e
SC
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } &&
4d4ff94c 17369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_hi=-1 ac_mid=-1
17382 while :; do
17383 cat >conftest.$ac_ext <<_ACEOF
17384/* confdefs.h. */
17385_ACEOF
17386cat confdefs.h >>conftest.$ac_ext
17387cat >>conftest.$ac_ext <<_ACEOF
17388/* end confdefs.h. */
17389$ac_includes_default
17390int
17391main ()
17392{
17393static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17394test_array [0] = 0
17395
17396 ;
17397 return 0;
17398}
17399_ACEOF
17400rm -f conftest.$ac_objext
17401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17402 (eval $ac_compile) 2>conftest.er1
a848cd7e 17403 ac_status=$?
ac1cb8d3
VS
17404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
a848cd7e
SC
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
4d4ff94c 17409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_lo=$ac_mid; break
17422else
17423 echo "$as_me: failed program was:" >&5
17424sed 's/^/| /' conftest.$ac_ext >&5
17425
17426ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17427 if test $ac_mid -le $ac_hi; then
17428 ac_lo= ac_hi=
17429 break
17430 fi
17431 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17432fi
ac1cb8d3 17433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17434 done
17435else
17436 echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439ac_lo= ac_hi=
17440fi
ac1cb8d3 17441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17442fi
ac1cb8d3 17443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17444# Binary search between lo and hi bounds.
17445while test "x$ac_lo" != "x$ac_hi"; do
17446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453$ac_includes_default
17454int
17455main ()
17456{
17457static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17458test_array [0] = 0
17459
17460 ;
17461 return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext
17465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17466 (eval $ac_compile) 2>conftest.er1
a848cd7e 17467 ac_status=$?
ac1cb8d3
VS
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
a848cd7e
SC
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
4d4ff94c 17473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_hi=$ac_mid
17486else
17487 echo "$as_me: failed program was:" >&5
17488sed 's/^/| /' conftest.$ac_ext >&5
17489
17490ac_lo=`expr '(' $ac_mid ')' + 1`
17491fi
ac1cb8d3 17492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17493done
17494case $ac_lo in
17495?*) ac_cv_sizeof_long_long=$ac_lo;;
17496'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17497See \`config.log' for more details." >&5
17498echo "$as_me: error: cannot compute sizeof (long long), 77
17499See \`config.log' for more details." >&2;}
17500 { (exit 1); exit 1; }; } ;;
17501esac
17502else
17503 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
17504 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17505echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17506 { (exit 1); exit 1; }; }
17507else
17508 cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514$ac_includes_default
17515long longval () { return (long) (sizeof (long long)); }
17516unsigned long ulongval () { return (long) (sizeof (long long)); }
17517#include <stdio.h>
17518#include <stdlib.h>
17519int
17520main ()
17521{
17522
17523 FILE *f = fopen ("conftest.val", "w");
17524 if (! f)
17525 exit (1);
17526 if (((long) (sizeof (long long))) < 0)
17527 {
17528 long i = longval ();
17529 if (i != ((long) (sizeof (long long))))
17530 exit (1);
17531 fprintf (f, "%ld\n", i);
17532 }
17533 else
17534 {
17535 unsigned long i = ulongval ();
17536 if (i != ((long) (sizeof (long long))))
17537 exit (1);
17538 fprintf (f, "%lu\n", i);
17539 }
17540 exit (ferror (f) || fclose (f) != 0);
17541
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest$ac_exeext
17547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 ac_cv_sizeof_long_long=`cat conftest.val`
17558else
17559 echo "$as_me: program exited with status $ac_status" >&5
17560echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563( exit $ac_status )
17564{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17565See \`config.log' for more details." >&5
17566echo "$as_me: error: cannot compute sizeof (long long), 77
17567See \`config.log' for more details." >&2;}
17568 { (exit 1); exit 1; }; }
17569fi
ac1cb8d3 17570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17571fi
17572fi
17573rm -f conftest.val
17574else
17575 ac_cv_sizeof_long_long=0
17576fi
17577fi
17578echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17579echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17580cat >>confdefs.h <<_ACEOF
17581#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17582_ACEOF
17583
17584
17585 if test "$ac_cv_sizeof_long_long" != "0"; then
17586 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17587 fi
17588 ;;
17589 * )
17590 echo "$as_me:$LINENO: checking for long long" >&5
17591echo $ECHO_N "checking for long long... $ECHO_C" >&6
17592if test "${ac_cv_type_long_long+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17594else
17595 cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601$ac_includes_default
17602int
17603main ()
17604{
17605if ((long long *) 0)
17606 return 0;
17607if (sizeof (long long))
17608 return 0;
17609 ;
17610 return 0;
17611}
17612_ACEOF
17613rm -f conftest.$ac_objext
17614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17615 (eval $ac_compile) 2>conftest.er1
a848cd7e 17616 ac_status=$?
ac1cb8d3
VS
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
a848cd7e
SC
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
4d4ff94c 17622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_type_long_long=yes
17635else
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639ac_cv_type_long_long=no
17640fi
ac1cb8d3 17641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17642fi
17643echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17644echo "${ECHO_T}$ac_cv_type_long_long" >&6
17645
17646echo "$as_me:$LINENO: checking size of long long" >&5
17647echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17648if test "${ac_cv_sizeof_long_long+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
17651 if test "$ac_cv_type_long_long" = yes; then
17652 # The cast to unsigned long works around a bug in the HP C Compiler
17653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17655 # This bug is HP SR number 8606223364.
17656 if test "$cross_compiling" = yes; then
17657 # Depending upon the size, compute the lo and hi bounds.
17658cat >conftest.$ac_ext <<_ACEOF
17659/* confdefs.h. */
17660_ACEOF
17661cat confdefs.h >>conftest.$ac_ext
17662cat >>conftest.$ac_ext <<_ACEOF
17663/* end confdefs.h. */
17664$ac_includes_default
17665int
17666main ()
17667{
17668static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17669test_array [0] = 0
17670
17671 ;
17672 return 0;
17673}
17674_ACEOF
17675rm -f conftest.$ac_objext
17676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17677 (eval $ac_compile) 2>conftest.er1
a848cd7e 17678 ac_status=$?
ac1cb8d3
VS
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
a848cd7e
SC
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
4d4ff94c 17684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_lo=0 ac_mid=0
17697 while :; do
17698 cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
17704$ac_includes_default
17705int
17706main ()
17707{
17708static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17709test_array [0] = 0
17710
17711 ;
17712 return 0;
17713}
17714_ACEOF
17715rm -f conftest.$ac_objext
17716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17717 (eval $ac_compile) 2>conftest.er1
a848cd7e 17718 ac_status=$?
ac1cb8d3
VS
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
a848cd7e
SC
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
4d4ff94c 17724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_hi=$ac_mid; break
17737else
17738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17742 if test $ac_lo -le $ac_mid; then
17743 ac_lo= ac_hi=
17744 break
17745 fi
17746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17747fi
ac1cb8d3 17748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17749 done
17750else
17751 echo "$as_me: failed program was:" >&5
17752sed 's/^/| /' conftest.$ac_ext >&5
17753
17754cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760$ac_includes_default
17761int
17762main ()
17763{
17764static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17765test_array [0] = 0
17766
17767 ;
17768 return 0;
17769}
17770_ACEOF
17771rm -f conftest.$ac_objext
17772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17773 (eval $ac_compile) 2>conftest.er1
a848cd7e 17774 ac_status=$?
ac1cb8d3
VS
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
a848cd7e
SC
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
4d4ff94c 17780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_hi=-1 ac_mid=-1
17793 while :; do
17794 cat >conftest.$ac_ext <<_ACEOF
17795/* confdefs.h. */
17796_ACEOF
17797cat confdefs.h >>conftest.$ac_ext
17798cat >>conftest.$ac_ext <<_ACEOF
17799/* end confdefs.h. */
17800$ac_includes_default
17801int
17802main ()
17803{
17804static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17805test_array [0] = 0
17806
17807 ;
17808 return 0;
17809}
17810_ACEOF
17811rm -f conftest.$ac_objext
17812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17813 (eval $ac_compile) 2>conftest.er1
a848cd7e 17814 ac_status=$?
ac1cb8d3
VS
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
a848cd7e
SC
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
4d4ff94c 17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_lo=$ac_mid; break
17833else
17834 echo "$as_me: failed program was:" >&5
17835sed 's/^/| /' conftest.$ac_ext >&5
17836
17837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17838 if test $ac_mid -le $ac_hi; then
17839 ac_lo= ac_hi=
17840 break
17841 fi
17842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17843fi
ac1cb8d3 17844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17845 done
17846else
17847 echo "$as_me: failed program was:" >&5
17848sed 's/^/| /' conftest.$ac_ext >&5
17849
17850ac_lo= ac_hi=
17851fi
ac1cb8d3 17852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17853fi
ac1cb8d3 17854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17855# Binary search between lo and hi bounds.
17856while test "x$ac_lo" != "x$ac_hi"; do
17857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17858 cat >conftest.$ac_ext <<_ACEOF
17859/* confdefs.h. */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h. */
17864$ac_includes_default
17865int
17866main ()
17867{
17868static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17869test_array [0] = 0
17870
17871 ;
17872 return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext
17876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17877 (eval $ac_compile) 2>conftest.er1
a848cd7e 17878 ac_status=$?
ac1cb8d3
VS
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
a848cd7e
SC
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } &&
4d4ff94c 17884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_hi=$ac_mid
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_lo=`expr '(' $ac_mid ')' + 1`
17902fi
ac1cb8d3 17903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17904done
17905case $ac_lo in
17906?*) ac_cv_sizeof_long_long=$ac_lo;;
17907'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17908See \`config.log' for more details." >&5
17909echo "$as_me: error: cannot compute sizeof (long long), 77
17910See \`config.log' for more details." >&2;}
17911 { (exit 1); exit 1; }; } ;;
17912esac
17913else
17914 if test "$cross_compiling" = yes; then
4d4ff94c
VZ
17915 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17916echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17917 { (exit 1); exit 1; }; }
17918else
17919 cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926long longval () { return (long) (sizeof (long long)); }
17927unsigned long ulongval () { return (long) (sizeof (long long)); }
17928#include <stdio.h>
17929#include <stdlib.h>
17930int
17931main ()
17932{
17933
17934 FILE *f = fopen ("conftest.val", "w");
17935 if (! f)
17936 exit (1);
17937 if (((long) (sizeof (long long))) < 0)
17938 {
17939 long i = longval ();
17940 if (i != ((long) (sizeof (long long))))
17941 exit (1);
17942 fprintf (f, "%ld\n", i);
17943 }
17944 else
17945 {
17946 unsigned long i = ulongval ();
17947 if (i != ((long) (sizeof (long long))))
17948 exit (1);
17949 fprintf (f, "%lu\n", i);
17950 }
17951 exit (ferror (f) || fclose (f) != 0);
17952
17953 ;
17954 return 0;
17955}
17956_ACEOF
17957rm -f conftest$ac_exeext
17958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959 (eval $ac_link) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_sizeof_long_long=`cat conftest.val`
17969else
17970 echo "$as_me: program exited with status $ac_status" >&5
17971echo "$as_me: failed program was:" >&5
17972sed 's/^/| /' conftest.$ac_ext >&5
17973
17974( exit $ac_status )
17975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17976See \`config.log' for more details." >&5
17977echo "$as_me: error: cannot compute sizeof (long long), 77
17978See \`config.log' for more details." >&2;}
17979 { (exit 1); exit 1; }; }
17980fi
ac1cb8d3 17981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17982fi
17983fi
17984rm -f conftest.val
17985else
17986 ac_cv_sizeof_long_long=0
17987fi
17988fi
17989echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17990echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17991cat >>confdefs.h <<_ACEOF
17992#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17993_ACEOF
17994
17995
17996esac
17997
17998echo "$as_me:$LINENO: checking size of wchar_t" >&5
17999echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18000if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18002else
18003
18004 if test "$cross_compiling" = yes; then
18005
18006 case "${host}" in
18007 *-pc-msdosdjgpp )
18008 wx_cv_sizeof_wchar_t=0
18009 ;;
18010 * )
18011 wx_cv_sizeof_wchar_t=4
18012 ;;
18013 esac
18014
18015
18016else
18017 cat >conftest.$ac_ext <<_ACEOF
18018/* confdefs.h. */
18019_ACEOF
18020cat confdefs.h >>conftest.$ac_ext
18021cat >>conftest.$ac_ext <<_ACEOF
18022/* end confdefs.h. */
18023
18024 /* DJGPP only has fake wchar_t: */
18025 #ifdef __DJGPP__
18026 # error "fake wchar_t"
18027 #endif
18028 #ifdef HAVE_WCHAR_H
18029 # ifdef __CYGWIN__
18030 # include <stddef.h>
18031 # endif
18032 # include <wchar.h>
18033 #endif
18034 #ifdef HAVE_STDLIB_H
18035 # include <stdlib.h>
18036 #endif
18037 #include <stdio.h>
18038 int main()
18039 {
18040 FILE *f=fopen("conftestval", "w");
18041 if (!f) exit(1);
18042 fprintf(f, "%i", sizeof(wchar_t));
18043 exit(0);
18044 }
18045
18046_ACEOF
18047rm -f conftest$ac_exeext
18048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058 wx_cv_sizeof_wchar_t=`cat conftestval`
18059else
18060 echo "$as_me: program exited with status $ac_status" >&5
18061echo "$as_me: failed program was:" >&5
18062sed 's/^/| /' conftest.$ac_ext >&5
18063
18064( exit $ac_status )
18065wx_cv_sizeof_wchar_t=0
18066fi
ac1cb8d3 18067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18068fi
18069
18070fi
18071echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18072echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18073
18074cat >>confdefs.h <<_ACEOF
18075#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18076_ACEOF
18077
18078
18079# Check whether --enable-largefile or --disable-largefile was given.
18080if test "${enable_largefile+set}" = set; then
18081 enableval="$enable_largefile"
18082
18083fi;
18084if test "$enable_largefile" != no; then
18085 wx_largefile=no
18086
18087 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18088echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18089if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092
18093 cat >conftest.$ac_ext <<_ACEOF
18094/* confdefs.h. */
18095_ACEOF
18096cat confdefs.h >>conftest.$ac_ext
18097cat >>conftest.$ac_ext <<_ACEOF
18098/* end confdefs.h. */
18099#define _FILE_OFFSET_BITS 64
18100 #include <sys/types.h>
18101int
18102main ()
18103{
18104typedef struct {
18105 unsigned int field: sizeof(off_t) == 8;
18106} wxlf;
18107
18108 ;
18109 return 0;
18110}
18111_ACEOF
18112rm -f conftest.$ac_objext
18113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18114 (eval $ac_compile) 2>conftest.er1
a848cd7e 18115 ac_status=$?
ac1cb8d3
VS
18116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
a848cd7e
SC
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
4d4ff94c 18121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18133 ac_cv_sys_file_offset_bits=64
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138ac_cv_sys_file_offset_bits=no
18139fi
ac1cb8d3 18140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18141
18142
18143fi
18144echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18145echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18146
18147 if test "$ac_cv_sys_file_offset_bits" != no; then
18148 wx_largefile=yes
18149 cat >>confdefs.h <<_ACEOF
18150#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18151_ACEOF
18152
18153 fi
18154
18155 if test "x$wx_largefile" != "xyes"; then
18156
18157 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18158echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18159if test "${ac_cv_sys_large_files+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18161else
18162
18163 cat >conftest.$ac_ext <<_ACEOF
18164/* confdefs.h. */
18165_ACEOF
18166cat confdefs.h >>conftest.$ac_ext
18167cat >>conftest.$ac_ext <<_ACEOF
18168/* end confdefs.h. */
18169#define _LARGE_FILES 1
18170 #include <sys/types.h>
18171int
18172main ()
18173{
18174typedef struct {
18175 unsigned int field: sizeof(off_t) == 8;
18176} wxlf;
18177
18178 ;
18179 return 0;
18180}
18181_ACEOF
18182rm -f conftest.$ac_objext
18183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18184 (eval $ac_compile) 2>conftest.er1
a848cd7e 18185 ac_status=$?
ac1cb8d3
VS
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
a848cd7e
SC
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
4d4ff94c 18191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18203 ac_cv_sys_large_files=1
18204else
18205 echo "$as_me: failed program was:" >&5
18206sed 's/^/| /' conftest.$ac_ext >&5
18207
18208ac_cv_sys_large_files=no
18209fi
ac1cb8d3 18210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18211
18212
18213fi
18214echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18215echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18216
18217 if test "$ac_cv_sys_large_files" != no; then
18218 wx_largefile=yes
18219 cat >>confdefs.h <<_ACEOF
18220#define _LARGE_FILES $ac_cv_sys_large_files
18221_ACEOF
18222
18223 fi
18224
18225 fi
18226
18227 echo "$as_me:$LINENO: checking if large file support is available" >&5
18228echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18229 if test "x$wx_largefile" = "xyes"; then
18230 cat >>confdefs.h <<\_ACEOF
18231#define HAVE_LARGEFILE_SUPPORT 1
18232_ACEOF
18233
18234 fi
18235 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18236echo "${ECHO_T}$wx_largefile" >&6
18237fi
18238
18239
18240if test "x$wx_largefile" = "xyes"; then
18241 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18242 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18243 else
18244 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18245 fi
18246 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18247fi
18248
18249echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18250echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18251if test "${ac_cv_c_bigendian+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253else
18254 ac_cv_c_bigendian=unknown
18255# See if sys/param.h defines the BYTE_ORDER macro.
18256cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
18261/* end confdefs.h. */
18262#include <sys/types.h>
18263#include <sys/param.h>
18264int
18265main ()
18266{
18267
18268#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18269 bogus endian macros
18270#endif
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext
18276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18277 (eval $ac_compile) 2>conftest.er1
a848cd7e 18278 ac_status=$?
ac1cb8d3
VS
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
a848cd7e
SC
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
4d4ff94c 18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18296 # It does; now see whether it defined to BIG_ENDIAN or not.
18297cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303#include <sys/types.h>
18304#include <sys/param.h>
18305int
18306main ()
18307{
18308
18309#if BYTE_ORDER != BIG_ENDIAN
18310 not big endian
18311#endif
18312 ;
18313 return 0;
18314}
18315_ACEOF
18316rm -f conftest.$ac_objext
18317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18318 (eval $ac_compile) 2>conftest.er1
a848cd7e 18319 ac_status=$?
ac1cb8d3
VS
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
a848cd7e
SC
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
4d4ff94c 18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
18337 ac_cv_c_bigendian=yes
18338else
18339 echo "$as_me: failed program was:" >&5
18340sed 's/^/| /' conftest.$ac_ext >&5
18341
18342ac_cv_c_bigendian=no
18343fi
ac1cb8d3 18344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349fi
ac1cb8d3 18350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18351if test $ac_cv_c_bigendian = unknown; then
18352if test "$cross_compiling" = yes; then
18353 ac_cv_c_bigendian=unknown
18354else
18355 cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361main () {
18362 /* Are we little or big endian? From Harbison&Steele. */
18363 union
18364 {
18365 long l;
18366 char c[sizeof (long)];
18367 } u;
18368 u.l = 1;
18369 exit (u.c[sizeof (long) - 1] == 1);
18370}
18371_ACEOF
18372rm -f conftest$ac_exeext
18373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18374 (eval $ac_link) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 ac_cv_c_bigendian=no
18384else
18385 echo "$as_me: program exited with status $ac_status" >&5
18386echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389( exit $ac_status )
18390ac_cv_c_bigendian=yes
18391fi
ac1cb8d3 18392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18393fi
18394fi
18395fi
18396echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18397echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18398if test $ac_cv_c_bigendian = unknown; then
18399 { 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
18400echo "$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;}
18401fi
18402if test $ac_cv_c_bigendian = yes; then
18403 cat >>confdefs.h <<\_ACEOF
18404#define WORDS_BIGENDIAN 1
18405_ACEOF
18406
18407fi
18408
18409
18410ac_ext=cc
18411ac_cpp='$CXXCPP $CPPFLAGS'
18412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18415echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18416echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18417if test -z "$CXXCPP"; then
18418 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420else
18421 # Double quotes because CXXCPP needs to be expanded
18422 for CXXCPP in "$CXX -E" "/lib/cpp"
18423 do
18424 ac_preproc_ok=false
18425for ac_cxx_preproc_warn_flag in '' yes
18426do
18427 # Use a header file that comes with gcc, so configuring glibc
18428 # with a fresh cross-compiler works.
18429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 # <limits.h> exists even on freestanding compilers.
18431 # On the NeXT, cc -E runs the code through the compiler's parser,
18432 # not just through cpp. "Syntax error" is here to catch this case.
18433 cat >conftest.$ac_ext <<_ACEOF
18434/* confdefs.h. */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h. */
18439#ifdef __STDC__
18440# include <limits.h>
18441#else
18442# include <assert.h>
18443#endif
ac1cb8d3 18444 Syntax error
a848cd7e
SC
18445_ACEOF
18446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } >/dev/null; then
18454 if test -s conftest.err; then
18455 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18456 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18457 else
18458 ac_cpp_err=
18459 fi
18460else
18461 ac_cpp_err=yes
18462fi
18463if test -z "$ac_cpp_err"; then
18464 :
18465else
18466 echo "$as_me: failed program was:" >&5
18467sed 's/^/| /' conftest.$ac_ext >&5
18468
18469 # Broken: fails on valid input.
18470continue
18471fi
18472rm -f conftest.err conftest.$ac_ext
18473
18474 # OK, works on sane cases. Now check whether non-existent headers
18475 # can be detected and how.
18476 cat >conftest.$ac_ext <<_ACEOF
18477/* confdefs.h. */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h. */
18482#include <ac_nonexistent.h>
18483_ACEOF
18484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } >/dev/null; then
18492 if test -s conftest.err; then
18493 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18495 else
18496 ac_cpp_err=
18497 fi
18498else
18499 ac_cpp_err=yes
18500fi
18501if test -z "$ac_cpp_err"; then
18502 # Broken: success on invalid input.
18503continue
18504else
18505 echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508 # Passes both tests.
18509ac_preproc_ok=:
18510break
18511fi
18512rm -f conftest.err conftest.$ac_ext
18513
18514done
18515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18516rm -f conftest.err conftest.$ac_ext
18517if $ac_preproc_ok; then
18518 break
18519fi
18520
18521 done
18522 ac_cv_prog_CXXCPP=$CXXCPP
18523
18524fi
18525 CXXCPP=$ac_cv_prog_CXXCPP
18526else
18527 ac_cv_prog_CXXCPP=$CXXCPP
18528fi
18529echo "$as_me:$LINENO: result: $CXXCPP" >&5
18530echo "${ECHO_T}$CXXCPP" >&6
18531ac_preproc_ok=false
18532for ac_cxx_preproc_warn_flag in '' yes
18533do
18534 # Use a header file that comes with gcc, so configuring glibc
18535 # with a fresh cross-compiler works.
18536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18537 # <limits.h> exists even on freestanding compilers.
18538 # On the NeXT, cc -E runs the code through the compiler's parser,
18539 # not just through cpp. "Syntax error" is here to catch this case.
18540 cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546#ifdef __STDC__
18547# include <limits.h>
18548#else
18549# include <assert.h>
18550#endif
ac1cb8d3 18551 Syntax error
a848cd7e
SC
18552_ACEOF
18553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } >/dev/null; then
18561 if test -s conftest.err; then
18562 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18564 else
18565 ac_cpp_err=
18566 fi
18567else
18568 ac_cpp_err=yes
18569fi
18570if test -z "$ac_cpp_err"; then
18571 :
18572else
18573 echo "$as_me: failed program was:" >&5
18574sed 's/^/| /' conftest.$ac_ext >&5
18575
18576 # Broken: fails on valid input.
18577continue
18578fi
18579rm -f conftest.err conftest.$ac_ext
18580
18581 # OK, works on sane cases. Now check whether non-existent headers
18582 # can be detected and how.
18583 cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h. */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h. */
18589#include <ac_nonexistent.h>
18590_ACEOF
18591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } >/dev/null; then
18599 if test -s conftest.err; then
18600 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18601 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18602 else
18603 ac_cpp_err=
18604 fi
18605else
18606 ac_cpp_err=yes
18607fi
18608if test -z "$ac_cpp_err"; then
18609 # Broken: success on invalid input.
18610continue
18611else
18612 echo "$as_me: failed program was:" >&5
18613sed 's/^/| /' conftest.$ac_ext >&5
18614
18615 # Passes both tests.
18616ac_preproc_ok=:
18617break
18618fi
18619rm -f conftest.err conftest.$ac_ext
18620
18621done
18622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18623rm -f conftest.err conftest.$ac_ext
18624if $ac_preproc_ok; then
18625 :
18626else
18627 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18628See \`config.log' for more details." >&5
18629echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18630See \`config.log' for more details." >&2;}
18631 { (exit 1); exit 1; }; }
18632fi
18633
18634ac_ext=cc
18635ac_cpp='$CXXCPP $CPPFLAGS'
18636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18639
18640
18641
18642
18643
18644 ac_ext=cc
18645ac_cpp='$CXXCPP $CPPFLAGS'
18646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18649
18650
18651
18652for ac_header in iostream
18653do
18654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18655if eval "test \"\${$as_ac_Header+set}\" = set"; then
18656 echo "$as_me:$LINENO: checking for $ac_header" >&5
18657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18658if eval "test \"\${$as_ac_Header+set}\" = set"; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660fi
18661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18663else
18664 # Is the header compilable?
18665echo "$as_me:$LINENO: checking $ac_header usability" >&5
18666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18667cat >conftest.$ac_ext <<_ACEOF
18668/* confdefs.h. */
18669_ACEOF
18670cat confdefs.h >>conftest.$ac_ext
18671cat >>conftest.$ac_ext <<_ACEOF
18672/* end confdefs.h. */
18673$ac_includes_default
18674#include <$ac_header>
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18678 (eval $ac_compile) 2>conftest.er1
a848cd7e 18679 ac_status=$?
ac1cb8d3
VS
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
a848cd7e
SC
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
4d4ff94c 18685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_header_compiler=yes
18698else
18699 echo "$as_me: failed program was:" >&5
18700sed 's/^/| /' conftest.$ac_ext >&5
18701
18702ac_header_compiler=no
18703fi
ac1cb8d3 18704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18706echo "${ECHO_T}$ac_header_compiler" >&6
18707
18708# Is the header present?
18709echo "$as_me:$LINENO: checking $ac_header presence" >&5
18710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18711cat >conftest.$ac_ext <<_ACEOF
18712/* confdefs.h. */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h. */
18717#include <$ac_header>
18718_ACEOF
18719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } >/dev/null; then
18727 if test -s conftest.err; then
18728 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18729 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18730 else
18731 ac_cpp_err=
18732 fi
18733else
18734 ac_cpp_err=yes
18735fi
18736if test -z "$ac_cpp_err"; then
18737 ac_header_preproc=yes
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742 ac_header_preproc=no
18743fi
18744rm -f conftest.err conftest.$ac_ext
18745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18746echo "${ECHO_T}$ac_header_preproc" >&6
18747
18748# So? What about this header?
ac1cb8d3
VS
18749case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18750 yes:no: )
a848cd7e
SC
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18755 ac_header_preproc=yes
a848cd7e 18756 ;;
ac1cb8d3 18757 no:yes:* )
a848cd7e
SC
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18770 (
18771 cat <<\_ASBOX
ac1cb8d3
VS
18772## ----------------------------------------- ##
18773## Report this to wx-dev@lists.wxwidgets.org ##
18774## ----------------------------------------- ##
a848cd7e
SC
18775_ASBOX
18776 ) |
18777 sed "s/^/$as_me: WARNING: /" >&2
18778 ;;
18779esac
18780echo "$as_me:$LINENO: checking for $ac_header" >&5
18781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18782if eval "test \"\${$as_ac_Header+set}\" = set"; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784else
ac1cb8d3 18785 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18786fi
18787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18789
18790fi
18791if test `eval echo '${'$as_ac_Header'}'` = yes; then
18792 cat >>confdefs.h <<_ACEOF
18793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18794_ACEOF
18795
18796fi
18797
18798done
18799
18800
18801 if test "$ac_cv_header_iostream" = "yes" ; then
18802 :
18803 else
18804 cat >>confdefs.h <<\_ACEOF
18805#define wxUSE_IOSTREAMH 1
18806_ACEOF
18807
18808 fi
18809
18810 ac_ext=c
18811ac_cpp='$CPP $CPPFLAGS'
18812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
18816
18817
18818
18819 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18820echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18821if test "${wx_cv_cpp_bool+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823else
18824
18825
18826
18827 ac_ext=cc
18828ac_cpp='$CXXCPP $CPPFLAGS'
18829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18832
18833
18834 cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840
18841
18842int
18843main ()
18844{
18845
18846 bool b = true;
18847
18848 return 0;
18849
18850 ;
18851 return 0;
18852}
18853_ACEOF
18854rm -f conftest.$ac_objext
18855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18856 (eval $ac_compile) 2>conftest.er1
a848cd7e 18857 ac_status=$?
ac1cb8d3
VS
18858 grep -v '^ *+' conftest.er1 >conftest.err
18859 rm -f conftest.er1
18860 cat conftest.err >&5
a848cd7e
SC
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
4d4ff94c 18863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875
18876 wx_cv_cpp_bool=yes
18877
18878else
18879 echo "$as_me: failed program was:" >&5
18880sed 's/^/| /' conftest.$ac_ext >&5
18881
18882
18883 wx_cv_cpp_bool=no
18884
18885
18886fi
ac1cb8d3 18887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18888
18889 ac_ext=c
18890ac_cpp='$CPP $CPPFLAGS'
18891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895
18896fi
18897echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18898echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18899
18900 if test "$wx_cv_cpp_bool" = "yes"; then
18901 cat >>confdefs.h <<\_ACEOF
18902#define HAVE_BOOL 1
18903_ACEOF
18904
18905 fi
18906
18907
18908
18909 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18910echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18911if test "${wx_cv_explicit+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18913else
18914
18915
18916
18917 ac_ext=cc
18918ac_cpp='$CXXCPP $CPPFLAGS'
18919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18922
18923
18924 cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
18930
18931 class Foo { public: explicit Foo(int) {} };
18932
18933int
18934main ()
18935{
18936
18937 return 0;
18938
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943rm -f conftest.$ac_objext
18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18945 (eval $ac_compile) 2>conftest.er1
a848cd7e 18946 ac_status=$?
ac1cb8d3
VS
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
a848cd7e
SC
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
4d4ff94c 18952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964
18965 cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
18971
18972 class Foo { public: explicit Foo(int) {} };
18973 static void TakeFoo(const Foo& foo) { }
18974
18975int
18976main ()
18977{
18978
18979 TakeFoo(17);
18980 return 0;
18981
18982 ;
18983 return 0;
18984}
18985_ACEOF
18986rm -f conftest.$ac_objext
18987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18988 (eval $ac_compile) 2>conftest.er1
a848cd7e 18989 ac_status=$?
ac1cb8d3
VS
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
a848cd7e
SC
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
4d4ff94c 18995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 wx_cv_explicit=no
19008else
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012wx_cv_explicit=yes
19013
19014fi
ac1cb8d3 19015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19016
19017else
19018 echo "$as_me: failed program was:" >&5
19019sed 's/^/| /' conftest.$ac_ext >&5
19020
19021wx_cv_explicit=no
19022
19023fi
ac1cb8d3 19024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19025
19026 ac_ext=c
19027ac_cpp='$CPP $CPPFLAGS'
19028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19030ac_compiler_gnu=$ac_cv_c_compiler_gnu
19031
19032
19033fi
19034echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19035echo "${ECHO_T}$wx_cv_explicit" >&6
19036
19037 if test "$wx_cv_explicit" = "yes"; then
19038 cat >>confdefs.h <<\_ACEOF
19039#define HAVE_EXPLICIT 1
19040_ACEOF
19041
19042 fi
19043
19044
19045echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19046echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19047if test "${ac_cv_cxx_const_cast+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19049else
19050
19051
19052 ac_ext=cc
19053ac_cpp='$CXXCPP $CPPFLAGS'
19054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19057
19058 cat >conftest.$ac_ext <<_ACEOF
19059/* confdefs.h. */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h. */
19064
19065int
19066main ()
19067{
19068int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext
19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19075 (eval $ac_compile) 2>conftest.er1
a848cd7e 19076 ac_status=$?
ac1cb8d3
VS
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
a848cd7e
SC
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
4d4ff94c 19082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_cv_cxx_const_cast=yes
19095else
19096 echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
19099ac_cv_cxx_const_cast=no
19100fi
ac1cb8d3 19101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19102 ac_ext=c
19103ac_cpp='$CPP $CPPFLAGS'
19104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108
19109fi
19110echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19111echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19112if test "$ac_cv_cxx_const_cast" = yes; then
19113
19114cat >>confdefs.h <<\_ACEOF
19115#define HAVE_CONST_CAST
19116_ACEOF
19117
19118fi
19119
19120echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19121echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19122if test "${ac_cv_cxx_static_cast+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124else
19125
19126
19127 ac_ext=cc
19128ac_cpp='$CXXCPP $CPPFLAGS'
19129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19132
19133 cat >conftest.$ac_ext <<_ACEOF
19134/* confdefs.h. */
19135_ACEOF
19136cat confdefs.h >>conftest.$ac_ext
19137cat >>conftest.$ac_ext <<_ACEOF
19138/* end confdefs.h. */
19139#include <typeinfo>
19140class Base { public : Base () {} virtual void f () = 0; };
19141class Derived : public Base { public : Derived () {} virtual void f () {} };
19142int g (Derived&) { return 0; }
19143int
19144main ()
19145{
19146
19147Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19148 ;
19149 return 0;
19150}
19151_ACEOF
19152rm -f conftest.$ac_objext
19153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19154 (eval $ac_compile) 2>conftest.er1
a848cd7e 19155 ac_status=$?
ac1cb8d3
VS
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
a848cd7e
SC
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
4d4ff94c 19161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_cxx_static_cast=yes
19174else
19175 echo "$as_me: failed program was:" >&5
19176sed 's/^/| /' conftest.$ac_ext >&5
19177
19178ac_cv_cxx_static_cast=no
19179fi
ac1cb8d3 19180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19181 ac_ext=c
19182ac_cpp='$CPP $CPPFLAGS'
19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187
19188fi
19189echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19190echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19191if test "$ac_cv_cxx_static_cast" = yes; then
19192
19193cat >>confdefs.h <<\_ACEOF
19194#define HAVE_STATIC_CAST
19195_ACEOF
19196
19197fi
19198
19199
19200if test "$wxUSE_STL" = "yes"; then
19201 ac_ext=cc
19202ac_cpp='$CXXCPP $CPPFLAGS'
19203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19206
19207
19208 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19209echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216#include <string>
19217 #include <functional>
19218 #include <algorithm>
19219 #include <vector>
19220 #include <list>
19221int
19222main ()
19223{
19224std::vector<int> moo;
19225 std::list<int> foo;
19226 std::vector<int>::iterator it =
19227 std::find_if(moo.begin(), moo.end(),
19228 std::bind2nd(std::less<int>(), 3));
19229 ;
19230 return 0;
19231}
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19235 (eval $ac_compile) 2>conftest.er1
a848cd7e 19236 ac_status=$?
ac1cb8d3
VS
19237 grep -v '^ *+' conftest.er1 >conftest.err
19238 rm -f conftest.er1
19239 cat conftest.err >&5
a848cd7e
SC
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
4d4ff94c 19242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 echo "$as_me:$LINENO: result: yes" >&5
19255echo "${ECHO_T}yes" >&6
19256else
19257 echo "$as_me: failed program was:" >&5
19258sed 's/^/| /' conftest.$ac_ext >&5
19259
19260echo "$as_me:$LINENO: result: no" >&5
19261echo "${ECHO_T}no" >&6
19262 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19263echo "$as_me: error: Basic STL functionality missing" >&2;}
19264 { (exit 1); exit 1; }; }
19265fi
ac1cb8d3 19266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19267
19268 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19269echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19270 cat >conftest.$ac_ext <<_ACEOF
19271/* confdefs.h. */
19272_ACEOF
19273cat confdefs.h >>conftest.$ac_ext
19274cat >>conftest.$ac_ext <<_ACEOF
19275/* end confdefs.h. */
19276#include <string>
19277int
19278main ()
19279{
19280std::wstring foo;
19281 ;
19282 return 0;
19283}
19284_ACEOF
19285rm -f conftest.$ac_objext
19286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19287 (eval $ac_compile) 2>conftest.er1
a848cd7e 19288 ac_status=$?
ac1cb8d3
VS
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
a848cd7e
SC
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
4d4ff94c 19294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 echo "$as_me:$LINENO: result: yes" >&5
19307echo "${ECHO_T}yes" >&6
19308 cat >>confdefs.h <<\_ACEOF
19309#define HAVE_STD_WSTRING 1
19310_ACEOF
19311
19312else
19313 echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316echo "$as_me:$LINENO: result: no" >&5
19317echo "${ECHO_T}no" >&6
19318fi
ac1cb8d3 19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19320
19321 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19322echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
19329#include <string>
19330int
19331main ()
19332{
19333std::string foo, bar;
19334 foo.compare(bar);
19335 foo.compare(1, 1, bar);
19336 foo.compare(1, 1, bar, 1, 1);
19337 foo.compare("");
19338 foo.compare(1, 1, "");
19339 foo.compare(1, 1, "", 2);
19340 ;
19341 return 0;
19342}
19343_ACEOF
19344rm -f conftest.$ac_objext
19345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19346 (eval $ac_compile) 2>conftest.er1
a848cd7e 19347 ac_status=$?
ac1cb8d3
VS
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
a848cd7e
SC
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
4d4ff94c 19353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 echo "$as_me:$LINENO: result: yes" >&5
19366echo "${ECHO_T}yes" >&6
19367 cat >>confdefs.h <<\_ACEOF
19368#define HAVE_STD_STRING_COMPARE 1
19369_ACEOF
19370
19371else
19372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375echo "$as_me:$LINENO: result: no" >&5
19376echo "${ECHO_T}no" >&6
19377fi
ac1cb8d3 19378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19379
19380 if test "${ac_cv_header_hash_map+set}" = set; then
19381 echo "$as_me:$LINENO: checking for hash_map" >&5
19382echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19383if test "${ac_cv_header_hash_map+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19385fi
19386echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19387echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19388else
19389 # Is the header compilable?
19390echo "$as_me:$LINENO: checking hash_map usability" >&5
19391echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19392cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
19398$ac_includes_default
19399#include <hash_map>
19400_ACEOF
19401rm -f conftest.$ac_objext
19402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19403 (eval $ac_compile) 2>conftest.er1
bdcade0a 19404 ac_status=$?
ac1cb8d3
VS
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
bdcade0a
MB
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
4d4ff94c 19410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } &&
19416 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_header_compiler=yes
19423else
19424 echo "$as_me: failed program was:" >&5
19425sed 's/^/| /' conftest.$ac_ext >&5
19426
19427ac_header_compiler=no
19428fi
ac1cb8d3 19429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19431echo "${ECHO_T}$ac_header_compiler" >&6
19432
19433# Is the header present?
19434echo "$as_me:$LINENO: checking hash_map presence" >&5
19435echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19436cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
19442#include <hash_map>
19443_ACEOF
19444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19446 ac_status=$?
19447 grep -v '^ *+' conftest.er1 >conftest.err
19448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } >/dev/null; then
19452 if test -s conftest.err; then
19453 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19455 else
19456 ac_cpp_err=
19457 fi
19458else
19459 ac_cpp_err=yes
19460fi
19461if test -z "$ac_cpp_err"; then
19462 ac_header_preproc=yes
19463else
19464 echo "$as_me: failed program was:" >&5
19465sed 's/^/| /' conftest.$ac_ext >&5
19466
19467 ac_header_preproc=no
19468fi
19469rm -f conftest.err conftest.$ac_ext
19470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19471echo "${ECHO_T}$ac_header_preproc" >&6
19472
19473# So? What about this header?
ac1cb8d3
VS
19474case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19475 yes:no: )
bdcade0a
MB
19476 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19477echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19478 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19479echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19480 ac_header_preproc=yes
bdcade0a 19481 ;;
ac1cb8d3 19482 no:yes:* )
bdcade0a
MB
19483 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19484echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19485 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19486echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19487 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19488echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19490echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19491 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19492echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19493 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19494echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19495 (
19496 cat <<\_ASBOX
ac1cb8d3
VS
19497## ----------------------------------------- ##
19498## Report this to wx-dev@lists.wxwidgets.org ##
19499## ----------------------------------------- ##
bdcade0a
MB
19500_ASBOX
19501 ) |
19502 sed "s/^/$as_me: WARNING: /" >&2
19503 ;;
19504esac
19505echo "$as_me:$LINENO: checking for hash_map" >&5
19506echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19507if test "${ac_cv_header_hash_map+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510 ac_cv_header_hash_map=$ac_header_preproc
19511fi
19512echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19513echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19514
19515fi
19516if test $ac_cv_header_hash_map = yes; then
19517 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19518echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19519 cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525#include <hash_map>
19526 #include <hash_set>
19527int
19528main ()
19529{
19530std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19531 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19532 ;
19533 return 0;
19534}
19535_ACEOF
19536rm -f conftest.$ac_objext
19537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19538 (eval $ac_compile) 2>conftest.er1
bdcade0a 19539 ac_status=$?
ac1cb8d3
VS
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
bdcade0a
MB
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
4d4ff94c 19545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 echo "$as_me:$LINENO: result: yes" >&5
19558echo "${ECHO_T}yes" >&6
19559 cat >>confdefs.h <<\_ACEOF
19560#define HAVE_HASH_MAP 1
19561_ACEOF
19562
19563 cat >>confdefs.h <<\_ACEOF
19564#define HAVE_STD_HASH_MAP 1
19565_ACEOF
19566
19567else
19568 echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571echo "$as_me:$LINENO: result: no" >&5
19572echo "${ECHO_T}no" >&6
19573fi
ac1cb8d3 19574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19575
19576fi
19577
19578
19579
19580 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19581 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19582echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19583if test "${ac_cv_header_ext_hash_map+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585fi
19586echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19587echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19588else
19589 # Is the header compilable?
19590echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19591echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19592cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
19598$ac_includes_default
19599#include <ext/hash_map>
19600_ACEOF
19601rm -f conftest.$ac_objext
19602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19603 (eval $ac_compile) 2>conftest.er1
bdcade0a 19604 ac_status=$?
ac1cb8d3
VS
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
bdcade0a
MB
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
4d4ff94c 19610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_header_compiler=yes
19623else
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627ac_header_compiler=no
19628fi
ac1cb8d3 19629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19631echo "${ECHO_T}$ac_header_compiler" >&6
19632
19633# Is the header present?
19634echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19635echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19636cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642#include <ext/hash_map>
19643_ACEOF
19644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } >/dev/null; then
19652 if test -s conftest.err; then
19653 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19654 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19655 else
19656 ac_cpp_err=
19657 fi
19658else
19659 ac_cpp_err=yes
19660fi
19661if test -z "$ac_cpp_err"; then
19662 ac_header_preproc=yes
19663else
19664 echo "$as_me: failed program was:" >&5
19665sed 's/^/| /' conftest.$ac_ext >&5
19666
19667 ac_header_preproc=no
19668fi
19669rm -f conftest.err conftest.$ac_ext
19670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19671echo "${ECHO_T}$ac_header_preproc" >&6
19672
19673# So? What about this header?
ac1cb8d3
VS
19674case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19675 yes:no: )
bdcade0a
MB
19676 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19677echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19678 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19679echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19680 ac_header_preproc=yes
bdcade0a 19681 ;;
ac1cb8d3 19682 no:yes:* )
bdcade0a
MB
19683 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19684echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19685 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19686echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19687 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19688echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19690echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19691 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19692echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19693 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19694echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19695 (
19696 cat <<\_ASBOX
ac1cb8d3
VS
19697## ----------------------------------------- ##
19698## Report this to wx-dev@lists.wxwidgets.org ##
19699## ----------------------------------------- ##
bdcade0a
MB
19700_ASBOX
19701 ) |
19702 sed "s/^/$as_me: WARNING: /" >&2
19703 ;;
19704esac
19705echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19706echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19707if test "${ac_cv_header_ext_hash_map+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709else
19710 ac_cv_header_ext_hash_map=$ac_header_preproc
19711fi
19712echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19713echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19714
19715fi
19716if test $ac_cv_header_ext_hash_map = yes; then
19717 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19718echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19719 cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h. */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h. */
19725#include <ext/hash_map>
19726 #include <ext/hash_set>
19727int
19728main ()
19729{
19730__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19731 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19732 ;
19733 return 0;
19734}
19735_ACEOF
19736rm -f conftest.$ac_objext
19737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19738 (eval $ac_compile) 2>conftest.er1
bdcade0a 19739 ac_status=$?
ac1cb8d3
VS
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
bdcade0a
MB
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
4d4ff94c 19745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 echo "$as_me:$LINENO: result: yes" >&5
19758echo "${ECHO_T}yes" >&6
19759 cat >>confdefs.h <<\_ACEOF
19760#define HAVE_EXT_HASH_MAP 1
19761_ACEOF
19762
19763 cat >>confdefs.h <<\_ACEOF
19764#define HAVE_GNU_CXX_HASH_MAP 1
19765_ACEOF
19766
19767else
19768 echo "$as_me: failed program was:" >&5
19769sed 's/^/| /' conftest.$ac_ext >&5
19770
19771echo "$as_me:$LINENO: result: no" >&5
19772echo "${ECHO_T}no" >&6
19773fi
ac1cb8d3 19774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19775
19776fi
19777
19778
a848cd7e
SC
19779
19780 ac_ext=c
19781ac_cpp='$CPP $CPPFLAGS'
19782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784ac_compiler_gnu=$ac_cv_c_compiler_gnu
19785
19786fi
19787
19788
19789SEARCH_INCLUDE="\
19790 /usr/local/include \
19791 \
19792 /usr/Motif-2.1/include \
19793 /usr/Motif-1.2/include \
19794 /usr/include/Motif1.2 \
19795 /opt/xpm/include/X11 \
19796 /opt/GBxpm/include/ \
19797 /opt/GBxpm/X11/include/ \
19798 \
19799 /usr/dt/include \
19800 /usr/openwin/include \
19801 \
19802 /usr/include/Xm \
19803 \
19804 /usr/X11R6/include \
19805 /usr/X11R6.4/include \
19806 /usr/X11R5/include \
19807 /usr/X11R4/include \
19808 \
19809 /usr/include/X11R6 \
19810 /usr/include/X11R5 \
19811 /usr/include/X11R4 \
19812 \
19813 /usr/local/X11R6/include \
19814 /usr/local/X11R5/include \
19815 /usr/local/X11R4/include \
19816 \
19817 /usr/local/include/X11R6 \
19818 /usr/local/include/X11R5 \
19819 /usr/local/include/X11R4 \
19820 \
19821 /usr/X11/include \
19822 /usr/include/X11 \
19823 /usr/local/X11/include \
19824 /usr/local/include/X11 \
19825 \
19826 /usr/X386/include \
19827 /usr/x386/include \
19828 /usr/XFree86/include/X11 \
19829 \
19830 X:/XFree86/include \
19831 X:/XFree86/include/X11 \
19832 \
19833 /usr/include/gtk \
19834 /usr/local/include/gtk \
19835 /usr/include/glib \
19836 /usr/local/include/glib \
19837 \
19838 /usr/include/qt \
19839 /usr/local/include/qt \
19840 \
19841 /usr/local/arm/3.3.2/include \
19842 \
19843 /usr/include/windows \
19844 /usr/include/wine \
19845 /usr/local/include/wine \
19846 \
19847 /usr/unsupported/include \
19848 /usr/athena/include \
19849 /usr/local/x11r5/include \
19850 /usr/lpp/Xamples/include \
19851 \
19852 /usr/openwin/share/include"
19853
19854SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19855
19856
19857cat >confcache <<\_ACEOF
19858# This file is a shell script that caches the results of configure
19859# tests run on this system so they can be shared between configure
19860# scripts and configure runs, see configure's option --config-cache.
19861# It is not useful on other systems. If it contains results you don't
19862# want to keep, you may remove or edit it.
19863#
19864# config.status only pays attention to the cache file if you give it
19865# the --recheck option to rerun configure.
19866#
19867# `ac_cv_env_foo' variables (set or unset) will be overridden when
19868# loading this file, other *unset* `ac_cv_foo' will be assigned the
19869# following values.
19870
19871_ACEOF
19872
19873# The following way of writing the cache mishandles newlines in values,
19874# but we know of no workaround that is simple, portable, and efficient.
19875# So, don't put newlines in cache variables' values.
19876# Ultrix sh set writes to stderr and can't be redirected directly,
19877# and sets the high bit in the cache file unless we assign to the vars.
19878{
19879 (set) 2>&1 |
19880 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19881 *ac_space=\ *)
19882 # `set' does not quote correctly, so add quotes (double-quote
19883 # substitution turns \\\\ into \\, and sed turns \\ into \).
19884 sed -n \
ac1cb8d3
VS
19885 "s/'/'\\\\''/g;
19886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19887 ;;
19888 *)
19889 # `set' quotes correctly as required by POSIX, so do not add quotes.
19890 sed -n \
ac1cb8d3 19891 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19892 ;;
19893 esac;
19894} |
19895 sed '
19896 t clear
19897 : clear
19898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19899 t end
19900 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19901 : end' >>confcache
19902if diff $cache_file confcache >/dev/null 2>&1; then :; else
19903 if test -w $cache_file; then
19904 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19905 cat confcache >$cache_file
19906 else
19907 echo "not updating unwritable cache $cache_file"
19908 fi
19909fi
19910rm -f confcache
19911
19912if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19913 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19914echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19915if test "${wx_cv_lib_glibc21+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917else
19918
19919 cat >conftest.$ac_ext <<_ACEOF
19920/* confdefs.h. */
19921_ACEOF
19922cat confdefs.h >>conftest.$ac_ext
19923cat >>conftest.$ac_ext <<_ACEOF
19924/* end confdefs.h. */
19925#include <features.h>
19926int
19927main ()
19928{
19929
19930 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19931 #error not glibc2.1
19932 #endif
19933
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938rm -f conftest.$ac_objext
19939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19940 (eval $ac_compile) 2>conftest.er1
a848cd7e 19941 ac_status=$?
ac1cb8d3
VS
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
a848cd7e
SC
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
4d4ff94c 19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; } &&
19953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959
19960 wx_cv_lib_glibc21=yes
19961
19962else
19963 echo "$as_me: failed program was:" >&5
19964sed 's/^/| /' conftest.$ac_ext >&5
19965
19966
19967 wx_cv_lib_glibc21=no
19968
19969
19970fi
ac1cb8d3 19971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19972
19973fi
19974echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19975echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19976 if test "$wx_cv_lib_glibc21" = "yes"; then
19977 cat >>confdefs.h <<\_ACEOF
19978#define wxHAVE_GLIBC2 1
19979_ACEOF
19980
19981 fi
19982fi
19983
19984if test "x$wx_cv_lib_glibc21" = "xyes"; then
19985 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19986 cat >>confdefs.h <<\_ACEOF
19987#define _GNU_SOURCE 1
19988_ACEOF
19989
19990 fi
19991fi
19992
19993
19994
19995if test "$wxUSE_REGEX" != "no"; then
19996 cat >>confdefs.h <<\_ACEOF
19997#define wxUSE_REGEX 1
19998_ACEOF
19999
20000
20001 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20002 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20003echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20004 wxUSE_REGEX=builtin
20005 fi
20006
20007 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20008 if test "${ac_cv_header_regex_h+set}" = set; then
20009 echo "$as_me:$LINENO: checking for regex.h" >&5
20010echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20011if test "${ac_cv_header_regex_h+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013fi
20014echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20015echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20016else
20017 # Is the header compilable?
20018echo "$as_me:$LINENO: checking regex.h usability" >&5
20019echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20020cat >conftest.$ac_ext <<_ACEOF
20021/* confdefs.h. */
20022_ACEOF
20023cat confdefs.h >>conftest.$ac_ext
20024cat >>conftest.$ac_ext <<_ACEOF
20025/* end confdefs.h. */
20026$ac_includes_default
20027#include <regex.h>
20028_ACEOF
20029rm -f conftest.$ac_objext
20030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20031 (eval $ac_compile) 2>conftest.er1
a848cd7e 20032 ac_status=$?
ac1cb8d3
VS
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
a848cd7e
SC
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
4d4ff94c 20038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_header_compiler=yes
20051else
20052 echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
20055ac_header_compiler=no
20056fi
ac1cb8d3 20057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20059echo "${ECHO_T}$ac_header_compiler" >&6
20060
20061# Is the header present?
20062echo "$as_me:$LINENO: checking regex.h presence" >&5
20063echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20064cat >conftest.$ac_ext <<_ACEOF
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070#include <regex.h>
20071_ACEOF
20072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } >/dev/null; then
20080 if test -s conftest.err; then
20081 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20083 else
20084 ac_cpp_err=
20085 fi
20086else
20087 ac_cpp_err=yes
20088fi
20089if test -z "$ac_cpp_err"; then
20090 ac_header_preproc=yes
20091else
20092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_header_preproc=no
20096fi
20097rm -f conftest.err conftest.$ac_ext
20098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20099echo "${ECHO_T}$ac_header_preproc" >&6
20100
20101# So? What about this header?
ac1cb8d3
VS
20102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20103 yes:no: )
a848cd7e
SC
20104 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20105echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20106 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20107echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20108 ac_header_preproc=yes
a848cd7e 20109 ;;
ac1cb8d3 20110 no:yes:* )
a848cd7e
SC
20111 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20112echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20113 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20114echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20116echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20118echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20119 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20120echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20121 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20122echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20123 (
20124 cat <<\_ASBOX
ac1cb8d3
VS
20125## ----------------------------------------- ##
20126## Report this to wx-dev@lists.wxwidgets.org ##
20127## ----------------------------------------- ##
a848cd7e
SC
20128_ASBOX
20129 ) |
20130 sed "s/^/$as_me: WARNING: /" >&2
20131 ;;
20132esac
20133echo "$as_me:$LINENO: checking for regex.h" >&5
20134echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20135if test "${ac_cv_header_regex_h+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 ac_cv_header_regex_h=$ac_header_preproc
20139fi
20140echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20141echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20142
20143fi
20144if test $ac_cv_header_regex_h = yes; then
20145
20146for ac_func in regcomp
20147do
20148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20149echo "$as_me:$LINENO: checking for $ac_func" >&5
20150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20151if eval "test \"\${$as_ac_var+set}\" = set"; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153else
20154 cat >conftest.$ac_ext <<_ACEOF
20155/* confdefs.h. */
20156_ACEOF
20157cat confdefs.h >>conftest.$ac_ext
20158cat >>conftest.$ac_ext <<_ACEOF
20159/* end confdefs.h. */
ac1cb8d3
VS
20160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20162#define $ac_func innocuous_$ac_func
20163
a848cd7e
SC
20164/* System header to define __stub macros and hopefully few prototypes,
20165 which can conflict with char $ac_func (); below.
20166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20167 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20168
a848cd7e
SC
20169#ifdef __STDC__
20170# include <limits.h>
20171#else
20172# include <assert.h>
20173#endif
ac1cb8d3
VS
20174
20175#undef $ac_func
20176
a848cd7e
SC
20177/* Override any gcc2 internal prototype to avoid an error. */
20178#ifdef __cplusplus
20179extern "C"
20180{
20181#endif
20182/* We use char because int might match the return type of a gcc2
20183 builtin and then its argument prototype would still apply. */
20184char $ac_func ();
20185/* The GNU C library defines this for functions which it implements
20186 to always fail with ENOSYS. Some functions are actually named
20187 something starting with __ and the normal name is an alias. */
20188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20189choke me
20190#else
20191char (*f) () = $ac_func;
20192#endif
20193#ifdef __cplusplus
20194}
20195#endif
20196
20197int
20198main ()
20199{
20200return f != $ac_func;
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext conftest$ac_exeext
20206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20207 (eval $ac_link) 2>conftest.er1
a848cd7e 20208 ac_status=$?
ac1cb8d3
VS
20209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
a848cd7e
SC
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
4d4ff94c 20214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 eval "$as_ac_var=yes"
20227else
20228 echo "$as_me: failed program was:" >&5
20229sed 's/^/| /' conftest.$ac_ext >&5
20230
20231eval "$as_ac_var=no"
20232fi
ac1cb8d3
VS
20233rm -f conftest.err conftest.$ac_objext \
20234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20235fi
20236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20237echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20238if test `eval echo '${'$as_ac_var'}'` = yes; then
20239 cat >>confdefs.h <<_ACEOF
20240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20241_ACEOF
20242
20243fi
20244done
20245
20246fi
20247
20248
20249
20250 if test "x$ac_cv_func_regcomp" != "xyes"; then
20251 if test "$wxUSE_REGEX" = "sys" ; then
20252 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20253echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20254 { (exit 1); exit 1; }; }
20255 else
20256 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20257echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20258 wxUSE_REGEX=builtin
20259 fi
20260 else
20261 wxUSE_REGEX=sys
20262 cat >>confdefs.h <<\_ACEOF
20263#define WX_NO_REGEX_ADVANCED 1
20264_ACEOF
20265
20266 fi
20267 fi
20268fi
20269
20270
20271ZLIB_LINK=
20272if test "$wxUSE_ZLIB" != "no" ; then
20273 cat >>confdefs.h <<\_ACEOF
20274#define wxUSE_ZLIB 1
20275_ACEOF
20276
20277
20278 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20279 if test "$USE_DARWIN" = 1; then
20280 system_zlib_h_ok="yes"
20281 else
20282 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20283echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20284if test "${ac_cv_header_zlib_h+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287 if test "$cross_compiling" = yes; then
20288 unset ac_cv_header_zlib_h
20289
20290else
20291 cat >conftest.$ac_ext <<_ACEOF
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
20297
20298 #include <zlib.h>
20299 #include <stdio.h>
20300
20301 int main()
20302 {
20303 FILE *f=fopen("conftestval", "w");
20304 if (!f) exit(1);
20305 fprintf(f, "%s",
20306 ZLIB_VERSION[0] == '1' &&
20307 (ZLIB_VERSION[2] > '1' ||
20308 (ZLIB_VERSION[2] == '1' &&
20309 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20310 exit(0);
20311 }
20312
20313_ACEOF
20314rm -f conftest$ac_exeext
20315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316 (eval $ac_link) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_cv_header_zlib_h=`cat conftestval`
20326else
20327 echo "$as_me: program exited with status $ac_status" >&5
20328echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331( exit $ac_status )
20332ac_cv_header_zlib_h=no
20333fi
ac1cb8d3 20334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20335fi
20336
20337fi
20338echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20339echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20340 if test "${ac_cv_header_zlib_h+set}" = set; then
20341 echo "$as_me:$LINENO: checking for zlib.h" >&5
20342echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20343if test "${ac_cv_header_zlib_h+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345fi
20346echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20347echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20348else
20349 # Is the header compilable?
20350echo "$as_me:$LINENO: checking zlib.h usability" >&5
20351echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20352cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358$ac_includes_default
20359#include <zlib.h>
20360_ACEOF
20361rm -f conftest.$ac_objext
20362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20363 (eval $ac_compile) 2>conftest.er1
a848cd7e 20364 ac_status=$?
ac1cb8d3
VS
20365 grep -v '^ *+' conftest.er1 >conftest.err
20366 rm -f conftest.er1
20367 cat conftest.err >&5
a848cd7e
SC
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
4d4ff94c 20370 { ac_try='test -z "$ac_c_werror_flag" || 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_header_compiler=yes
20383else
20384 echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387ac_header_compiler=no
20388fi
ac1cb8d3 20389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20391echo "${ECHO_T}$ac_header_compiler" >&6
20392
20393# Is the header present?
20394echo "$as_me:$LINENO: checking zlib.h presence" >&5
20395echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20396cat >conftest.$ac_ext <<_ACEOF
20397/* confdefs.h. */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h. */
20402#include <zlib.h>
20403_ACEOF
20404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } >/dev/null; then
20412 if test -s conftest.err; then
20413 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20415 else
20416 ac_cpp_err=
20417 fi
20418else
20419 ac_cpp_err=yes
20420fi
20421if test -z "$ac_cpp_err"; then
20422 ac_header_preproc=yes
20423else
20424 echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_header_preproc=no
20428fi
20429rm -f conftest.err conftest.$ac_ext
20430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20431echo "${ECHO_T}$ac_header_preproc" >&6
20432
20433# So? What about this header?
ac1cb8d3
VS
20434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20435 yes:no: )
a848cd7e
SC
20436 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20437echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20438 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20439echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20440 ac_header_preproc=yes
a848cd7e 20441 ;;
ac1cb8d3 20442 no:yes:* )
a848cd7e
SC
20443 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20444echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20445 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20446echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20448echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20450echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20451 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20452echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20453 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20454echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20455 (
20456 cat <<\_ASBOX
ac1cb8d3
VS
20457## ----------------------------------------- ##
20458## Report this to wx-dev@lists.wxwidgets.org ##
20459## ----------------------------------------- ##
a848cd7e
SC
20460_ASBOX
20461 ) |
20462 sed "s/^/$as_me: WARNING: /" >&2
20463 ;;
20464esac
20465echo "$as_me:$LINENO: checking for zlib.h" >&5
20466echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20467if test "${ac_cv_header_zlib_h+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469else
20470 ac_cv_header_zlib_h=$ac_header_preproc
20471fi
20472echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20473echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20474
20475fi
20476
20477
20478
20479 system_zlib_h_ok=$ac_cv_header_zlib_h
20480 fi
20481
20482 if test "$system_zlib_h_ok" = "yes"; then
20483 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20484echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20485if test "${ac_cv_lib_z_deflate+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20487else
20488 ac_check_lib_save_LIBS=$LIBS
20489LIBS="-lz $LIBS"
20490cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496
20497/* Override any gcc2 internal prototype to avoid an error. */
20498#ifdef __cplusplus
20499extern "C"
20500#endif
20501/* We use char because int might match the return type of a gcc2
20502 builtin and then its argument prototype would still apply. */
20503char deflate ();
20504int
20505main ()
20506{
20507deflate ();
20508 ;
20509 return 0;
20510}
20511_ACEOF
20512rm -f conftest.$ac_objext conftest$ac_exeext
20513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20514 (eval $ac_link) 2>conftest.er1
a848cd7e 20515 ac_status=$?
ac1cb8d3
VS
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
a848cd7e
SC
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
4d4ff94c 20521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_cv_lib_z_deflate=yes
20534else
20535 echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538ac_cv_lib_z_deflate=no
20539fi
ac1cb8d3
VS
20540rm -f conftest.err conftest.$ac_objext \
20541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20542LIBS=$ac_check_lib_save_LIBS
20543fi
20544echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20545echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20546if test $ac_cv_lib_z_deflate = yes; then
20547 ZLIB_LINK=" -lz"
20548fi
20549
20550 fi
20551
20552 if test "x$ZLIB_LINK" = "x" ; then
20553 if test "$wxUSE_ZLIB" = "sys" ; then
20554 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20555echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20556 { (exit 1); exit 1; }; }
20557 else
20558 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20559echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20560 wxUSE_ZLIB=builtin
20561 fi
20562 else
20563 wxUSE_ZLIB=sys
20564 fi
20565 fi
20566fi
20567
20568
20569PNG_LINK=
20570if test "$wxUSE_LIBPNG" != "no" ; then
20571 cat >>confdefs.h <<\_ACEOF
20572#define wxUSE_LIBPNG 1
20573_ACEOF
20574
20575
20576 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20577 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20578echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20579 wxUSE_LIBPNG=sys
20580 fi
20581
20582 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20583 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20584echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20585 wxUSE_LIBPNG=builtin
20586 fi
20587
20588 if test "$wxUSE_MGL" != 1 ; then
20589 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20590 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20591echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20592if test "${ac_cv_header_png_h+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594else
20595 if test "$cross_compiling" = yes; then
20596 unset ac_cv_header_png_h
20597
20598else
20599 cat >conftest.$ac_ext <<_ACEOF
20600/* confdefs.h. */
20601_ACEOF
20602cat confdefs.h >>conftest.$ac_ext
20603cat >>conftest.$ac_ext <<_ACEOF
20604/* end confdefs.h. */
20605
20606 #include <png.h>
20607 #include <stdio.h>
20608
20609 int main()
20610 {
20611 FILE *f=fopen("conftestval", "w");
20612 if (!f) exit(1);
20613 fprintf(f, "%s",
20614 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20615 exit(0);
20616 }
20617
20618_ACEOF
20619rm -f conftest$ac_exeext
20620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20621 (eval $ac_link) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
20630 ac_cv_header_png_h=`cat conftestval`
20631else
20632 echo "$as_me: program exited with status $ac_status" >&5
20633echo "$as_me: failed program was:" >&5
20634sed 's/^/| /' conftest.$ac_ext >&5
20635
20636( exit $ac_status )
20637ac_cv_header_png_h=no
20638fi
ac1cb8d3 20639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20640fi
20641
20642fi
20643echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20644echo "${ECHO_T}$ac_cv_header_png_h" >&6
20645 if test "${ac_cv_header_png_h+set}" = set; then
20646 echo "$as_me:$LINENO: checking for png.h" >&5
20647echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20648if test "${ac_cv_header_png_h+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650fi
20651echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20652echo "${ECHO_T}$ac_cv_header_png_h" >&6
20653else
20654 # Is the header compilable?
20655echo "$as_me:$LINENO: checking png.h usability" >&5
20656echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20657cat >conftest.$ac_ext <<_ACEOF
20658/* confdefs.h. */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h. */
20663$ac_includes_default
20664#include <png.h>
20665_ACEOF
20666rm -f conftest.$ac_objext
20667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20668 (eval $ac_compile) 2>conftest.er1
a848cd7e 20669 ac_status=$?
ac1cb8d3
VS
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
a848cd7e
SC
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
4d4ff94c 20675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; } &&
20681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 ac_header_compiler=yes
20688else
20689 echo "$as_me: failed program was:" >&5
20690sed 's/^/| /' conftest.$ac_ext >&5
20691
20692ac_header_compiler=no
20693fi
ac1cb8d3 20694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20696echo "${ECHO_T}$ac_header_compiler" >&6
20697
20698# Is the header present?
20699echo "$as_me:$LINENO: checking png.h presence" >&5
20700echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20701cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
20707#include <png.h>
20708_ACEOF
20709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } >/dev/null; then
20717 if test -s conftest.err; then
20718 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20720 else
20721 ac_cpp_err=
20722 fi
20723else
20724 ac_cpp_err=yes
20725fi
20726if test -z "$ac_cpp_err"; then
20727 ac_header_preproc=yes
20728else
20729 echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732 ac_header_preproc=no
20733fi
20734rm -f conftest.err conftest.$ac_ext
20735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20736echo "${ECHO_T}$ac_header_preproc" >&6
20737
20738# So? What about this header?
ac1cb8d3
VS
20739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20740 yes:no: )
a848cd7e
SC
20741 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20742echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20743 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20744echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20745 ac_header_preproc=yes
a848cd7e 20746 ;;
ac1cb8d3 20747 no:yes:* )
a848cd7e
SC
20748 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20749echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20750 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20751echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20753echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20755echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20756 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20757echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20758 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20759echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20760 (
20761 cat <<\_ASBOX
ac1cb8d3
VS
20762## ----------------------------------------- ##
20763## Report this to wx-dev@lists.wxwidgets.org ##
20764## ----------------------------------------- ##
a848cd7e
SC
20765_ASBOX
20766 ) |
20767 sed "s/^/$as_me: WARNING: /" >&2
20768 ;;
20769esac
20770echo "$as_me:$LINENO: checking for png.h" >&5
20771echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20772if test "${ac_cv_header_png_h+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20774else
20775 ac_cv_header_png_h=$ac_header_preproc
20776fi
20777echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20778echo "${ECHO_T}$ac_cv_header_png_h" >&6
20779
20780fi
20781
20782
20783
20784 if test "$ac_cv_header_png_h" = "yes"; then
20785 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20786echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20787if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790 ac_check_lib_save_LIBS=$LIBS
20791LIBS="-lpng -lz -lm $LIBS"
20792cat >conftest.$ac_ext <<_ACEOF
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798
20799/* Override any gcc2 internal prototype to avoid an error. */
20800#ifdef __cplusplus
20801extern "C"
20802#endif
20803/* We use char because int might match the return type of a gcc2
20804 builtin and then its argument prototype would still apply. */
20805char png_check_sig ();
20806int
20807main ()
20808{
20809png_check_sig ();
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext conftest$ac_exeext
20815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20816 (eval $ac_link) 2>conftest.er1
a848cd7e 20817 ac_status=$?
ac1cb8d3
VS
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
a848cd7e
SC
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
4d4ff94c 20823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; } &&
20829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 ac_cv_lib_png_png_check_sig=yes
20836else
20837 echo "$as_me: failed program was:" >&5
20838sed 's/^/| /' conftest.$ac_ext >&5
20839
20840ac_cv_lib_png_png_check_sig=no
20841fi
ac1cb8d3
VS
20842rm -f conftest.err conftest.$ac_objext \
20843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20844LIBS=$ac_check_lib_save_LIBS
20845fi
20846echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20847echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20848if test $ac_cv_lib_png_png_check_sig = yes; then
20849 PNG_LINK=" -lpng -lz"
20850fi
20851
20852 fi
20853
20854 if test "x$PNG_LINK" = "x" ; then
20855 if test "$wxUSE_LIBPNG" = "sys" ; then
20856 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20857echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20858 { (exit 1); exit 1; }; }
20859 else
20860 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20861echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20862 wxUSE_LIBPNG=builtin
20863 fi
20864 else
20865 wxUSE_LIBPNG=sys
20866 fi
20867 fi
20868 fi
20869
20870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20871fi
20872
20873
20874JPEG_LINK=
20875if test "$wxUSE_LIBJPEG" != "no" ; then
20876 cat >>confdefs.h <<\_ACEOF
20877#define wxUSE_LIBJPEG 1
20878_ACEOF
20879
20880
20881 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20882 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20883echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20884 wxUSE_LIBJPEG=sys
20885 fi
20886
20887 if test "$wxUSE_MGL" != 1 ; then
20888 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20889 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20890echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20891 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893else
20894 cat >conftest.$ac_ext <<_ACEOF
20895/* confdefs.h. */
20896_ACEOF
20897cat confdefs.h >>conftest.$ac_ext
20898cat >>conftest.$ac_ext <<_ACEOF
20899/* end confdefs.h. */
20900
20901 #undef HAVE_STDLIB_H
20902 #include <stdio.h>
20903 #include <jpeglib.h>
20904
20905int
20906main ()
20907{
20908
20909
20910 ;
20911 return 0;
20912}
20913_ACEOF
20914rm -f conftest.$ac_objext
20915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20916 (eval $ac_compile) 2>conftest.er1
a848cd7e 20917 ac_status=$?
ac1cb8d3
VS
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
a848cd7e
SC
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
4d4ff94c 20923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_header_jpeglib_h=yes
20936else
20937 echo "$as_me: failed program was:" >&5
20938sed 's/^/| /' conftest.$ac_ext >&5
20939
20940ac_cv_header_jpeglib_h=no
20941
20942fi
ac1cb8d3 20943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20944
20945fi
20946
20947 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20948echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20949
20950 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20951 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20952echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20953if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955else
20956 ac_check_lib_save_LIBS=$LIBS
20957LIBS="-ljpeg $LIBS"
20958cat >conftest.$ac_ext <<_ACEOF
20959/* confdefs.h. */
20960_ACEOF
20961cat confdefs.h >>conftest.$ac_ext
20962cat >>conftest.$ac_ext <<_ACEOF
20963/* end confdefs.h. */
20964
20965/* Override any gcc2 internal prototype to avoid an error. */
20966#ifdef __cplusplus
20967extern "C"
20968#endif
20969/* We use char because int might match the return type of a gcc2
20970 builtin and then its argument prototype would still apply. */
20971char jpeg_read_header ();
20972int
20973main ()
20974{
20975jpeg_read_header ();
20976 ;
20977 return 0;
20978}
20979_ACEOF
20980rm -f conftest.$ac_objext conftest$ac_exeext
20981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20982 (eval $ac_link) 2>conftest.er1
a848cd7e 20983 ac_status=$?
ac1cb8d3
VS
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
a848cd7e
SC
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
4d4ff94c 20989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 ac_cv_lib_jpeg_jpeg_read_header=yes
21002else
21003 echo "$as_me: failed program was:" >&5
21004sed 's/^/| /' conftest.$ac_ext >&5
21005
21006ac_cv_lib_jpeg_jpeg_read_header=no
21007fi
ac1cb8d3
VS
21008rm -f conftest.err conftest.$ac_objext \
21009 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21010LIBS=$ac_check_lib_save_LIBS
21011fi
21012echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21013echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21014if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21015 JPEG_LINK=" -ljpeg"
21016fi
21017
21018 fi
21019
21020 if test "x$JPEG_LINK" = "x" ; then
21021 if test "$wxUSE_LIBJPEG" = "sys" ; then
21022 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21023echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21024 { (exit 1); exit 1; }; }
21025 else
21026 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21027echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21028 wxUSE_LIBJPEG=builtin
21029 fi
21030 else
21031 wxUSE_LIBJPEG=sys
21032 fi
21033 fi
21034 fi
21035fi
21036
21037
21038TIFF_LINK=
21039TIFF_PREREQ_LINKS=-lm
21040if test "$wxUSE_LIBTIFF" != "no" ; then
21041 cat >>confdefs.h <<\_ACEOF
21042#define wxUSE_LIBTIFF 1
21043_ACEOF
21044
21045
21046 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21047 if test "$wxUSE_LIBJPEG" = "sys"; then
21048 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21049 fi
21050 if test "$wxUSE_ZLIB" = "sys"; then
21051 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21052 fi
21053 if test "${ac_cv_header_tiffio_h+set}" = set; then
21054 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21055echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21056if test "${ac_cv_header_tiffio_h+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058fi
21059echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21060echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21061else
21062 # Is the header compilable?
21063echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21064echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21065cat >conftest.$ac_ext <<_ACEOF
21066/* confdefs.h. */
21067_ACEOF
21068cat confdefs.h >>conftest.$ac_ext
21069cat >>conftest.$ac_ext <<_ACEOF
21070/* end confdefs.h. */
21071$ac_includes_default
21072#include <tiffio.h>
21073_ACEOF
21074rm -f conftest.$ac_objext
21075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21076 (eval $ac_compile) 2>conftest.er1
a848cd7e 21077 ac_status=$?
ac1cb8d3
VS
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
a848cd7e
SC
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
4d4ff94c 21083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 ac_header_compiler=yes
21096else
21097 echo "$as_me: failed program was:" >&5
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
21100ac_header_compiler=no
21101fi
ac1cb8d3 21102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21104echo "${ECHO_T}$ac_header_compiler" >&6
21105
21106# Is the header present?
21107echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21108echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21109cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
21115#include <tiffio.h>
21116_ACEOF
21117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } >/dev/null; then
21125 if test -s conftest.err; then
21126 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21128 else
21129 ac_cpp_err=
21130 fi
21131else
21132 ac_cpp_err=yes
21133fi
21134if test -z "$ac_cpp_err"; then
21135 ac_header_preproc=yes
21136else
21137 echo "$as_me: failed program was:" >&5
21138sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 ac_header_preproc=no
21141fi
21142rm -f conftest.err conftest.$ac_ext
21143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21144echo "${ECHO_T}$ac_header_preproc" >&6
21145
21146# So? What about this header?
ac1cb8d3
VS
21147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21148 yes:no: )
a848cd7e
SC
21149 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21150echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21151 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21152echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21153 ac_header_preproc=yes
a848cd7e 21154 ;;
ac1cb8d3 21155 no:yes:* )
a848cd7e
SC
21156 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21157echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21158 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21159echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21161echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21163echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21164 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21165echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21166 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21167echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21168 (
21169 cat <<\_ASBOX
ac1cb8d3
VS
21170## ----------------------------------------- ##
21171## Report this to wx-dev@lists.wxwidgets.org ##
21172## ----------------------------------------- ##
a848cd7e
SC
21173_ASBOX
21174 ) |
21175 sed "s/^/$as_me: WARNING: /" >&2
21176 ;;
21177esac
21178echo "$as_me:$LINENO: checking for tiffio.h" >&5
21179echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21180if test "${ac_cv_header_tiffio_h+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21182else
21183 ac_cv_header_tiffio_h=$ac_header_preproc
21184fi
21185echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21186echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21187
21188fi
21189if test $ac_cv_header_tiffio_h = yes; then
21190
21191 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21192echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21193if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196 ac_check_lib_save_LIBS=$LIBS
21197LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21198cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204
21205/* Override any gcc2 internal prototype to avoid an error. */
21206#ifdef __cplusplus
21207extern "C"
21208#endif
21209/* We use char because int might match the return type of a gcc2
21210 builtin and then its argument prototype would still apply. */
21211char TIFFError ();
21212int
21213main ()
21214{
21215TIFFError ();
21216 ;
21217 return 0;
21218}
21219_ACEOF
21220rm -f conftest.$ac_objext conftest$ac_exeext
21221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21222 (eval $ac_link) 2>conftest.er1
a848cd7e 21223 ac_status=$?
ac1cb8d3
VS
21224 grep -v '^ *+' conftest.er1 >conftest.err
21225 rm -f conftest.er1
21226 cat conftest.err >&5
a848cd7e
SC
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } &&
4d4ff94c 21229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_lib_tiff_TIFFError=yes
21242else
21243 echo "$as_me: failed program was:" >&5
21244sed 's/^/| /' conftest.$ac_ext >&5
21245
21246ac_cv_lib_tiff_TIFFError=no
21247fi
ac1cb8d3
VS
21248rm -f conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21250LIBS=$ac_check_lib_save_LIBS
21251fi
21252echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21253echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21254if test $ac_cv_lib_tiff_TIFFError = yes; then
21255 TIFF_LINK=" -ltiff"
21256fi
21257
21258
21259
21260fi
21261
21262
21263
21264 if test "x$TIFF_LINK" = "x" ; then
21265 if test "$wxUSE_LIBTIFF" = "sys" ; then
21266 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21267echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21268 { (exit 1); exit 1; }; }
21269 else
21270 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21271echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21272 wxUSE_LIBTIFF=builtin
21273 fi
21274 else
21275 wxUSE_LIBTIFF=sys
21276 fi
21277 fi
21278fi
21279
21280
21281if test "$wxUSE_EXPAT" != "no"; then
21282 wxUSE_XML=yes
21283 cat >>confdefs.h <<\_ACEOF
21284#define wxUSE_EXPAT 1
21285_ACEOF
21286
21287 cat >>confdefs.h <<\_ACEOF
21288#define wxUSE_XML 1
21289_ACEOF
21290
21291
21292 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21293 if test "${ac_cv_header_expat_h+set}" = set; then
21294 echo "$as_me:$LINENO: checking for expat.h" >&5
21295echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21296if test "${ac_cv_header_expat_h+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21298fi
21299echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21300echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21301else
21302 # Is the header compilable?
21303echo "$as_me:$LINENO: checking expat.h usability" >&5
21304echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21305cat >conftest.$ac_ext <<_ACEOF
21306/* confdefs.h. */
21307_ACEOF
21308cat confdefs.h >>conftest.$ac_ext
21309cat >>conftest.$ac_ext <<_ACEOF
21310/* end confdefs.h. */
21311$ac_includes_default
21312#include <expat.h>
21313_ACEOF
21314rm -f conftest.$ac_objext
21315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21316 (eval $ac_compile) 2>conftest.er1
a848cd7e 21317 ac_status=$?
ac1cb8d3
VS
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
a848cd7e
SC
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
4d4ff94c 21323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; } &&
21329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 ac_header_compiler=yes
21336else
21337 echo "$as_me: failed program was:" >&5
21338sed 's/^/| /' conftest.$ac_ext >&5
21339
21340ac_header_compiler=no
21341fi
ac1cb8d3 21342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21344echo "${ECHO_T}$ac_header_compiler" >&6
21345
21346# Is the header present?
21347echo "$as_me:$LINENO: checking expat.h presence" >&5
21348echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21349cat >conftest.$ac_ext <<_ACEOF
21350/* confdefs.h. */
21351_ACEOF
21352cat confdefs.h >>conftest.$ac_ext
21353cat >>conftest.$ac_ext <<_ACEOF
21354/* end confdefs.h. */
21355#include <expat.h>
21356_ACEOF
21357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21359 ac_status=$?
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } >/dev/null; then
21365 if test -s conftest.err; then
21366 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21368 else
21369 ac_cpp_err=
21370 fi
21371else
21372 ac_cpp_err=yes
21373fi
21374if test -z "$ac_cpp_err"; then
21375 ac_header_preproc=yes
21376else
21377 echo "$as_me: failed program was:" >&5
21378sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 ac_header_preproc=no
21381fi
21382rm -f conftest.err conftest.$ac_ext
21383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21384echo "${ECHO_T}$ac_header_preproc" >&6
21385
21386# So? What about this header?
ac1cb8d3
VS
21387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21388 yes:no: )
a848cd7e
SC
21389 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21390echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21391 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21392echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21393 ac_header_preproc=yes
a848cd7e 21394 ;;
ac1cb8d3 21395 no:yes:* )
a848cd7e
SC
21396 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21397echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21398 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21399echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21400 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21401echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21402 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21403echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21404 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21405echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21406 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21407echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21408 (
21409 cat <<\_ASBOX
ac1cb8d3
VS
21410## ----------------------------------------- ##
21411## Report this to wx-dev@lists.wxwidgets.org ##
21412## ----------------------------------------- ##
a848cd7e
SC
21413_ASBOX
21414 ) |
21415 sed "s/^/$as_me: WARNING: /" >&2
21416 ;;
21417esac
21418echo "$as_me:$LINENO: checking for expat.h" >&5
21419echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21420if test "${ac_cv_header_expat_h+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21422else
21423 ac_cv_header_expat_h=$ac_header_preproc
21424fi
21425echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21426echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21427
21428fi
21429if test $ac_cv_header_expat_h = yes; then
21430 found_expat_h=1
21431fi
21432
21433
21434 if test "x$found_expat_h" = "x1"; then
21435 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21436echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21437if test "${wx_cv_expat_is_not_broken+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21439else
21440
21441
21442
21443 ac_ext=cc
21444ac_cpp='$CXXCPP $CPPFLAGS'
21445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21448
21449 cat >conftest.$ac_ext <<_ACEOF
21450/* confdefs.h. */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h. */
21455#include <expat.h>
21456int
21457main ()
21458{
21459
21460 ;
21461 return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21466 (eval $ac_compile) 2>conftest.er1
a848cd7e 21467 ac_status=$?
ac1cb8d3
VS
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
a848cd7e
SC
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
4d4ff94c 21473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 wx_cv_expat_is_not_broken=yes
21486else
21487 echo "$as_me: failed program was:" >&5
21488sed 's/^/| /' conftest.$ac_ext >&5
21489
21490wx_cv_expat_is_not_broken=no
21491
21492fi
ac1cb8d3 21493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21494 ac_ext=c
21495ac_cpp='$CPP $CPPFLAGS'
21496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21498ac_compiler_gnu=$ac_cv_c_compiler_gnu
21499
21500
21501
21502fi
21503echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21504echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21505 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21506 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21507echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21508if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21510else
21511 ac_check_lib_save_LIBS=$LIBS
21512LIBS="-lexpat $LIBS"
21513cat >conftest.$ac_ext <<_ACEOF
21514/* confdefs.h. */
21515_ACEOF
21516cat confdefs.h >>conftest.$ac_ext
21517cat >>conftest.$ac_ext <<_ACEOF
21518/* end confdefs.h. */
21519
21520/* Override any gcc2 internal prototype to avoid an error. */
21521#ifdef __cplusplus
21522extern "C"
21523#endif
21524/* We use char because int might match the return type of a gcc2
21525 builtin and then its argument prototype would still apply. */
21526char XML_ParserCreate ();
21527int
21528main ()
21529{
21530XML_ParserCreate ();
21531 ;
21532 return 0;
21533}
21534_ACEOF
21535rm -f conftest.$ac_objext conftest$ac_exeext
21536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21537 (eval $ac_link) 2>conftest.er1
a848cd7e 21538 ac_status=$?
ac1cb8d3
VS
21539 grep -v '^ *+' conftest.er1 >conftest.err
21540 rm -f conftest.er1
21541 cat conftest.err >&5
a848cd7e
SC
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } &&
4d4ff94c 21544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; } &&
21550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
21556 ac_cv_lib_expat_XML_ParserCreate=yes
21557else
21558 echo "$as_me: failed program was:" >&5
21559sed 's/^/| /' conftest.$ac_ext >&5
21560
21561ac_cv_lib_expat_XML_ParserCreate=no
21562fi
ac1cb8d3
VS
21563rm -f conftest.err conftest.$ac_objext \
21564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21565LIBS=$ac_check_lib_save_LIBS
21566fi
21567echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21568echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21569if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21570 EXPAT_LINK=" -lexpat"
21571fi
21572
21573 fi
21574 fi
21575 if test "x$EXPAT_LINK" = "x" ; then
21576 if test "$wxUSE_EXPAT" = "sys" ; then
21577 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21578echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21579 { (exit 1); exit 1; }; }
21580 else
21581 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21582echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21583 wxUSE_EXPAT=builtin
21584 fi
21585 else
21586 wxUSE_EXPAT=sys
21587 fi
21588 fi
21589 if test "$wxUSE_EXPAT" = "builtin" ; then
21590
21591
21592subdirs="$subdirs src/expat"
21593
21594 fi
21595fi
21596
21597
21598
21599if test "$wxUSE_LIBMSPACK" != "no"; then
21600
21601 if test "${ac_cv_header_mspack_h+set}" = set; then
21602 echo "$as_me:$LINENO: checking for mspack.h" >&5
21603echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21604if test "${ac_cv_header_mspack_h+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606fi
21607echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21608echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21609else
21610 # Is the header compilable?
21611echo "$as_me:$LINENO: checking mspack.h usability" >&5
21612echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21613cat >conftest.$ac_ext <<_ACEOF
21614/* confdefs.h. */
21615_ACEOF
21616cat confdefs.h >>conftest.$ac_ext
21617cat >>conftest.$ac_ext <<_ACEOF
21618/* end confdefs.h. */
21619$ac_includes_default
21620#include <mspack.h>
21621_ACEOF
21622rm -f conftest.$ac_objext
21623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21624 (eval $ac_compile) 2>conftest.er1
a848cd7e 21625 ac_status=$?
ac1cb8d3
VS
21626 grep -v '^ *+' conftest.er1 >conftest.err
21627 rm -f conftest.er1
21628 cat conftest.err >&5
a848cd7e
SC
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } &&
4d4ff94c 21631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; } &&
21637 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_header_compiler=yes
21644else
21645 echo "$as_me: failed program was:" >&5
21646sed 's/^/| /' conftest.$ac_ext >&5
21647
21648ac_header_compiler=no
21649fi
ac1cb8d3 21650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21652echo "${ECHO_T}$ac_header_compiler" >&6
21653
21654# Is the header present?
21655echo "$as_me:$LINENO: checking mspack.h presence" >&5
21656echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21657cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663#include <mspack.h>
21664_ACEOF
21665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21667 ac_status=$?
21668 grep -v '^ *+' conftest.er1 >conftest.err
21669 rm -f conftest.er1
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } >/dev/null; then
21673 if test -s conftest.err; then
21674 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21676 else
21677 ac_cpp_err=
21678 fi
21679else
21680 ac_cpp_err=yes
21681fi
21682if test -z "$ac_cpp_err"; then
21683 ac_header_preproc=yes
21684else
21685 echo "$as_me: failed program was:" >&5
21686sed 's/^/| /' conftest.$ac_ext >&5
21687
21688 ac_header_preproc=no
21689fi
21690rm -f conftest.err conftest.$ac_ext
21691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21692echo "${ECHO_T}$ac_header_preproc" >&6
21693
21694# So? What about this header?
ac1cb8d3
VS
21695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21696 yes:no: )
a848cd7e
SC
21697 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21698echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21699 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21700echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21701 ac_header_preproc=yes
a848cd7e 21702 ;;
ac1cb8d3 21703 no:yes:* )
a848cd7e
SC
21704 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21705echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21706 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21707echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21709echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21711echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21712 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21713echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21714 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21715echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21716 (
21717 cat <<\_ASBOX
ac1cb8d3
VS
21718## ----------------------------------------- ##
21719## Report this to wx-dev@lists.wxwidgets.org ##
21720## ----------------------------------------- ##
a848cd7e
SC
21721_ASBOX
21722 ) |
21723 sed "s/^/$as_me: WARNING: /" >&2
21724 ;;
21725esac
21726echo "$as_me:$LINENO: checking for mspack.h" >&5
21727echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21728if test "${ac_cv_header_mspack_h+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730else
21731 ac_cv_header_mspack_h=$ac_header_preproc
21732fi
21733echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21734echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21735
21736fi
21737if test $ac_cv_header_mspack_h = yes; then
21738 found_mspack_h=1
21739fi
21740
21741
21742 if test "x$found_mspack_h" = "x1"; then
21743 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21744echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21745if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748 ac_check_lib_save_LIBS=$LIBS
21749LIBS="-lmspack $LIBS"
21750cat >conftest.$ac_ext <<_ACEOF
21751/* confdefs.h. */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h. */
21756
21757/* Override any gcc2 internal prototype to avoid an error. */
21758#ifdef __cplusplus
21759extern "C"
21760#endif
21761/* We use char because int might match the return type of a gcc2
21762 builtin and then its argument prototype would still apply. */
21763char mspack_create_chm_decompressor ();
21764int
21765main ()
21766{
21767mspack_create_chm_decompressor ();
21768 ;
21769 return 0;
21770}
21771_ACEOF
21772rm -f conftest.$ac_objext conftest$ac_exeext
21773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21774 (eval $ac_link) 2>conftest.er1
a848cd7e 21775 ac_status=$?
ac1cb8d3
VS
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
a848cd7e
SC
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } &&
4d4ff94c 21781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; } &&
21787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; }; then
21793 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21794else
21795 echo "$as_me: failed program was:" >&5
21796sed 's/^/| /' conftest.$ac_ext >&5
21797
21798ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21799fi
ac1cb8d3
VS
21800rm -f conftest.err conftest.$ac_objext \
21801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21802LIBS=$ac_check_lib_save_LIBS
21803fi
21804echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21805echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21806if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21807 MSPACK_LINK=" -lmspack"
21808fi
21809
21810 fi
21811 if test "x$MSPACK_LINK" = "x" ; then
21812 wxUSE_LIBMSPACK=no
21813 else
21814 cat >>confdefs.h <<\_ACEOF
21815#define wxUSE_LIBMSPACK 1
21816_ACEOF
21817
21818 fi
21819fi
21820
21821
21822
21823AFMINSTALL=
21824WIN32INSTALL=
21825
21826TOOLKIT=
21827TOOLKIT_INCLUDE=
21828WIDGET_SET=
21829
21830if test "$USE_WIN32" = 1 ; then
21831
21832for ac_header in w32api.h
21833do
21834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835if eval "test \"\${$as_ac_Header+set}\" = set"; then
21836 echo "$as_me:$LINENO: checking for $ac_header" >&5
21837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21838if eval "test \"\${$as_ac_Header+set}\" = set"; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840fi
21841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21843else
21844 # Is the header compilable?
21845echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21847cat >conftest.$ac_ext <<_ACEOF
21848/* confdefs.h. */
21849_ACEOF
21850cat confdefs.h >>conftest.$ac_ext
21851cat >>conftest.$ac_ext <<_ACEOF
21852/* end confdefs.h. */
21853$ac_includes_default
21854#include <$ac_header>
21855_ACEOF
21856rm -f conftest.$ac_objext
21857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21858 (eval $ac_compile) 2>conftest.er1
a848cd7e 21859 ac_status=$?
ac1cb8d3
VS
21860 grep -v '^ *+' conftest.er1 >conftest.err
21861 rm -f conftest.er1
21862 cat conftest.err >&5
a848cd7e
SC
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
4d4ff94c 21865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_header_compiler=yes
21878else
21879 echo "$as_me: failed program was:" >&5
21880sed 's/^/| /' conftest.$ac_ext >&5
21881
21882ac_header_compiler=no
21883fi
ac1cb8d3 21884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21886echo "${ECHO_T}$ac_header_compiler" >&6
21887
21888# Is the header present?
21889echo "$as_me:$LINENO: checking $ac_header presence" >&5
21890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21891cat >conftest.$ac_ext <<_ACEOF
21892/* confdefs.h. */
21893_ACEOF
21894cat confdefs.h >>conftest.$ac_ext
21895cat >>conftest.$ac_ext <<_ACEOF
21896/* end confdefs.h. */
21897#include <$ac_header>
21898_ACEOF
21899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } >/dev/null; then
21907 if test -s conftest.err; then
21908 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21910 else
21911 ac_cpp_err=
21912 fi
21913else
21914 ac_cpp_err=yes
21915fi
21916if test -z "$ac_cpp_err"; then
21917 ac_header_preproc=yes
21918else
21919 echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922 ac_header_preproc=no
21923fi
21924rm -f conftest.err conftest.$ac_ext
21925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21926echo "${ECHO_T}$ac_header_preproc" >&6
21927
21928# So? What about this header?
ac1cb8d3
VS
21929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21930 yes:no: )
a848cd7e
SC
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21935 ac_header_preproc=yes
a848cd7e 21936 ;;
ac1cb8d3 21937 no:yes:* )
a848cd7e
SC
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21950 (
21951 cat <<\_ASBOX
ac1cb8d3
VS
21952## ----------------------------------------- ##
21953## Report this to wx-dev@lists.wxwidgets.org ##
21954## ----------------------------------------- ##
a848cd7e
SC
21955_ASBOX
21956 ) |
21957 sed "s/^/$as_me: WARNING: /" >&2
21958 ;;
21959esac
21960echo "$as_me:$LINENO: checking for $ac_header" >&5
21961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21962if eval "test \"\${$as_ac_Header+set}\" = set"; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964else
ac1cb8d3 21965 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21966fi
21967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21969
21970fi
21971if test `eval echo '${'$as_ac_Header'}'` = yes; then
21972 cat >>confdefs.h <<_ACEOF
21973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21974_ACEOF
21975
21976fi
21977
21978done
21979
21980 if test "${ac_cv_header_windows_h+set}" = set; then
21981 echo "$as_me:$LINENO: checking for windows.h" >&5
21982echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21983if test "${ac_cv_header_windows_h+set}" = set; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21985fi
21986echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21987echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21988else
21989 # Is the header compilable?
21990echo "$as_me:$LINENO: checking windows.h usability" >&5
21991echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21992cat >conftest.$ac_ext <<_ACEOF
21993/* confdefs.h. */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
21997/* end confdefs.h. */
21998$ac_includes_default
21999#include <windows.h>
22000_ACEOF
22001rm -f conftest.$ac_objext
22002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22003 (eval $ac_compile) 2>conftest.er1
a848cd7e 22004 ac_status=$?
ac1cb8d3
VS
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
a848cd7e
SC
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } &&
4d4ff94c 22010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; } &&
22016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
22022 ac_header_compiler=yes
22023else
22024 echo "$as_me: failed program was:" >&5
22025sed 's/^/| /' conftest.$ac_ext >&5
22026
22027ac_header_compiler=no
22028fi
ac1cb8d3 22029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031echo "${ECHO_T}$ac_header_compiler" >&6
22032
22033# Is the header present?
22034echo "$as_me:$LINENO: checking windows.h presence" >&5
22035echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22036cat >conftest.$ac_ext <<_ACEOF
22037/* confdefs.h. */
22038_ACEOF
22039cat confdefs.h >>conftest.$ac_ext
22040cat >>conftest.$ac_ext <<_ACEOF
22041/* end confdefs.h. */
22042#include <windows.h>
22043_ACEOF
22044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22046 ac_status=$?
22047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } >/dev/null; then
22052 if test -s conftest.err; then
22053 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22055 else
22056 ac_cpp_err=
22057 fi
22058else
22059 ac_cpp_err=yes
22060fi
22061if test -z "$ac_cpp_err"; then
22062 ac_header_preproc=yes
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067 ac_header_preproc=no
22068fi
22069rm -f conftest.err conftest.$ac_ext
22070echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22071echo "${ECHO_T}$ac_header_preproc" >&6
22072
22073# So? What about this header?
ac1cb8d3
VS
22074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22075 yes:no: )
a848cd7e
SC
22076 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22077echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22078 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22079echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22080 ac_header_preproc=yes
a848cd7e 22081 ;;
ac1cb8d3 22082 no:yes:* )
a848cd7e
SC
22083 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22084echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22085 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22086echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22088echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22090echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22091 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22092echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22093 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22094echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22095 (
22096 cat <<\_ASBOX
ac1cb8d3
VS
22097## ----------------------------------------- ##
22098## Report this to wx-dev@lists.wxwidgets.org ##
22099## ----------------------------------------- ##
a848cd7e
SC
22100_ASBOX
22101 ) |
22102 sed "s/^/$as_me: WARNING: /" >&2
22103 ;;
22104esac
22105echo "$as_me:$LINENO: checking for windows.h" >&5
22106echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22107if test "${ac_cv_header_windows_h+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22109else
22110 ac_cv_header_windows_h=$ac_header_preproc
22111fi
22112echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22113echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22114
22115fi
22116if test $ac_cv_header_windows_h = yes; then
22117 :
22118else
22119
22120 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22121echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22122 { (exit 1); exit 1; }; }
22123
22124fi
22125
22126
22127
22128 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22129
22130 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22131 LIBS="$LIBS -loleacc"
22132 fi
22133
22134 case "${host}" in
22135 *-*-cygwin* )
22136 LIBS="$LIBS -lkernel32 -luser32"
22137 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22138 esac
22139
22140 if test "$wxUSE_ODBC" = "sys" ; then
22141 wxUSE_ODBC = "yes"
22142 fi
22143 if test "$wxUSE_ODBC" = "yes" ; then
22144 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22145 cat >>confdefs.h <<\_ACEOF
22146#define wxUSE_ODBC 1
22147_ACEOF
22148
22149 fi
22150
22151 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22152 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22153
22154 WIN32INSTALL=win32install
22155fi
22156
22157if test "$wxUSE_GUI" = "yes"; then
22158 USE_GUI=1
22159
22160 GUI_TK_LIBRARY=
22161
22162 WXGTK12=
22163 WXGTK127=
22164 WXGTK20=
22165 WXGPE=
22166
22167 if test "$wxUSE_MSW" = 1 ; then
22168 TOOLKIT=MSW
22169 GUIDIST=MSW_DIST
22170
22171 case "${host}" in
22172 *-*-mingw32* )
22173 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22174 esac
22175 fi
22176
22177 if test "$wxUSE_GTK" = 1; then
22178 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22179echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22180
22181 gtk_version_cached=1
22182 if test "${wx_cv_lib_gtk+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22184else
22185
22186 gtk_version_cached=0
22187 echo "$as_me:$LINENO: result: " >&5
22188echo "${ECHO_T}" >&6
22189
22190 GTK_MODULES=
22191 if test "$wxUSE_THREADS" = "yes"; then
22192 GTK_MODULES=gthread
22193 fi
22194
22195 wx_cv_lib_gtk=
22196 if test "x$wxUSE_GTK2" = "xyes"; then
22197 # Check whether --enable-gtktest or --disable-gtktest was given.
22198if test "${enable_gtktest+set}" = set; then
22199 enableval="$enable_gtktest"
22200
22201else
22202 enable_gtktest=yes
22203fi;
22204
22205 pkg_config_args=gtk+-2.0
22206 for module in . $GTK_MODULES
22207 do
22208 case "$module" in
22209 gthread)
22210 pkg_config_args="$pkg_config_args gthread-2.0"
22211 ;;
22212 esac
22213 done
22214
22215 no_gtk=""
22216
22217 # Extract the first word of "pkg-config", so it can be a program name with args.
22218set dummy pkg-config; ac_word=$2
22219echo "$as_me:$LINENO: checking for $ac_word" >&5
22220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22221if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223else
22224 case $PKG_CONFIG in
22225 [\\/]* | ?:[\\/]*)
22226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22227 ;;
22228 *)
22229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22230for as_dir in $PATH
22231do
22232 IFS=$as_save_IFS
22233 test -z "$as_dir" && as_dir=.
22234 for ac_exec_ext in '' $ac_executable_extensions; do
22235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22236 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22238 break 2
22239 fi
22240done
22241done
22242
22243 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22244 ;;
22245esac
22246fi
22247PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22248
22249if test -n "$PKG_CONFIG"; then
22250 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22251echo "${ECHO_T}$PKG_CONFIG" >&6
22252else
22253 echo "$as_me:$LINENO: result: no" >&5
22254echo "${ECHO_T}no" >&6
22255fi
22256
22257
22258 if test x$PKG_CONFIG != xno ; then
22259 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22260 :
22261 else
c2218763 22262 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22263 no_gtk=yes
22264 PKG_CONFIG=no
22265 fi
22266 else
22267 no_gtk=yes
22268 fi
22269
22270 min_gtk_version=2.0.0
22271 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22272echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22273
22274 if test x$PKG_CONFIG != xno ; then
22275 ## don't try to run the test against uninstalled libtool libs
22276 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22277 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22278 enable_gtktest=no
22279 fi
22280
22281 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22282 :
22283 else
22284 no_gtk=yes
22285 fi
22286 fi
22287
22288 if test x"$no_gtk" = x ; then
22289 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22290 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22291 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22292 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22293 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22295 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22297 if test "x$enable_gtktest" = "xyes" ; then
22298 ac_save_CFLAGS="$CFLAGS"
22299 ac_save_LIBS="$LIBS"
22300 CFLAGS="$CFLAGS $GTK_CFLAGS"
22301 LIBS="$GTK_LIBS $LIBS"
22302 rm -f conf.gtktest
22303 if test "$cross_compiling" = yes; then
22304 echo $ac_n "cross compiling; assumed OK... $ac_c"
22305else
22306 cat >conftest.$ac_ext <<_ACEOF
22307/* confdefs.h. */
22308_ACEOF
22309cat confdefs.h >>conftest.$ac_ext
22310cat >>conftest.$ac_ext <<_ACEOF
22311/* end confdefs.h. */
22312
22313#include <gtk/gtk.h>
22314#include <stdio.h>
22315#include <stdlib.h>
22316
22317int
22318main ()
22319{
22320 int major, minor, micro;
22321 char *tmp_version;
22322
22323 system ("touch conf.gtktest");
22324
22325 /* HP/UX 9 (%@#!) writes to sscanf strings */
22326 tmp_version = g_strdup("$min_gtk_version");
22327 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22328 printf("%s, bad version string\n", "$min_gtk_version");
22329 exit(1);
22330 }
22331
22332 if ((gtk_major_version != $gtk_config_major_version) ||
22333 (gtk_minor_version != $gtk_config_minor_version) ||
22334 (gtk_micro_version != $gtk_config_micro_version))
22335 {
22336 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22337 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22338 gtk_major_version, gtk_minor_version, gtk_micro_version);
22339 printf ("*** was found! If pkg-config was correct, then it is best\n");
22340 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22341 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22342 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22343 printf("*** required on your system.\n");
22344 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22345 printf("*** to point to the correct configuration files\n");
22346 }
22347 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22348 (gtk_minor_version != GTK_MINOR_VERSION) ||
22349 (gtk_micro_version != GTK_MICRO_VERSION))
22350 {
22351 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22352 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22353 printf("*** library (version %d.%d.%d)\n",
22354 gtk_major_version, gtk_minor_version, gtk_micro_version);
22355 }
22356 else
22357 {
22358 if ((gtk_major_version > major) ||
22359 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22360 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22361 {
22362 return 0;
22363 }
22364 else
22365 {
22366 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22367 gtk_major_version, gtk_minor_version, gtk_micro_version);
22368 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22369 major, minor, micro);
22370 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22371 printf("***\n");
22372 printf("*** If you have already installed a sufficiently new version, this error\n");
22373 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22374 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22375 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22376 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22377 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22378 printf("*** so that the correct libraries are found at run-time))\n");
22379 }
22380 }
22381 return 1;
22382}
22383
22384_ACEOF
22385rm -f conftest$ac_exeext
22386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22387 (eval $ac_link) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 :
22397else
22398 echo "$as_me: program exited with status $ac_status" >&5
22399echo "$as_me: failed program was:" >&5
22400sed 's/^/| /' conftest.$ac_ext >&5
22401
22402( exit $ac_status )
22403no_gtk=yes
22404fi
ac1cb8d3 22405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22406fi
22407 CFLAGS="$ac_save_CFLAGS"
22408 LIBS="$ac_save_LIBS"
22409 fi
22410 fi
22411 if test "x$no_gtk" = x ; then
22412 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22413echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22414 wx_cv_lib_gtk=2.0
22415 else
22416 echo "$as_me:$LINENO: result: no" >&5
22417echo "${ECHO_T}no" >&6
22418 if test "$PKG_CONFIG" = "no" ; then
22419 echo "*** A new enough version of pkg-config was not found."
22420 echo "*** See http://pkgconfig.sourceforge.net"
22421 else
22422 if test -f conf.gtktest ; then
22423 :
22424 else
22425 echo "*** Could not run GTK+ test program, checking why..."
22426 ac_save_CFLAGS="$CFLAGS"
22427 ac_save_LIBS="$LIBS"
22428 CFLAGS="$CFLAGS $GTK_CFLAGS"
22429 LIBS="$LIBS $GTK_LIBS"
22430 cat >conftest.$ac_ext <<_ACEOF
22431/* confdefs.h. */
22432_ACEOF
22433cat confdefs.h >>conftest.$ac_ext
22434cat >>conftest.$ac_ext <<_ACEOF
22435/* end confdefs.h. */
22436
22437#include <gtk/gtk.h>
22438#include <stdio.h>
22439
22440int
22441main ()
22442{
22443 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22444 ;
22445 return 0;
22446}
22447_ACEOF
22448rm -f conftest.$ac_objext conftest$ac_exeext
22449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22450 (eval $ac_link) 2>conftest.er1
a848cd7e 22451 ac_status=$?
ac1cb8d3
VS
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
a848cd7e
SC
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
4d4ff94c 22457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; } &&
22463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; }; then
22469 echo "*** The test program compiled, but did not run. This usually means"
22470 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22471 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22472 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22473 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22474 echo "*** is required on your system"
22475 echo "***"
22476 echo "*** If you have an old version installed, it is best to remove it, although"
22477 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22478else
22479 echo "$as_me: failed program was:" >&5
22480sed 's/^/| /' conftest.$ac_ext >&5
22481
22482 echo "*** The test program failed to compile or link. See the file config.log for the"
22483 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22484fi
ac1cb8d3
VS
22485rm -f conftest.err conftest.$ac_objext \
22486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22487 CFLAGS="$ac_save_CFLAGS"
22488 LIBS="$ac_save_LIBS"
22489 fi
22490 fi
22491 GTK_CFLAGS=""
22492 GTK_LIBS=""
22493 :
22494 fi
22495
22496
22497 rm -f conf.gtktest
22498
22499 else
22500
22501# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22502if test "${with_gtk_prefix+set}" = set; then
22503 withval="$with_gtk_prefix"
22504 gtk_config_prefix="$withval"
22505else
22506 gtk_config_prefix=""
22507fi;
22508
22509# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22510if test "${with_gtk_exec_prefix+set}" = set; then
22511 withval="$with_gtk_exec_prefix"
22512 gtk_config_exec_prefix="$withval"
22513else
22514 gtk_config_exec_prefix=""
22515fi;
22516# Check whether --enable-gtktest or --disable-gtktest was given.
22517if test "${enable_gtktest+set}" = set; then
22518 enableval="$enable_gtktest"
22519
22520else
22521 enable_gtktest=yes
22522fi;
22523
22524 for module in . $GTK_MODULES
22525 do
22526 case "$module" in
22527 gthread)
22528 gtk_config_args="$gtk_config_args gthread"
22529 ;;
22530 esac
22531 done
22532
22533 if test x$gtk_config_exec_prefix != x ; then
22534 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22535 if test x${GTK_CONFIG+set} != xset ; then
22536 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22537 fi
22538 fi
22539 if test x$gtk_config_prefix != x ; then
22540 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22541 if test x${GTK_CONFIG+set} != xset ; then
22542 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22543 fi
22544 fi
22545
22546 # Extract the first word of "gtk-config", so it can be a program name with args.
22547set dummy gtk-config; ac_word=$2
22548echo "$as_me:$LINENO: checking for $ac_word" >&5
22549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22550if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552else
22553 case $GTK_CONFIG in
22554 [\\/]* | ?:[\\/]*)
22555 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22556 ;;
22557 *)
22558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22559for as_dir in $PATH
22560do
22561 IFS=$as_save_IFS
22562 test -z "$as_dir" && as_dir=.
22563 for ac_exec_ext in '' $ac_executable_extensions; do
22564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22565 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22567 break 2
22568 fi
22569done
22570done
22571
22572 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22573 ;;
22574esac
22575fi
22576GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22577
22578if test -n "$GTK_CONFIG"; then
22579 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22580echo "${ECHO_T}$GTK_CONFIG" >&6
22581else
22582 echo "$as_me:$LINENO: result: no" >&5
22583echo "${ECHO_T}no" >&6
22584fi
22585
22586 min_gtk_version=1.2.7
22587 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22588echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22589 no_gtk=""
22590 if test "$GTK_CONFIG" = "no" ; then
22591 no_gtk=yes
22592 else
22593 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22594 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22595 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22597 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22599 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22601 if test "x$enable_gtktest" = "xyes" ; then
22602 ac_save_CFLAGS="$CFLAGS"
22603 ac_save_LIBS="$LIBS"
22604 CFLAGS="$CFLAGS $GTK_CFLAGS"
22605 LIBS="$GTK_LIBS $LIBS"
22606 rm -f conf.gtktest
22607 if test "$cross_compiling" = yes; then
22608 echo $ac_n "cross compiling; assumed OK... $ac_c"
22609else
22610 cat >conftest.$ac_ext <<_ACEOF
22611/* confdefs.h. */
22612_ACEOF
22613cat confdefs.h >>conftest.$ac_ext
22614cat >>conftest.$ac_ext <<_ACEOF
22615/* end confdefs.h. */
22616
22617#include <gtk/gtk.h>
22618#include <stdio.h>
22619#include <stdlib.h>
22620
22621int
22622main ()
22623{
22624 int major, minor, micro;
22625 char *tmp_version;
22626
22627 system ("touch conf.gtktest");
22628
22629 /* HP/UX 9 (%@#!) writes to sscanf strings */
22630 tmp_version = g_strdup("$min_gtk_version");
22631 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22632 printf("%s, bad version string\n", "$min_gtk_version");
22633 exit(1);
22634 }
22635
22636 if ((gtk_major_version != $gtk_config_major_version) ||
22637 (gtk_minor_version != $gtk_config_minor_version) ||
22638 (gtk_micro_version != $gtk_config_micro_version))
22639 {
22640 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22641 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22642 gtk_major_version, gtk_minor_version, gtk_micro_version);
22643 printf ("*** was found! If gtk-config was correct, then it is best\n");
22644 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22645 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22646 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22647 printf("*** required on your system.\n");
22648 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22649 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22650 printf("*** before re-running configure\n");
22651 }
22652#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22653 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22654 (gtk_minor_version != GTK_MINOR_VERSION) ||
22655 (gtk_micro_version != GTK_MICRO_VERSION))
22656 {
22657 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22658 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22659 printf("*** library (version %d.%d.%d)\n",
22660 gtk_major_version, gtk_minor_version, gtk_micro_version);
22661 }
22662#endif /* defined (GTK_MAJOR_VERSION) ... */
22663 else
22664 {
22665 if ((gtk_major_version > major) ||
22666 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22667 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22668 {
22669 return 0;
22670 }
22671 else
22672 {
22673 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22674 gtk_major_version, gtk_minor_version, gtk_micro_version);
22675 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22676 major, minor, micro);
22677 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22678 printf("***\n");
22679 printf("*** If you have already installed a sufficiently new version, this error\n");
22680 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22681 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22682 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22683 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22684 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22685 printf("*** so that the correct libraries are found at run-time))\n");
22686 }
22687 }
22688 return 1;
22689}
22690
22691_ACEOF
22692rm -f conftest$ac_exeext
22693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22694 (eval $ac_link) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
22703 :
22704else
22705 echo "$as_me: program exited with status $ac_status" >&5
22706echo "$as_me: failed program was:" >&5
22707sed 's/^/| /' conftest.$ac_ext >&5
22708
22709( exit $ac_status )
22710no_gtk=yes
22711fi
ac1cb8d3 22712rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22713fi
22714 CFLAGS="$ac_save_CFLAGS"
22715 LIBS="$ac_save_LIBS"
22716 fi
22717 fi
22718 if test "x$no_gtk" = x ; then
22719 echo "$as_me:$LINENO: result: yes" >&5
22720echo "${ECHO_T}yes" >&6
22721 wx_cv_lib_gtk=1.2.7
22722 else
22723 echo "$as_me:$LINENO: result: no" >&5
22724echo "${ECHO_T}no" >&6
22725 if test "$GTK_CONFIG" = "no" ; then
22726 echo "*** The gtk-config script installed by GTK could not be found"
22727 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22728 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22729 echo "*** full path to gtk-config."
22730 else
22731 if test -f conf.gtktest ; then
22732 :
22733 else
22734 echo "*** Could not run GTK test program, checking why..."
22735 CFLAGS="$CFLAGS $GTK_CFLAGS"
22736 LIBS="$LIBS $GTK_LIBS"
22737 cat >conftest.$ac_ext <<_ACEOF
22738/* confdefs.h. */
22739_ACEOF
22740cat confdefs.h >>conftest.$ac_ext
22741cat >>conftest.$ac_ext <<_ACEOF
22742/* end confdefs.h. */
22743
22744#include <gtk/gtk.h>
22745#include <stdio.h>
22746
22747int
22748main ()
22749{
22750 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22751 ;
22752 return 0;
22753}
22754_ACEOF
22755rm -f conftest.$ac_objext conftest$ac_exeext
22756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22757 (eval $ac_link) 2>conftest.er1
a848cd7e 22758 ac_status=$?
ac1cb8d3
VS
22759 grep -v '^ *+' conftest.er1 >conftest.err
22760 rm -f conftest.er1
22761 cat conftest.err >&5
a848cd7e
SC
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } &&
4d4ff94c 22764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22767 ac_status=$?
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; } &&
22770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; }; then
22776 echo "*** The test program compiled, but did not run. This usually means"
22777 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22778 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22779 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22780 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22781 echo "*** is required on your system"
22782 echo "***"
22783 echo "*** If you have an old version installed, it is best to remove it, although"
22784 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22785 echo "***"
22786 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22787 echo "*** came with the system with the command"
22788 echo "***"
22789 echo "*** rpm --erase --nodeps gtk gtk-devel"
22790else
22791 echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 echo "*** The test program failed to compile or link. See the file config.log for the"
22795 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22796 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22797 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22798fi
ac1cb8d3
VS
22799rm -f conftest.err conftest.$ac_objext \
22800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22801 CFLAGS="$ac_save_CFLAGS"
22802 LIBS="$ac_save_LIBS"
22803 fi
22804 fi
22805 GTK_CFLAGS=""
22806 GTK_LIBS=""
22807 :
22808 fi
22809
22810
22811 rm -f conf.gtktest
22812
22813
22814 if test -z "$wx_cv_lib_gtk"; then
22815
22816# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22817if test "${with_gtk_prefix+set}" = set; then
22818 withval="$with_gtk_prefix"
22819 gtk_config_prefix="$withval"
22820else
22821 gtk_config_prefix=""
22822fi;
22823
22824# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22825if test "${with_gtk_exec_prefix+set}" = set; then
22826 withval="$with_gtk_exec_prefix"
22827 gtk_config_exec_prefix="$withval"
22828else
22829 gtk_config_exec_prefix=""
22830fi;
22831# Check whether --enable-gtktest or --disable-gtktest was given.
22832if test "${enable_gtktest+set}" = set; then
22833 enableval="$enable_gtktest"
22834
22835else
22836 enable_gtktest=yes
22837fi;
22838
22839 for module in . $GTK_MODULES
22840 do
22841 case "$module" in
22842 gthread)
22843 gtk_config_args="$gtk_config_args gthread"
22844 ;;
22845 esac
22846 done
22847
22848 if test x$gtk_config_exec_prefix != x ; then
22849 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22850 if test x${GTK_CONFIG+set} != xset ; then
22851 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22852 fi
22853 fi
22854 if test x$gtk_config_prefix != x ; then
22855 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22856 if test x${GTK_CONFIG+set} != xset ; then
22857 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22858 fi
22859 fi
22860
22861 # Extract the first word of "gtk-config", so it can be a program name with args.
22862set dummy gtk-config; ac_word=$2
22863echo "$as_me:$LINENO: checking for $ac_word" >&5
22864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22865if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867else
22868 case $GTK_CONFIG in
22869 [\\/]* | ?:[\\/]*)
22870 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22871 ;;
22872 *)
22873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22874for as_dir in $PATH
22875do
22876 IFS=$as_save_IFS
22877 test -z "$as_dir" && as_dir=.
22878 for ac_exec_ext in '' $ac_executable_extensions; do
22879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22880 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22882 break 2
22883 fi
22884done
22885done
22886
22887 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22888 ;;
22889esac
22890fi
22891GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22892
22893if test -n "$GTK_CONFIG"; then
22894 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22895echo "${ECHO_T}$GTK_CONFIG" >&6
22896else
22897 echo "$as_me:$LINENO: result: no" >&5
22898echo "${ECHO_T}no" >&6
22899fi
22900
22901 min_gtk_version=1.2.3
22902 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22903echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22904 no_gtk=""
22905 if test "$GTK_CONFIG" = "no" ; then
22906 no_gtk=yes
22907 else
22908 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22909 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22910 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22911 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22912 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22914 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22916 if test "x$enable_gtktest" = "xyes" ; then
22917 ac_save_CFLAGS="$CFLAGS"
22918 ac_save_LIBS="$LIBS"
22919 CFLAGS="$CFLAGS $GTK_CFLAGS"
22920 LIBS="$GTK_LIBS $LIBS"
22921 rm -f conf.gtktest
22922 if test "$cross_compiling" = yes; then
22923 echo $ac_n "cross compiling; assumed OK... $ac_c"
22924else
22925 cat >conftest.$ac_ext <<_ACEOF
22926/* confdefs.h. */
22927_ACEOF
22928cat confdefs.h >>conftest.$ac_ext
22929cat >>conftest.$ac_ext <<_ACEOF
22930/* end confdefs.h. */
22931
22932#include <gtk/gtk.h>
22933#include <stdio.h>
22934#include <stdlib.h>
22935
22936int
22937main ()
22938{
22939 int major, minor, micro;
22940 char *tmp_version;
22941
22942 system ("touch conf.gtktest");
22943
22944 /* HP/UX 9 (%@#!) writes to sscanf strings */
22945 tmp_version = g_strdup("$min_gtk_version");
22946 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22947 printf("%s, bad version string\n", "$min_gtk_version");
22948 exit(1);
22949 }
22950
22951 if ((gtk_major_version != $gtk_config_major_version) ||
22952 (gtk_minor_version != $gtk_config_minor_version) ||
22953 (gtk_micro_version != $gtk_config_micro_version))
22954 {
22955 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22956 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22957 gtk_major_version, gtk_minor_version, gtk_micro_version);
22958 printf ("*** was found! If gtk-config was correct, then it is best\n");
22959 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22960 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22961 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22962 printf("*** required on your system.\n");
22963 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22964 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22965 printf("*** before re-running configure\n");
22966 }
22967#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22968 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22969 (gtk_minor_version != GTK_MINOR_VERSION) ||
22970 (gtk_micro_version != GTK_MICRO_VERSION))
22971 {
22972 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22973 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22974 printf("*** library (version %d.%d.%d)\n",
22975 gtk_major_version, gtk_minor_version, gtk_micro_version);
22976 }
22977#endif /* defined (GTK_MAJOR_VERSION) ... */
22978 else
22979 {
22980 if ((gtk_major_version > major) ||
22981 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22982 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22983 {
22984 return 0;
22985 }
22986 else
22987 {
22988 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22989 gtk_major_version, gtk_minor_version, gtk_micro_version);
22990 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22991 major, minor, micro);
22992 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22993 printf("***\n");
22994 printf("*** If you have already installed a sufficiently new version, this error\n");
22995 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22996 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22997 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22998 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22999 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23000 printf("*** so that the correct libraries are found at run-time))\n");
23001 }
23002 }
23003 return 1;
23004}
23005
23006_ACEOF
23007rm -f conftest$ac_exeext
23008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23009 (eval $ac_link) 2>&5
23010 ac_status=$?
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23018 :
23019else
23020 echo "$as_me: program exited with status $ac_status" >&5
23021echo "$as_me: failed program was:" >&5
23022sed 's/^/| /' conftest.$ac_ext >&5
23023
23024( exit $ac_status )
23025no_gtk=yes
23026fi
ac1cb8d3 23027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23028fi
23029 CFLAGS="$ac_save_CFLAGS"
23030 LIBS="$ac_save_LIBS"
23031 fi
23032 fi
23033 if test "x$no_gtk" = x ; then
23034 echo "$as_me:$LINENO: result: yes" >&5
23035echo "${ECHO_T}yes" >&6
23036 wx_cv_lib_gtk=1.2.3
23037 else
23038 echo "$as_me:$LINENO: result: no" >&5
23039echo "${ECHO_T}no" >&6
23040 if test "$GTK_CONFIG" = "no" ; then
23041 echo "*** The gtk-config script installed by GTK could not be found"
23042 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23043 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23044 echo "*** full path to gtk-config."
23045 else
23046 if test -f conf.gtktest ; then
23047 :
23048 else
23049 echo "*** Could not run GTK test program, checking why..."
23050 CFLAGS="$CFLAGS $GTK_CFLAGS"
23051 LIBS="$LIBS $GTK_LIBS"
23052 cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
23058
23059#include <gtk/gtk.h>
23060#include <stdio.h>
23061
23062int
23063main ()
23064{
23065 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23066 ;
23067 return 0;
23068}
23069_ACEOF
23070rm -f conftest.$ac_objext conftest$ac_exeext
23071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23072 (eval $ac_link) 2>conftest.er1
a848cd7e 23073 ac_status=$?
ac1cb8d3
VS
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
a848cd7e
SC
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } &&
4d4ff94c 23079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 echo "*** The test program compiled, but did not run. This usually means"
23092 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23093 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23094 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23095 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23096 echo "*** is required on your system"
23097 echo "***"
23098 echo "*** If you have an old version installed, it is best to remove it, although"
23099 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23100 echo "***"
23101 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23102 echo "*** came with the system with the command"
23103 echo "***"
23104 echo "*** rpm --erase --nodeps gtk gtk-devel"
23105else
23106 echo "$as_me: failed program was:" >&5
23107sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 echo "*** The test program failed to compile or link. See the file config.log for the"
23110 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23111 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23112 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23113fi
ac1cb8d3
VS
23114rm -f conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23116 CFLAGS="$ac_save_CFLAGS"
23117 LIBS="$ac_save_LIBS"
23118 fi
23119 fi
23120 GTK_CFLAGS=""
23121 GTK_LIBS=""
23122 :
23123 fi
23124
23125
23126 rm -f conf.gtktest
23127
23128 fi
23129 fi
23130
23131 if test -z "$wx_cv_lib_gtk"; then
23132 wx_cv_lib_gtk=none
23133 else
23134 wx_cv_cflags_gtk=$GTK_CFLAGS
23135 wx_cv_libs_gtk=$GTK_LIBS
23136 fi
23137
23138
23139fi
23140
23141
23142 if test "$gtk_version_cached" = 1; then
23143 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23144echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23145 fi
23146
23147 case "$wx_cv_lib_gtk" in
23148 2.0) WXGTK20=1
23149 TOOLKIT_VERSION=2
23150 ;;
23151 1.2.7) WXGTK127=1
23152 WXGTK12=1
23153 ;;
23154 1.2.3) WXGTK12=1
23155 ;;
23156 *) { { echo "$as_me:$LINENO: error:
23157Please check that gtk-config is in path, the directory
23158where GTK+ libraries are installed (returned by
23159'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23160equivalent variable and GTK+ is version 1.2.3 or above.
23161 " >&5
23162echo "$as_me: error:
23163Please check that gtk-config is in path, the directory
23164where GTK+ libraries are installed (returned by
23165'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23166equivalent variable and GTK+ is version 1.2.3 or above.
23167 " >&2;}
23168 { (exit 1); exit 1; }; }
23169 ;;
23170 esac
23171
23172 if test "$WXGTK20" = 1; then
23173 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23174
23175 succeeded=no
23176
23177 if test -z "$PKG_CONFIG"; then
23178 # Extract the first word of "pkg-config", so it can be a program name with args.
23179set dummy pkg-config; ac_word=$2
23180echo "$as_me:$LINENO: checking for $ac_word" >&5
23181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23182if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23184else
23185 case $PKG_CONFIG in
23186 [\\/]* | ?:[\\/]*)
23187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23188 ;;
23189 *)
23190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23191for as_dir in $PATH
23192do
23193 IFS=$as_save_IFS
23194 test -z "$as_dir" && as_dir=.
23195 for ac_exec_ext in '' $ac_executable_extensions; do
23196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23197 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23199 break 2
23200 fi
23201done
23202done
23203
23204 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23205 ;;
23206esac
23207fi
23208PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23209
23210if test -n "$PKG_CONFIG"; then
23211 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23212echo "${ECHO_T}$PKG_CONFIG" >&6
23213else
23214 echo "$as_me:$LINENO: result: no" >&5
23215echo "${ECHO_T}no" >&6
23216fi
23217
23218 fi
23219
23220 if test "$PKG_CONFIG" = "no" ; then
23221 echo "*** The pkg-config script could not be found. Make sure it is"
23222 echo "*** in your path, or set the PKG_CONFIG environment variable"
23223 echo "*** to the full path to pkg-config."
23224 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23225 else
23226 PKG_CONFIG_MIN_VERSION=0.9.0
23227 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23228 echo "$as_me:$LINENO: checking for pangoft2" >&5
23229echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23230
23231 if $PKG_CONFIG --exists "pangoft2" ; then
23232 echo "$as_me:$LINENO: result: yes" >&5
23233echo "${ECHO_T}yes" >&6
23234 succeeded=yes
23235
23236 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23237echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23238 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23239 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23240echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23241
23242 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23243echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23244 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23245 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23246echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23247 else
23248 PANGOFT2_CFLAGS=""
23249 PANGOFT2_LIBS=""
23250 ## If we have a custom action on failure, don't print errors, but
23251 ## do set a variable so people can do so.
23252 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23253
23254 fi
23255
23256
23257
23258 else
23259 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23260 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23261 fi
23262 fi
23263
23264 if test $succeeded = yes; then
23265
23266 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23267 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23268
23269 else
23270
23271 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23272echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23273 wxUSE_PRINTING_ARCHITECTURE="no"
23274
23275
23276 fi
23277
23278 fi
304205f1
VS
23279
23280 save_CFLAGS="$CFLAGS"
23281 save_LIBS="$LIBS"
23282 CFLAGS="$CFLAGS $GTK_CFLAGS"
23283 LIBS="$LIBS $GTK_LIBS"
23284
23285for ac_func in pango_font_family_is_monospace
23286do
23287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23288echo "$as_me:$LINENO: checking for $ac_func" >&5
23289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23290if eval "test \"\${$as_ac_var+set}\" = set"; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23292else
23293 cat >conftest.$ac_ext <<_ACEOF
23294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
23299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23301#define $ac_func innocuous_$ac_func
23302
23303/* System header to define __stub macros and hopefully few prototypes,
23304 which can conflict with char $ac_func (); below.
23305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23306 <limits.h> exists even on freestanding compilers. */
23307
23308#ifdef __STDC__
23309# include <limits.h>
23310#else
23311# include <assert.h>
23312#endif
23313
23314#undef $ac_func
23315
23316/* Override any gcc2 internal prototype to avoid an error. */
23317#ifdef __cplusplus
23318extern "C"
23319{
23320#endif
23321/* We use char because int might match the return type of a gcc2
23322 builtin and then its argument prototype would still apply. */
23323char $ac_func ();
23324/* The GNU C library defines this for functions which it implements
23325 to always fail with ENOSYS. Some functions are actually named
23326 something starting with __ and the normal name is an alias. */
23327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23328choke me
23329#else
23330char (*f) () = $ac_func;
23331#endif
23332#ifdef __cplusplus
23333}
23334#endif
23335
23336int
23337main ()
23338{
23339return f != $ac_func;
23340 ;
23341 return 0;
23342}
23343_ACEOF
23344rm -f conftest.$ac_objext conftest$ac_exeext
23345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23346 (eval $ac_link) 2>conftest.er1
23347 ac_status=$?
23348 grep -v '^ *+' conftest.er1 >conftest.err
23349 rm -f conftest.er1
23350 cat conftest.err >&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); } &&
4d4ff94c 23353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355 (eval $ac_try) 2>&5
23356 ac_status=$?
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); }; } &&
23359 { ac_try='test -s conftest$ac_exeext'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; }; then
23365 eval "$as_ac_var=yes"
23366else
23367 echo "$as_me: failed program was:" >&5
23368sed 's/^/| /' conftest.$ac_ext >&5
23369
23370eval "$as_ac_var=no"
23371fi
23372rm -f conftest.err conftest.$ac_objext \
23373 conftest$ac_exeext conftest.$ac_ext
23374fi
23375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23377if test `eval echo '${'$as_ac_var'}'` = yes; then
23378 cat >>confdefs.h <<_ACEOF
23379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23380_ACEOF
23381
23382fi
23383done
23384
23385 CFLAGS="$save_CFLAGS"
23386 LIBS="$save_LIBS"
a848cd7e
SC
23387 else
23388 if test "$wxUSE_UNICODE" = "yes"; then
23389 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23390echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23391 wxUSE_UNICODE=no
23392 fi
23393 fi
23394
23395 if test "$USE_DARWIN" != 1; then
23396
23397for ac_func in poll
23398do
23399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23400echo "$as_me:$LINENO: checking for $ac_func" >&5
23401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23402if eval "test \"\${$as_ac_var+set}\" = set"; then
23403 echo $ECHO_N "(cached) $ECHO_C" >&6
23404else
23405 cat >conftest.$ac_ext <<_ACEOF
23406/* confdefs.h. */
23407_ACEOF
23408cat confdefs.h >>conftest.$ac_ext
23409cat >>conftest.$ac_ext <<_ACEOF
23410/* end confdefs.h. */
ac1cb8d3
VS
23411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23413#define $ac_func innocuous_$ac_func
23414
a848cd7e
SC
23415/* System header to define __stub macros and hopefully few prototypes,
23416 which can conflict with char $ac_func (); below.
23417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23418 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23419
a848cd7e
SC
23420#ifdef __STDC__
23421# include <limits.h>
23422#else
23423# include <assert.h>
23424#endif
ac1cb8d3
VS
23425
23426#undef $ac_func
23427
a848cd7e
SC
23428/* Override any gcc2 internal prototype to avoid an error. */
23429#ifdef __cplusplus
23430extern "C"
23431{
23432#endif
23433/* We use char because int might match the return type of a gcc2
23434 builtin and then its argument prototype would still apply. */
23435char $ac_func ();
23436/* The GNU C library defines this for functions which it implements
23437 to always fail with ENOSYS. Some functions are actually named
23438 something starting with __ and the normal name is an alias. */
23439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23440choke me
23441#else
23442char (*f) () = $ac_func;
23443#endif
23444#ifdef __cplusplus
23445}
23446#endif
23447
23448int
23449main ()
23450{
23451return f != $ac_func;
23452 ;
23453 return 0;
23454}
23455_ACEOF
23456rm -f conftest.$ac_objext conftest$ac_exeext
23457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23458 (eval $ac_link) 2>conftest.er1
a848cd7e 23459 ac_status=$?
ac1cb8d3
VS
23460 grep -v '^ *+' conftest.er1 >conftest.err
23461 rm -f conftest.er1
23462 cat conftest.err >&5
a848cd7e
SC
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } &&
4d4ff94c 23465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; } &&
23471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23477 eval "$as_ac_var=yes"
23478else
23479 echo "$as_me: failed program was:" >&5
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
23482eval "$as_ac_var=no"
23483fi
ac1cb8d3
VS
23484rm -f conftest.err conftest.$ac_objext \
23485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23486fi
23487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23489if test `eval echo '${'$as_ac_var'}'` = yes; then
23490 cat >>confdefs.h <<_ACEOF
23491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23492_ACEOF
23493
23494fi
23495done
23496
23497 fi
23498
23499 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23500 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23501
23502 AFMINSTALL=afminstall
23503 TOOLKIT=GTK
23504 GUIDIST=GTK_DIST
23505
23506 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23507echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23508if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23510else
23511 ac_check_lib_save_LIBS=$LIBS
23512LIBS="-lgdk $LIBS"
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519
23520/* Override any gcc2 internal prototype to avoid an error. */
23521#ifdef __cplusplus
23522extern "C"
23523#endif
23524/* We use char because int might match the return type of a gcc2
23525 builtin and then its argument prototype would still apply. */
23526char gdk_im_open ();
23527int
23528main ()
23529{
23530gdk_im_open ();
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext conftest$ac_exeext
23536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23537 (eval $ac_link) 2>conftest.er1
a848cd7e 23538 ac_status=$?
ac1cb8d3
VS
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
a848cd7e
SC
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
4d4ff94c 23544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_cv_lib_gdk_gdk_im_open=yes
23557else
23558 echo "$as_me: failed program was:" >&5
23559sed 's/^/| /' conftest.$ac_ext >&5
23560
23561ac_cv_lib_gdk_gdk_im_open=no
23562fi
ac1cb8d3
VS
23563rm -f conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23565LIBS=$ac_check_lib_save_LIBS
23566fi
23567echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23568echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23569if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23570 cat >>confdefs.h <<\_ACEOF
23571#define HAVE_XIM 1
23572_ACEOF
23573
23574fi
23575
23576
23577
23578 if test "$wxUSE_GPE" = "yes"; then
23579 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23580echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23581
23582ac_find_libraries=
23583for ac_dir in $SEARCH_LIB /usr/lib;
23584 do
23585 for ac_extension in a so sl dylib; do
23586 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23587 ac_find_libraries=$ac_dir
23588 break 2
23589 fi
23590 done
23591 done
23592
23593 if test "$ac_find_libraries" != "" ; then
23594
23595 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23596 result=$?
23597 if test $result = 0; then
23598 ac_path_to_link=""
23599 else
23600 ac_path_to_link=" -L$ac_find_libraries"
23601 fi
23602
23603 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23604 WXGPE=1
23605 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23606echo "${ECHO_T}found at $ac_find_libraries" >&6
23607 else
23608 echo "$as_me:$LINENO: result: not found" >&5
23609echo "${ECHO_T}not found" >&6
23610 fi
23611
23612 fi
23613 fi
23614
23615 if test "$wxUSE_MGL" = 1; then
23616 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23617echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23618 if test "x$MGL_ROOT" = x ; then
23619 echo "$as_me:$LINENO: result: not found" >&5
23620echo "${ECHO_T}not found" >&6
23621 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23622echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23623 { (exit 1); exit 1; }; }
23624 else
23625 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23626echo "${ECHO_T}$MGL_ROOT" >&6
23627 fi
23628
23629 echo "$as_me:$LINENO: checking for libmgl location" >&5
23630echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23631 case "${host}" in
23632 *-*-linux* )
23633 if test "x$wxUSE_SHARED" = xyes ; then
23634 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23635 else
23636 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23637 fi
23638 ;;
23639 *-pc-msdosdjgpp )
23640 mgl_os_candidates="dos32/dj2"
23641 ;;
23642 *)
23643 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23644echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23645 { (exit 1); exit 1; }; }
23646 esac
23647
23648 mgl_lib_type=""
23649 mgl_os=""
23650
23651 for mgl_os_i in $mgl_os_candidates ; do
23652 if test "x$mgl_os" = x ; then
23653 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23654 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23655 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23656 mgl_lib_type=debug
23657 mgl_os=$mgl_os_i
23658 fi
23659 fi
23660 if test "x$mgl_lib_type" = x ; then
23661 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23662 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23663 mgl_lib_type=release
23664 mgl_os=$mgl_os_i
23665 fi
23666 fi
23667 fi
23668 done
23669
23670 if test "x$mgl_os" = x ; then
23671 echo "$as_me:$LINENO: result: not found" >&5
23672echo "${ECHO_T}not found" >&6
23673 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23674echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23675 { (exit 1); exit 1; }; }
23676 fi
23677 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23678echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23679
23680 wxUSE_UNIVERSAL="yes"
23681
23682 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23683 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23684
23685 AFMINSTALL=afminstall
23686 TOOLKIT=MGL
23687 GUIDIST=MGL_DIST
23688 fi
23689
23690 if test "$wxUSE_MICROWIN" = 1; then
23691 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23692echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23693 if test "x$MICROWINDOWS" = x ; then
23694 echo "$as_me:$LINENO: result: not found" >&5
23695echo "${ECHO_T}not found" >&6
23696 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23697echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23698 { (exit 1); exit 1; }; }
23699 else
23700 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23701echo "${ECHO_T}$MICROWINDOWS" >&6
23702 fi
23703
23704 if test -f $MICROWINDOWS/lib/libmwin.a; then
23705 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23706echo "${ECHO_T}MicroWindows' libraries found." >&6
23707 else
23708 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23709echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23710 { (exit 1); exit 1; }; }
23711 fi
23712
23713 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23714 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23715
23716 wxUSE_UNIVERSAL="yes"
23717
23718 AFMINSTALL=afminstall
23719 TOOLKIT=MICROWIN
23720 GUIDIST=MICROWIN_DIST
23721
23722 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23723 fi
23724
74b84332 23725 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
4d4ff94c
VZ
23726
23727if test "x$ac_path_x_has_been_run" != xyes; then
23728 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23729echo $ECHO_N "checking for X... $ECHO_C" >&6
23730
4d4ff94c 23731ac_path_x_has_been_run=yes
a848cd7e
SC
23732
23733# Check whether --with-x or --without-x was given.
23734if test "${with_x+set}" = set; then
23735 withval="$with_x"
23736
23737fi;
23738# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23739if test "x$with_x" = xno; then
23740 # The user explicitly disabled X.
23741 have_x=disabled
23742else
23743 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23744 # Both variables are already set.
23745 have_x=yes
23746 else
23747 if test "${ac_cv_have_x+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23749else
23750 # One or both of the vars are not set, and there is no cached value.
23751ac_x_includes=no ac_x_libraries=no
23752rm -fr conftest.dir
23753if mkdir conftest.dir; then
23754 cd conftest.dir
23755 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23756 cat >Imakefile <<'_ACEOF'
23757acfindx:
23758 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23759_ACEOF
23760 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23762 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23763 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23764 for ac_extension in a so sl; do
23765 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23766 test -f $ac_im_libdir/libX11.$ac_extension; then
23767 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23768 fi
23769 done
23770 # Screen out bogus values from the imake configuration. They are
23771 # bogus both because they are the default anyway, and because
23772 # using them would break gcc on systems where it needs fixed includes.
23773 case $ac_im_incroot in
23774 /usr/include) ;;
23775 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23776 esac
23777 case $ac_im_usrlibdir in
23778 /usr/lib | /lib) ;;
23779 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23780 esac
23781 fi
23782 cd ..
23783 rm -fr conftest.dir
23784fi
23785
23786# Standard set of common directories for X headers.
23787# Check X11 before X11Rn because it is often a symlink to the current release.
23788ac_x_header_dirs='
23789/usr/X11/include
23790/usr/X11R6/include
23791/usr/X11R5/include
23792/usr/X11R4/include
23793
23794/usr/include/X11
23795/usr/include/X11R6
23796/usr/include/X11R5
23797/usr/include/X11R4
23798
23799/usr/local/X11/include
23800/usr/local/X11R6/include
23801/usr/local/X11R5/include
23802/usr/local/X11R4/include
23803
23804/usr/local/include/X11
23805/usr/local/include/X11R6
23806/usr/local/include/X11R5
23807/usr/local/include/X11R4
23808
23809/usr/X386/include
23810/usr/x386/include
23811/usr/XFree86/include/X11
23812
23813/usr/include
23814/usr/local/include
23815/usr/unsupported/include
23816/usr/athena/include
23817/usr/local/x11r5/include
23818/usr/lpp/Xamples/include
23819
23820/usr/openwin/include
23821/usr/openwin/share/include'
23822
23823if test "$ac_x_includes" = no; then
4d4ff94c 23824 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
23825 # First, try using that file with no special directory specified.
23826 cat >conftest.$ac_ext <<_ACEOF
23827/* confdefs.h. */
23828_ACEOF
23829cat confdefs.h >>conftest.$ac_ext
23830cat >>conftest.$ac_ext <<_ACEOF
23831/* end confdefs.h. */
23832#include <X11/Intrinsic.h>
23833_ACEOF
23834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23836 ac_status=$?
23837 grep -v '^ *+' conftest.er1 >conftest.err
23838 rm -f conftest.er1
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } >/dev/null; then
23842 if test -s conftest.err; then
23843 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23845 else
23846 ac_cpp_err=
23847 fi
23848else
23849 ac_cpp_err=yes
23850fi
23851if test -z "$ac_cpp_err"; then
23852 # We can compile using X headers with no special include directory.
23853ac_x_includes=
23854else
23855 echo "$as_me: failed program was:" >&5
23856sed 's/^/| /' conftest.$ac_ext >&5
23857
23858 for ac_dir in $ac_x_header_dirs; do
23859 if test -r "$ac_dir/X11/Intrinsic.h"; then
23860 ac_x_includes=$ac_dir
23861 break
23862 fi
23863done
23864fi
23865rm -f conftest.err conftest.$ac_ext
23866fi # $ac_x_includes = no
23867
23868if test "$ac_x_libraries" = no; then
23869 # Check for the libraries.
23870 # See if we find them without any special options.
23871 # Don't add to $LIBS permanently.
23872 ac_save_LIBS=$LIBS
23873 LIBS="-lXt $LIBS"
23874 cat >conftest.$ac_ext <<_ACEOF
23875/* confdefs.h. */
23876_ACEOF
23877cat confdefs.h >>conftest.$ac_ext
23878cat >>conftest.$ac_ext <<_ACEOF
23879/* end confdefs.h. */
23880#include <X11/Intrinsic.h>
23881int
23882main ()
23883{
23884XtMalloc (0)
23885 ;
23886 return 0;
23887}
23888_ACEOF
23889rm -f conftest.$ac_objext conftest$ac_exeext
23890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23891 (eval $ac_link) 2>conftest.er1
a848cd7e 23892 ac_status=$?
ac1cb8d3
VS
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
a848cd7e
SC
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
4d4ff94c 23898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; } &&
23904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 LIBS=$ac_save_LIBS
23911# We can link X programs with no special library path.
23912ac_x_libraries=
23913else
23914 echo "$as_me: failed program was:" >&5
23915sed 's/^/| /' conftest.$ac_ext >&5
23916
23917LIBS=$ac_save_LIBS
23918for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23919do
23920 # Don't even attempt the hair of trying to link an X program!
23921 for ac_extension in a so sl; do
23922 if test -r $ac_dir/libXt.$ac_extension; then
23923 ac_x_libraries=$ac_dir
23924 break 2
23925 fi
23926 done
23927done
23928fi
ac1cb8d3
VS
23929rm -f conftest.err conftest.$ac_objext \
23930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23931fi # $ac_x_libraries = no
23932
23933if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23934 # Didn't find X anywhere. Cache the known absence of X.
23935 ac_cv_have_x="have_x=no"
23936else
23937 # Record where we found X for the cache.
23938 ac_cv_have_x="have_x=yes \
ac1cb8d3 23939 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
23940fi
23941fi
23942
23943 fi
23944 eval "$ac_cv_have_x"
23945fi # $with_x != no
23946
23947if test "$have_x" != yes; then
23948 echo "$as_me:$LINENO: result: $have_x" >&5
23949echo "${ECHO_T}$have_x" >&6
23950 no_x=yes
23951else
23952 # If each of the values was on the command line, it overrides each guess.
23953 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23954 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23955 # Update the cache value to reflect the command line values.
23956 ac_cv_have_x="have_x=yes \
23957 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4d4ff94c
VZ
23958 # It might be that x_includes is empty (headers are found in the
23959 # standard search path. Then output the corresponding message
23960 ac_out_x_includes=$x_includes
23961 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
23962 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
23963echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
23964fi
23965
4d4ff94c 23966fi
a848cd7e
SC
23967if test "$no_x" = yes; then
23968 # Not all programs may use this symbol, but it does not hurt to define it.
23969
23970cat >>confdefs.h <<\_ACEOF
23971#define X_DISPLAY_MISSING 1
23972_ACEOF
23973
23974 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23975else
23976 if test -n "$x_includes"; then
23977 X_CFLAGS="$X_CFLAGS -I$x_includes"
23978 fi
23979
23980 # It would also be nice to do this for all -L options, not just this one.
23981 if test -n "$x_libraries"; then
23982 X_LIBS="$X_LIBS -L$x_libraries"
23983 # For Solaris; some versions of Sun CC require a space after -R and
23984 # others require no space. Words are not sufficient . . . .
23985 case `(uname -sr) 2>/dev/null` in
23986 "SunOS 5"*)
23987 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23988echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23989 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23990 cat >conftest.$ac_ext <<_ACEOF
23991/* confdefs.h. */
23992_ACEOF
23993cat confdefs.h >>conftest.$ac_ext
23994cat >>conftest.$ac_ext <<_ACEOF
23995/* end confdefs.h. */
23996
23997int
23998main ()
23999{
24000
24001 ;
24002 return 0;
24003}
24004_ACEOF
24005rm -f conftest.$ac_objext conftest$ac_exeext
24006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24007 (eval $ac_link) 2>conftest.er1
a848cd7e 24008 ac_status=$?
ac1cb8d3
VS
24009 grep -v '^ *+' conftest.er1 >conftest.err
24010 rm -f conftest.er1
24011 cat conftest.err >&5
a848cd7e
SC
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } &&
4d4ff94c 24014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; } &&
24020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 ac_R_nospace=yes
24027else
24028 echo "$as_me: failed program was:" >&5
24029sed 's/^/| /' conftest.$ac_ext >&5
24030
24031ac_R_nospace=no
24032fi
ac1cb8d3
VS
24033rm -f conftest.err conftest.$ac_objext \
24034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24035 if test $ac_R_nospace = yes; then
24036 echo "$as_me:$LINENO: result: no" >&5
24037echo "${ECHO_T}no" >&6
24038 X_LIBS="$X_LIBS -R$x_libraries"
24039 else
24040 LIBS="$ac_xsave_LIBS -R $x_libraries"
24041 cat >conftest.$ac_ext <<_ACEOF
24042/* confdefs.h. */
24043_ACEOF
24044cat confdefs.h >>conftest.$ac_ext
24045cat >>conftest.$ac_ext <<_ACEOF
24046/* end confdefs.h. */
24047
24048int
24049main ()
24050{
24051
24052 ;
24053 return 0;
24054}
24055_ACEOF
24056rm -f conftest.$ac_objext conftest$ac_exeext
24057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24058 (eval $ac_link) 2>conftest.er1
a848cd7e 24059 ac_status=$?
ac1cb8d3
VS
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
a848cd7e
SC
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
4d4ff94c 24065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; } &&
24071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; }; then
24077 ac_R_space=yes
24078else
24079 echo "$as_me: failed program was:" >&5
24080sed 's/^/| /' conftest.$ac_ext >&5
24081
24082ac_R_space=no
24083fi
ac1cb8d3
VS
24084rm -f conftest.err conftest.$ac_objext \
24085 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24086 if test $ac_R_space = yes; then
24087 echo "$as_me:$LINENO: result: yes" >&5
24088echo "${ECHO_T}yes" >&6
24089 X_LIBS="$X_LIBS -R $x_libraries"
24090 else
24091 echo "$as_me:$LINENO: result: neither works" >&5
24092echo "${ECHO_T}neither works" >&6
24093 fi
24094 fi
24095 LIBS=$ac_xsave_LIBS
24096 esac
24097 fi
24098
24099 # Check for system-dependent libraries X programs must link with.
24100 # Do this before checking for the system-independent R6 libraries
24101 # (-lICE), since we may need -lsocket or whatever for X linking.
24102
24103 if test "$ISC" = yes; then
24104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24105 else
24106 # Martyn Johnson says this is needed for Ultrix, if the X
24107 # libraries were built with DECnet support. And Karl Berry says
24108 # the Alpha needs dnet_stub (dnet does not exist).
24109 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24110 cat >conftest.$ac_ext <<_ACEOF
24111/* confdefs.h. */
24112_ACEOF
24113cat confdefs.h >>conftest.$ac_ext
24114cat >>conftest.$ac_ext <<_ACEOF
24115/* end confdefs.h. */
24116
24117/* Override any gcc2 internal prototype to avoid an error. */
24118#ifdef __cplusplus
24119extern "C"
24120#endif
24121/* We use char because int might match the return type of a gcc2
24122 builtin and then its argument prototype would still apply. */
24123char XOpenDisplay ();
24124int
24125main ()
24126{
24127XOpenDisplay ();
24128 ;
24129 return 0;
24130}
24131_ACEOF
24132rm -f conftest.$ac_objext conftest$ac_exeext
24133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24134 (eval $ac_link) 2>conftest.er1
a848cd7e 24135 ac_status=$?
ac1cb8d3
VS
24136 grep -v '^ *+' conftest.er1 >conftest.err
24137 rm -f conftest.er1
24138 cat conftest.err >&5
a848cd7e
SC
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } &&
4d4ff94c 24141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24144 ac_status=$?
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); }; } &&
24147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24150 ac_status=$?
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; }; then
24153 :
24154else
24155 echo "$as_me: failed program was:" >&5
24156sed 's/^/| /' conftest.$ac_ext >&5
24157
24158echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24159echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24160if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24161 echo $ECHO_N "(cached) $ECHO_C" >&6
24162else
24163 ac_check_lib_save_LIBS=$LIBS
24164LIBS="-ldnet $LIBS"
24165cat >conftest.$ac_ext <<_ACEOF
24166/* confdefs.h. */
24167_ACEOF
24168cat confdefs.h >>conftest.$ac_ext
24169cat >>conftest.$ac_ext <<_ACEOF
24170/* end confdefs.h. */
24171
24172/* Override any gcc2 internal prototype to avoid an error. */
24173#ifdef __cplusplus
24174extern "C"
24175#endif
24176/* We use char because int might match the return type of a gcc2
24177 builtin and then its argument prototype would still apply. */
24178char dnet_ntoa ();
24179int
24180main ()
24181{
24182dnet_ntoa ();
24183 ;
24184 return 0;
24185}
24186_ACEOF
24187rm -f conftest.$ac_objext conftest$ac_exeext
24188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24189 (eval $ac_link) 2>conftest.er1
a848cd7e 24190 ac_status=$?
ac1cb8d3
VS
24191 grep -v '^ *+' conftest.er1 >conftest.err
24192 rm -f conftest.er1
24193 cat conftest.err >&5
a848cd7e
SC
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); } &&
4d4ff94c 24196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; } &&
24202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; }; then
24208 ac_cv_lib_dnet_dnet_ntoa=yes
24209else
24210 echo "$as_me: failed program was:" >&5
24211sed 's/^/| /' conftest.$ac_ext >&5
24212
24213ac_cv_lib_dnet_dnet_ntoa=no
24214fi
ac1cb8d3
VS
24215rm -f conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24217LIBS=$ac_check_lib_save_LIBS
24218fi
24219echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24220echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24221if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24222 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24223fi
24224
24225 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24226 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24227echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24228if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24230else
24231 ac_check_lib_save_LIBS=$LIBS
24232LIBS="-ldnet_stub $LIBS"
24233cat >conftest.$ac_ext <<_ACEOF
24234/* confdefs.h. */
24235_ACEOF
24236cat confdefs.h >>conftest.$ac_ext
24237cat >>conftest.$ac_ext <<_ACEOF
24238/* end confdefs.h. */
24239
24240/* Override any gcc2 internal prototype to avoid an error. */
24241#ifdef __cplusplus
24242extern "C"
24243#endif
24244/* We use char because int might match the return type of a gcc2
24245 builtin and then its argument prototype would still apply. */
24246char dnet_ntoa ();
24247int
24248main ()
24249{
24250dnet_ntoa ();
24251 ;
24252 return 0;
24253}
24254_ACEOF
24255rm -f conftest.$ac_objext conftest$ac_exeext
24256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24257 (eval $ac_link) 2>conftest.er1
a848cd7e 24258 ac_status=$?
ac1cb8d3
VS
24259 grep -v '^ *+' conftest.er1 >conftest.err
24260 rm -f conftest.er1
24261 cat conftest.err >&5
a848cd7e
SC
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } &&
4d4ff94c 24264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266 (eval $ac_try) 2>&5
24267 ac_status=$?
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); }; } &&
24270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24273 ac_status=$?
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; }; then
24276 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24277else
24278 echo "$as_me: failed program was:" >&5
24279sed 's/^/| /' conftest.$ac_ext >&5
24280
24281ac_cv_lib_dnet_stub_dnet_ntoa=no
24282fi
ac1cb8d3
VS
24283rm -f conftest.err conftest.$ac_objext \
24284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24285LIBS=$ac_check_lib_save_LIBS
24286fi
24287echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24288echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24289if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24290 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24291fi
24292
24293 fi
24294fi
ac1cb8d3
VS
24295rm -f conftest.err conftest.$ac_objext \
24296 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24297 LIBS="$ac_xsave_LIBS"
24298
24299 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24300 # to get the SysV transport functions.
24301 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24302 # needs -lnsl.
24303 # The nsl library prevents programs from opening the X display
24304 # on Irix 5.2, according to T.E. Dickey.
24305 # The functions gethostbyname, getservbyname, and inet_addr are
24306 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24307 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24308echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24309if test "${ac_cv_func_gethostbyname+set}" = set; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24311else
24312 cat >conftest.$ac_ext <<_ACEOF
24313/* confdefs.h. */
24314_ACEOF
24315cat confdefs.h >>conftest.$ac_ext
24316cat >>conftest.$ac_ext <<_ACEOF
24317/* end confdefs.h. */
ac1cb8d3
VS
24318/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24320#define gethostbyname innocuous_gethostbyname
24321
a848cd7e
SC
24322/* System header to define __stub macros and hopefully few prototypes,
24323 which can conflict with char gethostbyname (); below.
24324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24325 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24326
a848cd7e
SC
24327#ifdef __STDC__
24328# include <limits.h>
24329#else
24330# include <assert.h>
24331#endif
ac1cb8d3
VS
24332
24333#undef gethostbyname
24334
a848cd7e
SC
24335/* Override any gcc2 internal prototype to avoid an error. */
24336#ifdef __cplusplus
24337extern "C"
24338{
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 gethostbyname ();
24343/* The GNU C library defines this for functions which it implements
24344 to always fail with ENOSYS. Some functions are actually named
24345 something starting with __ and the normal name is an alias. */
24346#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24347choke me
24348#else
24349char (*f) () = gethostbyname;
24350#endif
24351#ifdef __cplusplus
24352}
24353#endif
24354
24355int
24356main ()
24357{
24358return f != gethostbyname;
24359 ;
24360 return 0;
24361}
24362_ACEOF
24363rm -f conftest.$ac_objext conftest$ac_exeext
24364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24365 (eval $ac_link) 2>conftest.er1
a848cd7e 24366 ac_status=$?
ac1cb8d3
VS
24367 grep -v '^ *+' conftest.er1 >conftest.err
24368 rm -f conftest.er1
24369 cat conftest.err >&5
a848cd7e
SC
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
4d4ff94c 24372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; } &&
24378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24381 ac_status=$?
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; }; then
24384 ac_cv_func_gethostbyname=yes
24385else
24386 echo "$as_me: failed program was:" >&5
24387sed 's/^/| /' conftest.$ac_ext >&5
24388
24389ac_cv_func_gethostbyname=no
24390fi
ac1cb8d3
VS
24391rm -f conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24393fi
24394echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24395echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24396
24397 if test $ac_cv_func_gethostbyname = no; then
24398 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24399echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24400if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24401 echo $ECHO_N "(cached) $ECHO_C" >&6
24402else
24403 ac_check_lib_save_LIBS=$LIBS
24404LIBS="-lnsl $LIBS"
24405cat >conftest.$ac_ext <<_ACEOF
24406/* confdefs.h. */
24407_ACEOF
24408cat confdefs.h >>conftest.$ac_ext
24409cat >>conftest.$ac_ext <<_ACEOF
24410/* end confdefs.h. */
24411
24412/* Override any gcc2 internal prototype to avoid an error. */
24413#ifdef __cplusplus
24414extern "C"
24415#endif
24416/* We use char because int might match the return type of a gcc2
24417 builtin and then its argument prototype would still apply. */
24418char gethostbyname ();
24419int
24420main ()
24421{
24422gethostbyname ();
24423 ;
24424 return 0;
24425}
24426_ACEOF
24427rm -f conftest.$ac_objext conftest$ac_exeext
24428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24429 (eval $ac_link) 2>conftest.er1
24430 ac_status=$?
24431 grep -v '^ *+' conftest.er1 >conftest.err
24432 rm -f conftest.er1
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } &&
4d4ff94c 24436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24439 ac_status=$?
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest$ac_exeext'
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; }; then
24448 ac_cv_lib_nsl_gethostbyname=yes
24449else
24450 echo "$as_me: failed program was:" >&5
24451sed 's/^/| /' conftest.$ac_ext >&5
24452
24453ac_cv_lib_nsl_gethostbyname=no
24454fi
24455rm -f conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext conftest.$ac_ext
24457LIBS=$ac_check_lib_save_LIBS
24458fi
24459echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24460echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24461if test $ac_cv_lib_nsl_gethostbyname = yes; then
24462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24463fi
24464
24465 if test $ac_cv_lib_nsl_gethostbyname = no; then
24466 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24467echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24468if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24470else
24471 ac_check_lib_save_LIBS=$LIBS
24472LIBS="-lbsd $LIBS"
24473cat >conftest.$ac_ext <<_ACEOF
24474/* confdefs.h. */
24475_ACEOF
24476cat confdefs.h >>conftest.$ac_ext
24477cat >>conftest.$ac_ext <<_ACEOF
24478/* end confdefs.h. */
24479
24480/* Override any gcc2 internal prototype to avoid an error. */
24481#ifdef __cplusplus
24482extern "C"
24483#endif
24484/* We use char because int might match the return type of a gcc2
24485 builtin and then its argument prototype would still apply. */
24486char gethostbyname ();
24487int
24488main ()
24489{
24490gethostbyname ();
24491 ;
24492 return 0;
24493}
24494_ACEOF
24495rm -f conftest.$ac_objext conftest$ac_exeext
24496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24497 (eval $ac_link) 2>conftest.er1
a848cd7e 24498 ac_status=$?
ac1cb8d3
VS
24499 grep -v '^ *+' conftest.er1 >conftest.err
24500 rm -f conftest.er1
24501 cat conftest.err >&5
a848cd7e
SC
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } &&
4d4ff94c 24504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24509 (exit $ac_status); }; } &&
24510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512 (eval $ac_try) 2>&5
24513 ac_status=$?
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; }; then
24516 ac_cv_lib_bsd_gethostbyname=yes
24517else
24518 echo "$as_me: failed program was:" >&5
24519sed 's/^/| /' conftest.$ac_ext >&5
24520
24521ac_cv_lib_bsd_gethostbyname=no
24522fi
ac1cb8d3
VS
24523rm -f conftest.err conftest.$ac_objext \
24524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24525LIBS=$ac_check_lib_save_LIBS
24526fi
24527echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24528echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24529if test $ac_cv_lib_bsd_gethostbyname = yes; then
24530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24531fi
24532
24533 fi
24534 fi
24535
24536 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24537 # socket/setsockopt and other routines are undefined under SCO ODT
24538 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24539 # on later versions), says Simon Leinen: it contains gethostby*
24540 # variants that don't use the name server (or something). -lsocket
24541 # must be given before -lnsl if both are needed. We assume that
24542 # if connect needs -lnsl, so does gethostbyname.
24543 echo "$as_me:$LINENO: checking for connect" >&5
24544echo $ECHO_N "checking for connect... $ECHO_C" >&6
24545if test "${ac_cv_func_connect+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24547else
24548 cat >conftest.$ac_ext <<_ACEOF
24549/* confdefs.h. */
24550_ACEOF
24551cat confdefs.h >>conftest.$ac_ext
24552cat >>conftest.$ac_ext <<_ACEOF
24553/* end confdefs.h. */
ac1cb8d3
VS
24554/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24556#define connect innocuous_connect
24557
a848cd7e
SC
24558/* System header to define __stub macros and hopefully few prototypes,
24559 which can conflict with char connect (); below.
24560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24561 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24562
a848cd7e
SC
24563#ifdef __STDC__
24564# include <limits.h>
24565#else
24566# include <assert.h>
24567#endif
ac1cb8d3
VS
24568
24569#undef connect
24570
a848cd7e
SC
24571/* Override any gcc2 internal prototype to avoid an error. */
24572#ifdef __cplusplus
24573extern "C"
24574{
24575#endif
24576/* We use char because int might match the return type of a gcc2
24577 builtin and then its argument prototype would still apply. */
24578char connect ();
24579/* The GNU C library defines this for functions which it implements
24580 to always fail with ENOSYS. Some functions are actually named
24581 something starting with __ and the normal name is an alias. */
24582#if defined (__stub_connect) || defined (__stub___connect)
24583choke me
24584#else
24585char (*f) () = connect;
24586#endif
24587#ifdef __cplusplus
24588}
24589#endif
24590
24591int
24592main ()
24593{
24594return f != connect;
24595 ;
24596 return 0;
24597}
24598_ACEOF
24599rm -f conftest.$ac_objext conftest$ac_exeext
24600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24601 (eval $ac_link) 2>conftest.er1
a848cd7e 24602 ac_status=$?
ac1cb8d3
VS
24603 grep -v '^ *+' conftest.er1 >conftest.err
24604 rm -f conftest.er1
24605 cat conftest.err >&5
a848cd7e
SC
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } &&
4d4ff94c 24608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } &&
24614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620 ac_cv_func_connect=yes
24621else
24622 echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
24625ac_cv_func_connect=no
24626fi
ac1cb8d3
VS
24627rm -f conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24629fi
24630echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24631echo "${ECHO_T}$ac_cv_func_connect" >&6
24632
24633 if test $ac_cv_func_connect = no; then
24634 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24635echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24636if test "${ac_cv_lib_socket_connect+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24638else
24639 ac_check_lib_save_LIBS=$LIBS
24640LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24641cat >conftest.$ac_ext <<_ACEOF
24642/* confdefs.h. */
24643_ACEOF
24644cat confdefs.h >>conftest.$ac_ext
24645cat >>conftest.$ac_ext <<_ACEOF
24646/* end confdefs.h. */
24647
24648/* Override any gcc2 internal prototype to avoid an error. */
24649#ifdef __cplusplus
24650extern "C"
24651#endif
24652/* We use char because int might match the return type of a gcc2
24653 builtin and then its argument prototype would still apply. */
24654char connect ();
24655int
24656main ()
24657{
24658connect ();
24659 ;
24660 return 0;
24661}
24662_ACEOF
24663rm -f conftest.$ac_objext conftest$ac_exeext
24664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24665 (eval $ac_link) 2>conftest.er1
a848cd7e 24666 ac_status=$?
ac1cb8d3
VS
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
a848cd7e
SC
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
4d4ff94c 24672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } &&
24678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680 (eval $ac_try) 2>&5
24681 ac_status=$?
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 ac_cv_lib_socket_connect=yes
24685else
24686 echo "$as_me: failed program was:" >&5
24687sed 's/^/| /' conftest.$ac_ext >&5
24688
24689ac_cv_lib_socket_connect=no
24690fi
ac1cb8d3
VS
24691rm -f conftest.err conftest.$ac_objext \
24692 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24693LIBS=$ac_check_lib_save_LIBS
24694fi
24695echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24696echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24697if test $ac_cv_lib_socket_connect = yes; then
24698 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24699fi
24700
24701 fi
24702
24703 # Guillermo Gomez says -lposix is necessary on A/UX.
24704 echo "$as_me:$LINENO: checking for remove" >&5
24705echo $ECHO_N "checking for remove... $ECHO_C" >&6
24706if test "${ac_cv_func_remove+set}" = set; then
24707 echo $ECHO_N "(cached) $ECHO_C" >&6
24708else
24709 cat >conftest.$ac_ext <<_ACEOF
24710/* confdefs.h. */
24711_ACEOF
24712cat confdefs.h >>conftest.$ac_ext
24713cat >>conftest.$ac_ext <<_ACEOF
24714/* end confdefs.h. */
ac1cb8d3
VS
24715/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24717#define remove innocuous_remove
24718
a848cd7e
SC
24719/* System header to define __stub macros and hopefully few prototypes,
24720 which can conflict with char remove (); below.
24721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24722 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24723
a848cd7e
SC
24724#ifdef __STDC__
24725# include <limits.h>
24726#else
24727# include <assert.h>
24728#endif
ac1cb8d3
VS
24729
24730#undef remove
24731
a848cd7e
SC
24732/* Override any gcc2 internal prototype to avoid an error. */
24733#ifdef __cplusplus
24734extern "C"
24735{
24736#endif
24737/* We use char because int might match the return type of a gcc2
24738 builtin and then its argument prototype would still apply. */
24739char remove ();
24740/* The GNU C library defines this for functions which it implements
24741 to always fail with ENOSYS. Some functions are actually named
24742 something starting with __ and the normal name is an alias. */
24743#if defined (__stub_remove) || defined (__stub___remove)
24744choke me
24745#else
24746char (*f) () = remove;
24747#endif
24748#ifdef __cplusplus
24749}
24750#endif
24751
24752int
24753main ()
24754{
24755return f != remove;
24756 ;
24757 return 0;
24758}
24759_ACEOF
24760rm -f conftest.$ac_objext conftest$ac_exeext
24761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24762 (eval $ac_link) 2>conftest.er1
a848cd7e 24763 ac_status=$?
ac1cb8d3
VS
24764 grep -v '^ *+' conftest.er1 >conftest.err
24765 rm -f conftest.er1
24766 cat conftest.err >&5
a848cd7e
SC
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } &&
4d4ff94c 24769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); }; } &&
24775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 ac_cv_func_remove=yes
24782else
24783 echo "$as_me: failed program was:" >&5
24784sed 's/^/| /' conftest.$ac_ext >&5
24785
24786ac_cv_func_remove=no
24787fi
ac1cb8d3
VS
24788rm -f conftest.err conftest.$ac_objext \
24789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24790fi
24791echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24792echo "${ECHO_T}$ac_cv_func_remove" >&6
24793
24794 if test $ac_cv_func_remove = no; then
24795 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24796echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24797if test "${ac_cv_lib_posix_remove+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24799else
24800 ac_check_lib_save_LIBS=$LIBS
24801LIBS="-lposix $LIBS"
24802cat >conftest.$ac_ext <<_ACEOF
24803/* confdefs.h. */
24804_ACEOF
24805cat confdefs.h >>conftest.$ac_ext
24806cat >>conftest.$ac_ext <<_ACEOF
24807/* end confdefs.h. */
24808
24809/* Override any gcc2 internal prototype to avoid an error. */
24810#ifdef __cplusplus
24811extern "C"
24812#endif
24813/* We use char because int might match the return type of a gcc2
24814 builtin and then its argument prototype would still apply. */
24815char remove ();
24816int
24817main ()
24818{
24819remove ();
24820 ;
24821 return 0;
24822}
24823_ACEOF
24824rm -f conftest.$ac_objext conftest$ac_exeext
24825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24826 (eval $ac_link) 2>conftest.er1
a848cd7e 24827 ac_status=$?
ac1cb8d3
VS
24828 grep -v '^ *+' conftest.er1 >conftest.err
24829 rm -f conftest.er1
24830 cat conftest.err >&5
a848cd7e
SC
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } &&
4d4ff94c 24833 { ac_try='test -z "$ac_c_werror_flag" || 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_posix_remove=yes
24846else
24847 echo "$as_me: failed program was:" >&5
24848sed 's/^/| /' conftest.$ac_ext >&5
24849
24850ac_cv_lib_posix_remove=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_posix_remove" >&5
24857echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24858if test $ac_cv_lib_posix_remove = yes; then
24859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24860fi
24861
24862 fi
24863
24864 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24865 echo "$as_me:$LINENO: checking for shmat" >&5
24866echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24867if test "${ac_cv_func_shmat+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24869else
24870 cat >conftest.$ac_ext <<_ACEOF
24871/* confdefs.h. */
24872_ACEOF
24873cat confdefs.h >>conftest.$ac_ext
24874cat >>conftest.$ac_ext <<_ACEOF
24875/* end confdefs.h. */
ac1cb8d3
VS
24876/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24878#define shmat innocuous_shmat
24879
a848cd7e
SC
24880/* System header to define __stub macros and hopefully few prototypes,
24881 which can conflict with char shmat (); below.
24882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24883 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24884
a848cd7e
SC
24885#ifdef __STDC__
24886# include <limits.h>
24887#else
24888# include <assert.h>
24889#endif
ac1cb8d3
VS
24890
24891#undef shmat
24892
a848cd7e
SC
24893/* Override any gcc2 internal prototype to avoid an error. */
24894#ifdef __cplusplus
24895extern "C"
24896{
24897#endif
24898/* We use char because int might match the return type of a gcc2
24899 builtin and then its argument prototype would still apply. */
24900char shmat ();
24901/* The GNU C library defines this for functions which it implements
24902 to always fail with ENOSYS. Some functions are actually named
24903 something starting with __ and the normal name is an alias. */
24904#if defined (__stub_shmat) || defined (__stub___shmat)
24905choke me
24906#else
24907char (*f) () = shmat;
24908#endif
24909#ifdef __cplusplus
24910}
24911#endif
24912
24913int
24914main ()
24915{
24916return f != shmat;
24917 ;
24918 return 0;
24919}
24920_ACEOF
24921rm -f conftest.$ac_objext conftest$ac_exeext
24922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24923 (eval $ac_link) 2>conftest.er1
a848cd7e 24924 ac_status=$?
ac1cb8d3
VS
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
a848cd7e
SC
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
4d4ff94c 24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; } &&
24936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24942 ac_cv_func_shmat=yes
24943else
24944 echo "$as_me: failed program was:" >&5
24945sed 's/^/| /' conftest.$ac_ext >&5
24946
24947ac_cv_func_shmat=no
24948fi
ac1cb8d3
VS
24949rm -f conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24951fi
24952echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24953echo "${ECHO_T}$ac_cv_func_shmat" >&6
24954
24955 if test $ac_cv_func_shmat = no; then
24956 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24957echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24958if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24960else
24961 ac_check_lib_save_LIBS=$LIBS
24962LIBS="-lipc $LIBS"
24963cat >conftest.$ac_ext <<_ACEOF
24964/* confdefs.h. */
24965_ACEOF
24966cat confdefs.h >>conftest.$ac_ext
24967cat >>conftest.$ac_ext <<_ACEOF
24968/* end confdefs.h. */
24969
24970/* Override any gcc2 internal prototype to avoid an error. */
24971#ifdef __cplusplus
24972extern "C"
24973#endif
24974/* We use char because int might match the return type of a gcc2
24975 builtin and then its argument prototype would still apply. */
24976char shmat ();
24977int
24978main ()
24979{
24980shmat ();
24981 ;
24982 return 0;
24983}
24984_ACEOF
24985rm -f conftest.$ac_objext conftest$ac_exeext
24986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24987 (eval $ac_link) 2>conftest.er1
a848cd7e 24988 ac_status=$?
ac1cb8d3
VS
24989 grep -v '^ *+' conftest.er1 >conftest.err
24990 rm -f conftest.er1
24991 cat conftest.err >&5
a848cd7e
SC
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } &&
4d4ff94c 24994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; } &&
25000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_cv_lib_ipc_shmat=yes
25007else
25008 echo "$as_me: failed program was:" >&5
25009sed 's/^/| /' conftest.$ac_ext >&5
25010
25011ac_cv_lib_ipc_shmat=no
25012fi
ac1cb8d3
VS
25013rm -f conftest.err conftest.$ac_objext \
25014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25015LIBS=$ac_check_lib_save_LIBS
25016fi
25017echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25018echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25019if test $ac_cv_lib_ipc_shmat = yes; then
25020 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25021fi
25022
25023 fi
25024 fi
25025
25026 # Check for libraries that X11R6 Xt/Xaw programs need.
25027 ac_save_LDFLAGS=$LDFLAGS
25028 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25029 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25030 # check for ICE first), but we must link in the order -lSM -lICE or
25031 # we get undefined symbols. So assume we have SM if we have ICE.
25032 # These have to be linked with before -lX11, unlike the other
25033 # libraries we check for below, so use a different variable.
25034 # John Interrante, Karl Berry
25035 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25036echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25037if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25039else
25040 ac_check_lib_save_LIBS=$LIBS
25041LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25042cat >conftest.$ac_ext <<_ACEOF
25043/* confdefs.h. */
25044_ACEOF
25045cat confdefs.h >>conftest.$ac_ext
25046cat >>conftest.$ac_ext <<_ACEOF
25047/* end confdefs.h. */
25048
25049/* Override any gcc2 internal prototype to avoid an error. */
25050#ifdef __cplusplus
25051extern "C"
25052#endif
25053/* We use char because int might match the return type of a gcc2
25054 builtin and then its argument prototype would still apply. */
25055char IceConnectionNumber ();
25056int
25057main ()
25058{
25059IceConnectionNumber ();
25060 ;
25061 return 0;
25062}
25063_ACEOF
25064rm -f conftest.$ac_objext conftest$ac_exeext
25065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25066 (eval $ac_link) 2>conftest.er1
a848cd7e 25067 ac_status=$?
ac1cb8d3
VS
25068 grep -v '^ *+' conftest.er1 >conftest.err
25069 rm -f conftest.er1
25070 cat conftest.err >&5
a848cd7e
SC
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } &&
4d4ff94c 25073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; } &&
25079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); }; }; then
25085 ac_cv_lib_ICE_IceConnectionNumber=yes
25086else
25087 echo "$as_me: failed program was:" >&5
25088sed 's/^/| /' conftest.$ac_ext >&5
25089
25090ac_cv_lib_ICE_IceConnectionNumber=no
25091fi
ac1cb8d3
VS
25092rm -f conftest.err conftest.$ac_objext \
25093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25094LIBS=$ac_check_lib_save_LIBS
25095fi
25096echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25097echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25098if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25099 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25100fi
25101
25102 LDFLAGS=$ac_save_LDFLAGS
25103
25104fi
25105
25106
25107 if test "$no_x" = "yes"; then
25108 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25109echo "$as_me: error: X11 not found" >&2;}
25110 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25111 fi
25112
74b84332
VS
25113 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25114 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25115 AFMINSTALL=afminstall
25116 COMPILED_X_PROGRAM=0
25117
74b84332
VS
25118 fi
25119
25120 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25121 if test "$wxUSE_NANOX" = "yes"; then
25122 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25123echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25124 if test "x$MICROWIN" = x ; then
25125 echo "$as_me:$LINENO: result: not found" >&5
25126echo "${ECHO_T}not found" >&6
25127 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25128echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25129 { (exit 1); exit 1; }; }
25130 else
25131 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25132echo "${ECHO_T}$MICROWIN" >&6
25133 cat >>confdefs.h <<\_ACEOF
25134#define wxUSE_NANOX 1
25135_ACEOF
25136
25137 fi
25138 fi
25139
25140 if test "$wxUSE_UNICODE" = "yes"; then
25141
25142 succeeded=no
25143
25144 if test -z "$PKG_CONFIG"; then
25145 # Extract the first word of "pkg-config", so it can be a program name with args.
25146set dummy pkg-config; ac_word=$2
25147echo "$as_me:$LINENO: checking for $ac_word" >&5
25148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25149if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25151else
25152 case $PKG_CONFIG in
25153 [\\/]* | ?:[\\/]*)
25154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25155 ;;
25156 *)
25157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25158for as_dir in $PATH
25159do
25160 IFS=$as_save_IFS
25161 test -z "$as_dir" && as_dir=.
25162 for ac_exec_ext in '' $ac_executable_extensions; do
25163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25166 break 2
25167 fi
25168done
25169done
25170
25171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25172 ;;
25173esac
25174fi
25175PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25176
25177if test -n "$PKG_CONFIG"; then
25178 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25179echo "${ECHO_T}$PKG_CONFIG" >&6
25180else
25181 echo "$as_me:$LINENO: result: no" >&5
25182echo "${ECHO_T}no" >&6
25183fi
25184
25185 fi
25186
25187 if test "$PKG_CONFIG" = "no" ; then
25188 echo "*** The pkg-config script could not be found. Make sure it is"
25189 echo "*** in your path, or set the PKG_CONFIG environment variable"
25190 echo "*** to the full path to pkg-config."
25191 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25192 else
25193 PKG_CONFIG_MIN_VERSION=0.9.0
25194 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25195 echo "$as_me:$LINENO: checking for pangox" >&5
25196echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25197
25198 if $PKG_CONFIG --exists "pangox" ; then
25199 echo "$as_me:$LINENO: result: yes" >&5
25200echo "${ECHO_T}yes" >&6
25201 succeeded=yes
25202
25203 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25204echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25205 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25206 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25207echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25208
25209 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25210echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25211 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25212 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25213echo "${ECHO_T}$PANGOX_LIBS" >&6
25214 else
25215 PANGOX_CFLAGS=""
25216 PANGOX_LIBS=""
25217 ## If we have a custom action on failure, don't print errors, but
25218 ## do set a variable so people can do so.
25219 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25220
25221 fi
25222
25223
25224
25225 else
25226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25228 fi
25229 fi
25230
25231 if test $succeeded = yes; then
25232
25233 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25235
25236 else
25237
25238 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25239echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25240 { (exit 1); exit 1; }; }
25241
25242
25243 fi
25244
25245
25246 succeeded=no
25247
25248 if test -z "$PKG_CONFIG"; then
25249 # Extract the first word of "pkg-config", so it can be a program name with args.
25250set dummy pkg-config; ac_word=$2
25251echo "$as_me:$LINENO: checking for $ac_word" >&5
25252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25253if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25255else
25256 case $PKG_CONFIG in
25257 [\\/]* | ?:[\\/]*)
25258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25259 ;;
25260 *)
25261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25262for as_dir in $PATH
25263do
25264 IFS=$as_save_IFS
25265 test -z "$as_dir" && as_dir=.
25266 for ac_exec_ext in '' $ac_executable_extensions; do
25267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25270 break 2
25271 fi
25272done
25273done
25274
25275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25276 ;;
25277esac
25278fi
25279PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25280
25281if test -n "$PKG_CONFIG"; then
25282 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25283echo "${ECHO_T}$PKG_CONFIG" >&6
25284else
25285 echo "$as_me:$LINENO: result: no" >&5
25286echo "${ECHO_T}no" >&6
25287fi
25288
25289 fi
25290
25291 if test "$PKG_CONFIG" = "no" ; then
25292 echo "*** The pkg-config script could not be found. Make sure it is"
25293 echo "*** in your path, or set the PKG_CONFIG environment variable"
25294 echo "*** to the full path to pkg-config."
25295 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25296 else
25297 PKG_CONFIG_MIN_VERSION=0.9.0
25298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25299 echo "$as_me:$LINENO: checking for pangoft2" >&5
25300echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25301
25302 if $PKG_CONFIG --exists "pangoft2" ; then
25303 echo "$as_me:$LINENO: result: yes" >&5
25304echo "${ECHO_T}yes" >&6
25305 succeeded=yes
25306
25307 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25308echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25309 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25310 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25311echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25312
25313 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25314echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25315 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25316 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25317echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25318 else
25319 PANGOFT2_CFLAGS=""
25320 PANGOFT2_LIBS=""
25321 ## If we have a custom action on failure, don't print errors, but
25322 ## do set a variable so people can do so.
25323 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25324
25325 fi
25326
25327
25328
25329 else
25330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25332 fi
25333 fi
25334
25335 if test $succeeded = yes; then
25336
25337 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25338 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25339
25340 else
25341
25342 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25343echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25344 wxUSE_PRINTING_ARCHITECTURE="no"
25345
25346
25347 fi
25348
25349
25350 succeeded=no
25351
25352 if test -z "$PKG_CONFIG"; then
25353 # Extract the first word of "pkg-config", so it can be a program name with args.
25354set dummy pkg-config; ac_word=$2
25355echo "$as_me:$LINENO: checking for $ac_word" >&5
25356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25357if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25359else
25360 case $PKG_CONFIG in
25361 [\\/]* | ?:[\\/]*)
25362 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25363 ;;
25364 *)
25365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25366for as_dir in $PATH
25367do
25368 IFS=$as_save_IFS
25369 test -z "$as_dir" && as_dir=.
25370 for ac_exec_ext in '' $ac_executable_extensions; do
25371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25372 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25374 break 2
25375 fi
25376done
25377done
25378
25379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25380 ;;
25381esac
25382fi
25383PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25384
25385if test -n "$PKG_CONFIG"; then
25386 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25387echo "${ECHO_T}$PKG_CONFIG" >&6
25388else
25389 echo "$as_me:$LINENO: result: no" >&5
25390echo "${ECHO_T}no" >&6
25391fi
25392
25393 fi
25394
25395 if test "$PKG_CONFIG" = "no" ; then
25396 echo "*** The pkg-config script could not be found. Make sure it is"
25397 echo "*** in your path, or set the PKG_CONFIG environment variable"
25398 echo "*** to the full path to pkg-config."
25399 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25400 else
25401 PKG_CONFIG_MIN_VERSION=0.9.0
25402 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25403 echo "$as_me:$LINENO: checking for pangoxft" >&5
25404echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25405
25406 if $PKG_CONFIG --exists "pangoxft" ; then
25407 echo "$as_me:$LINENO: result: yes" >&5
25408echo "${ECHO_T}yes" >&6
25409 succeeded=yes
25410
25411 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25412echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25413 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25414 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25415echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25416
25417 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25418echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25419 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25420 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25421echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25422 else
25423 PANGOXFT_CFLAGS=""
25424 PANGOXFT_LIBS=""
25425 ## If we have a custom action on failure, don't print errors, but
25426 ## do set a variable so people can do so.
25427 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25428
25429 fi
25430
25431
25432
25433 else
25434 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25435 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25436 fi
25437 fi
25438
25439 if test $succeeded = yes; then
25440
25441 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25442 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25443
25444 else
25445
25446 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25447echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25448
25449
25450 fi
25451
304205f1
VS
25452 save_CFLAGS="$CFLAGS"
25453 save_LIBS="$LIBS"
25454 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25455 LIBS="$LIBS $PANGOX_LIBS"
25456
25457for ac_func in pango_font_family_is_monospace
25458do
25459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25460echo "$as_me:$LINENO: checking for $ac_func" >&5
25461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25462if eval "test \"\${$as_ac_var+set}\" = set"; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25464else
25465 cat >conftest.$ac_ext <<_ACEOF
25466/* confdefs.h. */
25467_ACEOF
25468cat confdefs.h >>conftest.$ac_ext
25469cat >>conftest.$ac_ext <<_ACEOF
25470/* end confdefs.h. */
25471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25473#define $ac_func innocuous_$ac_func
25474
25475/* System header to define __stub macros and hopefully few prototypes,
25476 which can conflict with char $ac_func (); below.
25477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25478 <limits.h> exists even on freestanding compilers. */
25479
25480#ifdef __STDC__
25481# include <limits.h>
25482#else
25483# include <assert.h>
25484#endif
25485
25486#undef $ac_func
25487
25488/* Override any gcc2 internal prototype to avoid an error. */
25489#ifdef __cplusplus
25490extern "C"
25491{
25492#endif
25493/* We use char because int might match the return type of a gcc2
25494 builtin and then its argument prototype would still apply. */
25495char $ac_func ();
25496/* The GNU C library defines this for functions which it implements
25497 to always fail with ENOSYS. Some functions are actually named
25498 something starting with __ and the normal name is an alias. */
25499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25500choke me
25501#else
25502char (*f) () = $ac_func;
25503#endif
25504#ifdef __cplusplus
25505}
25506#endif
25507
25508int
25509main ()
25510{
25511return f != $ac_func;
25512 ;
25513 return 0;
25514}
25515_ACEOF
25516rm -f conftest.$ac_objext conftest$ac_exeext
25517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25518 (eval $ac_link) 2>conftest.er1
25519 ac_status=$?
25520 grep -v '^ *+' conftest.er1 >conftest.err
25521 rm -f conftest.er1
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
4d4ff94c 25525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; } &&
25531 { ac_try='test -s conftest$ac_exeext'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; }; then
25537 eval "$as_ac_var=yes"
25538else
25539 echo "$as_me: failed program was:" >&5
25540sed 's/^/| /' conftest.$ac_ext >&5
25541
25542eval "$as_ac_var=no"
25543fi
25544rm -f conftest.err conftest.$ac_objext \
25545 conftest$ac_exeext conftest.$ac_ext
25546fi
25547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25549if test `eval echo '${'$as_ac_var'}'` = yes; then
25550 cat >>confdefs.h <<_ACEOF
25551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25552_ACEOF
25553
25554fi
25555done
25556
25557 CFLAGS="$save_CFLAGS"
25558 LIBS="$save_LIBS"
a848cd7e
SC
25559 fi
25560
25561 wxUSE_UNIVERSAL="yes"
25562
25563 if test "$wxUSE_NANOX" = "yes"; then
25564 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25565 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"
25566 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25567 else
25568 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25569 fi
25570
25571 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25572 TOOLKIT=X11
25573 GUIDIST=X11_DIST
25574 fi
25575
25576 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25577 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25578echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25579
74b84332
VS
25580ac_find_includes=
25581for ac_dir in $SEARCH_INCLUDE /usr/include;
25582 do
25583 if test -f "$ac_dir/Xm/Xm.h"; then
25584 ac_find_includes=$ac_dir
25585 break
25586 fi
25587 done
a848cd7e 25588
74b84332
VS
25589 if test "$ac_find_includes" != "" ; then
25590 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25591echo "${ECHO_T}found in $ac_find_includes" >&6
25592
25593 if test "x$ac_find_includes" = "x/usr/include"; then
25594 ac_path_to_include=""
25595 else
25596 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25597 result=$?
25598 if test $result = 0; then
25599 ac_path_to_include=""
25600 else
25601 ac_path_to_include=" -I$ac_find_includes"
25602 fi
a848cd7e
SC
25603 fi
25604
74b84332
VS
25605 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25606 else
25607 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25608/* confdefs.h. */
25609_ACEOF
25610cat confdefs.h >>conftest.$ac_ext
25611cat >>conftest.$ac_ext <<_ACEOF
25612/* end confdefs.h. */
25613
74b84332
VS
25614 #include <Xm/Xm.h>
25615
a848cd7e
SC
25616int
25617main ()
25618{
25619
74b84332
VS
25620 int version;
25621 version = xmUseVersion;
25622
a848cd7e
SC
25623 ;
25624 return 0;
25625}
25626_ACEOF
74b84332
VS
25627rm -f conftest.$ac_objext
25628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25629 (eval $ac_compile) 2>conftest.er1
a848cd7e 25630 ac_status=$?
ac1cb8d3
VS
25631 grep -v '^ *+' conftest.er1 >conftest.err
25632 rm -f conftest.er1
25633 cat conftest.err >&5
a848cd7e
SC
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); } &&
4d4ff94c 25636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25638 (eval $ac_try) 2>&5
25639 ac_status=$?
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); }; } &&
74b84332 25642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644 (eval $ac_try) 2>&5
25645 ac_status=$?
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; }; then
74b84332
VS
25648
25649 echo "$as_me:$LINENO: result: found in default search path" >&5
25650echo "${ECHO_T}found in default search path" >&6
25651 COMPILED_X_PROGRAM=1
25652
a848cd7e
SC
25653else
25654 echo "$as_me: failed program was:" >&5
25655sed 's/^/| /' conftest.$ac_ext >&5
25656
a848cd7e 25657
74b84332
VS
25658 echo "$as_me:$LINENO: result: no" >&5
25659echo "${ECHO_T}no" >&6
25660 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25661echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25662 { (exit 1); exit 1; }; }
a848cd7e 25663
a848cd7e 25664
a848cd7e 25665fi
74b84332
VS
25666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25667 fi
25668
25669 if test "$COMPILED_X_PROGRAM" = 0; then
25670 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25671echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25672
25673ac_find_libraries=
25674for ac_dir in $SEARCH_LIB /usr/lib;
25675 do
25676 for ac_extension in a so sl dylib; do
25677 if test -f "$ac_dir/libXm.$ac_extension"; then
25678 ac_find_libraries=$ac_dir
25679 break 2
a848cd7e 25680 fi
74b84332
VS
25681 done
25682 done
a848cd7e 25683
74b84332
VS
25684 if test "$ac_find_libraries" != "" ; then
25685 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25686echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25687
74b84332
VS
25688
25689 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25690 result=$?
25691 if test $result = 0; then
25692 ac_path_to_link=""
a848cd7e 25693 else
74b84332
VS
25694 ac_path_to_link=" -L$ac_find_libraries"
25695 fi
25696
25697 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25698 else
25699 save_CFLAGS=$CFLAGS
25700 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25701
25702 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25703/* confdefs.h. */
25704_ACEOF
25705cat confdefs.h >>conftest.$ac_ext
25706cat >>conftest.$ac_ext <<_ACEOF
25707/* end confdefs.h. */
25708
74b84332
VS
25709 #include <Xm/Xm.h>
25710
a848cd7e
SC
25711int
25712main ()
25713{
74b84332
VS
25714
25715 int version;
25716 version = xmUseVersion;
25717
a848cd7e
SC
25718 ;
25719 return 0;
25720}
25721_ACEOF
74b84332
VS
25722rm -f conftest.$ac_objext
25723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25724 (eval $ac_compile) 2>conftest.er1
a848cd7e 25725 ac_status=$?
ac1cb8d3
VS
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
a848cd7e
SC
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
4d4ff94c 25731 { ac_try='test -z "$ac_c_werror_flag" || 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); }; } &&
74b84332 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
74b84332
VS
25743
25744 echo "$as_me:$LINENO: result: found in default search path" >&5
25745echo "${ECHO_T}found in default search path" >&6
25746 COMPILED_X_PROGRAM=1
25747
a848cd7e
SC
25748else
25749 echo "$as_me: failed program was:" >&5
25750sed 's/^/| /' conftest.$ac_ext >&5
25751
74b84332
VS
25752
25753 echo "$as_me:$LINENO: result: no" >&5
25754echo "${ECHO_T}no" >&6
25755 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25756echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25757 { (exit 1); exit 1; }; }
25758
25759
25760fi
25761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25762
25763 CFLAGS=$save_CFLAGS
25764 fi
25765 fi
25766
25767 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25768echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25769 libp_link=""
25770 libsm_ice_link=""
25771 libs_found=0
25772 for libp in "" " -lXp"; do
25773 if test "$libs_found" = "0"; then
25774 for libsm_ice in "" " -lSM -lICE"; do
25775 if test "$libs_found" = "0"; then
25776 save_LIBS="$LIBS"
25777 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25778 save_CFLAGS=$CFLAGS
25779 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25780
25781 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25782/* confdefs.h. */
25783_ACEOF
25784cat confdefs.h >>conftest.$ac_ext
25785cat >>conftest.$ac_ext <<_ACEOF
25786/* end confdefs.h. */
25787
74b84332
VS
25788 #include <Xm/Xm.h>
25789 #include <Xm/List.h>
25790
a848cd7e
SC
25791int
25792main ()
25793{
74b84332
VS
25794
25795 XmString string = NULL;
25796 Widget w = NULL;
25797 int position = 0;
25798 XmListAddItem(w, string, position);
25799
a848cd7e
SC
25800 ;
25801 return 0;
25802}
25803_ACEOF
25804rm -f conftest.$ac_objext conftest$ac_exeext
25805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25806 (eval $ac_link) 2>conftest.er1
a848cd7e 25807 ac_status=$?
ac1cb8d3
VS
25808 grep -v '^ *+' conftest.er1 >conftest.err
25809 rm -f conftest.er1
25810 cat conftest.err >&5
a848cd7e
SC
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } &&
4d4ff94c 25813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); }; } &&
25819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); }; }; then
25825
25826 libp_link="$libp"
25827 libsm_ice_link="$libsm_ice"
25828 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25829echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25830 libs_found=1
25831
25832else
25833 echo "$as_me: failed program was:" >&5
25834sed 's/^/| /' conftest.$ac_ext >&5
25835
25836
25837
25838fi
ac1cb8d3
VS
25839rm -f conftest.err conftest.$ac_objext \
25840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25841
25842 LIBS="$save_LIBS"
25843 CFLAGS=$save_CFLAGS
25844 fi
25845 done
25846 fi
25847 done
25848
25849 if test "$libs_found" = "0"; then
25850 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25851echo "${ECHO_T}can't find the right libraries" >&6
25852 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25853echo "$as_me: error: can't link a simple motif program" >&2;}
25854 { (exit 1); exit 1; }; }
25855 fi
25856
25857 save_CFLAGS=$CFLAGS
25858 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25859 echo "$as_me:$LINENO: checking for Motif 2" >&5
25860echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25861 cat >conftest.$ac_ext <<_ACEOF
25862/* confdefs.h. */
25863_ACEOF
25864cat confdefs.h >>conftest.$ac_ext
25865cat >>conftest.$ac_ext <<_ACEOF
25866/* end confdefs.h. */
25867
25868 #include <Xm/Xm.h>
25869
25870int
25871main ()
25872{
25873
25874 #if XmVersion < 2000
25875 #error "Not Motif 2"
25876 #endif
25877
25878 ;
25879 return 0;
25880}
25881_ACEOF
25882rm -f conftest.$ac_objext
25883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25884 (eval $ac_compile) 2>conftest.er1
a848cd7e 25885 ac_status=$?
ac1cb8d3
VS
25886 grep -v '^ *+' conftest.er1 >conftest.err
25887 rm -f conftest.er1
25888 cat conftest.err >&5
a848cd7e
SC
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); } &&
4d4ff94c 25891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893 (eval $ac_try) 2>&5
25894 ac_status=$?
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); }; } &&
25897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; }; then
25903
25904 cat >>confdefs.h <<\_ACEOF
25905#define __WXMOTIF20__ 1
25906_ACEOF
25907
25908 echo "$as_me:$LINENO: result: found" >&5
25909echo "${ECHO_T}found" >&6
25910
25911else
25912 echo "$as_me: failed program was:" >&5
25913sed 's/^/| /' conftest.$ac_ext >&5
25914
25915
25916 cat >>confdefs.h <<\_ACEOF
25917#define __WXMOTIF20__ 0
25918_ACEOF
25919
25920 echo "$as_me:$LINENO: result: not found" >&5
25921echo "${ECHO_T}not found" >&6
25922
25923fi
ac1cb8d3 25924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25925 CFLAGS=$save_CFLAGS
25926
25927 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25928 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25929 TOOLKIT=MOTIF
25930 GUIDIST=MOTIF_DIST
25931 fi
25932
74b84332 25933 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
25934 if test "$wxUSE_LIBXPM" = "sys"; then
25935 echo "$as_me:$LINENO: checking for Xpm library" >&5
25936echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25937
25938ac_find_libraries=
25939for ac_dir in $SEARCH_LIB /usr/lib;
25940 do
25941 for ac_extension in a so sl dylib; do
25942 if test -f "$ac_dir/libXpm.$ac_extension"; then
25943 ac_find_libraries=$ac_dir
25944 break 2
25945 fi
25946 done
25947 done
25948
25949 if test "$ac_find_libraries" != "" ; then
25950
25951 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25952 result=$?
25953 if test $result = 0; then
25954 ac_path_to_link=""
25955 else
25956 ac_path_to_link=" -L$ac_find_libraries"
25957 fi
25958
25959 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25960 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25961echo "${ECHO_T}found at $ac_find_libraries" >&6
25962
25963 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25964echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25965if test "${wx_cv_x11_xpm_h+set}" = set; then
25966 echo $ECHO_N "(cached) $ECHO_C" >&6
25967else
25968
25969 save_CFLAGS=$CFLAGS
25970 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25971
25972 cat >conftest.$ac_ext <<_ACEOF
25973/* confdefs.h. */
25974_ACEOF
25975cat confdefs.h >>conftest.$ac_ext
25976cat >>conftest.$ac_ext <<_ACEOF
25977/* end confdefs.h. */
25978
25979 #include <X11/xpm.h>
25980
25981int
25982main ()
25983{
25984
25985 int version;
25986 version = XpmLibraryVersion();
25987
25988 ;
25989 return 0;
25990}
25991_ACEOF
25992rm -f conftest.$ac_objext
25993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25994 (eval $ac_compile) 2>conftest.er1
a848cd7e 25995 ac_status=$?
ac1cb8d3
VS
25996 grep -v '^ *+' conftest.er1 >conftest.err
25997 rm -f conftest.er1
25998 cat conftest.err >&5
a848cd7e
SC
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } &&
4d4ff94c 26001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; } &&
26007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; }; then
26013 wx_cv_x11_xpm_h=yes
26014else
26015 echo "$as_me: failed program was:" >&5
26016sed 's/^/| /' conftest.$ac_ext >&5
26017
26018wx_cv_x11_xpm_h=no
26019
26020fi
ac1cb8d3 26021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26022
26023 CFLAGS=$save_CFLAGS
26024
26025
26026fi
26027echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26028echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26029
26030 if test $wx_cv_x11_xpm_h = "yes"; then
26031 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26032 cat >>confdefs.h <<\_ACEOF
26033#define wxHAVE_LIB_XPM 1
26034_ACEOF
26035
26036 else
26037 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26038echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26039 fi
26040 fi
26041
26042 fi
26043
26044 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26045echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26046if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26048else
26049 ac_check_lib_save_LIBS=$LIBS
26050LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26051cat >conftest.$ac_ext <<_ACEOF
26052/* confdefs.h. */
26053_ACEOF
26054cat confdefs.h >>conftest.$ac_ext
26055cat >>conftest.$ac_ext <<_ACEOF
26056/* end confdefs.h. */
26057
26058/* Override any gcc2 internal prototype to avoid an error. */
26059#ifdef __cplusplus
26060extern "C"
26061#endif
26062/* We use char because int might match the return type of a gcc2
26063 builtin and then its argument prototype would still apply. */
26064char XShapeQueryExtension ();
26065int
26066main ()
26067{
26068XShapeQueryExtension ();
26069 ;
26070 return 0;
26071}
26072_ACEOF
26073rm -f conftest.$ac_objext conftest$ac_exeext
26074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26075 (eval $ac_link) 2>conftest.er1
a848cd7e 26076 ac_status=$?
ac1cb8d3
VS
26077 grep -v '^ *+' conftest.er1 >conftest.err
26078 rm -f conftest.er1
26079 cat conftest.err >&5
a848cd7e
SC
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } &&
4d4ff94c 26082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); }; } &&
26088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); }; }; then
26094 ac_cv_lib_Xext_XShapeQueryExtension=yes
26095else
26096 echo "$as_me: failed program was:" >&5
26097sed 's/^/| /' conftest.$ac_ext >&5
26098
26099ac_cv_lib_Xext_XShapeQueryExtension=no
26100fi
ac1cb8d3
VS
26101rm -f conftest.err conftest.$ac_objext \
26102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26103LIBS=$ac_check_lib_save_LIBS
26104fi
26105echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26106echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26107if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26108
26109 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26110 wxHAVE_XEXT_LIB=1
26111
26112fi
26113
26114
26115 if test "$wxHAVE_XEXT_LIB" = 1; then
26116 save_CFLAGS="$CFLAGS"
26117 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26118
26119 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26120echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26121 cat >conftest.$ac_ext <<_ACEOF
26122/* confdefs.h. */
26123_ACEOF
26124cat confdefs.h >>conftest.$ac_ext
26125cat >>conftest.$ac_ext <<_ACEOF
26126/* end confdefs.h. */
26127
26128 #include <X11/Xlib.h>
26129 #include <X11/extensions/shape.h>
26130
26131int
26132main ()
26133{
26134
26135 int dummy1, dummy2;
26136 XShapeQueryExtension((Display*)NULL,
26137 (int*)NULL, (int*)NULL);
26138
26139 ;
26140 return 0;
26141}
26142_ACEOF
26143rm -f conftest.$ac_objext
26144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26145 (eval $ac_compile) 2>conftest.er1
a848cd7e 26146 ac_status=$?
ac1cb8d3
VS
26147 grep -v '^ *+' conftest.er1 >conftest.err
26148 rm -f conftest.er1
26149 cat conftest.err >&5
a848cd7e
SC
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } &&
4d4ff94c 26152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; } &&
26158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164
26165 cat >>confdefs.h <<\_ACEOF
26166#define HAVE_XSHAPE 1
26167_ACEOF
26168
26169 echo "$as_me:$LINENO: result: found" >&5
26170echo "${ECHO_T}found" >&6
26171
26172else
26173 echo "$as_me: failed program was:" >&5
26174sed 's/^/| /' conftest.$ac_ext >&5
26175
26176
26177 echo "$as_me:$LINENO: result: not found" >&5
26178echo "${ECHO_T}not found" >&6
26179
26180fi
ac1cb8d3 26181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26182 CFLAGS="$save_CFLAGS"
26183
26184 fi
26185 fi
26186
26187 if test "$wxUSE_MAC" = 1; then
26188 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26189echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26190 if test "$GCC" = yes; then
26191 echo "$as_me:$LINENO: result: gcc" >&5
26192echo "${ECHO_T}gcc" >&6
26193 CPPFLAGS_PASCAL="-fpascal-strings"
26194 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26195 echo "$as_me:$LINENO: result: xlc" >&5
26196echo "${ECHO_T}xlc" >&6
26197 CPPFLAGS_PASCAL="-qmacpstr"
26198 else
26199 echo "$as_me:$LINENO: result: none" >&5
26200echo "${ECHO_T}none" >&6
26201 fi
26202
26203 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26204
26205 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26206 TOOLKIT=MAC
26207 GUIDIST=MACX_DIST
26208 WXBASEPORT="_carbon"
26209 fi
26210
26211 if test "$wxUSE_COCOA" = 1; then
26212 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26213 TOOLKIT=COCOA
26214 GUIDIST=COCOA_DIST
26215 fi
26216
26217 if test "$wxUSE_PM" = 1; then
26218 TOOLKIT=PM
de59c161
RD
26219 GUIDIST=PM_DIST
26220 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26221echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26222if test "${wx_cv_spbcdata+set}" = set; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26224else
26225
26226 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26227/* confdefs.h. */
26228_ACEOF
26229cat confdefs.h >>conftest.$ac_ext
26230cat >>conftest.$ac_ext <<_ACEOF
26231/* end confdefs.h. */
26232
26233 #define INCL_PM
26234 #include <os2.h>
26235
26236int
26237main ()
26238{
26239
26240 SPBCDATA test;
26241
26242 ;
26243 return 0;
26244}
26245_ACEOF
26246rm -f conftest.$ac_objext
26247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26248 (eval $ac_compile) 2>conftest.er1
de59c161 26249 ac_status=$?
ac1cb8d3
VS
26250 grep -v '^ *+' conftest.er1 >conftest.err
26251 rm -f conftest.er1
26252 cat conftest.err >&5
de59c161
RD
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } &&
4d4ff94c 26255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
26267 wx_cv_spbcdata=yes
26268else
26269 echo "$as_me: failed program was:" >&5
26270sed 's/^/| /' conftest.$ac_ext >&5
26271
26272wx_cv_spbcdata=no
26273
26274fi
ac1cb8d3 26275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26276
26277
26278fi
26279echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26280echo "${ECHO_T}$wx_cv_spbcdata" >&6
26281
26282 if test $wx_cv_spbcdata = "yes"; then
26283 cat >>confdefs.h <<\_ACEOF
26284#define HAVE_SPBCDATA 1
26285_ACEOF
26286
26287 fi
a848cd7e
SC
26288 fi
26289
26290 if test "$TOOLKIT" = "PM" ; then
26291 TOOLKIT_DIR="os2"
26292 else
26293 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26294 fi
26295
26296 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26297
26298 if test "$wxUSE_UNIVERSAL" = "yes"; then
26299 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26300
26301 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26302 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26303
26304 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26305 if test "$wxUSE_X11" = 1; then
26306 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26307 else
26308 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26309 fi
26310 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26311 WIDGET_SET=univ
26312 else
26313 ALL_OBJECTS="\$(GUIOBJS)"
26314 ALL_SOURCES="\$(ALL_SOURCES)"
26315 ALL_HEADERS="\$(ALL_HEADERS)"
26316 fi
26317
26318 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26319
26320 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26321 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26322 fi
26323
26324 if test "$wxUSE_HTML" = "yes"; then
26325 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26326 fi
26327
26328 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26329 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26330 fi
26331 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26332 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26333 fi
26334 if test "$wxUSE_LIBPNG" = "builtin" ; then
26335 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26336 fi
26337
26338 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26339 DISTDIR="wx\$(TOOLKIT)"
26340else
26341 USE_GUI=0
26342
26343 TOOLKIT_DIR="base"
26344
26345 if test "$USE_WIN32" = 1 ; then
26346 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26347 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26348
26349 TOOLKIT="MSW"
26350 else
26351 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26352 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26353 fi
26354
26355 ALL_SOURCES="\$(ALL_SOURCES)"
26356 ALL_HEADERS="\$(ALL_HEADERS)"
26357
26358 PORT_FILES="\${top_srcdir}/src/files.lst"
26359
26360 GUIDIST="BASE_DIST"
26361 DISTDIR="wxBase"
26362fi
26363
26364
26365
26366
26367IODBC_C_SRC=""
26368
26369
26370if test "$TOOLKIT" != "MSW" ; then
26371
26372 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26373
26374 if test "${ac_cv_header_sql_h+set}" = set; then
26375 echo "$as_me:$LINENO: checking for sql.h" >&5
26376echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26377if test "${ac_cv_header_sql_h+set}" = set; then
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26379fi
26380echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26381echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26382else
26383 # Is the header compilable?
26384echo "$as_me:$LINENO: checking sql.h usability" >&5
26385echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26386cat >conftest.$ac_ext <<_ACEOF
26387/* confdefs.h. */
26388_ACEOF
26389cat confdefs.h >>conftest.$ac_ext
26390cat >>conftest.$ac_ext <<_ACEOF
26391/* end confdefs.h. */
26392$ac_includes_default
26393#include <sql.h>
26394_ACEOF
26395rm -f conftest.$ac_objext
26396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26397 (eval $ac_compile) 2>conftest.er1
a848cd7e 26398 ac_status=$?
ac1cb8d3
VS
26399 grep -v '^ *+' conftest.er1 >conftest.err
26400 rm -f conftest.er1
26401 cat conftest.err >&5
a848cd7e
SC
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } &&
4d4ff94c 26404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26413 ac_status=$?
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; }; then
26416 ac_header_compiler=yes
26417else
26418 echo "$as_me: failed program was:" >&5
26419sed 's/^/| /' conftest.$ac_ext >&5
26420
26421ac_header_compiler=no
26422fi
ac1cb8d3 26423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26425echo "${ECHO_T}$ac_header_compiler" >&6
26426
26427# Is the header present?
26428echo "$as_me:$LINENO: checking sql.h presence" >&5
26429echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26430cat >conftest.$ac_ext <<_ACEOF
26431/* confdefs.h. */
26432_ACEOF
26433cat confdefs.h >>conftest.$ac_ext
26434cat >>conftest.$ac_ext <<_ACEOF
26435/* end confdefs.h. */
26436#include <sql.h>
26437_ACEOF
26438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26440 ac_status=$?
26441 grep -v '^ *+' conftest.er1 >conftest.err
26442 rm -f conftest.er1
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } >/dev/null; then
26446 if test -s conftest.err; then
26447 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26449 else
26450 ac_cpp_err=
26451 fi
26452else
26453 ac_cpp_err=yes
26454fi
26455if test -z "$ac_cpp_err"; then
26456 ac_header_preproc=yes
26457else
26458 echo "$as_me: failed program was:" >&5
26459sed 's/^/| /' conftest.$ac_ext >&5
26460
26461 ac_header_preproc=no
26462fi
26463rm -f conftest.err conftest.$ac_ext
26464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26465echo "${ECHO_T}$ac_header_preproc" >&6
26466
26467# So? What about this header?
ac1cb8d3
VS
26468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26469 yes:no: )
a848cd7e
SC
26470 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26471echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26472 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26473echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26474 ac_header_preproc=yes
a848cd7e 26475 ;;
ac1cb8d3 26476 no:yes:* )
a848cd7e
SC
26477 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26478echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26479 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26480echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26481 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26482echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26484echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26485 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26486echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26487 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26488echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26489 (
26490 cat <<\_ASBOX
ac1cb8d3
VS
26491## ----------------------------------------- ##
26492## Report this to wx-dev@lists.wxwidgets.org ##
26493## ----------------------------------------- ##
a848cd7e
SC
26494_ASBOX
26495 ) |
26496 sed "s/^/$as_me: WARNING: /" >&2
26497 ;;
26498esac
26499echo "$as_me:$LINENO: checking for sql.h" >&5
26500echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26501if test "${ac_cv_header_sql_h+set}" = set; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26503else
26504 ac_cv_header_sql_h=$ac_header_preproc
26505fi
26506echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26507echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26508
26509fi
26510if test $ac_cv_header_sql_h = yes; then
26511 found_sql_h=1
26512fi
26513
26514
26515 if test "x$found_sql_h" = "x1" ; then
26516 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26517echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26518if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26520else
26521 ac_check_lib_save_LIBS=$LIBS
26522LIBS="-liodbc $LIBS"
26523cat >conftest.$ac_ext <<_ACEOF
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529
26530/* Override any gcc2 internal prototype to avoid an error. */
26531#ifdef __cplusplus
26532extern "C"
26533#endif
26534/* We use char because int might match the return type of a gcc2
26535 builtin and then its argument prototype would still apply. */
26536char SQLAllocEnv ();
26537int
26538main ()
26539{
26540SQLAllocEnv ();
26541 ;
26542 return 0;
26543}
26544_ACEOF
26545rm -f conftest.$ac_objext conftest$ac_exeext
26546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26547 (eval $ac_link) 2>conftest.er1
a848cd7e 26548 ac_status=$?
ac1cb8d3
VS
26549 grep -v '^ *+' conftest.er1 >conftest.err
26550 rm -f conftest.er1
26551 cat conftest.err >&5
a848cd7e
SC
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } &&
4d4ff94c 26554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); }; } &&
26560 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26562 (eval $ac_try) 2>&5
26563 ac_status=$?
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); }; }; then
26566 ac_cv_lib_iodbc_SQLAllocEnv=yes
26567else
26568 echo "$as_me: failed program was:" >&5
26569sed 's/^/| /' conftest.$ac_ext >&5
26570
26571ac_cv_lib_iodbc_SQLAllocEnv=no
26572fi
ac1cb8d3
VS
26573rm -f conftest.err conftest.$ac_objext \
26574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26575LIBS=$ac_check_lib_save_LIBS
26576fi
26577echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26578echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26579if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26580 ODBC_LINK=" -liodbc"
26581else
26582
26583 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26584echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26585if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26587else
26588 ac_check_lib_save_LIBS=$LIBS
26589LIBS="-lunixodbc $LIBS"
26590cat >conftest.$ac_ext <<_ACEOF
26591/* confdefs.h. */
26592_ACEOF
26593cat confdefs.h >>conftest.$ac_ext
26594cat >>conftest.$ac_ext <<_ACEOF
26595/* end confdefs.h. */
26596
26597/* Override any gcc2 internal prototype to avoid an error. */
26598#ifdef __cplusplus
26599extern "C"
26600#endif
26601/* We use char because int might match the return type of a gcc2
26602 builtin and then its argument prototype would still apply. */
26603char SQLAllocEnv ();
26604int
26605main ()
26606{
26607SQLAllocEnv ();
26608 ;
26609 return 0;
26610}
26611_ACEOF
26612rm -f conftest.$ac_objext conftest$ac_exeext
26613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26614 (eval $ac_link) 2>conftest.er1
a848cd7e 26615 ac_status=$?
ac1cb8d3
VS
26616 grep -v '^ *+' conftest.er1 >conftest.err
26617 rm -f conftest.er1
26618 cat conftest.err >&5
a848cd7e
SC
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); } &&
4d4ff94c 26621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; } &&
26627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; }; then
26633 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26634else
26635 echo "$as_me: failed program was:" >&5
26636sed 's/^/| /' conftest.$ac_ext >&5
26637
26638ac_cv_lib_unixodbc_SQLAllocEnv=no
26639fi
ac1cb8d3
VS
26640rm -f conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26642LIBS=$ac_check_lib_save_LIBS
26643fi
26644echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26645echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26646if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26647 ODBC_LINK=" -lunixodbc"
26648else
26649
26650 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26651echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26652if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26654else
26655 ac_check_lib_save_LIBS=$LIBS
26656LIBS="-lodbc $LIBS"
26657cat >conftest.$ac_ext <<_ACEOF
26658/* confdefs.h. */
26659_ACEOF
26660cat confdefs.h >>conftest.$ac_ext
26661cat >>conftest.$ac_ext <<_ACEOF
26662/* end confdefs.h. */
26663
26664/* Override any gcc2 internal prototype to avoid an error. */
26665#ifdef __cplusplus
26666extern "C"
26667#endif
26668/* We use char because int might match the return type of a gcc2
26669 builtin and then its argument prototype would still apply. */
26670char SQLAllocEnv ();
26671int
26672main ()
26673{
26674SQLAllocEnv ();
26675 ;
26676 return 0;
26677}
26678_ACEOF
26679rm -f conftest.$ac_objext conftest$ac_exeext
26680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26681 (eval $ac_link) 2>conftest.er1
a848cd7e 26682 ac_status=$?
ac1cb8d3
VS
26683 grep -v '^ *+' conftest.er1 >conftest.err
26684 rm -f conftest.er1
26685 cat conftest.err >&5
a848cd7e
SC
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } &&
4d4ff94c 26688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26690 (eval $ac_try) 2>&5
26691 ac_status=$?
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); }; } &&
26694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26696 (eval $ac_try) 2>&5
26697 ac_status=$?
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); }; }; then
26700 ac_cv_lib_odbc_SQLAllocEnv=yes
26701else
26702 echo "$as_me: failed program was:" >&5
26703sed 's/^/| /' conftest.$ac_ext >&5
26704
26705ac_cv_lib_odbc_SQLAllocEnv=no
26706fi
ac1cb8d3
VS
26707rm -f conftest.err conftest.$ac_objext \
26708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26709LIBS=$ac_check_lib_save_LIBS
26710fi
26711echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26712echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26713if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26714 ODBC_LINK=" -lodbc"
26715fi
26716
26717
26718fi
26719
26720
26721fi
26722
26723 fi
26724 if test "x$ODBC_LINK" = "x" ; then
26725 if test "$wxUSE_ODBC" = "sys" ; then
26726 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26727echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26728 { (exit 1); exit 1; }; }
26729 else
26730 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26731echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26732 wxUSE_ODBC=builtin
26733 fi
26734 else
26735 wxUSE_ODBC=sys
26736 fi
26737 fi
26738 if test "$wxUSE_ODBC" != "no" ; then
26739 cat >>confdefs.h <<\_ACEOF
26740#define wxUSE_ODBC 1
26741_ACEOF
26742
26743 if test "$wxUSE_ODBC" = "builtin" ; then
26744 cat >>confdefs.h <<\_ACEOF
26745#define wxUSE_BUILTIN_IODBC 1
26746_ACEOF
26747
26748 fi
26749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26750
26751 WXODBCFLAG="-D_IODBC_"
26752 fi
26753fi
26754
26755if test "$wxUSE_REGEX" = "builtin" ; then
26756 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26757fi
26758if test "$wxUSE_ZLIB" = "builtin" ; then
26759 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26760fi
26761
01cb68df 26762
a848cd7e 26763if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26764 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26765 echo "$as_me:$LINENO: checking for Xinerama" >&5
26766echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26767
26768ac_find_libraries=
26769for ac_dir in $SEARCH_LIB /usr/lib;
26770 do
26771 for ac_extension in a so sl dylib; do
26772 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26773 ac_find_libraries=$ac_dir
26774 break 2
26775 fi
26776 done
26777 done
26778
26779 if test "$ac_find_libraries" != "" ; then
26780
26781 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26782 result=$?
26783 if test $result = 0; then
26784 ac_path_to_link=""
26785 else
26786 ac_path_to_link=" -L$ac_find_libraries"
26787 fi
26788
26789 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26790 LDFLAGS="$LDFLAGS $ac_path_to_link"
26791 fi
26792 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26793 echo "$as_me:$LINENO: result: yes" >&5
26794echo "${ECHO_T}yes" >&6
26795
26796 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26797echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26798
26799ac_find_libraries=
26800for ac_dir in $SEARCH_LIB /usr/lib;
26801 do
26802 for ac_extension in a so sl dylib; do
26803 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26804 ac_find_libraries=$ac_dir
26805 break 2
26806 fi
26807 done
26808 done
26809
26810 if test "$ac_find_libraries" != "" ; then
26811 echo "$as_me:$LINENO: result: yes" >&5
26812echo "${ECHO_T}yes" >&6
26813
26814for ac_header in X11/extensions/xf86vmode.h
26815do
26816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26817echo "$as_me:$LINENO: checking for $ac_header" >&5
26818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26819if eval "test \"\${$as_ac_Header+set}\" = set"; then
26820 echo $ECHO_N "(cached) $ECHO_C" >&6
26821else
26822 cat >conftest.$ac_ext <<_ACEOF
26823/* confdefs.h. */
26824_ACEOF
26825cat confdefs.h >>conftest.$ac_ext
26826cat >>conftest.$ac_ext <<_ACEOF
26827/* end confdefs.h. */
26828
26829 #if HAVE_X11_XLIB_H
26830 #include <X11/Xlib.h>
26831 #endif
26832
26833
26834#include <$ac_header>
26835_ACEOF
26836rm -f conftest.$ac_objext
26837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26838 (eval $ac_compile) 2>conftest.er1
a848cd7e 26839 ac_status=$?
ac1cb8d3
VS
26840 grep -v '^ *+' conftest.er1 >conftest.err
26841 rm -f conftest.er1
26842 cat conftest.err >&5
a848cd7e
SC
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } &&
4d4ff94c 26845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 eval "$as_ac_Header=yes"
26858else
26859 echo "$as_me: failed program was:" >&5
26860sed 's/^/| /' conftest.$ac_ext >&5
26861
26862eval "$as_ac_Header=no"
26863fi
ac1cb8d3 26864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26865fi
26866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26868if test `eval echo '${'$as_ac_Header'}'` = yes; then
26869 cat >>confdefs.h <<_ACEOF
26870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26871_ACEOF
26872
26873 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26874
26875fi
26876
26877done
26878
26879 else
26880 echo "$as_me:$LINENO: result: no" >&5
26881echo "${ECHO_T}no" >&6
26882 fi
26883
26884 else
26885 echo "$as_me:$LINENO: result: no" >&5
26886echo "${ECHO_T}no" >&6
dcc1b6ad
VS
26887 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
26888echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
26889 wxUSE_DISPLAY="no"
26890 fi
01cb68df
RG
26891 elif test "$wxUSE_MSW" = 1; then
26892
26893
26894for ac_header in multimon.h ddraw.h
26895do
26896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26897if eval "test \"\${$as_ac_Header+set}\" = set"; then
26898 echo "$as_me:$LINENO: checking for $ac_header" >&5
26899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26900if eval "test \"\${$as_ac_Header+set}\" = set"; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26902fi
26903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26905else
26906 # Is the header compilable?
26907echo "$as_me:$LINENO: checking $ac_header usability" >&5
26908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26909cat >conftest.$ac_ext <<_ACEOF
26910/* confdefs.h. */
26911_ACEOF
26912cat confdefs.h >>conftest.$ac_ext
26913cat >>conftest.$ac_ext <<_ACEOF
26914/* end confdefs.h. */
26915$ac_includes_default
26916#include <$ac_header>
26917_ACEOF
26918rm -f conftest.$ac_objext
26919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26920 (eval $ac_compile) 2>conftest.er1
01cb68df 26921 ac_status=$?
ac1cb8d3
VS
26922 grep -v '^ *+' conftest.er1 >conftest.err
26923 rm -f conftest.er1
26924 cat conftest.err >&5
01cb68df
RG
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); } &&
4d4ff94c 26927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26930 ac_status=$?
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; } &&
26933 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26936 ac_status=$?
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26939 ac_header_compiler=yes
26940else
26941 echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
26944ac_header_compiler=no
26945fi
ac1cb8d3 26946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
26947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26948echo "${ECHO_T}$ac_header_compiler" >&6
26949
26950# Is the header present?
26951echo "$as_me:$LINENO: checking $ac_header presence" >&5
26952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26953cat >conftest.$ac_ext <<_ACEOF
26954/* confdefs.h. */
26955_ACEOF
26956cat confdefs.h >>conftest.$ac_ext
26957cat >>conftest.$ac_ext <<_ACEOF
26958/* end confdefs.h. */
26959#include <$ac_header>
26960_ACEOF
26961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26963 ac_status=$?
26964 grep -v '^ *+' conftest.er1 >conftest.err
26965 rm -f conftest.er1
26966 cat conftest.err >&5
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); } >/dev/null; then
26969 if test -s conftest.err; then
26970 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
26972 else
26973 ac_cpp_err=
26974 fi
26975else
26976 ac_cpp_err=yes
26977fi
26978if test -z "$ac_cpp_err"; then
26979 ac_header_preproc=yes
26980else
26981 echo "$as_me: failed program was:" >&5
26982sed 's/^/| /' conftest.$ac_ext >&5
26983
26984 ac_header_preproc=no
26985fi
26986rm -f conftest.err conftest.$ac_ext
26987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26988echo "${ECHO_T}$ac_header_preproc" >&6
26989
26990# So? What about this header?
ac1cb8d3
VS
26991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26992 yes:no: )
01cb68df
RG
26993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26997 ac_header_preproc=yes
01cb68df 26998 ;;
ac1cb8d3 26999 no:yes:* )
01cb68df
RG
27000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27007echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27012 (
27013 cat <<\_ASBOX
ac1cb8d3
VS
27014## ----------------------------------------- ##
27015## Report this to wx-dev@lists.wxwidgets.org ##
27016## ----------------------------------------- ##
01cb68df
RG
27017_ASBOX
27018 ) |
27019 sed "s/^/$as_me: WARNING: /" >&2
27020 ;;
27021esac
27022echo "$as_me:$LINENO: checking for $ac_header" >&5
27023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27024if eval "test \"\${$as_ac_Header+set}\" = set"; then
27025 echo $ECHO_N "(cached) $ECHO_C" >&6
27026else
ac1cb8d3 27027 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27028fi
27029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27031
27032fi
27033if test `eval echo '${'$as_ac_Header'}'` = yes; then
27034 cat >>confdefs.h <<_ACEOF
27035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27036_ACEOF
27037
27038else
27039
27040 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27041 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27042echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27043
27044fi
27045
27046done
27047
a848cd7e
SC
27048 fi
27049fi
27050
27051
27052USE_OPENGL=0
27053if test "$wxUSE_OPENGL" = "yes"; then
27054 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27055 OPENGL_LIBS="-framework OpenGL -framework AGL"
27056 elif test "$wxUSE_MSW" = 1; then
27057 OPENGL_LIBS="-lopengl32 -lglu32"
27058 else
27059
27060
27061ac_find_includes=
27062for ac_dir in $SEARCH_INCLUDE /usr/include;
27063 do
27064 if test -f "$ac_dir/GL/gl.h"; then
27065 ac_find_includes=$ac_dir
27066 break
27067 fi
27068 done
27069
27070 if test "$ac_find_includes" != "" ; then
27071 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27072echo "${ECHO_T}found in $ac_find_includes" >&6
27073
27074 if test "x$ac_find_includes" = "x/usr/include"; then
27075 ac_path_to_include=""
27076 else
27077 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27078 result=$?
27079 if test $result = 0; then
27080 ac_path_to_include=""
27081 else
27082 ac_path_to_include=" -I$ac_find_includes"
27083 fi
27084 fi
27085
27086 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27087 fi
27088
27089 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27090 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27091echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27092if test "${ac_cv_header_GL_gl_h+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27094fi
27095echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27096echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27097else
27098 # Is the header compilable?
27099echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27100echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27101cat >conftest.$ac_ext <<_ACEOF
27102/* confdefs.h. */
27103_ACEOF
27104cat confdefs.h >>conftest.$ac_ext
27105cat >>conftest.$ac_ext <<_ACEOF
27106/* end confdefs.h. */
27107$ac_includes_default
27108#include <GL/gl.h>
27109_ACEOF
27110rm -f conftest.$ac_objext
27111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27112 (eval $ac_compile) 2>conftest.er1
a848cd7e 27113 ac_status=$?
ac1cb8d3
VS
27114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
a848cd7e
SC
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
4d4ff94c 27119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27122 ac_status=$?
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; }; then
27131 ac_header_compiler=yes
27132else
27133 echo "$as_me: failed program was:" >&5
27134sed 's/^/| /' conftest.$ac_ext >&5
27135
27136ac_header_compiler=no
27137fi
ac1cb8d3 27138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27140echo "${ECHO_T}$ac_header_compiler" >&6
27141
27142# Is the header present?
27143echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27144echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27145cat >conftest.$ac_ext <<_ACEOF
27146/* confdefs.h. */
27147_ACEOF
27148cat confdefs.h >>conftest.$ac_ext
27149cat >>conftest.$ac_ext <<_ACEOF
27150/* end confdefs.h. */
27151#include <GL/gl.h>
27152_ACEOF
27153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27155 ac_status=$?
27156 grep -v '^ *+' conftest.er1 >conftest.err
27157 rm -f conftest.er1
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } >/dev/null; then
27161 if test -s conftest.err; then
27162 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27164 else
27165 ac_cpp_err=
27166 fi
27167else
27168 ac_cpp_err=yes
27169fi
27170if test -z "$ac_cpp_err"; then
27171 ac_header_preproc=yes
27172else
27173 echo "$as_me: failed program was:" >&5
27174sed 's/^/| /' conftest.$ac_ext >&5
27175
27176 ac_header_preproc=no
27177fi
27178rm -f conftest.err conftest.$ac_ext
27179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27180echo "${ECHO_T}$ac_header_preproc" >&6
27181
27182# So? What about this header?
ac1cb8d3
VS
27183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27184 yes:no: )
a848cd7e
SC
27185 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27186echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27187 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27188echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27189 ac_header_preproc=yes
a848cd7e 27190 ;;
ac1cb8d3 27191 no:yes:* )
a848cd7e
SC
27192 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27193echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27194 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27195echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27197echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27199echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27200 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27201echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27202 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27203echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27204 (
27205 cat <<\_ASBOX
ac1cb8d3
VS
27206## ----------------------------------------- ##
27207## Report this to wx-dev@lists.wxwidgets.org ##
27208## ----------------------------------------- ##
a848cd7e
SC
27209_ASBOX
27210 ) |
27211 sed "s/^/$as_me: WARNING: /" >&2
27212 ;;
27213esac
27214echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27215echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27216if test "${ac_cv_header_GL_gl_h+set}" = set; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27218else
27219 ac_cv_header_GL_gl_h=$ac_header_preproc
27220fi
27221echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27222echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27223
27224fi
27225if test $ac_cv_header_GL_gl_h = yes; then
27226
27227 found_gl=0
27228
27229 echo "$as_me:$LINENO: checking for -lGL" >&5
27230echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27231
27232ac_find_libraries=
27233for ac_dir in $SEARCH_LIB /usr/lib;
27234 do
27235 for ac_extension in a so sl dylib; do
27236 if test -f "$ac_dir/libGL.$ac_extension"; then
27237 ac_find_libraries=$ac_dir
27238 break 2
27239 fi
27240 done
27241 done
27242
27243 if test "$ac_find_libraries" != "" ; then
27244
27245 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27246 result=$?
27247 if test $result = 0; then
27248 ac_path_to_link=""
27249 else
27250 ac_path_to_link=" -L$ac_find_libraries"
27251 fi
27252
27253 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27254 LDFLAGS_GL="$ac_path_to_link"
27255 fi
27256
27257
27258ac_find_libraries=
27259for ac_dir in $SEARCH_LIB /usr/lib;
27260 do
27261 for ac_extension in a so sl dylib; do
27262 if test -f "$ac_dir/libGLU.$ac_extension"; then
27263 ac_find_libraries=$ac_dir
27264 break 2
27265 fi
27266 done
27267 done
27268
27269 if test "$ac_find_libraries" != "" ; then
27270
27271 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27272 result=$?
27273 if test $result = 0; then
27274 ac_path_to_link=""
27275 else
27276 ac_path_to_link=" -L$ac_find_libraries"
27277 fi
27278
27279 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27280 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27281 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27282 fi
27283
27284 found_gl=1
27285 OPENGL_LIBS="-lGL -lGLU"
27286 echo "$as_me:$LINENO: result: yes" >&5
27287echo "${ECHO_T}yes" >&6
27288 fi
27289 fi
27290
27291 if test "$found_gl" != 1; then
27292 echo "$as_me:$LINENO: result: no" >&5
27293echo "${ECHO_T}no" >&6
27294 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27295echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27296
27297ac_find_libraries=
27298for ac_dir in $SEARCH_LIB /usr/lib;
27299 do
27300 for ac_extension in a so sl dylib; do
27301 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27302 ac_find_libraries=$ac_dir
27303 break 2
27304 fi
27305 done
27306 done
27307
27308 if test "$ac_find_libraries" != "" ; then
27309
27310 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27311 result=$?
27312 if test $result = 0; then
27313 ac_path_to_link=""
27314 else
27315 ac_path_to_link=" -L$ac_find_libraries"
27316 fi
27317
27318 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27319 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27320 echo "$as_me:$LINENO: result: yes" >&5
27321echo "${ECHO_T}yes" >&6
27322 else
27323 echo "$as_me:$LINENO: result: no" >&5
27324echo "${ECHO_T}no" >&6
27325 fi
27326 fi
27327
27328fi
27329
27330
27331
27332 if test "x$OPENGL_LIBS" = "x"; then
27333 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27334echo "$as_me: error: OpenGL libraries not available" >&2;}
27335 { (exit 1); exit 1; }; }
27336 fi
27337 fi
27338
27339 if test "$wxUSE_OPENGL" = "yes"; then
27340 USE_OPENGL=1
27341 cat >>confdefs.h <<\_ACEOF
27342#define wxUSE_OPENGL 1
27343_ACEOF
27344
27345 cat >>confdefs.h <<\_ACEOF
27346#define wxUSE_GLCANVAS 1
27347_ACEOF
27348
27349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27350 fi
27351fi
27352
27353if test -z "$TOOLKIT_VPATH" ; then
27354 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27355fi
27356
27357if test -n "$TOOLKIT" ; then
27358 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27359fi
27360
27361UNICODE=0
27362lib_unicode_suffix=
48112931 27363wxconfig_filename_unicode="ansi"
a848cd7e
SC
27364if test "$wxUSE_UNICODE" = "yes"; then
27365 lib_unicode_suffix=u
48112931 27366 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27367 UNICODE=1
27368fi
27369
27370lib_debug_suffix=
48112931 27371wxconfig_filename_debug="release"
a848cd7e
SC
27372DEBUG_FLAG=0
27373if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27374 lib_debug_suffix=d
48112931 27375 wxconfig_filename_debug="debug"
a848cd7e
SC
27376 DEBUG_FLAG=1
27377fi
27378
27379DEBUG_INFO=0
27380if test "$wxUSE_DEBUG_INFO" = "yes"; then
27381 DEBUG_INFO=1
27382fi
27383
27384WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27385
27386TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27387TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27388
48112931
VS
27389WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27390
a848cd7e
SC
27391if test "$cross_compiling" = "yes"; then
27392 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27393 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27394 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27395 HOST_SUFFIX="-${host_alias}"
27396fi
27397
27398WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27399WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27400WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27401WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27402
27403WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27404WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27405
27406WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27407WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27408WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27409WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27410
27411case "${host}" in
27412 *-*-cygwin* | *-*-mingw32* )
27413 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27414 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27415 ;;
27416
27417 *-*-darwin* )
27418
27419 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27420 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27421
27422 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27423 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27424 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27425 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27426
27427 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27428 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27429 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27430 fi
27431 ;;
27432esac
27433
27434WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27435WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27436
27437WXCONFIG_LIBS="-l${WX_LIBRARY}"
27438WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27439
27440if test "$wxUSE_OPENGL" = "yes"; then
27441 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27442 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27443fi
27444
27445
27446
27447if test "$wxUSE_SHARED" = "yes"; then
27448 case "${host}" in
27449 *-pc-msdosdjgpp )
27450 wxUSE_SHARED=no
27451 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27452echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27453 ;;
27454 esac
27455fi
27456
27457SHARED=0
27458if test "$wxUSE_SHARED" = "yes"; then
27459 SHARED=1
27460
27461
27462 found_versioning=no
27463
27464
27465 if test $found_versioning = no ; then
27466 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27467echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27468if test "${wx_cv_version_script+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27470else
27471
27472 echo "VER_1 { *; };" >conftest.sym
27473 echo "int main() { return 0; }" >conftest.cpp
27474
27475 if { ac_try='
27476 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27477 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479 (eval $ac_try) 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; } ; then
27483 if test -s conftest.stderr ; then
27484 wx_cv_version_script=no
27485 else
27486 wx_cv_version_script=yes
27487 fi
27488 else
27489 wx_cv_version_script=no
27490 fi
27491 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27492
27493fi
27494echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27495echo "${ECHO_T}$wx_cv_version_script" >&6
27496 if test $wx_cv_version_script = yes ; then
27497 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27498 fi
27499 fi
27500
27501
27502 case "${host}" in
27503 *-*-linux* | *-*-gnu* )
27504 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27505 ;;
27506
27507 *-*-solaris2* )
27508 if test "$GCC" = yes ; then
27509 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27510
27511 saveLdflags="$LDFLAGS"
27512 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27513 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27514echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27515 cat >conftest.$ac_ext <<_ACEOF
27516/* confdefs.h. */
27517_ACEOF
27518cat confdefs.h >>conftest.$ac_ext
27519cat >>conftest.$ac_ext <<_ACEOF
27520/* end confdefs.h. */
27521
27522int
27523main ()
27524{
27525
27526 ;
27527 return 0;
27528}
27529_ACEOF
27530rm -f conftest.$ac_objext conftest$ac_exeext
27531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27532 (eval $ac_link) 2>conftest.er1
a848cd7e 27533 ac_status=$?
ac1cb8d3
VS
27534 grep -v '^ *+' conftest.er1 >conftest.err
27535 rm -f conftest.er1
27536 cat conftest.err >&5
a848cd7e
SC
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } &&
4d4ff94c 27539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541 (eval $ac_try) 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; } &&
27545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27551
27552 echo "$as_me:$LINENO: result: yes" >&5
27553echo "${ECHO_T}yes" >&6
27554 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27555
27556else
27557 echo "$as_me: failed program was:" >&5
27558sed 's/^/| /' conftest.$ac_ext >&5
27559
27560
27561 echo "$as_me:$LINENO: result: no" >&5
27562echo "${ECHO_T}no" >&6
27563 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27564echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27565 LDFLAGS="$saveLdflags -Wl,-R,/"
27566 cat >conftest.$ac_ext <<_ACEOF
27567/* confdefs.h. */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h. */
27572
27573int
27574main ()
27575{
27576
27577 ;
27578 return 0;
27579}
27580_ACEOF
27581rm -f conftest.$ac_objext conftest$ac_exeext
27582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27583 (eval $ac_link) 2>conftest.er1
a848cd7e 27584 ac_status=$?
ac1cb8d3
VS
27585 grep -v '^ *+' conftest.er1 >conftest.err
27586 rm -f conftest.er1
27587 cat conftest.err >&5
a848cd7e
SC
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); } &&
4d4ff94c 27590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592 (eval $ac_try) 2>&5
27593 ac_status=$?
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; } &&
27596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598 (eval $ac_try) 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
27602
27603 echo "$as_me:$LINENO: result: yes" >&5
27604echo "${ECHO_T}yes" >&6
27605 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27606else
27607 echo "$as_me: failed program was:" >&5
27608sed 's/^/| /' conftest.$ac_ext >&5
27609
27610
27611 echo "$as_me:$LINENO: result: no" >&5
27612echo "${ECHO_T}no" >&6
27613
27614fi
ac1cb8d3
VS
27615rm -f conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27617
27618fi
ac1cb8d3
VS
27619rm -f conftest.err conftest.$ac_objext \
27620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27621 LDFLAGS="$saveLdflags"
27622 else
27623 SHARED_LD="${CXX} -G -o"
27624 PIC_FLAG="-KPIC"
27625 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27626 fi
27627 ;;
27628
27629 powerpc-*-darwin* )
27630 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27631 cat <<EOF >change-install-names
27632#!/bin/sh
27633libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27634inst_cmd="install_name_tool "
27635for i in \${libnames} ; do
27636 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27637done
27638\${inst_cmd} \${3}
27639EOF
27640 chmod +x change-install-names
27641 ;;
27642
27643 *-*-cygwin* | *-*-mingw32* )
27644 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27645 ;;
27646
27647 esac
27648
27649 if test "x$WX_TARGET_LIBRARY" = "x"; then
27650 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27651 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27652 fi
27653
27654 WX_TARGET_LIBRARY_TYPE="so"
27655 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27656fi
27657
27658if test "$wxUSE_SHARED" = "no"; then
27659
27660 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27661 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27662 fi
27663
27664 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27665 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27666 fi
27667
27668 if test "$wxUSE_OPENGL" = "yes"; then
27669 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27670 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27671 else
27672 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27673 fi
27674
27675 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27676 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27677
27678 WX_TARGET_LIBRARY_TYPE="a"
27679 INSTALL_LIBRARY='$(INSTALL_DATA)'
27680
27681 STATIC_FLAG="yes"
27682else
27683 STATIC_FLAG="no"
27684fi
27685
27686if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27687 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27688 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27689 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27690
27691 # Extract the first word of "Rez", so it can be a program name with args.
27692set dummy Rez; ac_word=$2
27693echo "$as_me:$LINENO: checking for $ac_word" >&5
27694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27695if test "${ac_cv_prog_RESCOMP+set}" = set; then
27696 echo $ECHO_N "(cached) $ECHO_C" >&6
27697else
27698 if test -n "$RESCOMP"; then
27699 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27700else
27701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27702for as_dir in $PATH
27703do
27704 IFS=$as_save_IFS
27705 test -z "$as_dir" && as_dir=.
27706 for ac_exec_ext in '' $ac_executable_extensions; do
27707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27708 ac_cv_prog_RESCOMP="Rez"
27709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27710 break 2
27711 fi
27712done
27713done
27714
27715 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27716fi
27717fi
27718RESCOMP=$ac_cv_prog_RESCOMP
27719if test -n "$RESCOMP"; then
27720 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27721echo "${ECHO_T}$RESCOMP" >&6
27722else
27723 echo "$as_me:$LINENO: result: no" >&5
27724echo "${ECHO_T}no" >&6
27725fi
27726
27727 # Extract the first word of "DeRez", so it can be a program name with args.
27728set dummy DeRez; ac_word=$2
27729echo "$as_me:$LINENO: checking for $ac_word" >&5
27730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27731if test "${ac_cv_prog_DEREZ+set}" = set; then
27732 echo $ECHO_N "(cached) $ECHO_C" >&6
27733else
27734 if test -n "$DEREZ"; then
27735 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27736else
27737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27738for as_dir in $PATH
27739do
27740 IFS=$as_save_IFS
27741 test -z "$as_dir" && as_dir=.
27742 for ac_exec_ext in '' $ac_executable_extensions; do
27743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27744 ac_cv_prog_DEREZ="DeRez"
27745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27746 break 2
27747 fi
27748done
27749done
27750
27751 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27752fi
27753fi
27754DEREZ=$ac_cv_prog_DEREZ
27755if test -n "$DEREZ"; then
27756 echo "$as_me:$LINENO: result: $DEREZ" >&5
27757echo "${ECHO_T}$DEREZ" >&6
27758else
27759 echo "$as_me:$LINENO: result: no" >&5
27760echo "${ECHO_T}no" >&6
27761fi
27762
27763 # Extract the first word of "SetFile", so it can be a program name with args.
27764set dummy SetFile; ac_word=$2
27765echo "$as_me:$LINENO: checking for $ac_word" >&5
27766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27767if test "${ac_cv_prog_SETFILE+set}" = set; then
27768 echo $ECHO_N "(cached) $ECHO_C" >&6
27769else
27770 if test -n "$SETFILE"; then
27771 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27772else
27773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27774for as_dir in $PATH
27775do
27776 IFS=$as_save_IFS
27777 test -z "$as_dir" && as_dir=.
27778 for ac_exec_ext in '' $ac_executable_extensions; do
27779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27780 ac_cv_prog_SETFILE="SetFile"
27781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27782 break 2
27783 fi
27784done
27785done
27786
27787 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27788fi
27789fi
27790SETFILE=$ac_cv_prog_SETFILE
27791if test -n "$SETFILE"; then
27792 echo "$as_me:$LINENO: result: $SETFILE" >&5
27793echo "${ECHO_T}$SETFILE" >&6
27794else
27795 echo "$as_me:$LINENO: result: no" >&5
27796echo "${ECHO_T}no" >&6
27797fi
27798
27799
27800 MACSETFILE="\$(SETFILE)"
27801
27802 if test "$wxUSE_MAC" = 1; then
27803 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27804
27805 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27806 else
27807 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27808 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27809 fi
27810else
27811 MACSETFILE="@#"
27812 MACRESWXCONFIG="#"
27813
27814 if test "$wxUSE_PM" = 1; then
27815 MACRESCOMP="emxbind -ep"
27816 else
27817 MACRESCOMP="@#"
27818 fi
27819fi
27820
27821
27822
27823echo "$as_me:$LINENO: checking for mode_t" >&5
27824echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27825if test "${ac_cv_type_mode_t+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828 cat >conftest.$ac_ext <<_ACEOF
27829/* confdefs.h. */
27830_ACEOF
27831cat confdefs.h >>conftest.$ac_ext
27832cat >>conftest.$ac_ext <<_ACEOF
27833/* end confdefs.h. */
27834$ac_includes_default
27835int
27836main ()
27837{
27838if ((mode_t *) 0)
27839 return 0;
27840if (sizeof (mode_t))
27841 return 0;
27842 ;
27843 return 0;
27844}
27845_ACEOF
27846rm -f conftest.$ac_objext
27847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27848 (eval $ac_compile) 2>conftest.er1
a848cd7e 27849 ac_status=$?
ac1cb8d3
VS
27850 grep -v '^ *+' conftest.er1 >conftest.err
27851 rm -f conftest.er1
27852 cat conftest.err >&5
a848cd7e
SC
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
4d4ff94c 27855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857 (eval $ac_try) 2>&5
27858 ac_status=$?
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); }; } &&
27861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27864 ac_status=$?
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; }; then
27867 ac_cv_type_mode_t=yes
27868else
27869 echo "$as_me: failed program was:" >&5
27870sed 's/^/| /' conftest.$ac_ext >&5
27871
27872ac_cv_type_mode_t=no
27873fi
ac1cb8d3 27874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27875fi
27876echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27877echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27878if test $ac_cv_type_mode_t = yes; then
27879 :
27880else
27881
27882cat >>confdefs.h <<_ACEOF
27883#define mode_t int
27884_ACEOF
27885
27886fi
27887
27888echo "$as_me:$LINENO: checking for off_t" >&5
27889echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27890if test "${ac_cv_type_off_t+set}" = set; then
27891 echo $ECHO_N "(cached) $ECHO_C" >&6
27892else
27893 cat >conftest.$ac_ext <<_ACEOF
27894/* confdefs.h. */
27895_ACEOF
27896cat confdefs.h >>conftest.$ac_ext
27897cat >>conftest.$ac_ext <<_ACEOF
27898/* end confdefs.h. */
27899$ac_includes_default
27900int
27901main ()
27902{
27903if ((off_t *) 0)
27904 return 0;
27905if (sizeof (off_t))
27906 return 0;
27907 ;
27908 return 0;
27909}
27910_ACEOF
27911rm -f conftest.$ac_objext
27912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27913 (eval $ac_compile) 2>conftest.er1
a848cd7e 27914 ac_status=$?
ac1cb8d3
VS
27915 grep -v '^ *+' conftest.er1 >conftest.err
27916 rm -f conftest.er1
27917 cat conftest.err >&5
a848cd7e
SC
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); } &&
4d4ff94c 27920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922 (eval $ac_try) 2>&5
27923 ac_status=$?
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); }; } &&
27926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; }; then
27932 ac_cv_type_off_t=yes
27933else
27934 echo "$as_me: failed program was:" >&5
27935sed 's/^/| /' conftest.$ac_ext >&5
27936
27937ac_cv_type_off_t=no
27938fi
ac1cb8d3 27939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27940fi
27941echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27942echo "${ECHO_T}$ac_cv_type_off_t" >&6
27943if test $ac_cv_type_off_t = yes; then
27944 :
27945else
27946
27947cat >>confdefs.h <<_ACEOF
27948#define off_t long
27949_ACEOF
27950
27951fi
27952
27953echo "$as_me:$LINENO: checking for pid_t" >&5
27954echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27955if test "${ac_cv_type_pid_t+set}" = set; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957else
27958 cat >conftest.$ac_ext <<_ACEOF
27959/* confdefs.h. */
27960_ACEOF
27961cat confdefs.h >>conftest.$ac_ext
27962cat >>conftest.$ac_ext <<_ACEOF
27963/* end confdefs.h. */
27964$ac_includes_default
27965int
27966main ()
27967{
27968if ((pid_t *) 0)
27969 return 0;
27970if (sizeof (pid_t))
27971 return 0;
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext
27977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27978 (eval $ac_compile) 2>conftest.er1
a848cd7e 27979 ac_status=$?
ac1cb8d3
VS
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
a848cd7e
SC
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
4d4ff94c 27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 ac_cv_type_pid_t=yes
27998else
27999 echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
28002ac_cv_type_pid_t=no
28003fi
ac1cb8d3 28004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28005fi
28006echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28007echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28008if test $ac_cv_type_pid_t = yes; then
28009 :
28010else
28011
28012cat >>confdefs.h <<_ACEOF
28013#define pid_t int
28014_ACEOF
28015
28016fi
28017
28018echo "$as_me:$LINENO: checking for size_t" >&5
28019echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28020if test "${ac_cv_type_size_t+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28022else
28023 cat >conftest.$ac_ext <<_ACEOF
28024/* confdefs.h. */
28025_ACEOF
28026cat confdefs.h >>conftest.$ac_ext
28027cat >>conftest.$ac_ext <<_ACEOF
28028/* end confdefs.h. */
28029$ac_includes_default
28030int
28031main ()
28032{
28033if ((size_t *) 0)
28034 return 0;
28035if (sizeof (size_t))
28036 return 0;
28037 ;
28038 return 0;
28039}
28040_ACEOF
28041rm -f conftest.$ac_objext
28042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28043 (eval $ac_compile) 2>conftest.er1
a848cd7e 28044 ac_status=$?
ac1cb8d3
VS
28045 grep -v '^ *+' conftest.er1 >conftest.err
28046 rm -f conftest.er1
28047 cat conftest.err >&5
a848cd7e
SC
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); } &&
4d4ff94c 28050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052 (eval $ac_try) 2>&5
28053 ac_status=$?
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); }; } &&
28056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
28062 ac_cv_type_size_t=yes
28063else
28064 echo "$as_me: failed program was:" >&5
28065sed 's/^/| /' conftest.$ac_ext >&5
28066
28067ac_cv_type_size_t=no
28068fi
ac1cb8d3 28069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28070fi
28071echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28072echo "${ECHO_T}$ac_cv_type_size_t" >&6
28073if test $ac_cv_type_size_t = yes; then
28074 :
28075else
28076
28077cat >>confdefs.h <<_ACEOF
28078#define size_t unsigned
28079_ACEOF
28080
28081fi
28082
28083echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28084echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28085if test "${ac_cv_type_uid_t+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28087else
28088 cat >conftest.$ac_ext <<_ACEOF
28089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
28094#include <sys/types.h>
28095
28096_ACEOF
28097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28098 $EGREP "uid_t" >/dev/null 2>&1; then
28099 ac_cv_type_uid_t=yes
28100else
28101 ac_cv_type_uid_t=no
28102fi
28103rm -f conftest*
28104
28105fi
28106echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28107echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28108if test $ac_cv_type_uid_t = no; then
28109
28110cat >>confdefs.h <<\_ACEOF
28111#define uid_t int
28112_ACEOF
28113
28114
28115cat >>confdefs.h <<\_ACEOF
28116#define gid_t int
28117_ACEOF
28118
28119fi
28120
28121
28122
28123
28124ac_ext=cc
28125ac_cpp='$CXXCPP $CPPFLAGS'
28126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28129
28130echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28131echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28132if test "${wx_cv_size_t_is_uint+set}" = set; then
28133 echo $ECHO_N "(cached) $ECHO_C" >&6
28134else
28135
28136 cat >conftest.$ac_ext <<_ACEOF
28137/* confdefs.h. */
28138_ACEOF
28139cat confdefs.h >>conftest.$ac_ext
28140cat >>conftest.$ac_ext <<_ACEOF
28141/* end confdefs.h. */
28142#include <stddef.h>
28143int
28144main ()
28145{
28146
28147 return 0; }
28148
28149 struct Foo { void foo(size_t); void foo(unsigned int); };
28150
28151 int bar() {
28152
28153 ;
28154 return 0;
28155}
28156_ACEOF
28157rm -f conftest.$ac_objext
28158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28159 (eval $ac_compile) 2>conftest.er1
a848cd7e 28160 ac_status=$?
ac1cb8d3
VS
28161 grep -v '^ *+' conftest.er1 >conftest.err
28162 rm -f conftest.er1
28163 cat conftest.err >&5
a848cd7e
SC
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } &&
4d4ff94c 28166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28168 (eval $ac_try) 2>&5
28169 ac_status=$?
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); }; } &&
28172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174 (eval $ac_try) 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
28178 wx_cv_size_t_is_uint=no
28179else
28180 echo "$as_me: failed program was:" >&5
28181sed 's/^/| /' conftest.$ac_ext >&5
28182
28183wx_cv_size_t_is_uint=yes
28184
28185fi
ac1cb8d3 28186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28187
28188
28189fi
28190echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28191echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28192
28193if test "$wx_cv_size_t_is_uint" = "yes"; then
28194 cat >>confdefs.h <<\_ACEOF
28195#define wxSIZE_T_IS_UINT 1
28196_ACEOF
28197
28198else
28199 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28200echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28201if test "${wx_cv_size_t_is_ulong+set}" = set; then
28202 echo $ECHO_N "(cached) $ECHO_C" >&6
28203else
28204 cat >conftest.$ac_ext <<_ACEOF
28205/* confdefs.h. */
28206_ACEOF
28207cat confdefs.h >>conftest.$ac_ext
28208cat >>conftest.$ac_ext <<_ACEOF
28209/* end confdefs.h. */
28210#include <stddef.h>
28211int
28212main ()
28213{
28214
28215 return 0; }
28216
28217 struct Foo { void foo(size_t); void foo(unsigned long); };
28218
28219 int bar() {
28220
28221 ;
28222 return 0;
28223}
28224_ACEOF
28225rm -f conftest.$ac_objext
28226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28227 (eval $ac_compile) 2>conftest.er1
a848cd7e 28228 ac_status=$?
ac1cb8d3
VS
28229 grep -v '^ *+' conftest.er1 >conftest.err
28230 rm -f conftest.er1
28231 cat conftest.err >&5
a848cd7e
SC
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
4d4ff94c 28234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 wx_cv_size_t_is_ulong=no
28247else
28248 echo "$as_me: failed program was:" >&5
28249sed 's/^/| /' conftest.$ac_ext >&5
28250
28251wx_cv_size_t_is_ulong=yes
28252
28253fi
ac1cb8d3 28254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28255
28256fi
28257echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28258echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28259
28260 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28261 cat >>confdefs.h <<\_ACEOF
28262#define wxSIZE_T_IS_ULONG 1
28263_ACEOF
28264
28265 fi
28266fi
28267
28268ac_ext=c
28269ac_cpp='$CPP $CPPFLAGS'
28270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28272ac_compiler_gnu=$ac_cv_c_compiler_gnu
28273
28274
28275
28276echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28277echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28278if test "${wx_cv_struct_pw_gecos+set}" = set; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28280else
28281
28282 cat >conftest.$ac_ext <<_ACEOF
28283/* confdefs.h. */
28284_ACEOF
28285cat confdefs.h >>conftest.$ac_ext
28286cat >>conftest.$ac_ext <<_ACEOF
28287/* end confdefs.h. */
28288#include <pwd.h>
28289int
28290main ()
28291{
28292
28293 char *p;
28294 struct passwd *pw;
28295 p = pw->pw_gecos;
28296
28297 ;
28298 return 0;
28299}
28300_ACEOF
28301rm -f conftest.$ac_objext
28302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28303 (eval $ac_compile) 2>conftest.er1
a848cd7e 28304 ac_status=$?
ac1cb8d3
VS
28305 grep -v '^ *+' conftest.er1 >conftest.err
28306 rm -f conftest.er1
28307 cat conftest.err >&5
a848cd7e
SC
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } &&
4d4ff94c 28310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; } &&
28316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28318 (eval $ac_try) 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322
28323 wx_cv_struct_pw_gecos=yes
28324
28325else
28326 echo "$as_me: failed program was:" >&5
28327sed 's/^/| /' conftest.$ac_ext >&5
28328
28329
28330 wx_cv_struct_pw_gecos=no
28331
28332
28333fi
ac1cb8d3 28334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28335
28336
28337fi
28338echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28339echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28340
28341if test "$wx_cv_struct_pw_gecos" = "yes"; then
28342 cat >>confdefs.h <<\_ACEOF
28343#define HAVE_PW_GECOS 1
28344_ACEOF
28345
28346fi
28347
28348
28349if test "$wx_cv_sizeof_wchar_t" != "0"; then
28350 cat >>confdefs.h <<\_ACEOF
28351#define wxUSE_WCHAR_T 1
28352_ACEOF
28353
28354
28355 WCSLEN_FOUND=0
28356 WCHAR_LINK=
28357
28358for ac_func in wcslen
28359do
28360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361echo "$as_me:$LINENO: checking for $ac_func" >&5
28362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28363if eval "test \"\${$as_ac_var+set}\" = set"; then
28364 echo $ECHO_N "(cached) $ECHO_C" >&6
28365else
28366 cat >conftest.$ac_ext <<_ACEOF
28367/* confdefs.h. */
28368_ACEOF
28369cat confdefs.h >>conftest.$ac_ext
28370cat >>conftest.$ac_ext <<_ACEOF
28371/* end confdefs.h. */
ac1cb8d3
VS
28372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28374#define $ac_func innocuous_$ac_func
28375
a848cd7e
SC
28376/* System header to define __stub macros and hopefully few prototypes,
28377 which can conflict with char $ac_func (); below.
28378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28379 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28380
a848cd7e
SC
28381#ifdef __STDC__
28382# include <limits.h>
28383#else
28384# include <assert.h>
28385#endif
ac1cb8d3
VS
28386
28387#undef $ac_func
28388
a848cd7e
SC
28389/* Override any gcc2 internal prototype to avoid an error. */
28390#ifdef __cplusplus
28391extern "C"
28392{
28393#endif
28394/* We use char because int might match the return type of a gcc2
28395 builtin and then its argument prototype would still apply. */
28396char $ac_func ();
28397/* The GNU C library defines this for functions which it implements
28398 to always fail with ENOSYS. Some functions are actually named
28399 something starting with __ and the normal name is an alias. */
28400#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28401choke me
28402#else
28403char (*f) () = $ac_func;
28404#endif
28405#ifdef __cplusplus
28406}
28407#endif
28408
28409int
28410main ()
28411{
28412return f != $ac_func;
28413 ;
28414 return 0;
28415}
28416_ACEOF
28417rm -f conftest.$ac_objext conftest$ac_exeext
28418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28419 (eval $ac_link) 2>conftest.er1
a848cd7e 28420 ac_status=$?
ac1cb8d3
VS
28421 grep -v '^ *+' conftest.er1 >conftest.err
28422 rm -f conftest.er1
28423 cat conftest.err >&5
a848cd7e
SC
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } &&
4d4ff94c 28426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; } &&
28432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); }; }; then
28438 eval "$as_ac_var=yes"
28439else
28440 echo "$as_me: failed program was:" >&5
28441sed 's/^/| /' conftest.$ac_ext >&5
28442
28443eval "$as_ac_var=no"
28444fi
ac1cb8d3
VS
28445rm -f conftest.err conftest.$ac_objext \
28446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28447fi
28448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28450if test `eval echo '${'$as_ac_var'}'` = yes; then
28451 cat >>confdefs.h <<_ACEOF
28452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28453_ACEOF
28454 WCSLEN_FOUND=1
28455fi
28456done
28457
28458
28459 if test "$WCSLEN_FOUND" = 0; then
28460 if test "$TOOLKIT" = "MSW"; then
28461 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28462echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28463if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28465else
28466 ac_check_lib_save_LIBS=$LIBS
28467LIBS="-lmsvcrt $LIBS"
28468cat >conftest.$ac_ext <<_ACEOF
28469/* confdefs.h. */
28470_ACEOF
28471cat confdefs.h >>conftest.$ac_ext
28472cat >>conftest.$ac_ext <<_ACEOF
28473/* end confdefs.h. */
28474
28475/* Override any gcc2 internal prototype to avoid an error. */
28476#ifdef __cplusplus
28477extern "C"
28478#endif
28479/* We use char because int might match the return type of a gcc2
28480 builtin and then its argument prototype would still apply. */
28481char wcslen ();
28482int
28483main ()
28484{
28485wcslen ();
28486 ;
28487 return 0;
28488}
28489_ACEOF
28490rm -f conftest.$ac_objext conftest$ac_exeext
28491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28492 (eval $ac_link) 2>conftest.er1
a848cd7e 28493 ac_status=$?
ac1cb8d3
VS
28494 grep -v '^ *+' conftest.er1 >conftest.err
28495 rm -f conftest.er1
28496 cat conftest.err >&5
a848cd7e
SC
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } &&
4d4ff94c 28499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501 (eval $ac_try) 2>&5
28502 ac_status=$?
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; } &&
28505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
28511 ac_cv_lib_msvcrt_wcslen=yes
28512else
28513 echo "$as_me: failed program was:" >&5
28514sed 's/^/| /' conftest.$ac_ext >&5
28515
28516ac_cv_lib_msvcrt_wcslen=no
28517fi
ac1cb8d3
VS
28518rm -f conftest.err conftest.$ac_objext \
28519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28520LIBS=$ac_check_lib_save_LIBS
28521fi
28522echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28523echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28524if test $ac_cv_lib_msvcrt_wcslen = yes; then
28525 WCHAR_OK=1
28526fi
28527
28528 else
28529 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28530echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28531if test "${ac_cv_lib_w_wcslen+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28533else
28534 ac_check_lib_save_LIBS=$LIBS
28535LIBS="-lw $LIBS"
28536cat >conftest.$ac_ext <<_ACEOF
28537/* confdefs.h. */
28538_ACEOF
28539cat confdefs.h >>conftest.$ac_ext
28540cat >>conftest.$ac_ext <<_ACEOF
28541/* end confdefs.h. */
28542
28543/* Override any gcc2 internal prototype to avoid an error. */
28544#ifdef __cplusplus
28545extern "C"
28546#endif
28547/* We use char because int might match the return type of a gcc2
28548 builtin and then its argument prototype would still apply. */
28549char wcslen ();
28550int
28551main ()
28552{
28553wcslen ();
28554 ;
28555 return 0;
28556}
28557_ACEOF
28558rm -f conftest.$ac_objext conftest$ac_exeext
28559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28560 (eval $ac_link) 2>conftest.er1
a848cd7e 28561 ac_status=$?
ac1cb8d3
VS
28562 grep -v '^ *+' conftest.er1 >conftest.err
28563 rm -f conftest.er1
28564 cat conftest.err >&5
a848cd7e
SC
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
4d4ff94c 28567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 ac_cv_lib_w_wcslen=yes
28580else
28581 echo "$as_me: failed program was:" >&5
28582sed 's/^/| /' conftest.$ac_ext >&5
28583
28584ac_cv_lib_w_wcslen=no
28585fi
ac1cb8d3
VS
28586rm -f conftest.err conftest.$ac_objext \
28587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28588LIBS=$ac_check_lib_save_LIBS
28589fi
28590echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28591echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28592if test $ac_cv_lib_w_wcslen = yes; then
28593
28594 WCHAR_LINK=" -lw"
28595 WCSLEN_FOUND=1
28596
28597fi
28598
28599 fi
28600 fi
28601
28602 if test "$WCSLEN_FOUND" = 1; then
28603 cat >>confdefs.h <<\_ACEOF
28604#define HAVE_WCSLEN 1
28605_ACEOF
28606
28607 fi
28608
473276a9
VS
28609 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28610 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28611 fi
28612
a848cd7e
SC
28613
28614for ac_func in wcsrtombs
28615do
28616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28617echo "$as_me:$LINENO: checking for $ac_func" >&5
28618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28619if eval "test \"\${$as_ac_var+set}\" = set"; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28621else
28622 cat >conftest.$ac_ext <<_ACEOF
28623/* confdefs.h. */
28624_ACEOF
28625cat confdefs.h >>conftest.$ac_ext
28626cat >>conftest.$ac_ext <<_ACEOF
28627/* end confdefs.h. */
ac1cb8d3
VS
28628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28630#define $ac_func innocuous_$ac_func
28631
a848cd7e
SC
28632/* System header to define __stub macros and hopefully few prototypes,
28633 which can conflict with char $ac_func (); below.
28634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28635 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28636
a848cd7e
SC
28637#ifdef __STDC__
28638# include <limits.h>
28639#else
28640# include <assert.h>
28641#endif
ac1cb8d3
VS
28642
28643#undef $ac_func
28644
a848cd7e
SC
28645/* Override any gcc2 internal prototype to avoid an error. */
28646#ifdef __cplusplus
28647extern "C"
28648{
28649#endif
28650/* We use char because int might match the return type of a gcc2
28651 builtin and then its argument prototype would still apply. */
28652char $ac_func ();
28653/* The GNU C library defines this for functions which it implements
28654 to always fail with ENOSYS. Some functions are actually named
28655 something starting with __ and the normal name is an alias. */
28656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28657choke me
28658#else
28659char (*f) () = $ac_func;
28660#endif
28661#ifdef __cplusplus
28662}
28663#endif
28664
28665int
28666main ()
28667{
28668return f != $ac_func;
28669 ;
28670 return 0;
28671}
28672_ACEOF
28673rm -f conftest.$ac_objext conftest$ac_exeext
28674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28675 (eval $ac_link) 2>conftest.er1
a848cd7e 28676 ac_status=$?
ac1cb8d3
VS
28677 grep -v '^ *+' conftest.er1 >conftest.err
28678 rm -f conftest.er1
28679 cat conftest.err >&5
a848cd7e
SC
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
4d4ff94c 28682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28684 (eval $ac_try) 2>&5
28685 ac_status=$?
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); }; } &&
28688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28691 ac_status=$?
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; }; then
28694 eval "$as_ac_var=yes"
28695else
28696 echo "$as_me: failed program was:" >&5
28697sed 's/^/| /' conftest.$ac_ext >&5
28698
28699eval "$as_ac_var=no"
28700fi
ac1cb8d3
VS
28701rm -f conftest.err conftest.$ac_objext \
28702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28703fi
28704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28706if test `eval echo '${'$as_ac_var'}'` = yes; then
28707 cat >>confdefs.h <<_ACEOF
28708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28709_ACEOF
28710
28711fi
28712done
28713
28714else
28715 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28716echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28717fi
28718
28719
28720
28721ac_ext=cc
28722ac_cpp='$CXXCPP $CPPFLAGS'
28723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28726
28727
28728
28729for ac_func in vsnprintf
28730do
28731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28732echo "$as_me:$LINENO: checking for $ac_func" >&5
28733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28734if eval "test \"\${$as_ac_var+set}\" = set"; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28736else
28737 cat >conftest.$ac_ext <<_ACEOF
28738/* confdefs.h. */
28739_ACEOF
28740cat confdefs.h >>conftest.$ac_ext
28741cat >>conftest.$ac_ext <<_ACEOF
28742/* end confdefs.h. */
ac1cb8d3
VS
28743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28745#define $ac_func innocuous_$ac_func
28746
a848cd7e
SC
28747/* System header to define __stub macros and hopefully few prototypes,
28748 which can conflict with char $ac_func (); below.
28749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28750 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28751
a848cd7e
SC
28752#ifdef __STDC__
28753# include <limits.h>
28754#else
28755# include <assert.h>
28756#endif
ac1cb8d3
VS
28757
28758#undef $ac_func
28759
a848cd7e
SC
28760/* Override any gcc2 internal prototype to avoid an error. */
28761#ifdef __cplusplus
28762extern "C"
28763{
28764#endif
28765/* We use char because int might match the return type of a gcc2
28766 builtin and then its argument prototype would still apply. */
28767char $ac_func ();
28768/* The GNU C library defines this for functions which it implements
28769 to always fail with ENOSYS. Some functions are actually named
28770 something starting with __ and the normal name is an alias. */
28771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28772choke me
28773#else
28774char (*f) () = $ac_func;
28775#endif
28776#ifdef __cplusplus
28777}
28778#endif
28779
28780int
28781main ()
28782{
28783return f != $ac_func;
28784 ;
28785 return 0;
28786}
28787_ACEOF
28788rm -f conftest.$ac_objext conftest$ac_exeext
28789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28790 (eval $ac_link) 2>conftest.er1
a848cd7e 28791 ac_status=$?
ac1cb8d3
VS
28792 grep -v '^ *+' conftest.er1 >conftest.err
28793 rm -f conftest.er1
28794 cat conftest.err >&5
a848cd7e
SC
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
4d4ff94c 28797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28799 (eval $ac_try) 2>&5
28800 ac_status=$?
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); }; } &&
28803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; }; then
28809 eval "$as_ac_var=yes"
28810else
28811 echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
28814eval "$as_ac_var=no"
28815fi
ac1cb8d3
VS
28816rm -f conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28818fi
28819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28821if test `eval echo '${'$as_ac_var'}'` = yes; then
28822 cat >>confdefs.h <<_ACEOF
28823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28824_ACEOF
28825
28826fi
28827done
28828
28829
28830if test "$ac_cv_func_vsnprintf" = "yes"; then
28831 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28832echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28833if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28834 echo $ECHO_N "(cached) $ECHO_C" >&6
28835else
28836
28837 cat >conftest.$ac_ext <<_ACEOF
28838/* confdefs.h. */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h. */
28843
28844 #include <stdio.h>
28845 #include <stdarg.h>
28846
28847int
28848main ()
28849{
28850
28851 char *buf;
28852 va_list ap;
28853 vsnprintf(buf, 10u, "%s", ap);
28854
28855 ;
28856 return 0;
28857}
28858_ACEOF
28859rm -f conftest.$ac_objext
28860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28861 (eval $ac_compile) 2>conftest.er1
a848cd7e 28862 ac_status=$?
ac1cb8d3
VS
28863 grep -v '^ *+' conftest.er1 >conftest.err
28864 rm -f conftest.er1
28865 cat conftest.err >&5
a848cd7e
SC
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
4d4ff94c 28868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870 (eval $ac_try) 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; } &&
28874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; }; then
28880 wx_cv_func_vsnprintf_decl=yes
28881else
28882 echo "$as_me: failed program was:" >&5
28883sed 's/^/| /' conftest.$ac_ext >&5
28884
28885wx_cv_func_vsnprintf_decl=no
28886
28887fi
ac1cb8d3 28888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28889
28890
28891fi
28892echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28893echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28894
28895 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28896 cat >>confdefs.h <<\_ACEOF
28897#define HAVE_VSNPRINTF_DECL 1
28898_ACEOF
28899
28900 fi
28901fi
28902
28903if test "$wxUSE_UNICODE" = yes; then
28904
28905
28906
fbe47c7b
VS
28907
28908
28909
28910for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
28911do
28912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28913echo "$as_me:$LINENO: checking for $ac_func" >&5
28914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28915if eval "test \"\${$as_ac_var+set}\" = set"; then
28916 echo $ECHO_N "(cached) $ECHO_C" >&6
28917else
28918 cat >conftest.$ac_ext <<_ACEOF
28919/* confdefs.h. */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h. */
ac1cb8d3
VS
28924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28926#define $ac_func innocuous_$ac_func
28927
a848cd7e
SC
28928/* System header to define __stub macros and hopefully few prototypes,
28929 which can conflict with char $ac_func (); below.
28930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28931 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28932
a848cd7e
SC
28933#ifdef __STDC__
28934# include <limits.h>
28935#else
28936# include <assert.h>
28937#endif
ac1cb8d3
VS
28938
28939#undef $ac_func
28940
a848cd7e
SC
28941/* Override any gcc2 internal prototype to avoid an error. */
28942#ifdef __cplusplus
28943extern "C"
28944{
28945#endif
28946/* We use char because int might match the return type of a gcc2
28947 builtin and then its argument prototype would still apply. */
28948char $ac_func ();
28949/* The GNU C library defines this for functions which it implements
28950 to always fail with ENOSYS. Some functions are actually named
28951 something starting with __ and the normal name is an alias. */
28952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28953choke me
28954#else
28955char (*f) () = $ac_func;
28956#endif
28957#ifdef __cplusplus
28958}
28959#endif
28960
28961int
28962main ()
28963{
28964return f != $ac_func;
28965 ;
28966 return 0;
28967}
28968_ACEOF
28969rm -f conftest.$ac_objext conftest$ac_exeext
28970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28971 (eval $ac_link) 2>conftest.er1
a848cd7e 28972 ac_status=$?
ac1cb8d3
VS
28973 grep -v '^ *+' conftest.er1 >conftest.err
28974 rm -f conftest.er1
28975 cat conftest.err >&5
a848cd7e
SC
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } &&
4d4ff94c 28978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980 (eval $ac_try) 2>&5
28981 ac_status=$?
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); }; } &&
28984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28986 (eval $ac_try) 2>&5
28987 ac_status=$?
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; }; then
28990 eval "$as_ac_var=yes"
28991else
28992 echo "$as_me: failed program was:" >&5
28993sed 's/^/| /' conftest.$ac_ext >&5
28994
28995eval "$as_ac_var=no"
28996fi
ac1cb8d3
VS
28997rm -f conftest.err conftest.$ac_objext \
28998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28999fi
29000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29002if test `eval echo '${'$as_ac_var'}'` = yes; then
29003 cat >>confdefs.h <<_ACEOF
29004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29005_ACEOF
29006
29007fi
29008done
29009
29010
29011 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29012echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29013 cat >conftest.$ac_ext <<_ACEOF
29014/* confdefs.h. */
29015_ACEOF
29016cat confdefs.h >>conftest.$ac_ext
29017cat >>conftest.$ac_ext <<_ACEOF
29018/* end confdefs.h. */
29019#include <wchar.h>
29020int
29021main ()
29022{
29023&_vsnwprintf;
29024 ;
29025 return 0;
29026}
29027_ACEOF
29028rm -f conftest.$ac_objext
29029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29030 (eval $ac_compile) 2>conftest.er1
a848cd7e 29031 ac_status=$?
ac1cb8d3
VS
29032 grep -v '^ *+' conftest.er1 >conftest.err
29033 rm -f conftest.er1
29034 cat conftest.err >&5
a848cd7e
SC
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
4d4ff94c 29037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039 (eval $ac_try) 2>&5
29040 ac_status=$?
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); }; } &&
29043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29046 ac_status=$?
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; }; then
29049 echo "$as_me:$LINENO: result: yes" >&5
29050echo "${ECHO_T}yes" >&6
29051 cat >>confdefs.h <<\_ACEOF
29052#define HAVE__VSNWPRINTF 1
29053_ACEOF
29054
29055else
29056 echo "$as_me: failed program was:" >&5
29057sed 's/^/| /' conftest.$ac_ext >&5
29058
29059echo "$as_me:$LINENO: result: no" >&5
29060echo "${ECHO_T}no" >&6
29061fi
ac1cb8d3 29062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29063fi
29064
29065ac_ext=c
29066ac_cpp='$CPP $CPPFLAGS'
29067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29069ac_compiler_gnu=$ac_cv_c_compiler_gnu
29070
29071
29072
29073
29074if test "$TOOLKIT" != "MSW"; then
29075
29076
29077
29078
29079ac_ext=cc
29080ac_cpp='$CXXCPP $CPPFLAGS'
29081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29084
29085
29086
29087
29088# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29089if test "${with_libiconv_prefix+set}" = set; then
29090 withval="$with_libiconv_prefix"
29091
29092 for dir in `echo "$withval" | tr : ' '`; do
29093 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29094 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29095 done
29096
29097fi;
29098
29099 echo "$as_me:$LINENO: checking for iconv" >&5
29100echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29101if test "${am_cv_func_iconv+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29103else
29104
29105 am_cv_func_iconv="no, consider installing GNU libiconv"
29106 am_cv_lib_iconv=no
29107 cat >conftest.$ac_ext <<_ACEOF
29108/* confdefs.h. */
29109_ACEOF
29110cat confdefs.h >>conftest.$ac_ext
29111cat >>conftest.$ac_ext <<_ACEOF
29112/* end confdefs.h. */
29113#include <stdlib.h>
29114#include <iconv.h>
29115int
29116main ()
29117{
29118iconv_t cd = iconv_open("","");
29119 iconv(cd,NULL,NULL,NULL,NULL);
29120 iconv_close(cd);
29121 ;
29122 return 0;
29123}
29124_ACEOF
29125rm -f conftest.$ac_objext conftest$ac_exeext
29126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29127 (eval $ac_link) 2>conftest.er1
a848cd7e 29128 ac_status=$?
ac1cb8d3
VS
29129 grep -v '^ *+' conftest.er1 >conftest.err
29130 rm -f conftest.er1
29131 cat conftest.err >&5
a848cd7e
SC
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); } &&
4d4ff94c 29134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; } &&
29140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29143 ac_status=$?
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; }; then
29146 am_cv_func_iconv=yes
29147else
29148 echo "$as_me: failed program was:" >&5
29149sed 's/^/| /' conftest.$ac_ext >&5
29150
29151fi
ac1cb8d3
VS
29152rm -f conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29154 if test "$am_cv_func_iconv" != yes; then
29155 am_save_LIBS="$LIBS"
29156 LIBS="$LIBS -liconv"
29157 cat >conftest.$ac_ext <<_ACEOF
29158/* confdefs.h. */
29159_ACEOF
29160cat confdefs.h >>conftest.$ac_ext
29161cat >>conftest.$ac_ext <<_ACEOF
29162/* end confdefs.h. */
29163#include <stdlib.h>
29164#include <iconv.h>
29165int
29166main ()
29167{
29168iconv_t cd = iconv_open("","");
29169 iconv(cd,NULL,NULL,NULL,NULL);
29170 iconv_close(cd);
29171 ;
29172 return 0;
29173}
29174_ACEOF
29175rm -f conftest.$ac_objext conftest$ac_exeext
29176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29177 (eval $ac_link) 2>conftest.er1
a848cd7e 29178 ac_status=$?
ac1cb8d3
VS
29179 grep -v '^ *+' conftest.er1 >conftest.err
29180 rm -f conftest.er1
29181 cat conftest.err >&5
a848cd7e
SC
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); } &&
4d4ff94c 29184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 am_cv_lib_iconv=yes
29197 am_cv_func_iconv=yes
29198else
29199 echo "$as_me: failed program was:" >&5
29200sed 's/^/| /' conftest.$ac_ext >&5
29201
29202fi
ac1cb8d3
VS
29203rm -f conftest.err conftest.$ac_objext \
29204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29205 LIBS="$am_save_LIBS"
29206 fi
29207
29208fi
29209echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29210echo "${ECHO_T}$am_cv_func_iconv" >&6
29211 if test "$am_cv_func_iconv" = yes; then
29212
29213cat >>confdefs.h <<\_ACEOF
29214#define HAVE_ICONV 1
29215_ACEOF
29216
29217 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29218echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29219if test "${wx_cv_func_iconv_const+set}" = set; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29221else
29222 cat >conftest.$ac_ext <<_ACEOF
29223/* confdefs.h. */
29224_ACEOF
29225cat confdefs.h >>conftest.$ac_ext
29226cat >>conftest.$ac_ext <<_ACEOF
29227/* end confdefs.h. */
29228
29229#include <stdlib.h>
29230#include <iconv.h>
29231extern
29232#ifdef __cplusplus
29233"C"
29234#endif
29235#if defined(__STDC__) || defined(__cplusplus)
29236size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29237#else
29238size_t iconv();
29239#endif
29240
29241int
29242main ()
29243{
29244
29245 ;
29246 return 0;
29247}
29248_ACEOF
29249rm -f conftest.$ac_objext
29250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29251 (eval $ac_compile) 2>conftest.er1
a848cd7e 29252 ac_status=$?
ac1cb8d3
VS
29253 grep -v '^ *+' conftest.er1 >conftest.err
29254 rm -f conftest.er1
29255 cat conftest.err >&5
a848cd7e
SC
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); } &&
4d4ff94c 29258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; } &&
29264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266 (eval $ac_try) 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; }; then
29270 wx_cv_func_iconv_const="no"
29271else
29272 echo "$as_me: failed program was:" >&5
29273sed 's/^/| /' conftest.$ac_ext >&5
29274
29275wx_cv_func_iconv_const="yes"
29276
29277fi
ac1cb8d3 29278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29279
29280fi
29281echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29282echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29283
29284 iconv_const=
29285 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29286 iconv_const="const"
29287 fi
29288
29289
29290cat >>confdefs.h <<_ACEOF
29291#define ICONV_CONST $iconv_const
29292_ACEOF
29293
29294 fi
29295 LIBICONV=
29296 if test "$am_cv_lib_iconv" = yes; then
29297 LIBICONV="-liconv"
29298 fi
29299
29300
29301LIBS="$LIBICONV $LIBS"
29302ac_ext=c
29303ac_cpp='$CPP $CPPFLAGS'
29304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29306ac_compiler_gnu=$ac_cv_c_compiler_gnu
29307
29308
29309if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29310
29311for ac_func in sigaction
29312do
29313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29314echo "$as_me:$LINENO: checking for $ac_func" >&5
29315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29316if eval "test \"\${$as_ac_var+set}\" = set"; then
29317 echo $ECHO_N "(cached) $ECHO_C" >&6
29318else
29319 cat >conftest.$ac_ext <<_ACEOF
29320/* confdefs.h. */
29321_ACEOF
29322cat confdefs.h >>conftest.$ac_ext
29323cat >>conftest.$ac_ext <<_ACEOF
29324/* end confdefs.h. */
ac1cb8d3
VS
29325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29327#define $ac_func innocuous_$ac_func
29328
a848cd7e
SC
29329/* System header to define __stub macros and hopefully few prototypes,
29330 which can conflict with char $ac_func (); below.
29331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29332 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29333
a848cd7e
SC
29334#ifdef __STDC__
29335# include <limits.h>
29336#else
29337# include <assert.h>
29338#endif
ac1cb8d3
VS
29339
29340#undef $ac_func
29341
a848cd7e
SC
29342/* Override any gcc2 internal prototype to avoid an error. */
29343#ifdef __cplusplus
29344extern "C"
29345{
29346#endif
29347/* We use char because int might match the return type of a gcc2
29348 builtin and then its argument prototype would still apply. */
29349char $ac_func ();
29350/* The GNU C library defines this for functions which it implements
29351 to always fail with ENOSYS. Some functions are actually named
29352 something starting with __ and the normal name is an alias. */
29353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29354choke me
29355#else
29356char (*f) () = $ac_func;
29357#endif
29358#ifdef __cplusplus
29359}
29360#endif
29361
29362int
29363main ()
29364{
29365return f != $ac_func;
29366 ;
29367 return 0;
29368}
29369_ACEOF
29370rm -f conftest.$ac_objext conftest$ac_exeext
29371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29372 (eval $ac_link) 2>conftest.er1
a848cd7e 29373 ac_status=$?
ac1cb8d3
VS
29374 grep -v '^ *+' conftest.er1 >conftest.err
29375 rm -f conftest.er1
29376 cat conftest.err >&5
a848cd7e
SC
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
4d4ff94c 29379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 eval "$as_ac_var=yes"
29392else
29393 echo "$as_me: failed program was:" >&5
29394sed 's/^/| /' conftest.$ac_ext >&5
29395
29396eval "$as_ac_var=no"
29397fi
ac1cb8d3
VS
29398rm -f conftest.err conftest.$ac_objext \
29399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29400fi
29401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29403if test `eval echo '${'$as_ac_var'}'` = yes; then
29404 cat >>confdefs.h <<_ACEOF
29405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29406_ACEOF
29407
29408fi
29409done
29410
29411
29412 if test "$ac_cv_func_sigaction" = "no"; then
29413 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29414echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29415 wxUSE_ON_FATAL_EXCEPTION=no
29416 fi
29417
29418 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29419
29420
29421 ac_ext=cc
29422ac_cpp='$CXXCPP $CPPFLAGS'
29423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29426
29427
29428 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29429echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29430if test "${wx_cv_type_sa_handler+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432else
29433
29434 cat >conftest.$ac_ext <<_ACEOF
29435/* confdefs.h. */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h. */
29440#include <signal.h>
29441int
29442main ()
29443{
29444
29445 extern void testSigHandler(int);
29446
29447 struct sigaction sa;
29448 sa.sa_handler = testSigHandler;
29449
29450 ;
29451 return 0;
29452}
29453_ACEOF
29454rm -f conftest.$ac_objext
29455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29456 (eval $ac_compile) 2>conftest.er1
a848cd7e 29457 ac_status=$?
ac1cb8d3
VS
29458 grep -v '^ *+' conftest.er1 >conftest.err
29459 rm -f conftest.er1
29460 cat conftest.err >&5
a848cd7e
SC
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } &&
4d4ff94c 29463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471 (eval $ac_try) 2>&5
29472 ac_status=$?
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; }; then
29475
29476 wx_cv_type_sa_handler=int
29477
29478else
29479 echo "$as_me: failed program was:" >&5
29480sed 's/^/| /' conftest.$ac_ext >&5
29481
29482
29483 wx_cv_type_sa_handler=void
29484
29485fi
ac1cb8d3 29486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29487
29488fi
29489echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29490echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29491
29492 ac_ext=c
29493ac_cpp='$CPP $CPPFLAGS'
29494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29496ac_compiler_gnu=$ac_cv_c_compiler_gnu
29497
29498
29499 cat >>confdefs.h <<_ACEOF
29500#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29501_ACEOF
29502
29503 fi
29504fi
29505
29506
29507
29508for ac_func in mkstemp mktemp
29509do
29510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29511echo "$as_me:$LINENO: checking for $ac_func" >&5
29512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29513if eval "test \"\${$as_ac_var+set}\" = set"; then
29514 echo $ECHO_N "(cached) $ECHO_C" >&6
29515else
29516 cat >conftest.$ac_ext <<_ACEOF
29517/* confdefs.h. */
29518_ACEOF
29519cat confdefs.h >>conftest.$ac_ext
29520cat >>conftest.$ac_ext <<_ACEOF
29521/* end confdefs.h. */
ac1cb8d3
VS
29522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29524#define $ac_func innocuous_$ac_func
29525
a848cd7e
SC
29526/* System header to define __stub macros and hopefully few prototypes,
29527 which can conflict with char $ac_func (); below.
29528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29529 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29530
a848cd7e
SC
29531#ifdef __STDC__
29532# include <limits.h>
29533#else
29534# include <assert.h>
29535#endif
ac1cb8d3
VS
29536
29537#undef $ac_func
29538
a848cd7e
SC
29539/* Override any gcc2 internal prototype to avoid an error. */
29540#ifdef __cplusplus
29541extern "C"
29542{
29543#endif
29544/* We use char because int might match the return type of a gcc2
29545 builtin and then its argument prototype would still apply. */
29546char $ac_func ();
29547/* The GNU C library defines this for functions which it implements
29548 to always fail with ENOSYS. Some functions are actually named
29549 something starting with __ and the normal name is an alias. */
29550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29551choke me
29552#else
29553char (*f) () = $ac_func;
29554#endif
29555#ifdef __cplusplus
29556}
29557#endif
29558
29559int
29560main ()
29561{
29562return f != $ac_func;
29563 ;
29564 return 0;
29565}
29566_ACEOF
29567rm -f conftest.$ac_objext conftest$ac_exeext
29568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29569 (eval $ac_link) 2>conftest.er1
a848cd7e 29570 ac_status=$?
ac1cb8d3
VS
29571 grep -v '^ *+' conftest.er1 >conftest.err
29572 rm -f conftest.er1
29573 cat conftest.err >&5
a848cd7e
SC
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); } &&
4d4ff94c 29576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; } &&
29582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584 (eval $ac_try) 2>&5
29585 ac_status=$?
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; }; then
29588 eval "$as_ac_var=yes"
29589else
29590 echo "$as_me: failed program was:" >&5
29591sed 's/^/| /' conftest.$ac_ext >&5
29592
29593eval "$as_ac_var=no"
29594fi
ac1cb8d3
VS
29595rm -f conftest.err conftest.$ac_objext \
29596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29597fi
29598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29600if test `eval echo '${'$as_ac_var'}'` = yes; then
29601 cat >>confdefs.h <<_ACEOF
29602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29603_ACEOF
29604 break
29605fi
29606done
29607
29608
29609echo "$as_me:$LINENO: checking for statfs" >&5
29610echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29611if test "${wx_cv_func_statfs+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29613else
29614 cat >conftest.$ac_ext <<_ACEOF
29615/* confdefs.h. */
29616_ACEOF
29617cat confdefs.h >>conftest.$ac_ext
29618cat >>conftest.$ac_ext <<_ACEOF
29619/* end confdefs.h. */
29620
29621 #if defined(__BSD__)
29622 #include <sys/param.h>
29623 #include <sys/mount.h>
29624 #else
29625 #include <sys/vfs.h>
29626 #endif
29627
29628int
29629main ()
29630{
29631
29632 long l;
29633 struct statfs fs;
29634 statfs("/", &fs);
29635 l = fs.f_bsize;
29636 l += fs.f_blocks;
29637 l += fs.f_bavail;
29638
29639 ;
29640 return 0;
29641}
29642_ACEOF
29643rm -f conftest.$ac_objext
29644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29645 (eval $ac_compile) 2>conftest.er1
a848cd7e 29646 ac_status=$?
ac1cb8d3
VS
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
a848cd7e
SC
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
4d4ff94c 29652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; } &&
29658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29664
29665 wx_cv_func_statfs=yes
29666
29667else
29668 echo "$as_me: failed program was:" >&5
29669sed 's/^/| /' conftest.$ac_ext >&5
29670
29671
29672 wx_cv_func_statfs=no
29673
29674
29675fi
ac1cb8d3 29676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29677
29678fi
29679echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29680echo "${ECHO_T}$wx_cv_func_statfs" >&6
29681
29682if test "$wx_cv_func_statfs" = "yes"; then
29683 wx_cv_type_statvfs_t="struct statfs"
29684 cat >>confdefs.h <<\_ACEOF
29685#define HAVE_STATFS 1
29686_ACEOF
29687
29688else
29689 echo "$as_me:$LINENO: checking for statvfs" >&5
29690echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29691if test "${wx_cv_func_statvfs+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29693else
29694 cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h. */
29700
29701 #include <stddef.h>
29702 #include <sys/statvfs.h>
29703
29704int
29705main ()
29706{
29707
29708 statvfs("/", NULL);
29709
29710 ;
29711 return 0;
29712}
29713_ACEOF
29714rm -f conftest.$ac_objext
29715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29716 (eval $ac_compile) 2>conftest.er1
a848cd7e 29717 ac_status=$?
ac1cb8d3
VS
29718 grep -v '^ *+' conftest.er1 >conftest.err
29719 rm -f conftest.er1
29720 cat conftest.err >&5
a848cd7e
SC
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } &&
4d4ff94c 29723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725 (eval $ac_try) 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; } &&
29729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29731 (eval $ac_try) 2>&5
29732 ac_status=$?
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 wx_cv_func_statvfs=yes
29736else
29737 echo "$as_me: failed program was:" >&5
29738sed 's/^/| /' conftest.$ac_ext >&5
29739
29740wx_cv_func_statvfs=no
29741
29742fi
ac1cb8d3 29743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29744
29745fi
29746echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29747echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29748
29749 if test "$wx_cv_func_statvfs" = "yes"; then
29750
29751
29752 ac_ext=cc
29753ac_cpp='$CXXCPP $CPPFLAGS'
29754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29757
29758
29759 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29760echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29761if test "${wx_cv_type_statvfs_t+set}" = set; then
29762 echo $ECHO_N "(cached) $ECHO_C" >&6
29763else
29764 cat >conftest.$ac_ext <<_ACEOF
29765/* confdefs.h. */
29766_ACEOF
29767cat confdefs.h >>conftest.$ac_ext
29768cat >>conftest.$ac_ext <<_ACEOF
29769/* end confdefs.h. */
29770
29771 #include <sys/statvfs.h>
29772
29773int
29774main ()
29775{
29776
29777 long l;
29778 statvfs_t fs;
29779 statvfs("/", &fs);
29780 l = fs.f_bsize;
29781 l += fs.f_blocks;
29782 l += fs.f_bavail;
29783
29784 ;
29785 return 0;
29786}
29787_ACEOF
29788rm -f conftest.$ac_objext
29789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29790 (eval $ac_compile) 2>conftest.er1
a848cd7e 29791 ac_status=$?
ac1cb8d3
VS
29792 grep -v '^ *+' conftest.er1 >conftest.err
29793 rm -f conftest.er1
29794 cat conftest.err >&5
a848cd7e
SC
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } &&
4d4ff94c 29797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799 (eval $ac_try) 2>&5
29800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; }; then
29809 wx_cv_type_statvfs_t=statvfs_t
29810else
29811 echo "$as_me: failed program was:" >&5
29812sed 's/^/| /' conftest.$ac_ext >&5
29813
29814
29815 cat >conftest.$ac_ext <<_ACEOF
29816/* confdefs.h. */
29817_ACEOF
29818cat confdefs.h >>conftest.$ac_ext
29819cat >>conftest.$ac_ext <<_ACEOF
29820/* end confdefs.h. */
29821
29822 #include <sys/statvfs.h>
29823
29824int
29825main ()
29826{
29827
29828 long l;
29829 struct statvfs fs;
29830 statvfs("/", &fs);
29831 l = fs.f_bsize;
29832 l += fs.f_blocks;
29833 l += fs.f_bavail;
29834
29835 ;
29836 return 0;
29837}
29838_ACEOF
29839rm -f conftest.$ac_objext
29840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29841 (eval $ac_compile) 2>conftest.er1
a848cd7e 29842 ac_status=$?
ac1cb8d3
VS
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
a848cd7e
SC
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); } &&
4d4ff94c 29848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29851 ac_status=$?
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; } &&
29854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 wx_cv_type_statvfs_t="struct statvfs"
29861else
29862 echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865wx_cv_type_statvfs_t="unknown"
29866
29867fi
ac1cb8d3 29868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29869
29870
29871fi
ac1cb8d3 29872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29873
29874fi
29875echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29876echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29877
29878 ac_ext=c
29879ac_cpp='$CPP $CPPFLAGS'
29880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29882ac_compiler_gnu=$ac_cv_c_compiler_gnu
29883
29884
29885 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29886 cat >>confdefs.h <<\_ACEOF
29887#define HAVE_STATVFS 1
29888_ACEOF
29889
29890 fi
29891 else
29892 wx_cv_type_statvfs_t="unknown"
29893 fi
29894fi
29895
29896if test "$wx_cv_type_statvfs_t" != "unknown"; then
29897 cat >>confdefs.h <<_ACEOF
29898#define WX_STATFS_T $wx_cv_type_statvfs_t
29899_ACEOF
29900
29901else
29902 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29903echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
29904fi
29905
29906if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29907
29908
29909for ac_func in fcntl flock
29910do
29911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29912echo "$as_me:$LINENO: checking for $ac_func" >&5
29913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29914if eval "test \"\${$as_ac_var+set}\" = set"; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29916else
29917 cat >conftest.$ac_ext <<_ACEOF
29918/* confdefs.h. */
29919_ACEOF
29920cat confdefs.h >>conftest.$ac_ext
29921cat >>conftest.$ac_ext <<_ACEOF
29922/* end confdefs.h. */
ac1cb8d3
VS
29923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29925#define $ac_func innocuous_$ac_func
29926
a848cd7e
SC
29927/* System header to define __stub macros and hopefully few prototypes,
29928 which can conflict with char $ac_func (); below.
29929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29930 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29931
a848cd7e
SC
29932#ifdef __STDC__
29933# include <limits.h>
29934#else
29935# include <assert.h>
29936#endif
ac1cb8d3
VS
29937
29938#undef $ac_func
29939
a848cd7e
SC
29940/* Override any gcc2 internal prototype to avoid an error. */
29941#ifdef __cplusplus
29942extern "C"
29943{
29944#endif
29945/* We use char because int might match the return type of a gcc2
29946 builtin and then its argument prototype would still apply. */
29947char $ac_func ();
29948/* The GNU C library defines this for functions which it implements
29949 to always fail with ENOSYS. Some functions are actually named
29950 something starting with __ and the normal name is an alias. */
29951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29952choke me
29953#else
29954char (*f) () = $ac_func;
29955#endif
29956#ifdef __cplusplus
29957}
29958#endif
29959
29960int
29961main ()
29962{
29963return f != $ac_func;
29964 ;
29965 return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext conftest$ac_exeext
29969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29970 (eval $ac_link) 2>conftest.er1
a848cd7e 29971 ac_status=$?
ac1cb8d3
VS
29972 grep -v '^ *+' conftest.er1 >conftest.err
29973 rm -f conftest.er1
29974 cat conftest.err >&5
a848cd7e
SC
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } &&
4d4ff94c 29977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29989 eval "$as_ac_var=yes"
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994eval "$as_ac_var=no"
29995fi
ac1cb8d3
VS
29996rm -f conftest.err conftest.$ac_objext \
29997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29998fi
29999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30001if test `eval echo '${'$as_ac_var'}'` = yes; then
30002 cat >>confdefs.h <<_ACEOF
30003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30004_ACEOF
30005 break
30006fi
30007done
30008
30009
30010 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30011 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30012echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30013 wxUSE_SNGLINST_CHECKER=no
30014 fi
30015fi
30016
30017
30018for ac_func in timegm
30019do
30020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30021echo "$as_me:$LINENO: checking for $ac_func" >&5
30022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30023if eval "test \"\${$as_ac_var+set}\" = set"; then
30024 echo $ECHO_N "(cached) $ECHO_C" >&6
30025else
30026 cat >conftest.$ac_ext <<_ACEOF
30027/* confdefs.h. */
30028_ACEOF
30029cat confdefs.h >>conftest.$ac_ext
30030cat >>conftest.$ac_ext <<_ACEOF
30031/* end confdefs.h. */
ac1cb8d3
VS
30032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30034#define $ac_func innocuous_$ac_func
30035
a848cd7e
SC
30036/* System header to define __stub macros and hopefully few prototypes,
30037 which can conflict with char $ac_func (); below.
30038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30039 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30040
a848cd7e
SC
30041#ifdef __STDC__
30042# include <limits.h>
30043#else
30044# include <assert.h>
30045#endif
ac1cb8d3
VS
30046
30047#undef $ac_func
30048
a848cd7e
SC
30049/* Override any gcc2 internal prototype to avoid an error. */
30050#ifdef __cplusplus
30051extern "C"
30052{
30053#endif
30054/* We use char because int might match the return type of a gcc2
30055 builtin and then its argument prototype would still apply. */
30056char $ac_func ();
30057/* The GNU C library defines this for functions which it implements
30058 to always fail with ENOSYS. Some functions are actually named
30059 something starting with __ and the normal name is an alias. */
30060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30061choke me
30062#else
30063char (*f) () = $ac_func;
30064#endif
30065#ifdef __cplusplus
30066}
30067#endif
30068
30069int
30070main ()
30071{
30072return f != $ac_func;
30073 ;
30074 return 0;
30075}
30076_ACEOF
30077rm -f conftest.$ac_objext conftest$ac_exeext
30078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30079 (eval $ac_link) 2>conftest.er1
a848cd7e 30080 ac_status=$?
ac1cb8d3
VS
30081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
a848cd7e
SC
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } &&
4d4ff94c 30086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30088 (eval $ac_try) 2>&5
30089 ac_status=$?
30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091 (exit $ac_status); }; } &&
30092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094 (eval $ac_try) 2>&5
30095 ac_status=$?
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 eval "$as_ac_var=yes"
30099else
30100 echo "$as_me: failed program was:" >&5
30101sed 's/^/| /' conftest.$ac_ext >&5
30102
30103eval "$as_ac_var=no"
30104fi
ac1cb8d3
VS
30105rm -f conftest.err conftest.$ac_objext \
30106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30107fi
30108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30110if test `eval echo '${'$as_ac_var'}'` = yes; then
30111 cat >>confdefs.h <<_ACEOF
30112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30113_ACEOF
30114
30115fi
30116done
30117
30118
30119
30120
30121for ac_func in putenv setenv
30122do
30123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124echo "$as_me:$LINENO: checking for $ac_func" >&5
30125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30126if eval "test \"\${$as_ac_var+set}\" = set"; then
30127 echo $ECHO_N "(cached) $ECHO_C" >&6
30128else
30129 cat >conftest.$ac_ext <<_ACEOF
30130/* confdefs.h. */
30131_ACEOF
30132cat confdefs.h >>conftest.$ac_ext
30133cat >>conftest.$ac_ext <<_ACEOF
30134/* end confdefs.h. */
ac1cb8d3
VS
30135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30137#define $ac_func innocuous_$ac_func
30138
a848cd7e
SC
30139/* System header to define __stub macros and hopefully few prototypes,
30140 which can conflict with char $ac_func (); below.
30141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30143
a848cd7e
SC
30144#ifdef __STDC__
30145# include <limits.h>
30146#else
30147# include <assert.h>
30148#endif
ac1cb8d3
VS
30149
30150#undef $ac_func
30151
a848cd7e
SC
30152/* Override any gcc2 internal prototype to avoid an error. */
30153#ifdef __cplusplus
30154extern "C"
30155{
30156#endif
30157/* We use char because int might match the return type of a gcc2
30158 builtin and then its argument prototype would still apply. */
30159char $ac_func ();
30160/* The GNU C library defines this for functions which it implements
30161 to always fail with ENOSYS. Some functions are actually named
30162 something starting with __ and the normal name is an alias. */
30163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30164choke me
30165#else
30166char (*f) () = $ac_func;
30167#endif
30168#ifdef __cplusplus
30169}
30170#endif
30171
30172int
30173main ()
30174{
30175return f != $ac_func;
30176 ;
30177 return 0;
30178}
30179_ACEOF
30180rm -f conftest.$ac_objext conftest$ac_exeext
30181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30182 (eval $ac_link) 2>conftest.er1
a848cd7e 30183 ac_status=$?
ac1cb8d3
VS
30184 grep -v '^ *+' conftest.er1 >conftest.err
30185 rm -f conftest.er1
30186 cat conftest.err >&5
a848cd7e
SC
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); } &&
4d4ff94c 30189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; }; then
30201 eval "$as_ac_var=yes"
30202else
30203 echo "$as_me: failed program was:" >&5
30204sed 's/^/| /' conftest.$ac_ext >&5
30205
30206eval "$as_ac_var=no"
30207fi
ac1cb8d3
VS
30208rm -f conftest.err conftest.$ac_objext \
30209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30210fi
30211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30213if test `eval echo '${'$as_ac_var'}'` = yes; then
30214 cat >>confdefs.h <<_ACEOF
30215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30216_ACEOF
30217 break
30218fi
30219done
30220
30221
30222HAVE_SOME_SLEEP_FUNC=0
30223if test "$USE_BEOS" = 1; then
30224 cat >>confdefs.h <<\_ACEOF
30225#define HAVE_SLEEP 1
30226_ACEOF
30227
30228 HAVE_SOME_SLEEP_FUNC=1
30229fi
30230
30231if test "$USE_DARWIN" = 1; then
30232 cat >>confdefs.h <<\_ACEOF
30233#define HAVE_USLEEP 1
30234_ACEOF
30235
30236 HAVE_SOME_SLEEP_FUNC=1
30237fi
30238
30239if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30240 POSIX4_LINK=
30241
30242for ac_func in nanosleep
30243do
30244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245echo "$as_me:$LINENO: checking for $ac_func" >&5
30246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249else
30250 cat >conftest.$ac_ext <<_ACEOF
30251/* confdefs.h. */
30252_ACEOF
30253cat confdefs.h >>conftest.$ac_ext
30254cat >>conftest.$ac_ext <<_ACEOF
30255/* end confdefs.h. */
ac1cb8d3
VS
30256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30258#define $ac_func innocuous_$ac_func
30259
a848cd7e
SC
30260/* System header to define __stub macros and hopefully few prototypes,
30261 which can conflict with char $ac_func (); below.
30262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30264
a848cd7e
SC
30265#ifdef __STDC__
30266# include <limits.h>
30267#else
30268# include <assert.h>
30269#endif
ac1cb8d3
VS
30270
30271#undef $ac_func
30272
a848cd7e
SC
30273/* Override any gcc2 internal prototype to avoid an error. */
30274#ifdef __cplusplus
30275extern "C"
30276{
30277#endif
30278/* We use char because int might match the return type of a gcc2
30279 builtin and then its argument prototype would still apply. */
30280char $ac_func ();
30281/* The GNU C library defines this for functions which it implements
30282 to always fail with ENOSYS. Some functions are actually named
30283 something starting with __ and the normal name is an alias. */
30284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30285choke me
30286#else
30287char (*f) () = $ac_func;
30288#endif
30289#ifdef __cplusplus
30290}
30291#endif
30292
30293int
30294main ()
30295{
30296return f != $ac_func;
30297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext conftest$ac_exeext
30302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30303 (eval $ac_link) 2>conftest.er1
a848cd7e 30304 ac_status=$?
ac1cb8d3
VS
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
a848cd7e
SC
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
4d4ff94c 30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 eval "$as_ac_var=yes"
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327eval "$as_ac_var=no"
30328fi
ac1cb8d3
VS
30329rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30331fi
30332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30334if test `eval echo '${'$as_ac_var'}'` = yes; then
30335 cat >>confdefs.h <<_ACEOF
30336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337_ACEOF
30338 cat >>confdefs.h <<\_ACEOF
30339#define HAVE_NANOSLEEP 1
30340_ACEOF
30341
30342else
30343
30344 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30345echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30346if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30347 echo $ECHO_N "(cached) $ECHO_C" >&6
30348else
30349 ac_check_lib_save_LIBS=$LIBS
30350LIBS="-lposix4 $LIBS"
30351cat >conftest.$ac_ext <<_ACEOF
30352/* confdefs.h. */
30353_ACEOF
30354cat confdefs.h >>conftest.$ac_ext
30355cat >>conftest.$ac_ext <<_ACEOF
30356/* end confdefs.h. */
30357
30358/* Override any gcc2 internal prototype to avoid an error. */
30359#ifdef __cplusplus
30360extern "C"
30361#endif
30362/* We use char because int might match the return type of a gcc2
30363 builtin and then its argument prototype would still apply. */
30364char nanosleep ();
30365int
30366main ()
30367{
30368nanosleep ();
30369 ;
30370 return 0;
30371}
30372_ACEOF
30373rm -f conftest.$ac_objext conftest$ac_exeext
30374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30375 (eval $ac_link) 2>conftest.er1
a848cd7e 30376 ac_status=$?
ac1cb8d3
VS
30377 grep -v '^ *+' conftest.er1 >conftest.err
30378 rm -f conftest.er1
30379 cat conftest.err >&5
a848cd7e
SC
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } &&
4d4ff94c 30382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; } &&
30388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390 (eval $ac_try) 2>&5
30391 ac_status=$?
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); }; }; then
30394 ac_cv_lib_posix4_nanosleep=yes
30395else
30396 echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399ac_cv_lib_posix4_nanosleep=no
30400fi
ac1cb8d3
VS
30401rm -f conftest.err conftest.$ac_objext \
30402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30403LIBS=$ac_check_lib_save_LIBS
30404fi
30405echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30406echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30407if test $ac_cv_lib_posix4_nanosleep = yes; then
30408
30409 cat >>confdefs.h <<\_ACEOF
30410#define HAVE_NANOSLEEP 1
30411_ACEOF
30412
30413 POSIX4_LINK=" -lposix4"
30414
30415else
30416
30417
30418for ac_func in usleep
30419do
30420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30421echo "$as_me:$LINENO: checking for $ac_func" >&5
30422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30423if eval "test \"\${$as_ac_var+set}\" = set"; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
30427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
ac1cb8d3
VS
30432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30434#define $ac_func innocuous_$ac_func
30435
a848cd7e
SC
30436/* System header to define __stub macros and hopefully few prototypes,
30437 which can conflict with char $ac_func (); below.
30438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30440
a848cd7e
SC
30441#ifdef __STDC__
30442# include <limits.h>
30443#else
30444# include <assert.h>
30445#endif
ac1cb8d3
VS
30446
30447#undef $ac_func
30448
a848cd7e
SC
30449/* Override any gcc2 internal prototype to avoid an error. */
30450#ifdef __cplusplus
30451extern "C"
30452{
30453#endif
30454/* We use char because int might match the return type of a gcc2
30455 builtin and then its argument prototype would still apply. */
30456char $ac_func ();
30457/* The GNU C library defines this for functions which it implements
30458 to always fail with ENOSYS. Some functions are actually named
30459 something starting with __ and the normal name is an alias. */
30460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30461choke me
30462#else
30463char (*f) () = $ac_func;
30464#endif
30465#ifdef __cplusplus
30466}
30467#endif
30468
30469int
30470main ()
30471{
30472return f != $ac_func;
30473 ;
30474 return 0;
30475}
30476_ACEOF
30477rm -f conftest.$ac_objext conftest$ac_exeext
30478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30479 (eval $ac_link) 2>conftest.er1
a848cd7e 30480 ac_status=$?
ac1cb8d3
VS
30481 grep -v '^ *+' conftest.er1 >conftest.err
30482 rm -f conftest.er1
30483 cat conftest.err >&5
a848cd7e
SC
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } &&
4d4ff94c 30486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30488 (eval $ac_try) 2>&5
30489 ac_status=$?
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); }; } &&
30492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30498 eval "$as_ac_var=yes"
30499else
30500 echo "$as_me: failed program was:" >&5
30501sed 's/^/| /' conftest.$ac_ext >&5
30502
30503eval "$as_ac_var=no"
30504fi
ac1cb8d3
VS
30505rm -f conftest.err conftest.$ac_objext \
30506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30507fi
30508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30510if test `eval echo '${'$as_ac_var'}'` = yes; then
30511 cat >>confdefs.h <<_ACEOF
30512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30513_ACEOF
30514 cat >>confdefs.h <<\_ACEOF
30515#define HAVE_USLEEP 1
30516_ACEOF
30517
30518else
30519 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30520echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30521
30522fi
30523done
30524
30525
30526
30527fi
30528
30529
30530
30531fi
30532done
30533
30534fi
30535
30536
30537
30538for ac_func in uname gethostname
30539do
30540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30541echo "$as_me:$LINENO: checking for $ac_func" >&5
30542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30543if eval "test \"\${$as_ac_var+set}\" = set"; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30545else
30546 cat >conftest.$ac_ext <<_ACEOF
30547/* confdefs.h. */
30548_ACEOF
30549cat confdefs.h >>conftest.$ac_ext
30550cat >>conftest.$ac_ext <<_ACEOF
30551/* end confdefs.h. */
ac1cb8d3
VS
30552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30554#define $ac_func innocuous_$ac_func
30555
a848cd7e
SC
30556/* System header to define __stub macros and hopefully few prototypes,
30557 which can conflict with char $ac_func (); below.
30558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30559 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30560
a848cd7e
SC
30561#ifdef __STDC__
30562# include <limits.h>
30563#else
30564# include <assert.h>
30565#endif
ac1cb8d3
VS
30566
30567#undef $ac_func
30568
a848cd7e
SC
30569/* Override any gcc2 internal prototype to avoid an error. */
30570#ifdef __cplusplus
30571extern "C"
30572{
30573#endif
30574/* We use char because int might match the return type of a gcc2
30575 builtin and then its argument prototype would still apply. */
30576char $ac_func ();
30577/* The GNU C library defines this for functions which it implements
30578 to always fail with ENOSYS. Some functions are actually named
30579 something starting with __ and the normal name is an alias. */
30580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30581choke me
30582#else
30583char (*f) () = $ac_func;
30584#endif
30585#ifdef __cplusplus
30586}
30587#endif
30588
30589int
30590main ()
30591{
30592return f != $ac_func;
30593 ;
30594 return 0;
30595}
30596_ACEOF
30597rm -f conftest.$ac_objext conftest$ac_exeext
30598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30599 (eval $ac_link) 2>conftest.er1
a848cd7e 30600 ac_status=$?
ac1cb8d3
VS
30601 grep -v '^ *+' conftest.er1 >conftest.err
30602 rm -f conftest.er1
30603 cat conftest.err >&5
a848cd7e
SC
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); } &&
4d4ff94c 30606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608 (eval $ac_try) 2>&5
30609 ac_status=$?
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; } &&
30612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30618 eval "$as_ac_var=yes"
30619else
30620 echo "$as_me: failed program was:" >&5
30621sed 's/^/| /' conftest.$ac_ext >&5
30622
30623eval "$as_ac_var=no"
30624fi
ac1cb8d3
VS
30625rm -f conftest.err conftest.$ac_objext \
30626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30627fi
30628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30630if test `eval echo '${'$as_ac_var'}'` = yes; then
30631 cat >>confdefs.h <<_ACEOF
30632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30633_ACEOF
30634 break
30635fi
30636done
30637
30638
30639
30640
30641ac_ext=cc
30642ac_cpp='$CXXCPP $CPPFLAGS'
30643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30646
30647
30648
30649for ac_func in strtok_r
30650do
30651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30652echo "$as_me:$LINENO: checking for $ac_func" >&5
30653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30654if eval "test \"\${$as_ac_var+set}\" = set"; then
30655 echo $ECHO_N "(cached) $ECHO_C" >&6
30656else
30657 cat >conftest.$ac_ext <<_ACEOF
30658/* confdefs.h. */
30659_ACEOF
30660cat confdefs.h >>conftest.$ac_ext
30661cat >>conftest.$ac_ext <<_ACEOF
30662/* end confdefs.h. */
ac1cb8d3
VS
30663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30665#define $ac_func innocuous_$ac_func
30666
a848cd7e
SC
30667/* System header to define __stub macros and hopefully few prototypes,
30668 which can conflict with char $ac_func (); below.
30669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30670 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30671
a848cd7e
SC
30672#ifdef __STDC__
30673# include <limits.h>
30674#else
30675# include <assert.h>
30676#endif
ac1cb8d3
VS
30677
30678#undef $ac_func
30679
a848cd7e
SC
30680/* Override any gcc2 internal prototype to avoid an error. */
30681#ifdef __cplusplus
30682extern "C"
30683{
30684#endif
30685/* We use char because int might match the return type of a gcc2
30686 builtin and then its argument prototype would still apply. */
30687char $ac_func ();
30688/* The GNU C library defines this for functions which it implements
30689 to always fail with ENOSYS. Some functions are actually named
30690 something starting with __ and the normal name is an alias. */
30691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30692choke me
30693#else
30694char (*f) () = $ac_func;
30695#endif
30696#ifdef __cplusplus
30697}
30698#endif
30699
30700int
30701main ()
30702{
30703return f != $ac_func;
30704 ;
30705 return 0;
30706}
30707_ACEOF
30708rm -f conftest.$ac_objext conftest$ac_exeext
30709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30710 (eval $ac_link) 2>conftest.er1
a848cd7e 30711 ac_status=$?
ac1cb8d3
VS
30712 grep -v '^ *+' conftest.er1 >conftest.err
30713 rm -f conftest.er1
30714 cat conftest.err >&5
a848cd7e
SC
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); } &&
4d4ff94c 30717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; }; then
30729 eval "$as_ac_var=yes"
30730else
30731 echo "$as_me: failed program was:" >&5
30732sed 's/^/| /' conftest.$ac_ext >&5
30733
30734eval "$as_ac_var=no"
30735fi
ac1cb8d3
VS
30736rm -f conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30738fi
30739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30741if test `eval echo '${'$as_ac_var'}'` = yes; then
30742 cat >>confdefs.h <<_ACEOF
30743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30744_ACEOF
30745
30746fi
30747done
30748
30749
30750ac_ext=c
30751ac_cpp='$CPP $CPPFLAGS'
30752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30754ac_compiler_gnu=$ac_cv_c_compiler_gnu
30755
30756
30757INET_LINK=
30758
30759for ac_func in inet_addr
30760do
30761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30762echo "$as_me:$LINENO: checking for $ac_func" >&5
30763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30764if eval "test \"\${$as_ac_var+set}\" = set"; then
30765 echo $ECHO_N "(cached) $ECHO_C" >&6
30766else
30767 cat >conftest.$ac_ext <<_ACEOF
30768/* confdefs.h. */
30769_ACEOF
30770cat confdefs.h >>conftest.$ac_ext
30771cat >>conftest.$ac_ext <<_ACEOF
30772/* end confdefs.h. */
ac1cb8d3
VS
30773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30775#define $ac_func innocuous_$ac_func
30776
a848cd7e
SC
30777/* System header to define __stub macros and hopefully few prototypes,
30778 which can conflict with char $ac_func (); below.
30779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30780 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30781
a848cd7e
SC
30782#ifdef __STDC__
30783# include <limits.h>
30784#else
30785# include <assert.h>
30786#endif
ac1cb8d3
VS
30787
30788#undef $ac_func
30789
a848cd7e
SC
30790/* Override any gcc2 internal prototype to avoid an error. */
30791#ifdef __cplusplus
30792extern "C"
30793{
30794#endif
30795/* We use char because int might match the return type of a gcc2
30796 builtin and then its argument prototype would still apply. */
30797char $ac_func ();
30798/* The GNU C library defines this for functions which it implements
30799 to always fail with ENOSYS. Some functions are actually named
30800 something starting with __ and the normal name is an alias. */
30801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30802choke me
30803#else
30804char (*f) () = $ac_func;
30805#endif
30806#ifdef __cplusplus
30807}
30808#endif
30809
30810int
30811main ()
30812{
30813return f != $ac_func;
30814 ;
30815 return 0;
30816}
30817_ACEOF
30818rm -f conftest.$ac_objext conftest$ac_exeext
30819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30820 (eval $ac_link) 2>conftest.er1
a848cd7e 30821 ac_status=$?
ac1cb8d3
VS
30822 grep -v '^ *+' conftest.er1 >conftest.err
30823 rm -f conftest.er1
30824 cat conftest.err >&5
a848cd7e
SC
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); } &&
4d4ff94c 30827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30830 ac_status=$?
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; } &&
30833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835 (eval $ac_try) 2>&5
30836 ac_status=$?
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 eval "$as_ac_var=yes"
30840else
30841 echo "$as_me: failed program was:" >&5
30842sed 's/^/| /' conftest.$ac_ext >&5
30843
30844eval "$as_ac_var=no"
30845fi
ac1cb8d3
VS
30846rm -f conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30848fi
30849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30850echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30851if test `eval echo '${'$as_ac_var'}'` = yes; then
30852 cat >>confdefs.h <<_ACEOF
30853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30854_ACEOF
30855 cat >>confdefs.h <<\_ACEOF
30856#define HAVE_INET_ADDR 1
30857_ACEOF
30858
30859else
30860
30861 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30862echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30863if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865else
30866 ac_check_lib_save_LIBS=$LIBS
30867LIBS="-lnsl $LIBS"
30868cat >conftest.$ac_ext <<_ACEOF
30869/* confdefs.h. */
30870_ACEOF
30871cat confdefs.h >>conftest.$ac_ext
30872cat >>conftest.$ac_ext <<_ACEOF
30873/* end confdefs.h. */
30874
30875/* Override any gcc2 internal prototype to avoid an error. */
30876#ifdef __cplusplus
30877extern "C"
30878#endif
30879/* We use char because int might match the return type of a gcc2
30880 builtin and then its argument prototype would still apply. */
30881char inet_addr ();
30882int
30883main ()
30884{
30885inet_addr ();
30886 ;
30887 return 0;
30888}
30889_ACEOF
30890rm -f conftest.$ac_objext conftest$ac_exeext
30891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30892 (eval $ac_link) 2>conftest.er1
a848cd7e 30893 ac_status=$?
ac1cb8d3
VS
30894 grep -v '^ *+' conftest.er1 >conftest.err
30895 rm -f conftest.er1
30896 cat conftest.err >&5
a848cd7e
SC
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } &&
4d4ff94c 30899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30901 (eval $ac_try) 2>&5
30902 ac_status=$?
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); }; } &&
30905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
30911 ac_cv_lib_nsl_inet_addr=yes
30912else
30913 echo "$as_me: failed program was:" >&5
30914sed 's/^/| /' conftest.$ac_ext >&5
30915
30916ac_cv_lib_nsl_inet_addr=no
30917fi
ac1cb8d3
VS
30918rm -f conftest.err conftest.$ac_objext \
30919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30920LIBS=$ac_check_lib_save_LIBS
30921fi
30922echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30923echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30924if test $ac_cv_lib_nsl_inet_addr = yes; then
30925 INET_LINK="nsl"
30926else
30927
30928 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
30929echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30930if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30931 echo $ECHO_N "(cached) $ECHO_C" >&6
30932else
30933 ac_check_lib_save_LIBS=$LIBS
30934LIBS="-lresolv $LIBS"
30935cat >conftest.$ac_ext <<_ACEOF
30936/* confdefs.h. */
30937_ACEOF
30938cat confdefs.h >>conftest.$ac_ext
30939cat >>conftest.$ac_ext <<_ACEOF
30940/* end confdefs.h. */
30941
30942/* Override any gcc2 internal prototype to avoid an error. */
30943#ifdef __cplusplus
30944extern "C"
30945#endif
30946/* We use char because int might match the return type of a gcc2
30947 builtin and then its argument prototype would still apply. */
30948char inet_addr ();
30949int
30950main ()
30951{
30952inet_addr ();
30953 ;
30954 return 0;
30955}
30956_ACEOF
30957rm -f conftest.$ac_objext conftest$ac_exeext
30958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30959 (eval $ac_link) 2>conftest.er1
a848cd7e 30960 ac_status=$?
ac1cb8d3
VS
30961 grep -v '^ *+' conftest.er1 >conftest.err
30962 rm -f conftest.er1
30963 cat conftest.err >&5
a848cd7e
SC
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); } &&
4d4ff94c 30966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30968 (eval $ac_try) 2>&5
30969 ac_status=$?
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); }; } &&
30972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30974 (eval $ac_try) 2>&5
30975 ac_status=$?
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; }; then
30978 ac_cv_lib_resolv_inet_addr=yes
30979else
30980 echo "$as_me: failed program was:" >&5
30981sed 's/^/| /' conftest.$ac_ext >&5
30982
30983ac_cv_lib_resolv_inet_addr=no
30984fi
ac1cb8d3
VS
30985rm -f conftest.err conftest.$ac_objext \
30986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30987LIBS=$ac_check_lib_save_LIBS
30988fi
30989echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30990echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30991if test $ac_cv_lib_resolv_inet_addr = yes; then
30992 INET_LINK="resolv"
30993else
30994
30995 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
30996echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30997if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30998 echo $ECHO_N "(cached) $ECHO_C" >&6
30999else
31000 ac_check_lib_save_LIBS=$LIBS
31001LIBS="-lsocket $LIBS"
31002cat >conftest.$ac_ext <<_ACEOF
31003/* confdefs.h. */
31004_ACEOF
31005cat confdefs.h >>conftest.$ac_ext
31006cat >>conftest.$ac_ext <<_ACEOF
31007/* end confdefs.h. */
31008
31009/* Override any gcc2 internal prototype to avoid an error. */
31010#ifdef __cplusplus
31011extern "C"
31012#endif
31013/* We use char because int might match the return type of a gcc2
31014 builtin and then its argument prototype would still apply. */
31015char inet_addr ();
31016int
31017main ()
31018{
31019inet_addr ();
31020 ;
31021 return 0;
31022}
31023_ACEOF
31024rm -f conftest.$ac_objext conftest$ac_exeext
31025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31026 (eval $ac_link) 2>conftest.er1
a848cd7e 31027 ac_status=$?
ac1cb8d3
VS
31028 grep -v '^ *+' conftest.er1 >conftest.err
31029 rm -f conftest.er1
31030 cat conftest.err >&5
a848cd7e
SC
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } &&
4d4ff94c 31033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31035 (eval $ac_try) 2>&5
31036 ac_status=$?
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); }; } &&
31039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31041 (eval $ac_try) 2>&5
31042 ac_status=$?
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); }; }; then
31045 ac_cv_lib_socket_inet_addr=yes
31046else
31047 echo "$as_me: failed program was:" >&5
31048sed 's/^/| /' conftest.$ac_ext >&5
31049
31050ac_cv_lib_socket_inet_addr=no
31051fi
ac1cb8d3
VS
31052rm -f conftest.err conftest.$ac_objext \
31053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31054LIBS=$ac_check_lib_save_LIBS
31055fi
31056echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31057echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31058if test $ac_cv_lib_socket_inet_addr = yes; then
31059 INET_LINK="socket"
31060
31061fi
31062
31063
31064
31065fi
31066
31067
31068
31069fi
31070
31071
31072
31073fi
31074done
31075
31076
31077
31078for ac_func in inet_aton
31079do
31080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31081echo "$as_me:$LINENO: checking for $ac_func" >&5
31082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31083if eval "test \"\${$as_ac_var+set}\" = set"; then
31084 echo $ECHO_N "(cached) $ECHO_C" >&6
31085else
31086 cat >conftest.$ac_ext <<_ACEOF
31087/* confdefs.h. */
31088_ACEOF
31089cat confdefs.h >>conftest.$ac_ext
31090cat >>conftest.$ac_ext <<_ACEOF
31091/* end confdefs.h. */
ac1cb8d3
VS
31092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31094#define $ac_func innocuous_$ac_func
31095
a848cd7e
SC
31096/* System header to define __stub macros and hopefully few prototypes,
31097 which can conflict with char $ac_func (); below.
31098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31100
a848cd7e
SC
31101#ifdef __STDC__
31102# include <limits.h>
31103#else
31104# include <assert.h>
31105#endif
ac1cb8d3
VS
31106
31107#undef $ac_func
31108
a848cd7e
SC
31109/* Override any gcc2 internal prototype to avoid an error. */
31110#ifdef __cplusplus
31111extern "C"
31112{
31113#endif
31114/* We use char because int might match the return type of a gcc2
31115 builtin and then its argument prototype would still apply. */
31116char $ac_func ();
31117/* The GNU C library defines this for functions which it implements
31118 to always fail with ENOSYS. Some functions are actually named
31119 something starting with __ and the normal name is an alias. */
31120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31121choke me
31122#else
31123char (*f) () = $ac_func;
31124#endif
31125#ifdef __cplusplus
31126}
31127#endif
31128
31129int
31130main ()
31131{
31132return f != $ac_func;
31133 ;
31134 return 0;
31135}
31136_ACEOF
31137rm -f conftest.$ac_objext conftest$ac_exeext
31138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31139 (eval $ac_link) 2>conftest.er1
a848cd7e 31140 ac_status=$?
ac1cb8d3
VS
31141 grep -v '^ *+' conftest.er1 >conftest.err
31142 rm -f conftest.er1
31143 cat conftest.err >&5
a848cd7e
SC
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); } &&
4d4ff94c 31146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; } &&
31152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154 (eval $ac_try) 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 eval "$as_ac_var=yes"
31159else
31160 echo "$as_me: failed program was:" >&5
31161sed 's/^/| /' conftest.$ac_ext >&5
31162
31163eval "$as_ac_var=no"
31164fi
ac1cb8d3
VS
31165rm -f conftest.err conftest.$ac_objext \
31166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31167fi
31168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31170if test `eval echo '${'$as_ac_var'}'` = yes; then
31171 cat >>confdefs.h <<_ACEOF
31172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31173_ACEOF
31174 cat >>confdefs.h <<\_ACEOF
31175#define HAVE_INET_ATON 1
31176_ACEOF
31177
31178else
31179
31180 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31181echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31182echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31183if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31184 echo $ECHO_N "(cached) $ECHO_C" >&6
31185else
31186 ac_check_lib_save_LIBS=$LIBS
31187LIBS="-l$INET_LINK $LIBS"
31188cat >conftest.$ac_ext <<_ACEOF
31189/* confdefs.h. */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h. */
31194
31195/* Override any gcc2 internal prototype to avoid an error. */
31196#ifdef __cplusplus
31197extern "C"
31198#endif
31199/* We use char because int might match the return type of a gcc2
31200 builtin and then its argument prototype would still apply. */
31201char inet_aton ();
31202int
31203main ()
31204{
31205inet_aton ();
31206 ;
31207 return 0;
31208}
31209_ACEOF
31210rm -f conftest.$ac_objext conftest$ac_exeext
31211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31212 (eval $ac_link) 2>conftest.er1
a848cd7e 31213 ac_status=$?
ac1cb8d3
VS
31214 grep -v '^ *+' conftest.er1 >conftest.err
31215 rm -f conftest.er1
31216 cat conftest.err >&5
a848cd7e
SC
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); } &&
4d4ff94c 31219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; } &&
31225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
31231 eval "$as_ac_Lib=yes"
31232else
31233 echo "$as_me: failed program was:" >&5
31234sed 's/^/| /' conftest.$ac_ext >&5
31235
31236eval "$as_ac_Lib=no"
31237fi
ac1cb8d3
VS
31238rm -f conftest.err conftest.$ac_objext \
31239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31240LIBS=$ac_check_lib_save_LIBS
31241fi
31242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31243echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31244if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31245 cat >>confdefs.h <<\_ACEOF
31246#define HAVE_INET_ATON 1
31247_ACEOF
31248
31249fi
31250
31251
31252fi
31253done
31254
31255
31256if test "x$INET_LINK" != "x"; then
31257 cat >>confdefs.h <<\_ACEOF
31258#define HAVE_INET_ADDR 1
31259_ACEOF
31260
31261 INET_LINK=" -l$INET_LINK"
31262fi
31263
31264fi
31265
31266
31267
31268EXTRALIBS_ESD=
31269echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31270echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31271if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31272 echo $ECHO_N "(cached) $ECHO_C" >&6
31273else
31274 ac_check_lib_save_LIBS=$LIBS
31275LIBS="-lesd $LIBS"
31276cat >conftest.$ac_ext <<_ACEOF
31277/* confdefs.h. */
31278_ACEOF
31279cat confdefs.h >>conftest.$ac_ext
31280cat >>conftest.$ac_ext <<_ACEOF
31281/* end confdefs.h. */
31282
31283/* Override any gcc2 internal prototype to avoid an error. */
31284#ifdef __cplusplus
31285extern "C"
31286#endif
31287/* We use char because int might match the return type of a gcc2
31288 builtin and then its argument prototype would still apply. */
31289char esd_close ();
31290int
31291main ()
31292{
31293esd_close ();
31294 ;
31295 return 0;
31296}
31297_ACEOF
31298rm -f conftest.$ac_objext conftest$ac_exeext
31299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31300 (eval $ac_link) 2>conftest.er1
a848cd7e 31301 ac_status=$?
ac1cb8d3
VS
31302 grep -v '^ *+' conftest.er1 >conftest.err
31303 rm -f conftest.er1
31304 cat conftest.err >&5
a848cd7e
SC
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); } &&
4d4ff94c 31307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31309 (eval $ac_try) 2>&5
31310 ac_status=$?
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); }; } &&
31313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31315 (eval $ac_try) 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 ac_cv_lib_esd_esd_close=yes
31320else
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324ac_cv_lib_esd_esd_close=no
31325fi
ac1cb8d3
VS
31326rm -f conftest.err conftest.$ac_objext \
31327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31328LIBS=$ac_check_lib_save_LIBS
31329fi
31330echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31331echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31332if test $ac_cv_lib_esd_esd_close = yes; then
31333
31334
31335for ac_header in esd.h
31336do
31337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31338if eval "test \"\${$as_ac_Header+set}\" = set"; then
31339 echo "$as_me:$LINENO: checking for $ac_header" >&5
31340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31341if eval "test \"\${$as_ac_Header+set}\" = set"; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
31343fi
31344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31346else
31347 # Is the header compilable?
31348echo "$as_me:$LINENO: checking $ac_header usability" >&5
31349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31350cat >conftest.$ac_ext <<_ACEOF
31351/* confdefs.h. */
31352_ACEOF
31353cat confdefs.h >>conftest.$ac_ext
31354cat >>conftest.$ac_ext <<_ACEOF
31355/* end confdefs.h. */
31356$ac_includes_default
31357#include <$ac_header>
31358_ACEOF
31359rm -f conftest.$ac_objext
31360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31361 (eval $ac_compile) 2>conftest.er1
a848cd7e 31362 ac_status=$?
ac1cb8d3
VS
31363 grep -v '^ *+' conftest.er1 >conftest.err
31364 rm -f conftest.er1
31365 cat conftest.err >&5
a848cd7e
SC
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); } &&
4d4ff94c 31368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370 (eval $ac_try) 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; } &&
31374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31376 (eval $ac_try) 2>&5
31377 ac_status=$?
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; }; then
31380 ac_header_compiler=yes
31381else
31382 echo "$as_me: failed program was:" >&5
31383sed 's/^/| /' conftest.$ac_ext >&5
31384
31385ac_header_compiler=no
31386fi
ac1cb8d3 31387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31389echo "${ECHO_T}$ac_header_compiler" >&6
31390
31391# Is the header present?
31392echo "$as_me:$LINENO: checking $ac_header presence" >&5
31393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31394cat >conftest.$ac_ext <<_ACEOF
31395/* confdefs.h. */
31396_ACEOF
31397cat confdefs.h >>conftest.$ac_ext
31398cat >>conftest.$ac_ext <<_ACEOF
31399/* end confdefs.h. */
31400#include <$ac_header>
31401_ACEOF
31402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31404 ac_status=$?
31405 grep -v '^ *+' conftest.er1 >conftest.err
31406 rm -f conftest.er1
31407 cat conftest.err >&5
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); } >/dev/null; then
31410 if test -s conftest.err; then
31411 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31413 else
31414 ac_cpp_err=
31415 fi
31416else
31417 ac_cpp_err=yes
31418fi
31419if test -z "$ac_cpp_err"; then
31420 ac_header_preproc=yes
31421else
31422 echo "$as_me: failed program was:" >&5
31423sed 's/^/| /' conftest.$ac_ext >&5
31424
31425 ac_header_preproc=no
31426fi
31427rm -f conftest.err conftest.$ac_ext
31428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31429echo "${ECHO_T}$ac_header_preproc" >&6
31430
31431# So? What about this header?
ac1cb8d3
VS
31432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31433 yes:no: )
a848cd7e
SC
31434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31438 ac_header_preproc=yes
a848cd7e 31439 ;;
ac1cb8d3 31440 no:yes:* )
a848cd7e
SC
31441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31448echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31453 (
31454 cat <<\_ASBOX
ac1cb8d3
VS
31455## ----------------------------------------- ##
31456## Report this to wx-dev@lists.wxwidgets.org ##
31457## ----------------------------------------- ##
a848cd7e
SC
31458_ASBOX
31459 ) |
31460 sed "s/^/$as_me: WARNING: /" >&2
31461 ;;
31462esac
31463echo "$as_me:$LINENO: checking for $ac_header" >&5
31464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31465if eval "test \"\${$as_ac_Header+set}\" = set"; then
31466 echo $ECHO_N "(cached) $ECHO_C" >&6
31467else
ac1cb8d3 31468 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31469fi
31470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31472
31473fi
31474if test `eval echo '${'$as_ac_Header'}'` = yes; then
31475 cat >>confdefs.h <<_ACEOF
31476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31477_ACEOF
31478
31479 EXTRALIBS_ESD="-lesd"
31480
31481fi
31482
31483done
31484
31485
31486fi
31487
31488
31489
31490echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31491echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31492cat >conftest.$ac_ext <<_ACEOF
31493/* confdefs.h. */
31494_ACEOF
31495cat confdefs.h >>conftest.$ac_ext
31496cat >>conftest.$ac_ext <<_ACEOF
31497/* end confdefs.h. */
31498#ifdef __linux__
31499 #include <linux/cdrom.h>
31500 #else
31501 /* For Solaris */
31502 #include <sys/cdio.h>
31503 #endif
31504
31505int
31506main ()
31507{
31508struct cdrom_tocentry entry, old_entry;
31509 ;
31510 return 0;
31511}
31512_ACEOF
31513rm -f conftest.$ac_objext
31514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31515 (eval $ac_compile) 2>conftest.er1
a848cd7e 31516 ac_status=$?
ac1cb8d3
VS
31517 grep -v '^ *+' conftest.er1 >conftest.err
31518 rm -f conftest.er1
31519 cat conftest.err >&5
a848cd7e
SC
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } &&
4d4ff94c 31522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524 (eval $ac_try) 2>&5
31525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; } &&
31528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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 echo "$as_me:$LINENO: result: yes" >&5
31535echo "${ECHO_T}yes" >&6
31536 cat >>confdefs.h <<\_ACEOF
31537#define HAVE_KNOWN_CDROM_INTERFACE 1
31538_ACEOF
31539
31540else
31541 echo "$as_me: failed program was:" >&5
31542sed 's/^/| /' conftest.$ac_ext >&5
31543
31544echo "$as_me:$LINENO: result: no" >&5
31545echo "${ECHO_T}no" >&6
31546fi
ac1cb8d3 31547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31548
31549
31550cat >confcache <<\_ACEOF
31551# This file is a shell script that caches the results of configure
31552# tests run on this system so they can be shared between configure
31553# scripts and configure runs, see configure's option --config-cache.
31554# It is not useful on other systems. If it contains results you don't
31555# want to keep, you may remove or edit it.
31556#
31557# config.status only pays attention to the cache file if you give it
31558# the --recheck option to rerun configure.
31559#
31560# `ac_cv_env_foo' variables (set or unset) will be overridden when
31561# loading this file, other *unset* `ac_cv_foo' will be assigned the
31562# following values.
31563
31564_ACEOF
31565
31566# The following way of writing the cache mishandles newlines in values,
31567# but we know of no workaround that is simple, portable, and efficient.
31568# So, don't put newlines in cache variables' values.
31569# Ultrix sh set writes to stderr and can't be redirected directly,
31570# and sets the high bit in the cache file unless we assign to the vars.
31571{
31572 (set) 2>&1 |
31573 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31574 *ac_space=\ *)
31575 # `set' does not quote correctly, so add quotes (double-quote
31576 # substitution turns \\\\ into \\, and sed turns \\ into \).
31577 sed -n \
ac1cb8d3
VS
31578 "s/'/'\\\\''/g;
31579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31580 ;;
31581 *)
31582 # `set' quotes correctly as required by POSIX, so do not add quotes.
31583 sed -n \
ac1cb8d3 31584 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31585 ;;
31586 esac;
31587} |
31588 sed '
31589 t clear
31590 : clear
31591 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31592 t end
31593 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31594 : end' >>confcache
31595if diff $cache_file confcache >/dev/null 2>&1; then :; else
31596 if test -w $cache_file; then
31597 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31598 cat confcache >$cache_file
31599 else
31600 echo "not updating unwritable cache $cache_file"
31601 fi
31602fi
31603rm -f confcache
31604
31605
31606CPP_MT_FLAG=
31607if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31608
31609
31610 THREADS_LINK=
31611 THREADS_CFLAGS=
31612
31613 if test "$wxUSE_THREADS" = "yes" ; then
31614 if test "$USE_BEOS" = 1; then
31615 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31616echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31617 wxUSE_THREADS="no"
31618 fi
31619 fi
31620
31621 if test "$wxUSE_THREADS" = "yes" ; then
31622
31623
31624 THREAD_OPTS="-pthread"
31625 case "${host}" in
31626 *-*-solaris2* | *-*-sunos4* )
31627 if test "x$GCC" = "xyes"; then
31628 THREAD_OPTS="-pthreads $THREAD_OPTS"
31629 else
31630 THREAD_OPTS="-mt $THREAD_OPTS"
31631 fi
31632 ;;
31633 *-*-freebsd*)
31634 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31635 ;;
31636 *-*-darwin* | *-*-cygwin* )
31637 THREAD_OPTS=""
31638 ;;
31639 *-*-aix*)
31640 THREAD_OPTS="pthreads"
31641 ;;
31642 *-hp-hpux* )
31643 if test "x$GCC" != "xyes"; then
31644 THREAD_OPTS=""
31645 fi
31646 ;;
31647
31648 *-*-irix* )
31649 if test "x$GCC" = "xyes"; then
31650 THREAD_OPTS=""
31651 fi
31652 ;;
31653
31654 *-*-*UnixWare*)
31655 if test "x$GCC" != "xyes"; then
31656 THREAD_OPTS="-Ethread"
31657 fi
31658 ;;
31659 esac
31660
31661 THREAD_OPTS="$THREAD_OPTS pthread none"
31662
31663 THREADS_OK=no
31664 for flag in $THREAD_OPTS; do
31665 case $flag in
31666 none)
31667 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31668echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31669 ;;
31670
31671 -*)
31672 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31673echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31674 THREADS_CFLAGS="$flag"
31675 ;;
31676
31677 *)
31678 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31679echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31680 THREADS_LINK="-l$flag"
31681 ;;
31682 esac
31683
31684 save_LIBS="$LIBS"
31685 save_CFLAGS="$CFLAGS"
31686 LIBS="$THREADS_LINK $LIBS"
31687 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31688
31689 cat >conftest.$ac_ext <<_ACEOF
31690/* confdefs.h. */
31691_ACEOF
31692cat confdefs.h >>conftest.$ac_ext
31693cat >>conftest.$ac_ext <<_ACEOF
31694/* end confdefs.h. */
31695#include <pthread.h>
31696int
31697main ()
31698{
31699pthread_create(0,0,0,0);
31700 ;
31701 return 0;
31702}
31703_ACEOF
31704rm -f conftest.$ac_objext conftest$ac_exeext
31705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31706 (eval $ac_link) 2>conftest.er1
a848cd7e 31707 ac_status=$?
ac1cb8d3
VS
31708 grep -v '^ *+' conftest.er1 >conftest.err
31709 rm -f conftest.er1
31710 cat conftest.err >&5
a848cd7e
SC
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); } &&
4d4ff94c 31713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31715 (eval $ac_try) 2>&5
31716 ac_status=$?
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); }; } &&
31719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721 (eval $ac_try) 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; }; then
31725 THREADS_OK=yes
31726else
31727 echo "$as_me: failed program was:" >&5
31728sed 's/^/| /' conftest.$ac_ext >&5
31729
31730fi
ac1cb8d3
VS
31731rm -f conftest.err conftest.$ac_objext \
31732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31733
31734 LIBS="$save_LIBS"
31735 CFLAGS="$save_CFLAGS"
31736
31737 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31738echo "${ECHO_T}$THREADS_OK" >&6
31739 if test "x$THREADS_OK" = "xyes"; then
31740 break;
31741 fi
31742
31743 THREADS_LINK=""
31744 THREADS_CFLAGS=""
31745 done
31746
31747 if test "x$THREADS_OK" != "xyes"; then
31748 wxUSE_THREADS=no
31749 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31750echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31751 else
31752 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31753 LIBS="$THREADS_LINK $LIBS"
31754
31755 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31756echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31757 flag=no
31758 case "${host}" in
31759 *-aix*)
31760 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31761 flag="-D_THREAD_SAFE"
31762 ;;
31763 *-freebsd*)
31764 flag="-D_THREAD_SAFE"
31765 ;;
31766 *-hp-hpux* )
31767 flag="-D_REENTRANT"
31768 if test "x$GCC" != "xyes"; then
31769 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31770
31771 LIBS="$LIBS -lcma"
a848cd7e
SC
31772 fi
31773 ;;
31774 *solaris* | alpha*-osf*)
31775 flag="-D_REENTRANT"
31776 ;;
31777 esac
31778 echo "$as_me:$LINENO: result: ${flag}" >&5
31779echo "${ECHO_T}${flag}" >&6
31780 if test "x$flag" != xno; then
31781 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31782 fi
31783
31784 if test "x$THREADS_CFLAGS" != "x"; then
31785 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31786 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31787 fi
31788 fi
31789 fi
31790
31791 if test "$wxUSE_THREADS" = "yes" ; then
31792
31793for ac_func in thr_setconcurrency
31794do
31795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31796echo "$as_me:$LINENO: checking for $ac_func" >&5
31797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31798if eval "test \"\${$as_ac_var+set}\" = set"; then
31799 echo $ECHO_N "(cached) $ECHO_C" >&6
31800else
31801 cat >conftest.$ac_ext <<_ACEOF
31802/* confdefs.h. */
31803_ACEOF
31804cat confdefs.h >>conftest.$ac_ext
31805cat >>conftest.$ac_ext <<_ACEOF
31806/* end confdefs.h. */
ac1cb8d3
VS
31807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31809#define $ac_func innocuous_$ac_func
31810
a848cd7e
SC
31811/* System header to define __stub macros and hopefully few prototypes,
31812 which can conflict with char $ac_func (); below.
31813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31814 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31815
a848cd7e
SC
31816#ifdef __STDC__
31817# include <limits.h>
31818#else
31819# include <assert.h>
31820#endif
ac1cb8d3
VS
31821
31822#undef $ac_func
31823
a848cd7e
SC
31824/* Override any gcc2 internal prototype to avoid an error. */
31825#ifdef __cplusplus
31826extern "C"
31827{
31828#endif
31829/* We use char because int might match the return type of a gcc2
31830 builtin and then its argument prototype would still apply. */
31831char $ac_func ();
31832/* The GNU C library defines this for functions which it implements
31833 to always fail with ENOSYS. Some functions are actually named
31834 something starting with __ and the normal name is an alias. */
31835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31836choke me
31837#else
31838char (*f) () = $ac_func;
31839#endif
31840#ifdef __cplusplus
31841}
31842#endif
31843
31844int
31845main ()
31846{
31847return f != $ac_func;
31848 ;
31849 return 0;
31850}
31851_ACEOF
31852rm -f conftest.$ac_objext conftest$ac_exeext
31853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31854 (eval $ac_link) 2>conftest.er1
a848cd7e 31855 ac_status=$?
ac1cb8d3
VS
31856 grep -v '^ *+' conftest.er1 >conftest.err
31857 rm -f conftest.er1
31858 cat conftest.err >&5
a848cd7e
SC
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); } &&
4d4ff94c 31861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31863 (eval $ac_try) 2>&5
31864 ac_status=$?
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); }; } &&
31867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31869 (eval $ac_try) 2>&5
31870 ac_status=$?
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); }; }; then
31873 eval "$as_ac_var=yes"
31874else
31875 echo "$as_me: failed program was:" >&5
31876sed 's/^/| /' conftest.$ac_ext >&5
31877
31878eval "$as_ac_var=no"
31879fi
ac1cb8d3
VS
31880rm -f conftest.err conftest.$ac_objext \
31881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31882fi
31883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31885if test `eval echo '${'$as_ac_var'}'` = yes; then
31886 cat >>confdefs.h <<_ACEOF
31887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31888_ACEOF
31889
31890fi
31891done
31892
31893
31894
31895for ac_header in sched.h
31896do
31897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31898if eval "test \"\${$as_ac_Header+set}\" = set"; then
31899 echo "$as_me:$LINENO: checking for $ac_header" >&5
31900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31901if eval "test \"\${$as_ac_Header+set}\" = set"; then
31902 echo $ECHO_N "(cached) $ECHO_C" >&6
31903fi
31904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31906else
31907 # Is the header compilable?
31908echo "$as_me:$LINENO: checking $ac_header usability" >&5
31909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31910cat >conftest.$ac_ext <<_ACEOF
31911/* confdefs.h. */
31912_ACEOF
31913cat confdefs.h >>conftest.$ac_ext
31914cat >>conftest.$ac_ext <<_ACEOF
31915/* end confdefs.h. */
31916$ac_includes_default
31917#include <$ac_header>
31918_ACEOF
31919rm -f conftest.$ac_objext
31920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31921 (eval $ac_compile) 2>conftest.er1
a848cd7e 31922 ac_status=$?
ac1cb8d3
VS
31923 grep -v '^ *+' conftest.er1 >conftest.err
31924 rm -f conftest.er1
31925 cat conftest.err >&5
a848cd7e
SC
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); } &&
4d4ff94c 31928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31931 ac_status=$?
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; }; then
31940 ac_header_compiler=yes
31941else
31942 echo "$as_me: failed program was:" >&5
31943sed 's/^/| /' conftest.$ac_ext >&5
31944
31945ac_header_compiler=no
31946fi
ac1cb8d3 31947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31949echo "${ECHO_T}$ac_header_compiler" >&6
31950
31951# Is the header present?
31952echo "$as_me:$LINENO: checking $ac_header presence" >&5
31953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31954cat >conftest.$ac_ext <<_ACEOF
31955/* confdefs.h. */
31956_ACEOF
31957cat confdefs.h >>conftest.$ac_ext
31958cat >>conftest.$ac_ext <<_ACEOF
31959/* end confdefs.h. */
31960#include <$ac_header>
31961_ACEOF
31962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31964 ac_status=$?
31965 grep -v '^ *+' conftest.er1 >conftest.err
31966 rm -f conftest.er1
31967 cat conftest.err >&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); } >/dev/null; then
31970 if test -s conftest.err; then
31971 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31973 else
31974 ac_cpp_err=
31975 fi
31976else
31977 ac_cpp_err=yes
31978fi
31979if test -z "$ac_cpp_err"; then
31980 ac_header_preproc=yes
31981else
31982 echo "$as_me: failed program was:" >&5
31983sed 's/^/| /' conftest.$ac_ext >&5
31984
31985 ac_header_preproc=no
31986fi
31987rm -f conftest.err conftest.$ac_ext
31988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31989echo "${ECHO_T}$ac_header_preproc" >&6
31990
31991# So? What about this header?
ac1cb8d3
VS
31992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31993 yes:no: )
a848cd7e
SC
31994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31998 ac_header_preproc=yes
a848cd7e 31999 ;;
ac1cb8d3 32000 no:yes:* )
a848cd7e
SC
32001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32013 (
32014 cat <<\_ASBOX
ac1cb8d3
VS
32015## ----------------------------------------- ##
32016## Report this to wx-dev@lists.wxwidgets.org ##
32017## ----------------------------------------- ##
a848cd7e
SC
32018_ASBOX
32019 ) |
32020 sed "s/^/$as_me: WARNING: /" >&2
32021 ;;
32022esac
32023echo "$as_me:$LINENO: checking for $ac_header" >&5
32024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32025if eval "test \"\${$as_ac_Header+set}\" = set"; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32027else
ac1cb8d3 32028 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32029fi
32030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32032
32033fi
32034if test `eval echo '${'$as_ac_Header'}'` = yes; then
32035 cat >>confdefs.h <<_ACEOF
32036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32037_ACEOF
32038
32039fi
32040
32041done
32042
32043 if test "$ac_cv_header_sched_h" = "yes"; then
32044 echo "$as_me:$LINENO: checking for sched_yield" >&5
32045echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32046if test "${ac_cv_func_sched_yield+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32048else
32049 cat >conftest.$ac_ext <<_ACEOF
32050/* confdefs.h. */
32051_ACEOF
32052cat confdefs.h >>conftest.$ac_ext
32053cat >>conftest.$ac_ext <<_ACEOF
32054/* end confdefs.h. */
ac1cb8d3
VS
32055/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32057#define sched_yield innocuous_sched_yield
32058
a848cd7e
SC
32059/* System header to define __stub macros and hopefully few prototypes,
32060 which can conflict with char sched_yield (); below.
32061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32062 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32063
a848cd7e
SC
32064#ifdef __STDC__
32065# include <limits.h>
32066#else
32067# include <assert.h>
32068#endif
ac1cb8d3
VS
32069
32070#undef sched_yield
32071
a848cd7e
SC
32072/* Override any gcc2 internal prototype to avoid an error. */
32073#ifdef __cplusplus
32074extern "C"
32075{
32076#endif
32077/* We use char because int might match the return type of a gcc2
32078 builtin and then its argument prototype would still apply. */
32079char sched_yield ();
32080/* The GNU C library defines this for functions which it implements
32081 to always fail with ENOSYS. Some functions are actually named
32082 something starting with __ and the normal name is an alias. */
32083#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32084choke me
32085#else
32086char (*f) () = sched_yield;
32087#endif
32088#ifdef __cplusplus
32089}
32090#endif
32091
32092int
32093main ()
32094{
32095return f != sched_yield;
32096 ;
32097 return 0;
32098}
32099_ACEOF
32100rm -f conftest.$ac_objext conftest$ac_exeext
32101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32102 (eval $ac_link) 2>conftest.er1
a848cd7e 32103 ac_status=$?
ac1cb8d3
VS
32104 grep -v '^ *+' conftest.er1 >conftest.err
32105 rm -f conftest.er1
32106 cat conftest.err >&5
a848cd7e
SC
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); } &&
4d4ff94c 32109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111 (eval $ac_try) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; } &&
32115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32118 ac_status=$?
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; }; then
32121 ac_cv_func_sched_yield=yes
32122else
32123 echo "$as_me: failed program was:" >&5
32124sed 's/^/| /' conftest.$ac_ext >&5
32125
32126ac_cv_func_sched_yield=no
32127fi
ac1cb8d3
VS
32128rm -f conftest.err conftest.$ac_objext \
32129 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32130fi
32131echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32132echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32133if test $ac_cv_func_sched_yield = yes; then
32134 cat >>confdefs.h <<\_ACEOF
32135#define HAVE_SCHED_YIELD 1
32136_ACEOF
32137
32138else
32139
32140 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32141echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32142if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32144else
32145 ac_check_lib_save_LIBS=$LIBS
32146LIBS="-lposix4 $LIBS"
32147cat >conftest.$ac_ext <<_ACEOF
32148/* confdefs.h. */
32149_ACEOF
32150cat confdefs.h >>conftest.$ac_ext
32151cat >>conftest.$ac_ext <<_ACEOF
32152/* end confdefs.h. */
32153
32154/* Override any gcc2 internal prototype to avoid an error. */
32155#ifdef __cplusplus
32156extern "C"
32157#endif
32158/* We use char because int might match the return type of a gcc2
32159 builtin and then its argument prototype would still apply. */
32160char sched_yield ();
32161int
32162main ()
32163{
32164sched_yield ();
32165 ;
32166 return 0;
32167}
32168_ACEOF
32169rm -f conftest.$ac_objext conftest$ac_exeext
32170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32171 (eval $ac_link) 2>conftest.er1
a848cd7e 32172 ac_status=$?
ac1cb8d3
VS
32173 grep -v '^ *+' conftest.er1 >conftest.err
32174 rm -f conftest.er1
32175 cat conftest.err >&5
a848cd7e
SC
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); } &&
4d4ff94c 32178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; }; then
32190 ac_cv_lib_posix4_sched_yield=yes
32191else
32192 echo "$as_me: failed program was:" >&5
32193sed 's/^/| /' conftest.$ac_ext >&5
32194
32195ac_cv_lib_posix4_sched_yield=no
32196fi
ac1cb8d3
VS
32197rm -f conftest.err conftest.$ac_objext \
32198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32199LIBS=$ac_check_lib_save_LIBS
32200fi
32201echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32202echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32203if test $ac_cv_lib_posix4_sched_yield = yes; then
32204 cat >>confdefs.h <<\_ACEOF
32205#define HAVE_SCHED_YIELD 1
32206_ACEOF
32207 POSIX4_LINK=" -lposix4"
32208else
32209 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32210echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32211
32212fi
32213
32214
32215
32216fi
32217
32218 fi
32219
32220 HAVE_PRIOR_FUNCS=0
32221 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32222echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32223if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32224 echo $ECHO_N "(cached) $ECHO_C" >&6
32225else
32226 cat >conftest.$ac_ext <<_ACEOF
32227/* confdefs.h. */
32228_ACEOF
32229cat confdefs.h >>conftest.$ac_ext
32230cat >>conftest.$ac_ext <<_ACEOF
32231/* end confdefs.h. */
ac1cb8d3
VS
32232/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32234#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32235
a848cd7e
SC
32236/* System header to define __stub macros and hopefully few prototypes,
32237 which can conflict with char pthread_attr_getschedpolicy (); below.
32238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32239 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32240
a848cd7e
SC
32241#ifdef __STDC__
32242# include <limits.h>
32243#else
32244# include <assert.h>
32245#endif
ac1cb8d3
VS
32246
32247#undef pthread_attr_getschedpolicy
32248
a848cd7e
SC
32249/* Override any gcc2 internal prototype to avoid an error. */
32250#ifdef __cplusplus
32251extern "C"
32252{
32253#endif
32254/* We use char because int might match the return type of a gcc2
32255 builtin and then its argument prototype would still apply. */
32256char pthread_attr_getschedpolicy ();
32257/* The GNU C library defines this for functions which it implements
32258 to always fail with ENOSYS. Some functions are actually named
32259 something starting with __ and the normal name is an alias. */
32260#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32261choke me
32262#else
32263char (*f) () = pthread_attr_getschedpolicy;
32264#endif
32265#ifdef __cplusplus
32266}
32267#endif
32268
32269int
32270main ()
32271{
32272return f != pthread_attr_getschedpolicy;
32273 ;
32274 return 0;
32275}
32276_ACEOF
32277rm -f conftest.$ac_objext conftest$ac_exeext
32278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32279 (eval $ac_link) 2>conftest.er1
a848cd7e 32280 ac_status=$?
ac1cb8d3
VS
32281 grep -v '^ *+' conftest.er1 >conftest.err
32282 rm -f conftest.er1
32283 cat conftest.err >&5
a848cd7e
SC
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); } &&
4d4ff94c 32286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; }; then
32298 ac_cv_func_pthread_attr_getschedpolicy=yes
32299else
32300 echo "$as_me: failed program was:" >&5
32301sed 's/^/| /' conftest.$ac_ext >&5
32302
32303ac_cv_func_pthread_attr_getschedpolicy=no
32304fi
ac1cb8d3
VS
32305rm -f conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32307fi
32308echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32309echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32310if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32311 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32312echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32313if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32314 echo $ECHO_N "(cached) $ECHO_C" >&6
32315else
32316 cat >conftest.$ac_ext <<_ACEOF
32317/* confdefs.h. */
32318_ACEOF
32319cat confdefs.h >>conftest.$ac_ext
32320cat >>conftest.$ac_ext <<_ACEOF
32321/* end confdefs.h. */
ac1cb8d3
VS
32322/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32324#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32325
a848cd7e
SC
32326/* System header to define __stub macros and hopefully few prototypes,
32327 which can conflict with char pthread_attr_setschedparam (); below.
32328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32329 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32330
a848cd7e
SC
32331#ifdef __STDC__
32332# include <limits.h>
32333#else
32334# include <assert.h>
32335#endif
ac1cb8d3
VS
32336
32337#undef pthread_attr_setschedparam
32338
a848cd7e
SC
32339/* Override any gcc2 internal prototype to avoid an error. */
32340#ifdef __cplusplus
32341extern "C"
32342{
32343#endif
32344/* We use char because int might match the return type of a gcc2
32345 builtin and then its argument prototype would still apply. */
32346char pthread_attr_setschedparam ();
32347/* The GNU C library defines this for functions which it implements
32348 to always fail with ENOSYS. Some functions are actually named
32349 something starting with __ and the normal name is an alias. */
32350#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32351choke me
32352#else
32353char (*f) () = pthread_attr_setschedparam;
32354#endif
32355#ifdef __cplusplus
32356}
32357#endif
32358
32359int
32360main ()
32361{
32362return f != pthread_attr_setschedparam;
32363 ;
32364 return 0;
32365}
32366_ACEOF
32367rm -f conftest.$ac_objext conftest$ac_exeext
32368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32369 (eval $ac_link) 2>conftest.er1
a848cd7e 32370 ac_status=$?
ac1cb8d3
VS
32371 grep -v '^ *+' conftest.er1 >conftest.err
32372 rm -f conftest.er1
32373 cat conftest.err >&5
a848cd7e
SC
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); } &&
4d4ff94c 32376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; } &&
32382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32388 ac_cv_func_pthread_attr_setschedparam=yes
32389else
32390 echo "$as_me: failed program was:" >&5
32391sed 's/^/| /' conftest.$ac_ext >&5
32392
32393ac_cv_func_pthread_attr_setschedparam=no
32394fi
ac1cb8d3
VS
32395rm -f conftest.err conftest.$ac_objext \
32396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32397fi
32398echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32399echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32400if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32401 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32402echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32403if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32404 echo $ECHO_N "(cached) $ECHO_C" >&6
32405else
32406 cat >conftest.$ac_ext <<_ACEOF
32407/* confdefs.h. */
32408_ACEOF
32409cat confdefs.h >>conftest.$ac_ext
32410cat >>conftest.$ac_ext <<_ACEOF
32411/* end confdefs.h. */
ac1cb8d3
VS
32412/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32414#define sched_get_priority_max innocuous_sched_get_priority_max
32415
a848cd7e
SC
32416/* System header to define __stub macros and hopefully few prototypes,
32417 which can conflict with char sched_get_priority_max (); below.
32418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32419 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32420
a848cd7e
SC
32421#ifdef __STDC__
32422# include <limits.h>
32423#else
32424# include <assert.h>
32425#endif
ac1cb8d3
VS
32426
32427#undef sched_get_priority_max
32428
a848cd7e
SC
32429/* Override any gcc2 internal prototype to avoid an error. */
32430#ifdef __cplusplus
32431extern "C"
32432{
32433#endif
32434/* We use char because int might match the return type of a gcc2
32435 builtin and then its argument prototype would still apply. */
32436char sched_get_priority_max ();
32437/* The GNU C library defines this for functions which it implements
32438 to always fail with ENOSYS. Some functions are actually named
32439 something starting with __ and the normal name is an alias. */
32440#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32441choke me
32442#else
32443char (*f) () = sched_get_priority_max;
32444#endif
32445#ifdef __cplusplus
32446}
32447#endif
32448
32449int
32450main ()
32451{
32452return f != sched_get_priority_max;
32453 ;
32454 return 0;
32455}
32456_ACEOF
32457rm -f conftest.$ac_objext conftest$ac_exeext
32458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32459 (eval $ac_link) 2>conftest.er1
a848cd7e 32460 ac_status=$?
ac1cb8d3
VS
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
a848cd7e
SC
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
4d4ff94c 32466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
32472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 ac_cv_func_sched_get_priority_max=yes
32479else
32480 echo "$as_me: failed program was:" >&5
32481sed 's/^/| /' conftest.$ac_ext >&5
32482
32483ac_cv_func_sched_get_priority_max=no
32484fi
ac1cb8d3
VS
32485rm -f conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32487fi
32488echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32489echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32490if test $ac_cv_func_sched_get_priority_max = yes; then
32491 HAVE_PRIOR_FUNCS=1
32492else
32493 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32494echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32495if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32497else
32498 ac_check_lib_save_LIBS=$LIBS
32499LIBS="-lposix4 $LIBS"
32500cat >conftest.$ac_ext <<_ACEOF
32501/* confdefs.h. */
32502_ACEOF
32503cat confdefs.h >>conftest.$ac_ext
32504cat >>conftest.$ac_ext <<_ACEOF
32505/* end confdefs.h. */
32506
32507/* Override any gcc2 internal prototype to avoid an error. */
32508#ifdef __cplusplus
32509extern "C"
32510#endif
32511/* We use char because int might match the return type of a gcc2
32512 builtin and then its argument prototype would still apply. */
32513char sched_get_priority_max ();
32514int
32515main ()
32516{
32517sched_get_priority_max ();
32518 ;
32519 return 0;
32520}
32521_ACEOF
32522rm -f conftest.$ac_objext conftest$ac_exeext
32523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32524 (eval $ac_link) 2>conftest.er1
a848cd7e 32525 ac_status=$?
ac1cb8d3
VS
32526 grep -v '^ *+' conftest.er1 >conftest.err
32527 rm -f conftest.er1
32528 cat conftest.err >&5
a848cd7e
SC
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
4d4ff94c 32531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32533 (eval $ac_try) 2>&5
32534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32539 (eval $ac_try) 2>&5
32540 ac_status=$?
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); }; }; then
32543 ac_cv_lib_posix4_sched_get_priority_max=yes
32544else
32545 echo "$as_me: failed program was:" >&5
32546sed 's/^/| /' conftest.$ac_ext >&5
32547
32548ac_cv_lib_posix4_sched_get_priority_max=no
32549fi
ac1cb8d3
VS
32550rm -f conftest.err conftest.$ac_objext \
32551 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32552LIBS=$ac_check_lib_save_LIBS
32553fi
32554echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32555echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32556if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32557
32558 HAVE_PRIOR_FUNCS=1
32559 POSIX4_LINK=" -lposix4"
32560
32561fi
32562
32563
32564fi
32565
32566
32567fi
32568
32569
32570fi
32571
32572
32573 if test "$HAVE_PRIOR_FUNCS" = 1; then
32574 cat >>confdefs.h <<\_ACEOF
32575#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32576_ACEOF
32577
32578 else
32579 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32580echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32581 fi
32582
32583 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32584echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32585if test "${ac_cv_func_pthread_cancel+set}" = set; then
32586 echo $ECHO_N "(cached) $ECHO_C" >&6
32587else
32588 cat >conftest.$ac_ext <<_ACEOF
32589/* confdefs.h. */
32590_ACEOF
32591cat confdefs.h >>conftest.$ac_ext
32592cat >>conftest.$ac_ext <<_ACEOF
32593/* end confdefs.h. */
ac1cb8d3
VS
32594/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32596#define pthread_cancel innocuous_pthread_cancel
32597
a848cd7e
SC
32598/* System header to define __stub macros and hopefully few prototypes,
32599 which can conflict with char pthread_cancel (); below.
32600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32602
a848cd7e
SC
32603#ifdef __STDC__
32604# include <limits.h>
32605#else
32606# include <assert.h>
32607#endif
ac1cb8d3
VS
32608
32609#undef pthread_cancel
32610
a848cd7e
SC
32611/* Override any gcc2 internal prototype to avoid an error. */
32612#ifdef __cplusplus
32613extern "C"
32614{
32615#endif
32616/* We use char because int might match the return type of a gcc2
32617 builtin and then its argument prototype would still apply. */
32618char pthread_cancel ();
32619/* The GNU C library defines this for functions which it implements
32620 to always fail with ENOSYS. Some functions are actually named
32621 something starting with __ and the normal name is an alias. */
32622#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32623choke me
32624#else
32625char (*f) () = pthread_cancel;
32626#endif
32627#ifdef __cplusplus
32628}
32629#endif
32630
32631int
32632main ()
32633{
32634return f != pthread_cancel;
32635 ;
32636 return 0;
32637}
32638_ACEOF
32639rm -f conftest.$ac_objext conftest$ac_exeext
32640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32641 (eval $ac_link) 2>conftest.er1
a848cd7e 32642 ac_status=$?
ac1cb8d3
VS
32643 grep -v '^ *+' conftest.er1 >conftest.err
32644 rm -f conftest.er1
32645 cat conftest.err >&5
a848cd7e
SC
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } &&
4d4ff94c 32648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32650 (eval $ac_try) 2>&5
32651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 ac_cv_func_pthread_cancel=yes
32661else
32662 echo "$as_me: failed program was:" >&5
32663sed 's/^/| /' conftest.$ac_ext >&5
32664
32665ac_cv_func_pthread_cancel=no
32666fi
ac1cb8d3
VS
32667rm -f conftest.err conftest.$ac_objext \
32668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32669fi
32670echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32671echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32672if test $ac_cv_func_pthread_cancel = yes; then
32673 cat >>confdefs.h <<\_ACEOF
32674#define HAVE_PTHREAD_CANCEL 1
32675_ACEOF
32676
32677else
32678 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32679echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32680fi
32681
32682
32683
32684
32685 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32686echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32687if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32688 echo $ECHO_N "(cached) $ECHO_C" >&6
32689else
32690
32691 cat >conftest.$ac_ext <<_ACEOF
32692/* confdefs.h. */
32693_ACEOF
32694cat confdefs.h >>conftest.$ac_ext
32695cat >>conftest.$ac_ext <<_ACEOF
32696/* end confdefs.h. */
32697#include <pthread.h>
32698int
32699main ()
32700{
32701
32702 pthread_mutexattr_t attr;
32703 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32704
32705 ;
32706 return 0;
32707}
32708_ACEOF
32709rm -f conftest.$ac_objext
32710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32711 (eval $ac_compile) 2>conftest.er1
a848cd7e 32712 ac_status=$?
ac1cb8d3
VS
32713 grep -v '^ *+' conftest.er1 >conftest.err
32714 rm -f conftest.er1
32715 cat conftest.err >&5
a848cd7e
SC
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); } &&
4d4ff94c 32718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32721 ac_status=$?
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; } &&
32724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726 (eval $ac_try) 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; }; then
32730
32731 wx_cv_type_pthread_mutexattr_t=yes
32732
32733else
32734 echo "$as_me: failed program was:" >&5
32735sed 's/^/| /' conftest.$ac_ext >&5
32736
32737
32738 wx_cv_type_pthread_mutexattr_t=no
32739
32740
32741fi
ac1cb8d3 32742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32743
32744fi
32745echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32746echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32747
32748 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32749 cat >>confdefs.h <<\_ACEOF
32750#define HAVE_PTHREAD_MUTEXATTR_T 1
32751_ACEOF
32752
32753 else
32754 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32755echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32756if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32757 echo $ECHO_N "(cached) $ECHO_C" >&6
32758else
32759
32760 cat >conftest.$ac_ext <<_ACEOF
32761/* confdefs.h. */
32762_ACEOF
32763cat confdefs.h >>conftest.$ac_ext
32764cat >>conftest.$ac_ext <<_ACEOF
32765/* end confdefs.h. */
32766#include <pthread.h>
32767int
32768main ()
32769{
32770
32771 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32772
32773 ;
32774 return 0;
32775}
32776_ACEOF
32777rm -f conftest.$ac_objext
32778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32779 (eval $ac_compile) 2>conftest.er1
a848cd7e 32780 ac_status=$?
ac1cb8d3
VS
32781 grep -v '^ *+' conftest.er1 >conftest.err
32782 rm -f conftest.er1
32783 cat conftest.err >&5
a848cd7e
SC
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); } &&
4d4ff94c 32786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32788 (eval $ac_try) 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; } &&
32792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32794 (eval $ac_try) 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; }; then
32798
32799 wx_cv_type_pthread_rec_mutex_init=yes
32800
32801else
32802 echo "$as_me: failed program was:" >&5
32803sed 's/^/| /' conftest.$ac_ext >&5
32804
32805
32806 wx_cv_type_pthread_rec_mutex_init=no
32807
32808
32809fi
ac1cb8d3 32810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32811
32812fi
32813echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32814echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32815 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32816 cat >>confdefs.h <<\_ACEOF
32817#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32818_ACEOF
32819
32820 else
32821 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32822echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32823 fi
32824 fi
32825 fi
32826
32827else
32828 if test "$wxUSE_THREADS" = "yes" ; then
32829 case "${host}" in
32830 *-*-mingw32* )
32831 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32832echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32833if test "${wx_cv_cflags_mthread+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32835else
32836
32837 CFLAGS_OLD="$CFLAGS"
32838 CFLAGS="$CFLAGS -mthreads"
32839 cat >conftest.$ac_ext <<_ACEOF
32840/* confdefs.h. */
32841_ACEOF
32842cat confdefs.h >>conftest.$ac_ext
32843cat >>conftest.$ac_ext <<_ACEOF
32844/* end confdefs.h. */
32845
32846int
32847main ()
32848{
32849
32850 ;
32851 return 0;
32852}
32853_ACEOF
32854rm -f conftest.$ac_objext
32855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32856 (eval $ac_compile) 2>conftest.er1
a848cd7e 32857 ac_status=$?
ac1cb8d3
VS
32858 grep -v '^ *+' conftest.er1 >conftest.err
32859 rm -f conftest.er1
32860 cat conftest.err >&5
a848cd7e
SC
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); } &&
4d4ff94c 32863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865 (eval $ac_try) 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; } &&
32869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32871 (eval $ac_try) 2>&5
32872 ac_status=$?
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); }; }; then
32875 wx_cv_cflags_mthread=yes
32876else
32877 echo "$as_me: failed program was:" >&5
32878sed 's/^/| /' conftest.$ac_ext >&5
32879
32880wx_cv_cflags_mthread=no
32881
32882fi
ac1cb8d3 32883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32884
32885
32886fi
32887echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32888echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
32889
32890 if test "$wx_cv_cflags_mthread" = "yes"; then
32891 CXXFLAGS="$CXXFLAGS -mthreads"
32892 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32893 LDFLAGS="$LDFLAGS -mthreads"
32894 else
32895 CFLAGS="$CFLAGS_OLD"
32896 fi
32897 ;;
32898 *-pc-os2*emx )
32899 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32900 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32901 LDFLAGS="$LDFLAGS -Zmt"
32902 ;;
32903 esac
32904 fi
32905fi
32906
32907if test "$wxUSE_THREADS" = "yes"; then
32908 cat >>confdefs.h <<\_ACEOF
32909#define wxUSE_THREADS 1
32910_ACEOF
32911
32912
32913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
32914else
32915 if test "$ac_cv_func_strtok_r" = "yes"; then
32916 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32917echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
32918 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32919 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
32920 echo "$as_me:$LINENO: result: yes" >&5
32921echo "${ECHO_T}yes" >&6
32922 else
32923 echo "$as_me:$LINENO: result: no" >&5
32924echo "${ECHO_T}no" >&6
32925 fi
32926 fi
32927fi
32928
32929if test "$WXGTK20" = 1 ; then
32930 cat >>confdefs.h <<_ACEOF
32931#define __WXGTK20__ $WXGTK20
32932_ACEOF
32933
32934 WXGTK12=1
32935fi
32936
32937if test "$WXGTK12" = 1 ; then
32938 cat >>confdefs.h <<_ACEOF
32939#define __WXGTK12__ $WXGTK12
32940_ACEOF
32941
32942fi
32943
32944if test "$WXGTK127" = 1 ; then
32945 cat >>confdefs.h <<_ACEOF
32946#define __WXGTK127__ $WXGTK127
32947_ACEOF
32948
32949fi
32950
32951if test "$WXGPE" = 1 ; then
32952 cat >>confdefs.h <<_ACEOF
32953#define __WXGPE__ $WXGPE
32954_ACEOF
32955
32956fi
32957
32958WXDEBUG=
32959
32960if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32961 WXDEBUG="-g"
32962 wxUSE_OPTIMISE=no
32963fi
32964
32965if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32966 wxUSE_DEBUG_INFO=yes
32967 WXDEBUG="-ggdb"
32968fi
32969
32970if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
32971 cat >>confdefs.h <<\_ACEOF
32972#define WXDEBUG 1
32973_ACEOF
32974
32975 WXDEBUG_DEFINE="-D__WXDEBUG__"
32976else
32977 if test "$wxUSE_GTK" = 1 ; then
32978 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32979 fi
32980fi
32981
32982if test "$wxUSE_MEM_TRACING" = "yes" ; then
32983 cat >>confdefs.h <<\_ACEOF
32984#define wxUSE_MEMORY_TRACING 1
32985_ACEOF
32986
32987 cat >>confdefs.h <<\_ACEOF
32988#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
32989_ACEOF
32990
32991 cat >>confdefs.h <<\_ACEOF
32992#define wxUSE_DEBUG_NEW_ALWAYS 1
32993_ACEOF
32994
32995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32996fi
32997
32998if test "$wxUSE_DMALLOC" = "yes" ; then
32999 DMALLOC_LIBS="-ldmalloc"
33000fi
33001
33002PROFILE=
33003if test "$wxUSE_PROFILE" = "yes" ; then
33004 PROFILE=" -pg"
33005fi
33006
33007CODE_GEN_FLAGS=
33008CODE_GEN_FLAGS_CXX=
33009if test "$GCC" = "yes" ; then
33010 if test "$wxUSE_NO_RTTI" = "yes" ; then
33011 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33012 fi
33013 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33014 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33015 fi
33016 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33017 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33018 fi
33019
33020 case "${host}" in
33021 powerpc*-*-aix* )
33022 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33023 ;;
33024 *-hppa* )
33025 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33026 ;;
33027 esac
33028fi
33029
33030OPTIMISE=
33031if test "$wxUSE_OPTIMISE" = "no" ; then
33032 if test "$GCC" = yes ; then
33033 OPTIMISE="-O0"
33034 fi
33035else
33036 if test "$GCC" = yes ; then
33037 OPTIMISE="-O2"
33038
33039 case "${host}" in
33040 i586-*-*|i686-*-* )
33041 OPTIMISE="${OPTIMISE} "
33042 ;;
33043 esac
33044 else
33045 OPTIMISE="-O"
33046 fi
33047fi
33048
33049
33050if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33051 cat >>confdefs.h <<\_ACEOF
33052#define WXWIN_COMPATIBILITY_2_2 1
33053_ACEOF
33054
33055
33056 WXWIN_COMPATIBILITY_2_4="yes"
33057fi
33058
33059if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33060 cat >>confdefs.h <<\_ACEOF
33061#define WXWIN_COMPATIBILITY_2_4 1
33062_ACEOF
33063
33064fi
33065
33066
33067if test "$wxUSE_GUI" = "yes"; then
33068 cat >>confdefs.h <<\_ACEOF
33069#define wxUSE_GUI 1
33070_ACEOF
33071
33072
33073 else
33074 cat >>confdefs.h <<\_ACEOF
33075#define wxUSE_NOGUI 1
33076_ACEOF
33077
33078fi
33079
33080
33081if test "$wxUSE_UNIX" = "yes"; then
33082 cat >>confdefs.h <<\_ACEOF
33083#define wxUSE_UNIX 1
33084_ACEOF
33085
33086fi
33087
33088
33089if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33090
33091 HAVE_DL_FUNCS=0
33092 HAVE_SHL_FUNCS=0
33093 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33094 if test "$USE_DARWIN" = 1; then
33095 HAVE_DL_FUNCS=1
33096 else
33097
33098for ac_func in dlopen
33099do
33100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33101echo "$as_me:$LINENO: checking for $ac_func" >&5
33102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33103if eval "test \"\${$as_ac_var+set}\" = set"; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105else
33106 cat >conftest.$ac_ext <<_ACEOF
33107/* confdefs.h. */
33108_ACEOF
33109cat confdefs.h >>conftest.$ac_ext
33110cat >>conftest.$ac_ext <<_ACEOF
33111/* end confdefs.h. */
ac1cb8d3
VS
33112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33114#define $ac_func innocuous_$ac_func
33115
a848cd7e
SC
33116/* System header to define __stub macros and hopefully few prototypes,
33117 which can conflict with char $ac_func (); below.
33118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33119 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33120
a848cd7e
SC
33121#ifdef __STDC__
33122# include <limits.h>
33123#else
33124# include <assert.h>
33125#endif
ac1cb8d3
VS
33126
33127#undef $ac_func
33128
a848cd7e
SC
33129/* Override any gcc2 internal prototype to avoid an error. */
33130#ifdef __cplusplus
33131extern "C"
33132{
33133#endif
33134/* We use char because int might match the return type of a gcc2
33135 builtin and then its argument prototype would still apply. */
33136char $ac_func ();
33137/* The GNU C library defines this for functions which it implements
33138 to always fail with ENOSYS. Some functions are actually named
33139 something starting with __ and the normal name is an alias. */
33140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33141choke me
33142#else
33143char (*f) () = $ac_func;
33144#endif
33145#ifdef __cplusplus
33146}
33147#endif
33148
33149int
33150main ()
33151{
33152return f != $ac_func;
33153 ;
33154 return 0;
33155}
33156_ACEOF
33157rm -f conftest.$ac_objext conftest$ac_exeext
33158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33159 (eval $ac_link) 2>conftest.er1
a848cd7e 33160 ac_status=$?
ac1cb8d3
VS
33161 grep -v '^ *+' conftest.er1 >conftest.err
33162 rm -f conftest.er1
33163 cat conftest.err >&5
a848cd7e
SC
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); } &&
4d4ff94c 33166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33168 (eval $ac_try) 2>&5
33169 ac_status=$?
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; } &&
33172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33174 (eval $ac_try) 2>&5
33175 ac_status=$?
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; }; then
33178 eval "$as_ac_var=yes"
33179else
33180 echo "$as_me: failed program was:" >&5
33181sed 's/^/| /' conftest.$ac_ext >&5
33182
33183eval "$as_ac_var=no"
33184fi
ac1cb8d3
VS
33185rm -f conftest.err conftest.$ac_objext \
33186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33187fi
33188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33190if test `eval echo '${'$as_ac_var'}'` = yes; then
33191 cat >>confdefs.h <<_ACEOF
33192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33193_ACEOF
33194
33195 cat >>confdefs.h <<\_ACEOF
33196#define HAVE_DLOPEN 1
33197_ACEOF
33198
33199 HAVE_DL_FUNCS=1
33200
33201else
33202
33203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33206 echo $ECHO_N "(cached) $ECHO_C" >&6
33207else
33208 ac_check_lib_save_LIBS=$LIBS
33209LIBS="-ldl $LIBS"
33210cat >conftest.$ac_ext <<_ACEOF
33211/* confdefs.h. */
33212_ACEOF
33213cat confdefs.h >>conftest.$ac_ext
33214cat >>conftest.$ac_ext <<_ACEOF
33215/* end confdefs.h. */
33216
33217/* Override any gcc2 internal prototype to avoid an error. */
33218#ifdef __cplusplus
33219extern "C"
33220#endif
33221/* We use char because int might match the return type of a gcc2
33222 builtin and then its argument prototype would still apply. */
33223char dlopen ();
33224int
33225main ()
33226{
33227dlopen ();
33228 ;
33229 return 0;
33230}
33231_ACEOF
33232rm -f conftest.$ac_objext conftest$ac_exeext
33233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33234 (eval $ac_link) 2>conftest.er1
a848cd7e 33235 ac_status=$?
ac1cb8d3
VS
33236 grep -v '^ *+' conftest.er1 >conftest.err
33237 rm -f conftest.er1
33238 cat conftest.err >&5
a848cd7e
SC
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); } &&
4d4ff94c 33241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 (eval $ac_try) 2>&5
33244 ac_status=$?
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; } &&
33247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
33253 ac_cv_lib_dl_dlopen=yes
33254else
33255 echo "$as_me: failed program was:" >&5
33256sed 's/^/| /' conftest.$ac_ext >&5
33257
33258ac_cv_lib_dl_dlopen=no
33259fi
ac1cb8d3
VS
33260rm -f conftest.err conftest.$ac_objext \
33261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33262LIBS=$ac_check_lib_save_LIBS
33263fi
33264echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33265echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33266if test $ac_cv_lib_dl_dlopen = yes; then
33267
33268 cat >>confdefs.h <<\_ACEOF
33269#define HAVE_DLOPEN 1
33270_ACEOF
33271
33272 HAVE_DL_FUNCS=1
33273 DL_LINK=" -ldl$DL_LINK"
33274
33275else
33276
33277
33278for ac_func in shl_load
33279do
33280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33281echo "$as_me:$LINENO: checking for $ac_func" >&5
33282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33283if eval "test \"\${$as_ac_var+set}\" = set"; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33285else
33286 cat >conftest.$ac_ext <<_ACEOF
33287/* confdefs.h. */
33288_ACEOF
33289cat confdefs.h >>conftest.$ac_ext
33290cat >>conftest.$ac_ext <<_ACEOF
33291/* end confdefs.h. */
ac1cb8d3
VS
33292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33294#define $ac_func innocuous_$ac_func
33295
a848cd7e
SC
33296/* System header to define __stub macros and hopefully few prototypes,
33297 which can conflict with char $ac_func (); below.
33298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33300
a848cd7e
SC
33301#ifdef __STDC__
33302# include <limits.h>
33303#else
33304# include <assert.h>
33305#endif
ac1cb8d3
VS
33306
33307#undef $ac_func
33308
a848cd7e
SC
33309/* Override any gcc2 internal prototype to avoid an error. */
33310#ifdef __cplusplus
33311extern "C"
33312{
33313#endif
33314/* We use char because int might match the return type of a gcc2
33315 builtin and then its argument prototype would still apply. */
33316char $ac_func ();
33317/* The GNU C library defines this for functions which it implements
33318 to always fail with ENOSYS. Some functions are actually named
33319 something starting with __ and the normal name is an alias. */
33320#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33321choke me
33322#else
33323char (*f) () = $ac_func;
33324#endif
33325#ifdef __cplusplus
33326}
33327#endif
33328
33329int
33330main ()
33331{
33332return f != $ac_func;
33333 ;
33334 return 0;
33335}
33336_ACEOF
33337rm -f conftest.$ac_objext conftest$ac_exeext
33338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33339 (eval $ac_link) 2>conftest.er1
a848cd7e 33340 ac_status=$?
ac1cb8d3
VS
33341 grep -v '^ *+' conftest.er1 >conftest.err
33342 rm -f conftest.er1
33343 cat conftest.err >&5
a848cd7e
SC
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); } &&
4d4ff94c 33346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33348 (eval $ac_try) 2>&5
33349 ac_status=$?
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; } &&
33352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33354 (eval $ac_try) 2>&5
33355 ac_status=$?
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); }; }; then
33358 eval "$as_ac_var=yes"
33359else
33360 echo "$as_me: failed program was:" >&5
33361sed 's/^/| /' conftest.$ac_ext >&5
33362
33363eval "$as_ac_var=no"
33364fi
ac1cb8d3
VS
33365rm -f conftest.err conftest.$ac_objext \
33366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33367fi
33368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33370if test `eval echo '${'$as_ac_var'}'` = yes; then
33371 cat >>confdefs.h <<_ACEOF
33372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33373_ACEOF
33374
33375 cat >>confdefs.h <<\_ACEOF
33376#define HAVE_SHL_LOAD 1
33377_ACEOF
33378
33379 HAVE_SHL_FUNCS=1
33380
33381else
33382
33383 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33384echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33385if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33386 echo $ECHO_N "(cached) $ECHO_C" >&6
33387else
33388 ac_check_lib_save_LIBS=$LIBS
33389LIBS="-lshl_load $LIBS"
33390cat >conftest.$ac_ext <<_ACEOF
33391/* confdefs.h. */
33392_ACEOF
33393cat confdefs.h >>conftest.$ac_ext
33394cat >>conftest.$ac_ext <<_ACEOF
33395/* end confdefs.h. */
33396
33397/* Override any gcc2 internal prototype to avoid an error. */
33398#ifdef __cplusplus
33399extern "C"
33400#endif
33401/* We use char because int might match the return type of a gcc2
33402 builtin and then its argument prototype would still apply. */
33403char dld ();
33404int
33405main ()
33406{
33407dld ();
33408 ;
33409 return 0;
33410}
33411_ACEOF
33412rm -f conftest.$ac_objext conftest$ac_exeext
33413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33414 (eval $ac_link) 2>conftest.er1
a848cd7e 33415 ac_status=$?
ac1cb8d3
VS
33416 grep -v '^ *+' conftest.er1 >conftest.err
33417 rm -f conftest.er1
33418 cat conftest.err >&5
a848cd7e
SC
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); } &&
4d4ff94c 33421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33423 (eval $ac_try) 2>&5
33424 ac_status=$?
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); }; } &&
33427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429 (eval $ac_try) 2>&5
33430 ac_status=$?
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; }; then
33433 ac_cv_lib_shl_load_dld=yes
33434else
33435 echo "$as_me: failed program was:" >&5
33436sed 's/^/| /' conftest.$ac_ext >&5
33437
33438ac_cv_lib_shl_load_dld=no
33439fi
ac1cb8d3
VS
33440rm -f conftest.err conftest.$ac_objext \
33441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33442LIBS=$ac_check_lib_save_LIBS
33443fi
33444echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33445echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33446if test $ac_cv_lib_shl_load_dld = yes; then
33447
33448 HAVE_SHL_FUNCS=1
33449 DL_LINK=" -ldld$DL_LINK"
33450
33451fi
33452
33453
33454fi
33455done
33456
33457
33458fi
33459
33460
33461fi
33462done
33463
33464
33465 if test "$HAVE_DL_FUNCS" = 1; then
33466
33467for ac_func in dlerror
33468do
33469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33470echo "$as_me:$LINENO: checking for $ac_func" >&5
33471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33472if eval "test \"\${$as_ac_var+set}\" = set"; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33474else
33475 cat >conftest.$ac_ext <<_ACEOF
33476/* confdefs.h. */
33477_ACEOF
33478cat confdefs.h >>conftest.$ac_ext
33479cat >>conftest.$ac_ext <<_ACEOF
33480/* end confdefs.h. */
ac1cb8d3
VS
33481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33483#define $ac_func innocuous_$ac_func
33484
a848cd7e
SC
33485/* System header to define __stub macros and hopefully few prototypes,
33486 which can conflict with char $ac_func (); below.
33487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33489
a848cd7e
SC
33490#ifdef __STDC__
33491# include <limits.h>
33492#else
33493# include <assert.h>
33494#endif
ac1cb8d3
VS
33495
33496#undef $ac_func
33497
a848cd7e
SC
33498/* Override any gcc2 internal prototype to avoid an error. */
33499#ifdef __cplusplus
33500extern "C"
33501{
33502#endif
33503/* We use char because int might match the return type of a gcc2
33504 builtin and then its argument prototype would still apply. */
33505char $ac_func ();
33506/* The GNU C library defines this for functions which it implements
33507 to always fail with ENOSYS. Some functions are actually named
33508 something starting with __ and the normal name is an alias. */
33509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33510choke me
33511#else
33512char (*f) () = $ac_func;
33513#endif
33514#ifdef __cplusplus
33515}
33516#endif
33517
33518int
33519main ()
33520{
33521return f != $ac_func;
33522 ;
33523 return 0;
33524}
33525_ACEOF
33526rm -f conftest.$ac_objext conftest$ac_exeext
33527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33528 (eval $ac_link) 2>conftest.er1
a848cd7e 33529 ac_status=$?
ac1cb8d3
VS
33530 grep -v '^ *+' conftest.er1 >conftest.err
33531 rm -f conftest.er1
33532 cat conftest.err >&5
a848cd7e
SC
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); } &&
4d4ff94c 33535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 eval "$as_ac_var=yes"
33548else
33549 echo "$as_me: failed program was:" >&5
33550sed 's/^/| /' conftest.$ac_ext >&5
33551
33552eval "$as_ac_var=no"
33553fi
ac1cb8d3
VS
33554rm -f conftest.err conftest.$ac_objext \
33555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33556fi
33557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33559if test `eval echo '${'$as_ac_var'}'` = yes; then
33560 cat >>confdefs.h <<_ACEOF
33561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33562_ACEOF
33563 cat >>confdefs.h <<\_ACEOF
33564#define HAVE_DLERROR 1
33565_ACEOF
33566
33567else
33568
33569 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33570echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33571if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33573else
33574 ac_check_lib_save_LIBS=$LIBS
33575LIBS="-ldl $LIBS"
33576cat >conftest.$ac_ext <<_ACEOF
33577/* confdefs.h. */
33578_ACEOF
33579cat confdefs.h >>conftest.$ac_ext
33580cat >>conftest.$ac_ext <<_ACEOF
33581/* end confdefs.h. */
33582
33583/* Override any gcc2 internal prototype to avoid an error. */
33584#ifdef __cplusplus
33585extern "C"
33586#endif
33587/* We use char because int might match the return type of a gcc2
33588 builtin and then its argument prototype would still apply. */
33589char dlerror ();
33590int
33591main ()
33592{
33593dlerror ();
33594 ;
33595 return 0;
33596}
33597_ACEOF
33598rm -f conftest.$ac_objext conftest$ac_exeext
33599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33600 (eval $ac_link) 2>conftest.er1
a848cd7e 33601 ac_status=$?
ac1cb8d3
VS
33602 grep -v '^ *+' conftest.er1 >conftest.err
33603 rm -f conftest.er1
33604 cat conftest.err >&5
a848cd7e
SC
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); } &&
4d4ff94c 33607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; } &&
33613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615 (eval $ac_try) 2>&5
33616 ac_status=$?
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; }; then
33619 ac_cv_lib_dl_dlerror=yes
33620else
33621 echo "$as_me: failed program was:" >&5
33622sed 's/^/| /' conftest.$ac_ext >&5
33623
33624ac_cv_lib_dl_dlerror=no
33625fi
ac1cb8d3
VS
33626rm -f conftest.err conftest.$ac_objext \
33627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33628LIBS=$ac_check_lib_save_LIBS
33629fi
33630echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33631echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33632if test $ac_cv_lib_dl_dlerror = yes; then
33633 cat >>confdefs.h <<\_ACEOF
33634#define HAVE_DLERROR 1
33635_ACEOF
33636
33637fi
33638
33639
33640
33641fi
33642done
33643
33644 fi
33645 fi
33646
33647 if test "$HAVE_DL_FUNCS" = 0; then
33648 if test "$HAVE_SHL_FUNCS" = 0; then
33649 if test "$USE_UNIX" = 1; then
33650 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33651echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33652 wxUSE_DYNAMIC_LOADER=no
33653 wxUSE_DYNLIB_CLASS=no
33654 else
33655 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33656echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33657 fi
33658 fi
33659 fi
33660 fi
33661fi
33662
33663if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33664 cat >>confdefs.h <<\_ACEOF
33665#define wxUSE_DYNAMIC_LOADER 1
33666_ACEOF
33667
33668fi
33669if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33670 cat >>confdefs.h <<\_ACEOF
33671#define wxUSE_DYNLIB_CLASS 1
33672_ACEOF
33673
33674fi
33675
33676
33677
33678if test "$wxUSE_PLUGINS" = "yes" ; then
33679 if test "$wxUSE_SHARED" = "no" ; then
33680 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33681echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33682 wxUSE_PLUGINS=no
33683 fi
33684 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33685 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33686echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33687 wxUSE_PLUGINS=no
33688 fi
33689 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33690 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33691echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33692 wxUSE_PLUGINS=no
33693 fi
33694 if test "$wxUSE_PLUGINS" = "yes" ; then
33695 cat >>confdefs.h <<\_ACEOF
33696#define wxUSE_PLUGINS 1
33697_ACEOF
33698
33699 fi
33700fi
33701
33702
33703if test "$wxUSE_STL" = "yes"; then
33704 cat >>confdefs.h <<\_ACEOF
33705#define wxUSE_STL 1
33706_ACEOF
33707
33708fi
33709
33710if test "$wxUSE_APPLE_IEEE" = "yes"; then
33711 cat >>confdefs.h <<\_ACEOF
33712#define wxUSE_APPLE_IEEE 1
33713_ACEOF
33714
33715fi
33716
33717if test "$wxUSE_TIMER" = "yes"; then
33718 cat >>confdefs.h <<\_ACEOF
33719#define wxUSE_TIMER 1
33720_ACEOF
33721
33722fi
33723
33724WITH_PLUGIN_SDL=0
33725if test "$wxUSE_SOUND" = "yes"; then
33726 if test "$USE_UNIX" = "1" ; then
33727
33728for ac_header in sys/soundcard.h
33729do
33730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33731if eval "test \"\${$as_ac_Header+set}\" = set"; then
33732 echo "$as_me:$LINENO: checking for $ac_header" >&5
33733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33734if eval "test \"\${$as_ac_Header+set}\" = set"; then
33735 echo $ECHO_N "(cached) $ECHO_C" >&6
33736fi
33737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33739else
33740 # Is the header compilable?
33741echo "$as_me:$LINENO: checking $ac_header usability" >&5
33742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33743cat >conftest.$ac_ext <<_ACEOF
33744/* confdefs.h. */
33745_ACEOF
33746cat confdefs.h >>conftest.$ac_ext
33747cat >>conftest.$ac_ext <<_ACEOF
33748/* end confdefs.h. */
33749$ac_includes_default
33750#include <$ac_header>
33751_ACEOF
33752rm -f conftest.$ac_objext
33753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33754 (eval $ac_compile) 2>conftest.er1
a848cd7e 33755 ac_status=$?
ac1cb8d3
VS
33756 grep -v '^ *+' conftest.er1 >conftest.err
33757 rm -f conftest.er1
33758 cat conftest.err >&5
a848cd7e
SC
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); } &&
4d4ff94c 33761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33763 (eval $ac_try) 2>&5
33764 ac_status=$?
33765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 (exit $ac_status); }; } &&
33767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769 (eval $ac_try) 2>&5
33770 ac_status=$?
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; }; then
33773 ac_header_compiler=yes
33774else
33775 echo "$as_me: failed program was:" >&5
33776sed 's/^/| /' conftest.$ac_ext >&5
33777
33778ac_header_compiler=no
33779fi
ac1cb8d3 33780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33782echo "${ECHO_T}$ac_header_compiler" >&6
33783
33784# Is the header present?
33785echo "$as_me:$LINENO: checking $ac_header presence" >&5
33786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33787cat >conftest.$ac_ext <<_ACEOF
33788/* confdefs.h. */
33789_ACEOF
33790cat confdefs.h >>conftest.$ac_ext
33791cat >>conftest.$ac_ext <<_ACEOF
33792/* end confdefs.h. */
33793#include <$ac_header>
33794_ACEOF
33795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33797 ac_status=$?
33798 grep -v '^ *+' conftest.er1 >conftest.err
33799 rm -f conftest.er1
33800 cat conftest.err >&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } >/dev/null; then
33803 if test -s conftest.err; then
33804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33806 else
33807 ac_cpp_err=
33808 fi
33809else
33810 ac_cpp_err=yes
33811fi
33812if test -z "$ac_cpp_err"; then
33813 ac_header_preproc=yes
33814else
33815 echo "$as_me: failed program was:" >&5
33816sed 's/^/| /' conftest.$ac_ext >&5
33817
33818 ac_header_preproc=no
33819fi
33820rm -f conftest.err conftest.$ac_ext
33821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33822echo "${ECHO_T}$ac_header_preproc" >&6
33823
33824# So? What about this header?
ac1cb8d3
VS
33825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33826 yes:no: )
a848cd7e
SC
33827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33831 ac_header_preproc=yes
a848cd7e 33832 ;;
ac1cb8d3 33833 no:yes:* )
a848cd7e
SC
33834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33846 (
33847 cat <<\_ASBOX
ac1cb8d3
VS
33848## ----------------------------------------- ##
33849## Report this to wx-dev@lists.wxwidgets.org ##
33850## ----------------------------------------- ##
a848cd7e
SC
33851_ASBOX
33852 ) |
33853 sed "s/^/$as_me: WARNING: /" >&2
33854 ;;
33855esac
33856echo "$as_me:$LINENO: checking for $ac_header" >&5
33857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33858if eval "test \"\${$as_ac_Header+set}\" = set"; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33860else
ac1cb8d3 33861 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33862fi
33863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33865
33866fi
33867if test `eval echo '${'$as_ac_Header'}'` = yes; then
33868 cat >>confdefs.h <<_ACEOF
33869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33870_ACEOF
33871
33872fi
33873
33874done
33875
33876
33877 if test "$wxUSE_LIBSDL" != "no"; then
33878
33879# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
33880if test "${with_sdl_prefix+set}" = set; then
33881 withval="$with_sdl_prefix"
33882 sdl_prefix="$withval"
33883else
33884 sdl_prefix=""
33885fi;
33886
33887# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
33888if test "${with_sdl_exec_prefix+set}" = set; then
33889 withval="$with_sdl_exec_prefix"
33890 sdl_exec_prefix="$withval"
33891else
33892 sdl_exec_prefix=""
33893fi;
33894# Check whether --enable-sdltest or --disable-sdltest was given.
33895if test "${enable_sdltest+set}" = set; then
33896 enableval="$enable_sdltest"
33897
33898else
33899 enable_sdltest=yes
33900fi;
33901
33902 if test x$sdl_exec_prefix != x ; then
33903 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33904 if test x${SDL_CONFIG+set} != xset ; then
33905 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33906 fi
33907 fi
33908 if test x$sdl_prefix != x ; then
33909 sdl_args="$sdl_args --prefix=$sdl_prefix"
33910 if test x${SDL_CONFIG+set} != xset ; then
33911 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33912 fi
33913 fi
33914
33915
33916 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33917 # Extract the first word of "sdl-config", so it can be a program name with args.
33918set dummy sdl-config; ac_word=$2
33919echo "$as_me:$LINENO: checking for $ac_word" >&5
33920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33921if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33923else
33924 case $SDL_CONFIG in
33925 [\\/]* | ?:[\\/]*)
33926 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33927 ;;
33928 *)
33929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33930for as_dir in $PATH
33931do
33932 IFS=$as_save_IFS
33933 test -z "$as_dir" && as_dir=.
33934 for ac_exec_ext in '' $ac_executable_extensions; do
33935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33936 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33938 break 2
33939 fi
33940done
33941done
33942
33943 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33944 ;;
33945esac
33946fi
33947SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33948
33949if test -n "$SDL_CONFIG"; then
33950 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33951echo "${ECHO_T}$SDL_CONFIG" >&6
33952else
33953 echo "$as_me:$LINENO: result: no" >&5
33954echo "${ECHO_T}no" >&6
33955fi
33956
33957 min_sdl_version=1.2.0
33958 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33959echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
33960 no_sdl=""
33961 if test "$SDL_CONFIG" = "no" ; then
33962 no_sdl=yes
33963 else
33964 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33965 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33966
33967 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33969 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33971 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33973 if test "x$enable_sdltest" = "xyes" ; then
33974 ac_save_CFLAGS="$CFLAGS"
33975 ac_save_LIBS="$LIBS"
33976 CFLAGS="$CFLAGS $SDL_CFLAGS"
33977 LIBS="$LIBS $SDL_LIBS"
33978 rm -f conf.sdltest
33979 if test "$cross_compiling" = yes; then
33980 echo $ac_n "cross compiling; assumed OK... $ac_c"
33981else
33982 cat >conftest.$ac_ext <<_ACEOF
33983/* confdefs.h. */
33984_ACEOF
33985cat confdefs.h >>conftest.$ac_ext
33986cat >>conftest.$ac_ext <<_ACEOF
33987/* end confdefs.h. */
33988
33989#include <stdio.h>
33990#include <stdlib.h>
33991#include <string.h>
33992#include "SDL.h"
33993
33994char*
33995my_strdup (char *str)
33996{
33997 char *new_str;
33998
33999 if (str)
34000 {
34001 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34002 strcpy (new_str, str);
34003 }
34004 else
34005 new_str = NULL;
34006
34007 return new_str;
34008}
34009
34010int main (int argc, char *argv[])
34011{
34012 int major, minor, micro;
34013 char *tmp_version;
34014
34015 /* This hangs on some systems (?)
34016 system ("touch conf.sdltest");
34017 */
34018 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34019
34020 /* HP/UX 9 (%@#!) writes to sscanf strings */
34021 tmp_version = my_strdup("$min_sdl_version");
34022 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34023 printf("%s, bad version string\n", "$min_sdl_version");
34024 exit(1);
34025 }
34026
34027 if (($sdl_major_version > major) ||
34028 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34029 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34030 {
34031 return 0;
34032 }
34033 else
34034 {
34035 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34036 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34037 printf("*** best to upgrade to the required version.\n");
34038 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34039 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34040 printf("*** config.cache before re-running configure\n");
34041 return 1;
34042 }
34043}
34044
34045
34046_ACEOF
34047rm -f conftest$ac_exeext
34048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34049 (eval $ac_link) 2>&5
34050 ac_status=$?
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34054 (eval $ac_try) 2>&5
34055 ac_status=$?
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); }; }; then
34058 :
34059else
34060 echo "$as_me: program exited with status $ac_status" >&5
34061echo "$as_me: failed program was:" >&5
34062sed 's/^/| /' conftest.$ac_ext >&5
34063
34064( exit $ac_status )
34065no_sdl=yes
34066fi
ac1cb8d3 34067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34068fi
34069 CFLAGS="$ac_save_CFLAGS"
34070 LIBS="$ac_save_LIBS"
34071 fi
34072 fi
34073 if test "x$no_sdl" = x ; then
34074 echo "$as_me:$LINENO: result: yes" >&5
34075echo "${ECHO_T}yes" >&6
34076
34077 EXTRALIBS_SDL="$SDL_LIBS"
34078 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34079 cat >>confdefs.h <<\_ACEOF
34080#define wxUSE_LIBSDL 1
34081_ACEOF
34082
34083
34084 else
34085 echo "$as_me:$LINENO: result: no" >&5
34086echo "${ECHO_T}no" >&6
34087 if test "$SDL_CONFIG" = "no" ; then
34088 echo "*** The sdl-config script installed by SDL could not be found"
34089 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34090 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34091 echo "*** full path to sdl-config."
34092 else
34093 if test -f conf.sdltest ; then
34094 :
34095 else
34096 echo "*** Could not run SDL test program, checking why..."
34097 CFLAGS="$CFLAGS $SDL_CFLAGS"
34098 LIBS="$LIBS $SDL_LIBS"
34099 cat >conftest.$ac_ext <<_ACEOF
34100/* confdefs.h. */
34101_ACEOF
34102cat confdefs.h >>conftest.$ac_ext
34103cat >>conftest.$ac_ext <<_ACEOF
34104/* end confdefs.h. */
34105
34106#include <stdio.h>
34107#include "SDL.h"
34108
34109int main(int argc, char *argv[])
34110{ return 0; }
34111#undef main
34112#define main K_and_R_C_main
34113
34114int
34115main ()
34116{
34117 return 0;
34118 ;
34119 return 0;
34120}
34121_ACEOF
34122rm -f conftest.$ac_objext conftest$ac_exeext
34123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34124 (eval $ac_link) 2>conftest.er1
a848cd7e 34125 ac_status=$?
ac1cb8d3
VS
34126 grep -v '^ *+' conftest.er1 >conftest.err
34127 rm -f conftest.er1
34128 cat conftest.err >&5
a848cd7e
SC
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } &&
4d4ff94c 34131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; } &&
34137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; }; then
34143 echo "*** The test program compiled, but did not run. This usually means"
34144 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34145 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34146 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34147 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34148 echo "*** is required on your system"
34149 echo "***"
34150 echo "*** If you have an old version installed, it is best to remove it, although"
34151 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34152else
34153 echo "$as_me: failed program was:" >&5
34154sed 's/^/| /' conftest.$ac_ext >&5
34155
34156 echo "*** The test program failed to compile or link. See the file config.log for the"
34157 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34158 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34159 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34160fi
ac1cb8d3
VS
34161rm -f conftest.err conftest.$ac_objext \
34162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34163 CFLAGS="$ac_save_CFLAGS"
34164 LIBS="$ac_save_LIBS"
34165 fi
34166 fi
34167 SDL_CFLAGS=""
34168 SDL_LIBS=""
34169 wxUSE_LIBSDL="no"
34170 fi
34171
34172
34173 rm -f conf.sdltest
34174
34175 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34176 WITH_PLUGIN_SDL=1
34177 fi
34178 fi
34179 fi
34180
34181 cat >>confdefs.h <<\_ACEOF
34182#define wxUSE_SOUND 1
34183_ACEOF
34184
34185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34186fi
34187
34188if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34189 cat >>confdefs.h <<\_ACEOF
34190#define wxUSE_CMDLINE_PARSER 1
34191_ACEOF
34192
34193fi
34194
34195if test "$wxUSE_STOPWATCH" = "yes"; then
34196 cat >>confdefs.h <<\_ACEOF
34197#define wxUSE_STOPWATCH 1
34198_ACEOF
34199
34200fi
34201
34202if test "$wxUSE_DATETIME" = "yes"; then
34203 cat >>confdefs.h <<\_ACEOF
34204#define wxUSE_DATETIME 1
34205_ACEOF
34206
34207fi
34208
34209if test "$wxUSE_FILE" = "yes"; then
34210 cat >>confdefs.h <<\_ACEOF
34211#define wxUSE_FILE 1
34212_ACEOF
34213
34214fi
34215
34216if test "$wxUSE_FFILE" = "yes"; then
34217 cat >>confdefs.h <<\_ACEOF
34218#define wxUSE_FFILE 1
34219_ACEOF
34220
34221fi
34222
34223if test "$wxUSE_FILESYSTEM" = "yes"; then
34224 cat >>confdefs.h <<\_ACEOF
34225#define wxUSE_FILESYSTEM 1
34226_ACEOF
34227
34228fi
34229
34230if test "$wxUSE_FS_ZIP" = "yes"; then
34231 cat >>confdefs.h <<\_ACEOF
34232#define wxUSE_FS_ZIP 1
34233_ACEOF
34234
34235fi
34236
34237if test "$wxUSE_ZIPSTREAM" = "yes"; then
34238 cat >>confdefs.h <<\_ACEOF
34239#define wxUSE_ZIPSTREAM 1
34240_ACEOF
34241
34242fi
34243
a848cd7e
SC
34244if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34245 cat >>confdefs.h <<\_ACEOF
34246#define wxUSE_ON_FATAL_EXCEPTION 1
34247_ACEOF
34248
34249fi
34250
34251if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34252 cat >>confdefs.h <<\_ACEOF
34253#define wxUSE_SNGLINST_CHECKER 1
34254_ACEOF
34255
34256fi
34257
34258if test "$wxUSE_BUSYINFO" = "yes"; then
34259 cat >>confdefs.h <<\_ACEOF
34260#define wxUSE_BUSYINFO 1
34261_ACEOF
34262
34263fi
34264
34265if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34266 cat >>confdefs.h <<\_ACEOF
34267#define wxUSE_STD_IOSTREAM 1
34268_ACEOF
34269
34270fi
34271
34272if test "$wxUSE_TEXTBUFFER" = "yes"; then
34273 cat >>confdefs.h <<\_ACEOF
34274#define wxUSE_TEXTBUFFER 1
34275_ACEOF
34276
34277fi
34278
34279if test "$wxUSE_TEXTFILE" = "yes"; then
34280 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34281 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34282echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34283 else
34284 cat >>confdefs.h <<\_ACEOF
34285#define wxUSE_TEXTFILE 1
34286_ACEOF
34287
34288 fi
34289fi
34290
34291if test "$wxUSE_CONFIG" = "yes" ; then
34292 if test "$wxUSE_TEXTFILE" != "yes"; then
34293 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34294echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34295 else
34296 cat >>confdefs.h <<\_ACEOF
34297#define wxUSE_CONFIG 1
34298_ACEOF
34299
34300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34301 fi
34302fi
34303
34304if test "$wxUSE_INTL" = "yes" ; then
34305 if test "$wxUSE_FILE" != "yes"; then
34306 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34307echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34308 else
34309 cat >>confdefs.h <<\_ACEOF
34310#define wxUSE_INTL 1
34311_ACEOF
34312
34313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34314 GUIDIST="$GUIDIST INTL_DIST"
34315 fi
34316fi
34317
34318if test "$wxUSE_LOG" = "yes"; then
34319 cat >>confdefs.h <<\_ACEOF
34320#define wxUSE_LOG 1
34321_ACEOF
34322
34323
34324 if test "$wxUSE_LOGGUI" = "yes"; then
34325 cat >>confdefs.h <<\_ACEOF
34326#define wxUSE_LOGGUI 1
34327_ACEOF
34328
34329 fi
34330
34331 if test "$wxUSE_LOGWINDOW" = "yes"; then
34332 cat >>confdefs.h <<\_ACEOF
34333#define wxUSE_LOGWINDOW 1
34334_ACEOF
34335
34336 fi
34337
34338 if test "$wxUSE_LOGDIALOG" = "yes"; then
34339 cat >>confdefs.h <<\_ACEOF
34340#define wxUSE_LOG_DIALOG 1
34341_ACEOF
34342
34343 fi
34344fi
34345
34346if test "$wxUSE_LONGLONG" = "yes"; then
34347 cat >>confdefs.h <<\_ACEOF
34348#define wxUSE_LONGLONG 1
34349_ACEOF
34350
34351fi
34352
34353if test "$wxUSE_GEOMETRY" = "yes"; then
34354 cat >>confdefs.h <<\_ACEOF
34355#define wxUSE_GEOMETRY 1
34356_ACEOF
34357
34358fi
34359
34360if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34361 cat >>confdefs.h <<\_ACEOF
34362#define wxUSE_DIALUP_MANAGER 1
34363_ACEOF
34364
34365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34366fi
34367
34368if test "$wxUSE_STREAMS" = "yes" ; then
34369 cat >>confdefs.h <<\_ACEOF
34370#define wxUSE_STREAMS 1
34371_ACEOF
34372
34373fi
34374
34375
34376if test "$wxUSE_DATETIME" = "yes"; then
34377
34378for ac_func in strptime
34379do
34380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34381echo "$as_me:$LINENO: checking for $ac_func" >&5
34382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34383if eval "test \"\${$as_ac_var+set}\" = set"; then
34384 echo $ECHO_N "(cached) $ECHO_C" >&6
34385else
34386 cat >conftest.$ac_ext <<_ACEOF
34387/* confdefs.h. */
34388_ACEOF
34389cat confdefs.h >>conftest.$ac_ext
34390cat >>conftest.$ac_ext <<_ACEOF
34391/* end confdefs.h. */
ac1cb8d3
VS
34392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34394#define $ac_func innocuous_$ac_func
34395
a848cd7e
SC
34396/* System header to define __stub macros and hopefully few prototypes,
34397 which can conflict with char $ac_func (); below.
34398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34399 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34400
a848cd7e
SC
34401#ifdef __STDC__
34402# include <limits.h>
34403#else
34404# include <assert.h>
34405#endif
ac1cb8d3
VS
34406
34407#undef $ac_func
34408
a848cd7e
SC
34409/* Override any gcc2 internal prototype to avoid an error. */
34410#ifdef __cplusplus
34411extern "C"
34412{
34413#endif
34414/* We use char because int might match the return type of a gcc2
34415 builtin and then its argument prototype would still apply. */
34416char $ac_func ();
34417/* The GNU C library defines this for functions which it implements
34418 to always fail with ENOSYS. Some functions are actually named
34419 something starting with __ and the normal name is an alias. */
34420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34421choke me
34422#else
34423char (*f) () = $ac_func;
34424#endif
34425#ifdef __cplusplus
34426}
34427#endif
34428
34429int
34430main ()
34431{
34432return f != $ac_func;
34433 ;
34434 return 0;
34435}
34436_ACEOF
34437rm -f conftest.$ac_objext conftest$ac_exeext
34438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34439 (eval $ac_link) 2>conftest.er1
a848cd7e 34440 ac_status=$?
ac1cb8d3
VS
34441 grep -v '^ *+' conftest.er1 >conftest.err
34442 rm -f conftest.er1
34443 cat conftest.err >&5
a848cd7e
SC
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); } &&
4d4ff94c 34446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34455 ac_status=$?
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; }; then
34458 eval "$as_ac_var=yes"
34459else
34460 echo "$as_me: failed program was:" >&5
34461sed 's/^/| /' conftest.$ac_ext >&5
34462
34463eval "$as_ac_var=no"
34464fi
ac1cb8d3
VS
34465rm -f conftest.err conftest.$ac_objext \
34466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34467fi
34468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34470if test `eval echo '${'$as_ac_var'}'` = yes; then
34471 cat >>confdefs.h <<_ACEOF
34472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34473_ACEOF
34474
34475fi
34476done
34477
34478
34479 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34480echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34481if test "${wx_cv_var_timezone+set}" = set; then
34482 echo $ECHO_N "(cached) $ECHO_C" >&6
34483else
34484
34485 cat >conftest.$ac_ext <<_ACEOF
34486/* confdefs.h. */
34487_ACEOF
34488cat confdefs.h >>conftest.$ac_ext
34489cat >>conftest.$ac_ext <<_ACEOF
34490/* end confdefs.h. */
34491
34492 #include <time.h>
34493
34494int
34495main ()
34496{
34497
34498 int tz;
34499 tz = timezone;
34500
34501 ;
34502 return 0;
34503}
34504_ACEOF
34505rm -f conftest.$ac_objext
34506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34507 (eval $ac_compile) 2>conftest.er1
a848cd7e 34508 ac_status=$?
ac1cb8d3
VS
34509 grep -v '^ *+' conftest.er1 >conftest.err
34510 rm -f conftest.er1
34511 cat conftest.err >&5
a848cd7e
SC
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); } &&
4d4ff94c 34514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516 (eval $ac_try) 2>&5
34517 ac_status=$?
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); }; } &&
34520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; }; then
34526
34527 wx_cv_var_timezone=timezone
34528
34529else
34530 echo "$as_me: failed program was:" >&5
34531sed 's/^/| /' conftest.$ac_ext >&5
34532
34533
34534 cat >conftest.$ac_ext <<_ACEOF
34535/* confdefs.h. */
34536_ACEOF
34537cat confdefs.h >>conftest.$ac_ext
34538cat >>conftest.$ac_ext <<_ACEOF
34539/* end confdefs.h. */
34540
34541 #include <time.h>
34542
34543int
34544main ()
34545{
34546
34547 int tz;
34548 tz = _timezone;
34549
34550 ;
34551 return 0;
34552}
34553_ACEOF
34554rm -f conftest.$ac_objext
34555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34556 (eval $ac_compile) 2>conftest.er1
a848cd7e 34557 ac_status=$?
ac1cb8d3
VS
34558 grep -v '^ *+' conftest.er1 >conftest.err
34559 rm -f conftest.er1
34560 cat conftest.err >&5
a848cd7e
SC
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); } &&
4d4ff94c 34563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565 (eval $ac_try) 2>&5
34566 ac_status=$?
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); }; } &&
34569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571 (eval $ac_try) 2>&5
34572 ac_status=$?
34573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 (exit $ac_status); }; }; then
34575
34576 wx_cv_var_timezone=_timezone
34577
34578else
34579 echo "$as_me: failed program was:" >&5
34580sed 's/^/| /' conftest.$ac_ext >&5
34581
34582
34583 cat >conftest.$ac_ext <<_ACEOF
34584/* confdefs.h. */
34585_ACEOF
34586cat confdefs.h >>conftest.$ac_ext
34587cat >>conftest.$ac_ext <<_ACEOF
34588/* end confdefs.h. */
34589
34590 #include <time.h>
34591
34592int
34593main ()
34594{
34595
34596 int tz;
34597 tz = __timezone;
34598
34599 ;
34600 return 0;
34601}
34602_ACEOF
34603rm -f conftest.$ac_objext
34604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34605 (eval $ac_compile) 2>conftest.er1
a848cd7e 34606 ac_status=$?
ac1cb8d3
VS
34607 grep -v '^ *+' conftest.er1 >conftest.err
34608 rm -f conftest.er1
34609 cat conftest.err >&5
a848cd7e
SC
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } &&
4d4ff94c 34612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34614 (eval $ac_try) 2>&5
34615 ac_status=$?
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); }; } &&
34618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620 (eval $ac_try) 2>&5
34621 ac_status=$?
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; }; then
34624
34625 wx_cv_var_timezone=__timezone
34626
34627else
34628 echo "$as_me: failed program was:" >&5
34629sed 's/^/| /' conftest.$ac_ext >&5
34630
34631
34632 if test "$USE_DOS" = 0 ; then
34633 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34634echo "$as_me: WARNING: no timezone variable" >&2;}
34635 fi
34636
34637
34638fi
ac1cb8d3 34639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34640
34641
34642fi
ac1cb8d3 34643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34644
34645
34646fi
ac1cb8d3 34647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34648
34649
34650fi
34651echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34652echo "${ECHO_T}$wx_cv_var_timezone" >&6
34653
34654 if test "x$wx_cv_var_timezone" != x ; then
34655 cat >>confdefs.h <<_ACEOF
34656#define WX_TIMEZONE $wx_cv_var_timezone
34657_ACEOF
34658
34659 fi
34660
34661
34662for ac_func in localtime
34663do
34664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34665echo "$as_me:$LINENO: checking for $ac_func" >&5
34666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34667if eval "test \"\${$as_ac_var+set}\" = set"; then
34668 echo $ECHO_N "(cached) $ECHO_C" >&6
34669else
34670 cat >conftest.$ac_ext <<_ACEOF
34671/* confdefs.h. */
34672_ACEOF
34673cat confdefs.h >>conftest.$ac_ext
34674cat >>conftest.$ac_ext <<_ACEOF
34675/* end confdefs.h. */
ac1cb8d3
VS
34676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34678#define $ac_func innocuous_$ac_func
34679
a848cd7e
SC
34680/* System header to define __stub macros and hopefully few prototypes,
34681 which can conflict with char $ac_func (); below.
34682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34683 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34684
a848cd7e
SC
34685#ifdef __STDC__
34686# include <limits.h>
34687#else
34688# include <assert.h>
34689#endif
ac1cb8d3
VS
34690
34691#undef $ac_func
34692
a848cd7e
SC
34693/* Override any gcc2 internal prototype to avoid an error. */
34694#ifdef __cplusplus
34695extern "C"
34696{
34697#endif
34698/* We use char because int might match the return type of a gcc2
34699 builtin and then its argument prototype would still apply. */
34700char $ac_func ();
34701/* The GNU C library defines this for functions which it implements
34702 to always fail with ENOSYS. Some functions are actually named
34703 something starting with __ and the normal name is an alias. */
34704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34705choke me
34706#else
34707char (*f) () = $ac_func;
34708#endif
34709#ifdef __cplusplus
34710}
34711#endif
34712
34713int
34714main ()
34715{
34716return f != $ac_func;
34717 ;
34718 return 0;
34719}
34720_ACEOF
34721rm -f conftest.$ac_objext conftest$ac_exeext
34722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34723 (eval $ac_link) 2>conftest.er1
a848cd7e 34724 ac_status=$?
ac1cb8d3
VS
34725 grep -v '^ *+' conftest.er1 >conftest.err
34726 rm -f conftest.er1
34727 cat conftest.err >&5
a848cd7e
SC
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); } &&
4d4ff94c 34730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34732 (eval $ac_try) 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; } &&
34736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34738 (eval $ac_try) 2>&5
34739 ac_status=$?
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); }; }; then
34742 eval "$as_ac_var=yes"
34743else
34744 echo "$as_me: failed program was:" >&5
34745sed 's/^/| /' conftest.$ac_ext >&5
34746
34747eval "$as_ac_var=no"
34748fi
ac1cb8d3
VS
34749rm -f conftest.err conftest.$ac_objext \
34750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34751fi
34752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34754if test `eval echo '${'$as_ac_var'}'` = yes; then
34755 cat >>confdefs.h <<_ACEOF
34756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34757_ACEOF
34758
34759fi
34760done
34761
34762
34763 if test "$ac_cv_func_localtime" = "yes"; then
34764 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34765echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34766if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34767 echo $ECHO_N "(cached) $ECHO_C" >&6
34768else
34769
34770 cat >conftest.$ac_ext <<_ACEOF
34771/* confdefs.h. */
34772_ACEOF
34773cat confdefs.h >>conftest.$ac_ext
34774cat >>conftest.$ac_ext <<_ACEOF
34775/* end confdefs.h. */
34776
34777 #include <time.h>
34778
34779int
34780main ()
34781{
34782
34783 struct tm tm;
34784 tm.tm_gmtoff++;
34785
34786 ;
34787 return 0;
34788}
34789_ACEOF
34790rm -f conftest.$ac_objext
34791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34792 (eval $ac_compile) 2>conftest.er1
a848cd7e 34793 ac_status=$?
ac1cb8d3
VS
34794 grep -v '^ *+' conftest.er1 >conftest.err
34795 rm -f conftest.er1
34796 cat conftest.err >&5
a848cd7e
SC
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } &&
4d4ff94c 34799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34801 (eval $ac_try) 2>&5
34802 ac_status=$?
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); }; } &&
34805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34807 (eval $ac_try) 2>&5
34808 ac_status=$?
34809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34810 (exit $ac_status); }; }; then
34811
34812 wx_cv_struct_tm_has_gmtoff=yes
34813
34814else
34815 echo "$as_me: failed program was:" >&5
34816sed 's/^/| /' conftest.$ac_ext >&5
34817
34818wx_cv_struct_tm_has_gmtoff=no
34819
34820fi
ac1cb8d3 34821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34822
34823fi
34824echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34825echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34826 fi
34827
34828 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34829 cat >>confdefs.h <<\_ACEOF
34830#define WX_GMTOFF_IN_TM 1
34831_ACEOF
34832
34833 fi
34834
34835
34836
34837for ac_func in gettimeofday ftime
34838do
34839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34840echo "$as_me:$LINENO: checking for $ac_func" >&5
34841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34842if eval "test \"\${$as_ac_var+set}\" = set"; then
34843 echo $ECHO_N "(cached) $ECHO_C" >&6
34844else
34845 cat >conftest.$ac_ext <<_ACEOF
34846/* confdefs.h. */
34847_ACEOF
34848cat confdefs.h >>conftest.$ac_ext
34849cat >>conftest.$ac_ext <<_ACEOF
34850/* end confdefs.h. */
ac1cb8d3
VS
34851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34853#define $ac_func innocuous_$ac_func
34854
a848cd7e
SC
34855/* System header to define __stub macros and hopefully few prototypes,
34856 which can conflict with char $ac_func (); below.
34857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34858 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34859
a848cd7e
SC
34860#ifdef __STDC__
34861# include <limits.h>
34862#else
34863# include <assert.h>
34864#endif
ac1cb8d3
VS
34865
34866#undef $ac_func
34867
a848cd7e
SC
34868/* Override any gcc2 internal prototype to avoid an error. */
34869#ifdef __cplusplus
34870extern "C"
34871{
34872#endif
34873/* We use char because int might match the return type of a gcc2
34874 builtin and then its argument prototype would still apply. */
34875char $ac_func ();
34876/* The GNU C library defines this for functions which it implements
34877 to always fail with ENOSYS. Some functions are actually named
34878 something starting with __ and the normal name is an alias. */
34879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34880choke me
34881#else
34882char (*f) () = $ac_func;
34883#endif
34884#ifdef __cplusplus
34885}
34886#endif
34887
34888int
34889main ()
34890{
34891return f != $ac_func;
34892 ;
34893 return 0;
34894}
34895_ACEOF
34896rm -f conftest.$ac_objext conftest$ac_exeext
34897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34898 (eval $ac_link) 2>conftest.er1
a848cd7e 34899 ac_status=$?
ac1cb8d3
VS
34900 grep -v '^ *+' conftest.er1 >conftest.err
34901 rm -f conftest.er1
34902 cat conftest.err >&5
a848cd7e
SC
34903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904 (exit $ac_status); } &&
4d4ff94c 34905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34907 (eval $ac_try) 2>&5
34908 ac_status=$?
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); }; } &&
34911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34913 (eval $ac_try) 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; }; then
34917 eval "$as_ac_var=yes"
34918else
34919 echo "$as_me: failed program was:" >&5
34920sed 's/^/| /' conftest.$ac_ext >&5
34921
34922eval "$as_ac_var=no"
34923fi
ac1cb8d3
VS
34924rm -f conftest.err conftest.$ac_objext \
34925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34926fi
34927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34929if test `eval echo '${'$as_ac_var'}'` = yes; then
34930 cat >>confdefs.h <<_ACEOF
34931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34932_ACEOF
34933 break
34934fi
34935done
34936
34937
34938 if test "$ac_cv_func_gettimeofday" = "yes"; then
34939 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
34940echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
34941if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
34942 echo $ECHO_N "(cached) $ECHO_C" >&6
34943else
34944
34945
34946
34947 ac_ext=cc
34948ac_cpp='$CXXCPP $CPPFLAGS'
34949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34952
34953
34954 cat >conftest.$ac_ext <<_ACEOF
34955/* confdefs.h. */
34956_ACEOF
34957cat confdefs.h >>conftest.$ac_ext
34958cat >>conftest.$ac_ext <<_ACEOF
34959/* end confdefs.h. */
34960
34961 #include <sys/time.h>
34962 #include <unistd.h>
34963
34964int
34965main ()
34966{
34967
34968 struct timeval tv;
34969 gettimeofday(&tv, NULL);
34970
34971 ;
34972 return 0;
34973}
34974_ACEOF
34975rm -f conftest.$ac_objext
34976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34977 (eval $ac_compile) 2>conftest.er1
a848cd7e 34978 ac_status=$?
ac1cb8d3
VS
34979 grep -v '^ *+' conftest.er1 >conftest.err
34980 rm -f conftest.er1
34981 cat conftest.err >&5
a848cd7e
SC
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); } &&
4d4ff94c 34984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34986 (eval $ac_try) 2>&5
34987 ac_status=$?
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); }; } &&
34990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; }; then
34996 wx_cv_func_gettimeofday_has_2_args=yes
34997else
34998 echo "$as_me: failed program was:" >&5
34999sed 's/^/| /' conftest.$ac_ext >&5
35000
35001cat >conftest.$ac_ext <<_ACEOF
35002/* confdefs.h. */
35003_ACEOF
35004cat confdefs.h >>conftest.$ac_ext
35005cat >>conftest.$ac_ext <<_ACEOF
35006/* end confdefs.h. */
35007
35008 #include <sys/time.h>
35009 #include <unistd.h>
35010
35011int
35012main ()
35013{
35014
35015 struct timeval tv;
35016 gettimeofday(&tv);
35017
35018 ;
35019 return 0;
35020}
35021_ACEOF
35022rm -f conftest.$ac_objext
35023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35024 (eval $ac_compile) 2>conftest.er1
a848cd7e 35025 ac_status=$?
ac1cb8d3
VS
35026 grep -v '^ *+' conftest.er1 >conftest.err
35027 rm -f conftest.er1
35028 cat conftest.err >&5
a848cd7e
SC
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } &&
4d4ff94c 35031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033 (eval $ac_try) 2>&5
35034 ac_status=$?
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; } &&
35037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 (eval $ac_try) 2>&5
35040 ac_status=$?
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; }; then
35043 wx_cv_func_gettimeofday_has_2_args=no
35044else
35045 echo "$as_me: failed program was:" >&5
35046sed 's/^/| /' conftest.$ac_ext >&5
35047
35048
35049 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35050echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35051 wx_cv_func_gettimeofday_has_2_args=unknown
35052
35053
35054fi
ac1cb8d3 35055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35056
35057fi
ac1cb8d3 35058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35059 ac_ext=c
35060ac_cpp='$CPP $CPPFLAGS'
35061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35063ac_compiler_gnu=$ac_cv_c_compiler_gnu
35064
35065
35066fi
35067echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35068echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35069
35070 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35071 cat >>confdefs.h <<\_ACEOF
35072#define WX_GETTIMEOFDAY_NO_TZ 1
35073_ACEOF
35074
35075 fi
35076 fi
35077
35078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35079fi
35080
35081
35082if test "$wxUSE_SOCKETS" = "yes"; then
35083 if test "$wxUSE_MGL" = "1"; then
35084 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35085echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35086 wxUSE_SOCKETS="no"
35087 fi
35088fi
35089
35090if test "$wxUSE_SOCKETS" = "yes"; then
35091 if test "$TOOLKIT" != "MSW"; then
35092 echo "$as_me:$LINENO: checking for socket" >&5
35093echo $ECHO_N "checking for socket... $ECHO_C" >&6
35094if test "${ac_cv_func_socket+set}" = set; then
35095 echo $ECHO_N "(cached) $ECHO_C" >&6
35096else
35097 cat >conftest.$ac_ext <<_ACEOF
35098/* confdefs.h. */
35099_ACEOF
35100cat confdefs.h >>conftest.$ac_ext
35101cat >>conftest.$ac_ext <<_ACEOF
35102/* end confdefs.h. */
ac1cb8d3
VS
35103/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35105#define socket innocuous_socket
35106
a848cd7e
SC
35107/* System header to define __stub macros and hopefully few prototypes,
35108 which can conflict with char socket (); below.
35109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35110 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35111
a848cd7e
SC
35112#ifdef __STDC__
35113# include <limits.h>
35114#else
35115# include <assert.h>
35116#endif
ac1cb8d3
VS
35117
35118#undef socket
35119
a848cd7e
SC
35120/* Override any gcc2 internal prototype to avoid an error. */
35121#ifdef __cplusplus
35122extern "C"
35123{
35124#endif
35125/* We use char because int might match the return type of a gcc2
35126 builtin and then its argument prototype would still apply. */
35127char socket ();
35128/* The GNU C library defines this for functions which it implements
35129 to always fail with ENOSYS. Some functions are actually named
35130 something starting with __ and the normal name is an alias. */
35131#if defined (__stub_socket) || defined (__stub___socket)
35132choke me
35133#else
35134char (*f) () = socket;
35135#endif
35136#ifdef __cplusplus
35137}
35138#endif
35139
35140int
35141main ()
35142{
35143return f != socket;
35144 ;
35145 return 0;
35146}
35147_ACEOF
35148rm -f conftest.$ac_objext conftest$ac_exeext
35149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35150 (eval $ac_link) 2>conftest.er1
a848cd7e 35151 ac_status=$?
ac1cb8d3
VS
35152 grep -v '^ *+' conftest.er1 >conftest.err
35153 rm -f conftest.er1
35154 cat conftest.err >&5
a848cd7e
SC
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); } &&
4d4ff94c 35157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35159 (eval $ac_try) 2>&5
35160 ac_status=$?
35161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162 (exit $ac_status); }; } &&
35163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35165 (eval $ac_try) 2>&5
35166 ac_status=$?
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); }; }; then
35169 ac_cv_func_socket=yes
35170else
35171 echo "$as_me: failed program was:" >&5
35172sed 's/^/| /' conftest.$ac_ext >&5
35173
35174ac_cv_func_socket=no
35175fi
ac1cb8d3
VS
35176rm -f conftest.err conftest.$ac_objext \
35177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35178fi
35179echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35180echo "${ECHO_T}$ac_cv_func_socket" >&6
35181if test $ac_cv_func_socket = yes; then
35182 :
35183else
35184
35185 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35186echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35187if test "${ac_cv_lib_socket_socket+set}" = set; then
35188 echo $ECHO_N "(cached) $ECHO_C" >&6
35189else
35190 ac_check_lib_save_LIBS=$LIBS
35191LIBS="-lsocket $LIBS"
35192cat >conftest.$ac_ext <<_ACEOF
35193/* confdefs.h. */
35194_ACEOF
35195cat confdefs.h >>conftest.$ac_ext
35196cat >>conftest.$ac_ext <<_ACEOF
35197/* end confdefs.h. */
35198
35199/* Override any gcc2 internal prototype to avoid an error. */
35200#ifdef __cplusplus
35201extern "C"
35202#endif
35203/* We use char because int might match the return type of a gcc2
35204 builtin and then its argument prototype would still apply. */
35205char socket ();
35206int
35207main ()
35208{
35209socket ();
35210 ;
35211 return 0;
35212}
35213_ACEOF
35214rm -f conftest.$ac_objext conftest$ac_exeext
35215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35216 (eval $ac_link) 2>conftest.er1
a848cd7e 35217 ac_status=$?
ac1cb8d3
VS
35218 grep -v '^ *+' conftest.er1 >conftest.err
35219 rm -f conftest.er1
35220 cat conftest.err >&5
a848cd7e
SC
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); } &&
4d4ff94c 35223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225 (eval $ac_try) 2>&5
35226 ac_status=$?
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); }; } &&
35229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231 (eval $ac_try) 2>&5
35232 ac_status=$?
35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 (exit $ac_status); }; }; then
35235 ac_cv_lib_socket_socket=yes
35236else
35237 echo "$as_me: failed program was:" >&5
35238sed 's/^/| /' conftest.$ac_ext >&5
35239
35240ac_cv_lib_socket_socket=no
35241fi
ac1cb8d3
VS
35242rm -f conftest.err conftest.$ac_objext \
35243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35244LIBS=$ac_check_lib_save_LIBS
35245fi
35246echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35247echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35248if test $ac_cv_lib_socket_socket = yes; then
35249 if test "$INET_LINK" != " -lsocket"; then
35250 INET_LINK="$INET_LINK -lsocket"
35251 fi
35252else
35253
35254 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35255echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35256 wxUSE_SOCKETS=no
35257
35258
35259fi
35260
35261
35262
35263fi
35264
35265 fi
35266fi
35267
35268if test "$wxUSE_SOCKETS" = "yes" ; then
35269 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35270 ac_ext=cc
35271ac_cpp='$CXXCPP $CPPFLAGS'
35272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35275
35276 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35277echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35278if test "${wx_cv_type_getsockname3+set}" = set; then
35279 echo $ECHO_N "(cached) $ECHO_C" >&6
35280else
35281
35282 cat >conftest.$ac_ext <<_ACEOF
35283/* confdefs.h. */
35284_ACEOF
35285cat confdefs.h >>conftest.$ac_ext
35286cat >>conftest.$ac_ext <<_ACEOF
35287/* end confdefs.h. */
35288
35289 #include <sys/types.h>
35290 #include <sys/socket.h>
35291
35292int
35293main ()
35294{
35295
35296 socklen_t len;
35297 getsockname(0, 0, &len);
35298
35299 ;
35300 return 0;
35301}
35302_ACEOF
35303rm -f conftest.$ac_objext
35304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35305 (eval $ac_compile) 2>conftest.er1
a848cd7e 35306 ac_status=$?
ac1cb8d3
VS
35307 grep -v '^ *+' conftest.er1 >conftest.err
35308 rm -f conftest.er1
35309 cat conftest.err >&5
a848cd7e
SC
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } &&
4d4ff94c 35312 { ac_try='test -z "$ac_cxx_werror_flag" || 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_objext'
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 wx_cv_type_getsockname3=socklen_t
35325else
35326 echo "$as_me: failed program was:" >&5
35327sed 's/^/| /' conftest.$ac_ext >&5
35328
35329
35330 CFLAGS_OLD="$CFLAGS"
35331 if test "$GCC" = yes ; then
35332 CFLAGS="$CFLAGS -Werror"
35333 fi
35334
35335 cat >conftest.$ac_ext <<_ACEOF
35336/* confdefs.h. */
35337_ACEOF
35338cat confdefs.h >>conftest.$ac_ext
35339cat >>conftest.$ac_ext <<_ACEOF
35340/* end confdefs.h. */
35341
35342 #include <sys/types.h>
35343 #include <sys/socket.h>
35344
35345int
35346main ()
35347{
35348
35349 size_t len;
35350 getsockname(0, 0, &len);
35351
35352 ;
35353 return 0;
35354}
35355_ACEOF
35356rm -f conftest.$ac_objext
35357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35358 (eval $ac_compile) 2>conftest.er1
a848cd7e 35359 ac_status=$?
ac1cb8d3
VS
35360 grep -v '^ *+' conftest.er1 >conftest.err
35361 rm -f conftest.er1
35362 cat conftest.err >&5
a848cd7e
SC
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); } &&
4d4ff94c 35365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35367 (eval $ac_try) 2>&5
35368 ac_status=$?
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); }; } &&
35371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35373 (eval $ac_try) 2>&5
35374 ac_status=$?
35375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); }; }; then
35377 wx_cv_type_getsockname3=size_t
35378else
35379 echo "$as_me: failed program was:" >&5
35380sed 's/^/| /' conftest.$ac_ext >&5
35381
35382cat >conftest.$ac_ext <<_ACEOF
35383/* confdefs.h. */
35384_ACEOF
35385cat confdefs.h >>conftest.$ac_ext
35386cat >>conftest.$ac_ext <<_ACEOF
35387/* end confdefs.h. */
35388
35389 #include <sys/types.h>
35390 #include <sys/socket.h>
35391
35392int
35393main ()
35394{
35395
35396 int len;
35397 getsockname(0, 0, &len);
35398
35399 ;
35400 return 0;
35401}
35402_ACEOF
35403rm -f conftest.$ac_objext
35404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35405 (eval $ac_compile) 2>conftest.er1
a848cd7e 35406 ac_status=$?
ac1cb8d3
VS
35407 grep -v '^ *+' conftest.er1 >conftest.err
35408 rm -f conftest.er1
35409 cat conftest.err >&5
a848cd7e
SC
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); } &&
4d4ff94c 35412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35414 (eval $ac_try) 2>&5
35415 ac_status=$?
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); }; } &&
35418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
35421 ac_status=$?
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; }; then
35424 wx_cv_type_getsockname3=int
35425else
35426 echo "$as_me: failed program was:" >&5
35427sed 's/^/| /' conftest.$ac_ext >&5
35428
35429wx_cv_type_getsockname3=unknown
35430
35431fi
ac1cb8d3 35432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35433
35434fi
ac1cb8d3 35435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35436
35437 CFLAGS="$CFLAGS_OLD"
35438
35439
35440fi
ac1cb8d3 35441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35442
35443fi
35444echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35445echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35446
35447 if test "$wx_cv_type_getsockname3" = "unknown"; then
35448 wxUSE_SOCKETS=no
35449 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35450echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35451 else
35452 cat >>confdefs.h <<_ACEOF
35453#define SOCKLEN_T $wx_cv_type_getsockname3
35454_ACEOF
35455
35456 fi
4d4ff94c
VZ
35457 ac_ext=c
35458ac_cpp='$CPP $CPPFLAGS'
35459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35461ac_compiler_gnu=$ac_cv_c_compiler_gnu
35462
a848cd7e
SC
35463 fi
35464fi
35465
35466if test "$wxUSE_SOCKETS" = "yes" ; then
35467 cat >>confdefs.h <<\_ACEOF
35468#define wxUSE_SOCKETS 1
35469_ACEOF
35470
35471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35472fi
35473
35474if test "$wxUSE_PROTOCOL" = "yes"; then
35475 if test "$wxUSE_SOCKETS" != "yes"; then
35476 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35477echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35478 wxUSE_PROTOCOL=no
35479 fi
35480fi
35481
35482if test "$wxUSE_PROTOCOL" = "yes"; then
35483 cat >>confdefs.h <<\_ACEOF
35484#define wxUSE_PROTOCOL 1
35485_ACEOF
35486
35487
35488 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35489 cat >>confdefs.h <<\_ACEOF
35490#define wxUSE_PROTOCOL_HTTP 1
35491_ACEOF
35492
35493 fi
35494 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35495 cat >>confdefs.h <<\_ACEOF
35496#define wxUSE_PROTOCOL_FTP 1
35497_ACEOF
35498
35499 fi
35500 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35501 cat >>confdefs.h <<\_ACEOF
35502#define wxUSE_PROTOCOL_FILE 1
35503_ACEOF
35504
35505 fi
35506else
35507 if test "$wxUSE_FS_INET" = "yes"; then
35508 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35509echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35510 wxUSE_FS_INET="no"
35511 fi
35512fi
35513
35514if test "$wxUSE_URL" = "yes"; then
35515 if test "$wxUSE_PROTOCOL" != "yes"; then
35516 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35517echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35518 wxUSE_URL=no
35519 fi
35520 if test "$wxUSE_URL" = "yes"; then
35521 cat >>confdefs.h <<\_ACEOF
35522#define wxUSE_URL 1
35523_ACEOF
35524
35525 fi
35526fi
35527
35528if test "$wxUSE_FS_INET" = "yes"; then
35529 cat >>confdefs.h <<\_ACEOF
35530#define wxUSE_FS_INET 1
35531_ACEOF
35532
35533fi
35534
35535
35536if test "$wxUSE_GUI" = "yes"; then
35537
35538 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35539 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35540echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35541 wxUSE_JOYSTICK=no
35542 fi
35543
35544 if test "$TOOLKIT" != "MSW"; then
35545 if test "$wxUSE_JOYSTICK" = "yes"; then
35546
35547for ac_header in linux/joystick.h
35548do
35549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35550if eval "test \"\${$as_ac_Header+set}\" = set"; then
35551 echo "$as_me:$LINENO: checking for $ac_header" >&5
35552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35553if eval "test \"\${$as_ac_Header+set}\" = set"; then
35554 echo $ECHO_N "(cached) $ECHO_C" >&6
35555fi
35556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35558else
35559 # Is the header compilable?
35560echo "$as_me:$LINENO: checking $ac_header usability" >&5
35561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35562cat >conftest.$ac_ext <<_ACEOF
35563/* confdefs.h. */
35564_ACEOF
35565cat confdefs.h >>conftest.$ac_ext
35566cat >>conftest.$ac_ext <<_ACEOF
35567/* end confdefs.h. */
35568$ac_includes_default
35569#include <$ac_header>
35570_ACEOF
35571rm -f conftest.$ac_objext
35572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35573 (eval $ac_compile) 2>conftest.er1
a848cd7e 35574 ac_status=$?
ac1cb8d3
VS
35575 grep -v '^ *+' conftest.er1 >conftest.err
35576 rm -f conftest.er1
35577 cat conftest.err >&5
a848cd7e
SC
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } &&
4d4ff94c 35580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35583 ac_status=$?
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35589 ac_status=$?
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
35592 ac_header_compiler=yes
35593else
35594 echo "$as_me: failed program was:" >&5
35595sed 's/^/| /' conftest.$ac_ext >&5
35596
35597ac_header_compiler=no
35598fi
ac1cb8d3 35599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35601echo "${ECHO_T}$ac_header_compiler" >&6
35602
35603# Is the header present?
35604echo "$as_me:$LINENO: checking $ac_header presence" >&5
35605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35606cat >conftest.$ac_ext <<_ACEOF
35607/* confdefs.h. */
35608_ACEOF
35609cat confdefs.h >>conftest.$ac_ext
35610cat >>conftest.$ac_ext <<_ACEOF
35611/* end confdefs.h. */
35612#include <$ac_header>
35613_ACEOF
35614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35616 ac_status=$?
35617 grep -v '^ *+' conftest.er1 >conftest.err
35618 rm -f conftest.er1
35619 cat conftest.err >&5
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); } >/dev/null; then
35622 if test -s conftest.err; then
35623 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35625 else
35626 ac_cpp_err=
35627 fi
35628else
35629 ac_cpp_err=yes
35630fi
35631if test -z "$ac_cpp_err"; then
35632 ac_header_preproc=yes
35633else
35634 echo "$as_me: failed program was:" >&5
35635sed 's/^/| /' conftest.$ac_ext >&5
35636
35637 ac_header_preproc=no
35638fi
35639rm -f conftest.err conftest.$ac_ext
35640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35641echo "${ECHO_T}$ac_header_preproc" >&6
35642
35643# So? What about this header?
ac1cb8d3
VS
35644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35645 yes:no: )
a848cd7e
SC
35646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35650 ac_header_preproc=yes
a848cd7e 35651 ;;
ac1cb8d3 35652 no:yes:* )
a848cd7e
SC
35653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35665 (
35666 cat <<\_ASBOX
ac1cb8d3
VS
35667## ----------------------------------------- ##
35668## Report this to wx-dev@lists.wxwidgets.org ##
35669## ----------------------------------------- ##
a848cd7e
SC
35670_ASBOX
35671 ) |
35672 sed "s/^/$as_me: WARNING: /" >&2
35673 ;;
35674esac
35675echo "$as_me:$LINENO: checking for $ac_header" >&5
35676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35677if eval "test \"\${$as_ac_Header+set}\" = set"; then
35678 echo $ECHO_N "(cached) $ECHO_C" >&6
35679else
ac1cb8d3 35680 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35681fi
35682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35684
35685fi
35686if test `eval echo '${'$as_ac_Header'}'` = yes; then
35687 cat >>confdefs.h <<_ACEOF
35688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35689_ACEOF
35690
35691fi
35692
35693done
35694
35695 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35696 wxUSE_JOYSTICK=no
35697 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35698echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35699 fi
35700 fi
35701 fi
35702
35703 if test "$wxUSE_JOYSTICK" = "yes"; then
35704 cat >>confdefs.h <<\_ACEOF
35705#define wxUSE_JOYSTICK 1
35706_ACEOF
35707
35708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35709 fi
35710fi
35711
35712
35713
35714if test "$wxUSE_FONTMAP" = "yes" ; then
35715 cat >>confdefs.h <<\_ACEOF
35716#define wxUSE_FONTMAP 1
35717_ACEOF
35718
35719fi
35720
35721if test "$wxUSE_UNICODE" = "yes" ; then
35722 cat >>confdefs.h <<\_ACEOF
35723#define wxUSE_UNICODE 1
35724_ACEOF
35725
35726
35727 if test "$USE_WIN32" != 1; then
35728 wxUSE_UNICODE_MSLU=no
35729 fi
35730
35731 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35732 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35733echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35734if test "${ac_cv_lib_unicows_main+set}" = set; then
35735 echo $ECHO_N "(cached) $ECHO_C" >&6
35736else
35737 ac_check_lib_save_LIBS=$LIBS
35738LIBS="-lunicows $LIBS"
35739cat >conftest.$ac_ext <<_ACEOF
35740/* confdefs.h. */
35741_ACEOF
35742cat confdefs.h >>conftest.$ac_ext
35743cat >>conftest.$ac_ext <<_ACEOF
35744/* end confdefs.h. */
35745
35746
35747int
35748main ()
35749{
35750main ();
35751 ;
35752 return 0;
35753}
35754_ACEOF
35755rm -f conftest.$ac_objext conftest$ac_exeext
35756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35757 (eval $ac_link) 2>conftest.er1
a848cd7e 35758 ac_status=$?
ac1cb8d3
VS
35759 grep -v '^ *+' conftest.er1 >conftest.err
35760 rm -f conftest.er1
35761 cat conftest.err >&5
a848cd7e
SC
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); } &&
4d4ff94c 35764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766 (eval $ac_try) 2>&5
35767 ac_status=$?
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; } &&
35770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35772 (eval $ac_try) 2>&5
35773 ac_status=$?
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); }; }; then
35776 ac_cv_lib_unicows_main=yes
35777else
35778 echo "$as_me: failed program was:" >&5
35779sed 's/^/| /' conftest.$ac_ext >&5
35780
35781ac_cv_lib_unicows_main=no
35782fi
ac1cb8d3
VS
35783rm -f conftest.err conftest.$ac_objext \
35784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35785LIBS=$ac_check_lib_save_LIBS
35786fi
35787echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35788echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35789if test $ac_cv_lib_unicows_main = yes; then
35790
35791 cat >>confdefs.h <<\_ACEOF
35792#define wxUSE_UNICODE_MSLU 1
35793_ACEOF
35794
35795
35796else
35797
35798 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35799 Applications will only run on Windows NT/2000/XP!" >&5
35800echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35801 Applications will only run on Windows NT/2000/XP!" >&2;}
35802 wxUSE_UNICODE_MSLU=no
35803
35804fi
35805
35806 fi
35807fi
35808
35809if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35810 cat >>confdefs.h <<\_ACEOF
35811#define wxUSE_EXPERIMENTAL_PRINTF 1
35812_ACEOF
35813
35814fi
35815
35816
35817if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35818 cat >>confdefs.h <<\_ACEOF
35819#define wxUSE_POSTSCRIPT 1
35820_ACEOF
35821
35822fi
35823
35824cat >>confdefs.h <<\_ACEOF
35825#define wxUSE_AFM_FOR_POSTSCRIPT 1
35826_ACEOF
35827
35828
35829cat >>confdefs.h <<\_ACEOF
35830#define wxUSE_NORMALIZED_PS_FONTS 1
35831_ACEOF
35832
35833
35834
35835if test "$wxUSE_CONSTRAINTS" = "yes"; then
35836 cat >>confdefs.h <<\_ACEOF
35837#define wxUSE_CONSTRAINTS 1
35838_ACEOF
35839
35840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35841fi
35842
8a7b1113
VZ
35843if test "$wxUSE_MDI" = "yes"; then
35844 cat >>confdefs.h <<\_ACEOF
35845#define wxUSE_MDI 1
35846_ACEOF
35847
35848
35849 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35850 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35851#define wxUSE_MDI_ARCHITECTURE 1
35852_ACEOF
35853
8a7b1113
VZ
35854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35855 fi
a848cd7e
SC
35856fi
35857
35858if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35859 cat >>confdefs.h <<\_ACEOF
35860#define wxUSE_DOC_VIEW_ARCHITECTURE 1
35861_ACEOF
35862
35863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35864 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35866 fi
35867fi
35868
35869if test "$wxUSE_HELP" = "yes"; then
35870 cat >>confdefs.h <<\_ACEOF
35871#define wxUSE_HELP 1
35872_ACEOF
35873
35874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35875
35876 if test "$wxUSE_MSW" = 1; then
35877 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35878 cat >>confdefs.h <<\_ACEOF
35879#define wxUSE_MS_HTML_HELP 1
35880_ACEOF
35881
35882 fi
35883 fi
35884
35885 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35886 if test "$wxUSE_HTML" = "yes"; then
35887 cat >>confdefs.h <<\_ACEOF
35888#define wxUSE_WXHTML_HELP 1
35889_ACEOF
35890
35891 else
35892 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35893echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
35894 wxUSE_WXHTML_HELP=no
35895 fi
35896 fi
35897fi
35898
35899if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35900 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35901 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35902echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
35903 else
35904 cat >>confdefs.h <<\_ACEOF
35905#define wxUSE_PRINTING_ARCHITECTURE 1
35906_ACEOF
35907
35908 fi
35909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35910fi
35911
35912if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35913 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35914echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35915 { (exit 1); exit 1; }; }
35916fi
35917
35918
35919if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35920 -o "$wxUSE_CLIPBOARD" = "yes" \
35921 -o "$wxUSE_OLE" = "yes" \
35922 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35923
35924for ac_header in ole2.h
35925do
35926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35927if eval "test \"\${$as_ac_Header+set}\" = set"; then
35928 echo "$as_me:$LINENO: checking for $ac_header" >&5
35929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35930if eval "test \"\${$as_ac_Header+set}\" = set"; then
35931 echo $ECHO_N "(cached) $ECHO_C" >&6
35932fi
35933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35935else
35936 # Is the header compilable?
35937echo "$as_me:$LINENO: checking $ac_header usability" >&5
35938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35939cat >conftest.$ac_ext <<_ACEOF
35940/* confdefs.h. */
35941_ACEOF
35942cat confdefs.h >>conftest.$ac_ext
35943cat >>conftest.$ac_ext <<_ACEOF
35944/* end confdefs.h. */
35945$ac_includes_default
35946#include <$ac_header>
35947_ACEOF
35948rm -f conftest.$ac_objext
35949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35950 (eval $ac_compile) 2>conftest.er1
a848cd7e 35951 ac_status=$?
ac1cb8d3
VS
35952 grep -v '^ *+' conftest.er1 >conftest.err
35953 rm -f conftest.er1
35954 cat conftest.err >&5
a848cd7e
SC
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); } &&
4d4ff94c 35957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959 (eval $ac_try) 2>&5
35960 ac_status=$?
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); }; } &&
35963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965 (eval $ac_try) 2>&5
35966 ac_status=$?
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; }; then
35969 ac_header_compiler=yes
35970else
35971 echo "$as_me: failed program was:" >&5
35972sed 's/^/| /' conftest.$ac_ext >&5
35973
35974ac_header_compiler=no
35975fi
ac1cb8d3 35976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35978echo "${ECHO_T}$ac_header_compiler" >&6
35979
35980# Is the header present?
35981echo "$as_me:$LINENO: checking $ac_header presence" >&5
35982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35983cat >conftest.$ac_ext <<_ACEOF
35984/* confdefs.h. */
35985_ACEOF
35986cat confdefs.h >>conftest.$ac_ext
35987cat >>conftest.$ac_ext <<_ACEOF
35988/* end confdefs.h. */
35989#include <$ac_header>
35990_ACEOF
35991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35993 ac_status=$?
35994 grep -v '^ *+' conftest.er1 >conftest.err
35995 rm -f conftest.er1
35996 cat conftest.err >&5
35997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998 (exit $ac_status); } >/dev/null; then
35999 if test -s conftest.err; then
36000 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36002 else
36003 ac_cpp_err=
36004 fi
36005else
36006 ac_cpp_err=yes
36007fi
36008if test -z "$ac_cpp_err"; then
36009 ac_header_preproc=yes
36010else
36011 echo "$as_me: failed program was:" >&5
36012sed 's/^/| /' conftest.$ac_ext >&5
36013
36014 ac_header_preproc=no
36015fi
36016rm -f conftest.err conftest.$ac_ext
36017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36018echo "${ECHO_T}$ac_header_preproc" >&6
36019
36020# So? What about this header?
ac1cb8d3
VS
36021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36022 yes:no: )
a848cd7e
SC
36023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36027 ac_header_preproc=yes
a848cd7e 36028 ;;
ac1cb8d3 36029 no:yes:* )
a848cd7e
SC
36030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36042 (
36043 cat <<\_ASBOX
ac1cb8d3
VS
36044## ----------------------------------------- ##
36045## Report this to wx-dev@lists.wxwidgets.org ##
36046## ----------------------------------------- ##
a848cd7e
SC
36047_ASBOX
36048 ) |
36049 sed "s/^/$as_me: WARNING: /" >&2
36050 ;;
36051esac
36052echo "$as_me:$LINENO: checking for $ac_header" >&5
36053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36054if eval "test \"\${$as_ac_Header+set}\" = set"; then
36055 echo $ECHO_N "(cached) $ECHO_C" >&6
36056else
ac1cb8d3 36057 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36058fi
36059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36061
36062fi
36063if test `eval echo '${'$as_ac_Header'}'` = yes; then
36064 cat >>confdefs.h <<_ACEOF
36065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36066_ACEOF
36067
36068fi
36069
36070done
36071
36072
36073 if test "$ac_cv_header_ole2_h" = "yes" ; then
36074 if test "$GCC" = yes ; then
36075
36076
36077 ac_ext=cc
36078ac_cpp='$CXXCPP $CPPFLAGS'
36079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36082
36083
36084 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36085echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36086 cat >conftest.$ac_ext <<_ACEOF
36087/* confdefs.h. */
36088_ACEOF
36089cat confdefs.h >>conftest.$ac_ext
36090cat >>conftest.$ac_ext <<_ACEOF
36091/* end confdefs.h. */
36092#include <windows.h>
36093 #include <ole2.h>
36094int
36095main ()
36096{
36097
36098 ;
36099 return 0;
36100}
36101_ACEOF
36102rm -f conftest.$ac_objext
36103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36104 (eval $ac_compile) 2>conftest.er1
a848cd7e 36105 ac_status=$?
ac1cb8d3
VS
36106 grep -v '^ *+' conftest.er1 >conftest.err
36107 rm -f conftest.er1
36108 cat conftest.err >&5
a848cd7e
SC
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); } &&
4d4ff94c 36111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36113 (eval $ac_try) 2>&5
36114 ac_status=$?
36115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116 (exit $ac_status); }; } &&
36117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36119 (eval $ac_try) 2>&5
36120 ac_status=$?
36121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122 (exit $ac_status); }; }; then
36123 echo "$as_me:$LINENO: result: no" >&5
36124echo "${ECHO_T}no" >&6
36125else
36126 echo "$as_me: failed program was:" >&5
36127sed 's/^/| /' conftest.$ac_ext >&5
36128
36129echo "$as_me:$LINENO: result: yes" >&5
36130echo "${ECHO_T}yes" >&6
36131 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36132fi
ac1cb8d3 36133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36134 ac_ext=c
36135ac_cpp='$CPP $CPPFLAGS'
36136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36138ac_compiler_gnu=$ac_cv_c_compiler_gnu
36139
36140 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36141 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36142 if test "$wxUSE_OLE" = "yes" ; then
36143 cat >>confdefs.h <<\_ACEOF
36144#define wxUSE_OLE 1
36145_ACEOF
36146
36147 fi
36148 fi
36149
36150 if test "$wxUSE_DATAOBJ" = "yes" ; then
36151 cat >>confdefs.h <<\_ACEOF
36152#define wxUSE_DATAOBJ 1
36153_ACEOF
36154
36155 fi
36156 else
36157 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36158echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36159
36160 wxUSE_CLIPBOARD=no
36161 wxUSE_DRAG_AND_DROP=no
36162 wxUSE_DATAOBJ=no
36163 wxUSE_OLE=no
36164 fi
36165
36166 if test "$wxUSE_METAFILE" = "yes"; then
36167 cat >>confdefs.h <<\_ACEOF
36168#define wxUSE_METAFILE 1
36169_ACEOF
36170
36171
36172 cat >>confdefs.h <<\_ACEOF
36173#define wxUSE_ENH_METAFILE 1
36174_ACEOF
36175
36176 fi
36177fi
36178
36179if test "$wxUSE_IPC" = "yes"; then
36180 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36181 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36182echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36183 fi
36184
36185 cat >>confdefs.h <<\_ACEOF
36186#define wxUSE_IPC 1
36187_ACEOF
36188
36189fi
36190
36191if test "$wxUSE_CLIPBOARD" = "yes"; then
36192 if test "$wxUSE_MGL" = 1; then
36193 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36194echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36195 wxUSE_CLIPBOARD=no
36196 fi
36197
36198 if test "$wxUSE_CLIPBOARD" = "yes"; then
36199 cat >>confdefs.h <<\_ACEOF
36200#define wxUSE_CLIPBOARD 1
36201_ACEOF
36202
36203
36204 cat >>confdefs.h <<\_ACEOF
36205#define wxUSE_DATAOBJ 1
36206_ACEOF
36207
36208 fi
36209fi
36210
36211if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36212 if test "$wxUSE_GTK" = 1; then
36213 if test "$WXGTK12" != 1; then
36214 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36215echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36216 wxUSE_DRAG_AND_DROP=no
36217 fi
36218 fi
36219
36220 if test "$wxUSE_MOTIF" = 1; then
36221 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36222echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36223 wxUSE_DRAG_AND_DROP=no
36224 fi
36225
36226 if test "$wxUSE_X11" = 1; then
36227 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36228echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36229 wxUSE_DRAG_AND_DROP=no
36230 fi
36231
36232 if test "$wxUSE_MGL" = 1; then
36233 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36234echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36235 wxUSE_DRAG_AND_DROP=no
36236 fi
36237
36238 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36239 cat >>confdefs.h <<\_ACEOF
36240#define wxUSE_DRAG_AND_DROP 1
36241_ACEOF
36242
36243 fi
36244
36245fi
36246
36247if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36249fi
36250
36251if test "$wxUSE_SPLINES" = "yes" ; then
36252 cat >>confdefs.h <<\_ACEOF
36253#define wxUSE_SPLINES 1
36254_ACEOF
36255
36256fi
36257
36258
36259USES_CONTROLS=0
36260if test "$wxUSE_CONTROLS" = "yes"; then
36261 USES_CONTROLS=1
36262fi
36263
36264if test "$wxUSE_ACCEL" = "yes"; then
36265 cat >>confdefs.h <<\_ACEOF
36266#define wxUSE_ACCEL 1
36267_ACEOF
36268
36269 USES_CONTROLS=1
36270fi
36271
36272if test "$wxUSE_BUTTON" = "yes"; then
36273 cat >>confdefs.h <<\_ACEOF
36274#define wxUSE_BUTTON 1
36275_ACEOF
36276
36277 USES_CONTROLS=1
36278fi
36279
36280if test "$wxUSE_BMPBUTTON" = "yes"; then
36281 cat >>confdefs.h <<\_ACEOF
36282#define wxUSE_BMPBUTTON 1
36283_ACEOF
36284
36285 USES_CONTROLS=1
36286fi
36287
36288if test "$wxUSE_CALCTRL" = "yes"; then
36289 cat >>confdefs.h <<\_ACEOF
36290#define wxUSE_CALENDARCTRL 1
36291_ACEOF
36292
36293 USES_CONTROLS=1
36294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36295fi
36296
36297if test "$wxUSE_CARET" = "yes"; then
36298 cat >>confdefs.h <<\_ACEOF
36299#define wxUSE_CARET 1
36300_ACEOF
36301
36302 USES_CONTROLS=1
36303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36304fi
36305
36306if test "$wxUSE_COMBOBOX" = "yes"; then
36307 cat >>confdefs.h <<\_ACEOF
36308#define wxUSE_COMBOBOX 1
36309_ACEOF
36310
36311 USES_CONTROLS=1
36312fi
36313
36314if test "$wxUSE_CHOICE" = "yes"; then
36315 cat >>confdefs.h <<\_ACEOF
36316#define wxUSE_CHOICE 1
36317_ACEOF
36318
36319 USES_CONTROLS=1
36320fi
36321
92bbdbcd
WS
36322if test "$wxUSE_CHOICEBOOK" = "yes"; then
36323 cat >>confdefs.h <<\_ACEOF
36324#define wxUSE_CHOICEBOOK 1
36325_ACEOF
36326
36327 USES_CONTROLS=1
36328fi
36329
a848cd7e
SC
36330if test "$wxUSE_CHECKBOX" = "yes"; then
36331 cat >>confdefs.h <<\_ACEOF
36332#define wxUSE_CHECKBOX 1
36333_ACEOF
36334
36335 USES_CONTROLS=1
36336fi
36337
36338if test "$wxUSE_CHECKLST" = "yes"; then
36339 cat >>confdefs.h <<\_ACEOF
36340#define wxUSE_CHECKLISTBOX 1
36341_ACEOF
36342
36343 USES_CONTROLS=1
36344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36345fi
36346
36347if test "$wxUSE_DISPLAY" = "yes"; then
36348 cat >>confdefs.h <<\_ACEOF
36349#define wxUSE_DISPLAY 1
36350_ACEOF
36351
36352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36353fi
36354
36355if test "$wxUSE_GAUGE" = "yes"; then
36356 cat >>confdefs.h <<\_ACEOF
36357#define wxUSE_GAUGE 1
36358_ACEOF
36359
36360 USES_CONTROLS=1
36361fi
36362
36363if test "$wxUSE_GRID" = "yes"; then
36364 cat >>confdefs.h <<\_ACEOF
36365#define wxUSE_GRID 1
36366_ACEOF
36367
36368 USES_CONTROLS=1
36369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36370fi
36371
36372if test "$wxUSE_IMAGLIST" = "yes"; then
36373 cat >>confdefs.h <<\_ACEOF
36374#define wxUSE_IMAGLIST 1
36375_ACEOF
36376
36377fi
36378
36379if test "$wxUSE_LISTBOOK" = "yes"; then
36380 cat >>confdefs.h <<\_ACEOF
36381#define wxUSE_LISTBOOK 1
36382_ACEOF
36383
36384 USES_CONTROLS=1
36385fi
36386
36387if test "$wxUSE_LISTBOX" = "yes"; then
36388 cat >>confdefs.h <<\_ACEOF
36389#define wxUSE_LISTBOX 1
36390_ACEOF
36391
36392 USES_CONTROLS=1
36393fi
36394
36395if test "$wxUSE_LISTCTRL" = "yes"; then
36396 if test "$wxUSE_IMAGLIST" = "yes"; then
36397 cat >>confdefs.h <<\_ACEOF
36398#define wxUSE_LISTCTRL 1
36399_ACEOF
36400
36401 USES_CONTROLS=1
36402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36403 else
36404 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36405echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36406 fi
36407fi
36408
36409if test "$wxUSE_NOTEBOOK" = "yes"; then
36410 cat >>confdefs.h <<\_ACEOF
36411#define wxUSE_NOTEBOOK 1
36412_ACEOF
36413
36414 USES_CONTROLS=1
36415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36416fi
36417
36418
36419if test "$wxUSE_RADIOBOX" = "yes"; then
36420 cat >>confdefs.h <<\_ACEOF
36421#define wxUSE_RADIOBOX 1
36422_ACEOF
36423
36424 USES_CONTROLS=1
36425fi
36426
36427if test "$wxUSE_RADIOBTN" = "yes"; then
36428 cat >>confdefs.h <<\_ACEOF
36429#define wxUSE_RADIOBTN 1
36430_ACEOF
36431
36432 USES_CONTROLS=1
36433fi
36434
36435if test "$wxUSE_SASH" = "yes"; then
36436 cat >>confdefs.h <<\_ACEOF
36437#define wxUSE_SASH 1
36438_ACEOF
36439
36440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36441fi
36442
36443if test "$wxUSE_SCROLLBAR" = "yes"; then
36444 cat >>confdefs.h <<\_ACEOF
36445#define wxUSE_SCROLLBAR 1
36446_ACEOF
36447
36448 USES_CONTROLS=1
36449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36450fi
36451
36452if test "$wxUSE_SLIDER" = "yes"; then
36453 cat >>confdefs.h <<\_ACEOF
36454#define wxUSE_SLIDER 1
36455_ACEOF
36456
36457 USES_CONTROLS=1
36458fi
36459
36460if test "$wxUSE_SPINBTN" = "yes"; then
36461 cat >>confdefs.h <<\_ACEOF
36462#define wxUSE_SPINBTN 1
36463_ACEOF
36464
36465 USES_CONTROLS=1
36466fi
36467
36468if test "$wxUSE_SPINCTRL" = "yes"; then
36469 cat >>confdefs.h <<\_ACEOF
36470#define wxUSE_SPINCTRL 1
36471_ACEOF
36472
36473 USES_CONTROLS=1
36474fi
36475
36476if test "$wxUSE_SPLITTER" = "yes"; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define wxUSE_SPLITTER 1
36479_ACEOF
36480
36481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36482fi
36483
36484if test "$wxUSE_STATBMP" = "yes"; then
36485 cat >>confdefs.h <<\_ACEOF
36486#define wxUSE_STATBMP 1
36487_ACEOF
36488
36489 USES_CONTROLS=1
36490fi
36491
36492if test "$wxUSE_STATBOX" = "yes"; then
36493 cat >>confdefs.h <<\_ACEOF
36494#define wxUSE_STATBOX 1
36495_ACEOF
36496
36497 USES_CONTROLS=1
36498fi
36499
36500if test "$wxUSE_STATTEXT" = "yes"; then
36501 cat >>confdefs.h <<\_ACEOF
36502#define wxUSE_STATTEXT 1
36503_ACEOF
36504
36505 USES_CONTROLS=1
36506fi
36507
36508if test "$wxUSE_STATLINE" = "yes"; then
36509 cat >>confdefs.h <<\_ACEOF
36510#define wxUSE_STATLINE 1
36511_ACEOF
36512
36513 USES_CONTROLS=1
36514fi
36515
36516if test "$wxUSE_STATUSBAR" = "yes"; then
36517 cat >>confdefs.h <<\_ACEOF
36518#define wxUSE_STATUSBAR 1
36519_ACEOF
36520
36521 USES_CONTROLS=1
36522
36523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36524fi
36525
36526if test "$wxUSE_TABDIALOG" = "yes"; then
36527 cat >>confdefs.h <<\_ACEOF
36528#define wxUSE_TAB_DIALOG 1
36529_ACEOF
36530
36531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36532fi
36533
36534if test "$wxUSE_TEXTCTRL" = "yes"; then
36535 cat >>confdefs.h <<\_ACEOF
36536#define wxUSE_TEXTCTRL 1
36537_ACEOF
36538
36539 USES_CONTROLS=1
36540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36541fi
36542
36543if test "$wxUSE_TOGGLEBTN" = "yes"; then
36544 if test "$wxUSE_COCOA" = 1 ; then
36545 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36546echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36547 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36548 else
36549 if test "$wxUSE_PM" = 1; then
36550 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36551echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36552 wxUSE_TOGGLEBTN=no
36553 fi
a848cd7e
SC
36554 fi
36555 if test "$wxUSE_UNIVERSAL" = "yes"; then
36556 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36557echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36558 wxUSE_TOGGLEBTN=no
36559 fi
36560
36561 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36562 cat >>confdefs.h <<\_ACEOF
36563#define wxUSE_TOGGLEBTN 1
36564_ACEOF
36565
36566 USES_CONTROLS=1
36567 fi
36568fi
36569
36570if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_TOOLBAR_SIMPLE 1
36573_ACEOF
36574
36575 wxUSE_TOOLBAR="yes"
36576 USES_CONTROLS=1
36577fi
36578
36579if test "$wxUSE_TOOLBAR" = "yes"; then
36580 cat >>confdefs.h <<\_ACEOF
36581#define wxUSE_TOOLBAR 1
36582_ACEOF
36583
36584 USES_CONTROLS=1
36585
36586 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36587 wxUSE_TOOLBAR_NATIVE="yes"
36588 fi
36589
36590 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36591 cat >>confdefs.h <<\_ACEOF
36592#define wxUSE_TOOLBAR_NATIVE 1
36593_ACEOF
36594
36595 USES_CONTROLS=1
36596 fi
36597
36598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36599fi
36600
36601if test "$wxUSE_TOOLTIPS" = "yes"; then
36602 if test "$wxUSE_MOTIF" = 1; then
36603 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36604echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36605 else
36606 if test "$wxUSE_UNIVERSAL" = "yes"; then
36607 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36608echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36609 else
36610 cat >>confdefs.h <<\_ACEOF
36611#define wxUSE_TOOLTIPS 1
36612_ACEOF
36613
36614 fi
36615 fi
36616fi
36617
36618if test "$wxUSE_TREECTRL" = "yes"; then
36619 if test "$wxUSE_IMAGLIST" = "yes"; then
36620 cat >>confdefs.h <<\_ACEOF
36621#define wxUSE_TREECTRL 1
36622_ACEOF
36623
36624 USES_CONTROLS=1
36625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36626 else
36627 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36628echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36629 fi
36630fi
36631
36632if test "$wxUSE_POPUPWIN" = "yes"; then
36633 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36634 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36635echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36636 else
36637 if test "$wxUSE_PM" = 1; then
36638 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36639echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36640 else
36641 cat >>confdefs.h <<\_ACEOF
36642#define wxUSE_POPUPWIN 1
36643_ACEOF
36644
36645
36646 USES_CONTROLS=1
36647 fi
36648 fi
36649fi
36650
36651if test "$wxUSE_TIPWINDOW" = "yes"; then
36652 if test "$wxUSE_PM" = 1; then
36653 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36654echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36655 else
36656 cat >>confdefs.h <<\_ACEOF
36657#define wxUSE_TIPWINDOW 1
36658_ACEOF
36659
36660 fi
36661fi
36662
36663if test "$USES_CONTROLS" = 1; then
36664 cat >>confdefs.h <<\_ACEOF
36665#define wxUSE_CONTROLS 1
36666_ACEOF
36667
36668fi
36669
36670
36671if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36672 cat >>confdefs.h <<\_ACEOF
36673#define wxUSE_ACCESSIBILITY 1
36674_ACEOF
36675
36676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36677fi
36678
36679if test "$wxUSE_DRAGIMAGE" = "yes"; then
36680 cat >>confdefs.h <<\_ACEOF
36681#define wxUSE_DRAGIMAGE 1
36682_ACEOF
36683
36684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36685fi
36686
36687if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36688 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36689 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36690echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36691 else
36692 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36693#define wxUSE_EXCEPTIONS 1
36694_ACEOF
36695
07bea8f0
VS
36696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36697 fi
a848cd7e
SC
36698fi
36699
36700USE_HTML=0
36701if test "$wxUSE_HTML" = "yes"; then
36702 cat >>confdefs.h <<\_ACEOF
36703#define wxUSE_HTML 1
36704_ACEOF
36705
36706 USE_HTML=1
36707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36708 if test "$wxUSE_MAC" = 1; then
36709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36710 fi
a848cd7e 36711fi
646b6ec1 36712if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36713 if test "$wxUSE_MAC" = 1; then
36714 old_CPPFLAGS="$CPPFLAGS"
36715 CPPFLAGS="$CPPFLAGS -x objective-c++"
36716 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36717echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36718if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36719 echo $ECHO_N "(cached) $ECHO_C" >&6
36720else
36721 cat >conftest.$ac_ext <<_ACEOF
36722/* confdefs.h. */
36723_ACEOF
36724cat confdefs.h >>conftest.$ac_ext
36725cat >>conftest.$ac_ext <<_ACEOF
36726/* end confdefs.h. */
36727#include <Carbon/Carbon.h>
36728
36729#include <WebKit/HIWebView.h>
36730_ACEOF
36731rm -f conftest.$ac_objext
36732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36733 (eval $ac_compile) 2>conftest.er1
36734 ac_status=$?
36735 grep -v '^ *+' conftest.er1 >conftest.err
36736 rm -f conftest.er1
36737 cat conftest.err >&5
36738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36739 (exit $ac_status); } &&
4d4ff94c 36740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36742 (eval $ac_try) 2>&5
36743 ac_status=$?
36744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36745 (exit $ac_status); }; } &&
36746 { ac_try='test -s conftest.$ac_objext'
36747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36748 (eval $ac_try) 2>&5
36749 ac_status=$?
36750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751 (exit $ac_status); }; }; then
36752 ac_cv_header_WebKit_HIWebView_h=yes
36753else
36754 echo "$as_me: failed program was:" >&5
36755sed 's/^/| /' conftest.$ac_ext >&5
36756
36757ac_cv_header_WebKit_HIWebView_h=no
36758fi
36759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36760fi
36761echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36762echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36763if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36764
36765 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36766#define wxUSE_WEBKIT 1
36767_ACEOF
36768
07bea8f0
VS
36769 WEBKIT_LINK="-framework WebKit"
36770
36771else
36772
36773 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36774echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36775 wxUSE_WEBKIT=no
36776
646b6ec1
VS
36777fi
36778
07bea8f0
VS
36779
36780 CPPFLAGS="$old_CPPFLAGS"
36781 elif test "$wxUSE_COCOA" = 1; then
36782 cat >>confdefs.h <<\_ACEOF
36783#define wxUSE_WEBKIT 1
36784_ACEOF
36785
36786 else
36787 wxUSE_WEBKIT=no
36788 fi
36789fi
36790
36791
a848cd7e
SC
36792if test "$wxUSE_MENUS" = "yes"; then
36793 cat >>confdefs.h <<\_ACEOF
36794#define wxUSE_MENUS 1
36795_ACEOF
36796
36797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36798fi
36799
36800if test "$wxUSE_METAFILE" = "yes"; then
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_METAFILE 1
36803_ACEOF
36804
36805fi
36806
36807if test "$wxUSE_MIMETYPE" = "yes"; then
36808 cat >>confdefs.h <<\_ACEOF
36809#define wxUSE_MIMETYPE 1
36810_ACEOF
36811
36812fi
36813
36814if test "$wxUSE_MINIFRAME" = "yes"; then
36815 cat >>confdefs.h <<\_ACEOF
36816#define wxUSE_MINIFRAME 1
36817_ACEOF
36818
36819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36820fi
36821
36822if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36823 cat >>confdefs.h <<\_ACEOF
36824#define wxUSE_SYSTEM_OPTIONS 1
36825_ACEOF
36826
36827 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36828 "$TOOLKIT" = "MOTIF"; then
36829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36830 fi
36831fi
36832
36833
36834if test "$wxUSE_VALIDATORS" = "yes"; then
36835 cat >>confdefs.h <<\_ACEOF
36836#define wxUSE_VALIDATORS 1
36837_ACEOF
36838
36839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36840fi
36841
36842if test "$wxUSE_PALETTE" = "yes" ; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_PALETTE 1
36845_ACEOF
36846
36847fi
36848
36849if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36850 LIBS=" -lunicows $LIBS"
36851fi
36852
36853
36854if test "$wxUSE_IMAGE" = "yes" ; then
36855 cat >>confdefs.h <<\_ACEOF
36856#define wxUSE_IMAGE 1
36857_ACEOF
36858
36859
36860 if test "$wxUSE_GIF" = "yes" ; then
36861 cat >>confdefs.h <<\_ACEOF
36862#define wxUSE_GIF 1
36863_ACEOF
36864
36865 fi
36866
36867 if test "$wxUSE_PCX" = "yes" ; then
36868 cat >>confdefs.h <<\_ACEOF
36869#define wxUSE_PCX 1
36870_ACEOF
36871
36872 fi
36873
36874 if test "$wxUSE_IFF" = "yes" ; then
36875 cat >>confdefs.h <<\_ACEOF
36876#define wxUSE_IFF 1
36877_ACEOF
36878
36879 fi
36880
36881 if test "$wxUSE_PNM" = "yes" ; then
36882 cat >>confdefs.h <<\_ACEOF
36883#define wxUSE_PNM 1
36884_ACEOF
36885
36886 fi
36887
36888 if test "$wxUSE_XPM" = "yes" ; then
36889 cat >>confdefs.h <<\_ACEOF
36890#define wxUSE_XPM 1
36891_ACEOF
36892
36893 fi
36894
36895 if test "$wxUSE_ICO_CUR" = "yes" ; then
36896 cat >>confdefs.h <<\_ACEOF
36897#define wxUSE_ICO_CUR 1
36898_ACEOF
36899
36900 fi
36901fi
36902
36903
36904if test "$wxUSE_CHOICEDLG" = "yes"; then
36905 cat >>confdefs.h <<\_ACEOF
36906#define wxUSE_CHOICEDLG 1
36907_ACEOF
36908
36909fi
36910
36911if test "$wxUSE_COLOURDLG" = "yes"; then
36912 cat >>confdefs.h <<\_ACEOF
36913#define wxUSE_COLOURDLG 1
36914_ACEOF
36915
36916fi
36917
36918if test "$wxUSE_FILEDLG" = "yes"; then
36919 cat >>confdefs.h <<\_ACEOF
36920#define wxUSE_FILEDLG 1
36921_ACEOF
36922
36923fi
36924
36925if test "$wxUSE_FINDREPLDLG" = "yes"; then
36926 cat >>confdefs.h <<\_ACEOF
36927#define wxUSE_FINDREPLDLG 1
36928_ACEOF
36929
36930fi
36931
36932if test "$wxUSE_FONTDLG" = "yes"; then
36933 cat >>confdefs.h <<\_ACEOF
36934#define wxUSE_FONTDLG 1
36935_ACEOF
36936
36937fi
36938
36939if test "$wxUSE_DIRDLG" = "yes"; then
36940 if test "$wxUSE_TREECTRL" != "yes"; then
36941 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36942echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
36943 else
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_DIRDLG 1
36946_ACEOF
36947
36948 fi
36949fi
36950
36951if test "$wxUSE_MSGDLG" = "yes"; then
36952 cat >>confdefs.h <<\_ACEOF
36953#define wxUSE_MSGDLG 1
36954_ACEOF
36955
36956fi
36957
36958if test "$wxUSE_NUMBERDLG" = "yes"; then
36959 cat >>confdefs.h <<\_ACEOF
36960#define wxUSE_NUMBERDLG 1
36961_ACEOF
36962
36963fi
36964
36965if test "$wxUSE_PROGRESSDLG" = "yes"; then
36966 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36967 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36968echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
36969 else
36970 cat >>confdefs.h <<\_ACEOF
36971#define wxUSE_PROGRESSDLG 1
36972_ACEOF
36973
36974 fi
36975fi
36976
36977if test "$wxUSE_SPLASH" = "yes"; then
36978 cat >>confdefs.h <<\_ACEOF
36979#define wxUSE_SPLASH 1
36980_ACEOF
36981
2057db16 36982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
36983fi
36984
36985if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36986 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36987 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36988echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
36989 else
36990 cat >>confdefs.h <<\_ACEOF
36991#define wxUSE_STARTUP_TIPS 1
36992_ACEOF
36993
36994 fi
36995fi
36996
36997if test "$wxUSE_TEXTDLG" = "yes"; then
36998 cat >>confdefs.h <<\_ACEOF
36999#define wxUSE_TEXTDLG 1
37000_ACEOF
37001
37002fi
37003
37004if test "$wxUSE_WIZARDDLG" = "yes"; then
37005 cat >>confdefs.h <<\_ACEOF
37006#define wxUSE_WIZARDDLG 1
37007_ACEOF
37008
37009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37010fi
37011
37012
37013if test "$cross_compiling" = "yes"; then
37014 OSINFO="\"$host\""
37015else
37016 OSINFO=`uname -s -r -m`
37017 OSINFO="\"$OSINFO\""
37018fi
37019
37020cat >>confdefs.h <<_ACEOF
37021#define WXWIN_OS_DESCRIPTION $OSINFO
37022_ACEOF
37023
37024
37025
37026if test "x$prefix" != "xNONE"; then
37027 wxPREFIX=$prefix
37028else
37029 wxPREFIX=$ac_default_prefix
37030fi
37031
37032cat >>confdefs.h <<_ACEOF
37033#define wxINSTALL_PREFIX "$wxPREFIX"
37034_ACEOF
37035
37036
37037top_builddir_wxconfig=`pwd`
37038
37039
37040
37041CORE_BASE_LIBS="net base"
37042CORE_GUI_LIBS="adv core"
37043
37044if test "$wxUSE_XML" = "yes" ; then
37045 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37046fi
37047if test "$wxUSE_ODBC" != "no" ; then
37048 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37049 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37050fi
37051if test "$wxUSE_HTML" = "yes" ; then
37052 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37053fi
37054
37055if test "$wxUSE_GUI" != "yes"; then
37056 CORE_GUI_LIBS=""
37057fi
37058
37059
37060
37061
37062
37063
37064
37065
37066if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37067 if test "$wxUSE_SOUND" = "yes"; then
37068 LDFLAGS="$LDFLAGS -framework QuickTime"
37069 fi
37070 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37071fi
37072if test "$wxUSE_COCOA" = 1 ; then
37073 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37074fi
37075
37076
37077LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37078
37079have_cos=0
37080have_floor=0
37081
37082for ac_func in cos
37083do
37084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37085echo "$as_me:$LINENO: checking for $ac_func" >&5
37086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37087if eval "test \"\${$as_ac_var+set}\" = set"; then
37088 echo $ECHO_N "(cached) $ECHO_C" >&6
37089else
37090 cat >conftest.$ac_ext <<_ACEOF
37091/* confdefs.h. */
37092_ACEOF
37093cat confdefs.h >>conftest.$ac_ext
37094cat >>conftest.$ac_ext <<_ACEOF
37095/* end confdefs.h. */
ac1cb8d3
VS
37096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37098#define $ac_func innocuous_$ac_func
37099
a848cd7e
SC
37100/* System header to define __stub macros and hopefully few prototypes,
37101 which can conflict with char $ac_func (); below.
37102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37103 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37104
a848cd7e
SC
37105#ifdef __STDC__
37106# include <limits.h>
37107#else
37108# include <assert.h>
37109#endif
ac1cb8d3
VS
37110
37111#undef $ac_func
37112
a848cd7e
SC
37113/* Override any gcc2 internal prototype to avoid an error. */
37114#ifdef __cplusplus
37115extern "C"
37116{
37117#endif
37118/* We use char because int might match the return type of a gcc2
37119 builtin and then its argument prototype would still apply. */
37120char $ac_func ();
37121/* The GNU C library defines this for functions which it implements
37122 to always fail with ENOSYS. Some functions are actually named
37123 something starting with __ and the normal name is an alias. */
37124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37125choke me
37126#else
37127char (*f) () = $ac_func;
37128#endif
37129#ifdef __cplusplus
37130}
37131#endif
37132
37133int
37134main ()
37135{
37136return f != $ac_func;
37137 ;
37138 return 0;
37139}
37140_ACEOF
37141rm -f conftest.$ac_objext conftest$ac_exeext
37142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37143 (eval $ac_link) 2>conftest.er1
a848cd7e 37144 ac_status=$?
ac1cb8d3
VS
37145 grep -v '^ *+' conftest.er1 >conftest.err
37146 rm -f conftest.er1
37147 cat conftest.err >&5
a848cd7e
SC
37148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); } &&
4d4ff94c 37150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152 (eval $ac_try) 2>&5
37153 ac_status=$?
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); }; } &&
37156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158 (eval $ac_try) 2>&5
37159 ac_status=$?
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); }; }; then
37162 eval "$as_ac_var=yes"
37163else
37164 echo "$as_me: failed program was:" >&5
37165sed 's/^/| /' conftest.$ac_ext >&5
37166
37167eval "$as_ac_var=no"
37168fi
ac1cb8d3
VS
37169rm -f conftest.err conftest.$ac_objext \
37170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37171fi
37172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37173echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37174if test `eval echo '${'$as_ac_var'}'` = yes; then
37175 cat >>confdefs.h <<_ACEOF
37176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37177_ACEOF
37178 have_cos=1
37179fi
37180done
37181
37182
37183for ac_func in floor
37184do
37185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37186echo "$as_me:$LINENO: checking for $ac_func" >&5
37187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37188if eval "test \"\${$as_ac_var+set}\" = set"; then
37189 echo $ECHO_N "(cached) $ECHO_C" >&6
37190else
37191 cat >conftest.$ac_ext <<_ACEOF
37192/* confdefs.h. */
37193_ACEOF
37194cat confdefs.h >>conftest.$ac_ext
37195cat >>conftest.$ac_ext <<_ACEOF
37196/* end confdefs.h. */
ac1cb8d3
VS
37197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37199#define $ac_func innocuous_$ac_func
37200
a848cd7e
SC
37201/* System header to define __stub macros and hopefully few prototypes,
37202 which can conflict with char $ac_func (); below.
37203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37204 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37205
a848cd7e
SC
37206#ifdef __STDC__
37207# include <limits.h>
37208#else
37209# include <assert.h>
37210#endif
ac1cb8d3
VS
37211
37212#undef $ac_func
37213
a848cd7e
SC
37214/* Override any gcc2 internal prototype to avoid an error. */
37215#ifdef __cplusplus
37216extern "C"
37217{
37218#endif
37219/* We use char because int might match the return type of a gcc2
37220 builtin and then its argument prototype would still apply. */
37221char $ac_func ();
37222/* The GNU C library defines this for functions which it implements
37223 to always fail with ENOSYS. Some functions are actually named
37224 something starting with __ and the normal name is an alias. */
37225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37226choke me
37227#else
37228char (*f) () = $ac_func;
37229#endif
37230#ifdef __cplusplus
37231}
37232#endif
37233
37234int
37235main ()
37236{
37237return f != $ac_func;
37238 ;
37239 return 0;
37240}
37241_ACEOF
37242rm -f conftest.$ac_objext conftest$ac_exeext
37243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37244 (eval $ac_link) 2>conftest.er1
a848cd7e 37245 ac_status=$?
ac1cb8d3
VS
37246 grep -v '^ *+' conftest.er1 >conftest.err
37247 rm -f conftest.er1
37248 cat conftest.err >&5
a848cd7e
SC
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); } &&
4d4ff94c 37251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253 (eval $ac_try) 2>&5
37254 ac_status=$?
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); }; } &&
37257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259 (eval $ac_try) 2>&5
37260 ac_status=$?
37261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262 (exit $ac_status); }; }; then
37263 eval "$as_ac_var=yes"
37264else
37265 echo "$as_me: failed program was:" >&5
37266sed 's/^/| /' conftest.$ac_ext >&5
37267
37268eval "$as_ac_var=no"
37269fi
ac1cb8d3
VS
37270rm -f conftest.err conftest.$ac_objext \
37271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37272fi
37273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37275if test `eval echo '${'$as_ac_var'}'` = yes; then
37276 cat >>confdefs.h <<_ACEOF
37277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37278_ACEOF
37279 have_floor=1
37280fi
37281done
37282
37283echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37284echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37285if test "$have_cos" = 1 -a "$have_floor" = 1; then
37286 echo "$as_me:$LINENO: result: yes" >&5
37287echo "${ECHO_T}yes" >&6
37288else
37289 echo "$as_me:$LINENO: result: no" >&5
37290echo "${ECHO_T}no" >&6
37291 LIBS="$LIBS -lm"
37292 # use different functions to avoid configure caching
37293 have_sin=0
37294 have_ceil=0
37295
37296for ac_func in sin
37297do
37298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37299echo "$as_me:$LINENO: checking for $ac_func" >&5
37300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37301if eval "test \"\${$as_ac_var+set}\" = set"; then
37302 echo $ECHO_N "(cached) $ECHO_C" >&6
37303else
37304 cat >conftest.$ac_ext <<_ACEOF
37305/* confdefs.h. */
37306_ACEOF
37307cat confdefs.h >>conftest.$ac_ext
37308cat >>conftest.$ac_ext <<_ACEOF
37309/* end confdefs.h. */
ac1cb8d3
VS
37310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37312#define $ac_func innocuous_$ac_func
37313
a848cd7e
SC
37314/* System header to define __stub macros and hopefully few prototypes,
37315 which can conflict with char $ac_func (); below.
37316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37318
a848cd7e
SC
37319#ifdef __STDC__
37320# include <limits.h>
37321#else
37322# include <assert.h>
37323#endif
ac1cb8d3
VS
37324
37325#undef $ac_func
37326
a848cd7e
SC
37327/* Override any gcc2 internal prototype to avoid an error. */
37328#ifdef __cplusplus
37329extern "C"
37330{
37331#endif
37332/* We use char because int might match the return type of a gcc2
37333 builtin and then its argument prototype would still apply. */
37334char $ac_func ();
37335/* The GNU C library defines this for functions which it implements
37336 to always fail with ENOSYS. Some functions are actually named
37337 something starting with __ and the normal name is an alias. */
37338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37339choke me
37340#else
37341char (*f) () = $ac_func;
37342#endif
37343#ifdef __cplusplus
37344}
37345#endif
37346
37347int
37348main ()
37349{
37350return f != $ac_func;
37351 ;
37352 return 0;
37353}
37354_ACEOF
37355rm -f conftest.$ac_objext conftest$ac_exeext
37356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37357 (eval $ac_link) 2>conftest.er1
a848cd7e 37358 ac_status=$?
ac1cb8d3
VS
37359 grep -v '^ *+' conftest.er1 >conftest.err
37360 rm -f conftest.er1
37361 cat conftest.err >&5
a848cd7e
SC
37362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363 (exit $ac_status); } &&
4d4ff94c 37364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37366 (eval $ac_try) 2>&5
37367 ac_status=$?
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); }; } &&
37370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37372 (eval $ac_try) 2>&5
37373 ac_status=$?
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); }; }; then
37376 eval "$as_ac_var=yes"
37377else
37378 echo "$as_me: failed program was:" >&5
37379sed 's/^/| /' conftest.$ac_ext >&5
37380
37381eval "$as_ac_var=no"
37382fi
ac1cb8d3
VS
37383rm -f conftest.err conftest.$ac_objext \
37384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37385fi
37386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37388if test `eval echo '${'$as_ac_var'}'` = yes; then
37389 cat >>confdefs.h <<_ACEOF
37390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37391_ACEOF
37392 have_sin=1
37393fi
37394done
37395
37396
37397for ac_func in ceil
37398do
37399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37400echo "$as_me:$LINENO: checking for $ac_func" >&5
37401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37402if eval "test \"\${$as_ac_var+set}\" = set"; then
37403 echo $ECHO_N "(cached) $ECHO_C" >&6
37404else
37405 cat >conftest.$ac_ext <<_ACEOF
37406/* confdefs.h. */
37407_ACEOF
37408cat confdefs.h >>conftest.$ac_ext
37409cat >>conftest.$ac_ext <<_ACEOF
37410/* end confdefs.h. */
ac1cb8d3
VS
37411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37413#define $ac_func innocuous_$ac_func
37414
a848cd7e
SC
37415/* System header to define __stub macros and hopefully few prototypes,
37416 which can conflict with char $ac_func (); below.
37417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37418 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37419
a848cd7e
SC
37420#ifdef __STDC__
37421# include <limits.h>
37422#else
37423# include <assert.h>
37424#endif
ac1cb8d3
VS
37425
37426#undef $ac_func
37427
a848cd7e
SC
37428/* Override any gcc2 internal prototype to avoid an error. */
37429#ifdef __cplusplus
37430extern "C"
37431{
37432#endif
37433/* We use char because int might match the return type of a gcc2
37434 builtin and then its argument prototype would still apply. */
37435char $ac_func ();
37436/* The GNU C library defines this for functions which it implements
37437 to always fail with ENOSYS. Some functions are actually named
37438 something starting with __ and the normal name is an alias. */
37439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37440choke me
37441#else
37442char (*f) () = $ac_func;
37443#endif
37444#ifdef __cplusplus
37445}
37446#endif
37447
37448int
37449main ()
37450{
37451return f != $ac_func;
37452 ;
37453 return 0;
37454}
37455_ACEOF
37456rm -f conftest.$ac_objext conftest$ac_exeext
37457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37458 (eval $ac_link) 2>conftest.er1
a848cd7e 37459 ac_status=$?
ac1cb8d3
VS
37460 grep -v '^ *+' conftest.er1 >conftest.err
37461 rm -f conftest.er1
37462 cat conftest.err >&5
a848cd7e
SC
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); } &&
4d4ff94c 37465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37467 (eval $ac_try) 2>&5
37468 ac_status=$?
37469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470 (exit $ac_status); }; } &&
37471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37473 (eval $ac_try) 2>&5
37474 ac_status=$?
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); }; }; then
37477 eval "$as_ac_var=yes"
37478else
37479 echo "$as_me: failed program was:" >&5
37480sed 's/^/| /' conftest.$ac_ext >&5
37481
37482eval "$as_ac_var=no"
37483fi
ac1cb8d3
VS
37484rm -f conftest.err conftest.$ac_objext \
37485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37486fi
37487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37489if test `eval echo '${'$as_ac_var'}'` = yes; then
37490 cat >>confdefs.h <<_ACEOF
37491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37492_ACEOF
37493 have_ceil=1
37494fi
37495done
37496
37497 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37498echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37499 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37500 echo "$as_me:$LINENO: result: yes" >&5
37501echo "${ECHO_T}yes" >&6
37502 else
37503 echo "$as_me:$LINENO: result: no" >&5
37504echo "${ECHO_T}no" >&6
37505 # not sure we should warn the user, crash, etc.
37506 fi
37507fi
37508
37509if test "$wxUSE_GUI" = "yes"; then
37510
37511
37512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37513 drawing dynamic erase event exec font image \
37514 minimal propsize rotate shaped widgets render"
37515
37516 if test "$wxUSE_MONOLITHIC" != "yes"; then
37517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37518 fi
37519else
37520 SAMPLES_SUBDIRS="console"
37521fi
37522
37523
37524INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37525-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37526
37527if test "$GXX" = yes ; then
37528 CXXWARNINGS="-Wall"
37529 fi
37530
37531EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37532
0c3c69fc
VS
37533CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37534CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37535CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37536
37537
0c3c69fc 37538LIBS=`echo $LIBS`
a848cd7e
SC
37539EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37540EXTRALIBS_XML="$EXPAT_LINK"
37541EXTRALIBS_HTML="$MSPACK_LINK"
37542EXTRALIBS_ODBC="$ODBC_LINK"
37543if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37544 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37545fi
37546if test "$wxUSE_OPENGL" = "yes"; then
37547 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37548fi
37549
37550LDFLAGS="$LDFLAGS $PROFILE"
37551
37552if test "$wxUSE_GTK" = 1; then
37553 WXCONFIG_INCLUDE=
37554else
37555 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37556fi
37557
37558WXCONFIG_EXTRALIBS="$LIBS"
37559
37560if test "$wxUSE_REGEX" = "builtin" ; then
37561 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37562fi
37563if test "$wxUSE_EXPAT" = "builtin" ; then
37564 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37565fi
37566if test "$wxUSE_ODBC" = "builtin" ; then
37567 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37568fi
37569if test "$wxUSE_LIBTIFF" = "builtin" ; then
37570 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37571fi
37572if test "$wxUSE_LIBJPEG" = "builtin" ; then
37573 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37574fi
37575if test "$wxUSE_LIBPNG" = "builtin" ; then
37576 wxconfig_3rdparty="$wxconfig_3rdparty png"
37577fi
37578if test "$wxUSE_ZLIB" = "builtin" ; then
37579 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37580fi
37581if test "$wxUSE_ODBC" = "builtin" ; then
37582 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37583fi
37584
37585for i in $wxconfig_3rdparty ; do
37586 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37587done
37588
37589
37590if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37591 WXUNIV=1
37592else
37593 WXUNIV=0
37594fi
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604if test $wxUSE_MONOLITHIC = "yes" ; then
37605 MONOLITHIC=1
37606else
37607 MONOLITHIC=0
37608fi
37609
37610if test $wxUSE_PLUGINS = "yes" ; then
37611 USE_PLUGINS=1
37612else
37613 USE_PLUGINS=0
37614fi
37615
37616if test $wxUSE_ODBC != "no" ; then
37617 USE_ODBC=1
37618else
37619 USE_ODBC=0
37620fi
37621
37622if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37623 OFFICIAL_BUILD=1
37624else
37625 OFFICIAL_BUILD=0
37626fi
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37649
37650
37651
37652
37653
37654
37655
37656
4d4ff94c
VZ
37657case "$TOOLKIT" in
37658 GTK)
37659 TOOLKIT_USER="GTK+"
37660 if test "$WXGTK20" = 1; then
37661 TOOLKIT_USER="$TOOLKIT_USER 2"
37662 fi
37663 ;;
37664
37665 *)
37666 TOOLKIT_USER=$TOOLKIT_LOWERCASE
37667 ;;
37668esac
a848cd7e
SC
37669
37670 if test "x$BAKEFILE_HOST" = "x"; then
37671 BAKEFILE_HOST="${host}"
37672 fi
37673
37674 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37675
37676 if test -n "$ac_tool_prefix"; then
37677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37679echo "$as_me:$LINENO: checking for $ac_word" >&5
37680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37681if test "${ac_cv_prog_RANLIB+set}" = set; then
37682 echo $ECHO_N "(cached) $ECHO_C" >&6
37683else
37684 if test -n "$RANLIB"; then
37685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37686else
37687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37688for as_dir in $PATH
37689do
37690 IFS=$as_save_IFS
37691 test -z "$as_dir" && as_dir=.
37692 for ac_exec_ext in '' $ac_executable_extensions; do
37693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37696 break 2
37697 fi
37698done
37699done
37700
37701fi
37702fi
37703RANLIB=$ac_cv_prog_RANLIB
37704if test -n "$RANLIB"; then
37705 echo "$as_me:$LINENO: result: $RANLIB" >&5
37706echo "${ECHO_T}$RANLIB" >&6
37707else
37708 echo "$as_me:$LINENO: result: no" >&5
37709echo "${ECHO_T}no" >&6
37710fi
37711
37712fi
37713if test -z "$ac_cv_prog_RANLIB"; then
37714 ac_ct_RANLIB=$RANLIB
37715 # Extract the first word of "ranlib", so it can be a program name with args.
37716set dummy ranlib; ac_word=$2
37717echo "$as_me:$LINENO: checking for $ac_word" >&5
37718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37720 echo $ECHO_N "(cached) $ECHO_C" >&6
37721else
37722 if test -n "$ac_ct_RANLIB"; then
37723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37724else
37725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37726for as_dir in $PATH
37727do
37728 IFS=$as_save_IFS
37729 test -z "$as_dir" && as_dir=.
37730 for ac_exec_ext in '' $ac_executable_extensions; do
37731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37732 ac_cv_prog_ac_ct_RANLIB="ranlib"
37733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37734 break 2
37735 fi
37736done
37737done
37738
37739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37740fi
37741fi
37742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37743if test -n "$ac_ct_RANLIB"; then
37744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37745echo "${ECHO_T}$ac_ct_RANLIB" >&6
37746else
37747 echo "$as_me:$LINENO: result: no" >&5
37748echo "${ECHO_T}no" >&6
37749fi
37750
37751 RANLIB=$ac_ct_RANLIB
37752else
37753 RANLIB="$ac_cv_prog_RANLIB"
37754fi
37755
37756 # Find a good install program. We prefer a C program (faster),
37757# so one script is as good as another. But avoid the broken or
37758# incompatible versions:
37759# SysV /etc/install, /usr/sbin/install
37760# SunOS /usr/etc/install
37761# IRIX /sbin/install
37762# AIX /bin/install
37763# AmigaOS /C/install, which installs bootblocks on floppy discs
37764# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37765# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37766# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37767# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37768# ./install, which can be erroneously created by make from ./install.sh.
37769echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37770echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37771if test -z "$INSTALL"; then
37772if test "${ac_cv_path_install+set}" = set; then
37773 echo $ECHO_N "(cached) $ECHO_C" >&6
37774else
37775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37776for as_dir in $PATH
37777do
37778 IFS=$as_save_IFS
37779 test -z "$as_dir" && as_dir=.
37780 # Account for people who put trailing slashes in PATH elements.
37781case $as_dir/ in
37782 ./ | .// | /cC/* | \
37783 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37784 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37785 /usr/ucb/* ) ;;
37786 *)
37787 # OSF1 and SCO ODT 3.0 have their own names for install.
37788 # Don't use installbsd from OSF since it installs stuff as root
37789 # by default.
37790 for ac_prog in ginstall scoinst install; do
37791 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37792 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37793 if test $ac_prog = install &&
37794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37795 # AIX install. It has an incompatible calling convention.
37796 :
37797 elif test $ac_prog = install &&
37798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37799 # program-specific install script used by HP pwplus--don't use.
37800 :
37801 else
37802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37803 break 3
37804 fi
37805 fi
a848cd7e
SC
37806 done
37807 done
37808 ;;
37809esac
37810done
37811
37812
37813fi
37814 if test "${ac_cv_path_install+set}" = set; then
37815 INSTALL=$ac_cv_path_install
37816 else
37817 # As a last resort, use the slow shell script. We don't cache a
37818 # path for INSTALL within a source directory, because that will
37819 # break other packages using the cache if that directory is
37820 # removed, or if the path is relative.
37821 INSTALL=$ac_install_sh
37822 fi
37823fi
37824echo "$as_me:$LINENO: result: $INSTALL" >&5
37825echo "${ECHO_T}$INSTALL" >&6
37826
37827# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37828# It thinks the first close brace ends the variable substitution.
37829test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37830
37831test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37832
37833test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37834
37835 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37836echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37837LN_S=$as_ln_s
37838if test "$LN_S" = "ln -s"; then
37839 echo "$as_me:$LINENO: result: yes" >&5
37840echo "${ECHO_T}yes" >&6
37841else
37842 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37843echo "${ECHO_T}no, using $LN_S" >&6
37844fi
37845
37846
37847 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37849set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37850if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37852else
37853 cat >conftest.make <<\_ACEOF
37854all:
37855 @echo 'ac_maketemp="$(MAKE)"'
37856_ACEOF
37857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37858eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37859if test -n "$ac_maketemp"; then
37860 eval ac_cv_prog_make_${ac_make}_set=yes
37861else
37862 eval ac_cv_prog_make_${ac_make}_set=no
37863fi
37864rm -f conftest.make
37865fi
37866if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37867 echo "$as_me:$LINENO: result: yes" >&5
37868echo "${ECHO_T}yes" >&6
37869 SET_MAKE=
37870else
37871 echo "$as_me:$LINENO: result: no" >&5
37872echo "${ECHO_T}no" >&6
37873 SET_MAKE="MAKE=${MAKE-make}"
37874fi
37875
37876
37877
37878 if test -n "$ac_tool_prefix"; then
37879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37880set dummy ${ac_tool_prefix}ar; ac_word=$2
37881echo "$as_me:$LINENO: checking for $ac_word" >&5
37882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37883if test "${ac_cv_prog_AR+set}" = set; then
37884 echo $ECHO_N "(cached) $ECHO_C" >&6
37885else
37886 if test -n "$AR"; then
37887 ac_cv_prog_AR="$AR" # Let the user override the test.
37888else
37889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37890for as_dir in $PATH
37891do
37892 IFS=$as_save_IFS
37893 test -z "$as_dir" && as_dir=.
37894 for ac_exec_ext in '' $ac_executable_extensions; do
37895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37896 ac_cv_prog_AR="${ac_tool_prefix}ar"
37897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37898 break 2
37899 fi
37900done
37901done
37902
37903fi
37904fi
37905AR=$ac_cv_prog_AR
37906if test -n "$AR"; then
37907 echo "$as_me:$LINENO: result: $AR" >&5
37908echo "${ECHO_T}$AR" >&6
37909else
37910 echo "$as_me:$LINENO: result: no" >&5
37911echo "${ECHO_T}no" >&6
37912fi
37913
37914fi
37915if test -z "$ac_cv_prog_AR"; then
37916 ac_ct_AR=$AR
37917 # Extract the first word of "ar", so it can be a program name with args.
37918set dummy ar; ac_word=$2
37919echo "$as_me:$LINENO: checking for $ac_word" >&5
37920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37921if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37922 echo $ECHO_N "(cached) $ECHO_C" >&6
37923else
37924 if test -n "$ac_ct_AR"; then
37925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37926else
37927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37928for as_dir in $PATH
37929do
37930 IFS=$as_save_IFS
37931 test -z "$as_dir" && as_dir=.
37932 for ac_exec_ext in '' $ac_executable_extensions; do
37933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37934 ac_cv_prog_ac_ct_AR="ar"
37935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37936 break 2
37937 fi
37938done
37939done
37940
37941 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37942fi
37943fi
37944ac_ct_AR=$ac_cv_prog_ac_ct_AR
37945if test -n "$ac_ct_AR"; then
37946 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37947echo "${ECHO_T}$ac_ct_AR" >&6
37948else
37949 echo "$as_me:$LINENO: result: no" >&5
37950echo "${ECHO_T}no" >&6
37951fi
37952
37953 AR=$ac_ct_AR
37954else
37955 AR="$ac_cv_prog_AR"
37956fi
37957
37958 if test -n "$ac_tool_prefix"; then
37959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37960set dummy ${ac_tool_prefix}strip; ac_word=$2
37961echo "$as_me:$LINENO: checking for $ac_word" >&5
37962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37963if test "${ac_cv_prog_STRIP+set}" = set; then
37964 echo $ECHO_N "(cached) $ECHO_C" >&6
37965else
37966 if test -n "$STRIP"; then
37967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37968else
37969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37970for as_dir in $PATH
37971do
37972 IFS=$as_save_IFS
37973 test -z "$as_dir" && as_dir=.
37974 for ac_exec_ext in '' $ac_executable_extensions; do
37975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37978 break 2
37979 fi
37980done
37981done
37982
37983fi
37984fi
37985STRIP=$ac_cv_prog_STRIP
37986if test -n "$STRIP"; then
37987 echo "$as_me:$LINENO: result: $STRIP" >&5
37988echo "${ECHO_T}$STRIP" >&6
37989else
37990 echo "$as_me:$LINENO: result: no" >&5
37991echo "${ECHO_T}no" >&6
37992fi
37993
37994fi
37995if test -z "$ac_cv_prog_STRIP"; then
37996 ac_ct_STRIP=$STRIP
37997 # Extract the first word of "strip", so it can be a program name with args.
37998set dummy strip; ac_word=$2
37999echo "$as_me:$LINENO: checking for $ac_word" >&5
38000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38001if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38002 echo $ECHO_N "(cached) $ECHO_C" >&6
38003else
38004 if test -n "$ac_ct_STRIP"; then
38005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38006else
38007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38008for as_dir in $PATH
38009do
38010 IFS=$as_save_IFS
38011 test -z "$as_dir" && as_dir=.
38012 for ac_exec_ext in '' $ac_executable_extensions; do
38013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38014 ac_cv_prog_ac_ct_STRIP="strip"
38015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38016 break 2
38017 fi
38018done
38019done
38020
38021 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38022fi
38023fi
38024ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38025if test -n "$ac_ct_STRIP"; then
38026 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38027echo "${ECHO_T}$ac_ct_STRIP" >&6
38028else
38029 echo "$as_me:$LINENO: result: no" >&5
38030echo "${ECHO_T}no" >&6
38031fi
38032
38033 STRIP=$ac_ct_STRIP
38034else
38035 STRIP="$ac_cv_prog_STRIP"
38036fi
38037
38038 if test -n "$ac_tool_prefix"; then
38039 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38040set dummy ${ac_tool_prefix}nm; ac_word=$2
38041echo "$as_me:$LINENO: checking for $ac_word" >&5
38042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38043if test "${ac_cv_prog_NM+set}" = set; then
38044 echo $ECHO_N "(cached) $ECHO_C" >&6
38045else
38046 if test -n "$NM"; then
38047 ac_cv_prog_NM="$NM" # Let the user override the test.
38048else
38049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38050for as_dir in $PATH
38051do
38052 IFS=$as_save_IFS
38053 test -z "$as_dir" && as_dir=.
38054 for ac_exec_ext in '' $ac_executable_extensions; do
38055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38056 ac_cv_prog_NM="${ac_tool_prefix}nm"
38057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38058 break 2
38059 fi
38060done
38061done
38062
38063fi
38064fi
38065NM=$ac_cv_prog_NM
38066if test -n "$NM"; then
38067 echo "$as_me:$LINENO: result: $NM" >&5
38068echo "${ECHO_T}$NM" >&6
38069else
38070 echo "$as_me:$LINENO: result: no" >&5
38071echo "${ECHO_T}no" >&6
38072fi
38073
38074fi
38075if test -z "$ac_cv_prog_NM"; then
38076 ac_ct_NM=$NM
38077 # Extract the first word of "nm", so it can be a program name with args.
38078set dummy nm; ac_word=$2
38079echo "$as_me:$LINENO: checking for $ac_word" >&5
38080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38081if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38082 echo $ECHO_N "(cached) $ECHO_C" >&6
38083else
38084 if test -n "$ac_ct_NM"; then
38085 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38086else
38087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38088for as_dir in $PATH
38089do
38090 IFS=$as_save_IFS
38091 test -z "$as_dir" && as_dir=.
38092 for ac_exec_ext in '' $ac_executable_extensions; do
38093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38094 ac_cv_prog_ac_ct_NM="nm"
38095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38096 break 2
38097 fi
38098done
38099done
38100
38101 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38102fi
38103fi
38104ac_ct_NM=$ac_cv_prog_ac_ct_NM
38105if test -n "$ac_ct_NM"; then
38106 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38107echo "${ECHO_T}$ac_ct_NM" >&6
38108else
38109 echo "$as_me:$LINENO: result: no" >&5
38110echo "${ECHO_T}no" >&6
38111fi
38112
38113 NM=$ac_ct_NM
38114else
38115 NM="$ac_cv_prog_NM"
38116fi
38117
38118
38119 case ${BAKEFILE_HOST} in
38120 *-hp-hpux* )
a0f9686d 38121 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38122 ;;
38123 *) INSTALL_DIR="$INSTALL -d"
38124 ;;
38125 esac
38126
38127
38128 LDFLAGS_GUI=
38129 case ${BAKEFILE_HOST} in
38130 *-*-cygwin* | *-*-mingw32* )
38131 LDFLAGS_GUI="-mwindows"
38132 esac
38133
38134
38135 fi
38136
38137 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38138echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38139if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38140 echo $ECHO_N "(cached) $ECHO_C" >&6
38141else
38142
38143 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38144 egrep -s GNU > /dev/null); then
38145 bakefile_cv_prog_makeisgnu="yes"
38146 else
38147 bakefile_cv_prog_makeisgnu="no"
38148 fi
38149
38150fi
38151echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38152echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38153
38154 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38155 IF_GNU_MAKE=""
38156 else
38157 IF_GNU_MAKE="#"
38158 fi
38159
38160
38161
38162 PLATFORM_UNIX=0
38163 PLATFORM_WIN32=0
38164 PLATFORM_MSDOS=0
38165 PLATFORM_MAC=0
38166 PLATFORM_MACOSX=0
38167 PLATFORM_OS2=0
38168
38169 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38170 case "${BAKEFILE_HOST}" in
38171 *-*-cygwin* | *-*-mingw32* )
38172 PLATFORM_WIN32=1
38173 ;;
38174 *-pc-msdosdjgpp )
38175 PLATFORM_MSDOS=1
38176 ;;
38177 *-pc-os2_emx | *-pc-os2-emx )
38178 PLATFORM_OS2=1
38179 ;;
38180 powerpc-*-darwin* )
38181 PLATFORM_MAC=1
38182 PLATFORM_MACOSX=1
38183 ;;
38184 * )
38185 PLATFORM_UNIX=1
38186 ;;
38187 esac
38188 else
38189 case "$BAKEFILE_FORCE_PLATFORM" in
38190 win32 )
38191 PLATFORM_WIN32=1
38192 ;;
38193 msdos )
38194 PLATFORM_MSDOS=1
38195 ;;
38196 os2 )
38197 PLATFORM_OS2=1
38198 ;;
38199 darwin )
38200 PLATFORM_MAC=1
38201 PLATFORM_MACOSX=1
38202 ;;
38203 unix )
38204 PLATFORM_UNIX=1
38205 ;;
38206 * )
38207 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38208echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38209 { (exit 1); exit 1; }; }
38210 ;;
38211 esac
38212 fi
38213
38214
38215
38216
38217
38218
38219
38220
38221
38222 # Check whether --enable-omf or --disable-omf was given.
38223if test "${enable_omf+set}" = set; then
38224 enableval="$enable_omf"
38225 bk_os2_use_omf="$enableval"
38226fi;
38227
38228 case "${BAKEFILE_HOST}" in
38229 *-*-darwin* )
38230 CFLAGS="$CFLAGS -fno-common"
38231 CXXFLAGS="$CXXFLAGS -fno-common"
38232 ;;
38233
38234 *-pc-os2_emx | *-pc-os2-emx )
38235 if test "x$bk_os2_use_omf" = "xyes" ; then
38236 AR=emxomfar
38237 RANLIB=:
38238 LDFLAGS="-Zomf $LDFLAGS"
38239 CFLAGS="-Zomf $CFLAGS"
38240 CXXFLAGS="-Zomf $CXXFLAGS"
38241 OS2_LIBEXT="lib"
38242 else
38243 OS2_LIBEXT="a"
38244 fi
38245 ;;
38246 esac
38247
38248
38249 SO_SUFFIX="so"
38250 SO_SUFFIX_MODULE="so"
38251 EXEEXT=""
38252 LIBPREFIX="lib"
38253 LIBEXT=".a"
38254 DLLPREFIX="lib"
38255 DLLPREFIX_MODULE=""
38256 DLLIMP_SUFFIX=""
38257
38258 case "${BAKEFILE_HOST}" in
38259 *-hp-hpux* )
38260 SO_SUFFIX="sl"
38261 SO_SUFFIX_MODULE="sl"
38262 ;;
38263 *-*-aix* )
38264 SO_SUFFIX="a"
38265 SO_SUFFIX_MODULE="a"
38266 ;;
38267 *-*-cygwin* | *-*-mingw32* )
38268 SO_SUFFIX="dll"
38269 SO_SUFFIX_MODULE="dll"
38270 DLLIMP_SUFFIX="dll.a"
38271 EXEEXT=".exe"
38272 DLLPREFIX=""
38273 ;;
38274 *-pc-msdosdjgpp )
38275 EXEEXT=".exe"
38276 DLLPREFIX=""
38277 ;;
38278 *-pc-os2_emx | *-pc-os2-emx )
38279 SO_SUFFIX="dll"
38280 SO_SUFFIX_MODULE="dll"
38281 DLLIMP_SUFFIX=$OS2_LIBEXT
38282 EXEEXT=".exe"
38283 DLLPREFIX=""
38284 LIBPREFIX=""
38285 LIBEXT=".$OS2_LIBEXT"
38286 ;;
38287 powerpc-*-darwin* )
38288 SO_SUFFIX="dylib"
38289 SO_SUFFIX_MODULE="bundle"
38290 ;;
38291 esac
38292
38293 if test "x$DLLIMP_SUFFIX" = "x" ; then
38294 DLLIMP_SUFFIX="$SO_SUFFIX"
38295 fi
38296
38297
38298
38299
38300
38301
38302
38303
38304
38305
38306
38307 SHARED_LD_CC="\$(CC) -shared -o"
38308 SHARED_LD_CXX="\$(CXX) -shared -o"
38309
38310 if test "x$GCC" = "xyes"; then
38311 PIC_FLAG="-fPIC"
38312 fi
38313
38314 case "${BAKEFILE_HOST}" in
38315 *-hp-hpux* )
38316 if test "x$GCC" = "xyes"; then
38317 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38318 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38319 else
38320 LDFLAGS="$LDFLAGS -L/usr/lib"
38321
38322 SHARED_LD_CC="${CC} -b -o"
38323 SHARED_LD_CXX="${CXX} -b -o"
38324 PIC_FLAG="+Z"
38325 fi
38326 ;;
38327
38328 *-*-linux* )
38329 if test "x$GCC" != "xyes"; then
38330 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38331echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38332if test "${bakefile_cv_prog_icc+set}" = set; then
38333 echo $ECHO_N "(cached) $ECHO_C" >&6
38334else
38335
38336 cat >conftest.$ac_ext <<_ACEOF
38337/* confdefs.h. */
38338_ACEOF
38339cat confdefs.h >>conftest.$ac_ext
38340cat >>conftest.$ac_ext <<_ACEOF
38341/* end confdefs.h. */
38342
38343int
38344main ()
38345{
38346
38347 #ifndef __INTEL_COMPILER
38348 #error Not icc
38349 #endif
38350
38351 ;
38352 return 0;
38353}
38354_ACEOF
38355rm -f conftest.$ac_objext
38356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38357 (eval $ac_compile) 2>conftest.er1
a848cd7e 38358 ac_status=$?
ac1cb8d3
VS
38359 grep -v '^ *+' conftest.er1 >conftest.err
38360 rm -f conftest.er1
38361 cat conftest.err >&5
a848cd7e
SC
38362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363 (exit $ac_status); } &&
4d4ff94c 38364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38366 (eval $ac_try) 2>&5
38367 ac_status=$?
38368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38369 (exit $ac_status); }; } &&
38370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38372 (eval $ac_try) 2>&5
38373 ac_status=$?
38374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375 (exit $ac_status); }; }; then
38376 bakefile_cv_prog_icc=yes
38377else
38378 echo "$as_me: failed program was:" >&5
38379sed 's/^/| /' conftest.$ac_ext >&5
38380
38381bakefile_cv_prog_icc=no
38382
38383fi
ac1cb8d3 38384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38385
38386fi
38387echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38388echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38389 if test "$bakefile_cv_prog_icc" = "yes"; then
38390 PIC_FLAG="-KPIC"
38391 fi
38392 fi
38393 ;;
38394
38395 *-*-solaris2* )
38396 if test "x$GCC" != xyes ; then
38397 SHARED_LD_CC="${CC} -G -o"
38398 SHARED_LD_CXX="${CXX} -G -o"
38399 PIC_FLAG="-KPIC"
38400 fi
38401 ;;
38402
38403 *-*-darwin* )
38404
38405 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38406echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38407if test "${wx_cv_gcc31+set}" = set; then
38408 echo $ECHO_N "(cached) $ECHO_C" >&6
38409else
38410
38411 cat >conftest.$ac_ext <<_ACEOF
38412/* confdefs.h. */
38413_ACEOF
38414cat confdefs.h >>conftest.$ac_ext
38415cat >>conftest.$ac_ext <<_ACEOF
38416/* end confdefs.h. */
38417
38418int
38419main ()
38420{
38421
38422 #if (__GNUC__ < 3) || \
38423 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38424 #error old gcc
38425 #endif
38426
38427 ;
38428 return 0;
38429}
38430_ACEOF
38431rm -f conftest.$ac_objext
38432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38433 (eval $ac_compile) 2>conftest.er1
a848cd7e 38434 ac_status=$?
ac1cb8d3
VS
38435 grep -v '^ *+' conftest.er1 >conftest.err
38436 rm -f conftest.er1
38437 cat conftest.err >&5
a848cd7e
SC
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); } &&
4d4ff94c 38440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442 (eval $ac_try) 2>&5
38443 ac_status=$?
38444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); }; } &&
38446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38448 (eval $ac_try) 2>&5
38449 ac_status=$?
38450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38451 (exit $ac_status); }; }; then
38452
38453 wx_cv_gcc31=yes
38454
38455else
38456 echo "$as_me: failed program was:" >&5
38457sed 's/^/| /' conftest.$ac_ext >&5
38458
38459
38460 wx_cv_gcc31=no
38461
38462
38463fi
ac1cb8d3 38464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38465
38466fi
38467echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38468echo "${ECHO_T}$wx_cv_gcc31" >&6
38469 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38470
38471D='$'
38472cat <<EOF >shared-ld-sh
a848cd7e
SC
38473#!/bin/sh
38474#-----------------------------------------------------------------------------
38475#-- Name: distrib/mac/shared-ld-sh
38476#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38477#-- Author: Gilles Depeyrot
38478#-- Copyright: (c) 2002 Gilles Depeyrot
38479#-- Licence: any use permitted
38480#-----------------------------------------------------------------------------
38481
38482verbose=0
38483args=""
38484objects=""
38485linking_flag="-dynamiclib"
38486
473276a9
VS
38487while test ${D}# -gt 0; do
38488 case ${D}1 in
a848cd7e
SC
38489
38490 -v)
38491 verbose=1
38492 ;;
38493
38494 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38495 # collect these options and values
473276a9 38496 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38497 shift
38498 ;;
38499
38500 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38501 # collect these options
473276a9 38502 args="${D}{args} ${D}1"
a848cd7e
SC
38503 ;;
38504
38505 -dynamiclib|-bundle)
473276a9 38506 linking_flag="${D}1"
a848cd7e
SC
38507 ;;
38508
38509 -*)
473276a9 38510 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38511 exit 1
38512 ;;
38513
38514 *.o | *.a | *.dylib)
38515 # collect object files
473276a9 38516 objects="${D}{objects} ${D}1"
a848cd7e
SC
38517 ;;
38518
38519 *)
473276a9 38520 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38521 exit 1
38522 ;;
38523
38524 esac
38525 shift
38526done
38527
38528#
38529# Link one module containing all the others
38530#
473276a9
VS
38531if test ${D}{verbose} = 1; then
38532 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38533fi
473276a9
VS
38534c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38535status=${D}?
38536if test ${D}{status} != 0; then
38537 exit ${D}{status}
a848cd7e
SC
38538fi
38539
38540#
38541# Link the shared library from the single module created
38542#
473276a9
VS
38543if test ${D}{verbose} = 1; then
38544 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38545fi
473276a9
VS
38546c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38547status=${D}?
38548if test ${D}{status} != 0; then
38549 exit ${D}{status}
a848cd7e
SC
38550fi
38551
38552#
38553# Remove intermediate module
38554#
473276a9 38555rm -f master.${D}${D}.o
a848cd7e
SC
38556
38557exit 0
38558EOF
473276a9 38559
a848cd7e
SC
38560 chmod +x shared-ld-sh
38561
38562 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38563 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38564 SHARED_LD_CXX="$SHARED_LD_CC"
38565 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38566 else
38567 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38568 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38569 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38570 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38571 fi
38572
38573 PIC_FLAG="-dynamic -fPIC"
38574 ;;
38575
38576 *-*-aix* )
38577 if test "x$GCC" != "xyes"; then
38578 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38579set dummy makeC++SharedLib; ac_word=$2
38580echo "$as_me:$LINENO: checking for $ac_word" >&5
38581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38582if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38583 echo $ECHO_N "(cached) $ECHO_C" >&6
38584else
38585 if test -n "$AIX_CXX_LD"; then
38586 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38587else
38588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38589for as_dir in $PATH
38590do
38591 IFS=$as_save_IFS
38592 test -z "$as_dir" && as_dir=.
38593 for ac_exec_ext in '' $ac_executable_extensions; do
38594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38595 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38597 break 2
38598 fi
38599done
38600done
38601
38602 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38603fi
38604fi
38605AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38606if test -n "$AIX_CXX_LD"; then
38607 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38608echo "${ECHO_T}$AIX_CXX_LD" >&6
38609else
38610 echo "$as_me:$LINENO: result: no" >&5
38611echo "${ECHO_T}no" >&6
38612fi
38613
38614 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38615 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38616 fi
38617 ;;
38618
38619 *-*-beos* )
38620 SHARED_LD_CC="${LD} -shared -o"
38621 SHARED_LD_CXX="${LD} -shared -o"
38622 ;;
38623
38624 *-*-irix* )
38625 if test "x$GCC" != "xyes"; then
38626 PIC_FLAG="-KPIC"
38627 fi
38628 ;;
38629
38630 *-*-cygwin* | *-*-mingw32* )
38631 PIC_FLAG=""
38632 ;;
38633
38634 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38635 SHARED_LD_CC="`pwd`/dllar.sh -o"
38636 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38637 PIC_FLAG=""
473276a9
VS
38638
38639D='$'
38640cat <<EOF >dllar.sh
38641#!/bin/sh
38642#
38643# dllar - a tool to build both a .dll and an .a file
38644# from a set of object (.o) files for EMX/OS2.
38645#
38646# Written by Andrew Zabolotny, bit@freya.etu.ru
38647# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38648#
38649# This script will accept a set of files on the command line.
38650# All the public symbols from the .o files will be exported into
38651# a .DEF file, then linker will be run (through gcc) against them to
38652# build a shared library consisting of all given .o files. All libraries
38653# (.a) will be first decompressed into component .o files then act as
38654# described above. You can optionally give a description (-d "description")
38655# which will be put into .DLL. To see the list of accepted options (as well
38656# as command-line format) simply run this program without options. The .DLL
38657# is built to be imported by name (there is no guarantee that new versions
38658# of the library you build will have same ordinals for same symbols).
38659#
38660# dllar is free software; you can redistribute it and/or modify
38661# it under the terms of the GNU General Public License as published by
38662# the Free Software Foundation; either version 2, or (at your option)
38663# any later version.
38664#
38665# dllar is distributed in the hope that it will be useful,
38666# but WITHOUT ANY WARRANTY; without even the implied warranty of
38667# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38668# GNU General Public License for more details.
38669#
38670# You should have received a copy of the GNU General Public License
38671# along with dllar; see the file COPYING. If not, write to the Free
38672# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38673# 02111-1307, USA.
38674
38675# To successfuly run this program you will need:
38676# - Current drive should have LFN support (HPFS, ext2, network, etc)
38677# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38678# - gcc
38679# (used to build the .dll)
38680# - emxexp
38681# (used to create .def file from .o files)
38682# - emximp
38683# (used to create .a file from .def file)
38684# - GNU text utilites (cat, sort, uniq)
38685# used to process emxexp output
38686# - GNU file utilities (mv, rm)
38687# - GNU sed
38688# - lxlite (optional, see flag below)
38689# (used for general .dll cleanup)
38690#
38691
38692flag_USE_LXLITE=1;
38693
38694#
38695# helper functions
38696# basnam, variant of basename, which does _not_ remove the path, _iff_
38697# second argument (suffix to remove) is given
38698basnam(){
38699 case ${D}# in
38700 1)
38701 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38702 ;;
38703 2)
38704 echo ${D}1 | sed 's/'${D}2'${D}//'
38705 ;;
38706 *)
38707 echo "error in basnam ${D}*"
38708 exit 8
38709 ;;
38710 esac
38711}
38712
38713# Cleanup temporary files and output
38714CleanUp() {
38715 cd ${D}curDir
38716 for i in ${D}inputFiles ; do
38717 case ${D}i in
38718 *!)
38719 rm -rf \`basnam ${D}i !\`
38720 ;;
38721 *)
38722 ;;
38723 esac
38724 done
38725
38726 # Kill result in case of failure as there is just to many stupid make/nmake
38727 # things out there which doesn't do this.
2057db16 38728 if [] ${D}# -eq 0 []; then
473276a9
VS
38729 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38730 fi
38731}
38732
38733# Print usage and exit script with rc=1.
38734PrintHelp() {
2057db16
VS
38735 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38736 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38737 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38738 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38739 echo ' []*.o[] []*.a[]'
473276a9
VS
38740 echo '*> "output_file" should have no extension.'
38741 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38742 echo ' The import library name is derived from this and is set to "name".a,'
38743 echo ' unless overridden by -import'
38744 echo '*> "importlib_name" should have no extension.'
38745 echo ' If it has the .o, or .a extension, it is automatically removed.'
38746 echo ' This name is used as the import library name and may be longer and'
38747 echo ' more descriptive than the DLL name which has to follow the old '
38748 echo ' 8.3 convention of FAT.'
38749 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38750 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38751 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38752 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38753 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38754 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38755 echo ' If the last character of a symbol is "*", all symbols beginning'
38756 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38757 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38758 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38759 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38760 echo ' C runtime DLLs.'
2057db16 38761 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38762 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38763 echo ' unchanged to GCC at the end of command line.'
38764 echo '*> If you create a DLL from a library and you do not specify -o,'
38765 echo ' the basename for DLL and import library will be set to library name,'
38766 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38767 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38768 echo ' library will be renamed into gcc_s.a.'
38769 echo '--------'
38770 echo 'Example:'
38771 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38772 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38773 CleanUp
38774 exit 1
38775}
38776
38777# Execute a command.
38778# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38779# @Uses Whatever CleanUp() uses.
38780doCommand() {
38781 echo "${D}*"
38782 eval ${D}*
38783 rcCmd=${D}?
38784
2057db16 38785 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38786 echo "command failed, exit code="${D}rcCmd
38787 CleanUp
38788 exit ${D}rcCmd
38789 fi
38790}
38791
38792# main routine
38793# setup globals
38794cmdLine=${D}*
38795outFile=""
38796outimpFile=""
38797inputFiles=""
38798description=""
38799CC=gcc.exe
38800CFLAGS="-s -Zcrtdll"
38801EXTRA_CFLAGS=""
38802EXPORT_BY_ORDINALS=0
38803exclude_symbols=""
38804library_flags=""
38805curDir=\`pwd\`
38806curDirS=curDir
38807case ${D}curDirS in
38808*/)
38809 ;;
38810*)
38811 curDirS=${D}{curDirS}"/"
38812 ;;
38813esac
38814# Parse commandline
38815libsToLink=0
2057db16 38816while [] ${D}1 []; do
473276a9
VS
38817 case ${D}1 in
38818 -ord*)
38819 EXPORT_BY_ORDINALS=1;
38820 ;;
38821 -o*)
38822 shift
38823 outFile=${D}1
38824 ;;
38825 -i*)
38826 shift
38827 outimpFile=${D}1
38828 ;;
38829 -d*)
38830 shift
38831 description=${D}1
38832 ;;
38833 -f*)
38834 shift
38835 CFLAGS=${D}1
38836 ;;
38837 -c*)
38838 shift
38839 CC=${D}1
38840 ;;
38841 -h*)
38842 PrintHelp
38843 ;;
38844 -ex*)
38845 shift
38846 exclude_symbols=${D}{exclude_symbols}${D}1" "
38847 ;;
38848 -libf*)
38849 shift
38850 library_flags=${D}{library_flags}${D}1" "
38851 ;;
38852 -nocrt*)
38853 CFLAGS="-s"
38854 ;;
38855 -nolxl*)
38856 flag_USE_LXLITE=0
38857 ;;
38858 -* | /*)
38859 case ${D}1 in
38860 -L* | -l*)
38861 libsToLink=1
38862 ;;
38863 *)
38864 ;;
38865 esac
38866 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38867 ;;
38868 *)
38869 found=0;
2057db16 38870 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
38871 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38872 else
38873 for file in ${D}1 ; do
2057db16 38874 if [] -f ${D}file []; then
473276a9
VS
38875 inputFiles="${D}{inputFiles} ${D}file"
38876 found=1
38877 fi
38878 done
2057db16 38879 if [] ${D}found -eq 0 []; then
473276a9
VS
38880 echo "ERROR: No file(s) found: "${D}1
38881 exit 8
38882 fi
38883 fi
38884 ;;
38885 esac
38886 shift
38887done # iterate cmdline words
38888
38889#
2057db16 38890if [] -z "${D}inputFiles" []; then
473276a9
VS
38891 echo "dllar: no input files"
38892 PrintHelp
38893fi
38894
38895# Now extract all .o files from .a files
38896newInputFiles=""
38897for file in ${D}inputFiles ; do
38898 case ${D}file in
38899 *.a | *.lib)
38900 case ${D}file in
38901 *.a)
38902 suffix=".a"
38903 AR="ar"
38904 ;;
38905 *.lib)
38906 suffix=".lib"
38907 AR="emxomfar"
38908 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
38909 ;;
38910 *)
38911 ;;
38912 esac
38913 dirname=\`basnam ${D}file ${D}suffix\`"_%"
38914 mkdir ${D}dirname
2057db16 38915 if [] ${D}? -ne 0 []; then
473276a9
VS
38916 echo "Failed to create subdirectory ./${D}dirname"
38917 CleanUp
38918 exit 8;
38919 fi
38920 # Append '!' to indicate archive
38921 newInputFiles="${D}newInputFiles ${D}{dirname}!"
38922 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
38923 cd ${D}curDir
38924 found=0;
38925 for subfile in ${D}dirname/*.o* ; do
2057db16 38926 if [] -f ${D}subfile []; then
473276a9 38927 found=1
2057db16 38928 if [] -s ${D}subfile []; then
473276a9
VS
38929 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
38930 newInputFiles="${D}newInputFiles ${D}subfile"
38931 fi
38932 fi
38933 done
2057db16 38934 if [] ${D}found -eq 0 []; then
473276a9
VS
38935 echo "WARNING: there are no files in archive \'${D}file\'"
38936 fi
38937 ;;
38938 *)
38939 newInputFiles="${D}{newInputFiles} ${D}file"
38940 ;;
38941 esac
38942done
38943inputFiles="${D}newInputFiles"
38944
38945# Output filename(s).
38946do_backup=0;
2057db16 38947if [] -z ${D}outFile []; then
473276a9
VS
38948 do_backup=1;
38949 set outFile ${D}inputFiles; outFile=${D}2
38950fi
38951
38952# If it is an archive, remove the '!' and the '_%' suffixes
38953case ${D}outFile in
38954*_%!)
38955 outFile=\`basnam ${D}outFile _%!\`
38956 ;;
38957*)
38958 ;;
38959esac
38960case ${D}outFile in
38961*.dll)
38962 outFile=\`basnam ${D}outFile .dll\`
38963 ;;
38964*.DLL)
38965 outFile=\`basnam ${D}outFile .DLL\`
38966 ;;
38967*.o)
38968 outFile=\`basnam ${D}outFile .o\`
38969 ;;
38970*.obj)
38971 outFile=\`basnam ${D}outFile .obj\`
38972 ;;
38973*.a)
38974 outFile=\`basnam ${D}outFile .a\`
38975 ;;
38976*.lib)
38977 outFile=\`basnam ${D}outFile .lib\`
38978 ;;
38979*)
38980 ;;
38981esac
38982case ${D}outimpFile in
38983*.a)
38984 outimpFile=\`basnam ${D}outimpFile .a\`
38985 ;;
38986*.lib)
38987 outimpFile=\`basnam ${D}outimpFile .lib\`
38988 ;;
38989*)
38990 ;;
38991esac
2057db16 38992if [] -z ${D}outimpFile []; then
473276a9
VS
38993 outimpFile=${D}outFile
38994fi
38995defFile="${D}{outFile}.def"
38996arcFile="${D}{outimpFile}.a"
38997arcFile2="${D}{outimpFile}.lib"
38998dllFile="${D}outFile"
38999# Add suffix to dllFile later, first we need a version to use as
39000# name in .def file.
39001
2057db16
VS
39002if [] ${D}do_backup -ne 0 [] ; then
39003 if [] -f ${D}arcFile [] ; then
473276a9
VS
39004 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39005 fi
2057db16 39006 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39007 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39008 fi
39009fi
39010
39011# Extract public symbols from all the object files.
39012tmpdefFile=${D}{defFile}_%
39013rm -f ${D}tmpdefFile
39014for file in ${D}inputFiles ; do
39015 case ${D}file in
39016 *!)
39017 ;;
39018 *)
39019 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39020 ;;
39021 esac
39022done
39023
39024# Create the def file.
39025rm -f ${D}defFile
39026echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39027dllFile="${D}dllFile.dll"
2057db16 39028if [] -n ${D}description []; then
473276a9
VS
39029 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39030fi
39031echo "EXPORTS" >> ${D}defFile
39032
39033doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39034grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39035
39036# Checks if the export is ok or not.
39037for word in ${D}exclude_symbols; do
39038 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39039 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39040done
39041
39042
2057db16 39043if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39044 sed "=" < ${D}tmpdefFile | \
39045 sed '
39046 N
39047 : loop
2057db16 39048 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39049 t loop
39050 ' > ${D}{tmpdefFile}%
39051 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39052else
39053 rm -f ${D}{tmpdefFile}%
39054fi
39055cat ${D}tmpdefFile >> ${D}defFile
39056rm -f ${D}tmpdefFile
39057
39058# Do linking, create implib, and apply lxlite.
39059gccCmdl="";
39060for file in ${D}inputFiles ; do
39061 case ${D}file in
39062 *!)
39063 ;;
39064 *)
39065 gccCmdl="${D}gccCmdl ${D}file"
39066 ;;
39067 esac
39068done
39069doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39070touch "${D}{outFile}.dll"
39071
39072doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39073if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39074 add_flags="";
2057db16 39075 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39076 add_flags="-ynd"
39077 fi
39078 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39079fi
39080doCommand "emxomf -s -l ${D}arcFile"
39081
39082# Successful exit.
39083CleanUp 1
39084exit 0
39085EOF
39086
39087 chmod +x dllar.sh
a848cd7e
SC
39088 ;;
39089
39090 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39091 *-*-sunos4* | \
39092 *-*-osf* | \
39093 *-*-dgux5* | \
39094 *-*-sysv5* )
39095 ;;
39096
39097 *)
39098 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39099echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39100 { (exit 1); exit 1; }; }
39101 esac
39102
2057db16
VS
39103 if test "x$PIC_FLAG" != "x" ; then
39104 PIC_FLAG="$PIC_FLAG -DPIC"
39105 fi
39106
a848cd7e
SC
39107 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39108 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39109 fi
39110 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39111 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39112 fi
39113
39114
39115
39116
39117
39118
39119
39120
39121 USE_SOVERSION=0
39122 USE_SOVERLINUX=0
39123 USE_SOVERSOLARIS=0
39124 USE_SOSYMLINKS=0
39125 USE_MACVERSION=0
39126 SONAME_FLAG=
39127
39128 case "${BAKEFILE_HOST}" in
39129 *-*-linux* )
39130 SONAME_FLAG="-Wl,-soname,"
39131 USE_SOVERSION=1
39132 USE_SOVERLINUX=1
39133 USE_SOSYMLINKS=1
39134 ;;
39135
39136 *-*-solaris2* )
39137 SONAME_FLAG="-h "
39138 USE_SOVERSION=1
39139 USE_SOVERSOLARIS=1
39140 USE_SOSYMLINKS=1
39141 ;;
39142
39143 *-*-darwin* )
39144 USE_MACVERSION=1
39145 USE_SOVERSION=1
39146 USE_SOSYMLINKS=1
39147 ;;
39148 esac
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39159echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39160 DEPS_TRACKING=0
39161
39162 if test "x$GCC" = "xyes"; then
39163 DEPSMODE=gcc
39164 DEPS_TRACKING=1
39165 case "${BAKEFILE_HOST}" in
39166 powerpc-*-darwin* )
39167 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39168 ;;
39169 * )
39170 DEPSFLAG_GCC="-MMD"
39171 ;;
39172 esac
39173 echo "$as_me:$LINENO: result: gcc" >&5
39174echo "${ECHO_T}gcc" >&6
39175 else
39176 echo "$as_me:$LINENO: result: none" >&5
39177echo "${ECHO_T}none" >&6
39178 fi
39179
39180 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39181
39182D='$'
39183cat <<EOF >bk-deps
a848cd7e
SC
39184#!/bin/sh
39185
39186# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39187# script. It is used to track C/C++ files dependencies in portable way.
39188#
39189# Permission is given to use this file in any way.
39190
473276a9 39191DEPSMODE=${DEPSMODE}
a848cd7e 39192DEPSDIR=.deps
473276a9 39193DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39194
473276a9 39195mkdir -p ${D}DEPSDIR
a848cd7e 39196
473276a9
VS
39197if test ${D}DEPSMODE = gcc ; then
39198 ${D}* ${D}{DEPSFLAG_GCC}
39199 status=${D}?
39200 if test ${D}{status} != 0 ; then
39201 exit ${D}{status}
a848cd7e
SC
39202 fi
39203 # move created file to the location we want it in:
473276a9
VS
39204 while test ${D}# -gt 0; do
39205 case "${D}1" in
a848cd7e
SC
39206 -o )
39207 shift
473276a9 39208 objfile=${D}1
a848cd7e
SC
39209 ;;
39210 -* )
39211 ;;
39212 * )
473276a9 39213 srcfile=${D}1
a848cd7e
SC
39214 ;;
39215 esac
39216 shift
39217 done
473276a9
VS
39218 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39219 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39220 if test -f ${D}depfile ; then
39221 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39222 rm -f ${D}depfile
a848cd7e 39223 else
473276a9
VS
39224 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39225 if test -f ${D}depfile ; then
39226 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39227 rm -f ${D}depfile
a848cd7e
SC
39228 fi
39229 fi
39230 exit 0
39231else
473276a9
VS
39232 ${D}*
39233 exit ${D}?
a848cd7e
SC
39234fi
39235EOF
473276a9 39236
a848cd7e
SC
39237 chmod +x bk-deps
39238 fi
39239
39240
39241
39242
39243 RESCOMP=
39244 SETFILE=
39245
39246 case ${BAKEFILE_HOST} in
39247 *-*-cygwin* | *-*-mingw32* )
39248 if test "$build" != "$host" ; then
39249 RESCOMP=$host_alias-windres
39250 else
39251 # Extract the first word of "windres", so it can be a program name with args.
39252set dummy windres; ac_word=$2
39253echo "$as_me:$LINENO: checking for $ac_word" >&5
39254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39255if test "${ac_cv_prog_RESCOMP+set}" = set; then
39256 echo $ECHO_N "(cached) $ECHO_C" >&6
39257else
39258 if test -n "$RESCOMP"; then
39259 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39260else
39261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39262for as_dir in $PATH
39263do
39264 IFS=$as_save_IFS
39265 test -z "$as_dir" && as_dir=.
39266 for ac_exec_ext in '' $ac_executable_extensions; do
39267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39268 ac_cv_prog_RESCOMP="windres"
39269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39270 break 2
39271 fi
39272done
39273done
39274
39275 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39276fi
39277fi
39278RESCOMP=$ac_cv_prog_RESCOMP
39279if test -n "$RESCOMP"; then
39280 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39281echo "${ECHO_T}$RESCOMP" >&6
39282else
39283 echo "$as_me:$LINENO: result: no" >&5
39284echo "${ECHO_T}no" >&6
39285fi
39286
39287 fi
39288 ;;
39289
39290 *-*-darwin* )
39291 # Extract the first word of "Rez", so it can be a program name with args.
39292set dummy Rez; ac_word=$2
39293echo "$as_me:$LINENO: checking for $ac_word" >&5
39294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39295if test "${ac_cv_prog_RESCOMP+set}" = set; then
39296 echo $ECHO_N "(cached) $ECHO_C" >&6
39297else
39298 if test -n "$RESCOMP"; then
39299 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39300else
39301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39302for as_dir in $PATH
39303do
39304 IFS=$as_save_IFS
39305 test -z "$as_dir" && as_dir=.
39306 for ac_exec_ext in '' $ac_executable_extensions; do
39307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39308 ac_cv_prog_RESCOMP="Rez"
39309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39310 break 2
39311 fi
39312done
39313done
39314
39315 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39316fi
39317fi
39318RESCOMP=$ac_cv_prog_RESCOMP
39319if test -n "$RESCOMP"; then
39320 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39321echo "${ECHO_T}$RESCOMP" >&6
39322else
39323 echo "$as_me:$LINENO: result: no" >&5
39324echo "${ECHO_T}no" >&6
39325fi
39326
39327 # Extract the first word of "SetFile", so it can be a program name with args.
39328set dummy SetFile; ac_word=$2
39329echo "$as_me:$LINENO: checking for $ac_word" >&5
39330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39331if test "${ac_cv_prog_SETFILE+set}" = set; then
39332 echo $ECHO_N "(cached) $ECHO_C" >&6
39333else
39334 if test -n "$SETFILE"; then
39335 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39336else
39337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39338for as_dir in $PATH
39339do
39340 IFS=$as_save_IFS
39341 test -z "$as_dir" && as_dir=.
39342 for ac_exec_ext in '' $ac_executable_extensions; do
39343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39344 ac_cv_prog_SETFILE="SetFile"
39345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39346 break 2
39347 fi
39348done
39349done
39350
39351 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39352fi
39353fi
39354SETFILE=$ac_cv_prog_SETFILE
39355if test -n "$SETFILE"; then
39356 echo "$as_me:$LINENO: result: $SETFILE" >&5
39357echo "${ECHO_T}$SETFILE" >&6
39358else
39359 echo "$as_me:$LINENO: result: no" >&5
39360echo "${ECHO_T}no" >&6
39361fi
39362
39363 ;;
39364 esac
39365
39366
39367
39368
39369
2057db16 39370 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39371
dcc1b6ad 39372
a0f9686d
VS
39373
39374
39375
9f45f08e 39376BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39377
646b6ec1 39378
74b84332 39379
a848cd7e
SC
39380 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39381if test "${enable_precomp_headers+set}" = set; then
39382 enableval="$enable_precomp_headers"
39383 bk_use_pch="$enableval"
39384fi;
39385
39386 GCC_PCH=0
39387
39388 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39389 if test "x$GCC" = "xyes"; then
39390 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39391echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39392 cat >conftest.$ac_ext <<_ACEOF
39393/* confdefs.h. */
39394_ACEOF
39395cat confdefs.h >>conftest.$ac_ext
39396cat >>conftest.$ac_ext <<_ACEOF
39397/* end confdefs.h. */
39398
39399int
39400main ()
39401{
39402
39403 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39404 #error "no pch support"
39405 #endif
39406 #if (__GNUC__ < 3)
39407 #error "no pch support"
39408 #endif
39409 #if (__GNUC__ == 3) && \
39410 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39411 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39412 #error "no pch support"
39413 #endif
39414
39415 ;
39416 return 0;
39417}
39418_ACEOF
39419rm -f conftest.$ac_objext
39420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39421 (eval $ac_compile) 2>conftest.er1
a848cd7e 39422 ac_status=$?
ac1cb8d3
VS
39423 grep -v '^ *+' conftest.er1 >conftest.err
39424 rm -f conftest.er1
39425 cat conftest.err >&5
a848cd7e
SC
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); } &&
4d4ff94c 39428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39430 (eval $ac_try) 2>&5
39431 ac_status=$?
39432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433 (exit $ac_status); }; } &&
39434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39436 (eval $ac_try) 2>&5
39437 ac_status=$?
39438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); }; }; then
39440
39441 echo "$as_me:$LINENO: result: yes" >&5
39442echo "${ECHO_T}yes" >&6
a848cd7e
SC
39443 GCC_PCH=1
39444
39445else
39446 echo "$as_me: failed program was:" >&5
39447sed 's/^/| /' conftest.$ac_ext >&5
39448
39449
39450 echo "$as_me:$LINENO: result: no" >&5
39451echo "${ECHO_T}no" >&6
39452
39453fi
ac1cb8d3 39454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39455 if test $GCC_PCH = 1 ; then
39456 cat <<EOF >bk-make-pch
39457#!/bin/sh
39458
39459# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39460# script. It is used to generated precompiled headers.
39461#
39462# Permission is given to use this file in any way.
39463
39464outfile="\${1}"
39465header="\${2}"
39466shift
39467shift
39468
39469compiler=
39470headerfile=
39471while test \${#} -gt 0; do
39472 case "\${1}" in
39473 -I* )
39474 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39475 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39476 headerfile="\${incdir}/\${header}"
39477 fi
39478 ;;
39479 esac
39480 compiler="\${compiler} \${1}"
39481 shift
39482done
39483
39484if test "x\${headerfile}" = "x" ; then
39485 echo "error: can't find header \${header} in include paths" >2
39486else
39487 if test -f \${outfile} ; then
39488 rm -f \${outfile}
39489 else
39490 mkdir -p \`dirname \${outfile}\`
39491 fi
39492 depsfile=".deps/\`basename \${outfile}\`.d"
39493 mkdir -p .deps
39494 # can do this because gcc is >= 3.4:
39495 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39496 exit \${?}
39497fi
39498EOF
39499 chmod +x bk-make-pch
39500 fi
39501 fi
39502 fi
39503
39504
39505
39506
39507
dcc1b6ad
VS
39508
39509
39510 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39511if test "${enable_precomp_headers+set}" = set; then
39512 enableval="$enable_precomp_headers"
39513 bk_use_pch="$enableval"
39514fi;
39515
39516 GCC_PCH=0
39517
39518 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39519 if test "x$GCC" = "xyes"; then
39520 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39521echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39522 cat >conftest.$ac_ext <<_ACEOF
39523/* confdefs.h. */
39524_ACEOF
39525cat confdefs.h >>conftest.$ac_ext
39526cat >>conftest.$ac_ext <<_ACEOF
39527/* end confdefs.h. */
39528
39529int
39530main ()
39531{
39532
39533 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39534 #error "no pch support"
39535 #endif
39536 #if (__GNUC__ < 3)
39537 #error "no pch support"
39538 #endif
39539 #if (__GNUC__ == 3) && \
39540 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39541 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39542 #error "no pch support"
39543 #endif
39544
39545 ;
39546 return 0;
39547}
39548_ACEOF
39549rm -f conftest.$ac_objext
39550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39551 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39552 ac_status=$?
ac1cb8d3
VS
39553 grep -v '^ *+' conftest.er1 >conftest.err
39554 rm -f conftest.er1
39555 cat conftest.err >&5
dcc1b6ad
VS
39556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557 (exit $ac_status); } &&
4d4ff94c 39558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39560 (eval $ac_try) 2>&5
39561 ac_status=$?
39562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39563 (exit $ac_status); }; } &&
39564 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39566 (eval $ac_try) 2>&5
39567 ac_status=$?
39568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39569 (exit $ac_status); }; }; then
39570
39571 echo "$as_me:$LINENO: result: yes" >&5
39572echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39573 GCC_PCH=1
39574
39575else
39576 echo "$as_me: failed program was:" >&5
39577sed 's/^/| /' conftest.$ac_ext >&5
39578
39579
39580 echo "$as_me:$LINENO: result: no" >&5
39581echo "${ECHO_T}no" >&6
39582
39583fi
ac1cb8d3 39584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39585 if test $GCC_PCH = 1 ; then
39586 cat <<EOF >bk-make-pch
39587#!/bin/sh
39588
39589# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39590# script. It is used to generated precompiled headers.
39591#
39592# Permission is given to use this file in any way.
39593
39594outfile="\${1}"
39595header="\${2}"
39596shift
39597shift
39598
39599compiler=
39600headerfile=
39601while test \${#} -gt 0; do
39602 case "\${1}" in
39603 -I* )
39604 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39605 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39606 headerfile="\${incdir}/\${header}"
39607 fi
39608 ;;
39609 esac
39610 compiler="\${compiler} \${1}"
39611 shift
39612done
39613
39614if test "x\${headerfile}" = "x" ; then
39615 echo "error: can't find header \${header} in include paths" >2
39616else
39617 if test -f \${outfile} ; then
39618 rm -f \${outfile}
39619 else
39620 mkdir -p \`dirname \${outfile}\`
39621 fi
39622 depsfile=".deps/\`basename \${outfile}\`.d"
39623 mkdir -p .deps
39624 # can do this because gcc is >= 3.4:
39625 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39626 exit \${?}
39627fi
39628EOF
39629 chmod +x bk-make-pch
39630 fi
39631 fi
39632 fi
39633
39634
39635
4d4ff94c 39636
a848cd7e
SC
39637 COND_BUILD_DEBUG="#"
39638 if test "x$BUILD" = "xdebug" ; then
39639 COND_BUILD_DEBUG=""
39640 fi
39641
39642 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39643 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39644 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39645 fi
39646
39647 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39648 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39649 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39650 fi
39651
39652 COND_BUILD_DEBUG_UNICODE_0="#"
39653 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39654 COND_BUILD_DEBUG_UNICODE_0=""
39655 fi
39656
39657 COND_BUILD_DEBUG_UNICODE_1="#"
39658 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39659 COND_BUILD_DEBUG_UNICODE_1=""
39660 fi
39661
39662 COND_BUILD_RELEASE="#"
39663 if test "x$BUILD" = "xrelease" ; then
39664 COND_BUILD_RELEASE=""
39665 fi
39666
39667 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39668 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39669 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39670 fi
39671
39672 COND_BUILD_RELEASE_UNICODE_0="#"
39673 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39674 COND_BUILD_RELEASE_UNICODE_0=""
39675 fi
39676
39677 COND_BUILD_RELEASE_UNICODE_1="#"
39678 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39679 COND_BUILD_RELEASE_UNICODE_1=""
39680 fi
39681
39682 COND_DEBUG_FLAG_1="#"
39683 if test "x$DEBUG_FLAG" = "x1" ; then
39684 COND_DEBUG_FLAG_1=""
39685 fi
39686
39687 COND_DEBUG_INFO_0="#"
39688 if test "x$DEBUG_INFO" = "x0" ; then
39689 COND_DEBUG_INFO_0=""
39690 fi
39691
39692 COND_DEBUG_INFO_1="#"
39693 if test "x$DEBUG_INFO" = "x1" ; then
39694 COND_DEBUG_INFO_1=""
39695 fi
39696
39697 COND_DEPS_TRACKING_0="#"
39698 if test "x$DEPS_TRACKING" = "x0" ; then
39699 COND_DEPS_TRACKING_0=""
39700 fi
39701
39702 COND_DEPS_TRACKING_1="#"
39703 if test "x$DEPS_TRACKING" = "x1" ; then
39704 COND_DEPS_TRACKING_1=""
39705 fi
39706
39707 COND_GCC_PCH_1="#"
39708 if test "x$GCC_PCH" = "x1" ; then
39709 COND_GCC_PCH_1=""
39710 fi
39711
39712 COND_MONOLITHIC_0="#"
39713 if test "x$MONOLITHIC" = "x0" ; then
39714 COND_MONOLITHIC_0=""
39715 fi
39716
39717 COND_MONOLITHIC_0_SHARED_0="#"
39718 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39719 COND_MONOLITHIC_0_SHARED_0=""
39720 fi
39721
39722 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39723 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39724 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39725 fi
39726
39727 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39728 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39729 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39730 fi
39731
39732 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39733 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39734 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39735 fi
39736
39737 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39738 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39739 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39740 fi
39741
39742 COND_MONOLITHIC_0_SHARED_1="#"
39743 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39744 COND_MONOLITHIC_0_SHARED_1=""
39745 fi
39746
39747 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39748 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39749 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39750 fi
39751
39752 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39753 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39754 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39755 fi
39756
39757 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39758 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39759 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39760 fi
39761
39762 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39763 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39764 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39765 fi
39766
39767 COND_MONOLITHIC_0_USE_ODBC_1="#"
39768 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39769 COND_MONOLITHIC_0_USE_ODBC_1=""
39770 fi
39771
39772 COND_MONOLITHIC_1="#"
39773 if test "x$MONOLITHIC" = "x1" ; then
39774 COND_MONOLITHIC_1=""
39775 fi
39776
39777 COND_MONOLITHIC_1_SHARED_0="#"
39778 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39779 COND_MONOLITHIC_1_SHARED_0=""
39780 fi
39781
39782 COND_MONOLITHIC_1_SHARED_1="#"
39783 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39784 COND_MONOLITHIC_1_SHARED_1=""
39785 fi
39786
39787 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39788 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39789 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39790 fi
39791
39792 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39793 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39794 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39795 fi
39796
39797 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39798 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39799 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39800 fi
39801
39802 COND_PLATFORM_MACOSX_1="#"
39803 if test "x$PLATFORM_MACOSX" = "x1" ; then
39804 COND_PLATFORM_MACOSX_1=""
39805 fi
39806
39807 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39808 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39809 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39810 fi
39811
39812 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39813 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39814 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39815 fi
39816
39817 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39818 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39819 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39820 fi
39821
ebee3cd0
VS
39822 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
39823 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
39824 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
39825 fi
39826
39827 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
39828 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
39829 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
39830 fi
39831
a848cd7e
SC
39832 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39833 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39834 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39835 fi
39836
39837 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39838 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39839 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39840 fi
39841
39842 COND_PLATFORM_MAC_1="#"
39843 if test "x$PLATFORM_MAC" = "x1" ; then
39844 COND_PLATFORM_MAC_1=""
39845 fi
39846
39847 COND_PLATFORM_OS2_1="#"
39848 if test "x$PLATFORM_OS2" = "x1" ; then
39849 COND_PLATFORM_OS2_1=""
39850 fi
39851
39852 COND_PLATFORM_UNIX_0="#"
39853 if test "x$PLATFORM_UNIX" = "x0" ; then
39854 COND_PLATFORM_UNIX_0=""
39855 fi
39856
39857 COND_PLATFORM_UNIX_1="#"
39858 if test "x$PLATFORM_UNIX" = "x1" ; then
39859 COND_PLATFORM_UNIX_1=""
39860 fi
39861
39862 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39863 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39864 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39865 fi
39866
39867 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39868 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39869 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39870 fi
39871
39872 COND_PLATFORM_WIN32_0="#"
39873 if test "x$PLATFORM_WIN32" = "x0" ; then
39874 COND_PLATFORM_WIN32_0=""
39875 fi
39876
39877 COND_PLATFORM_WIN32_1="#"
39878 if test "x$PLATFORM_WIN32" = "x1" ; then
39879 COND_PLATFORM_WIN32_1=""
39880 fi
39881
39882 COND_SHARED_0="#"
39883 if test "x$SHARED" = "x0" ; then
39884 COND_SHARED_0=""
39885 fi
39886
39887 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39888 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39889 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39890 fi
39891
39892 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39893 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39894 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39895 fi
39896
39897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39898 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39899 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39900 fi
39901
39902 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39903 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39904 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39905 fi
39906
39907 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39908 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39909 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39910 fi
39911
39912 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39913 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39914 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39915 fi
39916
39917 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39918 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39919 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39920 fi
39921
39922 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39923 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39924 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39925 fi
39926
39927 COND_SHARED_1="#"
39928 if test "x$SHARED" = "x1" ; then
39929 COND_SHARED_1=""
39930 fi
39931
39932 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39933 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39934 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39935 fi
39936
39937 COND_TOOLKIT_COCOA="#"
39938 if test "x$TOOLKIT" = "xCOCOA" ; then
39939 COND_TOOLKIT_COCOA=""
39940 fi
39941
39942 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39943 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39944 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39945 fi
39946
39947 COND_TOOLKIT_GTK="#"
39948 if test "x$TOOLKIT" = "xGTK" ; then
39949 COND_TOOLKIT_GTK=""
39950 fi
39951
39952 COND_TOOLKIT_GTK_USE_GUI_1="#"
39953 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39954 COND_TOOLKIT_GTK_USE_GUI_1=""
39955 fi
39956
39957 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39958 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39959 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39960 fi
39961
39962 COND_TOOLKIT_MAC="#"
39963 if test "x$TOOLKIT" = "xMAC" ; then
39964 COND_TOOLKIT_MAC=""
39965 fi
39966
39967 COND_TOOLKIT_MAC_USE_GUI_1="#"
39968 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39969 COND_TOOLKIT_MAC_USE_GUI_1=""
39970 fi
39971
39972 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39973 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39974 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39975 fi
39976
4d4ff94c
VZ
39977 COND_TOOLKIT_MAC_WXUNIV_0="#"
39978 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
39979 COND_TOOLKIT_MAC_WXUNIV_0=""
39980 fi
39981
a848cd7e
SC
39982 COND_TOOLKIT_MGL="#"
39983 if test "x$TOOLKIT" = "xMGL" ; then
39984 COND_TOOLKIT_MGL=""
39985 fi
39986
39987 COND_TOOLKIT_MGL_USE_GUI_1="#"
39988 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39989 COND_TOOLKIT_MGL_USE_GUI_1=""
39990 fi
39991
39992 COND_TOOLKIT_MOTIF="#"
39993 if test "x$TOOLKIT" = "xMOTIF" ; then
39994 COND_TOOLKIT_MOTIF=""
39995 fi
39996
39997 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39998 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39999 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40000 fi
40001
40002 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40003 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40004 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40005 fi
40006
40007 COND_TOOLKIT_MSW="#"
40008 if test "x$TOOLKIT" = "xMSW" ; then
40009 COND_TOOLKIT_MSW=""
40010 fi
40011
40012 COND_TOOLKIT_MSW_USE_GUI_1="#"
40013 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40014 COND_TOOLKIT_MSW_USE_GUI_1=""
40015 fi
40016
40017 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40018 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40019 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40020 fi
40021
4d4ff94c
VZ
40022 COND_TOOLKIT_MSW_WXUNIV_0="#"
40023 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40024 COND_TOOLKIT_MSW_WXUNIV_0=""
40025 fi
40026
a848cd7e
SC
40027 COND_TOOLKIT_PM="#"
40028 if test "x$TOOLKIT" = "xPM" ; then
40029 COND_TOOLKIT_PM=""
40030 fi
40031
40032 COND_TOOLKIT_PM_USE_GUI_1="#"
40033 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40034 COND_TOOLKIT_PM_USE_GUI_1=""
40035 fi
40036
40037 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40038 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40039 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40040 fi
40041
4d4ff94c
VZ
40042 COND_TOOLKIT_PM_WXUNIV_0="#"
40043 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40044 COND_TOOLKIT_PM_WXUNIV_0=""
40045 fi
40046
3fd9c298
DE
40047 COND_TOOLKIT_WINCE="#"
40048 if test "x$TOOLKIT" = "xWINCE" ; then
40049 COND_TOOLKIT_WINCE=""
40050 fi
40051
40052 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40053 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40054 COND_TOOLKIT_WINCE_USE_GUI_1=""
40055 fi
40056
40057 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40058 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40059 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40060 fi
40061
a848cd7e
SC
40062 COND_TOOLKIT_X11="#"
40063 if test "x$TOOLKIT" = "xX11" ; then
40064 COND_TOOLKIT_X11=""
40065 fi
40066
40067 COND_TOOLKIT_X11_USE_GUI_1="#"
40068 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40069 COND_TOOLKIT_X11_USE_GUI_1=""
40070 fi
40071
40072 COND_UNICODE_1="#"
40073 if test "x$UNICODE" = "x1" ; then
40074 COND_UNICODE_1=""
40075 fi
40076
40077 COND_USE_EXCEPTIONS_0="#"
40078 if test "x$USE_EXCEPTIONS" = "x0" ; then
40079 COND_USE_EXCEPTIONS_0=""
40080 fi
40081
40082 COND_USE_EXCEPTIONS_1="#"
40083 if test "x$USE_EXCEPTIONS" = "x1" ; then
40084 COND_USE_EXCEPTIONS_1=""
40085 fi
40086
40087 COND_USE_GUI_0="#"
40088 if test "x$USE_GUI" = "x0" ; then
40089 COND_USE_GUI_0=""
40090 fi
40091
40092 COND_USE_GUI_1="#"
40093 if test "x$USE_GUI" = "x1" ; then
40094 COND_USE_GUI_1=""
40095 fi
40096
40097 COND_USE_GUI_1_WXUNIV_0="#"
40098 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40099 COND_USE_GUI_1_WXUNIV_0=""
40100 fi
40101
40102 COND_USE_GUI_1_WXUNIV_1="#"
40103 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40104 COND_USE_GUI_1_WXUNIV_1=""
40105 fi
40106
40107 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40108 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40109 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40110 fi
40111
40112 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40113 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40114 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40115 fi
40116
40117 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40118 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40119 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40120 fi
40121
4d4ff94c
VZ
40122 COND_USE_ODBC_1="#"
40123 if test "x$USE_ODBC" = "x1" ; then
40124 COND_USE_ODBC_1=""
40125 fi
40126
a848cd7e
SC
40127 COND_USE_PLUGINS_0="#"
40128 if test "x$USE_PLUGINS" = "x0" ; then
40129 COND_USE_PLUGINS_0=""
40130 fi
40131
40132 COND_USE_SOSYMLINKS_1="#"
40133 if test "x$USE_SOSYMLINKS" = "x1" ; then
40134 COND_USE_SOSYMLINKS_1=""
40135 fi
40136
40137 COND_USE_SOVERLINUX_1="#"
40138 if test "x$USE_SOVERLINUX" = "x1" ; then
40139 COND_USE_SOVERLINUX_1=""
40140 fi
40141
40142 COND_USE_SOVERSION_0="#"
40143 if test "x$USE_SOVERSION" = "x0" ; then
40144 COND_USE_SOVERSION_0=""
40145 fi
40146
40147 COND_USE_SOVERSOLARIS_1="#"
40148 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40149 COND_USE_SOVERSOLARIS_1=""
40150 fi
40151
40152 COND_WITH_PLUGIN_SDL_1="#"
40153 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40154 COND_WITH_PLUGIN_SDL_1=""
40155 fi
40156
4d4ff94c
VZ
40157 COND_WITH_SDL_1="#"
40158 if test "x$WITH_SDL" = "x1" ; then
40159 COND_WITH_SDL_1=""
40160 fi
40161
a848cd7e
SC
40162 COND_WXUNIV_1="#"
40163 if test "x$WXUNIV" = "x1" ; then
40164 COND_WXUNIV_1=""
40165 fi
40166
40167 COND_WXUSE_EXPAT_BUILTIN="#"
40168 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40169 COND_WXUSE_EXPAT_BUILTIN=""
40170 fi
40171
40172 COND_WXUSE_LIBJPEG_BUILTIN="#"
40173 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40174 COND_WXUSE_LIBJPEG_BUILTIN=""
40175 fi
40176
40177 COND_WXUSE_LIBPNG_BUILTIN="#"
40178 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40179 COND_WXUSE_LIBPNG_BUILTIN=""
40180 fi
40181
40182 COND_WXUSE_LIBTIFF_BUILTIN="#"
40183 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40184 COND_WXUSE_LIBTIFF_BUILTIN=""
40185 fi
40186
40187 COND_WXUSE_ODBC_BUILTIN="#"
40188 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40189 COND_WXUSE_ODBC_BUILTIN=""
40190 fi
40191
40192 COND_WXUSE_REGEX_BUILTIN="#"
40193 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40194 COND_WXUSE_REGEX_BUILTIN=""
40195 fi
40196
40197 COND_WXUSE_ZLIB_BUILTIN="#"
40198 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40199 COND_WXUSE_ZLIB_BUILTIN=""
40200 fi
40201
dcc1b6ad
VS
40202 COND_BUILD_DEBUG="#"
40203 if test "x$BUILD" = "xdebug" ; then
40204 COND_BUILD_DEBUG=""
40205 fi
40206
40207 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40208 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40209 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40210 fi
40211
40212 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40213 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40214 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40215 fi
40216
40217 COND_BUILD_DEBUG_UNICODE_0="#"
40218 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40219 COND_BUILD_DEBUG_UNICODE_0=""
40220 fi
40221
40222 COND_BUILD_DEBUG_UNICODE_1="#"
40223 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40224 COND_BUILD_DEBUG_UNICODE_1=""
40225 fi
40226
40227 COND_BUILD_RELEASE="#"
40228 if test "x$BUILD" = "xrelease" ; then
40229 COND_BUILD_RELEASE=""
40230 fi
40231
40232 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40233 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40234 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40235 fi
40236
40237 COND_BUILD_RELEASE_UNICODE_0="#"
40238 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40239 COND_BUILD_RELEASE_UNICODE_0=""
40240 fi
40241
40242 COND_BUILD_RELEASE_UNICODE_1="#"
40243 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40244 COND_BUILD_RELEASE_UNICODE_1=""
40245 fi
40246
40247 COND_DEBUG_FLAG_1="#"
40248 if test "x$DEBUG_FLAG" = "x1" ; then
40249 COND_DEBUG_FLAG_1=""
40250 fi
40251
40252 COND_DEBUG_INFO_0="#"
40253 if test "x$DEBUG_INFO" = "x0" ; then
40254 COND_DEBUG_INFO_0=""
40255 fi
40256
40257 COND_DEBUG_INFO_1="#"
40258 if test "x$DEBUG_INFO" = "x1" ; then
40259 COND_DEBUG_INFO_1=""
40260 fi
40261
40262 COND_DEPS_TRACKING_0="#"
40263 if test "x$DEPS_TRACKING" = "x0" ; then
40264 COND_DEPS_TRACKING_0=""
40265 fi
40266
40267 COND_DEPS_TRACKING_1="#"
40268 if test "x$DEPS_TRACKING" = "x1" ; then
40269 COND_DEPS_TRACKING_1=""
40270 fi
40271
40272 COND_GCC_PCH_1="#"
40273 if test "x$GCC_PCH" = "x1" ; then
40274 COND_GCC_PCH_1=""
40275 fi
40276
40277 COND_MONOLITHIC_0="#"
40278 if test "x$MONOLITHIC" = "x0" ; then
40279 COND_MONOLITHIC_0=""
40280 fi
40281
40282 COND_MONOLITHIC_0_SHARED_0="#"
40283 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40284 COND_MONOLITHIC_0_SHARED_0=""
40285 fi
40286
40287 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40288 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40289 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40290 fi
40291
40292 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40293 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40294 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40295 fi
40296
40297 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40298 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40299 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40300 fi
40301
40302 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40303 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40304 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40305 fi
40306
40307 COND_MONOLITHIC_0_SHARED_1="#"
40308 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40309 COND_MONOLITHIC_0_SHARED_1=""
40310 fi
40311
40312 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40313 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40314 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40315 fi
40316
40317 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40318 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40319 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40320 fi
40321
40322 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40323 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40324 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40325 fi
40326
40327 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40328 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40329 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40330 fi
40331
40332 COND_MONOLITHIC_0_USE_ODBC_1="#"
40333 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40334 COND_MONOLITHIC_0_USE_ODBC_1=""
40335 fi
40336
40337 COND_MONOLITHIC_1="#"
40338 if test "x$MONOLITHIC" = "x1" ; then
40339 COND_MONOLITHIC_1=""
40340 fi
40341
40342 COND_MONOLITHIC_1_SHARED_0="#"
40343 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40344 COND_MONOLITHIC_1_SHARED_0=""
40345 fi
40346
40347 COND_MONOLITHIC_1_SHARED_1="#"
40348 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40349 COND_MONOLITHIC_1_SHARED_1=""
40350 fi
40351
40352 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40353 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40354 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40355 fi
40356
40357 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40358 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40359 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40360 fi
40361
40362 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40363 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40364 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40365 fi
40366
40367 COND_PLATFORM_MACOSX_1="#"
40368 if test "x$PLATFORM_MACOSX" = "x1" ; then
40369 COND_PLATFORM_MACOSX_1=""
40370 fi
40371
40372 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40373 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40374 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40375 fi
40376
40377 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40378 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40379 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40380 fi
40381
40382 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40383 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40384 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40385 fi
40386
40387 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40388 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40389 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40390 fi
40391
40392 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40393 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40394 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40395 fi
40396
40397 COND_PLATFORM_MAC_1="#"
40398 if test "x$PLATFORM_MAC" = "x1" ; then
40399 COND_PLATFORM_MAC_1=""
40400 fi
40401
40402 COND_PLATFORM_OS2_1="#"
40403 if test "x$PLATFORM_OS2" = "x1" ; then
40404 COND_PLATFORM_OS2_1=""
40405 fi
40406
40407 COND_PLATFORM_UNIX_0="#"
40408 if test "x$PLATFORM_UNIX" = "x0" ; then
40409 COND_PLATFORM_UNIX_0=""
40410 fi
40411
40412 COND_PLATFORM_UNIX_1="#"
40413 if test "x$PLATFORM_UNIX" = "x1" ; then
40414 COND_PLATFORM_UNIX_1=""
40415 fi
40416
40417 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40418 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40419 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40420 fi
40421
40422 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40423 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40424 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40425 fi
40426
40427 COND_PLATFORM_WIN32_0="#"
40428 if test "x$PLATFORM_WIN32" = "x0" ; then
40429 COND_PLATFORM_WIN32_0=""
40430 fi
40431
40432 COND_PLATFORM_WIN32_1="#"
40433 if test "x$PLATFORM_WIN32" = "x1" ; then
40434 COND_PLATFORM_WIN32_1=""
40435 fi
40436
40437 COND_SHARED_0="#"
40438 if test "x$SHARED" = "x0" ; then
40439 COND_SHARED_0=""
40440 fi
40441
40442 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40443 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40444 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40445 fi
40446
40447 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40448 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40449 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40450 fi
40451
40452 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40453 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40454 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40455 fi
40456
40457 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40458 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40459 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40460 fi
40461
40462 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40463 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40464 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40465 fi
40466
40467 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40468 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40469 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40470 fi
40471
40472 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40473 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40474 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40475 fi
40476
40477 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40478 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40479 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40480 fi
40481
40482 COND_SHARED_1="#"
40483 if test "x$SHARED" = "x1" ; then
40484 COND_SHARED_1=""
40485 fi
40486
40487 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40488 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40489 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40490 fi
40491
40492 COND_TOOLKIT_COCOA="#"
40493 if test "x$TOOLKIT" = "xCOCOA" ; then
40494 COND_TOOLKIT_COCOA=""
40495 fi
40496
40497 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40498 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40499 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40500 fi
40501
40502 COND_TOOLKIT_GTK="#"
40503 if test "x$TOOLKIT" = "xGTK" ; then
40504 COND_TOOLKIT_GTK=""
40505 fi
40506
40507 COND_TOOLKIT_GTK_USE_GUI_1="#"
40508 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40509 COND_TOOLKIT_GTK_USE_GUI_1=""
40510 fi
40511
40512 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40513 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40514 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40515 fi
40516
40517 COND_TOOLKIT_MAC="#"
40518 if test "x$TOOLKIT" = "xMAC" ; then
40519 COND_TOOLKIT_MAC=""
40520 fi
40521
40522 COND_TOOLKIT_MAC_USE_GUI_1="#"
40523 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40524 COND_TOOLKIT_MAC_USE_GUI_1=""
40525 fi
40526
40527 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40528 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40529 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40530 fi
40531
40532 COND_TOOLKIT_MGL="#"
40533 if test "x$TOOLKIT" = "xMGL" ; then
40534 COND_TOOLKIT_MGL=""
40535 fi
40536
40537 COND_TOOLKIT_MGL_USE_GUI_1="#"
40538 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40539 COND_TOOLKIT_MGL_USE_GUI_1=""
40540 fi
40541
40542 COND_TOOLKIT_MOTIF="#"
40543 if test "x$TOOLKIT" = "xMOTIF" ; then
40544 COND_TOOLKIT_MOTIF=""
40545 fi
40546
40547 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40548 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40549 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40550 fi
40551
40552 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40553 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40554 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40555 fi
40556
40557 COND_TOOLKIT_MSW="#"
40558 if test "x$TOOLKIT" = "xMSW" ; then
40559 COND_TOOLKIT_MSW=""
40560 fi
40561
40562 COND_TOOLKIT_MSW_USE_GUI_1="#"
40563 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40564 COND_TOOLKIT_MSW_USE_GUI_1=""
40565 fi
40566
40567 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40568 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40569 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40570 fi
40571
40572 COND_TOOLKIT_PM="#"
40573 if test "x$TOOLKIT" = "xPM" ; then
40574 COND_TOOLKIT_PM=""
40575 fi
40576
40577 COND_TOOLKIT_PM_USE_GUI_1="#"
40578 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40579 COND_TOOLKIT_PM_USE_GUI_1=""
40580 fi
40581
40582 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40583 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40584 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40585 fi
40586
40587 COND_TOOLKIT_WINCE="#"
40588 if test "x$TOOLKIT" = "xWINCE" ; then
40589 COND_TOOLKIT_WINCE=""
40590 fi
40591
40592 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40593 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40594 COND_TOOLKIT_WINCE_USE_GUI_1=""
40595 fi
40596
40597 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40598 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40599 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40600 fi
40601
40602 COND_TOOLKIT_X11="#"
40603 if test "x$TOOLKIT" = "xX11" ; then
40604 COND_TOOLKIT_X11=""
40605 fi
40606
40607 COND_TOOLKIT_X11_USE_GUI_1="#"
40608 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40609 COND_TOOLKIT_X11_USE_GUI_1=""
40610 fi
40611
40612 COND_UNICODE_1="#"
40613 if test "x$UNICODE" = "x1" ; then
40614 COND_UNICODE_1=""
40615 fi
40616
40617 COND_USE_EXCEPTIONS_0="#"
40618 if test "x$USE_EXCEPTIONS" = "x0" ; then
40619 COND_USE_EXCEPTIONS_0=""
40620 fi
40621
40622 COND_USE_EXCEPTIONS_1="#"
40623 if test "x$USE_EXCEPTIONS" = "x1" ; then
40624 COND_USE_EXCEPTIONS_1=""
40625 fi
40626
40627 COND_USE_GUI_0="#"
40628 if test "x$USE_GUI" = "x0" ; then
40629 COND_USE_GUI_0=""
40630 fi
40631
40632 COND_USE_GUI_1="#"
40633 if test "x$USE_GUI" = "x1" ; then
40634 COND_USE_GUI_1=""
40635 fi
40636
40637 COND_USE_GUI_1_WXUNIV_0="#"
40638 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40639 COND_USE_GUI_1_WXUNIV_0=""
40640 fi
40641
40642 COND_USE_GUI_1_WXUNIV_1="#"
40643 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40644 COND_USE_GUI_1_WXUNIV_1=""
40645 fi
40646
40647 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40648 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40649 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40650 fi
40651
40652 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40653 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40654 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40655 fi
40656
40657 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40658 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40659 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40660 fi
40661
40662 COND_USE_ODBC_1="#"
40663 if test "x$USE_ODBC" = "x1" ; then
40664 COND_USE_ODBC_1=""
40665 fi
40666
40667 COND_USE_PLUGINS_0="#"
40668 if test "x$USE_PLUGINS" = "x0" ; then
40669 COND_USE_PLUGINS_0=""
40670 fi
40671
40672 COND_USE_SOSYMLINKS_1="#"
40673 if test "x$USE_SOSYMLINKS" = "x1" ; then
40674 COND_USE_SOSYMLINKS_1=""
40675 fi
40676
40677 COND_USE_SOVERLINUX_1="#"
40678 if test "x$USE_SOVERLINUX" = "x1" ; then
40679 COND_USE_SOVERLINUX_1=""
40680 fi
40681
40682 COND_USE_SOVERSION_0="#"
40683 if test "x$USE_SOVERSION" = "x0" ; then
40684 COND_USE_SOVERSION_0=""
40685 fi
40686
40687 COND_USE_SOVERSOLARIS_1="#"
40688 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40689 COND_USE_SOVERSOLARIS_1=""
40690 fi
40691
40692 COND_WITH_PLUGIN_SDL_1="#"
40693 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40694 COND_WITH_PLUGIN_SDL_1=""
40695 fi
40696
40697 COND_WXUNIV_1="#"
40698 if test "x$WXUNIV" = "x1" ; then
40699 COND_WXUNIV_1=""
40700 fi
40701
40702 COND_WXUSE_EXPAT_BUILTIN="#"
40703 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40704 COND_WXUSE_EXPAT_BUILTIN=""
40705 fi
40706
40707 COND_WXUSE_LIBJPEG_BUILTIN="#"
40708 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40709 COND_WXUSE_LIBJPEG_BUILTIN=""
40710 fi
40711
40712 COND_WXUSE_LIBPNG_BUILTIN="#"
40713 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40714 COND_WXUSE_LIBPNG_BUILTIN=""
40715 fi
40716
40717 COND_WXUSE_LIBTIFF_BUILTIN="#"
40718 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40719 COND_WXUSE_LIBTIFF_BUILTIN=""
40720 fi
40721
40722 COND_WXUSE_ODBC_BUILTIN="#"
40723 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40724 COND_WXUSE_ODBC_BUILTIN=""
40725 fi
40726
40727 COND_WXUSE_REGEX_BUILTIN="#"
40728 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40729 COND_WXUSE_REGEX_BUILTIN=""
40730 fi
40731
40732 COND_WXUSE_ZLIB_BUILTIN="#"
40733 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40734 COND_WXUSE_ZLIB_BUILTIN=""
40735 fi
40736
a848cd7e
SC
40737
40738
2057db16
VS
40739 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40740 { { 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
40741echo "$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;}
40742 { (exit 1); exit 1; }; }
40743 fi
40744
a848cd7e
SC
40745
40746
74b84332 40747GCC_PRAGMA_FLAGS=""
a848cd7e 40748if test $GCC_PCH = 1 ; then
74b84332 40749 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40750else
40751 case "${host}" in
40752 powerpc-*-darwin* )
74b84332 40753 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40754 ;;
bea8e651 40755 *-*-mingw32* )
1f344abf
VS
40756 if test "$wxUSE_STL" = "yes" -o \
40757 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40758 "$wxUSE_NO_RTTI" != "yes"; then
40759 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40760echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40761 cat >conftest.$ac_ext <<_ACEOF
40762/* confdefs.h. */
40763_ACEOF
40764cat confdefs.h >>conftest.$ac_ext
40765cat >>conftest.$ac_ext <<_ACEOF
40766/* end confdefs.h. */
40767
40768int
40769main ()
40770{
1f344abf 40771#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40772 #error "Not GCC 3.2 or greater"
40773 #endif
40774
40775 ;
40776 return 0;
40777}
40778_ACEOF
40779rm -f conftest.$ac_objext
40780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40781 (eval $ac_compile) 2>conftest.er1
bea8e651 40782 ac_status=$?
ac1cb8d3
VS
40783 grep -v '^ *+' conftest.er1 >conftest.err
40784 rm -f conftest.er1
40785 cat conftest.err >&5
bea8e651
MB
40786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40787 (exit $ac_status); } &&
4d4ff94c 40788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40790 (eval $ac_try) 2>&5
40791 ac_status=$?
40792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40793 (exit $ac_status); }; } &&
40794 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40796 (eval $ac_try) 2>&5
40797 ac_status=$?
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); }; }; then
74b84332 40800 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40801 echo "$as_me:$LINENO: result: yes" >&5
40802echo "${ECHO_T}yes" >&6
40803else
40804 echo "$as_me: failed program was:" >&5
40805sed 's/^/| /' conftest.$ac_ext >&5
40806
40807echo "$as_me:$LINENO: result: no" >&5
40808echo "${ECHO_T}no" >&6
40809fi
ac1cb8d3 40810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40811 fi
40812 ;;
a848cd7e
SC
40813 esac
40814fi
74b84332 40815CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40816
40817
40818SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
74b84332 40917
a848cd7e
SC
40918
40919
40920echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40921echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40922set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40923if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40924 echo $ECHO_N "(cached) $ECHO_C" >&6
40925else
40926 cat >conftest.make <<\_ACEOF
40927all:
40928 @echo 'ac_maketemp="$(MAKE)"'
40929_ACEOF
40930# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40931eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40932if test -n "$ac_maketemp"; then
40933 eval ac_cv_prog_make_${ac_make}_set=yes
40934else
40935 eval ac_cv_prog_make_${ac_make}_set=no
40936fi
40937rm -f conftest.make
40938fi
40939if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40940 echo "$as_me:$LINENO: result: yes" >&5
40941echo "${ECHO_T}yes" >&6
40942 SET_MAKE=
40943else
40944 echo "$as_me:$LINENO: result: no" >&5
40945echo "${ECHO_T}no" >&6
40946 SET_MAKE="MAKE=${MAKE-make}"
40947fi
40948
40949
40950if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
40951 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
40952fi
40953
40954 ac_config_headers="$ac_config_headers setup.h"
40955
40956
8708fa76 40957 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
40958
40959
40960 ac_config_commands="$ac_config_commands default"
40961
40962
40963
40964if test "$wxUSE_GUI" = "yes"; then
40965 SUBDIRS="samples demos utils contrib"
40966else SUBDIRS="samples utils"
40967fi
40968
40969
40970
40971# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40972if test "${with_cppunit_prefix+set}" = set; then
40973 withval="$with_cppunit_prefix"
40974 cppunit_config_prefix="$withval"
40975else
40976 cppunit_config_prefix=""
40977fi;
40978
40979# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40980if test "${with_cppunit_exec_prefix+set}" = set; then
40981 withval="$with_cppunit_exec_prefix"
40982 cppunit_config_exec_prefix="$withval"
40983else
40984 cppunit_config_exec_prefix=""
40985fi;
40986
40987 if test x$cppunit_config_exec_prefix != x ; then
40988 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40989 if test x${CPPUNIT_CONFIG+set} != xset ; then
40990 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40991 fi
40992 fi
40993 if test x$cppunit_config_prefix != x ; then
40994 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40995 if test x${CPPUNIT_CONFIG+set} != xset ; then
40996 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40997 fi
40998 fi
40999
41000 # Extract the first word of "cppunit-config", so it can be a program name with args.
41001set dummy cppunit-config; ac_word=$2
41002echo "$as_me:$LINENO: checking for $ac_word" >&5
41003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41004if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41005 echo $ECHO_N "(cached) $ECHO_C" >&6
41006else
41007 case $CPPUNIT_CONFIG in
41008 [\\/]* | ?:[\\/]*)
41009 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41010 ;;
41011 *)
41012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41013for as_dir in $PATH
41014do
41015 IFS=$as_save_IFS
41016 test -z "$as_dir" && as_dir=.
41017 for ac_exec_ext in '' $ac_executable_extensions; do
41018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41019 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41021 break 2
41022 fi
41023done
41024done
41025
41026 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41027 ;;
41028esac
41029fi
41030CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41031
41032if test -n "$CPPUNIT_CONFIG"; then
41033 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41034echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41035else
41036 echo "$as_me:$LINENO: result: no" >&5
41037echo "${ECHO_T}no" >&6
41038fi
41039
41040 cppunit_version_min=1.8.0
41041
41042 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41043echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41044 no_cppunit=""
41045 if test "$CPPUNIT_CONFIG" = "no" ; then
41046 no_cppunit=yes
41047 else
41048 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41049 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41050 cppunit_version=`$CPPUNIT_CONFIG --version`
41051
41052 cppunit_major_version=`echo $cppunit_version | \
41053 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41054 cppunit_minor_version=`echo $cppunit_version | \
41055 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41056 cppunit_micro_version=`echo $cppunit_version | \
41057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41058
41059 cppunit_major_min=`echo $cppunit_version_min | \
41060 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41061 cppunit_minor_min=`echo $cppunit_version_min | \
41062 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41063 cppunit_micro_min=`echo $cppunit_version_min | \
41064 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41065
41066 cppunit_version_proper=`expr \
41067 $cppunit_major_version \> $cppunit_major_min \| \
41068 $cppunit_major_version \= $cppunit_major_min \& \
41069 $cppunit_minor_version \> $cppunit_minor_min \| \
41070 $cppunit_major_version \= $cppunit_major_min \& \
41071 $cppunit_minor_version \= $cppunit_minor_min \& \
41072 $cppunit_micro_version \>= $cppunit_micro_min `
41073
41074 if test "$cppunit_version_proper" = "1" ; then
41075 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41076echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41077 else
41078 echo "$as_me:$LINENO: result: no" >&5
41079echo "${ECHO_T}no" >&6
41080 no_cppunit=yes
41081 fi
41082 fi
41083
41084 if test "x$no_cppunit" = x ; then
c2218763 41085 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41086 else
41087 CPPUNIT_CFLAGS=""
41088 CPPUNIT_LIBS=""
c2218763 41089 :
a848cd7e
SC
41090 fi
41091
41092
41093
41094
41095
41096for subdir in `echo $SUBDIRS`; do
41097 if test -d ${srcdir}/${subdir} ; then
41098 if test "$wxUSE_GUI" = "yes"; then
41099 if test ${subdir} = "samples"; then
41100 makefiles="samples/Makefile.in $makefiles"
41101 for sample in `echo $SAMPLES_SUBDIRS`; do
41102 if test -d $srcdir/samples/$sample; then
41103 makefiles="samples/$sample/Makefile.in $makefiles"
41104 fi
41105 done
41106 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41107 fi
41108 else if test ${subdir} = "samples"; then
41109 makefiles="samples/Makefile.in samples/console/Makefile.in"
41110 elif test ${subdir} = "utils"; then
41111 makefiles="utils/HelpGen/Makefile.in \
41112 utils/HelpGen/src/Makefile.in \
41113 utils/tex2rtf/Makefile.in \
41114 utils/tex2rtf/src/Makefile.in"
41115 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41116 fi
41117 fi
41118
41119 for mkin in $makefiles ; do
41120 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41121 ac_config_files="$ac_config_files $mk"
41122
41123 done
41124 fi
41125done
41126
41127
41128cat >confcache <<\_ACEOF
41129# This file is a shell script that caches the results of configure
41130# tests run on this system so they can be shared between configure
41131# scripts and configure runs, see configure's option --config-cache.
41132# It is not useful on other systems. If it contains results you don't
41133# want to keep, you may remove or edit it.
41134#
41135# config.status only pays attention to the cache file if you give it
41136# the --recheck option to rerun configure.
41137#
41138# `ac_cv_env_foo' variables (set or unset) will be overridden when
41139# loading this file, other *unset* `ac_cv_foo' will be assigned the
41140# following values.
41141
41142_ACEOF
41143
41144# The following way of writing the cache mishandles newlines in values,
41145# but we know of no workaround that is simple, portable, and efficient.
41146# So, don't put newlines in cache variables' values.
41147# Ultrix sh set writes to stderr and can't be redirected directly,
41148# and sets the high bit in the cache file unless we assign to the vars.
41149{
41150 (set) 2>&1 |
41151 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41152 *ac_space=\ *)
41153 # `set' does not quote correctly, so add quotes (double-quote
41154 # substitution turns \\\\ into \\, and sed turns \\ into \).
41155 sed -n \
ac1cb8d3
VS
41156 "s/'/'\\\\''/g;
41157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41158 ;;
41159 *)
41160 # `set' quotes correctly as required by POSIX, so do not add quotes.
41161 sed -n \
ac1cb8d3 41162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41163 ;;
41164 esac;
41165} |
41166 sed '
41167 t clear
41168 : clear
41169 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41170 t end
41171 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41172 : end' >>confcache
41173if diff $cache_file confcache >/dev/null 2>&1; then :; else
41174 if test -w $cache_file; then
41175 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41176 cat confcache >$cache_file
41177 else
41178 echo "not updating unwritable cache $cache_file"
41179 fi
41180fi
41181rm -f confcache
41182
41183test "x$prefix" = xNONE && prefix=$ac_default_prefix
41184# Let make expand exec_prefix.
41185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41186
41187# VPATH may cause trouble with some makes, so we remove $(srcdir),
41188# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41189# trailing colons and then remove the whole line if VPATH becomes empty
41190# (actually we leave an empty line to preserve line numbers).
41191if test "x$srcdir" = x.; then
ac1cb8d3 41192 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41193s/:*\$(srcdir):*/:/;
41194s/:*\${srcdir}:*/:/;
41195s/:*@srcdir@:*/:/;
ac1cb8d3 41196s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41197s/:*$//;
ac1cb8d3 41198s/^[^=]*=[ ]*$//;
a848cd7e
SC
41199}'
41200fi
41201
41202DEFS=-DHAVE_CONFIG_H
41203
41204ac_libobjs=
41205ac_ltlibobjs=
41206for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41207 # 1. Remove the extension, and $U if already installed.
41208 ac_i=`echo "$ac_i" |
ac1cb8d3 41209 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41210 # 2. Add them.
41211 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41212 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41213done
41214LIBOBJS=$ac_libobjs
41215
41216LTLIBOBJS=$ac_ltlibobjs
41217
41218
41219
41220: ${CONFIG_STATUS=./config.status}
41221ac_clean_files_save=$ac_clean_files
41222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41223{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41224echo "$as_me: creating $CONFIG_STATUS" >&6;}
41225cat >$CONFIG_STATUS <<_ACEOF
41226#! $SHELL
41227# Generated by $as_me.
41228# Run this file to recreate the current configuration.
41229# Compiler output produced by configure, useful for debugging
41230# configure, is in config.log if it exists.
41231
41232debug=false
41233ac_cs_recheck=false
41234ac_cs_silent=false
41235SHELL=\${CONFIG_SHELL-$SHELL}
41236_ACEOF
41237
41238cat >>$CONFIG_STATUS <<\_ACEOF
41239## --------------------- ##
41240## M4sh Initialization. ##
41241## --------------------- ##
41242
41243# Be Bourne compatible
41244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41245 emulate sh
41246 NULLCMD=:
41247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41248 # is contrary to our usage. Disable this feature.
41249 alias -g '${1+"$@"}'='"$@"'
41250elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41251 set -o posix
41252fi
ac1cb8d3 41253DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41254
41255# Support unset when possible.
ac1cb8d3 41256if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41257 as_unset=unset
41258else
41259 as_unset=false
41260fi
41261
41262
41263# Work around bugs in pre-3.0 UWIN ksh.
41264$as_unset ENV MAIL MAILPATH
41265PS1='$ '
41266PS2='> '
41267PS4='+ '
41268
41269# NLS nuisances.
41270for as_var in \
41271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41273 LC_TELEPHONE LC_TIME
41274do
ac1cb8d3 41275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41276 eval $as_var=C; export $as_var
41277 else
41278 $as_unset $as_var
41279 fi
41280done
41281
41282# Required to use basename.
41283if expr a : '\(a\)' >/dev/null 2>&1; then
41284 as_expr=expr
41285else
41286 as_expr=false
41287fi
41288
41289if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41290 as_basename=basename
41291else
41292 as_basename=false
41293fi
41294
41295
41296# Name of the executable.
41297as_me=`$as_basename "$0" ||
41298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41299 X"$0" : 'X\(//\)$' \| \
41300 X"$0" : 'X\(/\)$' \| \
41301 . : '\(.\)' 2>/dev/null ||
41302echo X/"$0" |
41303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41304 /^X\/\(\/\/\)$/{ s//\1/; q; }
41305 /^X\/\(\/\).*/{ s//\1/; q; }
41306 s/.*/./; q'`
41307
41308
41309# PATH needs CR, and LINENO needs CR and PATH.
41310# Avoid depending upon Character Ranges.
41311as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41313as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41314as_cr_digits='0123456789'
41315as_cr_alnum=$as_cr_Letters$as_cr_digits
41316
41317# The user is always right.
41318if test "${PATH_SEPARATOR+set}" != set; then
41319 echo "#! /bin/sh" >conf$$.sh
41320 echo "exit 0" >>conf$$.sh
41321 chmod +x conf$$.sh
41322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41323 PATH_SEPARATOR=';'
41324 else
41325 PATH_SEPARATOR=:
41326 fi
41327 rm -f conf$$.sh
41328fi
41329
41330
41331 as_lineno_1=$LINENO
41332 as_lineno_2=$LINENO
41333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41334 test "x$as_lineno_1" != "x$as_lineno_2" &&
41335 test "x$as_lineno_3" = "x$as_lineno_2" || {
41336 # Find who we are. Look in the path if we contain no path at all
41337 # relative or not.
41338 case $0 in
41339 *[\\/]* ) as_myself=$0 ;;
41340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41341for as_dir in $PATH
41342do
41343 IFS=$as_save_IFS
41344 test -z "$as_dir" && as_dir=.
41345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41346done
41347
41348 ;;
41349 esac
41350 # We did not find ourselves, most probably we were run as `sh COMMAND'
41351 # in which case we are not to be found in the path.
41352 if test "x$as_myself" = x; then
41353 as_myself=$0
41354 fi
41355 if test ! -f "$as_myself"; then
41356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41357echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41358 { (exit 1); exit 1; }; }
41359 fi
41360 case $CONFIG_SHELL in
41361 '')
41362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41363for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41364do
41365 IFS=$as_save_IFS
41366 test -z "$as_dir" && as_dir=.
41367 for as_base in sh bash ksh sh5; do
41368 case $as_dir in
41369 /*)
41370 if ("$as_dir/$as_base" -c '
41371 as_lineno_1=$LINENO
41372 as_lineno_2=$LINENO
41373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41374 test "x$as_lineno_1" != "x$as_lineno_2" &&
41375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41378 CONFIG_SHELL=$as_dir/$as_base
41379 export CONFIG_SHELL
41380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41381 fi;;
41382 esac
41383 done
41384done
41385;;
41386 esac
41387
41388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41389 # uniformly replaced by the line number. The first 'sed' inserts a
41390 # line-number line before each line; the second 'sed' does the real
41391 # work. The second script uses 'N' to pair each line-number line
41392 # with the numbered line, and appends trailing '-' during
41393 # substitution so that $LINENO is not a special case at line end.
41394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41396 sed '=' <$as_myself |
41397 sed '
41398 N
41399 s,$,-,
41400 : loop
41401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41402 t loop
41403 s,-$,,
41404 s,^['$as_cr_digits']*\n,,
41405 ' >$as_me.lineno &&
41406 chmod +x $as_me.lineno ||
41407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41408echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41409 { (exit 1); exit 1; }; }
41410
41411 # Don't try to exec as it changes $[0], causing all sort of problems
41412 # (the dirname of $[0] is not the place where we might find the
41413 # original and so on. Autoconf is especially sensible to this).
41414 . ./$as_me.lineno
41415 # Exit status is that of the last command.
41416 exit
41417}
41418
41419
41420case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41421 *c*,-n*) ECHO_N= ECHO_C='
41422' ECHO_T=' ' ;;
41423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41425esac
41426
41427if expr a : '\(a\)' >/dev/null 2>&1; then
41428 as_expr=expr
41429else
41430 as_expr=false
41431fi
41432
41433rm -f conf$$ conf$$.exe conf$$.file
41434echo >conf$$.file
41435if ln -s conf$$.file conf$$ 2>/dev/null; then
41436 # We could just check for DJGPP; but this test a) works b) is more generic
41437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41438 if test -f conf$$.exe; then
41439 # Don't use ln at all; we don't have any links
41440 as_ln_s='cp -p'
41441 else
41442 as_ln_s='ln -s'
41443 fi
41444elif ln conf$$.file conf$$ 2>/dev/null; then
41445 as_ln_s=ln
41446else
41447 as_ln_s='cp -p'
41448fi
41449rm -f conf$$ conf$$.exe conf$$.file
41450
41451if mkdir -p . 2>/dev/null; then
41452 as_mkdir_p=:
41453else
ac1cb8d3 41454 test -d ./-p && rmdir ./-p
a848cd7e
SC
41455 as_mkdir_p=false
41456fi
41457
41458as_executable_p="test -f"
41459
41460# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41461as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41462
41463# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41464as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41465
41466
41467# IFS
41468# We need space, tab and new line, in precisely that order.
41469as_nl='
41470'
41471IFS=" $as_nl"
41472
41473# CDPATH.
41474$as_unset CDPATH
41475
41476exec 6>&1
41477
41478# Open the log real soon, to keep \$[0] and so on meaningful, and to
41479# report actual input values of CONFIG_FILES etc. instead of their
41480# values after options handling. Logging --version etc. is OK.
41481exec 5>>config.log
41482{
41483 echo
41484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41485## Running $as_me. ##
41486_ASBOX
41487} >&5
41488cat >&5 <<_CSEOF
41489
77ffb593 41490This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41491generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41492
41493 CONFIG_FILES = $CONFIG_FILES
41494 CONFIG_HEADERS = $CONFIG_HEADERS
41495 CONFIG_LINKS = $CONFIG_LINKS
41496 CONFIG_COMMANDS = $CONFIG_COMMANDS
41497 $ $0 $@
41498
41499_CSEOF
41500echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41501echo >&5
41502_ACEOF
41503
41504# Files that config.status was made for.
41505if test -n "$ac_config_files"; then
41506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41507fi
41508
41509if test -n "$ac_config_headers"; then
41510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41511fi
41512
41513if test -n "$ac_config_links"; then
41514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41515fi
41516
41517if test -n "$ac_config_commands"; then
41518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41519fi
41520
41521cat >>$CONFIG_STATUS <<\_ACEOF
41522
41523ac_cs_usage="\
41524\`$as_me' instantiates files from templates according to the
41525current configuration.
41526
41527Usage: $0 [OPTIONS] [FILE]...
41528
41529 -h, --help print this help, then exit
41530 -V, --version print version number, then exit
41531 -q, --quiet do not print progress messages
41532 -d, --debug don't remove temporary files
41533 --recheck update $as_me by reconfiguring in the same conditions
41534 --file=FILE[:TEMPLATE]
ac1cb8d3 41535 instantiate the configuration file FILE
a848cd7e 41536 --header=FILE[:TEMPLATE]
ac1cb8d3 41537 instantiate the configuration header FILE
a848cd7e
SC
41538
41539Configuration files:
41540$config_files
41541
41542Configuration headers:
41543$config_headers
41544
41545Configuration commands:
41546$config_commands
41547
41548Report bugs to <bug-autoconf@gnu.org>."
41549_ACEOF
41550
41551cat >>$CONFIG_STATUS <<_ACEOF
41552ac_cs_version="\\
77ffb593 41553wxWidgets config.status 2.5.2
ac1cb8d3 41554configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41556
ac1cb8d3 41557Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41558This config.status script is free software; the Free Software Foundation
41559gives unlimited permission to copy, distribute and modify it."
41560srcdir=$srcdir
41561INSTALL="$INSTALL"
41562_ACEOF
41563
41564cat >>$CONFIG_STATUS <<\_ACEOF
41565# If no file are specified by the user, then we need to provide default
41566# value. By we need to know if files were specified by the user.
41567ac_need_defaults=:
41568while test $# != 0
41569do
41570 case $1 in
41571 --*=*)
41572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41574 ac_shift=:
41575 ;;
41576 -*)
41577 ac_option=$1
41578 ac_optarg=$2
41579 ac_shift=shift
41580 ;;
41581 *) # This is not an option, so the user has probably given explicit
41582 # arguments.
41583 ac_option=$1
41584 ac_need_defaults=false;;
41585 esac
41586
41587 case $ac_option in
41588 # Handling of the options.
41589_ACEOF
41590cat >>$CONFIG_STATUS <<\_ACEOF
41591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41592 ac_cs_recheck=: ;;
41593 --version | --vers* | -V )
41594 echo "$ac_cs_version"; exit 0 ;;
41595 --he | --h)
41596 # Conflict between --help and --header
41597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41598Try \`$0 --help' for more information." >&5
41599echo "$as_me: error: ambiguous option: $1
41600Try \`$0 --help' for more information." >&2;}
41601 { (exit 1); exit 1; }; };;
41602 --help | --hel | -h )
41603 echo "$ac_cs_usage"; exit 0 ;;
41604 --debug | --d* | -d )
41605 debug=: ;;
41606 --file | --fil | --fi | --f )
41607 $ac_shift
41608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41609 ac_need_defaults=false;;
41610 --header | --heade | --head | --hea )
41611 $ac_shift
41612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41613 ac_need_defaults=false;;
41614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41616 ac_cs_silent=: ;;
41617
41618 # This is an error.
41619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41620Try \`$0 --help' for more information." >&5
41621echo "$as_me: error: unrecognized option: $1
41622Try \`$0 --help' for more information." >&2;}
41623 { (exit 1); exit 1; }; } ;;
41624
41625 *) ac_config_targets="$ac_config_targets $1" ;;
41626
41627 esac
41628 shift
41629done
41630
41631ac_configure_extra_args=
41632
41633if $ac_cs_silent; then
41634 exec 6>/dev/null
41635 ac_configure_extra_args="$ac_configure_extra_args --silent"
41636fi
41637
41638_ACEOF
41639cat >>$CONFIG_STATUS <<_ACEOF
41640if \$ac_cs_recheck; then
41641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41643fi
41644
41645_ACEOF
41646
41647cat >>$CONFIG_STATUS <<_ACEOF
41648#
41649# INIT-COMMANDS section.
41650#
41651
41652
41653 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41654 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
4b167aca 41655 WX_RELEASE="${WX_RELEASE}"
a848cd7e
SC
41656 LN_S="${LN_S}"
41657
41658
41659
41660_ACEOF
41661
41662
41663
41664cat >>$CONFIG_STATUS <<\_ACEOF
41665for ac_config_target in $ac_config_targets
41666do
41667 case "$ac_config_target" in
41668 # Handling of arguments.
41669 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41670 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41671 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41672 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41673 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41674 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41675 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41676 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41677echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41678 { (exit 1); exit 1; }; };;
41679 esac
41680done
41681
41682# If the user did not use the arguments to specify the items to instantiate,
41683# then the envvar interface is used. Set only those that are not.
41684# We use the long form for the default assignment because of an extremely
41685# bizarre bug on SunOS 4.1.3.
41686if $ac_need_defaults; then
41687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41689 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41690fi
41691
41692# Have a temporary directory for convenience. Make it in the build tree
41693# simply because there is no reason to put it here, and in addition,
41694# creating and moving files from /tmp can sometimes cause problems.
41695# Create a temporary directory, and hook for its removal unless debugging.
41696$debug ||
41697{
41698 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41699 trap '{ (exit 1); exit 1; }' 1 2 13 15
41700}
41701
41702# Create a (secure) tmp directory for tmp files.
41703
41704{
41705 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41706 test -n "$tmp" && test -d "$tmp"
41707} ||
41708{
41709 tmp=./confstat$$-$RANDOM
41710 (umask 077 && mkdir $tmp)
41711} ||
41712{
41713 echo "$me: cannot create a temporary directory in ." >&2
41714 { (exit 1); exit 1; }
41715}
41716
41717_ACEOF
41718
41719cat >>$CONFIG_STATUS <<_ACEOF
41720
41721#
41722# CONFIG_FILES section.
41723#
41724
41725# No need to generate the scripts if there are no CONFIG_FILES.
41726# This happens for instance when ./config.status config.h
41727if test -n "\$CONFIG_FILES"; then
41728 # Protect against being on the right side of a sed subst in config.status.
41729 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41730 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41731s,@SHELL@,$SHELL,;t t
41732s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41733s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41734s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41735s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41736s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41737s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41738s,@exec_prefix@,$exec_prefix,;t t
41739s,@prefix@,$prefix,;t t
41740s,@program_transform_name@,$program_transform_name,;t t
41741s,@bindir@,$bindir,;t t
41742s,@sbindir@,$sbindir,;t t
41743s,@libexecdir@,$libexecdir,;t t
41744s,@datadir@,$datadir,;t t
41745s,@sysconfdir@,$sysconfdir,;t t
41746s,@sharedstatedir@,$sharedstatedir,;t t
41747s,@localstatedir@,$localstatedir,;t t
41748s,@libdir@,$libdir,;t t
41749s,@includedir@,$includedir,;t t
41750s,@oldincludedir@,$oldincludedir,;t t
41751s,@infodir@,$infodir,;t t
41752s,@mandir@,$mandir,;t t
41753s,@build_alias@,$build_alias,;t t
41754s,@host_alias@,$host_alias,;t t
41755s,@target_alias@,$target_alias,;t t
41756s,@DEFS@,$DEFS,;t t
41757s,@ECHO_C@,$ECHO_C,;t t
41758s,@ECHO_N@,$ECHO_N,;t t
41759s,@ECHO_T@,$ECHO_T,;t t
41760s,@LIBS@,$LIBS,;t t
41761s,@build@,$build,;t t
41762s,@build_cpu@,$build_cpu,;t t
41763s,@build_vendor@,$build_vendor,;t t
41764s,@build_os@,$build_os,;t t
41765s,@host@,$host,;t t
41766s,@host_cpu@,$host_cpu,;t t
41767s,@host_vendor@,$host_vendor,;t t
41768s,@host_os@,$host_os,;t t
41769s,@target@,$target,;t t
41770s,@target_cpu@,$target_cpu,;t t
41771s,@target_vendor@,$target_vendor,;t t
41772s,@target_os@,$target_os,;t t
41773s,@CC@,$CC,;t t
41774s,@CFLAGS@,$CFLAGS,;t t
41775s,@LDFLAGS@,$LDFLAGS,;t t
41776s,@CPPFLAGS@,$CPPFLAGS,;t t
41777s,@ac_ct_CC@,$ac_ct_CC,;t t
41778s,@EXEEXT@,$EXEEXT,;t t
41779s,@OBJEXT@,$OBJEXT,;t t
41780s,@CPP@,$CPP,;t t
41781s,@EGREP@,$EGREP,;t t
41782s,@CXX@,$CXX,;t t
41783s,@CXXFLAGS@,$CXXFLAGS,;t t
41784s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41785s,@RANLIB@,$RANLIB,;t t
41786s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41787s,@AR@,$AR,;t t
41788s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41789s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41790s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41791s,@STRIP@,$STRIP,;t t
41792s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41793s,@LN_S@,$LN_S,;t t
41794s,@CXXCPP@,$CXXCPP,;t t
41795s,@subdirs@,$subdirs,;t t
41796s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41797s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41798s,@GTK_LIBS@,$GTK_LIBS,;t t
41799s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41800s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41801s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41802s,@X_CFLAGS@,$X_CFLAGS,;t t
41803s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41804s,@X_LIBS@,$X_LIBS,;t t
41805s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41806s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41807s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41808s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41809s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41810s,@RESCOMP@,$RESCOMP,;t t
41811s,@DEREZ@,$DEREZ,;t t
41812s,@SETFILE@,$SETFILE,;t t
41813s,@LIBICONV@,$LIBICONV,;t t
41814s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41815s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41816s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41817s,@SDL_LIBS@,$SDL_LIBS,;t t
41818s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41819s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41820s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41821s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41822s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41823s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41824s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41825s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41826s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41827s,@VENDOR@,$VENDOR,;t t
41828s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
41829s,@WXUNIV@,$WXUNIV,;t t
41830s,@MONOLITHIC@,$MONOLITHIC,;t t
41831s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41832s,@EXTRALIBS@,$EXTRALIBS,;t t
41833s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41834s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41835s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41836s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41837s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41838s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41839s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
41840s,@UNICODE@,$UNICODE,;t t
41841s,@BUILD@,$BUILD,;t t
41842s,@DEBUG_INFO@,$DEBUG_INFO,;t t
41843s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
41844s,@SHARED@,$SHARED,;t t
41845s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
41846s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
41847s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
41848s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
41849s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
41850s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
41851s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
41852s,@SET_MAKE@,$SET_MAKE,;t t
41853s,@MAKE_SET@,$MAKE_SET,;t t
41854s,@ac_ct_AR@,$ac_ct_AR,;t t
41855s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41856s,@NM@,$NM,;t t
41857s,@ac_ct_NM@,$ac_ct_NM,;t t
41858s,@INSTALL_DIR@,$INSTALL_DIR,;t t
41859s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
41860s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
41861s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
41862s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
41863s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
41864s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
41865s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
41866s,@SO_SUFFIX@,$SO_SUFFIX,;t t
41867s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
41868s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
41869s,@LIBPREFIX@,$LIBPREFIX,;t t
41870s,@LIBEXT@,$LIBEXT,;t t
41871s,@DLLPREFIX@,$DLLPREFIX,;t t
41872s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
41873s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
41874s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41875s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41876s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41877s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41878s,@PIC_FLAG@,$PIC_FLAG,;t t
41879s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41880s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41881s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41882s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41883s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41884s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41885s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41886s,@GCC_PCH@,$GCC_PCH,;t t
41887s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41888s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41889s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41890s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41891s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41892s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41893s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41894s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41895s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41896s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41897s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41898s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41899s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41900s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41901s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41902s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41903s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41904s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41905s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
41906s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41907s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
41908s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41909s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41910s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
41911s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41912s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
41913s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41914s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
41915s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
41916s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
41917s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
41918s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
41919s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
41920s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
41921s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41922s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41923s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
41924s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
41925s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
41926s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41927s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41928s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41929s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41930s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41931s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41932s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41933s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41934s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41935s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41936s,@COND_SHARED_0@,$COND_SHARED_0,;t t
41937s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41938s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41939s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41940s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41941s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41942s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41943s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41944s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41945s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41946s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41947s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41948s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41949s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41950s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41951s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41952s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41953s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41954s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
4d4ff94c 41955s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
41956s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41957s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41958s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41959s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41960s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41961s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41962s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41963s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
4d4ff94c 41964s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
41965s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41966s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41967s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
4d4ff94c 41968s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
41969s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
41970s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
41971s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
41972s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41973s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41974s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41975s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41976s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41977s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41978s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41979s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41980s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41981s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41982s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41983s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
4d4ff94c 41984s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
41985s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41986s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41987s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41988s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41989s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41990s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
4d4ff94c 41991s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
a848cd7e
SC
41992s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41993s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41994s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41995s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41996s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41997s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41998s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41999s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42000s,@PATH_IFS@,$PATH_IFS,;t t
42001s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42002s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42003s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 42004s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
42005s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42006s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42007s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42008s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42009s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42010s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42011s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42012s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42013s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42014s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42015s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42016s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42017s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42018s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42019s,@WX_ALL@,$WX_ALL,;t t
42020s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42021s,@SHARED_LD@,$SHARED_LD,;t t
42022s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42023s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42024s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42025s,@USE_GUI@,$USE_GUI,;t t
42026s,@AFMINSTALL@,$AFMINSTALL,;t t
42027s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42028s,@TOOLKIT@,$TOOLKIT,;t t
42029s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42030s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42031s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42032s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42033s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42034s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42035s,@cross_compiling@,$cross_compiling,;t t
42036s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42037s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42038s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42039s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42040s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42041s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42042s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42043s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42044s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42045s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42046s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42047s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42048s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42049s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42050s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42051s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42052s,@GUIDIST@,$GUIDIST,;t t
42053s,@PORT_FILES@,$PORT_FILES,;t t
42054s,@DISTDIR@,$DISTDIR,;t t
42055s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42056s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42057s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42058s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42059s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42060s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42061s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42062s,@RESFLAGS@,$RESFLAGS,;t t
42063s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42064s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42065s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42066s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42067s,@MACRESCOMP@,$MACRESCOMP,;t t
42068s,@MACSETFILE@,$MACSETFILE,;t t
42069s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42070s,@GCC@,$GCC,;t t
a848cd7e
SC
42071s,@DLLTOOL@,$DLLTOOL,;t t
42072s,@AS@,$AS,;t t
42073s,@LD@,$LD,;t t
42074s,@MAKEINFO@,$MAKEINFO,;t t
42075s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42076s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42077s,@LIBOBJS@,$LIBOBJS,;t t
42078s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42079CEOF
42080
42081_ACEOF
42082
42083 cat >>$CONFIG_STATUS <<\_ACEOF
42084 # Split the substitutions into bite-sized pieces for seds with
42085 # small command number limits, like on Digital OSF/1 and HP-UX.
42086 ac_max_sed_lines=48
42087 ac_sed_frag=1 # Number of current file.
42088 ac_beg=1 # First line for current file.
42089 ac_end=$ac_max_sed_lines # Line after last line for current file.
42090 ac_more_lines=:
42091 ac_sed_cmds=
42092 while $ac_more_lines; do
42093 if test $ac_beg -gt 1; then
42094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42095 else
42096 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42097 fi
42098 if test ! -s $tmp/subs.frag; then
42099 ac_more_lines=false
42100 else
42101 # The purpose of the label and of the branching condition is to
42102 # speed up the sed processing (if there are no `@' at all, there
42103 # is no need to browse any of the substitutions).
42104 # These are the two extra sed commands mentioned above.
42105 (echo ':t
42106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42107 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42108 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42109 else
ac1cb8d3 42110 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42111 fi
42112 ac_sed_frag=`expr $ac_sed_frag + 1`
42113 ac_beg=$ac_end
42114 ac_end=`expr $ac_end + $ac_max_sed_lines`
42115 fi
42116 done
42117 if test -z "$ac_sed_cmds"; then
42118 ac_sed_cmds=cat
42119 fi
42120fi # test -n "$CONFIG_FILES"
42121
42122_ACEOF
42123cat >>$CONFIG_STATUS <<\_ACEOF
42124for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42126 case $ac_file in
42127 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42128 cat >$tmp/stdin
42129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42133 * ) ac_file_in=$ac_file.in ;;
42134 esac
42135
42136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42138$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42139 X"$ac_file" : 'X\(//\)[^/]' \| \
42140 X"$ac_file" : 'X\(//\)$' \| \
42141 X"$ac_file" : 'X\(/\)' \| \
42142 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42143echo X"$ac_file" |
42144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42146 /^X\(\/\/\)$/{ s//\1/; q; }
42147 /^X\(\/\).*/{ s//\1/; q; }
42148 s/.*/./; q'`
42149 { if $as_mkdir_p; then
42150 mkdir -p "$ac_dir"
42151 else
42152 as_dir="$ac_dir"
42153 as_dirs=
42154 while test ! -d "$as_dir"; do
42155 as_dirs="$as_dir $as_dirs"
42156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42157$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42158 X"$as_dir" : 'X\(//\)[^/]' \| \
42159 X"$as_dir" : 'X\(//\)$' \| \
42160 X"$as_dir" : 'X\(/\)' \| \
42161 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42162echo X"$as_dir" |
42163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42165 /^X\(\/\/\)$/{ s//\1/; q; }
42166 /^X\(\/\).*/{ s//\1/; q; }
42167 s/.*/./; q'`
42168 done
42169 test ! -n "$as_dirs" || mkdir $as_dirs
42170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42171echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42172 { (exit 1); exit 1; }; }; }
42173
42174 ac_builddir=.
42175
42176if test "$ac_dir" != .; then
42177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42178 # A "../" for each directory in $ac_dir_suffix.
42179 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42180else
42181 ac_dir_suffix= ac_top_builddir=
42182fi
42183
42184case $srcdir in
42185 .) # No --srcdir option. We are building in place.
42186 ac_srcdir=.
42187 if test -z "$ac_top_builddir"; then
42188 ac_top_srcdir=.
42189 else
42190 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42191 fi ;;
42192 [\\/]* | ?:[\\/]* ) # Absolute path.
42193 ac_srcdir=$srcdir$ac_dir_suffix;
42194 ac_top_srcdir=$srcdir ;;
42195 *) # Relative path.
42196 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42197 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42198esac
ac1cb8d3
VS
42199
42200# Do not use `cd foo && pwd` to compute absolute paths, because
42201# the directories may not exist.
42202case `pwd` in
42203.) ac_abs_builddir="$ac_dir";;
42204*)
42205 case "$ac_dir" in
42206 .) ac_abs_builddir=`pwd`;;
42207 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42208 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42209 esac;;
42210esac
42211case $ac_abs_builddir in
42212.) ac_abs_top_builddir=${ac_top_builddir}.;;
42213*)
42214 case ${ac_top_builddir}. in
42215 .) ac_abs_top_builddir=$ac_abs_builddir;;
42216 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42217 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42218 esac;;
42219esac
42220case $ac_abs_builddir in
42221.) ac_abs_srcdir=$ac_srcdir;;
42222*)
42223 case $ac_srcdir in
42224 .) ac_abs_srcdir=$ac_abs_builddir;;
42225 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42226 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42227 esac;;
42228esac
42229case $ac_abs_builddir in
42230.) ac_abs_top_srcdir=$ac_top_srcdir;;
42231*)
42232 case $ac_top_srcdir in
42233 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42234 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42235 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42236 esac;;
42237esac
a848cd7e
SC
42238
42239
42240 case $INSTALL in
42241 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42242 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42243 esac
42244
a848cd7e
SC
42245 # Let's still pretend it is `configure' which instantiates (i.e., don't
42246 # use $as_me), people would be surprised to read:
42247 # /* config.h. Generated by config.status. */
42248 if test x"$ac_file" = x-; then
42249 configure_input=
42250 else
42251 configure_input="$ac_file. "
42252 fi
42253 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42254 sed 's,.*/,,'` by configure."
a848cd7e
SC
42255
42256 # First look for the input files in the build tree, otherwise in the
42257 # src tree.
42258 ac_file_inputs=`IFS=:
42259 for f in $ac_file_in; do
42260 case $f in
42261 -) echo $tmp/stdin ;;
42262 [\\/$]*)
ac1cb8d3
VS
42263 # Absolute (can't be DOS-style, as IFS=:)
42264 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42265echo "$as_me: error: cannot find input file: $f" >&2;}
42266 { (exit 1); exit 1; }; }
ac1cb8d3 42267 echo "$f";;
a848cd7e 42268 *) # Relative
ac1cb8d3
VS
42269 if test -f "$f"; then
42270 # Build tree
42271 echo "$f"
42272 elif test -f "$srcdir/$f"; then
42273 # Source tree
42274 echo "$srcdir/$f"
42275 else
42276 # /dev/null tree
42277 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42278echo "$as_me: error: cannot find input file: $f" >&2;}
42279 { (exit 1); exit 1; }; }
ac1cb8d3 42280 fi;;
a848cd7e
SC
42281 esac
42282 done` || { (exit 1); exit 1; }
4d4ff94c
VZ
42283
42284 if test x"$ac_file" != x-; then
42285 { echo "$as_me:$LINENO: creating $ac_file" >&5
42286echo "$as_me: creating $ac_file" >&6;}
42287 rm -f "$ac_file"
42288 fi
a848cd7e
SC
42289_ACEOF
42290cat >>$CONFIG_STATUS <<_ACEOF
42291 sed "$ac_vpsub
42292$extrasub
42293_ACEOF
42294cat >>$CONFIG_STATUS <<\_ACEOF
42295:t
42296/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42297s,@configure_input@,$configure_input,;t t
42298s,@srcdir@,$ac_srcdir,;t t
42299s,@abs_srcdir@,$ac_abs_srcdir,;t t
42300s,@top_srcdir@,$ac_top_srcdir,;t t
42301s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42302s,@builddir@,$ac_builddir,;t t
42303s,@abs_builddir@,$ac_abs_builddir,;t t
42304s,@top_builddir@,$ac_top_builddir,;t t
42305s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42306s,@INSTALL@,$ac_INSTALL,;t t
42307" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42308 rm -f $tmp/stdin
42309 if test x"$ac_file" != x-; then
42310 mv $tmp/out $ac_file
42311 else
42312 cat $tmp/out
42313 rm -f $tmp/out
42314 fi
42315
42316done
42317_ACEOF
42318cat >>$CONFIG_STATUS <<\_ACEOF
42319
42320#
42321# CONFIG_HEADER section.
42322#
42323
42324# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42325# NAME is the cpp macro being defined and VALUE is the value it is being given.
42326#
42327# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42328ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42329ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42330ac_dC=' '
42331ac_dD=',;t'
42332# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42333ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42334ac_uB='$,\1#\2define\3'
42335ac_uC=' '
42336ac_uD=',;t'
42337
42338for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42340 case $ac_file in
42341 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42342 cat >$tmp/stdin
42343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42347 * ) ac_file_in=$ac_file.in ;;
42348 esac
42349
42350 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42351echo "$as_me: creating $ac_file" >&6;}
42352
42353 # First look for the input files in the build tree, otherwise in the
42354 # src tree.
42355 ac_file_inputs=`IFS=:
42356 for f in $ac_file_in; do
42357 case $f in
42358 -) echo $tmp/stdin ;;
42359 [\\/$]*)
ac1cb8d3
VS
42360 # Absolute (can't be DOS-style, as IFS=:)
42361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42362echo "$as_me: error: cannot find input file: $f" >&2;}
42363 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42364 # Do quote $f, to prevent DOS paths from being IFS'd.
42365 echo "$f";;
a848cd7e 42366 *) # Relative
ac1cb8d3
VS
42367 if test -f "$f"; then
42368 # Build tree
42369 echo "$f"
42370 elif test -f "$srcdir/$f"; then
42371 # Source tree
42372 echo "$srcdir/$f"
42373 else
42374 # /dev/null tree
42375 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42376echo "$as_me: error: cannot find input file: $f" >&2;}
42377 { (exit 1); exit 1; }; }
ac1cb8d3 42378 fi;;
a848cd7e
SC
42379 esac
42380 done` || { (exit 1); exit 1; }
42381 # Remove the trailing spaces.
ac1cb8d3 42382 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42383
42384_ACEOF
42385
42386# Transform confdefs.h into two sed scripts, `conftest.defines' and
42387# `conftest.undefs', that substitutes the proper values into
42388# config.h.in to produce config.h. The first handles `#define'
42389# templates, and the second `#undef' templates.
42390# And first: Protect against being on the right side of a sed subst in
42391# config.status. Protect against being in an unquoted here document
42392# in config.status.
42393rm -f conftest.defines conftest.undefs
42394# Using a here document instead of a string reduces the quoting nightmare.
42395# Putting comments in sed scripts is not portable.
42396#
42397# `end' is used to avoid that the second main sed command (meant for
42398# 0-ary CPP macros) applies to n-ary macro definitions.
42399# See the Autoconf documentation for `clear'.
42400cat >confdef2sed.sed <<\_ACEOF
42401s/[\\&,]/\\&/g
42402s,[\\$`],\\&,g
42403t clear
42404: clear
ac1cb8d3 42405s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42406t end
ac1cb8d3 42407s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42408: end
42409_ACEOF
42410# If some macros were called several times there might be several times
42411# the same #defines, which is useless. Nevertheless, we may not want to
42412# sort them, since we want the *last* AC-DEFINE to be honored.
42413uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42414sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42415rm -f confdef2sed.sed
42416
42417# This sed command replaces #undef with comments. This is necessary, for
42418# example, in the case of _POSIX_SOURCE, which is predefined and required
42419# on some systems where configure will not decide to define it.
42420cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42421s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42422_ACEOF
42423
42424# Break up conftest.defines because some shells have a limit on the size
42425# of here documents, and old seds have small limits too (100 cmds).
42426echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42427echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42428echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42429echo ' :' >>$CONFIG_STATUS
42430rm -f conftest.tail
42431while grep . conftest.defines >/dev/null
42432do
42433 # Write a limited-size here document to $tmp/defines.sed.
42434 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42435 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42436 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42437 # Work around the forget-to-reset-the-flag bug.
42438 echo 't clr' >>$CONFIG_STATUS
42439 echo ': clr' >>$CONFIG_STATUS
42440 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42441 echo 'CEOF
42442 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42443 rm -f $tmp/in
42444 mv $tmp/out $tmp/in
42445' >>$CONFIG_STATUS
42446 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42447 rm -f conftest.defines
42448 mv conftest.tail conftest.defines
42449done
42450rm -f conftest.defines
42451echo ' fi # grep' >>$CONFIG_STATUS
42452echo >>$CONFIG_STATUS
42453
42454# Break up conftest.undefs because some shells have a limit on the size
42455# of here documents, and old seds have small limits too (100 cmds).
42456echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42457rm -f conftest.tail
42458while grep . conftest.undefs >/dev/null
42459do
42460 # Write a limited-size here document to $tmp/undefs.sed.
42461 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42462 # Speed up: don't consider the non `#undef'
ac1cb8d3 42463 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42464 # Work around the forget-to-reset-the-flag bug.
42465 echo 't clr' >>$CONFIG_STATUS
42466 echo ': clr' >>$CONFIG_STATUS
42467 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42468 echo 'CEOF
42469 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42470 rm -f $tmp/in
42471 mv $tmp/out $tmp/in
42472' >>$CONFIG_STATUS
42473 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42474 rm -f conftest.undefs
42475 mv conftest.tail conftest.undefs
42476done
42477rm -f conftest.undefs
42478
42479cat >>$CONFIG_STATUS <<\_ACEOF
42480 # Let's still pretend it is `configure' which instantiates (i.e., don't
42481 # use $as_me), people would be surprised to read:
42482 # /* config.h. Generated by config.status. */
42483 if test x"$ac_file" = x-; then
42484 echo "/* Generated by configure. */" >$tmp/config.h
42485 else
42486 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42487 fi
42488 cat $tmp/in >>$tmp/config.h
42489 rm -f $tmp/in
42490 if test x"$ac_file" != x-; then
42491 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42493echo "$as_me: $ac_file is unchanged" >&6;}
42494 else
42495 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42497 X"$ac_file" : 'X\(//\)[^/]' \| \
42498 X"$ac_file" : 'X\(//\)$' \| \
42499 X"$ac_file" : 'X\(/\)' \| \
42500 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42501echo X"$ac_file" |
42502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42504 /^X\(\/\/\)$/{ s//\1/; q; }
42505 /^X\(\/\).*/{ s//\1/; q; }
42506 s/.*/./; q'`
42507 { if $as_mkdir_p; then
42508 mkdir -p "$ac_dir"
42509 else
42510 as_dir="$ac_dir"
42511 as_dirs=
42512 while test ! -d "$as_dir"; do
42513 as_dirs="$as_dir $as_dirs"
42514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42516 X"$as_dir" : 'X\(//\)[^/]' \| \
42517 X"$as_dir" : 'X\(//\)$' \| \
42518 X"$as_dir" : 'X\(/\)' \| \
42519 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42520echo X"$as_dir" |
42521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42523 /^X\(\/\/\)$/{ s//\1/; q; }
42524 /^X\(\/\).*/{ s//\1/; q; }
42525 s/.*/./; q'`
42526 done
42527 test ! -n "$as_dirs" || mkdir $as_dirs
42528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42529echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42530 { (exit 1); exit 1; }; }; }
42531
42532 rm -f $ac_file
42533 mv $tmp/config.h $ac_file
42534 fi
42535 else
42536 cat $tmp/config.h
42537 rm -f $tmp/config.h
42538 fi
42539done
42540_ACEOF
42541cat >>$CONFIG_STATUS <<\_ACEOF
42542
42543#
42544# CONFIG_COMMANDS section.
42545#
42546for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42547 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42548 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42549 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42550$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42551 X"$ac_dest" : 'X\(//\)[^/]' \| \
42552 X"$ac_dest" : 'X\(//\)$' \| \
42553 X"$ac_dest" : 'X\(/\)' \| \
42554 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42555echo X"$ac_dest" |
42556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42558 /^X\(\/\/\)$/{ s//\1/; q; }
42559 /^X\(\/\).*/{ s//\1/; q; }
42560 s/.*/./; q'`
ac1cb8d3
VS
42561 { if $as_mkdir_p; then
42562 mkdir -p "$ac_dir"
42563 else
42564 as_dir="$ac_dir"
42565 as_dirs=
42566 while test ! -d "$as_dir"; do
42567 as_dirs="$as_dir $as_dirs"
42568 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42570 X"$as_dir" : 'X\(//\)[^/]' \| \
42571 X"$as_dir" : 'X\(//\)$' \| \
42572 X"$as_dir" : 'X\(/\)' \| \
42573 . : '\(.\)' 2>/dev/null ||
42574echo X"$as_dir" |
42575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42577 /^X\(\/\/\)$/{ s//\1/; q; }
42578 /^X\(\/\).*/{ s//\1/; q; }
42579 s/.*/./; q'`
42580 done
42581 test ! -n "$as_dirs" || mkdir $as_dirs
42582 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42583echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42584 { (exit 1); exit 1; }; }; }
42585
a848cd7e
SC
42586 ac_builddir=.
42587
42588if test "$ac_dir" != .; then
42589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42590 # A "../" for each directory in $ac_dir_suffix.
42591 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42592else
42593 ac_dir_suffix= ac_top_builddir=
42594fi
42595
42596case $srcdir in
42597 .) # No --srcdir option. We are building in place.
42598 ac_srcdir=.
42599 if test -z "$ac_top_builddir"; then
42600 ac_top_srcdir=.
42601 else
42602 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42603 fi ;;
42604 [\\/]* | ?:[\\/]* ) # Absolute path.
42605 ac_srcdir=$srcdir$ac_dir_suffix;
42606 ac_top_srcdir=$srcdir ;;
42607 *) # Relative path.
42608 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42609 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42610esac
ac1cb8d3
VS
42611
42612# Do not use `cd foo && pwd` to compute absolute paths, because
42613# the directories may not exist.
42614case `pwd` in
42615.) ac_abs_builddir="$ac_dir";;
42616*)
42617 case "$ac_dir" in
42618 .) ac_abs_builddir=`pwd`;;
42619 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42620 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42621 esac;;
42622esac
42623case $ac_abs_builddir in
42624.) ac_abs_top_builddir=${ac_top_builddir}.;;
42625*)
42626 case ${ac_top_builddir}. in
42627 .) ac_abs_top_builddir=$ac_abs_builddir;;
42628 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42629 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42630 esac;;
42631esac
42632case $ac_abs_builddir in
42633.) ac_abs_srcdir=$ac_srcdir;;
42634*)
42635 case $ac_srcdir in
42636 .) ac_abs_srcdir=$ac_abs_builddir;;
42637 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42638 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42639 esac;;
42640esac
42641case $ac_abs_builddir in
42642.) ac_abs_top_srcdir=$ac_top_srcdir;;
42643*)
42644 case $ac_top_srcdir in
42645 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42646 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42647 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42648 esac;;
42649esac
a848cd7e
SC
42650
42651
42652 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42653echo "$as_me: executing $ac_dest commands" >&6;}
42654 case $ac_dest in
42655 default )
a848cd7e
SC
42656 if test ! -d lib; then
42657 mkdir lib
42658 fi
42659 if test ! -d lib/wx; then
42660 mkdir lib/wx
42661 fi
8708fa76
VS
42662 if test ! -d lib/wx/config; then
42663 mkdir lib/wx/config
42664 fi
a848cd7e
SC
42665 if test ! -d lib/wx/include; then
42666 mkdir lib/wx/include
42667 fi
42668 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42669 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42670 fi
42671 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42672 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42673 fi
42674 if test -f setup.h; then
42675 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42676 fi
8708fa76 42677
4b167aca 42678 if test ! -h wx-config; then
8708fa76 42679 chmod +x wx-config
48112931 42680 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
4b167aca 42681 ${LN_S} wx-config-${WX_RELEASE} wx-config
8708fa76 42682 fi
4b167aca
VS
42683 ( cd lib/wx/config ;
42684 rm -f ${TOOLCHAIN_NAME}
42685 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
42686
8708fa76
VS
42687 if test -f wx-config-wrapper; then
42688 chmod +x wx-config-wrapper
4b167aca 42689 mv -f wx-config-wrapper wx-config-${WX_RELEASE}
b3de4970 42690 rm -f wx${TOOLCHAIN_NAME}-config
4b167aca 42691 ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config
8708fa76 42692 fi
a848cd7e
SC
42693 ;;
42694 esac
42695done
42696_ACEOF
42697
42698cat >>$CONFIG_STATUS <<\_ACEOF
42699
42700{ (exit 0); exit 0; }
42701_ACEOF
42702chmod +x $CONFIG_STATUS
42703ac_clean_files=$ac_clean_files_save
42704
42705
42706# configure is writing to config.log, and then calls config.status.
42707# config.status does its own redirection, appending to config.log.
42708# Unfortunately, on DOS this fails, as config.log is still kept open
42709# by configure, so config.status won't be able to write to it; its
42710# output is simply discarded. So we exec the FD to /dev/null,
42711# effectively closing config.log, so it can be properly (re)opened and
42712# appended to by config.status. When coming back to configure, we
42713# need to make the FD available again.
42714if test "$no_create" != yes; then
42715 ac_cs_success=:
42716 ac_config_status_args=
42717 test "$silent" = yes &&
42718 ac_config_status_args="$ac_config_status_args --quiet"
42719 exec 5>/dev/null
42720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42721 exec 5>>config.log
42722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42723 # would make configure fail if this is the last instruction.
42724 $ac_cs_success || { (exit 1); exit 1; }
42725fi
42726
42727#
42728# CONFIG_SUBDIRS section.
42729#
42730if test "$no_recursion" != yes; then
42731
42732 # Remove --cache-file and --srcdir arguments so they do not pile up.
42733 ac_sub_configure_args=
42734 ac_prev=
42735 for ac_arg in $ac_configure_args; do
42736 if test -n "$ac_prev"; then
42737 ac_prev=
42738 continue
42739 fi
42740 case $ac_arg in
42741 -cache-file | --cache-file | --cache-fil | --cache-fi \
42742 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42743 ac_prev=cache_file ;;
42744 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42745 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42746 | --c=*)
42747 ;;
42748 --config-cache | -C)
42749 ;;
42750 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42751 ac_prev=srcdir ;;
42752 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42753 ;;
42754 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42755 ac_prev=prefix ;;
42756 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42757 ;;
42758 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42759 esac
42760 done
42761
42762 # Always prepend --prefix to ensure using the same prefix
42763 # in subdir configurations.
42764 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42765
42766 ac_popdir=`pwd`
42767 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42768
42769 # Do not complain, so a configure script can configure whichever
42770 # parts of a large source tree are present.
42771 test -d $srcdir/$ac_dir || continue
42772
42773 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42774echo "$as_me: configuring in $ac_dir" >&6;}
42775 { if $as_mkdir_p; then
42776 mkdir -p "$ac_dir"
42777 else
42778 as_dir="$ac_dir"
42779 as_dirs=
42780 while test ! -d "$as_dir"; do
42781 as_dirs="$as_dir $as_dirs"
42782 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42783$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42784 X"$as_dir" : 'X\(//\)[^/]' \| \
42785 X"$as_dir" : 'X\(//\)$' \| \
42786 X"$as_dir" : 'X\(/\)' \| \
42787 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42788echo X"$as_dir" |
42789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42791 /^X\(\/\/\)$/{ s//\1/; q; }
42792 /^X\(\/\).*/{ s//\1/; q; }
42793 s/.*/./; q'`
42794 done
42795 test ! -n "$as_dirs" || mkdir $as_dirs
42796 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42797echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42798 { (exit 1); exit 1; }; }; }
42799
42800 ac_builddir=.
42801
42802if test "$ac_dir" != .; then
42803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42804 # A "../" for each directory in $ac_dir_suffix.
42805 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42806else
42807 ac_dir_suffix= ac_top_builddir=
42808fi
42809
42810case $srcdir in
42811 .) # No --srcdir option. We are building in place.
42812 ac_srcdir=.
42813 if test -z "$ac_top_builddir"; then
42814 ac_top_srcdir=.
42815 else
42816 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42817 fi ;;
42818 [\\/]* | ?:[\\/]* ) # Absolute path.
42819 ac_srcdir=$srcdir$ac_dir_suffix;
42820 ac_top_srcdir=$srcdir ;;
42821 *) # Relative path.
42822 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42823 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42824esac
ac1cb8d3
VS
42825
42826# Do not use `cd foo && pwd` to compute absolute paths, because
42827# the directories may not exist.
42828case `pwd` in
42829.) ac_abs_builddir="$ac_dir";;
42830*)
42831 case "$ac_dir" in
42832 .) ac_abs_builddir=`pwd`;;
42833 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42834 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42835 esac;;
42836esac
42837case $ac_abs_builddir in
42838.) ac_abs_top_builddir=${ac_top_builddir}.;;
42839*)
42840 case ${ac_top_builddir}. in
42841 .) ac_abs_top_builddir=$ac_abs_builddir;;
42842 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42843 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42844 esac;;
42845esac
42846case $ac_abs_builddir in
42847.) ac_abs_srcdir=$ac_srcdir;;
42848*)
42849 case $ac_srcdir in
42850 .) ac_abs_srcdir=$ac_abs_builddir;;
42851 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42852 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42853 esac;;
42854esac
42855case $ac_abs_builddir in
42856.) ac_abs_top_srcdir=$ac_top_srcdir;;
42857*)
42858 case $ac_top_srcdir in
42859 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42860 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42861 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42862 esac;;
42863esac
a848cd7e
SC
42864
42865
42866 cd $ac_dir
42867
42868 # Check for guested configure; otherwise get Cygnus style configure.
42869 if test -f $ac_srcdir/configure.gnu; then
42870 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42871 elif test -f $ac_srcdir/configure; then
42872 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42873 elif test -f $ac_srcdir/configure.in; then
42874 ac_sub_configure=$ac_configure
42875 else
42876 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42877echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42878 ac_sub_configure=
42879 fi
42880
42881 # The recursion is here.
42882 if test -n "$ac_sub_configure"; then
42883 # Make the cache file name correct relative to the subdirectory.
42884 case $cache_file in
42885 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42886 *) # Relative path.
ac1cb8d3 42887 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42888 esac
42889
42890 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42891echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42892 # The eval makes quoting arguments work.
42893 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42894 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42895 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
42896echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
42897 { (exit 1); exit 1; }; }
42898 fi
42899
4d4ff94c 42900 cd "$ac_popdir"
a848cd7e
SC
42901 done
42902fi
42903
42904
42905echo
77ffb593 42906echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 42907echo ""
4d4ff94c 42908echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 42909echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 42910
77ffb593
JS
42911echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42912echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
42913echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 42914
77ffb593
JS
42915echo " What level of wxWidgets compatibility should be enabled?"
42916echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42917echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 42918
77ffb593 42919echo " Which libraries should wxWidgets use?"
a848cd7e
SC
42920echo " jpeg ${wxUSE_LIBJPEG-none}"
42921echo " png ${wxUSE_LIBPNG-none}"
42922echo " regex ${wxUSE_REGEX}"
42923echo " tiff ${wxUSE_LIBTIFF-none}"
42924if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42925echo " xpm ${wxUSE_LIBXPM-none}"
42926fi
42927echo " zlib ${wxUSE_ZLIB}"
42928echo " odbc ${wxUSE_ODBC}"
42929echo " expat ${wxUSE_EXPAT}"
42930echo " libmspack ${wxUSE_LIBMSPACK}"
42931echo " sdl ${wxUSE_LIBSDL}"
42932
42933echo ""
42934