]> git.saurik.com Git - wxWidgets.git/blame - configure
adding compatibility mode fallback for custom window definition procs that don't...
[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"
3fd9c298 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_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_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_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_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 WX_LARGEFILE_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 GCC_SEARCHES_USR_LOCAL_INCLUDE 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
SC
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
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
954 --enable-postscript use wxPostscriptDC device context (default for gtk+)
955 --enable-prologio not available; see contrib
956 --enable-resources not available; see contrib
957 --enable-clipboard use wxClipboard class
958 --enable-dnd use Drag'n'Drop classes
959 --enable-metafile use win32 metafiles
960 --enable-controls use all usual controls
961 --enable-accel use accelerators
962 --enable-button use wxButton class
963 --enable-bmpbutton use wxBitmapButton class
964 --enable-calendar use wxCalendarCtrl class
965 --enable-caret use wxCaret class
966 --enable-checkbox use wxCheckBox class
967 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
968 --enable-choice use wxChoice class
969 --enable-combobox use wxComboBox class
970 --enable-display use wxDisplay class
971 --enable-gauge use wxGauge class
972 --enable-grid use wxGrid class
973 --enable-imaglist use wxImageList class
974 --enable-listbook use wxListbook class
975 --enable-listbox use wxListBox class
976 --enable-listctrl use wxListCtrl class
977 --enable-notebook use wxNotebook class
978 --enable-radiobox use wxRadioBox class
979 --enable-radiobtn use wxRadioButton class
980 --enable-sash use wxSashWindow class
981 --enable-scrollbar use wxScrollBar class and scrollable windows
982 --enable-slider use wxSlider class
983 --enable-spinbtn use wxSpinButton class
984 --enable-spinctrl use wxSpinCtrl class
985 --enable-splitter use wxSplitterWindow class
986 --enable-statbmp use wxStaticBitmap class
987 --enable-statbox use wxStaticBox class
988 --enable-statline use wxStaticLine class
989 --enable-stattext use wxStaticText class
990 --enable-statusbar use wxStatusBar class
991 --enable-tabdialog use wxTabControl class
992 --enable-textctrl use wxTextCtrl class
993 --enable-togglebtn use wxToggleButton class
994 --enable-toolbar use wxToolBar class
995 --enable-tbarnative use native wxToolBar class
996 --enable-tbarsmpl use wxToolBarSimple class
997 --enable-treectrl use wxTreeCtrl class
998 --enable-tipwindow use wxTipWindow class
999 --enable-popupwin use wxPopUpWindow class
1000 --enable-commondlg use all common dialogs
1001 --enable-choicedlg use wxChoiceDialog
1002 --enable-coldlg use wxColourDialog
1003 --enable-filedlg use wxFileDialog
1004 --enable-finddlg use wxFindReplaceDialog
1005 --enable-fontdlg use wxFontDialog
1006 --enable-dirdlg use wxDirDialog
1007 --enable-msgdlg use wxMessageDialog
1008 --enable-numberdlg use wxNumberEntryDialog
1009 --enable-splash use wxSplashScreen
1010 --enable-textdlg use wxTextDialog
1011 --enable-tipdlg use startup tips
1012 --enable-progressdlg use wxProgressDialog
1013 --enable-wizarddlg use wxWizard
1014 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1015 --enable-miniframe use wxMiniFrame class
1016 --enable-tooltips use wxToolTip class
1017 --enable-splines use spline drawing code
1018 --enable-validators use wxValidator and derived classes
1019 --enable-busyinfo use wxBusyInfo
1020 --enable-joystick use wxJoystick (Linux only)
1021 --enable-metafiles use wxMetaFile (Windows only)
1022 --enable-dragimage use wxDragImage
1023 --enable-accessibility enable accessibility support
1024 --enable-palette use wxPalette class
1025 --enable-image use wxImage class
1026 --enable-gif use gif images (GIF file format)
1027 --enable-pcx use pcx images (PCX file format)
1028 --enable-iff use iff images (IFF file format)
1029 --enable-pnm use pnm images (PNM file format)
1030 --enable-xpm use xpm images (XPM file format)
1031 --enable-icocur use Windows ICO and CUR formats
77ffb593 1032 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1033 --enable-vendor=VENDOR vendor name (win32 DLL only)
1034 --disable-largefile omit support for large files
1035 --disable-gtktest do not try to compile and run a test GTK+ program
1036 --disable-gtktest Do not try to compile and run a test GTK program
1037 --disable-sdltest Do not try to compile and run a test SDL program
1038 --enable-omf use OMF object format (OS/2)
1039 --disable-precomp-headers don't use precompiled headers even if compiler can
1040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gtk use GTK+
1045 --with-motif use Motif/Lesstif
1046 --with-mac use Mac OS X
1047 --with-cocoa use Cocoa
1048 --with-wine use Wine
1049 --with-msw use MS-Windows
1050 --with-pm use OS/2 Presentation Manager
1051 --with-mgl use SciTech MGL
1052 --with-microwin use MicroWindows
1053 --with-x11 use X11
1054 --with-libpng use libpng (PNG image format)
1055 --with-libjpeg use libjpeg (JPEG file format)
1056 --with-libtiff use libtiff (TIFF file format)
1057 --with-libxpm use libxpm (XPM file format)
1058 --with-libmspack use libmspack (CHM help files loading)
1059 --with-sdl use SDL for audio on Unix
1060 --with-opengl use OpenGL (or Mesa)
1061 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1062 --with-regex enable support for wxRegEx class
1063 --with-zlib use zlib for LZW compression
1064 --with-odbc use the IODBC and wxODBC classes
1065 --with-expat enable XML support using expat parser
1066 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1067 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1068 --with-x use the X Window System
1069 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1070 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1071 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1072 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1073 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1074
1075Some influential environment variables:
dcc1b6ad
VS
1076 CC C compiler command
1077 CFLAGS C compiler flags
1078 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1079 nonstandard directory <lib dir>
1080 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1081 headers in a nonstandard directory <include dir>
1082 CPP C preprocessor
1083 CXX C++ compiler command
1084 CXXFLAGS C++ compiler flags
1085 CXXCPP C++ preprocessor
a848cd7e
SC
1086
1087Use these variables to override the choices made by `configure' or to help
1088it to find libraries and programs with nonstandard names/locations.
1089
77ffb593 1090Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1091_ACEOF
1092fi
1093
1094if test "$ac_init_help" = "recursive"; then
1095 # If there are subdirs, report their specific --help.
1096 ac_popdir=`pwd`
1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098 test -d $ac_dir || continue
1099 ac_builddir=.
1100
1101if test "$ac_dir" != .; then
1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103 # A "../" for each directory in $ac_dir_suffix.
1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105else
1106 ac_dir_suffix= ac_top_builddir=
1107fi
1108
1109case $srcdir in
1110 .) # No --srcdir option. We are building in place.
1111 ac_srcdir=.
1112 if test -z "$ac_top_builddir"; then
1113 ac_top_srcdir=.
1114 else
1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116 fi ;;
1117 [\\/]* | ?:[\\/]* ) # Absolute path.
1118 ac_srcdir=$srcdir$ac_dir_suffix;
1119 ac_top_srcdir=$srcdir ;;
1120 *) # Relative path.
1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123esac
ac1cb8d3
VS
1124
1125# Do not use `cd foo && pwd` to compute absolute paths, because
1126# the directories may not exist.
1127case `pwd` in
1128.) ac_abs_builddir="$ac_dir";;
1129*)
1130 case "$ac_dir" in
1131 .) ac_abs_builddir=`pwd`;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_builddir=${ac_top_builddir}.;;
1138*)
1139 case ${ac_top_builddir}. in
1140 .) ac_abs_top_builddir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143 esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_srcdir=$ac_srcdir;;
1147*)
1148 case $ac_srcdir in
1149 .) ac_abs_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_top_srcdir=$ac_top_srcdir;;
1156*)
1157 case $ac_top_srcdir in
1158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161 esac;;
1162esac
a848cd7e
SC
1163
1164 cd $ac_dir
1165 # Check for guested configure; otherwise get Cygnus style configure.
1166 if test -f $ac_srcdir/configure.gnu; then
1167 echo
1168 $SHELL $ac_srcdir/configure.gnu --help=recursive
1169 elif test -f $ac_srcdir/configure; then
1170 echo
1171 $SHELL $ac_srcdir/configure --help=recursive
1172 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1173 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1174 echo
1175 $ac_configure --help
1176 else
1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 fi
dcc1b6ad 1179 cd $ac_popdir
a848cd7e
SC
1180 done
1181fi
1182
1183test -n "$ac_init_help" && exit 0
1184if $ac_init_version; then
1185 cat <<\_ACEOF
77ffb593 1186wxWidgets configure 2.5.2
ac1cb8d3 1187generated by GNU Autoconf 2.59
a848cd7e 1188
ac1cb8d3 1189Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1190This configure script is free software; the Free Software Foundation
1191gives unlimited permission to copy, distribute and modify it.
1192_ACEOF
1193 exit 0
1194fi
1195exec 5>config.log
1196cat >&5 <<_ACEOF
1197This file contains any messages produced by compilers while
1198running configure, to aid debugging if configure makes a mistake.
1199
77ffb593 1200It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1201generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1202
1203 $ $0 $@
1204
1205_ACEOF
1206{
1207cat <<_ASUNAME
1208## --------- ##
1209## Platform. ##
1210## --------- ##
1211
1212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217
1218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220
1221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228
1229_ASUNAME
1230
1231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232for as_dir in $PATH
1233do
1234 IFS=$as_save_IFS
1235 test -z "$as_dir" && as_dir=.
1236 echo "PATH: $as_dir"
1237done
1238
1239} >&5
1240
1241cat >&5 <<_ACEOF
1242
1243
1244## ----------- ##
1245## Core tests. ##
1246## ----------- ##
1247
1248_ACEOF
1249
1250
1251# Keep a trace of the command line.
1252# Strip out --no-create and --no-recursion so they do not pile up.
1253# Strip out --silent because we don't want to record it for future runs.
1254# Also quote any args containing shell meta-characters.
1255# Make two passes to allow for proper duplicate-argument suppression.
1256ac_configure_args=
1257ac_configure_args0=
1258ac_configure_args1=
1259ac_sep=
1260ac_must_keep_next=false
1261for ac_pass in 1 2
1262do
1263 for ac_arg
1264 do
1265 case $ac_arg in
1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 continue ;;
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 esac
1273 case $ac_pass in
1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 2)
1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277 if test $ac_must_keep_next = true; then
ac1cb8d3 1278 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1279 else
ac1cb8d3
VS
1280 case $ac_arg in
1281 *=* | --config-cache | -C | -disable-* | --disable-* \
1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284 | -with-* | --with-* | -without-* | --without-* | --x)
1285 case "$ac_configure_args0 " in
1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287 esac
1288 ;;
1289 -* ) ac_must_keep_next=true ;;
1290 esac
a848cd7e
SC
1291 fi
1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293 # Get rid of the leading space.
1294 ac_sep=" "
1295 ;;
1296 esac
1297 done
1298done
1299$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301
1302# When interrupted or exit'd, cleanup temporary files, and complete
1303# config.log. We remove comments because anyway the quotes in there
1304# would cause problems or look ugly.
1305# WARNING: Be sure not to use single quotes in there, as some shells,
1306# such as our DU 5.0 friend, will then `close' the trap.
1307trap 'exit_status=$?
1308 # Save into config.log some information that might help in debugging.
1309 {
1310 echo
1311
1312 cat <<\_ASBOX
1313## ---------------- ##
1314## Cache variables. ##
1315## ---------------- ##
1316_ASBOX
1317 echo
1318 # The following way of writing the cache mishandles newlines in values,
1319{
1320 (set) 2>&1 |
1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322 *ac_space=\ *)
1323 sed -n \
ac1cb8d3
VS
1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1326 ;;
1327 *)
1328 sed -n \
ac1cb8d3 1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1330 ;;
1331 esac;
1332}
1333 echo
1334
1335 cat <<\_ASBOX
1336## ----------------- ##
1337## Output variables. ##
1338## ----------------- ##
1339_ASBOX
1340 echo
1341 for ac_var in $ac_subst_vars
1342 do
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1345 done | sort
1346 echo
1347
1348 if test -n "$ac_subst_files"; then
1349 cat <<\_ASBOX
1350## ------------- ##
1351## Output files. ##
1352## ------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_files
1356 do
1357 eval ac_val=$`echo $ac_var`
ac1cb8d3 1358 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1359 done | sort
1360 echo
1361 fi
1362
1363 if test -s confdefs.h; then
1364 cat <<\_ASBOX
1365## ----------- ##
1366## confdefs.h. ##
1367## ----------- ##
1368_ASBOX
1369 echo
1370 sed "/^$/d" confdefs.h | sort
1371 echo
1372 fi
1373 test "$ac_signal" != 0 &&
1374 echo "$as_me: caught signal $ac_signal"
1375 echo "$as_me: exit $exit_status"
1376 } >&5
ac1cb8d3 1377 rm -f core *.core &&
a848cd7e
SC
1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379 exit $exit_status
1380 ' 0
1381for ac_signal in 1 2 13 15; do
1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383done
1384ac_signal=0
1385
1386# confdefs.h avoids OS command line length limits that DEFS can exceed.
1387rm -rf conftest* confdefs.h
1388# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389echo >confdefs.h
1390
1391# Predefined preprocessor variables.
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_NAME "$PACKAGE_NAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_VERSION "$PACKAGE_VERSION"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_STRING "$PACKAGE_STRING"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415_ACEOF
1416
1417
1418# Let the site file select an alternate cache file if it wants to.
1419# Prefer explicitly selected file to automatically selected ones.
1420if test -z "$CONFIG_SITE"; then
1421 if test "x$prefix" != xNONE; then
1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423 else
1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1425 fi
1426fi
1427for ac_site_file in $CONFIG_SITE; do
1428 if test -r "$ac_site_file"; then
1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430echo "$as_me: loading site script $ac_site_file" >&6;}
1431 sed 's/^/| /' "$ac_site_file" >&5
1432 . "$ac_site_file"
1433 fi
1434done
1435
1436if test -r "$cache_file"; then
1437 # Some versions of bash will fail to source /dev/null (special
1438 # files actually), so we avoid doing that.
1439 if test -f "$cache_file"; then
1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441echo "$as_me: loading cache $cache_file" >&6;}
1442 case $cache_file in
1443 [\\/]* | ?:[\\/]* ) . $cache_file;;
1444 *) . ./$cache_file;;
1445 esac
1446 fi
1447else
1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449echo "$as_me: creating cache $cache_file" >&6;}
1450 >$cache_file
1451fi
1452
1453# Check that the precious variables saved in the cache have kept the same
1454# value.
1455ac_cache_corrupted=false
1456for ac_var in `(set) 2>&1 |
ac1cb8d3 1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459 eval ac_new_set=\$ac_env_${ac_var}_set
1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461 eval ac_new_val="\$ac_env_${ac_var}_value"
1462 case $ac_old_set,$ac_new_set in
1463 set,)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,set)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,);;
1472 *)
1473 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1474 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1475echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1476 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1477echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1478 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1479echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1480 ac_cache_corrupted=:
a848cd7e
SC
1481 fi;;
1482 esac
1483 # Pass precious variables to config.status.
1484 if test "$ac_new_set" = set; then
1485 case $ac_new_val in
1486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1487 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 *) ac_arg=$ac_var=$ac_new_val ;;
1489 esac
1490 case " $ac_configure_args " in
1491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1492 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 esac
1494 fi
1495done
1496if $ac_cache_corrupted; then
1497 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1498echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1499 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1500echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1501 { (exit 1); exit 1; }; }
1502fi
1503
1504ac_ext=c
1505ac_cpp='$CPP $CPPFLAGS'
1506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509
1510
1511
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
1539ac_aux_dir=
1540for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break
1545 elif test -f $ac_dir/install.sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install.sh -c"
1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
1553 fi
1554done
1555if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558 { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564# Make sure we can run config.sub.
1565$ac_config_sub sun4 >/dev/null 2>&1 ||
1566 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1567echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1568 { (exit 1); exit 1; }; }
1569
1570echo "$as_me:$LINENO: checking build system type" >&5
1571echo $ECHO_N "checking build system type... $ECHO_C" >&6
1572if test "${ac_cv_build+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 ac_cv_build_alias=$build_alias
1576test -z "$ac_cv_build_alias" &&
1577 ac_cv_build_alias=`$ac_config_guess`
1578test -z "$ac_cv_build_alias" &&
1579 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1580echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1581 { (exit 1); exit 1; }; }
1582ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1589echo "${ECHO_T}$ac_cv_build" >&6
1590build=$ac_cv_build
1591build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596echo "$as_me:$LINENO: checking host system type" >&5
1597echo $ECHO_N "checking host system type... $ECHO_C" >&6
1598if test "${ac_cv_host+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_host_alias=$host_alias
1602test -z "$ac_cv_host_alias" &&
1603 ac_cv_host_alias=$ac_cv_build_alias
1604ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1606echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609fi
1610echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1611echo "${ECHO_T}$ac_cv_host" >&6
1612host=$ac_cv_host
1613host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618echo "$as_me:$LINENO: checking target system type" >&5
1619echo $ECHO_N "checking target system type... $ECHO_C" >&6
1620if test "${ac_cv_target+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622else
1623 ac_cv_target_alias=$target_alias
1624test "x$ac_cv_target_alias" = "x" &&
1625 ac_cv_target_alias=$ac_cv_host_alias
1626ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1628echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631fi
1632echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1633echo "${ECHO_T}$ac_cv_target" >&6
1634target=$ac_cv_target
1635target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640# The aliases save the names the user supplied, while $host etc.
1641# will get canonicalized.
1642test -n "$target_alias" &&
1643 test "$program_prefix$program_suffix$program_transform_name" = \
1644 NONENONEs,x,x, &&
1645 program_prefix=${target_alias}-
1646
1647
1648
1649WX_MAJOR_VERSION_NUMBER=2
1650WX_MINOR_VERSION_NUMBER=5
de59c161 1651WX_RELEASE_NUMBER=2
a848cd7e
SC
1652
1653WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1654WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1655
1656WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1657
de59c161 1658WX_CURRENT=2
a848cd7e
SC
1659WX_REVISION=0
1660WX_AGE=0
1661
1662
1663
1664USE_UNIX=1
1665USE_OS2=0
1666USE_WIN32=0
1667USE_DOS=0
1668USE_BEOS=0
1669USE_MAC=0
1670
1671USE_AIX=
1672USE_BSD= USE_DARWIN= USE_FREEBSD=
1673USE_GNU= USE_HPUX=
1674USE_LINUX=
1675USE_NETBSD=
1676USE_OPENBSD=
1677USE_OSF= USE_SGI=
1678USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1679USE_ULTRIX=
1680USE_UNIXWARE=
1681
1682USE_ALPHA=
1683
1684NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1685
1686ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1687
1688DEFAULT_wxUSE_COCOA=0
1689DEFAULT_wxUSE_GTK=0
1690DEFAULT_wxUSE_MAC=0
1691DEFAULT_wxUSE_MGL=0
1692DEFAULT_wxUSE_MICROWIN=0
1693DEFAULT_wxUSE_MOTIF=0
1694DEFAULT_wxUSE_MSW=0
1695DEFAULT_wxUSE_PM=0
1696DEFAULT_wxUSE_X11=0
1697
1698DEFAULT_DEFAULT_wxUSE_COCOA=0
1699DEFAULT_DEFAULT_wxUSE_GTK=0
1700DEFAULT_DEFAULT_wxUSE_MAC=0
1701DEFAULT_DEFAULT_wxUSE_MGL=0
1702DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1703DEFAULT_DEFAULT_wxUSE_MOTIF=0
1704DEFAULT_DEFAULT_wxUSE_MSW=0
1705DEFAULT_DEFAULT_wxUSE_PM=0
1706DEFAULT_DEFAULT_wxUSE_X11=0
1707
1708PROGRAM_EXT=
1709SO_SUFFIX=so
1710SAMPLES_RPATH_FLAG=
1711SAMPLES_RPATH_POSTLINK=
1712
1713case "${host}" in
1714 *-hp-hpux* )
1715 USE_HPUX=1
1716 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1717 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1718 SO_SUFFIX=sl
1719 cat >>confdefs.h <<\_ACEOF
1720#define __HPUX__ 1
1721_ACEOF
1722
1723 ;;
1724 *-*-linux* )
1725 USE_LINUX=1
1726 cat >>confdefs.h <<\_ACEOF
1727#define __LINUX__ 1
1728_ACEOF
1729
1730 TMP=`uname -m`
1731 if test "x$TMP" = "xalpha"; then
1732 USE_ALPHA=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __ALPHA__ 1
1735_ACEOF
1736
1737 fi
1738 DEFAULT_DEFAULT_wxUSE_GTK=1
1739 ;;
1740 *-*-gnu* | *-*-k*bsd*-gnu )
1741 USE_GNU=1
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-irix5* | *-*-irix6* )
1753 USE_SGI=1
1754 USE_SVR4=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __SGI__ 1
1757_ACEOF
1758
1759 cat >>confdefs.h <<\_ACEOF
1760#define __SVR4__ 1
1761_ACEOF
1762
1763 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1764 ;;
1765 *-*-solaris2* )
1766 USE_SUN=1
1767 USE_SOLARIS=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SUN__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SOLARIS__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1783 ;;
1784 *-*-sunos4* )
1785 USE_SUN=1
1786 USE_SUNOS=1
1787 USE_BSD=1
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SUN__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SUNOS__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __BSD__ 1
1798_ACEOF
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 ;;
1802 *-*-freebsd*)
1803 USE_BSD=1
1804 USE_FREEBSD=1
1805 cat >>confdefs.h <<\_ACEOF
1806#define __FREEBSD__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __BSD__ 1
1811_ACEOF
1812
1813 DEFAULT_DEFAULT_wxUSE_GTK=1
1814 ;;
1815 *-*-openbsd*)
1816 USE_BSD=1
1817 USE_OPENBSD=1
1818 cat >>confdefs.h <<\_ACEOF
1819#define __OPENBSD__ 1
1820_ACEOF
1821
1822 cat >>confdefs.h <<\_ACEOF
1823#define __BSD__ 1
1824_ACEOF
1825
1826 DEFAULT_DEFAULT_wxUSE_GTK=1
1827 ;;
1828 *-*-netbsd*)
1829 USE_BSD=1
1830 USE_NETBSD=1
1831 cat >>confdefs.h <<\_ACEOF
1832#define __NETBSD__ 1
1833_ACEOF
1834
1835 cat >>confdefs.h <<\_ACEOF
1836#define __BSD__ 1
1837_ACEOF
1838
1839 DEFAULT_DEFAULT_wxUSE_GTK=1
1840 ;;
1841 *-*-osf* )
1842 USE_ALPHA=1
1843 USE_OSF=1
1844 cat >>confdefs.h <<\_ACEOF
1845#define __ALPHA__ 1
1846_ACEOF
1847
1848 cat >>confdefs.h <<\_ACEOF
1849#define __OSF__ 1
1850_ACEOF
1851
1852 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1853 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1854 ;;
1855 *-*-dgux5* )
1856 USE_ALPHA=1
1857 USE_SVR4=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __SVR4__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 ;;
1868 *-*-sysv5* )
1869 USE_SYSV=1
1870 USE_SVR4=1
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SYSV__ 1
1873_ACEOF
1874
1875 cat >>confdefs.h <<\_ACEOF
1876#define __SVR4__ 1
1877_ACEOF
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 ;;
1881 *-*-aix* )
1882 USE_AIX=1
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 SO_SUFFIX=a
1886 cat >>confdefs.h <<\_ACEOF
1887#define __AIX__ 1
1888_ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SYSV__ 1
1892_ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SVR4__ 1
1896_ACEOF
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900
1901 *-*-*UnixWare*)
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 USE_UNIXWARE=1
1905 cat >>confdefs.h <<\_ACEOF
1906#define __UNIXWARE__ 1
1907_ACEOF
1908
1909 ;;
1910
1911 *-*-cygwin* | *-*-mingw32* )
1912 SO_SUFFIX=dll
1913 PROGRAM_EXT=".exe"
1914 RESCOMP=windres
1915 DEFAULT_DEFAULT_wxUSE_MSW=1
1916 ;;
1917
1918 *-pc-msdosdjgpp )
1919 USE_UNIX=0
1920 USE_DOS=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __DOS__ 1
1923_ACEOF
1924
1925 PROGRAM_EXT=".exe"
1926 DEFAULT_DEFAULT_wxUSE_MGL=1
1927 LIBS="$LIBS -lstdc++"
1928 ;;
1929
1930 *-pc-os2_emx | *-pc-os2-emx )
1931 cat >>confdefs.h <<\_ACEOF
1932#define __EMX__ 1
1933_ACEOF
1934
1935 USE_OS2=1
1936 cat >>confdefs.h <<\_ACEOF
1937#define __OS2__ 1
1938_ACEOF
1939
1940 PROGRAM_EXT=".exe"
1941 DEFAULT_DEFAULT_wxUSE_PM=1
1942 CXX=gcc
1943 LDFLAGS="$LDFLAGS -Zcrtdll"
1944 ac_executable_extensions=".exe"
1945 export ac_executable_extensions
1946 ac_save_IFS="$IFS"
1947 IFS='\\'
1948 ac_TEMP_PATH=
1949 for ac_dir in $PATH; do
1950 IFS=$ac_save_IFS
1951 if test -z "$ac_TEMP_PATH"; then
1952 ac_TEMP_PATH="$ac_dir"
1953 else
1954 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1955 fi
1956 done
1957 export PATH="$ac_TEMP_PATH"
1958 unset ac_TEMP_PATH
1959 ;;
1960
1961 powerpc-*-darwin* )
1962 USE_BSD=1
1963 USE_DARWIN=1
1964 SO_SUFFIX=dylib
1965 cat >>confdefs.h <<\_ACEOF
1966#define __BSD__ 1
1967_ACEOF
1968
1969 cat >>confdefs.h <<\_ACEOF
1970#define __DARWIN__ 1
1971_ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974#define __POWERPC__ 1
1975_ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978#define TARGET_CARBON 1
1979_ACEOF
1980
1981 DEFAULT_DEFAULT_wxUSE_MAC=1
1982 ;;
1983
1984 *-*-beos* )
1985 USE_BEOS=1
1986 cat >>confdefs.h <<\_ACEOF
1987#define __BEOS__ 1
1988_ACEOF
1989
1990 ;;
1991
1992 *)
1993 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1994echo "$as_me: error: unknown system type ${host}." >&2;}
1995 { (exit 1); exit 1; }; }
1996esac
1997
1998
1999
2000
2001 wx_arg_cache_file="configarg.cache"
2002 echo "loading argument cache $wx_arg_cache_file"
2003 rm -f ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}
2006
2007
2008DEBUG_CONFIGURE=0
2009if test $DEBUG_CONFIGURE = 1; then
2010 DEFAULT_wxUSE_UNIVERSAL=no
2011 DEFAULT_wxUSE_STL=no
2012
2013 DEFAULT_wxUSE_NANOX=no
2014
2015 DEFAULT_wxUSE_THREADS=yes
2016
2017 DEFAULT_wxUSE_SHARED=yes
2018 DEFAULT_wxUSE_OPTIMISE=no
2019 DEFAULT_wxUSE_PROFILE=no
2020 DEFAULT_wxUSE_NO_DEPS=no
2021 DEFAULT_wxUSE_NO_RTTI=no
2022 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2023 DEFAULT_wxUSE_PERMISSIVE=no
2024 DEFAULT_wxUSE_DEBUG_FLAG=yes
2025 DEFAULT_wxUSE_DEBUG_INFO=yes
2026 DEFAULT_wxUSE_DEBUG_GDB=yes
2027 DEFAULT_wxUSE_MEM_TRACING=no
2028 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2029 DEFAULT_wxUSE_DMALLOC=no
2030 DEFAULT_wxUSE_APPLE_IEEE=no
2031
2032 DEFAULT_wxUSE_EXCEPTIONS=no
2033 DEFAULT_wxUSE_LOG=yes
2034 DEFAULT_wxUSE_LOGWINDOW=no
2035 DEFAULT_wxUSE_LOGGUI=no
2036 DEFAULT_wxUSE_LOGDIALOG=no
2037
2038 DEFAULT_wxUSE_GUI=yes
2039 DEFAULT_wxUSE_CONTROLS=no
2040
2041 DEFAULT_wxUSE_REGEX=no
2042 DEFAULT_wxUSE_XML=no
2043 DEFAULT_wxUSE_EXPAT=no
2044 DEFAULT_wxUSE_ZLIB=no
2045 DEFAULT_wxUSE_LIBPNG=no
2046 DEFAULT_wxUSE_LIBJPEG=no
2047 DEFAULT_wxUSE_LIBTIFF=no
2048 DEFAULT_wxUSE_LIBXPM=no
2049 DEFAULT_wxUSE_LIBMSPACK=no
2050 DEFAULT_wxUSE_LIBSDL=no
2051 DEFAULT_wxUSE_ODBC=no
2052 DEFAULT_wxUSE_OPENGL=no
2053
2054 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2055 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2056 DEFAULT_wxUSE_STD_IOSTREAM=no
2057 DEFAULT_wxUSE_CMDLINE_PARSER=no
2058 DEFAULT_wxUSE_DATETIME=no
2059 DEFAULT_wxUSE_TIMER=no
2060 DEFAULT_wxUSE_STOPWATCH=no
2061 DEFAULT_wxUSE_FILE=no
2062 DEFAULT_wxUSE_FFILE=no
2063 DEFAULT_wxUSE_TEXTBUFFER=no
2064 DEFAULT_wxUSE_TEXTFILE=no
2065 DEFAULT_wxUSE_SOUND=no
2066 DEFAULT_wxUSE_INTL=no
2067 DEFAULT_wxUSE_CONFIG=no
2068 DEFAULT_wxUSE_FONTMAP=no
2069 DEFAULT_wxUSE_STREAMS=no
2070 DEFAULT_wxUSE_SOCKETS=no
2071 DEFAULT_wxUSE_OLE=no
2072 DEFAULT_wxUSE_DATAOBJ=no
2073 DEFAULT_wxUSE_DIALUP_MANAGER=no
2074 DEFAULT_wxUSE_JOYSTICK=no
2075 DEFAULT_wxUSE_DYNLIB_CLASS=no
2076 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2077 DEFAULT_wxUSE_LONGLONG=no
2078 DEFAULT_wxUSE_GEOMETRY=no
2079
2080 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2081 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2082 DEFAULT_wxUSE_POSTSCRIPT=no
2083
2084 DEFAULT_wxUSE_CLIPBOARD=no
2085 DEFAULT_wxUSE_TOOLTIPS=no
2086 DEFAULT_wxUSE_DRAG_AND_DROP=no
2087 DEFAULT_wxUSE_DRAGIMAGE=no
2088 DEFAULT_wxUSE_SPLINES=no
2089
8a7b1113 2090 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2091 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2092 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2093 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2094
2095 DEFAULT_wxUSE_RESOURCES=no
2096 DEFAULT_wxUSE_CONSTRAINTS=no
2097 DEFAULT_wxUSE_IPC=no
2098 DEFAULT_wxUSE_HELP=no
2099 DEFAULT_wxUSE_MS_HTML_HELP=no
2100 DEFAULT_wxUSE_WXHTML_HELP=no
2101 DEFAULT_wxUSE_TREELAYOUT=no
2102 DEFAULT_wxUSE_METAFILE=no
2103 DEFAULT_wxUSE_MIMETYPE=no
2104 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2105 DEFAULT_wxUSE_PROTOCOL=no
2106 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2107 DEFAULT_wxUSE_PROTOCOL_FTP=no
2108 DEFAULT_wxUSE_PROTOCOL_FILE=no
2109 DEFAULT_wxUSE_URL=no
2110
2111 DEFAULT_wxUSE_COMMONDLGS=no
2112 DEFAULT_wxUSE_CHOICEDLG=no
2113 DEFAULT_wxUSE_COLOURDLG=no
2114 DEFAULT_wxUSE_DIRDLG=no
2115 DEFAULT_wxUSE_FILEDLG=no
2116 DEFAULT_wxUSE_FINDREPLDLG=no
2117 DEFAULT_wxUSE_FONTDLG=no
2118 DEFAULT_wxUSE_MSGDLG=no
2119 DEFAULT_wxUSE_NUMBERDLG=no
2120 DEFAULT_wxUSE_TEXTDLG=no
2121 DEFAULT_wxUSE_SPLASH=no
2122 DEFAULT_wxUSE_STARTUP_TIPS=no
2123 DEFAULT_wxUSE_PROGRESSDLG=no
2124 DEFAULT_wxUSE_WIZARDDLG=no
2125
2126 DEFAULT_wxUSE_MENUS=no
2127 DEFAULT_wxUSE_MINIFRAME=no
2128 DEFAULT_wxUSE_HTML=no
2129 DEFAULT_wxUSE_FILESYSTEM=no
2130 DEFAULT_wxUSE_FS_INET=no
2131 DEFAULT_wxUSE_FS_ZIP=no
2132 DEFAULT_wxUSE_BUSYINFO=no
2133 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2134 DEFAULT_wxUSE_VALIDATORS=no
2135
2136 DEFAULT_wxUSE_ACCEL=no
2137 DEFAULT_wxUSE_BUTTON=no
2138 DEFAULT_wxUSE_BMPBUTTON=no
2139 DEFAULT_wxUSE_CALCTRL=no
2140 DEFAULT_wxUSE_CARET=no
2141 DEFAULT_wxUSE_CHECKBOX=no
2142 DEFAULT_wxUSE_CHECKLST=no
2143 DEFAULT_wxUSE_CHOICE=no
2144 DEFAULT_wxUSE_COMBOBOX=no
2145 DEFAULT_wxUSE_DISPLAY=no
2146 DEFAULT_wxUSE_GAUGE=no
2147 DEFAULT_wxUSE_GRID=no
2148 DEFAULT_wxUSE_IMAGLIST=no
2149 DEFAULT_wxUSE_LISTBOOK=no
2150 DEFAULT_wxUSE_LISTBOX=no
2151 DEFAULT_wxUSE_LISTCTRL=no
2152 DEFAULT_wxUSE_NOTEBOOK=no
2153 DEFAULT_wxUSE_RADIOBOX=no
2154 DEFAULT_wxUSE_RADIOBTN=no
2155 DEFAULT_wxUSE_SASH=no
2156 DEFAULT_wxUSE_SCROLLBAR=no
2157 DEFAULT_wxUSE_SLIDER=no
2158 DEFAULT_wxUSE_SPINBTN=no
2159 DEFAULT_wxUSE_SPINCTRL=no
2160 DEFAULT_wxUSE_SPLITTER=no
2161 DEFAULT_wxUSE_STATBMP=no
2162 DEFAULT_wxUSE_STATBOX=no
2163 DEFAULT_wxUSE_STATLINE=no
2164 DEFAULT_wxUSE_STATTEXT=no
2165 DEFAULT_wxUSE_STATUSBAR=yes
2166 DEFAULT_wxUSE_TABDIALOG=no
2167 DEFAULT_wxUSE_TEXTCTRL=no
2168 DEFAULT_wxUSE_TOGGLEBTN=no
2169 DEFAULT_wxUSE_TOOLBAR=no
2170 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2171 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2172 DEFAULT_wxUSE_TREECTRL=no
2173 DEFAULT_wxUSE_POPUPWIN=no
2174 DEFAULT_wxUSE_TIPWINDOW=no
2175
2176 DEFAULT_wxUSE_UNICODE=no
2177 DEFAULT_wxUSE_UNICODE_MSLU=no
2178 DEFAULT_wxUSE_WCSRTOMBS=no
2179
2180 DEFAULT_wxUSE_PALETTE=no
2181 DEFAULT_wxUSE_IMAGE=no
2182 DEFAULT_wxUSE_GIF=no
2183 DEFAULT_wxUSE_PCX=no
2184 DEFAULT_wxUSE_PNM=no
2185 DEFAULT_wxUSE_IFF=no
2186 DEFAULT_wxUSE_XPM=no
2187 DEFAULT_wxUSE_ICO_CUR=no
2188 DEFAULT_wxUSE_ACCESSIBILITY=no
2189
2190 DEFAULT_wxUSE_MONOLITHIC=no
2191 DEFAULT_wxUSE_PLUGINS=no
2192 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2193else
2194 DEFAULT_wxUSE_UNIVERSAL=no
2195 DEFAULT_wxUSE_STL=no
2196
2197 DEFAULT_wxUSE_NANOX=no
2198
2199 DEFAULT_wxUSE_THREADS=yes
2200
2201 DEFAULT_wxUSE_SHARED=yes
2202 DEFAULT_wxUSE_OPTIMISE=yes
2203 DEFAULT_wxUSE_PROFILE=no
2204 DEFAULT_wxUSE_NO_DEPS=no
2205 DEFAULT_wxUSE_NO_RTTI=no
2206 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2207 DEFAULT_wxUSE_PERMISSIVE=no
2208 DEFAULT_wxUSE_DEBUG_FLAG=no
2209 DEFAULT_wxUSE_DEBUG_INFO=no
2210 DEFAULT_wxUSE_DEBUG_GDB=no
2211 DEFAULT_wxUSE_MEM_TRACING=no
2212 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2213 DEFAULT_wxUSE_DMALLOC=no
2214 DEFAULT_wxUSE_APPLE_IEEE=yes
2215
2216 DEFAULT_wxUSE_EXCEPTIONS=yes
2217 DEFAULT_wxUSE_LOG=yes
2218 DEFAULT_wxUSE_LOGWINDOW=yes
2219 DEFAULT_wxUSE_LOGGUI=yes
2220 DEFAULT_wxUSE_LOGDIALOG=yes
2221
2222 DEFAULT_wxUSE_GUI=yes
2223
2224 DEFAULT_wxUSE_REGEX=yes
2225 DEFAULT_wxUSE_XML=yes
2226 DEFAULT_wxUSE_EXPAT=yes
2227 DEFAULT_wxUSE_ZLIB=yes
2228 DEFAULT_wxUSE_LIBPNG=yes
2229 DEFAULT_wxUSE_LIBJPEG=yes
2230 DEFAULT_wxUSE_LIBTIFF=yes
2231 DEFAULT_wxUSE_LIBXPM=yes
2232 DEFAULT_wxUSE_LIBMSPACK=yes
2233 DEFAULT_wxUSE_LIBSDL=no
2234 DEFAULT_wxUSE_ODBC=no
2235 DEFAULT_wxUSE_OPENGL=no
2236
2237 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2238 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2239 DEFAULT_wxUSE_STD_IOSTREAM=no
2240 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2241 DEFAULT_wxUSE_DATETIME=yes
2242 DEFAULT_wxUSE_TIMER=yes
2243 DEFAULT_wxUSE_STOPWATCH=yes
2244 DEFAULT_wxUSE_FILE=yes
2245 DEFAULT_wxUSE_FFILE=yes
2246 DEFAULT_wxUSE_TEXTBUFFER=yes
2247 DEFAULT_wxUSE_TEXTFILE=yes
2248 DEFAULT_wxUSE_SOUND=yes
2249 DEFAULT_wxUSE_INTL=yes
2250 DEFAULT_wxUSE_CONFIG=yes
2251 DEFAULT_wxUSE_FONTMAP=yes
2252 DEFAULT_wxUSE_STREAMS=yes
2253 DEFAULT_wxUSE_SOCKETS=yes
2254 DEFAULT_wxUSE_OLE=yes
2255 DEFAULT_wxUSE_DATAOBJ=yes
2256 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2257 DEFAULT_wxUSE_JOYSTICK=yes
2258 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2259 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2260 DEFAULT_wxUSE_LONGLONG=yes
2261 DEFAULT_wxUSE_GEOMETRY=yes
2262
2263 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2264 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2265 DEFAULT_wxUSE_POSTSCRIPT=yes
2266
2267 DEFAULT_wxUSE_CLIPBOARD=yes
2268 DEFAULT_wxUSE_TOOLTIPS=yes
2269 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2270 DEFAULT_wxUSE_DRAGIMAGE=yes
2271 DEFAULT_wxUSE_SPLINES=yes
2272
8a7b1113 2273 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2274 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2275 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2276 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2277
2278 DEFAULT_wxUSE_RESOURCES=no
2279 DEFAULT_wxUSE_CONSTRAINTS=yes
2280 DEFAULT_wxUSE_IPC=yes
2281 DEFAULT_wxUSE_HELP=yes
2282 DEFAULT_wxUSE_MS_HTML_HELP=yes
2283 DEFAULT_wxUSE_WXHTML_HELP=yes
2284 DEFAULT_wxUSE_TREELAYOUT=yes
2285 DEFAULT_wxUSE_METAFILE=yes
2286 DEFAULT_wxUSE_MIMETYPE=yes
2287 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2288 DEFAULT_wxUSE_PROTOCOL=yes
2289 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2290 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2291 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2292 DEFAULT_wxUSE_URL=yes
2293
2294 DEFAULT_wxUSE_COMMONDLGS=yes
2295 DEFAULT_wxUSE_CHOICEDLG=yes
2296 DEFAULT_wxUSE_COLOURDLG=yes
2297 DEFAULT_wxUSE_DIRDLG=yes
2298 DEFAULT_wxUSE_FILEDLG=yes
2299 DEFAULT_wxUSE_FINDREPLDLG=yes
2300 DEFAULT_wxUSE_FONTDLG=yes
2301 DEFAULT_wxUSE_MSGDLG=yes
2302 DEFAULT_wxUSE_NUMBERDLG=yes
2303 DEFAULT_wxUSE_TEXTDLG=yes
2304 DEFAULT_wxUSE_SPLASH=yes
2305 DEFAULT_wxUSE_STARTUP_TIPS=yes
2306 DEFAULT_wxUSE_PROGRESSDLG=yes
2307 DEFAULT_wxUSE_WIZARDDLG=yes
2308
2309 DEFAULT_wxUSE_MENUS=yes
2310 DEFAULT_wxUSE_MINIFRAME=yes
2311 DEFAULT_wxUSE_HTML=yes
2312 DEFAULT_wxUSE_FILESYSTEM=yes
2313 DEFAULT_wxUSE_FS_INET=yes
2314 DEFAULT_wxUSE_FS_ZIP=yes
2315 DEFAULT_wxUSE_BUSYINFO=yes
2316 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2317 DEFAULT_wxUSE_VALIDATORS=yes
2318
2319 DEFAULT_wxUSE_ACCEL=yes
2320 DEFAULT_wxUSE_BUTTON=yes
2321 DEFAULT_wxUSE_BMPBUTTON=yes
2322 DEFAULT_wxUSE_CALCTRL=yes
2323 DEFAULT_wxUSE_CARET=yes
2324 DEFAULT_wxUSE_CHECKBOX=yes
2325 DEFAULT_wxUSE_CHECKLST=yes
2326 DEFAULT_wxUSE_CHOICE=yes
2327 DEFAULT_wxUSE_COMBOBOX=yes
2328 DEFAULT_wxUSE_DISPLAY=yes
2329 DEFAULT_wxUSE_GAUGE=yes
2330 DEFAULT_wxUSE_GRID=yes
2331 DEFAULT_wxUSE_IMAGLIST=yes
2332 DEFAULT_wxUSE_LISTBOOK=yes
2333 DEFAULT_wxUSE_LISTBOX=yes
2334 DEFAULT_wxUSE_LISTCTRL=yes
2335 DEFAULT_wxUSE_NOTEBOOK=yes
2336 DEFAULT_wxUSE_RADIOBOX=yes
2337 DEFAULT_wxUSE_RADIOBTN=yes
2338 DEFAULT_wxUSE_SASH=yes
2339 DEFAULT_wxUSE_SCROLLBAR=yes
2340 DEFAULT_wxUSE_SLIDER=yes
2341 DEFAULT_wxUSE_SPINBTN=yes
2342 DEFAULT_wxUSE_SPINCTRL=yes
2343 DEFAULT_wxUSE_SPLITTER=yes
2344 DEFAULT_wxUSE_STATBMP=yes
2345 DEFAULT_wxUSE_STATBOX=yes
2346 DEFAULT_wxUSE_STATLINE=yes
2347 DEFAULT_wxUSE_STATTEXT=yes
2348 DEFAULT_wxUSE_STATUSBAR=yes
2349 DEFAULT_wxUSE_TABDIALOG=no
2350 DEFAULT_wxUSE_TEXTCTRL=yes
2351 DEFAULT_wxUSE_TOGGLEBTN=yes
2352 DEFAULT_wxUSE_TOOLBAR=yes
2353 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2354 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2355 DEFAULT_wxUSE_TREECTRL=yes
2356 DEFAULT_wxUSE_POPUPWIN=yes
2357 DEFAULT_wxUSE_TIPWINDOW=yes
2358
2359 DEFAULT_wxUSE_UNICODE=no
2360 DEFAULT_wxUSE_UNICODE_MSLU=yes
2361 DEFAULT_wxUSE_WCSRTOMBS=no
2362
2363 DEFAULT_wxUSE_PALETTE=yes
2364 DEFAULT_wxUSE_IMAGE=yes
2365 DEFAULT_wxUSE_GIF=yes
2366 DEFAULT_wxUSE_PCX=yes
2367 DEFAULT_wxUSE_IFF=no
2368 DEFAULT_wxUSE_PNM=yes
2369 DEFAULT_wxUSE_XPM=yes
2370 DEFAULT_wxUSE_ICO_CUR=yes
2371 DEFAULT_wxUSE_ACCESSIBILITY=no
2372
2373 DEFAULT_wxUSE_MONOLITHIC=no
2374 DEFAULT_wxUSE_PLUGINS=no
2375 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2376fi
2377
2378
2379
2380for toolkit in `echo $ALL_TOOLKITS`; do
2381 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2382 if test "x$LINE" != "x" ; then
2383 has_toolkit_in_cache=1
2384 eval "DEFAULT_$LINE"
2385 eval "CACHE_$toolkit=1"
2386 fi
2387done
2388
2389
2390
2391 enablestring=
2392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2393echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2394 no_cache=0
2395 # Check whether --enable-gui or --disable-gui was given.
2396if test "${enable_gui+set}" = set; then
2397 enableval="$enable_gui"
2398
2399 if test "$enableval" = yes; then
2400 ac_cv_use_gui='wxUSE_GUI=yes'
2401 else
2402 ac_cv_use_gui='wxUSE_GUI=no'
2403 fi
2404
2405else
2406
2407 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2415
2416fi;
2417
2418 eval "$ac_cv_use_gui"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_GUI" = yes; then
2424 echo "$as_me:$LINENO: result: yes" >&5
2425echo "${ECHO_T}yes" >&6
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
2429 fi
2430
2431
2432 enablestring=
2433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2434echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2435 no_cache=0
2436 # Check whether --enable-monolithic or --disable-monolithic was given.
2437if test "${enable_monolithic+set}" = set; then
2438 enableval="$enable_monolithic"
2439
2440 if test "$enableval" = yes; then
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2442 else
2443 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2444 fi
2445
2446else
2447
2448 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2449 if test "x$LINE" != x ; then
2450 eval "DEFAULT_$LINE"
2451 else
2452 no_cache=1
2453 fi
2454
2455 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2456
2457fi;
2458
2459 eval "$ac_cv_use_monolithic"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_MONOLITHIC" = yes; then
2465 echo "$as_me:$LINENO: result: yes" >&5
2466echo "${ECHO_T}yes" >&6
2467 else
2468 echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6
2470 fi
2471
2472
2473 enablestring=
2474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2475echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2476 no_cache=0
2477 # Check whether --enable-plugins or --disable-plugins was given.
2478if test "${enable_plugins+set}" = set; then
2479 enableval="$enable_plugins"
2480
2481 if test "$enableval" = yes; then
2482 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2483 else
2484 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2485 fi
2486
2487else
2488
2489 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2490 if test "x$LINE" != x ; then
2491 eval "DEFAULT_$LINE"
2492 else
2493 no_cache=1
2494 fi
2495
2496 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2497
2498fi;
2499
2500 eval "$ac_cv_use_plugins"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_PLUGINS" = yes; then
2506 echo "$as_me:$LINENO: result: yes" >&5
2507echo "${ECHO_T}yes" >&6
2508 else
2509 echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6
2511 fi
2512
2513
2514if test "$wxUSE_GUI" = "yes"; then
2515
2516
2517 enablestring=
2518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2519echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2520 no_cache=0
2521 # Check whether --enable-universal or --disable-universal was given.
2522if test "${enable_universal+set}" = set; then
2523 enableval="$enable_universal"
2524
2525 if test "$enableval" = yes; then
2526 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2527 else
2528 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2529 fi
2530
2531else
2532
2533 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
2540 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2541
2542fi;
2543
2544 eval "$ac_cv_use_universal"
2545 if test "$no_cache" != 1; then
2546 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2547 fi
2548
2549 if test "$wxUSE_UNIVERSAL" = yes; then
2550 echo "$as_me:$LINENO: result: yes" >&5
2551echo "${ECHO_T}yes" >&6
2552 else
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
2555 fi
2556
2557
2558# Check whether --with-gtk or --without-gtk was given.
2559if test "${with_gtk+set}" = set; then
2560 withval="$with_gtk"
2561 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2562fi;
2563
2564# Check whether --with-motif or --without-motif was given.
2565if test "${with_motif+set}" = set; then
2566 withval="$with_motif"
2567 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2568fi;
2569
2570# Check whether --with-mac or --without-mac was given.
2571if test "${with_mac+set}" = set; then
2572 withval="$with_mac"
2573 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2574fi;
2575
2576# Check whether --with-cocoa or --without-cocoa was given.
2577if test "${with_cocoa+set}" = set; then
2578 withval="$with_cocoa"
2579 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2580fi;
2581
2582# Check whether --with-wine or --without-wine was given.
2583if test "${with_wine+set}" = set; then
2584 withval="$with_wine"
2585 wxUSE_WINE="$withval" CACHE_WINE=1
2586fi;
2587
2588# Check whether --with-msw or --without-msw was given.
2589if test "${with_msw+set}" = set; then
2590 withval="$with_msw"
2591 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2592fi;
2593
2594# Check whether --with-pm or --without-pm was given.
2595if test "${with_pm+set}" = set; then
2596 withval="$with_pm"
2597 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-mgl or --without-mgl was given.
2601if test "${with_mgl+set}" = set; then
2602 withval="$with_mgl"
2603 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-microwin or --without-microwin was given.
2607if test "${with_microwin+set}" = set; then
2608 withval="$with_microwin"
2609 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-x11 or --without-x11 was given.
2613if test "${with_x11+set}" = set; then
2614 withval="$with_x11"
2615 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618 enablestring=
2619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2620echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2621 no_cache=0
2622 # Check whether --enable-nanox or --disable-nanox was given.
2623if test "${enable_nanox+set}" = set; then
2624 enableval="$enable_nanox"
2625
2626 if test "$enableval" = yes; then
2627 ac_cv_use_nanox='wxUSE_NANOX=yes'
2628 else
2629 ac_cv_use_nanox='wxUSE_NANOX=no'
2630 fi
2631
2632else
2633
2634 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2642
2643fi;
2644
2645 eval "$ac_cv_use_nanox"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_NANOX" = yes; then
2651 echo "$as_me:$LINENO: result: yes" >&5
2652echo "${ECHO_T}yes" >&6
2653 else
2654 echo "$as_me:$LINENO: result: no" >&5
2655echo "${ECHO_T}no" >&6
2656 fi
2657
2658
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2665if test "${enable_gtk2+set}" = set; then
2666 enableval="$enable_gtk2"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2670 else
2671 ac_cv_use_gtk2='wxUSE_GTK2=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2684
2685fi;
2686
2687 eval "$ac_cv_use_gtk2"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_GTK2" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701 enablestring=
2702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2703echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2704 no_cache=0
2705 # Check whether --enable-gpe or --disable-gpe was given.
2706if test "${enable_gpe+set}" = set; then
2707 enableval="$enable_gpe"
2708
2709 if test "$enableval" = yes; then
2710 ac_cv_use_gpe='wxUSE_GPE=yes'
2711 else
2712 ac_cv_use_gpe='wxUSE_GPE=no'
2713 fi
2714
2715else
2716
2717 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2725
2726fi;
2727
2728 eval "$ac_cv_use_gpe"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_GPE" = yes; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739 fi
2740
2741
2742
2743 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2744echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2745 no_cache=0
2746
2747# Check whether --with-libpng or --without-libpng was given.
2748if test "${with_libpng+set}" = set; then
2749 withval="$with_libpng"
2750
2751 if test "$withval" = yes; then
2752 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2753 elif test "$withval" = no; then
2754 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2755 elif test "$withval" = sys; then
2756 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2757 elif test "$withval" = builtin; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2759 else
2760 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2761echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2762 { (exit 1); exit 1; }; }
2763 fi
2764
2765else
2766
2767 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2775
2776fi;
2777
2778 eval "$ac_cv_use_libpng"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_LIBPNG" = yes; then
2784 echo "$as_me:$LINENO: result: yes" >&5
2785echo "${ECHO_T}yes" >&6
2786 elif test "$wxUSE_LIBPNG" = no; then
2787 echo "$as_me:$LINENO: result: no" >&5
2788echo "${ECHO_T}no" >&6
2789 elif test "$wxUSE_LIBPNG" = sys; then
2790 echo "$as_me:$LINENO: result: system version" >&5
2791echo "${ECHO_T}system version" >&6
2792 elif test "$wxUSE_LIBPNG" = builtin; then
2793 echo "$as_me:$LINENO: result: builtin version" >&5
2794echo "${ECHO_T}builtin version" >&6
2795 else
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
2799 fi
2800
2801
2802 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2803echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2804 no_cache=0
2805
2806# Check whether --with-libjpeg or --without-libjpeg was given.
2807if test "${with_libjpeg+set}" = set; then
2808 withval="$with_libjpeg"
2809
2810 if test "$withval" = yes; then
2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2812 elif test "$withval" = no; then
2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2814 elif test "$withval" = sys; then
2815 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2816 elif test "$withval" = builtin; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2818 else
2819 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2820echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824else
2825
2826 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2834
2835fi;
2836
2837 eval "$ac_cv_use_libjpeg"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_LIBJPEG" = yes; then
2843 echo "$as_me:$LINENO: result: yes" >&5
2844echo "${ECHO_T}yes" >&6
2845 elif test "$wxUSE_LIBJPEG" = no; then
2846 echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6
2848 elif test "$wxUSE_LIBJPEG" = sys; then
2849 echo "$as_me:$LINENO: result: system version" >&5
2850echo "${ECHO_T}system version" >&6
2851 elif test "$wxUSE_LIBJPEG" = builtin; then
2852 echo "$as_me:$LINENO: result: builtin version" >&5
2853echo "${ECHO_T}builtin version" >&6
2854 else
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860
2861 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2862echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2863 no_cache=0
2864
2865# Check whether --with-libtiff or --without-libtiff was given.
2866if test "${with_libtiff+set}" = set; then
2867 withval="$with_libtiff"
2868
2869 if test "$withval" = yes; then
2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2871 elif test "$withval" = no; then
2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2873 elif test "$withval" = sys; then
2874 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2875 elif test "$withval" = builtin; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2877 else
2878 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2879echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2880 { (exit 1); exit 1; }; }
2881 fi
2882
2883else
2884
2885 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2893
2894fi;
2895
2896 eval "$ac_cv_use_libtiff"
2897 if test "$no_cache" != 1; then
2898 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2899 fi
2900
2901 if test "$wxUSE_LIBTIFF" = yes; then
2902 echo "$as_me:$LINENO: result: yes" >&5
2903echo "${ECHO_T}yes" >&6
2904 elif test "$wxUSE_LIBTIFF" = no; then
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907 elif test "$wxUSE_LIBTIFF" = sys; then
2908 echo "$as_me:$LINENO: result: system version" >&5
2909echo "${ECHO_T}system version" >&6
2910 elif test "$wxUSE_LIBTIFF" = builtin; then
2911 echo "$as_me:$LINENO: result: builtin version" >&5
2912echo "${ECHO_T}builtin version" >&6
2913 else
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919
2920 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2921echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2922 no_cache=0
2923
2924# Check whether --with-libxpm or --without-libxpm was given.
2925if test "${with_libxpm+set}" = set; then
2926 withval="$with_libxpm"
2927
2928 if test "$withval" = yes; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2930 elif test "$withval" = no; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2932 elif test "$withval" = sys; then
2933 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2934 elif test "$withval" = builtin; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2936 else
2937 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2938echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941
2942else
2943
2944 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2952
2953fi;
2954
2955 eval "$ac_cv_use_libxpm"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_LIBXPM" = yes; then
2961 echo "$as_me:$LINENO: result: yes" >&5
2962echo "${ECHO_T}yes" >&6
2963 elif test "$wxUSE_LIBXPM" = no; then
2964 echo "$as_me:$LINENO: result: no" >&5
2965echo "${ECHO_T}no" >&6
2966 elif test "$wxUSE_LIBXPM" = sys; then
2967 echo "$as_me:$LINENO: result: system version" >&5
2968echo "${ECHO_T}system version" >&6
2969 elif test "$wxUSE_LIBXPM" = builtin; then
2970 echo "$as_me:$LINENO: result: builtin version" >&5
2971echo "${ECHO_T}builtin version" >&6
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978
2979 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2980echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2981 no_cache=0
2982
2983# Check whether --with-libmspack or --without-libmspack was given.
2984if test "${with_libmspack+set}" = set; then
2985 withval="$with_libmspack"
2986
2987 if test "$withval" = yes; then
2988 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2989 else
2990 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2991 fi
2992
2993else
2994
2995 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2996 if test "x$LINE" != x ; then
2997 eval "DEFAULT_$LINE"
2998 else
2999 no_cache=1
3000 fi
3001
3002 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3003
3004fi;
3005
3006 eval "$ac_cv_use_libmspack"
3007 if test "$no_cache" != 1; then
3008 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3009 fi
3010
3011 if test "$wxUSE_LIBMSPACK" = yes; then
3012 echo "$as_me:$LINENO: result: yes" >&5
3013echo "${ECHO_T}yes" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016echo "${ECHO_T}no" >&6
3017 fi
3018
3019
3020 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3021echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3022 no_cache=0
3023
3024# Check whether --with-sdl or --without-sdl was given.
3025if test "${with_sdl+set}" = set; then
3026 withval="$with_sdl"
3027
3028 if test "$withval" = yes; then
3029 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3030 else
3031 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3044
3045fi;
3046
3047 eval "$ac_cv_use_sdl"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_LIBSDL" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058 fi
3059
3060
3061 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3062echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3063 no_cache=0
3064
3065# Check whether --with-opengl or --without-opengl was given.
3066if test "${with_opengl+set}" = set; then
3067 withval="$with_opengl"
3068
3069 if test "$withval" = yes; then
3070 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3071 else
3072 ac_cv_use_opengl='wxUSE_OPENGL=no'
3073 fi
3074
3075else
3076
3077 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3085
3086fi;
3087
3088 eval "$ac_cv_use_opengl"
3089 if test "$no_cache" != 1; then
3090 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3091 fi
3092
3093 if test "$wxUSE_OPENGL" = yes; then
3094 echo "$as_me:$LINENO: result: yes" >&5
3095echo "${ECHO_T}yes" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099 fi
3100
3101
3102fi
3103
3104
3105 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3106echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3107 no_cache=0
3108
3109# Check whether --with-dmalloc or --without-dmalloc was given.
3110if test "${with_dmalloc+set}" = set; then
3111 withval="$with_dmalloc"
3112
3113 if test "$withval" = yes; then
3114 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3115 else
3116 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3117 fi
3118
3119else
3120
3121 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
3128 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3129
3130fi;
3131
3132 eval "$ac_cv_use_dmalloc"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_DMALLOC" = yes; then
3138 echo "$as_me:$LINENO: result: yes" >&5
3139echo "${ECHO_T}yes" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
3143 fi
3144
3145
3146 echo "$as_me:$LINENO: checking for --with-regex" >&5
3147echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3148 no_cache=0
3149
3150# Check whether --with-regex or --without-regex was given.
3151if test "${with_regex+set}" = set; then
3152 withval="$with_regex"
3153
3154 if test "$withval" = yes; then
3155 ac_cv_use_regex='wxUSE_REGEX=yes'
3156 elif test "$withval" = no; then
3157 ac_cv_use_regex='wxUSE_REGEX=no'
3158 elif test "$withval" = sys; then
3159 ac_cv_use_regex='wxUSE_REGEX=sys'
3160 elif test "$withval" = builtin; then
3161 ac_cv_use_regex='wxUSE_REGEX=builtin'
3162 else
3163 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3164echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3178
3179fi;
3180
3181 eval "$ac_cv_use_regex"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_REGEX" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3189 elif test "$wxUSE_REGEX" = no; then
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192 elif test "$wxUSE_REGEX" = sys; then
3193 echo "$as_me:$LINENO: result: system version" >&5
3194echo "${ECHO_T}system version" >&6
3195 elif test "$wxUSE_REGEX" = builtin; then
3196 echo "$as_me:$LINENO: result: builtin version" >&5
3197echo "${ECHO_T}builtin version" >&6
3198 else
3199 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3200echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3201 { (exit 1); exit 1; }; }
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3206echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-zlib or --without-zlib was given.
3210if test "${with_zlib+set}" = set; then
3211 withval="$with_zlib"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_zlib='wxUSE_ZLIB=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3237
3238fi;
3239
3240 eval "$ac_cv_use_zlib"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_ZLIB" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_ZLIB" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_ZLIB" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_ZLIB" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3265echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-odbc or --without-odbc was given.
3269if test "${with_odbc+set}" = set; then
3270 withval="$with_odbc"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_odbc='wxUSE_ODBC=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_odbc='wxUSE_ODBC=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_odbc='wxUSE_ODBC=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3296
3297fi;
3298
3299 eval "$ac_cv_use_odbc"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ODBC" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ODBC" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ODBC" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ODBC" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-expat" >&5
3324echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-expat or --without-expat was given.
3328if test "${with_expat+set}" = set; then
3329 withval="$with_expat"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_expat='wxUSE_EXPAT=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_expat='wxUSE_EXPAT=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_expat='wxUSE_EXPAT=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3355
3356fi;
3357
3358 eval "$ac_cv_use_expat"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_EXPAT" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_EXPAT" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_EXPAT" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_EXPAT" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382
3383
3384 enablestring=
3385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3386echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3387 no_cache=0
3388 # Check whether --enable-shared or --disable-shared was given.
3389if test "${enable_shared+set}" = set; then
3390 enableval="$enable_shared"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_shared='wxUSE_SHARED=yes'
3394 else
3395 ac_cv_use_shared='wxUSE_SHARED=no'
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3408
3409fi;
3410
3411 eval "$ac_cv_use_shared"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_SHARED" = yes; then
3417 echo "$as_me:$LINENO: result: yes" >&5
3418echo "${ECHO_T}yes" >&6
3419 else
3420 echo "$as_me:$LINENO: result: no" >&5
3421echo "${ECHO_T}no" >&6
3422 fi
3423
3424
3425 enablestring=
3426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3427echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3428 no_cache=0
3429 # Check whether --enable-optimise or --disable-optimise was given.
3430if test "${enable_optimise+set}" = set; then
3431 enableval="$enable_optimise"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3435 else
3436 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3437 fi
3438
3439else
3440
3441 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3449
3450fi;
3451
3452 eval "$ac_cv_use_optimise"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_OPTIMISE" = yes; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6
3460 else
3461 echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6
3463 fi
3464
3465
3466 enablestring=
3467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3468echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3469 no_cache=0
3470 # Check whether --enable-debug or --disable-debug was given.
3471if test "${enable_debug+set}" = set; then
3472 enableval="$enable_debug"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_debug='wxUSE_DEBUG=yes'
3476 else
3477 ac_cv_use_debug='wxUSE_DEBUG=no'
3478 fi
3479
3480else
3481
3482 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3490
3491fi;
3492
3493 eval "$ac_cv_use_debug"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_DEBUG" = yes; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500echo "${ECHO_T}yes" >&6
3501 else
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504 fi
3505
3506
3507 enablestring=
3508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3509echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3510 no_cache=0
3511 # Check whether --enable-stl or --disable-stl was given.
3512if test "${enable_stl+set}" = set; then
3513 enableval="$enable_stl"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_stl='wxUSE_STL=yes'
3517 else
3518 ac_cv_use_stl='wxUSE_STL=no'
3519 fi
3520
3521else
3522
3523 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3531
3532fi;
3533
3534 eval "$ac_cv_use_stl"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_STL" = yes; then
3540 echo "$as_me:$LINENO: result: yes" >&5
3541echo "${ECHO_T}yes" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545 fi
3546
3547if test "$USE_OS2" = "1"; then
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-omf or --disable-omf was given.
3554if test "${enable_omf+set}" = set; then
3555 enableval="$enable_omf"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_omf='wxUSE_OMF=yes'
3559 else
3560 ac_cv_use_omf='wxUSE_OMF=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3573
3574fi;
3575
3576 eval "$ac_cv_use_omf"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_OMF" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589fi
3590
3591if test "$wxUSE_DEBUG" = "yes"; then
3592 DEFAULT_wxUSE_DEBUG_FLAG=yes
3593 DEFAULT_wxUSE_DEBUG_INFO=yes
3594 BUILD=debug
3595elif test "$wxUSE_DEBUG" = "no"; then
3596 DEFAULT_wxUSE_DEBUG_FLAG=no
3597 DEFAULT_wxUSE_DEBUG_INFO=no
3598 BUILD=release
3599fi
3600
3601
3602 enablestring=
3603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3604echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3605 no_cache=0
3606 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3607if test "${enable_debug_flag+set}" = set; then
3608 enableval="$enable_debug_flag"
3609
3610 if test "$enableval" = yes; then
3611 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3612 else
3613 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3614 fi
3615
3616else
3617
3618 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3619 if test "x$LINE" != x ; then
3620 eval "DEFAULT_$LINE"
3621 else
3622 no_cache=1
3623 fi
3624
3625 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3626
3627fi;
3628
3629 eval "$ac_cv_use_debug_flag"
3630 if test "$no_cache" != 1; then
3631 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3632 fi
3633
3634 if test "$wxUSE_DEBUG_FLAG" = yes; then
3635 echo "$as_me:$LINENO: result: yes" >&5
3636echo "${ECHO_T}yes" >&6
3637 else
3638 echo "$as_me:$LINENO: result: no" >&5
3639echo "${ECHO_T}no" >&6
3640 fi
3641
3642
3643 enablestring=
3644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3645echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3646 no_cache=0
3647 # Check whether --enable-debug_info or --disable-debug_info was given.
3648if test "${enable_debug_info+set}" = set; then
3649 enableval="$enable_debug_info"
3650
3651 if test "$enableval" = yes; then
3652 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3653 else
3654 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3655 fi
3656
3657else
3658
3659 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3660 if test "x$LINE" != x ; then
3661 eval "DEFAULT_$LINE"
3662 else
3663 no_cache=1
3664 fi
3665
3666 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3667
3668fi;
3669
3670 eval "$ac_cv_use_debug_info"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_DEBUG_INFO" = yes; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677echo "${ECHO_T}yes" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680echo "${ECHO_T}no" >&6
3681 fi
3682
3683
3684 enablestring=
3685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3686echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3687 no_cache=0
3688 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3689if test "${enable_debug_gdb+set}" = set; then
3690 enableval="$enable_debug_gdb"
3691
3692 if test "$enableval" = yes; then
3693 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3694 else
3695 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3696 fi
3697
3698else
3699
3700 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3701 if test "x$LINE" != x ; then
3702 eval "DEFAULT_$LINE"
3703 else
3704 no_cache=1
3705 fi
3706
3707 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3708
3709fi;
3710
3711 eval "$ac_cv_use_debug_gdb"
3712 if test "$no_cache" != 1; then
3713 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3714 fi
3715
3716 if test "$wxUSE_DEBUG_GDB" = yes; then
3717 echo "$as_me:$LINENO: result: yes" >&5
3718echo "${ECHO_T}yes" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
3722 fi
3723
3724
3725 enablestring=
3726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3727echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3728 no_cache=0
3729 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3730if test "${enable_debug_cntxt+set}" = set; then
3731 enableval="$enable_debug_cntxt"
3732
3733 if test "$enableval" = yes; then
3734 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3735 else
3736 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3737 fi
3738
3739else
3740
3741 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3749
3750fi;
3751
3752 eval "$ac_cv_use_debug_cntxt"
3753 if test "$no_cache" != 1; then
3754 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3755 fi
3756
3757 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3758 echo "$as_me:$LINENO: result: yes" >&5
3759echo "${ECHO_T}yes" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763 fi
3764
3765
3766 enablestring=
3767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3768echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3769 no_cache=0
3770 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3771if test "${enable_mem_tracing+set}" = set; then
3772 enableval="$enable_mem_tracing"
3773
3774 if test "$enableval" = yes; then
3775 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3776 else
3777 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3778 fi
3779
3780else
3781
3782 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3783 if test "x$LINE" != x ; then
3784 eval "DEFAULT_$LINE"
3785 else
3786 no_cache=1
3787 fi
3788
3789 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3790
3791fi;
3792
3793 eval "$ac_cv_use_mem_tracing"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_MEM_TRACING" = yes; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801 else
3802 echo "$as_me:$LINENO: result: no" >&5
3803echo "${ECHO_T}no" >&6
3804 fi
3805
3806
3807 enablestring=
3808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3809echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3810 no_cache=0
3811 # Check whether --enable-profile or --disable-profile was given.
3812if test "${enable_profile+set}" = set; then
3813 enableval="$enable_profile"
3814
3815 if test "$enableval" = yes; then
3816 ac_cv_use_profile='wxUSE_PROFILE=yes'
3817 else
3818 ac_cv_use_profile='wxUSE_PROFILE=no'
3819 fi
3820
3821else
3822
3823 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3824 if test "x$LINE" != x ; then
3825 eval "DEFAULT_$LINE"
3826 else
3827 no_cache=1
3828 fi
3829
3830 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3831
3832fi;
3833
3834 eval "$ac_cv_use_profile"
3835 if test "$no_cache" != 1; then
3836 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3837 fi
3838
3839 if test "$wxUSE_PROFILE" = yes; then
3840 echo "$as_me:$LINENO: result: yes" >&5
3841echo "${ECHO_T}yes" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844echo "${ECHO_T}no" >&6
3845 fi
3846
3847
3848 enablestring=
3849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3850echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3851 no_cache=0
3852 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3853if test "${enable_no_rtti+set}" = set; then
3854 enableval="$enable_no_rtti"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3858 else
3859 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3860 fi
3861
3862else
3863
3864 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3872
3873fi;
3874
3875 eval "$ac_cv_use_no_rtti"
3876 if test "$no_cache" != 1; then
3877 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3878 fi
3879
3880 if test "$wxUSE_NO_RTTI" = yes; then
3881 echo "$as_me:$LINENO: result: yes" >&5
3882echo "${ECHO_T}yes" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6
3886 fi
3887
3888
3889 enablestring=
3890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3891echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3892 no_cache=0
3893 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3894if test "${enable_no_exceptions+set}" = set; then
3895 enableval="$enable_no_exceptions"
3896
3897 if test "$enableval" = yes; then
3898 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3899 else
3900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3901 fi
3902
3903else
3904
3905 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3913
3914fi;
3915
3916 eval "$ac_cv_use_no_exceptions"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3922 echo "$as_me:$LINENO: result: yes" >&5
3923echo "${ECHO_T}yes" >&6
3924 else
3925 echo "$as_me:$LINENO: result: no" >&5
3926echo "${ECHO_T}no" >&6
3927 fi
3928
3929
3930 enablestring=
3931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3932echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3933 no_cache=0
3934 # Check whether --enable-permissive or --disable-permissive was given.
3935if test "${enable_permissive+set}" = set; then
3936 enableval="$enable_permissive"
3937
3938 if test "$enableval" = yes; then
3939 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3940 else
3941 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3942 fi
3943
3944else
3945
3946 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3954
3955fi;
3956
3957 eval "$ac_cv_use_permissive"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_PERMISSIVE" = yes; then
3963 echo "$as_me:$LINENO: result: yes" >&5
3964echo "${ECHO_T}yes" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
3968 fi
3969
3970
3971 enablestring=
3972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3973echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3974 no_cache=0
3975 # Check whether --enable-no_deps or --disable-no_deps was given.
3976if test "${enable_no_deps+set}" = set; then
3977 enableval="$enable_no_deps"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3981 else
3982 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3983 fi
3984
3985else
3986
3987 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3995
3996fi;
3997
3998 eval "$ac_cv_use_no_deps"
3999 if test "$no_cache" != 1; then
4000 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4001 fi
4002
4003 if test "$wxUSE_NO_DEPS" = yes; then
4004 echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6
4009 fi
4010
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-compat22 or --disable-compat22 was given.
4018if test "${enable_compat22+set}" = set; then
4019 enableval="$enable_compat22"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4023 else
4024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4037
4038fi;
4039
4040 eval "$ac_cv_use_compat22"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=disable
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-compat24 or --disable-compat24 was given.
4059if test "${enable_compat24+set}" = set; then
4060 enableval="$enable_compat24"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4064 else
4065 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4078
4079fi;
4080
4081 eval "$ac_cv_use_compat24"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095# Check whether --enable-rpath or --disable-rpath was given.
4096if test "${enable_rpath+set}" = set; then
4097 enableval="$enable_rpath"
4098 wxRPATH_DIR="$enableval"
4099fi;
4100
ac1cb8d3 4101if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4102 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4103fi
4104
4105
4106
4107
4108 enablestring=
4109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4110echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4111 no_cache=0
4112 # Check whether --enable-intl or --disable-intl was given.
4113if test "${enable_intl+set}" = set; then
4114 enableval="$enable_intl"
4115
4116 if test "$enableval" = yes; then
4117 ac_cv_use_intl='wxUSE_INTL=yes'
4118 else
4119 ac_cv_use_intl='wxUSE_INTL=no'
4120 fi
4121
4122else
4123
4124 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4132
4133fi;
4134
4135 eval "$ac_cv_use_intl"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_INTL" = yes; then
4141 echo "$as_me:$LINENO: result: yes" >&5
4142echo "${ECHO_T}yes" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
4146 fi
4147
4148
4149 enablestring=
4150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4151echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4152 no_cache=0
4153 # Check whether --enable-config or --disable-config was given.
4154if test "${enable_config+set}" = set; then
4155 enableval="$enable_config"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_config='wxUSE_CONFIG=yes'
4159 else
4160 ac_cv_use_config='wxUSE_CONFIG=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4173
4174fi;
4175
4176 eval "$ac_cv_use_config"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_CONFIG" = yes; then
4182 echo "$as_me:$LINENO: result: yes" >&5
4183echo "${ECHO_T}yes" >&6
4184 else
4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187 fi
4188
4189
4190
4191 enablestring=
4192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4193echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4194 no_cache=0
4195 # Check whether --enable-protocols or --disable-protocols was given.
4196if test "${enable_protocols+set}" = set; then
4197 enableval="$enable_protocols"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4201 else
4202 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4203 fi
4204
4205else
4206
4207 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4215
4216fi;
4217
4218 eval "$ac_cv_use_protocols"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_PROTOCOL" = yes; then
4224 echo "$as_me:$LINENO: result: yes" >&5
4225echo "${ECHO_T}yes" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229 fi
4230
4231
4232 enablestring=
4233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4234echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4235 no_cache=0
4236 # Check whether --enable-ftp or --disable-ftp was given.
4237if test "${enable_ftp+set}" = set; then
4238 enableval="$enable_ftp"
4239
4240 if test "$enableval" = yes; then
4241 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4242 else
4243 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4244 fi
4245
4246else
4247
4248 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4256
4257fi;
4258
4259 eval "$ac_cv_use_ftp"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4265 echo "$as_me:$LINENO: result: yes" >&5
4266echo "${ECHO_T}yes" >&6
4267 else
4268 echo "$as_me:$LINENO: result: no" >&5
4269echo "${ECHO_T}no" >&6
4270 fi
4271
4272
4273 enablestring=
4274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4275echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4276 no_cache=0
4277 # Check whether --enable-http or --disable-http was given.
4278if test "${enable_http+set}" = set; then
4279 enableval="$enable_http"
4280
4281 if test "$enableval" = yes; then
4282 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4283 else
4284 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4285 fi
4286
4287else
4288
4289 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4290 if test "x$LINE" != x ; then
4291 eval "DEFAULT_$LINE"
4292 else
4293 no_cache=1
4294 fi
4295
4296 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4297
4298fi;
4299
4300 eval "$ac_cv_use_http"
4301 if test "$no_cache" != 1; then
4302 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4303 fi
4304
4305 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4306 echo "$as_me:$LINENO: result: yes" >&5
4307echo "${ECHO_T}yes" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311 fi
4312
4313
4314 enablestring=
4315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4316echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4317 no_cache=0
4318 # Check whether --enable-fileproto or --disable-fileproto was given.
4319if test "${enable_fileproto+set}" = set; then
4320 enableval="$enable_fileproto"
4321
4322 if test "$enableval" = yes; then
4323 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4324 else
4325 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4326 fi
4327
4328else
4329
4330 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4331 if test "x$LINE" != x ; then
4332 eval "DEFAULT_$LINE"
4333 else
4334 no_cache=1
4335 fi
4336
4337 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4338
4339fi;
4340
4341 eval "$ac_cv_use_fileproto"
4342 if test "$no_cache" != 1; then
4343 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4344 fi
4345
4346 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4347 echo "$as_me:$LINENO: result: yes" >&5
4348echo "${ECHO_T}yes" >&6
4349 else
4350 echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
4352 fi
4353
4354
4355 enablestring=
4356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4357echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4358 no_cache=0
4359 # Check whether --enable-sockets or --disable-sockets was given.
4360if test "${enable_sockets+set}" = set; then
4361 enableval="$enable_sockets"
4362
4363 if test "$enableval" = yes; then
4364 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4365 else
4366 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4367 fi
4368
4369else
4370
4371 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4372 if test "x$LINE" != x ; then
4373 eval "DEFAULT_$LINE"
4374 else
4375 no_cache=1
4376 fi
4377
4378 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4379
4380fi;
4381
4382 eval "$ac_cv_use_sockets"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_SOCKETS" = yes; then
4388 echo "$as_me:$LINENO: result: yes" >&5
4389echo "${ECHO_T}yes" >&6
4390 else
4391 echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6
4393 fi
4394
4395
4396 enablestring=
4397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4398echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4399 no_cache=0
4400 # Check whether --enable-ole or --disable-ole was given.
4401if test "${enable_ole+set}" = set; then
4402 enableval="$enable_ole"
4403
4404 if test "$enableval" = yes; then
4405 ac_cv_use_ole='wxUSE_OLE=yes'
4406 else
4407 ac_cv_use_ole='wxUSE_OLE=no'
4408 fi
4409
4410else
4411
4412 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4413 if test "x$LINE" != x ; then
4414 eval "DEFAULT_$LINE"
4415 else
4416 no_cache=1
4417 fi
4418
4419 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4420
4421fi;
4422
4423 eval "$ac_cv_use_ole"
4424 if test "$no_cache" != 1; then
4425 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4426 fi
4427
4428 if test "$wxUSE_OLE" = yes; then
4429 echo "$as_me:$LINENO: result: yes" >&5
4430echo "${ECHO_T}yes" >&6
4431 else
4432 echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6
4434 fi
4435
4436
4437 enablestring=
4438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4439echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4440 no_cache=0
4441 # Check whether --enable-dataobj or --disable-dataobj was given.
4442if test "${enable_dataobj+set}" = set; then
4443 enableval="$enable_dataobj"
4444
4445 if test "$enableval" = yes; then
4446 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4447 else
4448 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4449 fi
4450
4451else
4452
4453 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4454 if test "x$LINE" != x ; then
4455 eval "DEFAULT_$LINE"
4456 else
4457 no_cache=1
4458 fi
4459
4460 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4461
4462fi;
4463
4464 eval "$ac_cv_use_dataobj"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_DATAOBJ" = yes; then
4470 echo "$as_me:$LINENO: result: yes" >&5
4471echo "${ECHO_T}yes" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475 fi
4476
4477
4478
4479 enablestring=
4480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4481echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4482 no_cache=0
4483 # Check whether --enable-ipc or --disable-ipc was given.
4484if test "${enable_ipc+set}" = set; then
4485 enableval="$enable_ipc"
4486
4487 if test "$enableval" = yes; then
4488 ac_cv_use_ipc='wxUSE_IPC=yes'
4489 else
4490 ac_cv_use_ipc='wxUSE_IPC=no'
4491 fi
4492
4493else
4494
4495 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4503
4504fi;
4505
4506 eval "$ac_cv_use_ipc"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_IPC" = yes; then
4512 echo "$as_me:$LINENO: result: yes" >&5
4513echo "${ECHO_T}yes" >&6
4514 else
4515 echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6
4517 fi
4518
4519
4520
4521 enablestring=
4522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4523echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4524 no_cache=0
4525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4526if test "${enable_apple_ieee+set}" = set; then
4527 enableval="$enable_apple_ieee"
4528
4529 if test "$enableval" = yes; then
4530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4531 else
4532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4533 fi
4534
4535else
4536
4537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4545
4546fi;
4547
4548 eval "$ac_cv_use_apple_ieee"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_APPLE_IEEE" = yes; then
4554 echo "$as_me:$LINENO: result: yes" >&5
4555echo "${ECHO_T}yes" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559 fi
4560
4561
4562 enablestring=
4563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4564echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4565 no_cache=0
4566 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4567if test "${enable_catch_segvs+set}" = set; then
4568 enableval="$enable_catch_segvs"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4572 else
4573 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4574 fi
4575
4576else
4577
4578 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4586
4587fi;
4588
4589 eval "$ac_cv_use_catch_segvs"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4595 echo "$as_me:$LINENO: result: yes" >&5
4596echo "${ECHO_T}yes" >&6
4597 else
4598 echo "$as_me:$LINENO: result: no" >&5
4599echo "${ECHO_T}no" >&6
4600 fi
4601
4602
4603 enablestring=
4604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4605echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4606 no_cache=0
4607 # Check whether --enable-cmdline or --disable-cmdline was given.
4608if test "${enable_cmdline+set}" = set; then
4609 enableval="$enable_cmdline"
4610
4611 if test "$enableval" = yes; then
4612 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4613 else
4614 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4615 fi
4616
4617else
4618
4619 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 else
4623 no_cache=1
4624 fi
4625
4626 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4627
4628fi;
4629
4630 eval "$ac_cv_use_cmdline"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637echo "${ECHO_T}yes" >&6
4638 else
4639 echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641 fi
4642
4643
4644 enablestring=
4645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4646echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4647 no_cache=0
4648 # Check whether --enable-datetime or --disable-datetime was given.
4649if test "${enable_datetime+set}" = set; then
4650 enableval="$enable_datetime"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4654 else
4655 ac_cv_use_datetime='wxUSE_DATETIME=no'
4656 fi
4657
4658else
4659
4660 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4668
4669fi;
4670
4671 eval "$ac_cv_use_datetime"
4672 if test "$no_cache" != 1; then
4673 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4674 fi
4675
4676 if test "$wxUSE_DATETIME" = yes; then
4677 echo "$as_me:$LINENO: result: yes" >&5
4678echo "${ECHO_T}yes" >&6
4679 else
4680 echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
4682 fi
4683
4684
4685 enablestring=
4686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4687echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4688 no_cache=0
4689 # Check whether --enable-dialupman or --disable-dialupman was given.
4690if test "${enable_dialupman+set}" = set; then
4691 enableval="$enable_dialupman"
4692
4693 if test "$enableval" = yes; then
4694 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4695 else
4696 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4697 fi
4698
4699else
4700
4701 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4702 if test "x$LINE" != x ; then
4703 eval "DEFAULT_$LINE"
4704 else
4705 no_cache=1
4706 fi
4707
4708 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4709
4710fi;
4711
4712 eval "$ac_cv_use_dialupman"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4718 echo "$as_me:$LINENO: result: yes" >&5
4719echo "${ECHO_T}yes" >&6
4720 else
4721 echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723 fi
4724
4725
4726 enablestring=
4727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4728echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4729 no_cache=0
4730 # Check whether --enable-dynlib or --disable-dynlib was given.
4731if test "${enable_dynlib+set}" = set; then
4732 enableval="$enable_dynlib"
4733
4734 if test "$enableval" = yes; then
4735 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4736 else
4737 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4738 fi
4739
4740else
4741
4742 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4743 if test "x$LINE" != x ; then
4744 eval "DEFAULT_$LINE"
4745 else
4746 no_cache=1
4747 fi
4748
4749 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4750
4751fi;
4752
4753 eval "$ac_cv_use_dynlib"
4754 if test "$no_cache" != 1; then
4755 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4756 fi
4757
4758 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4759 echo "$as_me:$LINENO: result: yes" >&5
4760echo "${ECHO_T}yes" >&6
4761 else
4762 echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6
4764 fi
4765
4766
4767 enablestring=
4768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4769echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4770 no_cache=0
4771 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4772if test "${enable_dynamicloader+set}" = set; then
4773 enableval="$enable_dynamicloader"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4777 else
4778 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4779 fi
4780
4781else
4782
4783 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4791
4792fi;
4793
4794 eval "$ac_cv_use_dynamicloader"
4795 if test "$no_cache" != 1; then
4796 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4797 fi
4798
4799 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4800 echo "$as_me:$LINENO: result: yes" >&5
4801echo "${ECHO_T}yes" >&6
4802 else
4803 echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805 fi
4806
4807
4808 enablestring=
4809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4810echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4811 no_cache=0
4812 # Check whether --enable-exceptions or --disable-exceptions was given.
4813if test "${enable_exceptions+set}" = set; then
4814 enableval="$enable_exceptions"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4818 else
4819 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4820 fi
4821
4822else
4823
4824 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4832
4833fi;
4834
4835 eval "$ac_cv_use_exceptions"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_EXCEPTIONS" = yes; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842echo "${ECHO_T}yes" >&6
4843 else
4844 echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846 fi
4847
4848
4849 enablestring=
4850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4851echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4852 no_cache=0
4853 # Check whether --enable-ffile or --disable-ffile was given.
4854if test "${enable_ffile+set}" = set; then
4855 enableval="$enable_ffile"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_ffile='wxUSE_FFILE=yes'
4859 else
4860 ac_cv_use_ffile='wxUSE_FFILE=no'
4861 fi
4862
4863else
4864
4865 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4873
4874fi;
4875
4876 eval "$ac_cv_use_ffile"
4877 if test "$no_cache" != 1; then
4878 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4879 fi
4880
4881 if test "$wxUSE_FFILE" = yes; then
4882 echo "$as_me:$LINENO: result: yes" >&5
4883echo "${ECHO_T}yes" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887 fi
4888
4889
4890 enablestring=
4891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4892echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4893 no_cache=0
4894 # Check whether --enable-file or --disable-file was given.
4895if test "${enable_file+set}" = set; then
4896 enableval="$enable_file"
4897
4898 if test "$enableval" = yes; then
4899 ac_cv_use_file='wxUSE_FILE=yes'
4900 else
4901 ac_cv_use_file='wxUSE_FILE=no'
4902 fi
4903
4904else
4905
4906 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
4913 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4914
4915fi;
4916
4917 eval "$ac_cv_use_file"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_FILE" = yes; then
4923 echo "$as_me:$LINENO: result: yes" >&5
4924echo "${ECHO_T}yes" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927echo "${ECHO_T}no" >&6
4928 fi
4929
4930
4931 enablestring=
4932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4933echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4934 no_cache=0
4935 # Check whether --enable-filesystem or --disable-filesystem was given.
4936if test "${enable_filesystem+set}" = set; then
4937 enableval="$enable_filesystem"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4941 else
4942 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4943 fi
4944
4945else
4946
4947 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4955
4956fi;
4957
4958 eval "$ac_cv_use_filesystem"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_FILESYSTEM" = yes; then
4964 echo "$as_me:$LINENO: result: yes" >&5
4965echo "${ECHO_T}yes" >&6
4966 else
4967 echo "$as_me:$LINENO: result: no" >&5
4968echo "${ECHO_T}no" >&6
4969 fi
4970
4971
4972 enablestring=
4973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4974echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4975 no_cache=0
4976 # Check whether --enable-fontmap or --disable-fontmap was given.
4977if test "${enable_fontmap+set}" = set; then
4978 enableval="$enable_fontmap"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4982 else
4983 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4984 fi
4985
4986else
4987
4988 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4996
4997fi;
4998
4999 eval "$ac_cv_use_fontmap"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_FONTMAP" = yes; then
5005 echo "$as_me:$LINENO: result: yes" >&5
5006echo "${ECHO_T}yes" >&6
5007 else
5008 echo "$as_me:$LINENO: result: no" >&5
5009echo "${ECHO_T}no" >&6
5010 fi
5011
5012
5013 enablestring=
5014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5015echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5016 no_cache=0
5017 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5018if test "${enable_fs_inet+set}" = set; then
5019 enableval="$enable_fs_inet"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5023 else
5024 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5025 fi
5026
5027else
5028
5029 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5037
5038fi;
5039
5040 eval "$ac_cv_use_fs_inet"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_FS_INET" = yes; then
5046 echo "$as_me:$LINENO: result: yes" >&5
5047echo "${ECHO_T}yes" >&6
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
5051 fi
5052
5053
5054 enablestring=
5055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5056echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5057 no_cache=0
5058 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5059if test "${enable_fs_zip+set}" = set; then
5060 enableval="$enable_fs_zip"
5061
5062 if test "$enableval" = yes; then
5063 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5064 else
5065 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5066 fi
5067
5068else
5069
5070 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5071 if test "x$LINE" != x ; then
5072 eval "DEFAULT_$LINE"
5073 else
5074 no_cache=1
5075 fi
5076
5077 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5078
5079fi;
5080
5081 eval "$ac_cv_use_fs_zip"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_FS_ZIP" = yes; then
5087 echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
5089 else
5090 echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
5092 fi
5093
5094
5095 enablestring=
5096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5097echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5098 no_cache=0
5099 # Check whether --enable-geometry or --disable-geometry was given.
5100if test "${enable_geometry+set}" = set; then
5101 enableval="$enable_geometry"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5105 else
5106 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5119
5120fi;
5121
5122 eval "$ac_cv_use_geometry"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_GEOMETRY" = yes; then
5128 echo "$as_me:$LINENO: result: yes" >&5
5129echo "${ECHO_T}yes" >&6
5130 else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133 fi
5134
5135
5136 enablestring=
5137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5138echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5139 no_cache=0
5140 # Check whether --enable-log or --disable-log was given.
5141if test "${enable_log+set}" = set; then
5142 enableval="$enable_log"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_log='wxUSE_LOG=yes'
5146 else
5147 ac_cv_use_log='wxUSE_LOG=no'
5148 fi
5149
5150else
5151
5152 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5160
5161fi;
5162
5163 eval "$ac_cv_use_log"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_LOG" = yes; then
5169 echo "$as_me:$LINENO: result: yes" >&5
5170echo "${ECHO_T}yes" >&6
5171 else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174 fi
5175
5176
5177 enablestring=
5178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5179echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5180 no_cache=0
5181 # Check whether --enable-longlong or --disable-longlong was given.
5182if test "${enable_longlong+set}" = set; then
5183 enableval="$enable_longlong"
5184
5185 if test "$enableval" = yes; then
5186 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5187 else
5188 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5189 fi
5190
5191else
5192
5193 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5201
5202fi;
5203
5204 eval "$ac_cv_use_longlong"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_LONGLONG" = yes; then
5210 echo "$as_me:$LINENO: result: yes" >&5
5211echo "${ECHO_T}yes" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215 fi
5216
5217
5218 enablestring=
5219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5220echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5221 no_cache=0
5222 # Check whether --enable-mimetype or --disable-mimetype was given.
5223if test "${enable_mimetype+set}" = set; then
5224 enableval="$enable_mimetype"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5228 else
5229 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5230 fi
5231
5232else
5233
5234 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5242
5243fi;
5244
5245 eval "$ac_cv_use_mimetype"
5246 if test "$no_cache" != 1; then
5247 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5248 fi
5249
5250 if test "$wxUSE_MIMETYPE" = yes; then
5251 echo "$as_me:$LINENO: result: yes" >&5
5252echo "${ECHO_T}yes" >&6
5253 else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256 fi
5257
5258
5259 enablestring=
5260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5261echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5262 no_cache=0
5263 # Check whether --enable-mslu or --disable-mslu was given.
5264if test "${enable_mslu+set}" = set; then
5265 enableval="$enable_mslu"
5266
5267 if test "$enableval" = yes; then
5268 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5269 else
5270 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5271 fi
5272
5273else
5274
5275 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5276 if test "x$LINE" != x ; then
5277 eval "DEFAULT_$LINE"
5278 else
5279 no_cache=1
5280 fi
5281
5282 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5283
5284fi;
5285
5286 eval "$ac_cv_use_mslu"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_UNICODE_MSLU" = yes; then
5292 echo "$as_me:$LINENO: result: yes" >&5
5293echo "${ECHO_T}yes" >&6
5294 else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297 fi
5298
5299
5300 enablestring=
5301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5302echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5303 no_cache=0
5304 # Check whether --enable-snglinst or --disable-snglinst was given.
5305if test "${enable_snglinst+set}" = set; then
5306 enableval="$enable_snglinst"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5310 else
5311 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5312 fi
5313
5314else
5315
5316 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5324
5325fi;
5326
5327 eval "$ac_cv_use_snglinst"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5333 echo "$as_me:$LINENO: result: yes" >&5
5334echo "${ECHO_T}yes" >&6
5335 else
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338 fi
5339
5340
5341 enablestring=
5342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5343echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5344 no_cache=0
5345 # Check whether --enable-streams or --disable-streams was given.
5346if test "${enable_streams+set}" = set; then
5347 enableval="$enable_streams"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_streams='wxUSE_STREAMS=yes'
5351 else
5352 ac_cv_use_streams='wxUSE_STREAMS=no'
5353 fi
5354
5355else
5356
5357 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5365
5366fi;
5367
5368 eval "$ac_cv_use_streams"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_STREAMS" = yes; then
5374 echo "$as_me:$LINENO: result: yes" >&5
5375echo "${ECHO_T}yes" >&6
5376 else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379 fi
5380
5381
5382 enablestring=
5383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5384echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5385 no_cache=0
5386 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5387if test "${enable_std_iostreams+set}" = set; then
5388 enableval="$enable_std_iostreams"
5389
5390 if test "$enableval" = yes; then
5391 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5392 else
5393 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5394 fi
5395
5396else
5397
5398 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5406
5407fi;
5408
5409 eval "$ac_cv_use_std_iostreams"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_STD_IOSTREAM" = yes; then
5415 echo "$as_me:$LINENO: result: yes" >&5
5416echo "${ECHO_T}yes" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
5420 fi
5421
5422
5423 enablestring=
5424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5425echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5426 no_cache=0
5427 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5428if test "${enable_stopwatch+set}" = set; then
5429 enableval="$enable_stopwatch"
5430
5431 if test "$enableval" = yes; then
5432 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5433 else
5434 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5435 fi
5436
5437else
5438
5439 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5440 if test "x$LINE" != x ; then
5441 eval "DEFAULT_$LINE"
5442 else
5443 no_cache=1
5444 fi
5445
5446 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5447
5448fi;
5449
5450 eval "$ac_cv_use_stopwatch"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_STOPWATCH" = yes; then
5456 echo "$as_me:$LINENO: result: yes" >&5
5457echo "${ECHO_T}yes" >&6
5458 else
5459 echo "$as_me:$LINENO: result: no" >&5
5460echo "${ECHO_T}no" >&6
5461 fi
5462
5463
5464 enablestring=
5465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5466echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5467 no_cache=0
5468 # Check whether --enable-system_options or --disable-system_options was given.
5469if test "${enable_system_options+set}" = set; then
5470 enableval="$enable_system_options"
5471
5472 if test "$enableval" = yes; then
5473 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5474 else
5475 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5476 fi
5477
5478else
5479
5480 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5481 if test "x$LINE" != x ; then
5482 eval "DEFAULT_$LINE"
5483 else
5484 no_cache=1
5485 fi
5486
5487 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5488
5489fi;
5490
5491 eval "$ac_cv_use_system_options"
5492 if test "$no_cache" != 1; then
5493 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5494 fi
5495
5496 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5497 echo "$as_me:$LINENO: result: yes" >&5
5498echo "${ECHO_T}yes" >&6
5499 else
5500 echo "$as_me:$LINENO: result: no" >&5
5501echo "${ECHO_T}no" >&6
5502 fi
5503
5504
5505 enablestring=
5506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5507echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5508 no_cache=0
5509 # Check whether --enable-textbuf or --disable-textbuf was given.
5510if test "${enable_textbuf+set}" = set; then
5511 enableval="$enable_textbuf"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5515 else
5516 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5517 fi
5518
5519else
5520
5521 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5529
5530fi;
5531
5532 eval "$ac_cv_use_textbuf"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_TEXTBUFFER" = yes; then
5538 echo "$as_me:$LINENO: result: yes" >&5
5539echo "${ECHO_T}yes" >&6
5540 else
5541 echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543 fi
5544
5545
5546 enablestring=
5547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5548echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5549 no_cache=0
5550 # Check whether --enable-textfile or --disable-textfile was given.
5551if test "${enable_textfile+set}" = set; then
5552 enableval="$enable_textfile"
5553
5554 if test "$enableval" = yes; then
5555 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5556 else
5557 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5558 fi
5559
5560else
5561
5562 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5563 if test "x$LINE" != x ; then
5564 eval "DEFAULT_$LINE"
5565 else
5566 no_cache=1
5567 fi
5568
5569 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5570
5571fi;
5572
5573 eval "$ac_cv_use_textfile"
5574 if test "$no_cache" != 1; then
5575 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5576 fi
5577
5578 if test "$wxUSE_TEXTFILE" = yes; then
5579 echo "$as_me:$LINENO: result: yes" >&5
5580echo "${ECHO_T}yes" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584 fi
5585
5586
5587 enablestring=
5588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5589echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5590 no_cache=0
5591 # Check whether --enable-timer or --disable-timer was given.
5592if test "${enable_timer+set}" = set; then
5593 enableval="$enable_timer"
5594
5595 if test "$enableval" = yes; then
5596 ac_cv_use_timer='wxUSE_TIMER=yes'
5597 else
5598 ac_cv_use_timer='wxUSE_TIMER=no'
5599 fi
5600
5601else
5602
5603 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5604 if test "x$LINE" != x ; then
5605 eval "DEFAULT_$LINE"
5606 else
5607 no_cache=1
5608 fi
5609
5610 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5611
5612fi;
5613
5614 eval "$ac_cv_use_timer"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_TIMER" = yes; then
5620 echo "$as_me:$LINENO: result: yes" >&5
5621echo "${ECHO_T}yes" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625 fi
5626
5627
5628 enablestring=
5629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5630echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5631 no_cache=0
5632 # Check whether --enable-unicode or --disable-unicode was given.
5633if test "${enable_unicode+set}" = set; then
5634 enableval="$enable_unicode"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5638 else
5639 ac_cv_use_unicode='wxUSE_UNICODE=no'
5640 fi
5641
5642else
5643
5644 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5652
5653fi;
5654
5655 eval "$ac_cv_use_unicode"
5656 if test "$no_cache" != 1; then
5657 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5658 fi
5659
5660 if test "$wxUSE_UNICODE" = yes; then
5661 echo "$as_me:$LINENO: result: yes" >&5
5662echo "${ECHO_T}yes" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666 fi
5667
5668
5669 enablestring=
5670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5671echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5672 no_cache=0
5673 # Check whether --enable-sound or --disable-sound was given.
5674if test "${enable_sound+set}" = set; then
5675 enableval="$enable_sound"
5676
5677 if test "$enableval" = yes; then
5678 ac_cv_use_sound='wxUSE_SOUND=yes'
5679 else
5680 ac_cv_use_sound='wxUSE_SOUND=no'
5681 fi
5682
5683else
5684
5685 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5693
5694fi;
5695
5696 eval "$ac_cv_use_sound"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_SOUND" = yes; then
5702 echo "$as_me:$LINENO: result: yes" >&5
5703echo "${ECHO_T}yes" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707 fi
5708
5709
5710 enablestring=
5711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5712echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5713 no_cache=0
5714 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5715if test "${enable_wxprintfv+set}" = set; then
5716 enableval="$enable_wxprintfv"
5717
5718 if test "$enableval" = yes; then
5719 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5720 else
5721 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5722 fi
5723
5724else
5725
5726 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5734
5735fi;
5736
5737 eval "$ac_cv_use_wxprintfv"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744echo "${ECHO_T}yes" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748 fi
5749
5750
5751 enablestring=
5752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5753echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5754 no_cache=0
5755 # Check whether --enable-zipstream or --disable-zipstream was given.
5756if test "${enable_zipstream+set}" = set; then
5757 enableval="$enable_zipstream"
5758
5759 if test "$enableval" = yes; then
5760 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5761 else
5762 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5763 fi
5764
5765else
5766
5767 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5768 if test "x$LINE" != x ; then
5769 eval "DEFAULT_$LINE"
5770 else
5771 no_cache=1
5772 fi
5773
5774 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5775
5776fi;
5777
5778 eval "$ac_cv_use_zipstream"
5779 if test "$no_cache" != 1; then
5780 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5781 fi
5782
5783 if test "$wxUSE_ZIPSTREAM" = yes; then
5784 echo "$as_me:$LINENO: result: yes" >&5
5785echo "${ECHO_T}yes" >&6
5786 else
5787 echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789 fi
5790
5791
a848cd7e
SC
5792
5793 enablestring=
5794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5795echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5796 no_cache=0
5797 # Check whether --enable-url or --disable-url was given.
5798if test "${enable_url+set}" = set; then
5799 enableval="$enable_url"
5800
5801 if test "$enableval" = yes; then
5802 ac_cv_use_url='wxUSE_URL=yes'
5803 else
5804 ac_cv_use_url='wxUSE_URL=no'
5805 fi
5806
5807else
5808
5809 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5810 if test "x$LINE" != x ; then
5811 eval "DEFAULT_$LINE"
5812 else
5813 no_cache=1
5814 fi
5815
5816 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5817
5818fi;
5819
5820 eval "$ac_cv_use_url"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_URL" = yes; then
5826 echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6
5828 else
5829 echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6
5831 fi
5832
5833
5834 enablestring=
5835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5836echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5837 no_cache=0
5838 # Check whether --enable-protocol or --disable-protocol was given.
5839if test "${enable_protocol+set}" = set; then
5840 enableval="$enable_protocol"
5841
5842 if test "$enableval" = yes; then
5843 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5844 else
5845 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5846 fi
5847
5848else
5849
5850 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5858
5859fi;
5860
5861 eval "$ac_cv_use_protocol"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_PROTOCOL" = yes; then
5867 echo "$as_me:$LINENO: result: yes" >&5
5868echo "${ECHO_T}yes" >&6
5869 else
5870 echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
5872 fi
5873
5874
5875 enablestring=
5876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5877echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5878 no_cache=0
5879 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5880if test "${enable_protocol_http+set}" = set; then
5881 enableval="$enable_protocol_http"
5882
5883 if test "$enableval" = yes; then
5884 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5885 else
5886 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5887 fi
5888
5889else
5890
5891 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5899
5900fi;
5901
5902 eval "$ac_cv_use_protocol_http"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5908 echo "$as_me:$LINENO: result: yes" >&5
5909echo "${ECHO_T}yes" >&6
5910 else
5911 echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6
5913 fi
5914
5915
5916 enablestring=
5917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5918echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5919 no_cache=0
5920 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5921if test "${enable_protocol_ftp+set}" = set; then
5922 enableval="$enable_protocol_ftp"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5926 else
5927 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5928 fi
5929
5930else
5931
5932 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5940
5941fi;
5942
5943 eval "$ac_cv_use_protocol_ftp"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5949 echo "$as_me:$LINENO: result: yes" >&5
5950echo "${ECHO_T}yes" >&6
5951 else
5952 echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954 fi
5955
5956
5957 enablestring=
5958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5959echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5960 no_cache=0
5961 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5962if test "${enable_protocol_file+set}" = set; then
5963 enableval="$enable_protocol_file"
5964
5965 if test "$enableval" = yes; then
5966 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5967 else
5968 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5969 fi
5970
5971else
5972
5973 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5981
5982fi;
5983
5984 eval "$ac_cv_use_protocol_file"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5990 echo "$as_me:$LINENO: result: yes" >&5
5991echo "${ECHO_T}yes" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
5995 fi
5996
5997
5998
5999
6000
6001 enablestring=
6002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6003echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6004 no_cache=0
6005 # Check whether --enable-threads or --disable-threads was given.
6006if test "${enable_threads+set}" = set; then
6007 enableval="$enable_threads"
6008
6009 if test "$enableval" = yes; then
6010 ac_cv_use_threads='wxUSE_THREADS=yes'
6011 else
6012 ac_cv_use_threads='wxUSE_THREADS=no'
6013 fi
6014
6015else
6016
6017 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6018 if test "x$LINE" != x ; then
6019 eval "DEFAULT_$LINE"
6020 else
6021 no_cache=1
6022 fi
6023
6024 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6025
6026fi;
6027
6028 eval "$ac_cv_use_threads"
6029 if test "$no_cache" != 1; then
6030 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6031 fi
6032
6033 if test "$wxUSE_THREADS" = yes; then
6034 echo "$as_me:$LINENO: result: yes" >&5
6035echo "${ECHO_T}yes" >&6
6036 else
6037 echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
6039 fi
6040
6041
6042if test "$wxUSE_GUI" = "yes"; then
6043
6044
6045
6046 enablestring=
6047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6048echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6049 no_cache=0
6050 # Check whether --enable-docview or --disable-docview was given.
6051if test "${enable_docview+set}" = set; then
6052 enableval="$enable_docview"
6053
6054 if test "$enableval" = yes; then
6055 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6056 else
6057 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6058 fi
6059
6060else
6061
6062 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6063 if test "x$LINE" != x ; then
6064 eval "DEFAULT_$LINE"
6065 else
6066 no_cache=1
6067 fi
6068
6069 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6070
6071fi;
6072
6073 eval "$ac_cv_use_docview"
6074 if test "$no_cache" != 1; then
6075 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6076 fi
6077
6078 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6079 echo "$as_me:$LINENO: result: yes" >&5
6080echo "${ECHO_T}yes" >&6
6081 else
6082 echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6
6084 fi
6085
6086
6087 enablestring=
6088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6089echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6090 no_cache=0
6091 # Check whether --enable-help or --disable-help was given.
6092if test "${enable_help+set}" = set; then
6093 enableval="$enable_help"
6094
6095 if test "$enableval" = yes; then
6096 ac_cv_use_help='wxUSE_HELP=yes'
6097 else
6098 ac_cv_use_help='wxUSE_HELP=no'
6099 fi
6100
6101else
6102
6103 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6104 if test "x$LINE" != x ; then
6105 eval "DEFAULT_$LINE"
6106 else
6107 no_cache=1
6108 fi
6109
6110 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6111
6112fi;
6113
6114 eval "$ac_cv_use_help"
6115 if test "$no_cache" != 1; then
6116 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6117 fi
6118
6119 if test "$wxUSE_HELP" = yes; then
6120 echo "$as_me:$LINENO: result: yes" >&5
6121echo "${ECHO_T}yes" >&6
6122 else
6123 echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125 fi
6126
6127
6128 enablestring=
6129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6130echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6131 no_cache=0
6132 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6133if test "${enable_mshtmlhelp+set}" = set; then
6134 enableval="$enable_mshtmlhelp"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6138 else
6139 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6140 fi
6141
6142else
6143
6144 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6152
6153fi;
6154
6155 eval "$ac_cv_use_mshtmlhelp"
6156 if test "$no_cache" != 1; then
6157 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6158 fi
6159
6160 if test "$wxUSE_MS_HTML_HELP" = yes; then
6161 echo "$as_me:$LINENO: result: yes" >&5
6162echo "${ECHO_T}yes" >&6
6163 else
6164 echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
6166 fi
6167
6168
6169 enablestring=
6170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6171echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6172 no_cache=0
6173 # Check whether --enable-html or --disable-html was given.
6174if test "${enable_html+set}" = set; then
6175 enableval="$enable_html"
6176
6177 if test "$enableval" = yes; then
6178 ac_cv_use_html='wxUSE_HTML=yes'
6179 else
6180 ac_cv_use_html='wxUSE_HTML=no'
6181 fi
6182
6183else
6184
6185 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6186 if test "x$LINE" != x ; then
6187 eval "DEFAULT_$LINE"
6188 else
6189 no_cache=1
6190 fi
6191
6192 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6193
6194fi;
6195
6196 eval "$ac_cv_use_html"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_HTML" = yes; then
6202 echo "$as_me:$LINENO: result: yes" >&5
6203echo "${ECHO_T}yes" >&6
6204 else
6205 echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
6207 fi
6208
6209
6210 enablestring=
6211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6212echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6213 no_cache=0
6214 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6215if test "${enable_htmlhelp+set}" = set; then
6216 enableval="$enable_htmlhelp"
6217
6218 if test "$enableval" = yes; then
6219 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6220 else
6221 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6222 fi
6223
6224else
6225
6226 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6227 if test "x$LINE" != x ; then
6228 eval "DEFAULT_$LINE"
6229 else
6230 no_cache=1
6231 fi
6232
6233 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6234
6235fi;
6236
6237 eval "$ac_cv_use_htmlhelp"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_WXHTML_HELP" = yes; then
6243 echo "$as_me:$LINENO: result: yes" >&5
6244echo "${ECHO_T}yes" >&6
6245 else
6246 echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6
6248 fi
6249
6250
6251 enablestring=
6252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6253echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6254 no_cache=0
6255 # Check whether --enable-constraints or --disable-constraints was given.
6256if test "${enable_constraints+set}" = set; then
6257 enableval="$enable_constraints"
6258
6259 if test "$enableval" = yes; then
6260 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6261 else
6262 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6263 fi
6264
6265else
6266
6267 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6268 if test "x$LINE" != x ; then
6269 eval "DEFAULT_$LINE"
6270 else
6271 no_cache=1
6272 fi
6273
6274 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6275
6276fi;
6277
6278 eval "$ac_cv_use_constraints"
6279 if test "$no_cache" != 1; then
6280 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6281 fi
6282
6283 if test "$wxUSE_CONSTRAINTS" = yes; then
6284 echo "$as_me:$LINENO: result: yes" >&5
6285echo "${ECHO_T}yes" >&6
6286 else
6287 echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
6289 fi
6290
6291
6292 enablestring=
6293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6294echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6295 no_cache=0
6296 # Check whether --enable-printarch or --disable-printarch was given.
6297if test "${enable_printarch+set}" = set; then
6298 enableval="$enable_printarch"
6299
6300 if test "$enableval" = yes; then
6301 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6302 else
6303 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6304 fi
6305
6306else
6307
6308 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6316
6317fi;
6318
6319 eval "$ac_cv_use_printarch"
6320 if test "$no_cache" != 1; then
6321 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6322 fi
6323
6324 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6325 echo "$as_me:$LINENO: result: yes" >&5
6326echo "${ECHO_T}yes" >&6
6327 else
6328 echo "$as_me:$LINENO: result: no" >&5
6329echo "${ECHO_T}no" >&6
6330 fi
6331
6332
6333 enablestring=
6334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6335echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6336 no_cache=0
6337 # Check whether --enable-mdi or --disable-mdi was given.
6338if test "${enable_mdi+set}" = set; then
6339 enableval="$enable_mdi"
6340
6341 if test "$enableval" = yes; then
8a7b1113 6342 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6343 else
8a7b1113 6344 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6345 fi
6346
6347else
6348
8a7b1113 6349 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
8a7b1113 6356 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6357
6358fi;
6359
6360 eval "$ac_cv_use_mdi"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6363 fi
6364
8a7b1113
VZ
6365 if test "$wxUSE_MDI" = yes; then
6366 echo "$as_me:$LINENO: result: yes" >&5
6367echo "${ECHO_T}yes" >&6
6368 else
6369 echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6
6371 fi
6372
6373
6374 enablestring=
6375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6376echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6377 no_cache=0
6378 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6379if test "${enable_mdidoc+set}" = set; then
6380 enableval="$enable_mdidoc"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6384 else
6385 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6386 fi
6387
6388else
6389
6390 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6398
6399fi;
6400
6401 eval "$ac_cv_use_mdidoc"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6404 fi
6405
a848cd7e
SC
6406 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6407 echo "$as_me:$LINENO: result: yes" >&5
6408echo "${ECHO_T}yes" >&6
6409 else
6410 echo "$as_me:$LINENO: result: no" >&5
6411echo "${ECHO_T}no" >&6
6412 fi
6413
6414
6415 enablestring=
6416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6417echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6418 no_cache=0
6419 # Check whether --enable-loggui or --disable-loggui was given.
6420if test "${enable_loggui+set}" = set; then
6421 enableval="$enable_loggui"
6422
6423 if test "$enableval" = yes; then
6424 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6425 else
6426 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6427 fi
6428
6429else
6430
6431 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6439
6440fi;
6441
6442 eval "$ac_cv_use_loggui"
6443 if test "$no_cache" != 1; then
6444 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6445 fi
6446
6447 if test "$wxUSE_LOGGUI" = yes; then
6448 echo "$as_me:$LINENO: result: yes" >&5
6449echo "${ECHO_T}yes" >&6
6450 else
6451 echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6
6453 fi
6454
6455
6456 enablestring=
6457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6458echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6459 no_cache=0
6460 # Check whether --enable-logwin or --disable-logwin was given.
6461if test "${enable_logwin+set}" = set; then
6462 enableval="$enable_logwin"
6463
6464 if test "$enableval" = yes; then
6465 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6466 else
6467 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6468 fi
6469
6470else
6471
6472 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6480
6481fi;
6482
6483 eval "$ac_cv_use_logwin"
6484 if test "$no_cache" != 1; then
6485 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6486 fi
6487
6488 if test "$wxUSE_LOGWINDOW" = yes; then
6489 echo "$as_me:$LINENO: result: yes" >&5
6490echo "${ECHO_T}yes" >&6
6491 else
6492 echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6
6494 fi
6495
6496
6497 enablestring=
6498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6499echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6500 no_cache=0
6501 # Check whether --enable-logdialog or --disable-logdialog was given.
6502if test "${enable_logdialog+set}" = set; then
6503 enableval="$enable_logdialog"
6504
6505 if test "$enableval" = yes; then
6506 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6507 else
6508 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6509 fi
6510
6511else
6512
6513 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6521
6522fi;
6523
6524 eval "$ac_cv_use_logdialog"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_LOGDIALOG" = yes; then
6530 echo "$as_me:$LINENO: result: yes" >&5
6531echo "${ECHO_T}yes" >&6
6532 else
6533 echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535 fi
6536
6537
6538
6539 enablestring=
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6541echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6542 no_cache=0
6543 # Check whether --enable-postscript or --disable-postscript was given.
6544if test "${enable_postscript+set}" = set; then
6545 enableval="$enable_postscript"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6549 else
6550 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6551 fi
6552
6553else
6554
6555 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6563
6564fi;
6565
6566 eval "$ac_cv_use_postscript"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_POSTSCRIPT" = yes; then
6572 echo "$as_me:$LINENO: result: yes" >&5
6573echo "${ECHO_T}yes" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
6577 fi
6578
6579
6580
6581
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-prologio or --disable-prologio was given.
6588if test "${enable_prologio+set}" = set; then
6589 enableval="$enable_prologio"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6593 else
6594 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6607
6608fi;
6609
6610 eval "$ac_cv_use_prologio"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_PROLOGIO" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-resources or --disable-resources was given.
6629if test "${enable_resources+set}" = set; then
6630 enableval="$enable_resources"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6634 else
6635 ac_cv_use_resources='wxUSE_RESOURCES=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6648
6649fi;
6650
6651 eval "$ac_cv_use_resources"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_RESOURCES" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662 fi
6663
6664
6665
6666
6667 enablestring=
6668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6669echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6670 no_cache=0
6671 # Check whether --enable-clipboard or --disable-clipboard was given.
6672if test "${enable_clipboard+set}" = set; then
6673 enableval="$enable_clipboard"
6674
6675 if test "$enableval" = yes; then
6676 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6677 else
6678 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6679 fi
6680
6681else
6682
6683 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6684 if test "x$LINE" != x ; then
6685 eval "DEFAULT_$LINE"
6686 else
6687 no_cache=1
6688 fi
6689
6690 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6691
6692fi;
6693
6694 eval "$ac_cv_use_clipboard"
6695 if test "$no_cache" != 1; then
6696 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6697 fi
6698
6699 if test "$wxUSE_CLIPBOARD" = yes; then
6700 echo "$as_me:$LINENO: result: yes" >&5
6701echo "${ECHO_T}yes" >&6
6702 else
6703 echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6
6705 fi
6706
6707
6708 enablestring=
6709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6710echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6711 no_cache=0
6712 # Check whether --enable-dnd or --disable-dnd was given.
6713if test "${enable_dnd+set}" = set; then
6714 enableval="$enable_dnd"
6715
6716 if test "$enableval" = yes; then
6717 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6718 else
6719 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6720 fi
6721
6722else
6723
6724 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6725 if test "x$LINE" != x ; then
6726 eval "DEFAULT_$LINE"
6727 else
6728 no_cache=1
6729 fi
6730
6731 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6732
6733fi;
6734
6735 eval "$ac_cv_use_dnd"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6741 echo "$as_me:$LINENO: result: yes" >&5
6742echo "${ECHO_T}yes" >&6
6743 else
6744 echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
6746 fi
6747
6748
6749 enablestring=
6750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6751echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6752 no_cache=0
6753 # Check whether --enable-metafile or --disable-metafile was given.
6754if test "${enable_metafile+set}" = set; then
6755 enableval="$enable_metafile"
6756
6757 if test "$enableval" = yes; then
6758 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6759 else
6760 ac_cv_use_metafile='wxUSE_METAFILE=no'
6761 fi
6762
6763else
6764
6765 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6773
6774fi;
6775
6776 eval "$ac_cv_use_metafile"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_METAFILE" = yes; then
6782 echo "$as_me:$LINENO: result: yes" >&5
6783echo "${ECHO_T}yes" >&6
6784 else
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
6787 fi
6788
6789
6790
6791
6792
6793 enablestring=
6794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6795echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6796 no_cache=0
6797 # Check whether --enable-controls or --disable-controls was given.
6798if test "${enable_controls+set}" = set; then
6799 enableval="$enable_controls"
6800
6801 if test "$enableval" = yes; then
6802 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6803 else
6804 ac_cv_use_controls='wxUSE_CONTROLS=no'
6805 fi
6806
6807else
6808
6809 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6810 if test "x$LINE" != x ; then
6811 eval "DEFAULT_$LINE"
6812 else
6813 no_cache=1
6814 fi
6815
6816 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6817
6818fi;
6819
6820 eval "$ac_cv_use_controls"
6821 if test "$no_cache" != 1; then
6822 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6823 fi
6824
6825 if test "$wxUSE_CONTROLS" = yes; then
6826 echo "$as_me:$LINENO: result: yes" >&5
6827echo "${ECHO_T}yes" >&6
6828 else
6829 echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6
6831 fi
6832
6833
6834if test "$wxUSE_CONTROLS" = "yes"; then
6835 DEFAULT_wxUSE_ACCEL=yes
6836 DEFAULT_wxUSE_BMPBUTTON=yes
6837 DEFAULT_wxUSE_BUTTON=yes
6838 DEFAULT_wxUSE_CALCTRL=no
6839 DEFAULT_wxUSE_CARET=yes
6840 DEFAULT_wxUSE_COMBOBOX=yes
6841 DEFAULT_wxUSE_CHECKBOX=yes
6842 DEFAULT_wxUSE_CHECKLISTBOX=yes
6843 DEFAULT_wxUSE_CHOICE=yes
6844 DEFAULT_wxUSE_GAUGE=yes
6845 DEFAULT_wxUSE_GRID=yes
6846 DEFAULT_wxUSE_IMAGLIST=yes
6847 DEFAULT_wxUSE_LISTBOOK=yes
6848 DEFAULT_wxUSE_LISTBOX=yes
6849 DEFAULT_wxUSE_LISTCTRL=yes
6850 DEFAULT_wxUSE_NOTEBOOK=yes
6851 DEFAULT_wxUSE_RADIOBOX=yes
6852 DEFAULT_wxUSE_RADIOBTN=yes
6853 DEFAULT_wxUSE_SASH=yes
6854 DEFAULT_wxUSE_SCROLLBAR=yes
6855 DEFAULT_wxUSE_SLIDER=yes
6856 DEFAULT_wxUSE_SPINBTN=yes
6857 DEFAULT_wxUSE_SPINCTRL=yes
6858 DEFAULT_wxUSE_SPLITTER=yes
6859 DEFAULT_wxUSE_STATBMP=yes
6860 DEFAULT_wxUSE_STATBOX=yes
6861 DEFAULT_wxUSE_STATLINE=yes
6862 DEFAULT_wxUSE_STATUSBAR=yes
6863 DEFAULT_wxUSE_TAB_DIALOG=yes
6864 DEFAULT_wxUSE_TOGGLEBTN=yes
6865 DEFAULT_wxUSE_TOOLBAR=yes
6866 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6867 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6868 DEFAULT_wxUSE_TOOLTIPS=yes
6869 DEFAULT_wxUSE_TREECTRL=yes
6870 DEFAULT_wxUSE_POPUPWIN=yes
6871 DEFAULT_wxUSE_TIPWINDOW=yes
6872elif test "$wxUSE_CONTROLS" = "no"; then
6873 DEFAULT_wxUSE_ACCEL=no
6874 DEFAULT_wxUSE_BMPBUTTON=no
6875 DEFAULT_wxUSE_BUTTON=no
6876 DEFAULT_wxUSE_CALCTRL=no
6877 DEFAULT_wxUSE_CARET=no
6878 DEFAULT_wxUSE_COMBOBOX=no
6879 DEFAULT_wxUSE_CHECKBOX=no
6880 DEFAULT_wxUSE_CHECKLISTBOX=no
6881 DEFAULT_wxUSE_CHOICE=no
6882 DEFAULT_wxUSE_GAUGE=no
6883 DEFAULT_wxUSE_GRID=no
6884 DEFAULT_wxUSE_IMAGLIST=no
6885 DEFAULT_wxUSE_LISTBOOK=no
6886 DEFAULT_wxUSE_LISTBOX=no
6887 DEFAULT_wxUSE_LISTCTRL=no
6888 DEFAULT_wxUSE_NOTEBOOK=no
6889 DEFAULT_wxUSE_RADIOBOX=no
6890 DEFAULT_wxUSE_RADIOBTN=no
6891 DEFAULT_wxUSE_SASH=no
6892 DEFAULT_wxUSE_SCROLLBAR=no
6893 DEFAULT_wxUSE_SLIDER=no
6894 DEFAULT_wxUSE_SPINBTN=no
6895 DEFAULT_wxUSE_SPINCTRL=no
6896 DEFAULT_wxUSE_SPLITTER=no
6897 DEFAULT_wxUSE_STATBMP=no
6898 DEFAULT_wxUSE_STATBOX=no
6899 DEFAULT_wxUSE_STATLINE=no
6900 DEFAULT_wxUSE_STATUSBAR=no
6901 DEFAULT_wxUSE_TAB_DIALOG=no
6902 DEFAULT_wxUSE_TOGGLEBTN=no
6903 DEFAULT_wxUSE_TOOLBAR=no
6904 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6905 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6906 DEFAULT_wxUSE_TOOLTIPS=no
6907 DEFAULT_wxUSE_TREECTRL=no
6908 DEFAULT_wxUSE_POPUPWIN=no
6909 DEFAULT_wxUSE_TIPWINDOW=no
6910fi
6911
6912## FIXME: This is a blatant hack
6913if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6914 wxUSE_PRINTING_ARCHITECTURE=no
6915 wxUSE_DRAG_AND_DROP=no
6916 # Generic notebook requires tab dialog
6917 DEFAULT_wxUSE_TABDIALOG=yes
6918 DEFAULT_wxUSE_SCROLLBAR=no
6919 DEFAULT_wxUSE_TOOLTIPS=no
6920 DEFAULT_wxUSE_DRAGIMAGE=no
6921fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-accel or --disable-accel was given.
6929if test "${enable_accel+set}" = set; then
6930 enableval="$enable_accel"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_accel='wxUSE_ACCEL=yes'
6934 else
6935 ac_cv_use_accel='wxUSE_ACCEL=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6948
6949fi;
6950
6951 eval "$ac_cv_use_accel"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_ACCEL" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-button or --disable-button was given.
6970if test "${enable_button+set}" = set; then
6971 enableval="$enable_button"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_button='wxUSE_BUTTON=yes'
6975 else
6976 ac_cv_use_button='wxUSE_BUTTON=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6989
6990fi;
6991
6992 eval "$ac_cv_use_button"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_BUTTON" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7011if test "${enable_bmpbutton+set}" = set; then
7012 enableval="$enable_bmpbutton"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7016 else
7017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7030
7031fi;
7032
7033 eval "$ac_cv_use_bmpbutton"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_BMPBUTTON" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-calendar or --disable-calendar was given.
7052if test "${enable_calendar+set}" = set; then
7053 enableval="$enable_calendar"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7057 else
7058 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7071
7072fi;
7073
7074 eval "$ac_cv_use_calendar"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_CALCTRL" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-caret or --disable-caret was given.
7093if test "${enable_caret+set}" = set; then
7094 enableval="$enable_caret"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_caret='wxUSE_CARET=yes'
7098 else
7099 ac_cv_use_caret='wxUSE_CARET=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7112
7113fi;
7114
7115 eval "$ac_cv_use_caret"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CARET" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-checkbox or --disable-checkbox was given.
7134if test "${enable_checkbox+set}" = set; then
7135 enableval="$enable_checkbox"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7139 else
7140 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7153
7154fi;
7155
7156 eval "$ac_cv_use_checkbox"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_CHECKBOX" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-checklst or --disable-checklst was given.
7175if test "${enable_checklst+set}" = set; then
7176 enableval="$enable_checklst"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7180 else
7181 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7194
7195fi;
7196
7197 eval "$ac_cv_use_checklst"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_CHECKLST" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211 enablestring=
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7213echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7214 no_cache=0
7215 # Check whether --enable-choice or --disable-choice was given.
7216if test "${enable_choice+set}" = set; then
7217 enableval="$enable_choice"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_choice='wxUSE_CHOICE=yes'
7221 else
7222 ac_cv_use_choice='wxUSE_CHOICE=no'
7223 fi
7224
7225else
7226
7227 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7235
7236fi;
7237
7238 eval "$ac_cv_use_choice"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_CHOICE" = yes; then
7244 echo "$as_me:$LINENO: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
7246 else
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
7249 fi
7250
7251
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-combobox or --disable-combobox was given.
7257if test "${enable_combobox+set}" = set; then
7258 enableval="$enable_combobox"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7262 else
7263 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7276
7277fi;
7278
7279 eval "$ac_cv_use_combobox"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_COMBOBOX" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293 enablestring=
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7295echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7296 no_cache=0
7297 # Check whether --enable-display or --disable-display was given.
7298if test "${enable_display+set}" = set; then
7299 enableval="$enable_display"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_display='wxUSE_DISPLAY=yes'
7303 else
7304 ac_cv_use_display='wxUSE_DISPLAY=no'
7305 fi
7306
7307else
7308
7309 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7317
7318fi;
7319
7320 eval "$ac_cv_use_display"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_DISPLAY" = yes; then
7326 echo "$as_me:$LINENO: result: yes" >&5
7327echo "${ECHO_T}yes" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
7331 fi
7332
7333
7334 enablestring=
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7336echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7337 no_cache=0
7338 # Check whether --enable-gauge or --disable-gauge was given.
7339if test "${enable_gauge+set}" = set; then
7340 enableval="$enable_gauge"
7341
7342 if test "$enableval" = yes; then
7343 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7344 else
7345 ac_cv_use_gauge='wxUSE_GAUGE=no'
7346 fi
7347
7348else
7349
7350 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
7357 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7358
7359fi;
7360
7361 eval "$ac_cv_use_gauge"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_GAUGE" = yes; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368echo "${ECHO_T}yes" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
7372 fi
7373
7374
7375 enablestring=
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7377echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7378 no_cache=0
7379 # Check whether --enable-grid or --disable-grid was given.
7380if test "${enable_grid+set}" = set; then
7381 enableval="$enable_grid"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_grid='wxUSE_GRID=yes'
7385 else
7386 ac_cv_use_grid='wxUSE_GRID=no'
7387 fi
7388
7389else
7390
7391 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7399
7400fi;
7401
7402 eval "$ac_cv_use_grid"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_GRID" = yes; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409echo "${ECHO_T}yes" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413 fi
7414
7415
7416 enablestring=
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7418echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7419 no_cache=0
7420 # Check whether --enable-imaglist or --disable-imaglist was given.
7421if test "${enable_imaglist+set}" = set; then
7422 enableval="$enable_imaglist"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7426 else
7427 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7440
7441fi;
7442
7443 eval "$ac_cv_use_imaglist"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_IMAGLIST" = yes; then
7449 echo "$as_me:$LINENO: result: yes" >&5
7450echo "${ECHO_T}yes" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454 fi
7455
7456
7457 enablestring=
7458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7459echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7460 no_cache=0
7461 # Check whether --enable-listbook or --disable-listbook was given.
7462if test "${enable_listbook+set}" = set; then
7463 enableval="$enable_listbook"
7464
7465 if test "$enableval" = yes; then
7466 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7467 else
7468 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7469 fi
7470
7471else
7472
7473 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7474 if test "x$LINE" != x ; then
7475 eval "DEFAULT_$LINE"
7476 else
7477 no_cache=1
7478 fi
7479
7480 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7481
7482fi;
7483
7484 eval "$ac_cv_use_listbook"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_LISTBOOK" = yes; then
7490 echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6
7492 else
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495 fi
7496
7497
7498 enablestring=
7499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7500echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7501 no_cache=0
7502 # Check whether --enable-listbox or --disable-listbox was given.
7503if test "${enable_listbox+set}" = set; then
7504 enableval="$enable_listbox"
7505
7506 if test "$enableval" = yes; then
7507 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7508 else
7509 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7510 fi
7511
7512else
7513
7514 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7515 if test "x$LINE" != x ; then
7516 eval "DEFAULT_$LINE"
7517 else
7518 no_cache=1
7519 fi
7520
7521 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7522
7523fi;
7524
7525 eval "$ac_cv_use_listbox"
7526 if test "$no_cache" != 1; then
7527 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7528 fi
7529
7530 if test "$wxUSE_LISTBOX" = yes; then
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
7533 else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536 fi
7537
7538
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-listctrl or --disable-listctrl was given.
7544if test "${enable_listctrl+set}" = set; then
7545 enableval="$enable_listctrl"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7549 else
7550 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7551 fi
7552
7553else
7554
7555 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7563
7564fi;
7565
7566 eval "$ac_cv_use_listctrl"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_LISTCTRL" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-notebook or --disable-notebook was given.
7585if test "${enable_notebook+set}" = set; then
7586 enableval="$enable_notebook"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7590 else
7591 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7592 fi
7593
7594else
7595
7596 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7604
7605fi;
7606
7607 eval "$ac_cv_use_notebook"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_NOTEBOOK" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618 fi
7619
7620
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-radiobox or --disable-radiobox was given.
7626if test "${enable_radiobox+set}" = set; then
7627 enableval="$enable_radiobox"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7631 else
7632 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7633 fi
7634
7635else
7636
7637 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7645
7646fi;
7647
7648 eval "$ac_cv_use_radiobox"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_RADIOBOX" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659 fi
7660
7661
7662 enablestring=
7663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7664echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7665 no_cache=0
7666 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7667if test "${enable_radiobtn+set}" = set; then
7668 enableval="$enable_radiobtn"
7669
7670 if test "$enableval" = yes; then
7671 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7672 else
7673 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7674 fi
7675
7676else
7677
7678 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7679 if test "x$LINE" != x ; then
7680 eval "DEFAULT_$LINE"
7681 else
7682 no_cache=1
7683 fi
7684
7685 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7686
7687fi;
7688
7689 eval "$ac_cv_use_radiobtn"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_RADIOBTN" = yes; then
7695 echo "$as_me:$LINENO: result: yes" >&5
7696echo "${ECHO_T}yes" >&6
7697 else
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
7700 fi
7701
7702
7703 enablestring=
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7705echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7706 no_cache=0
7707 # Check whether --enable-sash or --disable-sash was given.
7708if test "${enable_sash+set}" = set; then
7709 enableval="$enable_sash"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_sash='wxUSE_SASH=yes'
7713 else
7714 ac_cv_use_sash='wxUSE_SASH=no'
7715 fi
7716
7717else
7718
7719 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7727
7728fi;
7729
7730 eval "$ac_cv_use_sash"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_SASH" = yes; then
7736 echo "$as_me:$LINENO: result: yes" >&5
7737echo "${ECHO_T}yes" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744 enablestring=
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7746echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7747 no_cache=0
7748 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7749if test "${enable_scrollbar+set}" = set; then
7750 enableval="$enable_scrollbar"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7754 else
7755 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7756 fi
7757
7758else
7759
7760 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7768
7769fi;
7770
7771 eval "$ac_cv_use_scrollbar"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_SCROLLBAR" = yes; then
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782 fi
7783
7784
7785 enablestring=
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7787echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7788 no_cache=0
7789 # Check whether --enable-slider or --disable-slider was given.
7790if test "${enable_slider+set}" = set; then
7791 enableval="$enable_slider"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_slider='wxUSE_SLIDER=yes'
7795 else
7796 ac_cv_use_slider='wxUSE_SLIDER=no'
7797 fi
7798
7799else
7800
7801 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7809
7810fi;
7811
7812 eval "$ac_cv_use_slider"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_SLIDER" = yes; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823 fi
7824
7825
7826 enablestring=
7827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7828echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7829 no_cache=0
7830 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7831if test "${enable_spinbtn+set}" = set; then
7832 enableval="$enable_spinbtn"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7836 else
7837 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7838 fi
7839
7840else
7841
7842 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7850
7851fi;
7852
7853 eval "$ac_cv_use_spinbtn"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_SPINBTN" = yes; then
7859 echo "$as_me:$LINENO: result: yes" >&5
7860echo "${ECHO_T}yes" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
7864 fi
7865
7866
7867 enablestring=
7868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7869echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7870 no_cache=0
7871 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7872if test "${enable_spinctrl+set}" = set; then
7873 enableval="$enable_spinctrl"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7877 else
7878 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7879 fi
7880
7881else
7882
7883 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7891
7892fi;
7893
7894 eval "$ac_cv_use_spinctrl"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_SPINCTRL" = yes; then
7900 echo "$as_me:$LINENO: result: yes" >&5
7901echo "${ECHO_T}yes" >&6
7902 else
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905 fi
7906
7907
7908 enablestring=
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7910echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7911 no_cache=0
7912 # Check whether --enable-splitter or --disable-splitter was given.
7913if test "${enable_splitter+set}" = set; then
7914 enableval="$enable_splitter"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7918 else
7919 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7920 fi
7921
7922else
7923
7924 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7932
7933fi;
7934
7935 eval "$ac_cv_use_splitter"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_SPLITTER" = yes; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946 fi
7947
7948
7949 enablestring=
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7951echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7952 no_cache=0
7953 # Check whether --enable-statbmp or --disable-statbmp was given.
7954if test "${enable_statbmp+set}" = set; then
7955 enableval="$enable_statbmp"
7956
7957 if test "$enableval" = yes; then
7958 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7959 else
7960 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7961 fi
7962
7963else
7964
7965 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7973
7974fi;
7975
7976 eval "$ac_cv_use_statbmp"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_STATBMP" = yes; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983echo "${ECHO_T}yes" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987 fi
7988
7989
7990 enablestring=
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7992echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7993 no_cache=0
7994 # Check whether --enable-statbox or --disable-statbox was given.
7995if test "${enable_statbox+set}" = set; then
7996 enableval="$enable_statbox"
7997
7998 if test "$enableval" = yes; then
7999 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8000 else
8001 ac_cv_use_statbox='wxUSE_STATBOX=no'
8002 fi
8003
8004else
8005
8006 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8014
8015fi;
8016
8017 eval "$ac_cv_use_statbox"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_STATBOX" = yes; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028 fi
8029
8030
8031 enablestring=
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8033echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8034 no_cache=0
8035 # Check whether --enable-statline or --disable-statline was given.
8036if test "${enable_statline+set}" = set; then
8037 enableval="$enable_statline"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_statline='wxUSE_STATLINE=yes'
8041 else
8042 ac_cv_use_statline='wxUSE_STATLINE=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8055
8056fi;
8057
8058 eval "$ac_cv_use_statline"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_STATLINE" = yes; then
8064 echo "$as_me:$LINENO: result: yes" >&5
8065echo "${ECHO_T}yes" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069 fi
8070
8071
8072 enablestring=
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8074echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8075 no_cache=0
8076 # Check whether --enable-stattext or --disable-stattext was given.
8077if test "${enable_stattext+set}" = set; then
8078 enableval="$enable_stattext"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8082 else
8083 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8096
8097fi;
8098
8099 eval "$ac_cv_use_stattext"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_STATTEXT" = yes; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106echo "${ECHO_T}yes" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
8110 fi
8111
8112
8113 enablestring=
8114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8115echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8116 no_cache=0
8117 # Check whether --enable-statusbar or --disable-statusbar was given.
8118if test "${enable_statusbar+set}" = set; then
8119 enableval="$enable_statusbar"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8123 else
8124 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8137
8138fi;
8139
8140 eval "$ac_cv_use_statusbar"
8141 if test "$no_cache" != 1; then
8142 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8143 fi
8144
8145 if test "$wxUSE_STATUSBAR" = yes; then
8146 echo "$as_me:$LINENO: result: yes" >&5
8147echo "${ECHO_T}yes" >&6
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151 fi
8152
8153
8154 enablestring=
8155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8156echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8157 no_cache=0
8158 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8159if test "${enable_tabdialog+set}" = set; then
8160 enableval="$enable_tabdialog"
8161
8162 if test "$enableval" = yes; then
8163 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8164 else
8165 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8166 fi
8167
8168else
8169
8170 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8171 if test "x$LINE" != x ; then
8172 eval "DEFAULT_$LINE"
8173 else
8174 no_cache=1
8175 fi
8176
8177 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8178
8179fi;
8180
8181 eval "$ac_cv_use_tabdialog"
8182 if test "$no_cache" != 1; then
8183 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8184 fi
8185
8186 if test "$wxUSE_TABDIALOG" = yes; then
8187 echo "$as_me:$LINENO: result: yes" >&5
8188echo "${ECHO_T}yes" >&6
8189 else
8190 echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6
8192 fi
8193
8194
8195 enablestring=
8196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8197echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8198 no_cache=0
8199 # Check whether --enable-textctrl or --disable-textctrl was given.
8200if test "${enable_textctrl+set}" = set; then
8201 enableval="$enable_textctrl"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8205 else
8206 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8219
8220fi;
8221
8222 eval "$ac_cv_use_textctrl"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_TEXTCTRL" = yes; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229echo "${ECHO_T}yes" >&6
8230 else
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
8233 fi
8234
8235
8236 enablestring=
8237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8238echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8239 no_cache=0
8240 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8241if test "${enable_togglebtn+set}" = set; then
8242 enableval="$enable_togglebtn"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8246 else
8247 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8248 fi
8249
8250else
8251
8252 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8260
8261fi;
8262
8263 eval "$ac_cv_use_togglebtn"
8264 if test "$no_cache" != 1; then
8265 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8266 fi
8267
8268 if test "$wxUSE_TOGGLEBTN" = yes; then
8269 echo "$as_me:$LINENO: result: yes" >&5
8270echo "${ECHO_T}yes" >&6
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
8274 fi
8275
8276
8277 enablestring=
8278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8279echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8280 no_cache=0
8281 # Check whether --enable-toolbar or --disable-toolbar was given.
8282if test "${enable_toolbar+set}" = set; then
8283 enableval="$enable_toolbar"
8284
8285 if test "$enableval" = yes; then
8286 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8287 else
8288 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8289 fi
8290
8291else
8292
8293 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8294 if test "x$LINE" != x ; then
8295 eval "DEFAULT_$LINE"
8296 else
8297 no_cache=1
8298 fi
8299
8300 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8301
8302fi;
8303
8304 eval "$ac_cv_use_toolbar"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_TOOLBAR" = yes; then
8310 echo "$as_me:$LINENO: result: yes" >&5
8311echo "${ECHO_T}yes" >&6
8312 else
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 fi
8316
8317
8318 enablestring=
8319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8320echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8321 no_cache=0
8322 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8323if test "${enable_tbarnative+set}" = set; then
8324 enableval="$enable_tbarnative"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8328 else
8329 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8330 fi
8331
8332else
8333
8334 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8342
8343fi;
8344
8345 eval "$ac_cv_use_tbarnative"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
8356 fi
8357
8358
8359 enablestring=
8360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8361echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8362 no_cache=0
8363 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8364if test "${enable_tbarsmpl+set}" = set; then
8365 enableval="$enable_tbarsmpl"
8366
8367 if test "$enableval" = yes; then
8368 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8369 else
8370 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8371 fi
8372
8373else
8374
8375 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8376 if test "x$LINE" != x ; then
8377 eval "DEFAULT_$LINE"
8378 else
8379 no_cache=1
8380 fi
8381
8382 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8383
8384fi;
8385
8386 eval "$ac_cv_use_tbarsmpl"
8387 if test "$no_cache" != 1; then
8388 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8389 fi
8390
8391 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8392 echo "$as_me:$LINENO: result: yes" >&5
8393echo "${ECHO_T}yes" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
8397 fi
8398
8399
8400 enablestring=
8401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8402echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8403 no_cache=0
8404 # Check whether --enable-treectrl or --disable-treectrl was given.
8405if test "${enable_treectrl+set}" = set; then
8406 enableval="$enable_treectrl"
8407
8408 if test "$enableval" = yes; then
8409 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8410 else
8411 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8412 fi
8413
8414else
8415
8416 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
8423 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8424
8425fi;
8426
8427 eval "$ac_cv_use_treectrl"
8428 if test "$no_cache" != 1; then
8429 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8430 fi
8431
8432 if test "$wxUSE_TREECTRL" = yes; then
8433 echo "$as_me:$LINENO: result: yes" >&5
8434echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438 fi
8439
8440
8441 enablestring=
8442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8443echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8444 no_cache=0
8445 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8446if test "${enable_tipwindow+set}" = set; then
8447 enableval="$enable_tipwindow"
8448
8449 if test "$enableval" = yes; then
8450 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8451 else
8452 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8453 fi
8454
8455else
8456
8457 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8458 if test "x$LINE" != x ; then
8459 eval "DEFAULT_$LINE"
8460 else
8461 no_cache=1
8462 fi
8463
8464 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8465
8466fi;
8467
8468 eval "$ac_cv_use_tipwindow"
8469 if test "$no_cache" != 1; then
8470 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8471 fi
8472
8473 if test "$wxUSE_TIPWINDOW" = yes; then
8474 echo "$as_me:$LINENO: result: yes" >&5
8475echo "${ECHO_T}yes" >&6
8476 else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479 fi
8480
8481
8482 enablestring=
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8484echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8485 no_cache=0
8486 # Check whether --enable-popupwin or --disable-popupwin was given.
8487if test "${enable_popupwin+set}" = set; then
8488 enableval="$enable_popupwin"
8489
8490 if test "$enableval" = yes; then
8491 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8492 else
8493 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8494 fi
8495
8496else
8497
8498 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8506
8507fi;
8508
8509 eval "$ac_cv_use_popupwin"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_POPUPWIN" = yes; then
8515 echo "$as_me:$LINENO: result: yes" >&5
8516echo "${ECHO_T}yes" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
8520 fi
8521
8522
8523
8524
8525 enablestring=
8526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8527echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8528 no_cache=0
8529 # Check whether --enable-commondlg or --disable-commondlg was given.
8530if test "${enable_commondlg+set}" = set; then
8531 enableval="$enable_commondlg"
8532
8533 if test "$enableval" = yes; then
8534 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8535 else
8536 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8537 fi
8538
8539else
8540
8541 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8542 if test "x$LINE" != x ; then
8543 eval "DEFAULT_$LINE"
8544 else
8545 no_cache=1
8546 fi
8547
8548 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8549
8550fi;
8551
8552 eval "$ac_cv_use_commondlg"
8553 if test "$no_cache" != 1; then
8554 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8555 fi
8556
8557 if test "$wxUSE_COMMONDLGS" = yes; then
8558 echo "$as_me:$LINENO: result: yes" >&5
8559echo "${ECHO_T}yes" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
8563 fi
8564
8565
8566 enablestring=
8567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8568echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8569 no_cache=0
8570 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8571if test "${enable_choicedlg+set}" = set; then
8572 enableval="$enable_choicedlg"
8573
8574 if test "$enableval" = yes; then
8575 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8576 else
8577 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8578 fi
8579
8580else
8581
8582 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8590
8591fi;
8592
8593 eval "$ac_cv_use_choicedlg"
8594 if test "$no_cache" != 1; then
8595 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8596 fi
8597
8598 if test "$wxUSE_CHOICEDLG" = yes; then
8599 echo "$as_me:$LINENO: result: yes" >&5
8600echo "${ECHO_T}yes" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6
8604 fi
8605
8606
8607 enablestring=
8608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8609echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8610 no_cache=0
8611 # Check whether --enable-coldlg or --disable-coldlg was given.
8612if test "${enable_coldlg+set}" = set; then
8613 enableval="$enable_coldlg"
8614
8615 if test "$enableval" = yes; then
8616 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8617 else
8618 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8619 fi
8620
8621else
8622
8623 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
8630 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8631
8632fi;
8633
8634 eval "$ac_cv_use_coldlg"
8635 if test "$no_cache" != 1; then
8636 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8637 fi
8638
8639 if test "$wxUSE_COLOURDLG" = yes; then
8640 echo "$as_me:$LINENO: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
8642 else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645 fi
8646
8647
8648 enablestring=
8649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8650echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8651 no_cache=0
8652 # Check whether --enable-filedlg or --disable-filedlg was given.
8653if test "${enable_filedlg+set}" = set; then
8654 enableval="$enable_filedlg"
8655
8656 if test "$enableval" = yes; then
8657 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8658 else
8659 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8660 fi
8661
8662else
8663
8664 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8665 if test "x$LINE" != x ; then
8666 eval "DEFAULT_$LINE"
8667 else
8668 no_cache=1
8669 fi
8670
8671 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8672
8673fi;
8674
8675 eval "$ac_cv_use_filedlg"
8676 if test "$no_cache" != 1; then
8677 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8678 fi
8679
8680 if test "$wxUSE_FILEDLG" = yes; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682echo "${ECHO_T}yes" >&6
8683 else
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
8686 fi
8687
8688
8689 enablestring=
8690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8691echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8692 no_cache=0
8693 # Check whether --enable-finddlg or --disable-finddlg was given.
8694if test "${enable_finddlg+set}" = set; then
8695 enableval="$enable_finddlg"
8696
8697 if test "$enableval" = yes; then
8698 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8699 else
8700 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8701 fi
8702
8703else
8704
8705 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8706 if test "x$LINE" != x ; then
8707 eval "DEFAULT_$LINE"
8708 else
8709 no_cache=1
8710 fi
8711
8712 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8713
8714fi;
8715
8716 eval "$ac_cv_use_finddlg"
8717 if test "$no_cache" != 1; then
8718 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8719 fi
8720
8721 if test "$wxUSE_FINDREPLDLG" = yes; then
8722 echo "$as_me:$LINENO: result: yes" >&5
8723echo "${ECHO_T}yes" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
8727 fi
8728
8729
8730 enablestring=
8731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8732echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8733 no_cache=0
8734 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8735if test "${enable_fontdlg+set}" = set; then
8736 enableval="$enable_fontdlg"
8737
8738 if test "$enableval" = yes; then
8739 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8740 else
8741 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8742 fi
8743
8744else
8745
8746 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8747 if test "x$LINE" != x ; then
8748 eval "DEFAULT_$LINE"
8749 else
8750 no_cache=1
8751 fi
8752
8753 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8754
8755fi;
8756
8757 eval "$ac_cv_use_fontdlg"
8758 if test "$no_cache" != 1; then
8759 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8760 fi
8761
8762 if test "$wxUSE_FONTDLG" = yes; then
8763 echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
8765 else
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768 fi
8769
8770
8771 enablestring=
8772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8773echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8774 no_cache=0
8775 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8776if test "${enable_dirdlg+set}" = set; then
8777 enableval="$enable_dirdlg"
8778
8779 if test "$enableval" = yes; then
8780 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8781 else
8782 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8783 fi
8784
8785else
8786
8787 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8788 if test "x$LINE" != x ; then
8789 eval "DEFAULT_$LINE"
8790 else
8791 no_cache=1
8792 fi
8793
8794 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8795
8796fi;
8797
8798 eval "$ac_cv_use_dirdlg"
8799 if test "$no_cache" != 1; then
8800 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8801 fi
8802
8803 if test "$wxUSE_DIRDLG" = yes; then
8804 echo "$as_me:$LINENO: result: yes" >&5
8805echo "${ECHO_T}yes" >&6
8806 else
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
8809 fi
8810
8811
8812 enablestring=
8813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8814echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8815 no_cache=0
8816 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8817if test "${enable_msgdlg+set}" = set; then
8818 enableval="$enable_msgdlg"
8819
8820 if test "$enableval" = yes; then
8821 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8822 else
8823 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8824 fi
8825
8826else
8827
8828 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8829 if test "x$LINE" != x ; then
8830 eval "DEFAULT_$LINE"
8831 else
8832 no_cache=1
8833 fi
8834
8835 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8836
8837fi;
8838
8839 eval "$ac_cv_use_msgdlg"
8840 if test "$no_cache" != 1; then
8841 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8842 fi
8843
8844 if test "$wxUSE_MSGDLG" = yes; then
8845 echo "$as_me:$LINENO: result: yes" >&5
8846echo "${ECHO_T}yes" >&6
8847 else
8848 echo "$as_me:$LINENO: result: no" >&5
8849echo "${ECHO_T}no" >&6
8850 fi
8851
8852
8853 enablestring=
8854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8855echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8856 no_cache=0
8857 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8858if test "${enable_numberdlg+set}" = set; then
8859 enableval="$enable_numberdlg"
8860
8861 if test "$enableval" = yes; then
8862 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8863 else
8864 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8865 fi
8866
8867else
8868
8869 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8870 if test "x$LINE" != x ; then
8871 eval "DEFAULT_$LINE"
8872 else
8873 no_cache=1
8874 fi
8875
8876 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8877
8878fi;
8879
8880 eval "$ac_cv_use_numberdlg"
8881 if test "$no_cache" != 1; then
8882 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8883 fi
8884
8885 if test "$wxUSE_NUMBERDLG" = yes; then
8886 echo "$as_me:$LINENO: result: yes" >&5
8887echo "${ECHO_T}yes" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890echo "${ECHO_T}no" >&6
8891 fi
8892
8893
8894 enablestring=
8895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8896echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8897 no_cache=0
8898 # Check whether --enable-splash or --disable-splash was given.
8899if test "${enable_splash+set}" = set; then
8900 enableval="$enable_splash"
8901
8902 if test "$enableval" = yes; then
8903 ac_cv_use_splash='wxUSE_SPLASH=yes'
8904 else
8905 ac_cv_use_splash='wxUSE_SPLASH=no'
8906 fi
8907
8908else
8909
8910 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8911 if test "x$LINE" != x ; then
8912 eval "DEFAULT_$LINE"
8913 else
8914 no_cache=1
8915 fi
8916
8917 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8918
8919fi;
8920
8921 eval "$ac_cv_use_splash"
8922 if test "$no_cache" != 1; then
8923 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8924 fi
8925
8926 if test "$wxUSE_SPLASH" = yes; then
8927 echo "$as_me:$LINENO: result: yes" >&5
8928echo "${ECHO_T}yes" >&6
8929 else
8930 echo "$as_me:$LINENO: result: no" >&5
8931echo "${ECHO_T}no" >&6
8932 fi
8933
8934
8935 enablestring=
8936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8937echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8938 no_cache=0
8939 # Check whether --enable-textdlg or --disable-textdlg was given.
8940if test "${enable_textdlg+set}" = set; then
8941 enableval="$enable_textdlg"
8942
8943 if test "$enableval" = yes; then
8944 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8945 else
8946 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8947 fi
8948
8949else
8950
8951 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8952 if test "x$LINE" != x ; then
8953 eval "DEFAULT_$LINE"
8954 else
8955 no_cache=1
8956 fi
8957
8958 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8959
8960fi;
8961
8962 eval "$ac_cv_use_textdlg"
8963 if test "$no_cache" != 1; then
8964 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8965 fi
8966
8967 if test "$wxUSE_TEXTDLG" = yes; then
8968 echo "$as_me:$LINENO: result: yes" >&5
8969echo "${ECHO_T}yes" >&6
8970 else
8971 echo "$as_me:$LINENO: result: no" >&5
8972echo "${ECHO_T}no" >&6
8973 fi
8974
8975
8976 enablestring=
8977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8978echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8979 no_cache=0
8980 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8981if test "${enable_tipdlg+set}" = set; then
8982 enableval="$enable_tipdlg"
8983
8984 if test "$enableval" = yes; then
8985 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8986 else
8987 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8988 fi
8989
8990else
8991
8992 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8993 if test "x$LINE" != x ; then
8994 eval "DEFAULT_$LINE"
8995 else
8996 no_cache=1
8997 fi
8998
8999 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9000
9001fi;
9002
9003 eval "$ac_cv_use_tipdlg"
9004 if test "$no_cache" != 1; then
9005 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9006 fi
9007
9008 if test "$wxUSE_STARTUP_TIPS" = yes; then
9009 echo "$as_me:$LINENO: result: yes" >&5
9010echo "${ECHO_T}yes" >&6
9011 else
9012 echo "$as_me:$LINENO: result: no" >&5
9013echo "${ECHO_T}no" >&6
9014 fi
9015
9016
9017 enablestring=
9018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9019echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9020 no_cache=0
9021 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9022if test "${enable_progressdlg+set}" = set; then
9023 enableval="$enable_progressdlg"
9024
9025 if test "$enableval" = yes; then
9026 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9027 else
9028 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9029 fi
9030
9031else
9032
9033 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9034 if test "x$LINE" != x ; then
9035 eval "DEFAULT_$LINE"
9036 else
9037 no_cache=1
9038 fi
9039
9040 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9041
9042fi;
9043
9044 eval "$ac_cv_use_progressdlg"
9045 if test "$no_cache" != 1; then
9046 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9047 fi
9048
9049 if test "$wxUSE_PROGRESSDLG" = yes; then
9050 echo "$as_me:$LINENO: result: yes" >&5
9051echo "${ECHO_T}yes" >&6
9052 else
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055 fi
9056
9057
9058 enablestring=
9059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9060echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9061 no_cache=0
9062 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9063if test "${enable_wizarddlg+set}" = set; then
9064 enableval="$enable_wizarddlg"
9065
9066 if test "$enableval" = yes; then
9067 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9068 else
9069 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9070 fi
9071
9072else
9073
9074 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9075 if test "x$LINE" != x ; then
9076 eval "DEFAULT_$LINE"
9077 else
9078 no_cache=1
9079 fi
9080
9081 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9082
9083fi;
9084
9085 eval "$ac_cv_use_wizarddlg"
9086 if test "$no_cache" != 1; then
9087 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9088 fi
9089
9090 if test "$wxUSE_WIZARDDLG" = yes; then
9091 echo "$as_me:$LINENO: result: yes" >&5
9092echo "${ECHO_T}yes" >&6
9093 else
9094 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
9096 fi
9097
9098
9099
9100
9101 enablestring=
9102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9103echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9104 no_cache=0
9105 # Check whether --enable-menus or --disable-menus was given.
9106if test "${enable_menus+set}" = set; then
9107 enableval="$enable_menus"
9108
9109 if test "$enableval" = yes; then
9110 ac_cv_use_menus='wxUSE_MENUS=yes'
9111 else
9112 ac_cv_use_menus='wxUSE_MENUS=no'
9113 fi
9114
9115else
9116
9117 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9118 if test "x$LINE" != x ; then
9119 eval "DEFAULT_$LINE"
9120 else
9121 no_cache=1
9122 fi
9123
9124 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9125
9126fi;
9127
9128 eval "$ac_cv_use_menus"
9129 if test "$no_cache" != 1; then
9130 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9131 fi
9132
9133 if test "$wxUSE_MENUS" = yes; then
9134 echo "$as_me:$LINENO: result: yes" >&5
9135echo "${ECHO_T}yes" >&6
9136 else
9137 echo "$as_me:$LINENO: result: no" >&5
9138echo "${ECHO_T}no" >&6
9139 fi
9140
9141
9142 enablestring=
9143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9144echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9145 no_cache=0
9146 # Check whether --enable-miniframe or --disable-miniframe was given.
9147if test "${enable_miniframe+set}" = set; then
9148 enableval="$enable_miniframe"
9149
9150 if test "$enableval" = yes; then
9151 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9152 else
9153 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9154 fi
9155
9156else
9157
9158 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9159 if test "x$LINE" != x ; then
9160 eval "DEFAULT_$LINE"
9161 else
9162 no_cache=1
9163 fi
9164
9165 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9166
9167fi;
9168
9169 eval "$ac_cv_use_miniframe"
9170 if test "$no_cache" != 1; then
9171 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9172 fi
9173
9174 if test "$wxUSE_MINIFRAME" = yes; then
9175 echo "$as_me:$LINENO: result: yes" >&5
9176echo "${ECHO_T}yes" >&6
9177 else
9178 echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180 fi
9181
9182
9183 enablestring=
9184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9185echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9186 no_cache=0
9187 # Check whether --enable-tooltips or --disable-tooltips was given.
9188if test "${enable_tooltips+set}" = set; then
9189 enableval="$enable_tooltips"
9190
9191 if test "$enableval" = yes; then
9192 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9193 else
9194 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9195 fi
9196
9197else
9198
9199 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9200 if test "x$LINE" != x ; then
9201 eval "DEFAULT_$LINE"
9202 else
9203 no_cache=1
9204 fi
9205
9206 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9207
9208fi;
9209
9210 eval "$ac_cv_use_tooltips"
9211 if test "$no_cache" != 1; then
9212 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9213 fi
9214
9215 if test "$wxUSE_TOOLTIPS" = yes; then
9216 echo "$as_me:$LINENO: result: yes" >&5
9217echo "${ECHO_T}yes" >&6
9218 else
9219 echo "$as_me:$LINENO: result: no" >&5
9220echo "${ECHO_T}no" >&6
9221 fi
9222
9223
9224 enablestring=
9225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9226echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9227 no_cache=0
9228 # Check whether --enable-splines or --disable-splines was given.
9229if test "${enable_splines+set}" = set; then
9230 enableval="$enable_splines"
9231
9232 if test "$enableval" = yes; then
9233 ac_cv_use_splines='wxUSE_SPLINES=yes'
9234 else
9235 ac_cv_use_splines='wxUSE_SPLINES=no'
9236 fi
9237
9238else
9239
9240 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9241 if test "x$LINE" != x ; then
9242 eval "DEFAULT_$LINE"
9243 else
9244 no_cache=1
9245 fi
9246
9247 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9248
9249fi;
9250
9251 eval "$ac_cv_use_splines"
9252 if test "$no_cache" != 1; then
9253 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9254 fi
9255
9256 if test "$wxUSE_SPLINES" = yes; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258echo "${ECHO_T}yes" >&6
9259 else
9260 echo "$as_me:$LINENO: result: no" >&5
9261echo "${ECHO_T}no" >&6
9262 fi
9263
9264
9265 enablestring=
9266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9267echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9268 no_cache=0
9269 # Check whether --enable-validators or --disable-validators was given.
9270if test "${enable_validators+set}" = set; then
9271 enableval="$enable_validators"
9272
9273 if test "$enableval" = yes; then
9274 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9275 else
9276 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9277 fi
9278
9279else
9280
9281 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9282 if test "x$LINE" != x ; then
9283 eval "DEFAULT_$LINE"
9284 else
9285 no_cache=1
9286 fi
9287
9288 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9289
9290fi;
9291
9292 eval "$ac_cv_use_validators"
9293 if test "$no_cache" != 1; then
9294 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9295 fi
9296
9297 if test "$wxUSE_VALIDATORS" = yes; then
9298 echo "$as_me:$LINENO: result: yes" >&5
9299echo "${ECHO_T}yes" >&6
9300 else
9301 echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
9303 fi
9304
9305
9306 enablestring=
9307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9308echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9309 no_cache=0
9310 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9311if test "${enable_busyinfo+set}" = set; then
9312 enableval="$enable_busyinfo"
9313
9314 if test "$enableval" = yes; then
9315 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9316 else
9317 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9318 fi
9319
9320else
9321
9322 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9323 if test "x$LINE" != x ; then
9324 eval "DEFAULT_$LINE"
9325 else
9326 no_cache=1
9327 fi
9328
9329 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9330
9331fi;
9332
9333 eval "$ac_cv_use_busyinfo"
9334 if test "$no_cache" != 1; then
9335 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9336 fi
9337
9338 if test "$wxUSE_BUSYINFO" = yes; then
9339 echo "$as_me:$LINENO: result: yes" >&5
9340echo "${ECHO_T}yes" >&6
9341 else
9342 echo "$as_me:$LINENO: result: no" >&5
9343echo "${ECHO_T}no" >&6
9344 fi
9345
9346
9347 enablestring=
9348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9349echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9350 no_cache=0
9351 # Check whether --enable-joystick or --disable-joystick was given.
9352if test "${enable_joystick+set}" = set; then
9353 enableval="$enable_joystick"
9354
9355 if test "$enableval" = yes; then
9356 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9357 else
9358 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9359 fi
9360
9361else
9362
9363 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9364 if test "x$LINE" != x ; then
9365 eval "DEFAULT_$LINE"
9366 else
9367 no_cache=1
9368 fi
9369
9370 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9371
9372fi;
9373
9374 eval "$ac_cv_use_joystick"
9375 if test "$no_cache" != 1; then
9376 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9377 fi
9378
9379 if test "$wxUSE_JOYSTICK" = yes; then
9380 echo "$as_me:$LINENO: result: yes" >&5
9381echo "${ECHO_T}yes" >&6
9382 else
9383 echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
9385 fi
9386
9387
9388 enablestring=
9389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9390echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9391 no_cache=0
9392 # Check whether --enable-metafile or --disable-metafile was given.
9393if test "${enable_metafile+set}" = set; then
9394 enableval="$enable_metafile"
9395
9396 if test "$enableval" = yes; then
9397 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9398 else
9399 ac_cv_use_metafile='wxUSE_METAFILE=no'
9400 fi
9401
9402else
9403
9404 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9405 if test "x$LINE" != x ; then
9406 eval "DEFAULT_$LINE"
9407 else
9408 no_cache=1
9409 fi
9410
9411 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9412
9413fi;
9414
9415 eval "$ac_cv_use_metafile"
9416 if test "$no_cache" != 1; then
9417 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9418 fi
9419
9420 if test "$wxUSE_METAFILE" = yes; then
9421 echo "$as_me:$LINENO: result: yes" >&5
9422echo "${ECHO_T}yes" >&6
9423 else
9424 echo "$as_me:$LINENO: result: no" >&5
9425echo "${ECHO_T}no" >&6
9426 fi
9427
9428
9429 enablestring=
9430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9431echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9432 no_cache=0
9433 # Check whether --enable-dragimage or --disable-dragimage was given.
9434if test "${enable_dragimage+set}" = set; then
9435 enableval="$enable_dragimage"
9436
9437 if test "$enableval" = yes; then
9438 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9439 else
9440 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9441 fi
9442
9443else
9444
9445 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9446 if test "x$LINE" != x ; then
9447 eval "DEFAULT_$LINE"
9448 else
9449 no_cache=1
9450 fi
9451
9452 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9453
9454fi;
9455
9456 eval "$ac_cv_use_dragimage"
9457 if test "$no_cache" != 1; then
9458 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9459 fi
9460
9461 if test "$wxUSE_DRAGIMAGE" = yes; then
9462 echo "$as_me:$LINENO: result: yes" >&5
9463echo "${ECHO_T}yes" >&6
9464 else
9465 echo "$as_me:$LINENO: result: no" >&5
9466echo "${ECHO_T}no" >&6
9467 fi
9468
9469
9470 enablestring=
9471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9472echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9473 no_cache=0
9474 # Check whether --enable-accessibility or --disable-accessibility was given.
9475if test "${enable_accessibility+set}" = set; then
9476 enableval="$enable_accessibility"
9477
9478 if test "$enableval" = yes; then
9479 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9480 else
9481 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9482 fi
9483
9484else
9485
9486 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9487 if test "x$LINE" != x ; then
9488 eval "DEFAULT_$LINE"
9489 else
9490 no_cache=1
9491 fi
9492
9493 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9494
9495fi;
9496
9497 eval "$ac_cv_use_accessibility"
9498 if test "$no_cache" != 1; then
9499 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9500 fi
9501
9502 if test "$wxUSE_ACCESSIBILITY" = yes; then
9503 echo "$as_me:$LINENO: result: yes" >&5
9504echo "${ECHO_T}yes" >&6
9505 else
9506 echo "$as_me:$LINENO: result: no" >&5
9507echo "${ECHO_T}no" >&6
9508 fi
9509
9510
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-palette or --disable-palette was given.
9518if test "${enable_palette+set}" = set; then
9519 enableval="$enable_palette"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_palette='wxUSE_PALETTE=yes'
9523 else
9524 ac_cv_use_palette='wxUSE_PALETTE=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9537
9538fi;
9539
9540 eval "$ac_cv_use_palette"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PALETTE" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-image or --disable-image was given.
9559if test "${enable_image+set}" = set; then
9560 enableval="$enable_image"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_image='wxUSE_IMAGE=yes'
9564 else
9565 ac_cv_use_image='wxUSE_IMAGE=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9578
9579fi;
9580
9581 eval "$ac_cv_use_image"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_IMAGE" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-gif or --disable-gif was given.
9600if test "${enable_gif+set}" = set; then
9601 enableval="$enable_gif"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_gif='wxUSE_GIF=yes'
9605 else
9606 ac_cv_use_gif='wxUSE_GIF=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9619
9620fi;
9621
9622 eval "$ac_cv_use_gif"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_GIF" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
9633 fi
9634
9635
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-pcx or --disable-pcx was given.
9641if test "${enable_pcx+set}" = set; then
9642 enableval="$enable_pcx"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_pcx='wxUSE_PCX=yes'
9646 else
9647 ac_cv_use_pcx='wxUSE_PCX=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9660
9661fi;
9662
9663 eval "$ac_cv_use_pcx"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_PCX" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674 fi
9675
9676
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-iff or --disable-iff was given.
9682if test "${enable_iff+set}" = set; then
9683 enableval="$enable_iff"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_iff='wxUSE_IFF=yes'
9687 else
9688 ac_cv_use_iff='wxUSE_IFF=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9701
9702fi;
9703
9704 eval "$ac_cv_use_iff"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_IFF" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
9715 fi
9716
9717
9718 enablestring=
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9720echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9721 no_cache=0
9722 # Check whether --enable-pnm or --disable-pnm was given.
9723if test "${enable_pnm+set}" = set; then
9724 enableval="$enable_pnm"
9725
9726 if test "$enableval" = yes; then
9727 ac_cv_use_pnm='wxUSE_PNM=yes'
9728 else
9729 ac_cv_use_pnm='wxUSE_PNM=no'
9730 fi
9731
9732else
9733
9734 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9742
9743fi;
9744
9745 eval "$ac_cv_use_pnm"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_PNM" = yes; then
9751 echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
9753 else
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756 fi
9757
9758
9759 enablestring=
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9761echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9762 no_cache=0
9763 # Check whether --enable-xpm or --disable-xpm was given.
9764if test "${enable_xpm+set}" = set; then
9765 enableval="$enable_xpm"
9766
9767 if test "$enableval" = yes; then
9768 ac_cv_use_xpm='wxUSE_XPM=yes'
9769 else
9770 ac_cv_use_xpm='wxUSE_XPM=no'
9771 fi
9772
9773else
9774
9775 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9783
9784fi;
9785
9786 eval "$ac_cv_use_xpm"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_XPM" = yes; then
9792 echo "$as_me:$LINENO: result: yes" >&5
9793echo "${ECHO_T}yes" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
9797 fi
9798
9799
9800 enablestring=
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9802echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9803 no_cache=0
9804 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9805if test "${enable_ico_cur+set}" = set; then
9806 enableval="$enable_ico_cur"
9807
9808 if test "$enableval" = yes; then
9809 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9810 else
9811 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9812 fi
9813
9814else
9815
9816 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9824
9825fi;
9826
9827 eval "$ac_cv_use_ico_cur"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_ICO_CUR" = yes; then
9833 echo "$as_me:$LINENO: result: yes" >&5
9834echo "${ECHO_T}yes" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838 fi
9839
9840
9841fi
9842
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-official_build or --disable-official_build was given.
9850if test "${enable_official_build+set}" = set; then
9851 enableval="$enable_official_build"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9855 else
9856 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9869
9870fi;
9871
9872 eval "$ac_cv_use_official_build"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885# Check whether --enable-vendor or --disable-vendor was given.
9886if test "${enable_vendor+set}" = set; then
9887 enableval="$enable_vendor"
9888 VENDOR="$enableval"
9889fi;
9890if test "x$VENDOR" = "x"; then
9891 VENDOR="custom"
9892fi
9893
9894case "${host}" in
9895 *-pc-os2_emx | *-pc-os2-emx )
9896 PATH_IFS=';'
a848cd7e
SC
9897 ;;
9898 *)
9899 PATH_IFS=':'
9900 ;;
9901esac
9902
9903
9904
9905 echo "saving argument cache $wx_arg_cache_file"
9906 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9907
9908
9909
9910echo "$as_me:$LINENO: checking for toolkit" >&5
9911echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9912
9913# In Wine, we need to default to MSW, not GTK or MOTIF
9914if test "$wxUSE_WINE" = "yes"; then
9915 DEFAULT_DEFAULT_wxUSE_GTK=0
9916 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9917 DEFAULT_DEFAULT_wxUSE_MSW=1
9918 wxUSE_SHARED=no
9919fi
9920
9921if test "$wxUSE_GUI" = "yes"; then
9922
9923 if test "$USE_BEOS" = 1; then
9924 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9925echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9926 { (exit 1); exit 1; }; }
9927 fi
9928
9929 if test "$TOOLKIT_GIVEN" = 1; then
9930 for toolkit in `echo $ALL_TOOLKITS`; do
9931 var=wxUSE_$toolkit
9932 eval "value=\$${var}"
9933 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9934 done
9935 else
9936 for toolkit in `echo $ALL_TOOLKITS`; do
9937 if test "$has_toolkit_in_cache" != 1; then
9938 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9939 else
9940 var=DEFAULT_wxUSE_$toolkit
9941 fi
9942 eval "wxUSE_$toolkit=\$${var}"
9943 done
9944 fi
9945
9946 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9947 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9948 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9949
9950 case "${host}" in
9951 *-pc-os2_emx | *-pc-os2-emx )
9952 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9953 esac
9954
9955 case "$NUM_TOOLKITS" in
9956 1)
9957 ;;
9958 0)
9959 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9960echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9961 { (exit 1); exit 1; }; }
9962 ;;
9963 *)
9964 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9965echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9966 { (exit 1); exit 1; }; }
9967 esac
9968
9969 for toolkit in `echo $ALL_TOOLKITS`; do
9970 var=wxUSE_$toolkit
9971 eval "value=\$${var}"
9972 if test "x$value" != x; then
9973 cache_var=CACHE_$toolkit
9974 eval "cache=\$${cache_var}"
9975 if test "$cache" = 1; then
9976 echo "$var=$value" >> ${wx_arg_cache_file}
9977 fi
9978 if test "$value" = 1; then
9979 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9980 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9981echo "${ECHO_T}$toolkit_echo" >&6
9982 fi
9983 fi
9984 done
9985else
9986 if test "x$host_alias" != "x"; then
9987 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9988echo "${ECHO_T}base ($host_alias hosted) only" >&6
9989 else
9990 echo "$as_me:$LINENO: result: base only" >&5
9991echo "${ECHO_T}base only" >&6
9992 fi
9993fi
9994
9995wants_win32=0
9996doesnt_want_win32=0
9997case "${host}" in
9998 *-*-cygwin*)
9999 if test "$wxUSE_MSW" = 1 ; then
10000 wants_win32=1
10001 else
10002 doesnt_want_win32=1
10003 fi
10004 ;;
10005 *-*-mingw*)
10006 wants_win32=1
10007 ;;
10008esac
10009
10010if test "$wxUSE_WINE" = "yes"; then
10011 wants_win32=1
10012 CC=winegcc
10013 CXX=wineg++
10014 RESCOMP=wrc
10015 LDFLAGS_GUI="-mwindows"
10016fi
10017
10018if test "$wants_win32" = 1 ; then
10019 USE_UNIX=0
10020 USE_WIN32=1
10021 cat >>confdefs.h <<\_ACEOF
10022#define __WIN32__ 1
10023_ACEOF
10024
10025 cat >>confdefs.h <<\_ACEOF
10026#define __WIN95__ 1
10027_ACEOF
10028
10029 cat >>confdefs.h <<\_ACEOF
10030#define __WINDOWS__ 1
10031_ACEOF
10032
10033 cat >>confdefs.h <<\_ACEOF
10034#define __GNUWIN32__ 1
10035_ACEOF
10036
10037 cat >>confdefs.h <<\_ACEOF
10038#define STRICT 1
10039_ACEOF
10040
10041 cat >>confdefs.h <<\_ACEOF
10042#define WINVER 0x0400
10043_ACEOF
10044
10045fi
10046if test "$doesnt_want_win32" = 1 ; then
10047 USE_UNIX=1
10048 USE_WIN32=0
10049fi
10050
10051if test "$USE_UNIX" = 1 ; then
10052 wxUSE_UNIX=yes
10053 cat >>confdefs.h <<\_ACEOF
10054#define __UNIX__ 1
10055_ACEOF
10056
10057fi
10058
10059
10060cat >confcache <<\_ACEOF
10061# This file is a shell script that caches the results of configure
10062# tests run on this system so they can be shared between configure
10063# scripts and configure runs, see configure's option --config-cache.
10064# It is not useful on other systems. If it contains results you don't
10065# want to keep, you may remove or edit it.
10066#
10067# config.status only pays attention to the cache file if you give it
10068# the --recheck option to rerun configure.
10069#
10070# `ac_cv_env_foo' variables (set or unset) will be overridden when
10071# loading this file, other *unset* `ac_cv_foo' will be assigned the
10072# following values.
10073
10074_ACEOF
10075
10076# The following way of writing the cache mishandles newlines in values,
10077# but we know of no workaround that is simple, portable, and efficient.
10078# So, don't put newlines in cache variables' values.
10079# Ultrix sh set writes to stderr and can't be redirected directly,
10080# and sets the high bit in the cache file unless we assign to the vars.
10081{
10082 (set) 2>&1 |
10083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10084 *ac_space=\ *)
10085 # `set' does not quote correctly, so add quotes (double-quote
10086 # substitution turns \\\\ into \\, and sed turns \\ into \).
10087 sed -n \
ac1cb8d3
VS
10088 "s/'/'\\\\''/g;
10089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10090 ;;
10091 *)
10092 # `set' quotes correctly as required by POSIX, so do not add quotes.
10093 sed -n \
ac1cb8d3 10094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10095 ;;
10096 esac;
10097} |
10098 sed '
10099 t clear
10100 : clear
10101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10102 t end
10103 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10104 : end' >>confcache
10105if diff $cache_file confcache >/dev/null 2>&1; then :; else
10106 if test -w $cache_file; then
10107 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10108 cat confcache >$cache_file
10109 else
10110 echo "not updating unwritable cache $cache_file"
10111 fi
10112fi
10113rm -f confcache
10114
10115if test "$build" != "$host" ; then
10116 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10117 CC=$host_alias-gcc
10118 CXX=$host_alias-c++
10119 AR=$host_alias-ar
10120 RANLIB=$host_alias-ranlib
10121 DLLTOOL=$host_alias-dlltool
10122 RESCOMP=$host_alias-windres
10123 LD=$host_alias-ld
10124 NM=$host_alias-nm
10125 STRIP=$host_alias-strip
10126 else
10127 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10128echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10129 { (exit 1); exit 1; }; }
10130 fi
10131fi
10132
10133CFLAGS=${CFLAGS:=}
10134ac_ext=c
10135ac_cpp='$CPP $CPPFLAGS'
10136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10138ac_compiler_gnu=$ac_cv_c_compiler_gnu
10139if test -n "$ac_tool_prefix"; then
10140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10141set dummy ${ac_tool_prefix}gcc; ac_word=$2
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144if test "${ac_cv_prog_CC+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$CC"; then
10148 ac_cv_prog_CC="$CC" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166CC=$ac_cv_prog_CC
10167if test -n "$CC"; then
10168 echo "$as_me:$LINENO: result: $CC" >&5
10169echo "${ECHO_T}$CC" >&6
10170else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173fi
10174
10175fi
10176if test -z "$ac_cv_prog_CC"; then
10177 ac_ct_CC=$CC
10178 # Extract the first word of "gcc", so it can be a program name with args.
10179set dummy gcc; ac_word=$2
10180echo "$as_me:$LINENO: checking for $ac_word" >&5
10181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185 if test -n "$ac_ct_CC"; then
10186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10187else
10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10195 ac_cv_prog_ac_ct_CC="gcc"
10196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 break 2
10198 fi
10199done
10200done
10201
10202fi
10203fi
10204ac_ct_CC=$ac_cv_prog_ac_ct_CC
10205if test -n "$ac_ct_CC"; then
10206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10207echo "${ECHO_T}$ac_ct_CC" >&6
10208else
10209 echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
10211fi
10212
10213 CC=$ac_ct_CC
10214else
10215 CC="$ac_cv_prog_CC"
10216fi
10217
10218if test -z "$CC"; then
10219 if test -n "$ac_tool_prefix"; then
10220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10221set dummy ${ac_tool_prefix}cc; ac_word=$2
10222echo "$as_me:$LINENO: checking for $ac_word" >&5
10223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10224if test "${ac_cv_prog_CC+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227 if test -n "$CC"; then
10228 ac_cv_prog_CC="$CC" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_CC="${ac_tool_prefix}cc"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
10244fi
10245fi
10246CC=$ac_cv_prog_CC
10247if test -n "$CC"; then
10248 echo "$as_me:$LINENO: result: $CC" >&5
10249echo "${ECHO_T}$CC" >&6
10250else
10251 echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
10253fi
10254
10255fi
10256if test -z "$ac_cv_prog_CC"; then
10257 ac_ct_CC=$CC
10258 # Extract the first word of "cc", so it can be a program name with args.
10259set dummy cc; ac_word=$2
10260echo "$as_me:$LINENO: checking for $ac_word" >&5
10261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265 if test -n "$ac_ct_CC"; then
10266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10267else
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_ac_ct_CC="cc"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280done
10281
10282fi
10283fi
10284ac_ct_CC=$ac_cv_prog_ac_ct_CC
10285if test -n "$ac_ct_CC"; then
10286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10287echo "${ECHO_T}$ac_ct_CC" >&6
10288else
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
10291fi
10292
10293 CC=$ac_ct_CC
10294else
10295 CC="$ac_cv_prog_CC"
10296fi
10297
10298fi
10299if test -z "$CC"; then
10300 # Extract the first word of "cc", so it can be a program name with args.
10301set dummy cc; ac_word=$2
10302echo "$as_me:$LINENO: checking for $ac_word" >&5
10303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10304if test "${ac_cv_prog_CC+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 if test -n "$CC"; then
10308 ac_cv_prog_CC="$CC" # Let the user override the test.
10309else
10310 ac_prog_rejected=no
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10319 ac_prog_rejected=yes
10320 continue
10321 fi
10322 ac_cv_prog_CC="cc"
10323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10325 fi
10326done
10327done
10328
10329if test $ac_prog_rejected = yes; then
10330 # We found a bogon in the path, so make sure we never use it.
10331 set dummy $ac_cv_prog_CC
10332 shift
10333 if test $# != 0; then
10334 # We chose a different compiler from the bogus one.
10335 # However, it has the same basename, so the bogon will be chosen
10336 # first if we set CC to just the basename; use the full file name.
10337 shift
10338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10339 fi
10340fi
10341fi
10342fi
10343CC=$ac_cv_prog_CC
10344if test -n "$CC"; then
10345 echo "$as_me:$LINENO: result: $CC" >&5
10346echo "${ECHO_T}$CC" >&6
10347else
10348 echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350fi
10351
10352fi
10353if test -z "$CC"; then
10354 if test -n "$ac_tool_prefix"; then
10355 for ac_prog in cl
10356 do
10357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10359echo "$as_me:$LINENO: checking for $ac_word" >&5
10360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361if test "${ac_cv_prog_CC+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10363else
10364 if test -n "$CC"; then
10365 ac_cv_prog_CC="$CC" # Let the user override the test.
10366else
10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10377 fi
10378done
10379done
10380
10381fi
10382fi
10383CC=$ac_cv_prog_CC
10384if test -n "$CC"; then
10385 echo "$as_me:$LINENO: result: $CC" >&5
10386echo "${ECHO_T}$CC" >&6
10387else
10388 echo "$as_me:$LINENO: result: no" >&5
10389echo "${ECHO_T}no" >&6
10390fi
10391
10392 test -n "$CC" && break
10393 done
10394fi
10395if test -z "$CC"; then
10396 ac_ct_CC=$CC
10397 for ac_prog in cl
10398do
10399 # Extract the first word of "$ac_prog", so it can be a program name with args.
10400set dummy $ac_prog; ac_word=$2
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$ac_ct_CC"; then
10407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_ac_ct_CC="$ac_prog"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425ac_ct_CC=$ac_cv_prog_ac_ct_CC
10426if test -n "$ac_ct_CC"; then
10427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10428echo "${ECHO_T}$ac_ct_CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434 test -n "$ac_ct_CC" && break
10435done
10436
10437 CC=$ac_ct_CC
10438fi
10439
10440fi
10441
10442
10443test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10444See \`config.log' for more details." >&5
10445echo "$as_me: error: no acceptable C compiler found in \$PATH
10446See \`config.log' for more details." >&2;}
10447 { (exit 1); exit 1; }; }
10448
10449# Provide some information about the compiler.
10450echo "$as_me:$LINENO:" \
10451 "checking for C compiler version" >&5
10452ac_compiler=`set X $ac_compile; echo $2`
10453{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10454 (eval $ac_compiler --version </dev/null >&5) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }
10458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10459 (eval $ac_compiler -v </dev/null >&5) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }
10463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10464 (eval $ac_compiler -V </dev/null >&5) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }
10468
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h. */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h. */
10475
10476int
10477main ()
10478{
10479
10480 ;
10481 return 0;
10482}
10483_ACEOF
10484ac_clean_files_save=$ac_clean_files
10485ac_clean_files="$ac_clean_files a.out a.exe b.out"
10486# Try to create an executable without -o first, disregard a.out.
10487# It will help us diagnose broken compilers, and finding out an intuition
10488# of exeext.
ac1cb8d3
VS
10489echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10490echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10491ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10492if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10493 (eval $ac_link_default) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; then
10497 # Find the output, starting from the most likely. This scheme is
10498# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10499# resort.
10500
10501# Be careful to initialize this variable, since it used to be cached.
10502# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10503ac_cv_exeext=
10504# b.out is created by i960 compilers.
10505for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10506do
10507 test -f "$ac_file" || continue
10508 case $ac_file in
10509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10510 ;;
a848cd7e 10511 conftest.$ac_ext )
ac1cb8d3
VS
10512 # This is the source file.
10513 ;;
a848cd7e 10514 [ab].out )
ac1cb8d3
VS
10515 # We found the default executable, but exeext='' is most
10516 # certainly right.
10517 break;;
a848cd7e 10518 *.* )
ac1cb8d3
VS
10519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10520 # FIXME: I believe we export ac_cv_exeext for Libtool,
10521 # but it would be cool to find out if it's true. Does anybody
10522 # maintain Libtool? --akim.
10523 export ac_cv_exeext
10524 break;;
a848cd7e 10525 * )
ac1cb8d3 10526 break;;
a848cd7e
SC
10527 esac
10528done
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10534See \`config.log' for more details." >&5
10535echo "$as_me: error: C compiler cannot create executables
10536See \`config.log' for more details." >&2;}
10537 { (exit 77); exit 77; }; }
10538fi
10539
10540ac_exeext=$ac_cv_exeext
10541echo "$as_me:$LINENO: result: $ac_file" >&5
10542echo "${ECHO_T}$ac_file" >&6
10543
10544# Check the compiler produces executables we can run. If not, either
10545# the compiler is broken, or we cross compile.
10546echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10547echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10548# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10549# If not cross compiling, check that we can run a simple program.
10550if test "$cross_compiling" != yes; then
10551 if { ac_try='./$ac_file'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 cross_compiling=no
10558 else
10559 if test "$cross_compiling" = maybe; then
10560 cross_compiling=yes
10561 else
10562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10563If you meant to cross compile, use \`--host'.
10564See \`config.log' for more details." >&5
10565echo "$as_me: error: cannot run C compiled programs.
10566If you meant to cross compile, use \`--host'.
10567See \`config.log' for more details." >&2;}
10568 { (exit 1); exit 1; }; }
10569 fi
10570 fi
10571fi
10572echo "$as_me:$LINENO: result: yes" >&5
10573echo "${ECHO_T}yes" >&6
10574
10575rm -f a.out a.exe conftest$ac_cv_exeext b.out
10576ac_clean_files=$ac_clean_files_save
10577# Check the compiler produces executables we can run. If not, either
10578# the compiler is broken, or we cross compile.
10579echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10580echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10581echo "$as_me:$LINENO: result: $cross_compiling" >&5
10582echo "${ECHO_T}$cross_compiling" >&6
10583
10584echo "$as_me:$LINENO: checking for suffix of executables" >&5
10585echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587 (eval $ac_link) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10592# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10593# work properly (i.e., refer to `conftest.exe'), while it won't with
10594# `rm'.
10595for ac_file in conftest.exe conftest conftest.*; do
10596 test -f "$ac_file" || continue
10597 case $ac_file in
10598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10600 export ac_cv_exeext
10601 break;;
a848cd7e
SC
10602 * ) break;;
10603 esac
10604done
10605else
10606 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10607See \`config.log' for more details." >&5
10608echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10609See \`config.log' for more details." >&2;}
10610 { (exit 1); exit 1; }; }
10611fi
10612
10613rm -f conftest$ac_cv_exeext
10614echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10615echo "${ECHO_T}$ac_cv_exeext" >&6
10616
10617rm -f conftest.$ac_ext
10618EXEEXT=$ac_cv_exeext
10619ac_exeext=$EXEEXT
10620echo "$as_me:$LINENO: checking for suffix of object files" >&5
10621echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10622if test "${ac_cv_objext+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
10631
10632int
10633main ()
10634{
10635
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640rm -f conftest.o conftest.obj
10641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; then
10646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10647 case $ac_file in
10648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10650 break;;
10651 esac
10652done
10653else
10654 echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10658See \`config.log' for more details." >&5
10659echo "$as_me: error: cannot compute suffix of object files: cannot compile
10660See \`config.log' for more details." >&2;}
10661 { (exit 1); exit 1; }; }
10662fi
10663
10664rm -f conftest.$ac_cv_objext conftest.$ac_ext
10665fi
10666echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10667echo "${ECHO_T}$ac_cv_objext" >&6
10668OBJEXT=$ac_cv_objext
10669ac_objext=$OBJEXT
10670echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10671echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10672if test "${ac_cv_c_compiler_gnu+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681
10682int
10683main ()
10684{
10685#ifndef __GNUC__
10686 choke me
10687#endif
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10695 (eval $ac_compile) 2>conftest.er1
a848cd7e 10696 ac_status=$?
ac1cb8d3
VS
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
a848cd7e
SC
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
ac1cb8d3
VS
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_compiler_gnu=yes
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720ac_compiler_gnu=no
10721fi
ac1cb8d3 10722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10723ac_cv_c_compiler_gnu=$ac_compiler_gnu
10724
10725fi
10726echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10727echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10728GCC=`test $ac_compiler_gnu = yes && echo yes`
10729ac_test_CFLAGS=${CFLAGS+set}
10730ac_save_CFLAGS=$CFLAGS
10731CFLAGS="-g"
10732echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10733echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10734if test "${ac_cv_prog_cc_g+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743
10744int
10745main ()
10746{
10747
10748 ;
10749 return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext
10753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10754 (eval $ac_compile) 2>conftest.er1
a848cd7e 10755 ac_status=$?
ac1cb8d3
VS
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
a848cd7e
SC
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
ac1cb8d3
VS
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_prog_cc_g=yes
10775else
10776 echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779ac_cv_prog_cc_g=no
10780fi
ac1cb8d3 10781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10782fi
10783echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10784echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10785if test "$ac_test_CFLAGS" = set; then
10786 CFLAGS=$ac_save_CFLAGS
10787elif test $ac_cv_prog_cc_g = yes; then
10788 if test "$GCC" = yes; then
10789 CFLAGS="-g -O2"
10790 else
10791 CFLAGS="-g"
10792 fi
10793else
10794 if test "$GCC" = yes; then
10795 CFLAGS="-O2"
10796 else
10797 CFLAGS=
10798 fi
10799fi
10800echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10801echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10802if test "${ac_cv_prog_cc_stdc+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 ac_cv_prog_cc_stdc=no
10806ac_save_CC=$CC
10807cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813#include <stdarg.h>
10814#include <stdio.h>
10815#include <sys/types.h>
10816#include <sys/stat.h>
10817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10818struct buf { int x; };
10819FILE * (*rcsopen) (struct buf *, struct stat *, int);
10820static char *e (p, i)
10821 char **p;
10822 int i;
10823{
10824 return p[i];
10825}
10826static char *f (char * (*g) (char **, int), char **p, ...)
10827{
10828 char *s;
10829 va_list v;
10830 va_start (v,p);
10831 s = g (p, va_arg (v,int));
10832 va_end (v);
10833 return s;
10834}
ac1cb8d3
VS
10835
10836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10837 function prototypes and stuff, but not '\xHH' hex character constants.
10838 These don't provoke an error unfortunately, instead are silently treated
10839 as 'x'. The following induces an error, until -std1 is added to get
10840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10841 array size at least. It's necessary to write '\x00'==0 to get something
10842 that's true only with -std1. */
10843int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10844
a848cd7e
SC
10845int test (int i, double x);
10846struct s1 {int (*f) (int a);};
10847struct s2 {int (*f) (double a);};
10848int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10849int argc;
10850char **argv;
10851int
10852main ()
10853{
10854return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10855 ;
10856 return 0;
10857}
10858_ACEOF
10859# Don't try gcc -ansi; that turns off useful extensions and
10860# breaks some systems' header files.
10861# AIX -qlanglvl=ansi
10862# Ultrix and OSF/1 -std1
10863# HP-UX 10.20 and later -Ae
10864# HP-UX older versions -Aa -D_HPUX_SOURCE
10865# SVR4 -Xc -D__EXTENSIONS__
10866for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10867do
10868 CC="$ac_save_CC $ac_arg"
10869 rm -f conftest.$ac_objext
10870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10871 (eval $ac_compile) 2>conftest.er1
a848cd7e 10872 ac_status=$?
ac1cb8d3
VS
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
a848cd7e
SC
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
ac1cb8d3
VS
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_prog_cc_stdc=$ac_arg
10892break
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897fi
ac1cb8d3 10898rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10899done
10900rm -f conftest.$ac_ext conftest.$ac_objext
10901CC=$ac_save_CC
10902
10903fi
10904
10905case "x$ac_cv_prog_cc_stdc" in
10906 x|xno)
10907 echo "$as_me:$LINENO: result: none needed" >&5
10908echo "${ECHO_T}none needed" >&6 ;;
10909 *)
10910 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10911echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10912 CC="$CC $ac_cv_prog_cc_stdc" ;;
10913esac
10914
10915# Some people use a C++ compiler to compile C. Since we use `exit',
10916# in C++ we need to declare it. In case someone uses the same compiler
10917# for both compiling C and C++ we need to have the C++ compiler decide
10918# the declaration of exit, since it's the most demanding environment.
10919cat >conftest.$ac_ext <<_ACEOF
10920#ifndef __cplusplus
10921 choke me
10922#endif
10923_ACEOF
10924rm -f conftest.$ac_objext
10925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10926 (eval $ac_compile) 2>conftest.er1
a848cd7e 10927 ac_status=$?
ac1cb8d3
VS
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
a848cd7e
SC
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
ac1cb8d3
VS
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 for ac_declaration in \
ac1cb8d3 10947 '' \
a848cd7e
SC
10948 'extern "C" void std::exit (int) throw (); using std::exit;' \
10949 'extern "C" void std::exit (int); using std::exit;' \
10950 'extern "C" void exit (int) throw ();' \
10951 'extern "C" void exit (int);' \
10952 'void exit (int);'
10953do
10954 cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
de59c161 10960$ac_declaration
ac1cb8d3 10961#include <stdlib.h>
a848cd7e
SC
10962int
10963main ()
10964{
10965exit (42);
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext
10971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10972 (eval $ac_compile) 2>conftest.er1
a848cd7e 10973 ac_status=$?
ac1cb8d3
VS
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
a848cd7e
SC
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
ac1cb8d3
VS
10979 { ac_try='test -z "$ac_c_werror_flag"
10980 || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 :
10993else
10994 echo "$as_me: failed program was:" >&5
10995sed 's/^/| /' conftest.$ac_ext >&5
10996
10997continue
10998fi
ac1cb8d3 10999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11000 cat >conftest.$ac_ext <<_ACEOF
11001/* confdefs.h. */
11002_ACEOF
11003cat confdefs.h >>conftest.$ac_ext
11004cat >>conftest.$ac_ext <<_ACEOF
11005/* end confdefs.h. */
11006$ac_declaration
11007int
11008main ()
11009{
11010exit (42);
11011 ;
11012 return 0;
11013}
11014_ACEOF
11015rm -f conftest.$ac_objext
11016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11017 (eval $ac_compile) 2>conftest.er1
a848cd7e 11018 ac_status=$?
ac1cb8d3
VS
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
a848cd7e
SC
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
ac1cb8d3
VS
11024 { ac_try='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 break
11038else
11039 echo "$as_me: failed program was:" >&5
11040sed 's/^/| /' conftest.$ac_ext >&5
11041
11042fi
ac1cb8d3 11043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11044done
11045rm -f conftest*
11046if test -n "$ac_declaration"; then
11047 echo '#ifdef __cplusplus' >>confdefs.h
11048 echo $ac_declaration >>confdefs.h
11049 echo '#endif' >>confdefs.h
11050fi
11051
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056fi
ac1cb8d3 11057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11058ac_ext=c
11059ac_cpp='$CPP $CPPFLAGS'
11060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11062ac_compiler_gnu=$ac_cv_c_compiler_gnu
11063
11064
11065
11066ac_ext=c
11067ac_cpp='$CPP $CPPFLAGS'
11068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070ac_compiler_gnu=$ac_cv_c_compiler_gnu
11071echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11072echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11073# On Suns, sometimes $CPP names a directory.
11074if test -n "$CPP" && test -d "$CPP"; then
11075 CPP=
11076fi
11077if test -z "$CPP"; then
11078 if test "${ac_cv_prog_CPP+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081 # Double quotes because CPP needs to be expanded
11082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11083 do
11084 ac_preproc_ok=false
11085for ac_c_preproc_warn_flag in '' yes
11086do
11087 # Use a header file that comes with gcc, so configuring glibc
11088 # with a fresh cross-compiler works.
11089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11090 # <limits.h> exists even on freestanding compilers.
11091 # On the NeXT, cc -E runs the code through the compiler's parser,
11092 # not just through cpp. "Syntax error" is here to catch this case.
11093 cat >conftest.$ac_ext <<_ACEOF
11094/* confdefs.h. */
11095_ACEOF
11096cat confdefs.h >>conftest.$ac_ext
11097cat >>conftest.$ac_ext <<_ACEOF
11098/* end confdefs.h. */
11099#ifdef __STDC__
11100# include <limits.h>
11101#else
11102# include <assert.h>
11103#endif
ac1cb8d3 11104 Syntax error
a848cd7e
SC
11105_ACEOF
11106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } >/dev/null; then
11114 if test -s conftest.err; then
11115 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11117 else
11118 ac_cpp_err=
11119 fi
11120else
11121 ac_cpp_err=yes
11122fi
11123if test -z "$ac_cpp_err"; then
11124 :
11125else
11126 echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 # Broken: fails on valid input.
11130continue
11131fi
11132rm -f conftest.err conftest.$ac_ext
11133
11134 # OK, works on sane cases. Now check whether non-existent headers
11135 # can be detected and how.
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142#include <ac_nonexistent.h>
11143_ACEOF
11144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11155 else
11156 ac_cpp_err=
11157 fi
11158else
11159 ac_cpp_err=yes
11160fi
11161if test -z "$ac_cpp_err"; then
11162 # Broken: success on invalid input.
11163continue
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 # Passes both tests.
11169ac_preproc_ok=:
11170break
11171fi
11172rm -f conftest.err conftest.$ac_ext
11173
11174done
11175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11176rm -f conftest.err conftest.$ac_ext
11177if $ac_preproc_ok; then
11178 break
11179fi
11180
11181 done
11182 ac_cv_prog_CPP=$CPP
11183
11184fi
11185 CPP=$ac_cv_prog_CPP
11186else
11187 ac_cv_prog_CPP=$CPP
11188fi
11189echo "$as_me:$LINENO: result: $CPP" >&5
11190echo "${ECHO_T}$CPP" >&6
11191ac_preproc_ok=false
11192for ac_c_preproc_warn_flag in '' yes
11193do
11194 # Use a header file that comes with gcc, so configuring glibc
11195 # with a fresh cross-compiler works.
11196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11197 # <limits.h> exists even on freestanding compilers.
11198 # On the NeXT, cc -E runs the code through the compiler's parser,
11199 # not just through cpp. "Syntax error" is here to catch this case.
11200 cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206#ifdef __STDC__
11207# include <limits.h>
11208#else
11209# include <assert.h>
11210#endif
ac1cb8d3 11211 Syntax error
a848cd7e
SC
11212_ACEOF
11213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } >/dev/null; then
11221 if test -s conftest.err; then
11222 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11224 else
11225 ac_cpp_err=
11226 fi
11227else
11228 ac_cpp_err=yes
11229fi
11230if test -z "$ac_cpp_err"; then
11231 :
11232else
11233 echo "$as_me: failed program was:" >&5
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 # Broken: fails on valid input.
11237continue
11238fi
11239rm -f conftest.err conftest.$ac_ext
11240
11241 # OK, works on sane cases. Now check whether non-existent headers
11242 # can be detected and how.
11243 cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249#include <ac_nonexistent.h>
11250_ACEOF
11251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } >/dev/null; then
11259 if test -s conftest.err; then
11260 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11262 else
11263 ac_cpp_err=
11264 fi
11265else
11266 ac_cpp_err=yes
11267fi
11268if test -z "$ac_cpp_err"; then
11269 # Broken: success on invalid input.
11270continue
11271else
11272 echo "$as_me: failed program was:" >&5
11273sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 # Passes both tests.
11276ac_preproc_ok=:
11277break
11278fi
11279rm -f conftest.err conftest.$ac_ext
11280
11281done
11282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11283rm -f conftest.err conftest.$ac_ext
11284if $ac_preproc_ok; then
11285 :
11286else
11287 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11288See \`config.log' for more details." >&5
11289echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11290See \`config.log' for more details." >&2;}
11291 { (exit 1); exit 1; }; }
11292fi
11293
11294ac_ext=c
11295ac_cpp='$CPP $CPPFLAGS'
11296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11298ac_compiler_gnu=$ac_cv_c_compiler_gnu
11299
11300
11301echo "$as_me:$LINENO: checking for egrep" >&5
11302echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11303if test "${ac_cv_prog_egrep+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11307 then ac_cv_prog_egrep='grep -E'
11308 else ac_cv_prog_egrep='egrep'
11309 fi
11310fi
11311echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11312echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11313 EGREP=$ac_cv_prog_egrep
11314
11315
11316if test $ac_cv_c_compiler_gnu = yes; then
11317 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11318echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11319if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321else
11322 ac_pattern="Autoconf.*'x'"
11323 cat >conftest.$ac_ext <<_ACEOF
11324/* confdefs.h. */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h. */
11329#include <sgtty.h>
11330Autoconf TIOCGETP
11331_ACEOF
11332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11333 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11334 ac_cv_prog_gcc_traditional=yes
11335else
11336 ac_cv_prog_gcc_traditional=no
11337fi
11338rm -f conftest*
11339
11340
11341 if test $ac_cv_prog_gcc_traditional = no; then
11342 cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
11348#include <termio.h>
11349Autoconf TCGETA
11350_ACEOF
11351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11352 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11353 ac_cv_prog_gcc_traditional=yes
11354fi
11355rm -f conftest*
11356
11357 fi
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11360echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11361 if test $ac_cv_prog_gcc_traditional = yes; then
11362 CC="$CC -traditional"
11363 fi
11364fi
11365
11366
11367
11368
11369ac_ext=cc
11370ac_cpp='$CXXCPP $CPPFLAGS'
11371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11374
11375
11376CXXFLAGS=${CXXFLAGS:=}
11377ac_ext=cc
11378ac_cpp='$CXXCPP $CPPFLAGS'
11379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11382if test -n "$ac_tool_prefix"; then
11383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11384 do
11385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11386set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11387echo "$as_me:$LINENO: checking for $ac_word" >&5
11388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389if test "${ac_cv_prog_CXX+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 if test -n "$CXX"; then
11393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407done
11408
11409fi
11410fi
11411CXX=$ac_cv_prog_CXX
11412if test -n "$CXX"; then
11413 echo "$as_me:$LINENO: result: $CXX" >&5
11414echo "${ECHO_T}$CXX" >&6
11415else
11416 echo "$as_me:$LINENO: result: no" >&5
11417echo "${ECHO_T}no" >&6
11418fi
11419
11420 test -n "$CXX" && break
11421 done
11422fi
11423if test -z "$CXX"; then
11424 ac_ct_CXX=$CXX
11425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11426do
11427 # Extract the first word of "$ac_prog", so it can be a program name with args.
11428set dummy $ac_prog; ac_word=$2
11429echo "$as_me:$LINENO: checking for $ac_word" >&5
11430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11431if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 if test -n "$ac_ct_CXX"; then
11435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_ac_ct_CXX="$ac_prog"
11445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449done
11450
11451fi
11452fi
11453ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11454if test -n "$ac_ct_CXX"; then
11455 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11456echo "${ECHO_T}$ac_ct_CXX" >&6
11457else
11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460fi
11461
11462 test -n "$ac_ct_CXX" && break
11463done
11464test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11465
11466 CXX=$ac_ct_CXX
11467fi
11468
11469
11470# Provide some information about the compiler.
11471echo "$as_me:$LINENO:" \
11472 "checking for C++ compiler version" >&5
11473ac_compiler=`set X $ac_compile; echo $2`
11474{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11475 (eval $ac_compiler --version </dev/null >&5) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }
11479{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11480 (eval $ac_compiler -v </dev/null >&5) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }
11484{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11485 (eval $ac_compiler -V </dev/null >&5) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }
11489
11490echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11491echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11492if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501
11502int
11503main ()
11504{
11505#ifndef __GNUC__
11506 choke me
11507#endif
11508
11509 ;
11510 return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext
11514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11515 (eval $ac_compile) 2>conftest.er1
a848cd7e 11516 ac_status=$?
ac1cb8d3
VS
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
a848cd7e
SC
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
ac1cb8d3
VS
11522 { ac_try='test -z "$ac_cxx_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_compiler_gnu=yes
11536else
11537 echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540ac_compiler_gnu=no
11541fi
ac1cb8d3 11542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11543ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11544
11545fi
11546echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11547echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11548GXX=`test $ac_compiler_gnu = yes && echo yes`
11549ac_test_CXXFLAGS=${CXXFLAGS+set}
11550ac_save_CXXFLAGS=$CXXFLAGS
11551CXXFLAGS="-g"
11552echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11553echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11554if test "${ac_cv_prog_cxx_g+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557 cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563
11564int
11565main ()
11566{
11567
11568 ;
11569 return 0;
11570}
11571_ACEOF
11572rm -f conftest.$ac_objext
11573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11574 (eval $ac_compile) 2>conftest.er1
a848cd7e 11575 ac_status=$?
ac1cb8d3
VS
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
a848cd7e
SC
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
ac1cb8d3
VS
11581 { ac_try='test -z "$ac_cxx_werror_flag"
11582 || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_prog_cxx_g=yes
11595else
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599ac_cv_prog_cxx_g=no
11600fi
ac1cb8d3 11601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11602fi
11603echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11604echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11605if test "$ac_test_CXXFLAGS" = set; then
11606 CXXFLAGS=$ac_save_CXXFLAGS
11607elif test $ac_cv_prog_cxx_g = yes; then
11608 if test "$GXX" = yes; then
11609 CXXFLAGS="-g -O2"
11610 else
11611 CXXFLAGS="-g"
11612 fi
11613else
11614 if test "$GXX" = yes; then
11615 CXXFLAGS="-O2"
11616 else
11617 CXXFLAGS=
11618 fi
11619fi
11620for ac_declaration in \
ac1cb8d3 11621 '' \
a848cd7e
SC
11622 'extern "C" void std::exit (int) throw (); using std::exit;' \
11623 'extern "C" void std::exit (int); using std::exit;' \
11624 'extern "C" void exit (int) throw ();' \
11625 'extern "C" void exit (int);' \
11626 'void exit (int);'
11627do
11628 cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
de59c161 11634$ac_declaration
ac1cb8d3 11635#include <stdlib.h>
a848cd7e
SC
11636int
11637main ()
11638{
11639exit (42);
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext
11645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11646 (eval $ac_compile) 2>conftest.er1
a848cd7e 11647 ac_status=$?
ac1cb8d3
VS
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
a848cd7e
SC
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
ac1cb8d3
VS
11653 { ac_try='test -z "$ac_cxx_werror_flag"
11654 || test ! -s conftest.err'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 :
11667else
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671continue
11672fi
ac1cb8d3 11673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11674 cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680$ac_declaration
11681int
11682main ()
11683{
11684exit (42);
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest.$ac_objext
11690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11691 (eval $ac_compile) 2>conftest.er1
a848cd7e 11692 ac_status=$?
ac1cb8d3
VS
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
a848cd7e
SC
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
ac1cb8d3
VS
11698 { ac_try='test -z "$ac_cxx_werror_flag"
11699 || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 break
11712else
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716fi
ac1cb8d3 11717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11718done
11719rm -f conftest*
11720if test -n "$ac_declaration"; then
11721 echo '#ifdef __cplusplus' >>confdefs.h
11722 echo $ac_declaration >>confdefs.h
11723 echo '#endif' >>confdefs.h
11724fi
11725
11726ac_ext=cc
11727ac_cpp='$CXXCPP $CPPFLAGS'
11728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11731
11732
11733ac_ext=c
11734ac_cpp='$CPP $CPPFLAGS'
11735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738
11739
11740echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11741echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11742GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11743if test "$GCC" = "yes" ; then
11744 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11745 sed -n '1,/End of search list\./p' | \
11746 grep '^ */usr/local/include$' 2>&1 /dev/null \
11747 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11748fi
11749echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11750echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11751
11752if test -n "$ac_tool_prefix"; then
11753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11754set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11755echo "$as_me:$LINENO: checking for $ac_word" >&5
11756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757if test "${ac_cv_prog_RANLIB+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759else
11760 if test -n "$RANLIB"; then
11761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11762else
11763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764for as_dir in $PATH
11765do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11773 fi
11774done
11775done
11776
11777fi
11778fi
11779RANLIB=$ac_cv_prog_RANLIB
11780if test -n "$RANLIB"; then
11781 echo "$as_me:$LINENO: result: $RANLIB" >&5
11782echo "${ECHO_T}$RANLIB" >&6
11783else
11784 echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6
11786fi
11787
11788fi
11789if test -z "$ac_cv_prog_RANLIB"; then
11790 ac_ct_RANLIB=$RANLIB
11791 # Extract the first word of "ranlib", so it can be a program name with args.
11792set dummy ranlib; ac_word=$2
11793echo "$as_me:$LINENO: checking for $ac_word" >&5
11794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 if test -n "$ac_ct_RANLIB"; then
11799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11800else
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_ac_ct_RANLIB="ranlib"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812done
11813done
11814
11815 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11816fi
11817fi
11818ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11819if test -n "$ac_ct_RANLIB"; then
11820 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11821echo "${ECHO_T}$ac_ct_RANLIB" >&6
11822else
11823 echo "$as_me:$LINENO: result: no" >&5
11824echo "${ECHO_T}no" >&6
11825fi
11826
11827 RANLIB=$ac_ct_RANLIB
11828else
11829 RANLIB="$ac_cv_prog_RANLIB"
11830fi
11831
11832
11833# Extract the first word of "ar", so it can be a program name with args.
11834set dummy ar; ac_word=$2
11835echo "$as_me:$LINENO: checking for $ac_word" >&5
11836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11837if test "${ac_cv_prog_AR+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 if test -n "$AR"; then
11841 ac_cv_prog_AR="$AR" # Let the user override the test.
11842else
11843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844for as_dir in $PATH
11845do
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_prog_AR="ar"
11851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11853 fi
11854done
11855done
11856
11857fi
11858fi
11859AR=$ac_cv_prog_AR
11860if test -n "$AR"; then
11861 echo "$as_me:$LINENO: result: $AR" >&5
11862echo "${ECHO_T}$AR" >&6
11863else
11864 echo "$as_me:$LINENO: result: no" >&5
11865echo "${ECHO_T}no" >&6
11866fi
11867
11868if test "x$AR" = "x" ; then
77ffb593
JS
11869 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11870echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11871 { (exit 1); exit 1; }; }
11872fi
11873
11874# Find a good install program. We prefer a C program (faster),
11875# so one script is as good as another. But avoid the broken or
11876# incompatible versions:
11877# SysV /etc/install, /usr/sbin/install
11878# SunOS /usr/etc/install
11879# IRIX /sbin/install
11880# AIX /bin/install
11881# AmigaOS /C/install, which installs bootblocks on floppy discs
11882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11883# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11885# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11886# ./install, which can be erroneously created by make from ./install.sh.
11887echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11888echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11889if test -z "$INSTALL"; then
11890if test "${ac_cv_path_install+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892else
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 # Account for people who put trailing slashes in PATH elements.
11899case $as_dir/ in
11900 ./ | .// | /cC/* | \
11901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11902 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11903 /usr/ucb/* ) ;;
11904 *)
11905 # OSF1 and SCO ODT 3.0 have their own names for install.
11906 # Don't use installbsd from OSF since it installs stuff as root
11907 # by default.
11908 for ac_prog in ginstall scoinst install; do
11909 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11910 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11911 if test $ac_prog = install &&
11912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11913 # AIX install. It has an incompatible calling convention.
11914 :
11915 elif test $ac_prog = install &&
11916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11917 # program-specific install script used by HP pwplus--don't use.
11918 :
11919 else
11920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11921 break 3
11922 fi
11923 fi
a848cd7e
SC
11924 done
11925 done
11926 ;;
11927esac
11928done
11929
11930
11931fi
11932 if test "${ac_cv_path_install+set}" = set; then
11933 INSTALL=$ac_cv_path_install
11934 else
11935 # As a last resort, use the slow shell script. We don't cache a
11936 # path for INSTALL within a source directory, because that will
11937 # break other packages using the cache if that directory is
11938 # removed, or if the path is relative.
11939 INSTALL=$ac_install_sh
11940 fi
11941fi
11942echo "$as_me:$LINENO: result: $INSTALL" >&5
11943echo "${ECHO_T}$INSTALL" >&6
11944
11945# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11946# It thinks the first close brace ends the variable substitution.
11947test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11948
11949test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11950
11951test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11952
11953
11954case ${INSTALL} in
11955 /* ) # Absolute
11956 ;;
11957 ?:* ) # Drive letter, considered as absolute.
11958 ;;
11959 *)
11960 INSTALL=`pwd`/${INSTALL} ;;
11961esac
11962
11963case ${host} in
11964 *-hp-hpux* )
11965 INSTALL_DIR="mkdir"
11966 ;;
11967
11968 *) INSTALL_DIR="$INSTALL -d"
11969 ;;
11970esac
11971
11972
11973case "${host}" in
11974
11975 powerpc-*-darwin* )
11976 INSTALL_PROGRAM="cp -fp"
11977 INSTALL_DATA="cp -fp"
11978 ;;
11979 *)
11980 ;;
11981esac
11982
11983# Extract the first word of "strip", so it can be a program name with args.
11984set dummy strip; ac_word=$2
11985echo "$as_me:$LINENO: checking for $ac_word" >&5
11986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11987if test "${ac_cv_prog_STRIP+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 if test -n "$STRIP"; then
11991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11992else
11993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994for as_dir in $PATH
11995do
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12000 ac_cv_prog_STRIP="strip"
12001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12003 fi
12004done
12005done
12006
12007 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12008fi
12009fi
12010STRIP=$ac_cv_prog_STRIP
12011if test -n "$STRIP"; then
12012 echo "$as_me:$LINENO: result: $STRIP" >&5
12013echo "${ECHO_T}$STRIP" >&6
12014else
12015 echo "$as_me:$LINENO: result: no" >&5
12016echo "${ECHO_T}no" >&6
12017fi
12018
12019
12020echo "$as_me:$LINENO: checking if make is GNU make" >&5
12021echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12022if test "${wx_cv_prog_makeisgnu+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025
12026 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12027 egrep -s GNU > /dev/null); then
12028 wx_cv_prog_makeisgnu="yes"
12029 else
12030 wx_cv_prog_makeisgnu="no"
12031 fi
12032
12033fi
12034echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12035echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12036
12037if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12038 IF_GNU_MAKE=""
12039else
12040 IF_GNU_MAKE="#"
12041fi
12042
12043
12044
12045if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12046echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12047echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12048if test "${wx_cv_prog_makevpath+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051
12052cat - << EOF > confMake
12053check : file
12054 cp \$? \$@
12055 cp \$? final_file
12056EOF
12057
12058if test ! -d sub ; then
12059 mkdir sub
12060fi
12061echo dummy > sub/file
12062${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12063RESULT=$?
12064rm -f sub/file check final_file confMake
12065rmdir sub
12066if test "$RESULT" = 0; then
12067 wx_cv_prog_makevpath="yes"
12068else
12069 wx_cv_prog_makevpath="no"
12070fi
12071
12072fi
12073echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12074echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12075
12076if test "x$wx_cv_prog_makevpath" != "xyes"; then
12077{ { echo "$as_me:$LINENO: error:
12078You need a make-utility that is able to use the variable
12079VPATH correctly.
12080If your version of make does not support VPATH correctly,
12081please install GNU-make (possibly as gmake), and start
12082configure with the following command:
12083export MAKE=gmake; ./configure for sh-type shells
12084setenv MAKE gmake; ./configure for csh-type shells
12085Also please do remember to use gmake in this case every time
12086you are trying to compile.
12087" >&5
12088echo "$as_me: error:
12089You need a make-utility that is able to use the variable
12090VPATH correctly.
12091If your version of make does not support VPATH correctly,
12092please install GNU-make (possibly as gmake), and start
12093configure with the following command:
12094export MAKE=gmake; ./configure for sh-type shells
12095setenv MAKE gmake; ./configure for csh-type shells
12096Also please do remember to use gmake in this case every time
12097you are trying to compile.
12098" >&2;}
12099 { (exit 1); exit 1; }; }
12100fi fi
12101echo "$as_me:$LINENO: checking whether ln -s works" >&5
12102echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12103LN_S=$as_ln_s
12104if test "$LN_S" = "ln -s"; then
12105 echo "$as_me:$LINENO: result: yes" >&5
12106echo "${ECHO_T}yes" >&6
12107else
12108 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12109echo "${ECHO_T}no, using $LN_S" >&6
12110fi
12111
12112
12113
12114case "${host}" in
12115 *-pc-os2_emx | *-pc-os2-emx )
12116 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12117 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12118echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12119if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 ac_check_lib_save_LIBS=$LIBS
12123LIBS="-lcExt $LIBS"
12124cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
12130
12131/* Override any gcc2 internal prototype to avoid an error. */
12132#ifdef __cplusplus
12133extern "C"
12134#endif
12135/* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12137char drand48 ();
12138int
12139main ()
12140{
12141drand48 ();
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146rm -f conftest.$ac_objext conftest$ac_exeext
12147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12148 (eval $ac_link) 2>conftest.er1
a848cd7e 12149 ac_status=$?
ac1cb8d3
VS
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
a848cd7e
SC
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
ac1cb8d3
VS
12155 { ac_try='test -z "$ac_c_werror_flag"
12156 || test ! -s conftest.err'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; } &&
12162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 ac_cv_lib_cExt_drand48=yes
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173ac_cv_lib_cExt_drand48=no
12174fi
ac1cb8d3
VS
12175rm -f conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12177LIBS=$ac_check_lib_save_LIBS
12178fi
12179echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12180echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12181if test $ac_cv_lib_cExt_drand48 = yes; then
12182 LIBS="$LIBS -lcExt"
12183fi
12184
12185 else
12186 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12187 fi
12188 echo "$as_me:$LINENO: checking for gcc version" >&5
12189echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12190if test "${wx_cv_gccversion+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193
12194 cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200
12201int
12202main ()
12203{
12204
12205 #if (__GNUC__ < 3)
12206 #error old gcc
12207 #endif
12208
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext
12214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12215 (eval $ac_compile) 2>conftest.er1
a848cd7e 12216 ac_status=$?
ac1cb8d3
VS
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
a848cd7e
SC
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
ac1cb8d3
VS
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242
12243int
12244main ()
12245{
12246
12247 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12248 #error intermediate gcc
12249 #endif
12250
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext
12256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12257 (eval $ac_compile) 2>conftest.er1
a848cd7e 12258 ac_status=$?
ac1cb8d3
VS
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
a848cd7e
SC
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
ac1cb8d3
VS
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277
12278 wx_cv_gccversion=Innotek
12279
12280else
12281 echo "$as_me: failed program was:" >&5
12282sed 's/^/| /' conftest.$ac_ext >&5
12283
12284
12285 wx_cv_gccversion=3
12286
12287
12288fi
ac1cb8d3 12289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12290
12291else
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295
12296 wx_cv_gccversion=2
12297
12298
12299fi
ac1cb8d3 12300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12301
12302fi
12303echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12304echo "${ECHO_T}$wx_cv_gccversion" >&6
12305 if test "$wx_cv_gccversion" = "2"; then
12306 LIBS="$LIBS -lstdcpp"
12307 LDFLAGS="$LDFLAGS -Zsysv-signals"
12308 else
12309 if test "$wx_cv_gccversion" = "3"; then
12310 LIBS="$LIBS -lstdcxx"
12311 LDFLAGS="$LDFLAGS -Zsysv-signals"
12312 else
12313 LIBS="$LIBS -lstdc++"
12314 fi
12315 fi
12316 if test "$wxUSE_OMF" = "yes"; then
de59c161 12317 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12318 fi
12319 ;;
12320 *)
12321
12322
12323
12324 ac_ext=cc
12325ac_cpp='$CXXCPP $CPPFLAGS'
12326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12329
12330
12331
12332echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12333echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12334if test "${ac_cv_string_strcasecmp+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
12337
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344
12345 #include <string.h>
12346
12347int
12348main ()
12349{
12350
12351 strcasecmp("foo", "bar");
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext conftest$ac_exeext
12358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12359 (eval $ac_link) 2>conftest.er1
a848cd7e 12360 ac_status=$?
ac1cb8d3
VS
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
a848cd7e
SC
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
ac1cb8d3
VS
12366 { ac_try='test -z "$ac_cxx_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_string_strcasecmp=yes
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
12384ac_cv_string_strcasecmp=no
12385
12386fi
ac1cb8d3
VS
12387rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12389
12390fi
12391echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12392echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12393
12394 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396#define HAVE_STRCASECMP_IN_STRING_H 1
12397_ACEOF
12398
12399 else
12400 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12401echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12402if test "${ac_cv_strings_strcasecmp+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404else
12405
12406 cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412
12413 #include <strings.h>
12414
12415int
12416main ()
12417{
12418
12419 strcasecmp("foo", "bar");
12420
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext conftest$ac_exeext
12426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12427 (eval $ac_link) 2>conftest.er1
a848cd7e 12428 ac_status=$?
ac1cb8d3
VS
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
a848cd7e
SC
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
ac1cb8d3
VS
12434 { ac_try='test -z "$ac_cxx_werror_flag"
12435 || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_strings_strcasecmp=yes
12448else
12449 echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452ac_cv_strings_strcasecmp=no
12453
12454fi
ac1cb8d3
VS
12455rm -f conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12457
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12460echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12461
12462 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12463 cat >>confdefs.h <<\_ACEOF
12464#define HAVE_STRCASECMP_IN_STRINGS_H 1
12465_ACEOF
12466
12467 else
12468 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12469echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12470 { (exit 1); exit 1; }; }
12471 fi
12472 fi
12473
12474 ac_ext=c
12475ac_cpp='$CPP $CPPFLAGS'
12476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 ;;
12481esac
12482
12483
12484echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12485echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12486if test "${ac_cv_header_stdc+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495#include <stdlib.h>
12496#include <stdarg.h>
12497#include <string.h>
12498#include <float.h>
12499
12500int
12501main ()
12502{
12503
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12510 (eval $ac_compile) 2>conftest.er1
a848cd7e 12511 ac_status=$?
ac1cb8d3
VS
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
a848cd7e
SC
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
ac1cb8d3
VS
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_header_stdc=yes
12531else
12532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
12535ac_cv_header_stdc=no
12536fi
ac1cb8d3 12537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12538
12539if test $ac_cv_header_stdc = yes; then
12540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12541 cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547#include <string.h>
12548
12549_ACEOF
12550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12551 $EGREP "memchr" >/dev/null 2>&1; then
12552 :
12553else
12554 ac_cv_header_stdc=no
12555fi
12556rm -f conftest*
12557
12558fi
12559
12560if test $ac_cv_header_stdc = yes; then
12561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568#include <stdlib.h>
12569
12570_ACEOF
12571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12572 $EGREP "free" >/dev/null 2>&1; then
12573 :
12574else
12575 ac_cv_header_stdc=no
12576fi
12577rm -f conftest*
12578
12579fi
12580
12581if test $ac_cv_header_stdc = yes; then
12582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12583 if test "$cross_compiling" = yes; then
12584 :
12585else
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592#include <ctype.h>
12593#if ((' ' & 0x0FF) == 0x020)
12594# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12595# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12596#else
12597# define ISLOWER(c) \
ac1cb8d3
VS
12598 (('a' <= (c) && (c) <= 'i') \
12599 || ('j' <= (c) && (c) <= 'r') \
12600 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12601# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12602#endif
12603
12604#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12605int
12606main ()
12607{
12608 int i;
12609 for (i = 0; i < 256; i++)
12610 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12611 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12612 exit(2);
12613 exit (0);
12614}
12615_ACEOF
12616rm -f conftest$ac_exeext
12617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 :
12628else
12629 echo "$as_me: program exited with status $ac_status" >&5
12630echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633( exit $ac_status )
12634ac_cv_header_stdc=no
12635fi
ac1cb8d3 12636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12637fi
12638fi
12639fi
12640echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12641echo "${ECHO_T}$ac_cv_header_stdc" >&6
12642if test $ac_cv_header_stdc = yes; then
12643
12644cat >>confdefs.h <<\_ACEOF
12645#define STDC_HEADERS 1
12646_ACEOF
12647
12648fi
12649
12650# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12661 inttypes.h stdint.h unistd.h
a848cd7e
SC
12662do
12663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12664echo "$as_me:$LINENO: checking for $ac_header" >&5
12665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12666if eval "test \"\${$as_ac_Header+set}\" = set"; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668else
12669 cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675$ac_includes_default
12676
12677#include <$ac_header>
12678_ACEOF
12679rm -f conftest.$ac_objext
12680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12681 (eval $ac_compile) 2>conftest.er1
a848cd7e 12682 ac_status=$?
ac1cb8d3
VS
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
a848cd7e
SC
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
ac1cb8d3
VS
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 eval "$as_ac_Header=yes"
12702else
12703 echo "$as_me: failed program was:" >&5
12704sed 's/^/| /' conftest.$ac_ext >&5
12705
12706eval "$as_ac_Header=no"
12707fi
ac1cb8d3 12708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12709fi
12710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12712if test `eval echo '${'$as_ac_Header'}'` = yes; then
12713 cat >>confdefs.h <<_ACEOF
12714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12715_ACEOF
12716
12717fi
12718
12719done
12720
12721
12722
12723for ac_header in stdlib.h
12724do
12725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12726if eval "test \"\${$as_ac_Header+set}\" = set"; then
12727 echo "$as_me:$LINENO: checking for $ac_header" >&5
12728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12729if eval "test \"\${$as_ac_Header+set}\" = set"; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731fi
12732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12734else
12735 # Is the header compilable?
12736echo "$as_me:$LINENO: checking $ac_header usability" >&5
12737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12738cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h. */
12744$ac_includes_default
12745#include <$ac_header>
12746_ACEOF
12747rm -f conftest.$ac_objext
12748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12749 (eval $ac_compile) 2>conftest.er1
a848cd7e 12750 ac_status=$?
ac1cb8d3
VS
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
a848cd7e
SC
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
ac1cb8d3
VS
12756 { ac_try='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_header_compiler=yes
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
12774ac_header_compiler=no
12775fi
ac1cb8d3 12776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778echo "${ECHO_T}$ac_header_compiler" >&6
12779
12780# Is the header present?
12781echo "$as_me:$LINENO: checking $ac_header presence" >&5
12782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12783cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789#include <$ac_header>
12790_ACEOF
12791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev/null; then
12799 if test -s conftest.err; then
12800 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12802 else
12803 ac_cpp_err=
12804 fi
12805else
12806 ac_cpp_err=yes
12807fi
12808if test -z "$ac_cpp_err"; then
12809 ac_header_preproc=yes
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_header_preproc=no
12815fi
12816rm -f conftest.err conftest.$ac_ext
12817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818echo "${ECHO_T}$ac_header_preproc" >&6
12819
12820# So? What about this header?
ac1cb8d3
VS
12821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822 yes:no: )
a848cd7e
SC
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12827 ac_header_preproc=yes
a848cd7e 12828 ;;
ac1cb8d3 12829 no:yes:* )
a848cd7e
SC
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12842 (
12843 cat <<\_ASBOX
ac1cb8d3
VS
12844## ----------------------------------------- ##
12845## Report this to wx-dev@lists.wxwidgets.org ##
12846## ----------------------------------------- ##
a848cd7e
SC
12847_ASBOX
12848 ) |
12849 sed "s/^/$as_me: WARNING: /" >&2
12850 ;;
12851esac
12852echo "$as_me:$LINENO: checking for $ac_header" >&5
12853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12854if eval "test \"\${$as_ac_Header+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
ac1cb8d3 12857 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12858fi
12859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12861
12862fi
12863if test `eval echo '${'$as_ac_Header'}'` = yes; then
12864 cat >>confdefs.h <<_ACEOF
12865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12866_ACEOF
12867
12868fi
12869
12870done
12871
12872
12873for ac_header in malloc.h
12874do
12875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876if eval "test \"\${$as_ac_Header+set}\" = set"; then
12877 echo "$as_me:$LINENO: checking for $ac_header" >&5
12878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12879if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881fi
12882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12884else
12885 # Is the header compilable?
12886echo "$as_me:$LINENO: checking $ac_header usability" >&5
12887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12888cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894$ac_includes_default
12895#include <$ac_header>
12896_ACEOF
12897rm -f conftest.$ac_objext
12898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12899 (eval $ac_compile) 2>conftest.er1
a848cd7e 12900 ac_status=$?
ac1cb8d3
VS
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
a848cd7e
SC
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
ac1cb8d3
VS
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_header_compiler=yes
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924ac_header_compiler=no
12925fi
ac1cb8d3 12926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12928echo "${ECHO_T}$ac_header_compiler" >&6
12929
12930# Is the header present?
12931echo "$as_me:$LINENO: checking $ac_header presence" >&5
12932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12933cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
12939#include <$ac_header>
12940_ACEOF
12941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } >/dev/null; then
12949 if test -s conftest.err; then
12950 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12952 else
12953 ac_cpp_err=
12954 fi
12955else
12956 ac_cpp_err=yes
12957fi
12958if test -z "$ac_cpp_err"; then
12959 ac_header_preproc=yes
12960else
12961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_header_preproc=no
12965fi
12966rm -f conftest.err conftest.$ac_ext
12967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12968echo "${ECHO_T}$ac_header_preproc" >&6
12969
12970# So? What about this header?
ac1cb8d3
VS
12971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12972 yes:no: )
a848cd7e
SC
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12977 ac_header_preproc=yes
a848cd7e 12978 ;;
ac1cb8d3 12979 no:yes:* )
a848cd7e
SC
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12992 (
12993 cat <<\_ASBOX
ac1cb8d3
VS
12994## ----------------------------------------- ##
12995## Report this to wx-dev@lists.wxwidgets.org ##
12996## ----------------------------------------- ##
a848cd7e
SC
12997_ASBOX
12998 ) |
12999 sed "s/^/$as_me: WARNING: /" >&2
13000 ;;
13001esac
13002echo "$as_me:$LINENO: checking for $ac_header" >&5
13003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006else
ac1cb8d3 13007 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13008fi
13009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13011
13012fi
13013if test `eval echo '${'$as_ac_Header'}'` = yes; then
13014 cat >>confdefs.h <<_ACEOF
13015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13016_ACEOF
13017
13018fi
13019
13020done
13021
13022
13023for ac_header in unistd.h
13024do
13025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13026if eval "test \"\${$as_ac_Header+set}\" = set"; then
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031fi
13032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034else
13035 # Is the header compilable?
13036echo "$as_me:$LINENO: checking $ac_header usability" >&5
13037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044$ac_includes_default
13045#include <$ac_header>
13046_ACEOF
13047rm -f conftest.$ac_objext
13048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13049 (eval $ac_compile) 2>conftest.er1
a848cd7e 13050 ac_status=$?
ac1cb8d3
VS
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
a848cd7e
SC
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
ac1cb8d3
VS
13056 { ac_try='test -z "$ac_c_werror_flag"
13057 || test ! -s conftest.err'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_header_compiler=yes
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074ac_header_compiler=no
13075fi
ac1cb8d3 13076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078echo "${ECHO_T}$ac_header_compiler" >&6
13079
13080# Is the header present?
13081echo "$as_me:$LINENO: checking $ac_header presence" >&5
13082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13083cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089#include <$ac_header>
13090_ACEOF
13091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13102 else
13103 ac_cpp_err=
13104 fi
13105else
13106 ac_cpp_err=yes
13107fi
13108if test -z "$ac_cpp_err"; then
13109 ac_header_preproc=yes
13110else
13111 echo "$as_me: failed program was:" >&5
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 ac_header_preproc=no
13115fi
13116rm -f conftest.err conftest.$ac_ext
13117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118echo "${ECHO_T}$ac_header_preproc" >&6
13119
13120# So? What about this header?
ac1cb8d3
VS
13121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122 yes:no: )
a848cd7e
SC
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127 ac_header_preproc=yes
a848cd7e 13128 ;;
ac1cb8d3 13129 no:yes:* )
a848cd7e
SC
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13142 (
13143 cat <<\_ASBOX
ac1cb8d3
VS
13144## ----------------------------------------- ##
13145## Report this to wx-dev@lists.wxwidgets.org ##
13146## ----------------------------------------- ##
a848cd7e
SC
13147_ASBOX
13148 ) |
13149 sed "s/^/$as_me: WARNING: /" >&2
13150 ;;
13151esac
13152echo "$as_me:$LINENO: checking for $ac_header" >&5
13153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
ac1cb8d3 13157 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13158fi
13159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13161
13162fi
13163if test `eval echo '${'$as_ac_Header'}'` = yes; then
13164 cat >>confdefs.h <<_ACEOF
13165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166_ACEOF
13167
13168fi
13169
13170done
13171
13172
13173for ac_header in wchar.h
13174do
13175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13176if eval "test \"\${$as_ac_Header+set}\" = set"; then
13177 echo "$as_me:$LINENO: checking for $ac_header" >&5
13178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13179if eval "test \"\${$as_ac_Header+set}\" = set"; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181fi
13182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13184else
13185 # Is the header compilable?
13186echo "$as_me:$LINENO: checking $ac_header usability" >&5
13187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194$ac_includes_default
13195#include <$ac_header>
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13199 (eval $ac_compile) 2>conftest.er1
a848cd7e 13200 ac_status=$?
ac1cb8d3
VS
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
a848cd7e
SC
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
ac1cb8d3
VS
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_header_compiler=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224ac_header_compiler=no
13225fi
ac1cb8d3 13226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228echo "${ECHO_T}$ac_header_compiler" >&6
13229
13230# Is the header present?
13231echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233cat >conftest.$ac_ext <<_ACEOF
13234/* confdefs.h. */
13235_ACEOF
13236cat confdefs.h >>conftest.$ac_ext
13237cat >>conftest.$ac_ext <<_ACEOF
13238/* end confdefs.h. */
13239#include <$ac_header>
13240_ACEOF
13241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } >/dev/null; then
13249 if test -s conftest.err; then
13250 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13252 else
13253 ac_cpp_err=
13254 fi
13255else
13256 ac_cpp_err=yes
13257fi
13258if test -z "$ac_cpp_err"; then
13259 ac_header_preproc=yes
13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_header_preproc=no
13265fi
13266rm -f conftest.err conftest.$ac_ext
13267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13268echo "${ECHO_T}$ac_header_preproc" >&6
13269
13270# So? What about this header?
ac1cb8d3
VS
13271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13272 yes:no: )
a848cd7e
SC
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13277 ac_header_preproc=yes
a848cd7e 13278 ;;
ac1cb8d3 13279 no:yes:* )
a848cd7e
SC
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13292 (
13293 cat <<\_ASBOX
ac1cb8d3
VS
13294## ----------------------------------------- ##
13295## Report this to wx-dev@lists.wxwidgets.org ##
13296## ----------------------------------------- ##
a848cd7e
SC
13297_ASBOX
13298 ) |
13299 sed "s/^/$as_me: WARNING: /" >&2
13300 ;;
13301esac
13302echo "$as_me:$LINENO: checking for $ac_header" >&5
13303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306else
ac1cb8d3 13307 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13308fi
13309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13311
13312fi
13313if test `eval echo '${'$as_ac_Header'}'` = yes; then
13314 cat >>confdefs.h <<_ACEOF
13315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13316_ACEOF
13317
13318fi
13319
13320done
13321
13322
13323if test "$ac_cv_header_wchar_h" != "yes"; then
13324
13325for ac_header in wcstr.h
13326do
13327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13328if eval "test \"\${$as_ac_Header+set}\" = set"; then
13329 echo "$as_me:$LINENO: checking for $ac_header" >&5
13330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13331if eval "test \"\${$as_ac_Header+set}\" = set"; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333fi
13334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13336else
13337 # Is the header compilable?
13338echo "$as_me:$LINENO: checking $ac_header usability" >&5
13339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13340cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h. */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h. */
13346$ac_includes_default
13347#include <$ac_header>
13348_ACEOF
13349rm -f conftest.$ac_objext
13350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13351 (eval $ac_compile) 2>conftest.er1
a848cd7e 13352 ac_status=$?
ac1cb8d3
VS
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
a848cd7e
SC
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
ac1cb8d3
VS
13358 { ac_try='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_header_compiler=yes
13372else
13373 echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376ac_header_compiler=no
13377fi
ac1cb8d3 13378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13380echo "${ECHO_T}$ac_header_compiler" >&6
13381
13382# Is the header present?
13383echo "$as_me:$LINENO: checking $ac_header presence" >&5
13384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13385cat >conftest.$ac_ext <<_ACEOF
13386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
13390/* end confdefs.h. */
13391#include <$ac_header>
13392_ACEOF
13393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } >/dev/null; then
13401 if test -s conftest.err; then
13402 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13404 else
13405 ac_cpp_err=
13406 fi
13407else
13408 ac_cpp_err=yes
13409fi
13410if test -z "$ac_cpp_err"; then
13411 ac_header_preproc=yes
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ac_header_preproc=no
13417fi
13418rm -f conftest.err conftest.$ac_ext
13419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420echo "${ECHO_T}$ac_header_preproc" >&6
13421
13422# So? What about this header?
ac1cb8d3
VS
13423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13424 yes:no: )
a848cd7e
SC
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13429 ac_header_preproc=yes
a848cd7e 13430 ;;
ac1cb8d3 13431 no:yes:* )
a848cd7e
SC
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13444 (
13445 cat <<\_ASBOX
ac1cb8d3
VS
13446## ----------------------------------------- ##
13447## Report this to wx-dev@lists.wxwidgets.org ##
13448## ----------------------------------------- ##
a848cd7e
SC
13449_ASBOX
13450 ) |
13451 sed "s/^/$as_me: WARNING: /" >&2
13452 ;;
13453esac
13454echo "$as_me:$LINENO: checking for $ac_header" >&5
13455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
ac1cb8d3 13459 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13460fi
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463
13464fi
13465if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13468_ACEOF
13469
13470fi
13471
13472done
13473
13474fi
13475
13476
13477for ac_header in fnmatch.h
13478do
13479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480if eval "test \"\${$as_ac_Header+set}\" = set"; then
13481 echo "$as_me:$LINENO: checking for $ac_header" >&5
13482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13483if eval "test \"\${$as_ac_Header+set}\" = set"; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485fi
13486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13488else
13489 # Is the header compilable?
13490echo "$as_me:$LINENO: checking $ac_header usability" >&5
13491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13492cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498$ac_includes_default
13499#include <$ac_header>
13500_ACEOF
13501rm -f conftest.$ac_objext
13502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13503 (eval $ac_compile) 2>conftest.er1
a848cd7e 13504 ac_status=$?
ac1cb8d3
VS
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
a848cd7e
SC
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
ac1cb8d3
VS
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler=yes
13524else
13525 echo "$as_me: failed program was:" >&5
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
13528ac_header_compiler=no
13529fi
ac1cb8d3 13530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13532echo "${ECHO_T}$ac_header_compiler" >&6
13533
13534# Is the header present?
13535echo "$as_me:$LINENO: checking $ac_header presence" >&5
13536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13537cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543#include <$ac_header>
13544_ACEOF
13545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13556 else
13557 ac_cpp_err=
13558 fi
13559else
13560 ac_cpp_err=yes
13561fi
13562if test -z "$ac_cpp_err"; then
13563 ac_header_preproc=yes
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_header_preproc=no
13569fi
13570rm -f conftest.err conftest.$ac_ext
13571echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572echo "${ECHO_T}$ac_header_preproc" >&6
13573
13574# So? What about this header?
ac1cb8d3
VS
13575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13576 yes:no: )
a848cd7e
SC
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc=yes
a848cd7e 13582 ;;
ac1cb8d3 13583 no:yes:* )
a848cd7e
SC
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13591echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13596 (
13597 cat <<\_ASBOX
ac1cb8d3
VS
13598## ----------------------------------------- ##
13599## Report this to wx-dev@lists.wxwidgets.org ##
13600## ----------------------------------------- ##
a848cd7e
SC
13601_ASBOX
13602 ) |
13603 sed "s/^/$as_me: WARNING: /" >&2
13604 ;;
13605esac
13606echo "$as_me:$LINENO: checking for $ac_header" >&5
13607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608if eval "test \"\${$as_ac_Header+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610else
ac1cb8d3 13611 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13612fi
13613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13615
13616fi
13617if test `eval echo '${'$as_ac_Header'}'` = yes; then
13618 cat >>confdefs.h <<_ACEOF
13619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13620_ACEOF
13621
13622fi
13623
13624done
13625
13626
13627if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13628
13629for ac_func in fnmatch
13630do
13631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13632echo "$as_me:$LINENO: checking for $ac_func" >&5
13633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13634if eval "test \"\${$as_ac_var+set}\" = set"; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
ac1cb8d3
VS
13643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13645#define $ac_func innocuous_$ac_func
13646
a848cd7e
SC
13647/* System header to define __stub macros and hopefully few prototypes,
13648 which can conflict with char $ac_func (); below.
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13651
a848cd7e
SC
13652#ifdef __STDC__
13653# include <limits.h>
13654#else
13655# include <assert.h>
13656#endif
ac1cb8d3
VS
13657
13658#undef $ac_func
13659
a848cd7e
SC
13660/* Override any gcc2 internal prototype to avoid an error. */
13661#ifdef __cplusplus
13662extern "C"
13663{
13664#endif
13665/* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13667char $ac_func ();
13668/* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672choke me
13673#else
13674char (*f) () = $ac_func;
13675#endif
13676#ifdef __cplusplus
13677}
13678#endif
13679
13680int
13681main ()
13682{
13683return f != $ac_func;
13684 ;
13685 return 0;
13686}
13687_ACEOF
13688rm -f conftest.$ac_objext conftest$ac_exeext
13689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13690 (eval $ac_link) 2>conftest.er1
a848cd7e 13691 ac_status=$?
ac1cb8d3
VS
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
a848cd7e
SC
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
ac1cb8d3
VS
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 eval "$as_ac_var=yes"
13711else
13712 echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715eval "$as_ac_var=no"
13716fi
ac1cb8d3
VS
13717rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13719fi
13720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13722if test `eval echo '${'$as_ac_var'}'` = yes; then
13723 cat >>confdefs.h <<_ACEOF
13724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13725_ACEOF
13726
13727fi
13728done
13729
13730fi
13731
13732
13733for ac_header in langinfo.h
13734do
13735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13736if eval "test \"\${$as_ac_Header+set}\" = set"; then
13737 echo "$as_me:$LINENO: checking for $ac_header" >&5
13738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13739if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741fi
13742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13744else
13745 # Is the header compilable?
13746echo "$as_me:$LINENO: checking $ac_header usability" >&5
13747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13748cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754$ac_includes_default
13755#include <$ac_header>
13756_ACEOF
13757rm -f conftest.$ac_objext
13758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13759 (eval $ac_compile) 2>conftest.er1
a848cd7e 13760 ac_status=$?
ac1cb8d3
VS
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
a848cd7e
SC
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
ac1cb8d3
VS
13766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_header_compiler=yes
13780else
13781 echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784ac_header_compiler=no
13785fi
ac1cb8d3 13786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788echo "${ECHO_T}$ac_header_compiler" >&6
13789
13790# Is the header present?
13791echo "$as_me:$LINENO: checking $ac_header presence" >&5
13792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13793cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799#include <$ac_header>
13800_ACEOF
13801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } >/dev/null; then
13809 if test -s conftest.err; then
13810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13812 else
13813 ac_cpp_err=
13814 fi
13815else
13816 ac_cpp_err=yes
13817fi
13818if test -z "$ac_cpp_err"; then
13819 ac_header_preproc=yes
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_header_preproc=no
13825fi
13826rm -f conftest.err conftest.$ac_ext
13827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13828echo "${ECHO_T}$ac_header_preproc" >&6
13829
13830# So? What about this header?
ac1cb8d3
VS
13831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13832 yes:no: )
a848cd7e
SC
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13837 ac_header_preproc=yes
a848cd7e 13838 ;;
ac1cb8d3 13839 no:yes:* )
a848cd7e
SC
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13852 (
13853 cat <<\_ASBOX
ac1cb8d3
VS
13854## ----------------------------------------- ##
13855## Report this to wx-dev@lists.wxwidgets.org ##
13856## ----------------------------------------- ##
a848cd7e
SC
13857_ASBOX
13858 ) |
13859 sed "s/^/$as_me: WARNING: /" >&2
13860 ;;
13861esac
13862echo "$as_me:$LINENO: checking for $ac_header" >&5
13863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13864if eval "test \"\${$as_ac_Header+set}\" = set"; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
ac1cb8d3 13867 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13868fi
13869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13871
13872fi
13873if test `eval echo '${'$as_ac_Header'}'` = yes; then
13874 cat >>confdefs.h <<_ACEOF
13875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13876_ACEOF
13877
13878fi
13879
13880done
13881
13882
13883case "${host}" in
13884 *-pc-os2_emx | *-pc-os2-emx )
13885 if test $ac_cv_header_langinfo_h = "yes"; then
13886 LIBS="$LIBS -lintl"
13887 fi
13888 ;;
13889esac
13890
13891if test "$wxUSE_GUI" = "yes"; then
13892 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13893
13894for ac_header in X11/Xlib.h
13895do
13896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13897if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898 echo "$as_me:$LINENO: checking for $ac_header" >&5
13899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13900if eval "test \"\${$as_ac_Header+set}\" = set"; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902fi
13903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13905else
13906 # Is the header compilable?
13907echo "$as_me:$LINENO: checking $ac_header usability" >&5
13908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13909cat >conftest.$ac_ext <<_ACEOF
13910/* confdefs.h. */
13911_ACEOF
13912cat confdefs.h >>conftest.$ac_ext
13913cat >>conftest.$ac_ext <<_ACEOF
13914/* end confdefs.h. */
13915$ac_includes_default
13916#include <$ac_header>
13917_ACEOF
13918rm -f conftest.$ac_objext
13919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13920 (eval $ac_compile) 2>conftest.er1
a848cd7e 13921 ac_status=$?
ac1cb8d3
VS
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
a848cd7e
SC
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
ac1cb8d3
VS
13927 { ac_try='test -z "$ac_c_werror_flag"
13928 || test ! -s conftest.err'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 ac_header_compiler=yes
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945ac_header_compiler=no
13946fi
ac1cb8d3 13947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13949echo "${ECHO_T}$ac_header_compiler" >&6
13950
13951# Is the header present?
13952echo "$as_me:$LINENO: checking $ac_header presence" >&5
13953echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
13961_ACEOF
13962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13964 ac_status=$?
13965 grep -v '^ *+' conftest.er1 >conftest.err
13966 rm -f conftest.er1
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } >/dev/null; then
13970 if test -s conftest.err; then
13971 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13973 else
13974 ac_cpp_err=
13975 fi
13976else
13977 ac_cpp_err=yes
13978fi
13979if test -z "$ac_cpp_err"; then
13980 ac_header_preproc=yes
13981else
13982 echo "$as_me: failed program was:" >&5
13983sed 's/^/| /' conftest.$ac_ext >&5
13984
13985 ac_header_preproc=no
13986fi
13987rm -f conftest.err conftest.$ac_ext
13988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13989echo "${ECHO_T}$ac_header_preproc" >&6
13990
13991# So? What about this header?
ac1cb8d3
VS
13992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13993 yes:no: )
a848cd7e
SC
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13998 ac_header_preproc=yes
a848cd7e 13999 ;;
ac1cb8d3 14000 no:yes:* )
a848cd7e
SC
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14013 (
14014 cat <<\_ASBOX
ac1cb8d3
VS
14015## ----------------------------------------- ##
14016## Report this to wx-dev@lists.wxwidgets.org ##
14017## ----------------------------------------- ##
a848cd7e
SC
14018_ASBOX
14019 ) |
14020 sed "s/^/$as_me: WARNING: /" >&2
14021 ;;
14022esac
14023echo "$as_me:$LINENO: checking for $ac_header" >&5
14024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14025if eval "test \"\${$as_ac_Header+set}\" = set"; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027else
ac1cb8d3 14028 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14029fi
14030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14032
14033fi
14034if test `eval echo '${'$as_ac_Header'}'` = yes; then
14035 cat >>confdefs.h <<_ACEOF
14036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14037_ACEOF
14038
14039fi
14040
14041done
14042
14043
14044for ac_header in X11/XKBlib.h
14045do
14046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14047echo "$as_me:$LINENO: checking for $ac_header" >&5
14048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14049if eval "test \"\${$as_ac_Header+set}\" = set"; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
14052 cat >conftest.$ac_ext <<_ACEOF
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
14057/* end confdefs.h. */
14058
14059 #if HAVE_X11_XLIB_H
14060 #include <X11/Xlib.h>
14061 #endif
14062
14063
14064#include <$ac_header>
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14068 (eval $ac_compile) 2>conftest.er1
a848cd7e 14069 ac_status=$?
ac1cb8d3
VS
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
a848cd7e
SC
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
ac1cb8d3
VS
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 eval "$as_ac_Header=yes"
14089else
14090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093eval "$as_ac_Header=no"
14094fi
ac1cb8d3 14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14096fi
14097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14099if test `eval echo '${'$as_ac_Header'}'` = yes; then
14100 cat >>confdefs.h <<_ACEOF
14101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14102_ACEOF
14103
14104fi
14105
14106done
14107
14108 fi
14109fi
14110
14111
14112echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14113echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14114if test "${ac_cv_c_const+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116else
14117 cat >conftest.$ac_ext <<_ACEOF
14118/* confdefs.h. */
14119_ACEOF
14120cat confdefs.h >>conftest.$ac_ext
14121cat >>conftest.$ac_ext <<_ACEOF
14122/* end confdefs.h. */
14123
14124int
14125main ()
14126{
14127/* FIXME: Include the comments suggested by Paul. */
14128#ifndef __cplusplus
14129 /* Ultrix mips cc rejects this. */
14130 typedef int charset[2];
14131 const charset x;
14132 /* SunOS 4.1.1 cc rejects this. */
14133 char const *const *ccp;
14134 char **p;
14135 /* NEC SVR4.0.2 mips cc rejects this. */
14136 struct point {int x, y;};
14137 static struct point const zero = {0,0};
14138 /* AIX XL C 1.02.0.0 rejects this.
14139 It does not let you subtract one const X* pointer from another in
14140 an arm of an if-expression whose if-part is not a constant
14141 expression */
14142 const char *g = "string";
14143 ccp = &g + (g ? g-g : 0);
14144 /* HPUX 7.0 cc rejects these. */
14145 ++ccp;
14146 p = (char**) ccp;
14147 ccp = (char const *const *) p;
14148 { /* SCO 3.2v4 cc rejects this. */
14149 char *t;
14150 char const *s = 0 ? (char *) 0 : (char const *) 0;
14151
14152 *t++ = 0;
14153 }
14154 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14155 int x[] = {25, 17};
14156 const int *foo = &x[0];
14157 ++foo;
14158 }
14159 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14160 typedef const int *iptr;
14161 iptr p = 0;
14162 ++p;
14163 }
14164 { /* AIX XL C 1.02.0.0 rejects this saying
14165 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14166 struct s { int j; const int *ap[3]; };
14167 struct s *b; b->j = 5;
14168 }
14169 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14170 const int foo = 10;
14171 }
14172#endif
14173
14174 ;
14175 return 0;
14176}
14177_ACEOF
14178rm -f conftest.$ac_objext
14179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14180 (eval $ac_compile) 2>conftest.er1
a848cd7e 14181 ac_status=$?
ac1cb8d3
VS
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
a848cd7e
SC
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
ac1cb8d3
VS
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_c_const=yes
14201else
14202 echo "$as_me: failed program was:" >&5
14203sed 's/^/| /' conftest.$ac_ext >&5
14204
14205ac_cv_c_const=no
14206fi
ac1cb8d3 14207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14208fi
14209echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14210echo "${ECHO_T}$ac_cv_c_const" >&6
14211if test $ac_cv_c_const = no; then
14212
14213cat >>confdefs.h <<\_ACEOF
14214#define const
14215_ACEOF
14216
14217fi
14218
14219echo "$as_me:$LINENO: checking for inline" >&5
14220echo $ECHO_N "checking for inline... $ECHO_C" >&6
14221if test "${ac_cv_c_inline+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223else
14224 ac_cv_c_inline=no
14225for ac_kw in inline __inline__ __inline; do
14226 cat >conftest.$ac_ext <<_ACEOF
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
14232#ifndef __cplusplus
14233typedef int foo_t;
14234static $ac_kw foo_t static_foo () {return 0; }
14235$ac_kw foo_t foo () {return 0; }
14236#endif
14237
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14241 (eval $ac_compile) 2>conftest.er1
a848cd7e 14242 ac_status=$?
ac1cb8d3
VS
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
a848cd7e
SC
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
ac1cb8d3
VS
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_c_inline=$ac_kw; break
14262else
14263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266fi
ac1cb8d3 14267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14268done
14269
14270fi
14271echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14272echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14273
14274
a848cd7e
SC
14275case $ac_cv_c_inline in
14276 inline | yes) ;;
ac1cb8d3
VS
14277 *)
14278 case $ac_cv_c_inline in
14279 no) ac_val=;;
14280 *) ac_val=$ac_cv_c_inline;;
14281 esac
14282 cat >>confdefs.h <<_ACEOF
14283#ifndef __cplusplus
14284#define inline $ac_val
14285#endif
de59c161 14286_ACEOF
ac1cb8d3 14287 ;;
a848cd7e
SC
14288esac
14289
14290
14291echo "$as_me:$LINENO: checking for char" >&5
14292echo $ECHO_N "checking for char... $ECHO_C" >&6
14293if test "${ac_cv_type_char+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295else
14296 cat >conftest.$ac_ext <<_ACEOF
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
14302$ac_includes_default
14303int
14304main ()
14305{
14306if ((char *) 0)
14307 return 0;
14308if (sizeof (char))
14309 return 0;
14310 ;
14311 return 0;
14312}
14313_ACEOF
14314rm -f conftest.$ac_objext
14315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14316 (eval $ac_compile) 2>conftest.er1
a848cd7e 14317 ac_status=$?
ac1cb8d3
VS
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
a848cd7e
SC
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
ac1cb8d3
VS
14323 { ac_try='test -z "$ac_c_werror_flag"
14324 || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_type_char=yes
14337else
14338 echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
14340
14341ac_cv_type_char=no
14342fi
ac1cb8d3 14343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14344fi
14345echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14346echo "${ECHO_T}$ac_cv_type_char" >&6
14347
14348echo "$as_me:$LINENO: checking size of char" >&5
14349echo $ECHO_N "checking size of char... $ECHO_C" >&6
14350if test "${ac_cv_sizeof_char+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352else
14353 if test "$ac_cv_type_char" = yes; then
14354 # The cast to unsigned long works around a bug in the HP C Compiler
14355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14357 # This bug is HP SR number 8606223364.
14358 if test "$cross_compiling" = yes; then
14359 # Depending upon the size, compute the lo and hi bounds.
14360cat >conftest.$ac_ext <<_ACEOF
14361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h. */
14366$ac_includes_default
14367int
14368main ()
14369{
14370static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14371test_array [0] = 0
14372
14373 ;
14374 return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext
14378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14379 (eval $ac_compile) 2>conftest.er1
a848cd7e 14380 ac_status=$?
ac1cb8d3
VS
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
a848cd7e
SC
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
ac1cb8d3
VS
14386 { ac_try='test -z "$ac_c_werror_flag"
14387 || test ! -s conftest.err'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_lo=0 ac_mid=0
14400 while :; do
14401 cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407$ac_includes_default
14408int
14409main ()
14410{
14411static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14412test_array [0] = 0
14413
14414 ;
14415 return 0;
14416}
14417_ACEOF
14418rm -f conftest.$ac_objext
14419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14420 (eval $ac_compile) 2>conftest.er1
a848cd7e 14421 ac_status=$?
ac1cb8d3
VS
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
a848cd7e
SC
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
ac1cb8d3
VS
14427 { ac_try='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_hi=$ac_mid; break
14441else
14442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14446 if test $ac_lo -le $ac_mid; then
14447 ac_lo= ac_hi=
14448 break
14449 fi
14450 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14451fi
ac1cb8d3 14452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14453 done
14454else
14455 echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458cat >conftest.$ac_ext <<_ACEOF
14459/* confdefs.h. */
14460_ACEOF
14461cat confdefs.h >>conftest.$ac_ext
14462cat >>conftest.$ac_ext <<_ACEOF
14463/* end confdefs.h. */
14464$ac_includes_default
14465int
14466main ()
14467{
14468static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14469test_array [0] = 0
14470
14471 ;
14472 return 0;
14473}
14474_ACEOF
14475rm -f conftest.$ac_objext
14476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14477 (eval $ac_compile) 2>conftest.er1
a848cd7e 14478 ac_status=$?
ac1cb8d3
VS
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
a848cd7e
SC
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
ac1cb8d3
VS
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_hi=-1 ac_mid=-1
14498 while :; do
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506int
14507main ()
14508{
14509static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14510test_array [0] = 0
14511
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516rm -f conftest.$ac_objext
14517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14518 (eval $ac_compile) 2>conftest.er1
a848cd7e 14519 ac_status=$?
ac1cb8d3
VS
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
a848cd7e
SC
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
ac1cb8d3
VS
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_lo=$ac_mid; break
14539else
14540 echo "$as_me: failed program was:" >&5
14541sed 's/^/| /' conftest.$ac_ext >&5
14542
14543ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14544 if test $ac_mid -le $ac_hi; then
14545 ac_lo= ac_hi=
14546 break
14547 fi
14548 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14549fi
ac1cb8d3 14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14551 done
14552else
14553 echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556ac_lo= ac_hi=
14557fi
ac1cb8d3 14558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14559fi
ac1cb8d3 14560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14561# Binary search between lo and hi bounds.
14562while test "x$ac_lo" != "x$ac_hi"; do
14563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14564 cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
14569/* end confdefs.h. */
14570$ac_includes_default
14571int
14572main ()
14573{
14574static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14575test_array [0] = 0
14576
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext
14582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14583 (eval $ac_compile) 2>conftest.er1
a848cd7e 14584 ac_status=$?
ac1cb8d3
VS
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
a848cd7e
SC
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
ac1cb8d3
VS
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_hi=$ac_mid
14604else
14605 echo "$as_me: failed program was:" >&5
14606sed 's/^/| /' conftest.$ac_ext >&5
14607
14608ac_lo=`expr '(' $ac_mid ')' + 1`
14609fi
ac1cb8d3 14610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14611done
14612case $ac_lo in
14613?*) ac_cv_sizeof_char=$ac_lo;;
14614'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14615See \`config.log' for more details." >&5
14616echo "$as_me: error: cannot compute sizeof (char), 77
14617See \`config.log' for more details." >&2;}
14618 { (exit 1); exit 1; }; } ;;
14619esac
14620else
14621 if test "$cross_compiling" = yes; then
14622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14623See \`config.log' for more details." >&5
14624echo "$as_me: error: cannot run test program while cross compiling
14625See \`config.log' for more details." >&2;}
14626 { (exit 1); exit 1; }; }
14627else
14628 cat >conftest.$ac_ext <<_ACEOF
14629/* confdefs.h. */
14630_ACEOF
14631cat confdefs.h >>conftest.$ac_ext
14632cat >>conftest.$ac_ext <<_ACEOF
14633/* end confdefs.h. */
14634$ac_includes_default
14635long longval () { return (long) (sizeof (char)); }
14636unsigned long ulongval () { return (long) (sizeof (char)); }
14637#include <stdio.h>
14638#include <stdlib.h>
14639int
14640main ()
14641{
14642
14643 FILE *f = fopen ("conftest.val", "w");
14644 if (! f)
14645 exit (1);
14646 if (((long) (sizeof (char))) < 0)
14647 {
14648 long i = longval ();
14649 if (i != ((long) (sizeof (char))))
14650 exit (1);
14651 fprintf (f, "%ld\n", i);
14652 }
14653 else
14654 {
14655 unsigned long i = ulongval ();
14656 if (i != ((long) (sizeof (char))))
14657 exit (1);
14658 fprintf (f, "%lu\n", i);
14659 }
14660 exit (ferror (f) || fclose (f) != 0);
14661
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest$ac_exeext
14667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_sizeof_char=`cat conftest.val`
14678else
14679 echo "$as_me: program exited with status $ac_status" >&5
14680echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683( exit $ac_status )
14684{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14685See \`config.log' for more details." >&5
14686echo "$as_me: error: cannot compute sizeof (char), 77
14687See \`config.log' for more details." >&2;}
14688 { (exit 1); exit 1; }; }
14689fi
ac1cb8d3 14690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14691fi
14692fi
14693rm -f conftest.val
14694else
14695 ac_cv_sizeof_char=0
14696fi
14697fi
14698echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14699echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14700cat >>confdefs.h <<_ACEOF
14701#define SIZEOF_CHAR $ac_cv_sizeof_char
14702_ACEOF
14703
14704
14705echo "$as_me:$LINENO: checking for short" >&5
14706echo $ECHO_N "checking for short... $ECHO_C" >&6
14707if test "${ac_cv_type_short+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
14710 cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
14716$ac_includes_default
14717int
14718main ()
14719{
14720if ((short *) 0)
14721 return 0;
14722if (sizeof (short))
14723 return 0;
14724 ;
14725 return 0;
14726}
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14730 (eval $ac_compile) 2>conftest.er1
a848cd7e 14731 ac_status=$?
ac1cb8d3
VS
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
a848cd7e
SC
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
ac1cb8d3
VS
14737 { ac_try='test -z "$ac_c_werror_flag"
14738 || test ! -s conftest.err'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_cv_type_short=yes
14751else
14752 echo "$as_me: failed program was:" >&5
14753sed 's/^/| /' conftest.$ac_ext >&5
14754
14755ac_cv_type_short=no
14756fi
ac1cb8d3 14757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14758fi
14759echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14760echo "${ECHO_T}$ac_cv_type_short" >&6
14761
14762echo "$as_me:$LINENO: checking size of short" >&5
14763echo $ECHO_N "checking size of short... $ECHO_C" >&6
14764if test "${ac_cv_sizeof_short+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767 if test "$ac_cv_type_short" = yes; then
14768 # The cast to unsigned long works around a bug in the HP C Compiler
14769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14771 # This bug is HP SR number 8606223364.
14772 if test "$cross_compiling" = yes; then
14773 # Depending upon the size, compute the lo and hi bounds.
14774cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780$ac_includes_default
14781int
14782main ()
14783{
14784static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14785test_array [0] = 0
14786
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791rm -f conftest.$ac_objext
14792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14793 (eval $ac_compile) 2>conftest.er1
a848cd7e 14794 ac_status=$?
ac1cb8d3
VS
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
a848cd7e
SC
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
ac1cb8d3
VS
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_lo=0 ac_mid=0
14814 while :; do
14815 cat >conftest.$ac_ext <<_ACEOF
14816/* confdefs.h. */
14817_ACEOF
14818cat confdefs.h >>conftest.$ac_ext
14819cat >>conftest.$ac_ext <<_ACEOF
14820/* end confdefs.h. */
14821$ac_includes_default
14822int
14823main ()
14824{
14825static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14826test_array [0] = 0
14827
14828 ;
14829 return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext
14833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14834 (eval $ac_compile) 2>conftest.er1
a848cd7e 14835 ac_status=$?
ac1cb8d3
VS
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
a848cd7e
SC
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
ac1cb8d3
VS
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_hi=$ac_mid; break
14855else
14856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
14859ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14860 if test $ac_lo -le $ac_mid; then
14861 ac_lo= ac_hi=
14862 break
14863 fi
14864 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14865fi
ac1cb8d3 14866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14867 done
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872cat >conftest.$ac_ext <<_ACEOF
14873/* confdefs.h. */
14874_ACEOF
14875cat confdefs.h >>conftest.$ac_ext
14876cat >>conftest.$ac_ext <<_ACEOF
14877/* end confdefs.h. */
14878$ac_includes_default
14879int
14880main ()
14881{
14882static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14883test_array [0] = 0
14884
14885 ;
14886 return 0;
14887}
14888_ACEOF
14889rm -f conftest.$ac_objext
14890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14891 (eval $ac_compile) 2>conftest.er1
a848cd7e 14892 ac_status=$?
ac1cb8d3
VS
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
a848cd7e
SC
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
ac1cb8d3
VS
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_hi=-1 ac_mid=-1
14912 while :; do
14913 cat >conftest.$ac_ext <<_ACEOF
14914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
14919$ac_includes_default
14920int
14921main ()
14922{
14923static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14924test_array [0] = 0
14925
14926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14932 (eval $ac_compile) 2>conftest.er1
a848cd7e 14933 ac_status=$?
ac1cb8d3
VS
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
a848cd7e
SC
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
ac1cb8d3
VS
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_lo=$ac_mid; break
14953else
14954 echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14958 if test $ac_mid -le $ac_hi; then
14959 ac_lo= ac_hi=
14960 break
14961 fi
14962 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14963fi
ac1cb8d3 14964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14965 done
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_lo= ac_hi=
14971fi
ac1cb8d3 14972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14973fi
ac1cb8d3 14974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14975# Binary search between lo and hi bounds.
14976while test "x$ac_lo" != "x$ac_hi"; do
14977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14978 cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984$ac_includes_default
14985int
14986main ()
14987{
14988static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14989test_array [0] = 0
14990
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext
14996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14997 (eval $ac_compile) 2>conftest.er1
a848cd7e 14998 ac_status=$?
ac1cb8d3
VS
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
a848cd7e
SC
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
ac1cb8d3
VS
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_hi=$ac_mid
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022ac_lo=`expr '(' $ac_mid ')' + 1`
15023fi
ac1cb8d3 15024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15025done
15026case $ac_lo in
15027?*) ac_cv_sizeof_short=$ac_lo;;
15028'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15029See \`config.log' for more details." >&5
15030echo "$as_me: error: cannot compute sizeof (short), 77
15031See \`config.log' for more details." >&2;}
15032 { (exit 1); exit 1; }; } ;;
15033esac
15034else
15035 if test "$cross_compiling" = yes; then
15036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15037See \`config.log' for more details." >&5
15038echo "$as_me: error: cannot run test program while cross compiling
15039See \`config.log' for more details." >&2;}
15040 { (exit 1); exit 1; }; }
15041else
15042 cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048$ac_includes_default
15049long longval () { return (long) (sizeof (short)); }
15050unsigned long ulongval () { return (long) (sizeof (short)); }
15051#include <stdio.h>
15052#include <stdlib.h>
15053int
15054main ()
15055{
15056
15057 FILE *f = fopen ("conftest.val", "w");
15058 if (! f)
15059 exit (1);
15060 if (((long) (sizeof (short))) < 0)
15061 {
15062 long i = longval ();
15063 if (i != ((long) (sizeof (short))))
15064 exit (1);
15065 fprintf (f, "%ld\n", i);
15066 }
15067 else
15068 {
15069 unsigned long i = ulongval ();
15070 if (i != ((long) (sizeof (short))))
15071 exit (1);
15072 fprintf (f, "%lu\n", i);
15073 }
15074 exit (ferror (f) || fclose (f) != 0);
15075
15076 ;
15077 return 0;
15078}
15079_ACEOF
15080rm -f conftest$ac_exeext
15081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_sizeof_short=`cat conftest.val`
15092else
15093 echo "$as_me: program exited with status $ac_status" >&5
15094echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097( exit $ac_status )
15098{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15099See \`config.log' for more details." >&5
15100echo "$as_me: error: cannot compute sizeof (short), 77
15101See \`config.log' for more details." >&2;}
15102 { (exit 1); exit 1; }; }
15103fi
ac1cb8d3 15104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15105fi
15106fi
15107rm -f conftest.val
15108else
15109 ac_cv_sizeof_short=0
15110fi
15111fi
15112echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15113echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15114cat >>confdefs.h <<_ACEOF
15115#define SIZEOF_SHORT $ac_cv_sizeof_short
15116_ACEOF
15117
15118
15119echo "$as_me:$LINENO: checking for void *" >&5
15120echo $ECHO_N "checking for void *... $ECHO_C" >&6
15121if test "${ac_cv_type_void_p+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123else
15124 cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130$ac_includes_default
15131int
15132main ()
15133{
15134if ((void * *) 0)
15135 return 0;
15136if (sizeof (void *))
15137 return 0;
15138 ;
15139 return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15144 (eval $ac_compile) 2>conftest.er1
a848cd7e 15145 ac_status=$?
ac1cb8d3
VS
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
a848cd7e
SC
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
ac1cb8d3
VS
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_type_void_p=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169ac_cv_type_void_p=no
15170fi
ac1cb8d3 15171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15172fi
15173echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15174echo "${ECHO_T}$ac_cv_type_void_p" >&6
15175
15176echo "$as_me:$LINENO: checking size of void *" >&5
15177echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15178if test "${ac_cv_sizeof_void_p+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180else
15181 if test "$ac_cv_type_void_p" = yes; then
15182 # The cast to unsigned long works around a bug in the HP C Compiler
15183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15185 # This bug is HP SR number 8606223364.
15186 if test "$cross_compiling" = yes; then
15187 # Depending upon the size, compute the lo and hi bounds.
15188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194$ac_includes_default
15195int
15196main ()
15197{
15198static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15199test_array [0] = 0
15200
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext
15206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15207 (eval $ac_compile) 2>conftest.er1
a848cd7e 15208 ac_status=$?
ac1cb8d3
VS
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
a848cd7e
SC
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
ac1cb8d3
VS
15214 { ac_try='test -z "$ac_c_werror_flag"
15215 || test ! -s conftest.err'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_lo=0 ac_mid=0
15228 while :; do
15229 cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235$ac_includes_default
15236int
15237main ()
15238{
15239static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15240test_array [0] = 0
15241
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15248 (eval $ac_compile) 2>conftest.er1
a848cd7e 15249 ac_status=$?
ac1cb8d3
VS
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
a848cd7e
SC
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
ac1cb8d3
VS
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_hi=$ac_mid; break
15269else
15270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
15273ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15274 if test $ac_lo -le $ac_mid; then
15275 ac_lo= ac_hi=
15276 break
15277 fi
15278 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15279fi
ac1cb8d3 15280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15281 done
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286cat >conftest.$ac_ext <<_ACEOF
15287/* confdefs.h. */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h. */
15292$ac_includes_default
15293int
15294main ()
15295{
15296static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15297test_array [0] = 0
15298
15299 ;
15300 return 0;
15301}
15302_ACEOF
15303rm -f conftest.$ac_objext
15304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15305 (eval $ac_compile) 2>conftest.er1
a848cd7e 15306 ac_status=$?
ac1cb8d3
VS
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
a848cd7e
SC
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
ac1cb8d3
VS
15312 { ac_try='test -z "$ac_c_werror_flag"
15313 || test ! -s conftest.err'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_hi=-1 ac_mid=-1
15326 while :; do
15327 cat >conftest.$ac_ext <<_ACEOF
15328/* confdefs.h. */
15329_ACEOF
15330cat confdefs.h >>conftest.$ac_ext
15331cat >>conftest.$ac_ext <<_ACEOF
15332/* end confdefs.h. */
15333$ac_includes_default
15334int
15335main ()
15336{
15337static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15338test_array [0] = 0
15339
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15346 (eval $ac_compile) 2>conftest.er1
a848cd7e 15347 ac_status=$?
ac1cb8d3
VS
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
a848cd7e
SC
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
ac1cb8d3
VS
15353 { ac_try='test -z "$ac_c_werror_flag"
15354 || test ! -s conftest.err'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_lo=$ac_mid; break
15367else
15368 echo "$as_me: failed program was:" >&5
15369sed 's/^/| /' conftest.$ac_ext >&5
15370
15371ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15372 if test $ac_mid -le $ac_hi; then
15373 ac_lo= ac_hi=
15374 break
15375 fi
15376 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15377fi
ac1cb8d3 15378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15379 done
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384ac_lo= ac_hi=
15385fi
ac1cb8d3 15386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15387fi
ac1cb8d3 15388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15389# Binary search between lo and hi bounds.
15390while test "x$ac_lo" != "x$ac_hi"; do
15391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15392 cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
15398$ac_includes_default
15399int
15400main ()
15401{
15402static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15403test_array [0] = 0
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15411 (eval $ac_compile) 2>conftest.er1
a848cd7e 15412 ac_status=$?
ac1cb8d3
VS
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
a848cd7e
SC
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
ac1cb8d3
VS
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_hi=$ac_mid
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436ac_lo=`expr '(' $ac_mid ')' + 1`
15437fi
ac1cb8d3 15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15439done
15440case $ac_lo in
15441?*) ac_cv_sizeof_void_p=$ac_lo;;
15442'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15443See \`config.log' for more details." >&5
15444echo "$as_me: error: cannot compute sizeof (void *), 77
15445See \`config.log' for more details." >&2;}
15446 { (exit 1); exit 1; }; } ;;
15447esac
15448else
15449 if test "$cross_compiling" = yes; then
15450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15451See \`config.log' for more details." >&5
15452echo "$as_me: error: cannot run test program while cross compiling
15453See \`config.log' for more details." >&2;}
15454 { (exit 1); exit 1; }; }
15455else
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463long longval () { return (long) (sizeof (void *)); }
15464unsigned long ulongval () { return (long) (sizeof (void *)); }
15465#include <stdio.h>
15466#include <stdlib.h>
15467int
15468main ()
15469{
15470
15471 FILE *f = fopen ("conftest.val", "w");
15472 if (! f)
15473 exit (1);
15474 if (((long) (sizeof (void *))) < 0)
15475 {
15476 long i = longval ();
15477 if (i != ((long) (sizeof (void *))))
15478 exit (1);
15479 fprintf (f, "%ld\n", i);
15480 }
15481 else
15482 {
15483 unsigned long i = ulongval ();
15484 if (i != ((long) (sizeof (void *))))
15485 exit (1);
15486 fprintf (f, "%lu\n", i);
15487 }
15488 exit (ferror (f) || fclose (f) != 0);
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest$ac_exeext
15495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_cv_sizeof_void_p=`cat conftest.val`
15506else
15507 echo "$as_me: program exited with status $ac_status" >&5
15508echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511( exit $ac_status )
15512{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15513See \`config.log' for more details." >&5
15514echo "$as_me: error: cannot compute sizeof (void *), 77
15515See \`config.log' for more details." >&2;}
15516 { (exit 1); exit 1; }; }
15517fi
ac1cb8d3 15518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15519fi
15520fi
15521rm -f conftest.val
15522else
15523 ac_cv_sizeof_void_p=0
15524fi
15525fi
15526echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15527echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15528cat >>confdefs.h <<_ACEOF
15529#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15530_ACEOF
15531
15532
15533echo "$as_me:$LINENO: checking for int" >&5
15534echo $ECHO_N "checking for int... $ECHO_C" >&6
15535if test "${ac_cv_type_int+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537else
15538 cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544$ac_includes_default
15545int
15546main ()
15547{
15548if ((int *) 0)
15549 return 0;
15550if (sizeof (int))
15551 return 0;
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556rm -f conftest.$ac_objext
15557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15558 (eval $ac_compile) 2>conftest.er1
a848cd7e 15559 ac_status=$?
ac1cb8d3
VS
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
a848cd7e
SC
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
ac1cb8d3
VS
15565 { ac_try='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_type_int=yes
15579else
15580 echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
15583ac_cv_type_int=no
15584fi
ac1cb8d3 15585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15586fi
15587echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15588echo "${ECHO_T}$ac_cv_type_int" >&6
15589
15590echo "$as_me:$LINENO: checking size of int" >&5
15591echo $ECHO_N "checking size of int... $ECHO_C" >&6
15592if test "${ac_cv_sizeof_int+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 if test "$ac_cv_type_int" = yes; then
15596 # The cast to unsigned long works around a bug in the HP C Compiler
15597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15599 # This bug is HP SR number 8606223364.
15600 if test "$cross_compiling" = yes; then
15601 # Depending upon the size, compute the lo and hi bounds.
15602cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609int
15610main ()
15611{
15612static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15613test_array [0] = 0
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15621 (eval $ac_compile) 2>conftest.er1
a848cd7e 15622 ac_status=$?
ac1cb8d3
VS
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
a848cd7e
SC
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
ac1cb8d3
VS
15628 { ac_try='test -z "$ac_c_werror_flag"
15629 || test ! -s conftest.err'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_lo=0 ac_mid=0
15642 while :; do
15643 cat >conftest.$ac_ext <<_ACEOF
15644/* confdefs.h. */
15645_ACEOF
15646cat confdefs.h >>conftest.$ac_ext
15647cat >>conftest.$ac_ext <<_ACEOF
15648/* end confdefs.h. */
15649$ac_includes_default
15650int
15651main ()
15652{
15653static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15654test_array [0] = 0
15655
15656 ;
15657 return 0;
15658}
15659_ACEOF
15660rm -f conftest.$ac_objext
15661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15662 (eval $ac_compile) 2>conftest.er1
a848cd7e 15663 ac_status=$?
ac1cb8d3
VS
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
a848cd7e
SC
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
ac1cb8d3
VS
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_hi=$ac_mid; break
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15688 if test $ac_lo -le $ac_mid; then
15689 ac_lo= ac_hi=
15690 break
15691 fi
15692 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15693fi
ac1cb8d3 15694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15695 done
15696else
15697 echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700cat >conftest.$ac_ext <<_ACEOF
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706$ac_includes_default
15707int
15708main ()
15709{
15710static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15711test_array [0] = 0
15712
15713 ;
15714 return 0;
15715}
15716_ACEOF
15717rm -f conftest.$ac_objext
15718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15719 (eval $ac_compile) 2>conftest.er1
a848cd7e 15720 ac_status=$?
ac1cb8d3
VS
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
a848cd7e
SC
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
ac1cb8d3
VS
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_hi=-1 ac_mid=-1
15740 while :; do
15741 cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747$ac_includes_default
15748int
15749main ()
15750{
15751static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15752test_array [0] = 0
15753
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758rm -f conftest.$ac_objext
15759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15760 (eval $ac_compile) 2>conftest.er1
a848cd7e 15761 ac_status=$?
ac1cb8d3
VS
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
a848cd7e
SC
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
ac1cb8d3
VS
15767 { ac_try='test -z "$ac_c_werror_flag"
15768 || test ! -s conftest.err'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_lo=$ac_mid; break
15781else
15782 echo "$as_me: failed program was:" >&5
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
15785ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15786 if test $ac_mid -le $ac_hi; then
15787 ac_lo= ac_hi=
15788 break
15789 fi
15790 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15791fi
ac1cb8d3 15792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15793 done
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798ac_lo= ac_hi=
15799fi
ac1cb8d3 15800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15801fi
ac1cb8d3 15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15803# Binary search between lo and hi bounds.
15804while test "x$ac_lo" != "x$ac_hi"; do
15805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15806 cat >conftest.$ac_ext <<_ACEOF
15807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
15812$ac_includes_default
15813int
15814main ()
15815{
15816static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15817test_array [0] = 0
15818
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823rm -f conftest.$ac_objext
15824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15825 (eval $ac_compile) 2>conftest.er1
a848cd7e 15826 ac_status=$?
ac1cb8d3
VS
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
a848cd7e
SC
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
ac1cb8d3
VS
15832 { ac_try='test -z "$ac_c_werror_flag"
15833 || test ! -s conftest.err'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_hi=$ac_mid
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_lo=`expr '(' $ac_mid ')' + 1`
15851fi
ac1cb8d3 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15853done
15854case $ac_lo in
15855?*) ac_cv_sizeof_int=$ac_lo;;
15856'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15857See \`config.log' for more details." >&5
15858echo "$as_me: error: cannot compute sizeof (int), 77
15859See \`config.log' for more details." >&2;}
15860 { (exit 1); exit 1; }; } ;;
15861esac
15862else
15863 if test "$cross_compiling" = yes; then
15864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15865See \`config.log' for more details." >&5
15866echo "$as_me: error: cannot run test program while cross compiling
15867See \`config.log' for more details." >&2;}
15868 { (exit 1); exit 1; }; }
15869else
15870 cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876$ac_includes_default
15877long longval () { return (long) (sizeof (int)); }
15878unsigned long ulongval () { return (long) (sizeof (int)); }
15879#include <stdio.h>
15880#include <stdlib.h>
15881int
15882main ()
15883{
15884
15885 FILE *f = fopen ("conftest.val", "w");
15886 if (! f)
15887 exit (1);
15888 if (((long) (sizeof (int))) < 0)
15889 {
15890 long i = longval ();
15891 if (i != ((long) (sizeof (int))))
15892 exit (1);
15893 fprintf (f, "%ld\n", i);
15894 }
15895 else
15896 {
15897 unsigned long i = ulongval ();
15898 if (i != ((long) (sizeof (int))))
15899 exit (1);
15900 fprintf (f, "%lu\n", i);
15901 }
15902 exit (ferror (f) || fclose (f) != 0);
15903
15904 ;
15905 return 0;
15906}
15907_ACEOF
15908rm -f conftest$ac_exeext
15909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_cv_sizeof_int=`cat conftest.val`
15920else
15921 echo "$as_me: program exited with status $ac_status" >&5
15922echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925( exit $ac_status )
15926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15927See \`config.log' for more details." >&5
15928echo "$as_me: error: cannot compute sizeof (int), 77
15929See \`config.log' for more details." >&2;}
15930 { (exit 1); exit 1; }; }
15931fi
ac1cb8d3 15932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15933fi
15934fi
15935rm -f conftest.val
15936else
15937 ac_cv_sizeof_int=0
15938fi
15939fi
15940echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15941echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15942cat >>confdefs.h <<_ACEOF
15943#define SIZEOF_INT $ac_cv_sizeof_int
15944_ACEOF
15945
15946
15947echo "$as_me:$LINENO: checking for long" >&5
15948echo $ECHO_N "checking for long... $ECHO_C" >&6
15949if test "${ac_cv_type_long+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951else
15952 cat >conftest.$ac_ext <<_ACEOF
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958$ac_includes_default
15959int
15960main ()
15961{
15962if ((long *) 0)
15963 return 0;
15964if (sizeof (long))
15965 return 0;
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970rm -f conftest.$ac_objext
15971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15972 (eval $ac_compile) 2>conftest.er1
a848cd7e 15973 ac_status=$?
ac1cb8d3
VS
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
a848cd7e
SC
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
ac1cb8d3
VS
15979 { ac_try='test -z "$ac_c_werror_flag"
15980 || test ! -s conftest.err'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } &&
15986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_cv_type_long=yes
15993else
15994 echo "$as_me: failed program was:" >&5
15995sed 's/^/| /' conftest.$ac_ext >&5
15996
15997ac_cv_type_long=no
15998fi
ac1cb8d3 15999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16000fi
16001echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16002echo "${ECHO_T}$ac_cv_type_long" >&6
16003
16004echo "$as_me:$LINENO: checking size of long" >&5
16005echo $ECHO_N "checking size of long... $ECHO_C" >&6
16006if test "${ac_cv_sizeof_long+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008else
16009 if test "$ac_cv_type_long" = yes; then
16010 # The cast to unsigned long works around a bug in the HP C Compiler
16011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16013 # This bug is HP SR number 8606223364.
16014 if test "$cross_compiling" = yes; then
16015 # Depending upon the size, compute the lo and hi bounds.
16016cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022$ac_includes_default
16023int
16024main ()
16025{
16026static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16027test_array [0] = 0
16028
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033rm -f conftest.$ac_objext
16034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16035 (eval $ac_compile) 2>conftest.er1
a848cd7e 16036 ac_status=$?
ac1cb8d3
VS
16037 grep -v '^ *+' conftest.er1 >conftest.err
16038 rm -f conftest.er1
16039 cat conftest.err >&5
a848cd7e
SC
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
ac1cb8d3
VS
16042 { ac_try='test -z "$ac_c_werror_flag"
16043 || test ! -s conftest.err'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; } &&
16049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_lo=0 ac_mid=0
16056 while :; do
16057 cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063$ac_includes_default
16064int
16065main ()
16066{
16067static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16068test_array [0] = 0
16069
16070 ;
16071 return 0;
16072}
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16076 (eval $ac_compile) 2>conftest.er1
a848cd7e 16077 ac_status=$?
ac1cb8d3
VS
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
a848cd7e
SC
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
ac1cb8d3
VS
16083 { ac_try='test -z "$ac_c_werror_flag"
16084 || test ! -s conftest.err'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_hi=$ac_mid; break
16097else
16098 echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16102 if test $ac_lo -le $ac_mid; then
16103 ac_lo= ac_hi=
16104 break
16105 fi
16106 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16107fi
ac1cb8d3 16108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16109 done
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
16120$ac_includes_default
16121int
16122main ()
16123{
16124static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16125test_array [0] = 0
16126
16127 ;
16128 return 0;
16129}
16130_ACEOF
16131rm -f conftest.$ac_objext
16132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16133 (eval $ac_compile) 2>conftest.er1
a848cd7e 16134 ac_status=$?
ac1cb8d3
VS
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
a848cd7e
SC
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
ac1cb8d3
VS
16140 { ac_try='test -z "$ac_c_werror_flag"
16141 || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_hi=-1 ac_mid=-1
16154 while :; do
16155 cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161$ac_includes_default
16162int
16163main ()
16164{
16165static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16166test_array [0] = 0
16167
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16174 (eval $ac_compile) 2>conftest.er1
a848cd7e 16175 ac_status=$?
ac1cb8d3
VS
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
a848cd7e
SC
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
ac1cb8d3
VS
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_lo=$ac_mid; break
16195else
16196 echo "$as_me: failed program was:" >&5
16197sed 's/^/| /' conftest.$ac_ext >&5
16198
16199ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16200 if test $ac_mid -le $ac_hi; then
16201 ac_lo= ac_hi=
16202 break
16203 fi
16204 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16205fi
ac1cb8d3 16206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16207 done
16208else
16209 echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212ac_lo= ac_hi=
16213fi
ac1cb8d3 16214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16215fi
ac1cb8d3 16216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16217# Binary search between lo and hi bounds.
16218while test "x$ac_lo" != "x$ac_hi"; do
16219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16220 cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
16226$ac_includes_default
16227int
16228main ()
16229{
16230static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16231test_array [0] = 0
16232
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16239 (eval $ac_compile) 2>conftest.er1
a848cd7e 16240 ac_status=$?
ac1cb8d3
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
a848cd7e
SC
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
ac1cb8d3
VS
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_hi=$ac_mid
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264ac_lo=`expr '(' $ac_mid ')' + 1`
16265fi
ac1cb8d3 16266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16267done
16268case $ac_lo in
16269?*) ac_cv_sizeof_long=$ac_lo;;
16270'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16271See \`config.log' for more details." >&5
16272echo "$as_me: error: cannot compute sizeof (long), 77
16273See \`config.log' for more details." >&2;}
16274 { (exit 1); exit 1; }; } ;;
16275esac
16276else
16277 if test "$cross_compiling" = yes; then
16278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16279See \`config.log' for more details." >&5
16280echo "$as_me: error: cannot run test program while cross compiling
16281See \`config.log' for more details." >&2;}
16282 { (exit 1); exit 1; }; }
16283else
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291long longval () { return (long) (sizeof (long)); }
16292unsigned long ulongval () { return (long) (sizeof (long)); }
16293#include <stdio.h>
16294#include <stdlib.h>
16295int
16296main ()
16297{
16298
16299 FILE *f = fopen ("conftest.val", "w");
16300 if (! f)
16301 exit (1);
16302 if (((long) (sizeof (long))) < 0)
16303 {
16304 long i = longval ();
16305 if (i != ((long) (sizeof (long))))
16306 exit (1);
16307 fprintf (f, "%ld\n", i);
16308 }
16309 else
16310 {
16311 unsigned long i = ulongval ();
16312 if (i != ((long) (sizeof (long))))
16313 exit (1);
16314 fprintf (f, "%lu\n", i);
16315 }
16316 exit (ferror (f) || fclose (f) != 0);
16317
16318 ;
16319 return 0;
16320}
16321_ACEOF
16322rm -f conftest$ac_exeext
16323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_sizeof_long=`cat conftest.val`
16334else
16335 echo "$as_me: program exited with status $ac_status" >&5
16336echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339( exit $ac_status )
16340{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16341See \`config.log' for more details." >&5
16342echo "$as_me: error: cannot compute sizeof (long), 77
16343See \`config.log' for more details." >&2;}
16344 { (exit 1); exit 1; }; }
16345fi
ac1cb8d3 16346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16347fi
16348fi
16349rm -f conftest.val
16350else
16351 ac_cv_sizeof_long=0
16352fi
16353fi
16354echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16355echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16356cat >>confdefs.h <<_ACEOF
16357#define SIZEOF_LONG $ac_cv_sizeof_long
16358_ACEOF
16359
16360
16361echo "$as_me:$LINENO: checking for size_t" >&5
16362echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16363if test "${ac_cv_type_size_t+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365else
16366 cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372$ac_includes_default
16373int
16374main ()
16375{
16376if ((size_t *) 0)
16377 return 0;
16378if (sizeof (size_t))
16379 return 0;
16380 ;
16381 return 0;
16382}
16383_ACEOF
16384rm -f conftest.$ac_objext
16385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16386 (eval $ac_compile) 2>conftest.er1
a848cd7e 16387 ac_status=$?
ac1cb8d3
VS
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
a848cd7e
SC
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
ac1cb8d3
VS
16393 { ac_try='test -z "$ac_c_werror_flag"
16394 || test ! -s conftest.err'
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); } &&
ac1cb8d3
VS
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_lo=0 ac_mid=0
16470 while :; do
16471 cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477$ac_includes_default
16478int
16479main ()
16480{
16481static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16482test_array [0] = 0
16483
16484 ;
16485 return 0;
16486}
16487_ACEOF
16488rm -f conftest.$ac_objext
16489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16490 (eval $ac_compile) 2>conftest.er1
a848cd7e 16491 ac_status=$?
ac1cb8d3
VS
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
a848cd7e
SC
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
ac1cb8d3
VS
16497 { ac_try='test -z "$ac_c_werror_flag"
16498 || test ! -s conftest.err'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_hi=$ac_mid; break
16511else
16512 echo "$as_me: failed program was:" >&5
16513sed 's/^/| /' conftest.$ac_ext >&5
16514
16515ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16516 if test $ac_lo -le $ac_mid; then
16517 ac_lo= ac_hi=
16518 break
16519 fi
16520 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16521fi
ac1cb8d3 16522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16523 done
16524else
16525 echo "$as_me: failed program was:" >&5
16526sed 's/^/| /' conftest.$ac_ext >&5
16527
16528cat >conftest.$ac_ext <<_ACEOF
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
16534$ac_includes_default
16535int
16536main ()
16537{
16538static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16539test_array [0] = 0
16540
16541 ;
16542 return 0;
16543}
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16547 (eval $ac_compile) 2>conftest.er1
a848cd7e 16548 ac_status=$?
ac1cb8d3
VS
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
a848cd7e
SC
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
ac1cb8d3
VS
16554 { ac_try='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_hi=-1 ac_mid=-1
16568 while :; do
16569 cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16580test_array [0] = 0
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext
16587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16588 (eval $ac_compile) 2>conftest.er1
a848cd7e 16589 ac_status=$?
ac1cb8d3
VS
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
a848cd7e
SC
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
ac1cb8d3
VS
16595 { ac_try='test -z "$ac_c_werror_flag"
16596 || test ! -s conftest.err'
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_lo=$ac_mid; break
16609else
16610 echo "$as_me: failed program was:" >&5
16611sed 's/^/| /' conftest.$ac_ext >&5
16612
16613ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16614 if test $ac_mid -le $ac_hi; then
16615 ac_lo= ac_hi=
16616 break
16617 fi
16618 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16619fi
ac1cb8d3 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16621 done
16622else
16623 echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626ac_lo= ac_hi=
16627fi
ac1cb8d3 16628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16629fi
ac1cb8d3 16630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16631# Binary search between lo and hi bounds.
16632while test "x$ac_lo" != "x$ac_hi"; do
16633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16634 cat >conftest.$ac_ext <<_ACEOF
16635/* confdefs.h. */
16636_ACEOF
16637cat confdefs.h >>conftest.$ac_ext
16638cat >>conftest.$ac_ext <<_ACEOF
16639/* end confdefs.h. */
16640$ac_includes_default
16641int
16642main ()
16643{
16644static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16645test_array [0] = 0
16646
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16653 (eval $ac_compile) 2>conftest.er1
a848cd7e 16654 ac_status=$?
ac1cb8d3
VS
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
a848cd7e
SC
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
ac1cb8d3
VS
16660 { ac_try='test -z "$ac_c_werror_flag"
16661 || test ! -s conftest.err'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_hi=$ac_mid
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678ac_lo=`expr '(' $ac_mid ')' + 1`
16679fi
ac1cb8d3 16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16681done
16682case $ac_lo in
16683?*) ac_cv_sizeof_size_t=$ac_lo;;
16684'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16685See \`config.log' for more details." >&5
16686echo "$as_me: error: cannot compute sizeof (size_t), 77
16687See \`config.log' for more details." >&2;}
16688 { (exit 1); exit 1; }; } ;;
16689esac
16690else
16691 if test "$cross_compiling" = yes; then
16692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16693See \`config.log' for more details." >&5
16694echo "$as_me: error: cannot run test program while cross compiling
16695See \`config.log' for more details." >&2;}
16696 { (exit 1); exit 1; }; }
16697else
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704$ac_includes_default
16705long longval () { return (long) (sizeof (size_t)); }
16706unsigned long ulongval () { return (long) (sizeof (size_t)); }
16707#include <stdio.h>
16708#include <stdlib.h>
16709int
16710main ()
16711{
16712
16713 FILE *f = fopen ("conftest.val", "w");
16714 if (! f)
16715 exit (1);
16716 if (((long) (sizeof (size_t))) < 0)
16717 {
16718 long i = longval ();
16719 if (i != ((long) (sizeof (size_t))))
16720 exit (1);
16721 fprintf (f, "%ld\n", i);
16722 }
16723 else
16724 {
16725 unsigned long i = ulongval ();
16726 if (i != ((long) (sizeof (size_t))))
16727 exit (1);
16728 fprintf (f, "%lu\n", i);
16729 }
16730 exit (ferror (f) || fclose (f) != 0);
16731
16732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest$ac_exeext
16737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_sizeof_size_t=`cat conftest.val`
16748else
16749 echo "$as_me: program exited with status $ac_status" >&5
16750echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753( exit $ac_status )
16754{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16755See \`config.log' for more details." >&5
16756echo "$as_me: error: cannot compute sizeof (size_t), 77
16757See \`config.log' for more details." >&2;}
16758 { (exit 1); exit 1; }; }
16759fi
ac1cb8d3 16760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16761fi
16762fi
16763rm -f conftest.val
16764else
16765 ac_cv_sizeof_size_t=0
16766fi
16767fi
16768echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16769echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16770cat >>confdefs.h <<_ACEOF
16771#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16772_ACEOF
16773
16774
16775
16776case "${host}" in
16777 arm-*-linux* )
16778 echo "$as_me:$LINENO: checking for long long" >&5
16779echo $ECHO_N "checking for long long... $ECHO_C" >&6
16780if test "${ac_cv_type_long_long+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16782else
16783 cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789$ac_includes_default
16790int
16791main ()
16792{
16793if ((long long *) 0)
16794 return 0;
16795if (sizeof (long long))
16796 return 0;
16797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16803 (eval $ac_compile) 2>conftest.er1
a848cd7e 16804 ac_status=$?
ac1cb8d3
VS
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
a848cd7e
SC
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
ac1cb8d3
VS
16810 { ac_try='test -z "$ac_c_werror_flag"
16811 || test ! -s conftest.err'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; } &&
16817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 ac_cv_type_long_long=yes
16824else
16825 echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
16828ac_cv_type_long_long=no
16829fi
ac1cb8d3 16830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16831fi
16832echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16833echo "${ECHO_T}$ac_cv_type_long_long" >&6
16834
16835echo "$as_me:$LINENO: checking size of long long" >&5
16836echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16837if test "${ac_cv_sizeof_long_long+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 if test "$ac_cv_type_long_long" = yes; then
16841 # The cast to unsigned long works around a bug in the HP C Compiler
16842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16844 # This bug is HP SR number 8606223364.
16845 if test "$cross_compiling" = yes; then
16846 # Depending upon the size, compute the lo and hi bounds.
16847cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853$ac_includes_default
16854int
16855main ()
16856{
16857static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16858test_array [0] = 0
16859
16860 ;
16861 return 0;
16862}
16863_ACEOF
16864rm -f conftest.$ac_objext
16865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16866 (eval $ac_compile) 2>conftest.er1
a848cd7e 16867 ac_status=$?
ac1cb8d3
VS
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
a848cd7e
SC
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
ac1cb8d3
VS
16873 { ac_try='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_lo=0 ac_mid=0
16887 while :; do
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16907 (eval $ac_compile) 2>conftest.er1
a848cd7e 16908 ac_status=$?
ac1cb8d3
VS
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
a848cd7e
SC
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
ac1cb8d3
VS
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_hi=$ac_mid; break
16928else
16929 echo "$as_me: failed program was:" >&5
16930sed 's/^/| /' conftest.$ac_ext >&5
16931
16932ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16933 if test $ac_lo -le $ac_mid; then
16934 ac_lo= ac_hi=
16935 break
16936 fi
16937 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16938fi
ac1cb8d3 16939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16940 done
16941else
16942 echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
16951$ac_includes_default
16952int
16953main ()
16954{
16955static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16956test_array [0] = 0
16957
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16964 (eval $ac_compile) 2>conftest.er1
a848cd7e 16965 ac_status=$?
ac1cb8d3
VS
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
a848cd7e
SC
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
ac1cb8d3
VS
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_hi=-1 ac_mid=-1
16985 while :; do
16986 cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992$ac_includes_default
16993int
16994main ()
16995{
16996static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16997test_array [0] = 0
16998
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext
17004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17005 (eval $ac_compile) 2>conftest.er1
a848cd7e 17006 ac_status=$?
ac1cb8d3
VS
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
a848cd7e
SC
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
ac1cb8d3
VS
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_lo=$ac_mid; break
17026else
17027 echo "$as_me: failed program was:" >&5
17028sed 's/^/| /' conftest.$ac_ext >&5
17029
17030ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17031 if test $ac_mid -le $ac_hi; then
17032 ac_lo= ac_hi=
17033 break
17034 fi
17035 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17036fi
ac1cb8d3 17037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17038 done
17039else
17040 echo "$as_me: failed program was:" >&5
17041sed 's/^/| /' conftest.$ac_ext >&5
17042
17043ac_lo= ac_hi=
17044fi
ac1cb8d3 17045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17046fi
ac1cb8d3 17047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17048# Binary search between lo and hi bounds.
17049while test "x$ac_lo" != "x$ac_hi"; do
17050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17051 cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057$ac_includes_default
17058int
17059main ()
17060{
17061static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17062test_array [0] = 0
17063
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17070 (eval $ac_compile) 2>conftest.er1
a848cd7e 17071 ac_status=$?
ac1cb8d3
VS
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
a848cd7e
SC
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
ac1cb8d3
VS
17077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_hi=$ac_mid
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095ac_lo=`expr '(' $ac_mid ')' + 1`
17096fi
ac1cb8d3 17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17098done
17099case $ac_lo in
17100?*) ac_cv_sizeof_long_long=$ac_lo;;
17101'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17102See \`config.log' for more details." >&5
17103echo "$as_me: error: cannot compute sizeof (long long), 77
17104See \`config.log' for more details." >&2;}
17105 { (exit 1); exit 1; }; } ;;
17106esac
17107else
17108 if test "$cross_compiling" = yes; then
17109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17110See \`config.log' for more details." >&5
17111echo "$as_me: error: cannot run test program while cross compiling
17112See \`config.log' for more details." >&2;}
17113 { (exit 1); exit 1; }; }
17114else
17115 cat >conftest.$ac_ext <<_ACEOF
17116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
17121$ac_includes_default
17122long longval () { return (long) (sizeof (long long)); }
17123unsigned long ulongval () { return (long) (sizeof (long long)); }
17124#include <stdio.h>
17125#include <stdlib.h>
17126int
17127main ()
17128{
17129
17130 FILE *f = fopen ("conftest.val", "w");
17131 if (! f)
17132 exit (1);
17133 if (((long) (sizeof (long long))) < 0)
17134 {
17135 long i = longval ();
17136 if (i != ((long) (sizeof (long long))))
17137 exit (1);
17138 fprintf (f, "%ld\n", i);
17139 }
17140 else
17141 {
17142 unsigned long i = ulongval ();
17143 if (i != ((long) (sizeof (long long))))
17144 exit (1);
17145 fprintf (f, "%lu\n", i);
17146 }
17147 exit (ferror (f) || fclose (f) != 0);
17148
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest$ac_exeext
17154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_sizeof_long_long=`cat conftest.val`
17165else
17166 echo "$as_me: program exited with status $ac_status" >&5
17167echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170( exit $ac_status )
17171{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17172See \`config.log' for more details." >&5
17173echo "$as_me: error: cannot compute sizeof (long long), 77
17174See \`config.log' for more details." >&2;}
17175 { (exit 1); exit 1; }; }
17176fi
ac1cb8d3 17177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17178fi
17179fi
17180rm -f conftest.val
17181else
17182 ac_cv_sizeof_long_long=0
17183fi
17184fi
17185echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17186echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17187cat >>confdefs.h <<_ACEOF
17188#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17189_ACEOF
17190
17191
17192 ;;
17193 *-hp-hpux* )
17194 echo "$as_me:$LINENO: checking for long long" >&5
17195echo $ECHO_N "checking for long long... $ECHO_C" >&6
17196if test "${ac_cv_type_long_long+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198else
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206int
17207main ()
17208{
17209if ((long long *) 0)
17210 return 0;
17211if (sizeof (long long))
17212 return 0;
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217rm -f conftest.$ac_objext
17218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17219 (eval $ac_compile) 2>conftest.er1
a848cd7e 17220 ac_status=$?
ac1cb8d3
VS
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
a848cd7e
SC
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
ac1cb8d3
VS
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_type_long_long=yes
17240else
17241 echo "$as_me: failed program was:" >&5
17242sed 's/^/| /' conftest.$ac_ext >&5
17243
17244ac_cv_type_long_long=no
17245fi
ac1cb8d3 17246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17247fi
17248echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17249echo "${ECHO_T}$ac_cv_type_long_long" >&6
17250
17251echo "$as_me:$LINENO: checking size of long long" >&5
17252echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17253if test "${ac_cv_sizeof_long_long+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255else
17256 if test "$ac_cv_type_long_long" = yes; then
17257 # The cast to unsigned long works around a bug in the HP C Compiler
17258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17260 # This bug is HP SR number 8606223364.
17261 if test "$cross_compiling" = yes; then
17262 # Depending upon the size, compute the lo and hi bounds.
17263cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269$ac_includes_default
17270int
17271main ()
17272{
17273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17274test_array [0] = 0
17275
17276 ;
17277 return 0;
17278}
17279_ACEOF
17280rm -f conftest.$ac_objext
17281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17282 (eval $ac_compile) 2>conftest.er1
a848cd7e 17283 ac_status=$?
ac1cb8d3
VS
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
a848cd7e
SC
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
ac1cb8d3
VS
17289 { ac_try='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_lo=0 ac_mid=0
17303 while :; do
17304 cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h. */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h. */
17310$ac_includes_default
17311int
17312main ()
17313{
17314static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17315test_array [0] = 0
17316
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321rm -f conftest.$ac_objext
17322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17323 (eval $ac_compile) 2>conftest.er1
a848cd7e 17324 ac_status=$?
ac1cb8d3
VS
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
a848cd7e
SC
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
ac1cb8d3
VS
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_hi=$ac_mid; break
17344else
17345 echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17349 if test $ac_lo -le $ac_mid; then
17350 ac_lo= ac_hi=
17351 break
17352 fi
17353 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17354fi
ac1cb8d3 17355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17356 done
17357else
17358 echo "$as_me: failed program was:" >&5
17359sed 's/^/| /' conftest.$ac_ext >&5
17360
17361cat >conftest.$ac_ext <<_ACEOF
17362/* confdefs.h. */
17363_ACEOF
17364cat confdefs.h >>conftest.$ac_ext
17365cat >>conftest.$ac_ext <<_ACEOF
17366/* end confdefs.h. */
17367$ac_includes_default
17368int
17369main ()
17370{
17371static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17372test_array [0] = 0
17373
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext
17379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17380 (eval $ac_compile) 2>conftest.er1
a848cd7e 17381 ac_status=$?
ac1cb8d3
VS
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
a848cd7e
SC
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
ac1cb8d3
VS
17387 { ac_try='test -z "$ac_c_werror_flag"
17388 || test ! -s conftest.err'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_hi=-1 ac_mid=-1
17401 while :; do
17402 cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
17408$ac_includes_default
17409int
17410main ()
17411{
17412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17413test_array [0] = 0
17414
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext
17420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17421 (eval $ac_compile) 2>conftest.er1
a848cd7e 17422 ac_status=$?
ac1cb8d3
VS
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
a848cd7e
SC
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
ac1cb8d3
VS
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_lo=$ac_mid; break
17442else
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17447 if test $ac_mid -le $ac_hi; then
17448 ac_lo= ac_hi=
17449 break
17450 fi
17451 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17452fi
ac1cb8d3 17453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17454 done
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459ac_lo= ac_hi=
17460fi
ac1cb8d3 17461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17462fi
ac1cb8d3 17463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17464# Binary search between lo and hi bounds.
17465while test "x$ac_lo" != "x$ac_hi"; do
17466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473$ac_includes_default
17474int
17475main ()
17476{
17477static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17478test_array [0] = 0
17479
17480 ;
17481 return 0;
17482}
17483_ACEOF
17484rm -f conftest.$ac_objext
17485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17486 (eval $ac_compile) 2>conftest.er1
a848cd7e 17487 ac_status=$?
ac1cb8d3
VS
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
a848cd7e
SC
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
ac1cb8d3
VS
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_hi=$ac_mid
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511ac_lo=`expr '(' $ac_mid ')' + 1`
17512fi
ac1cb8d3 17513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17514done
17515case $ac_lo in
17516?*) ac_cv_sizeof_long_long=$ac_lo;;
17517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17518See \`config.log' for more details." >&5
17519echo "$as_me: error: cannot compute sizeof (long long), 77
17520See \`config.log' for more details." >&2;}
17521 { (exit 1); exit 1; }; } ;;
17522esac
17523else
17524 if test "$cross_compiling" = yes; then
17525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17526See \`config.log' for more details." >&5
17527echo "$as_me: error: cannot run test program while cross compiling
17528See \`config.log' for more details." >&2;}
17529 { (exit 1); exit 1; }; }
17530else
17531 cat >conftest.$ac_ext <<_ACEOF
17532/* confdefs.h. */
17533_ACEOF
17534cat confdefs.h >>conftest.$ac_ext
17535cat >>conftest.$ac_ext <<_ACEOF
17536/* end confdefs.h. */
17537$ac_includes_default
17538long longval () { return (long) (sizeof (long long)); }
17539unsigned long ulongval () { return (long) (sizeof (long long)); }
17540#include <stdio.h>
17541#include <stdlib.h>
17542int
17543main ()
17544{
17545
17546 FILE *f = fopen ("conftest.val", "w");
17547 if (! f)
17548 exit (1);
17549 if (((long) (sizeof (long long))) < 0)
17550 {
17551 long i = longval ();
17552 if (i != ((long) (sizeof (long long))))
17553 exit (1);
17554 fprintf (f, "%ld\n", i);
17555 }
17556 else
17557 {
17558 unsigned long i = ulongval ();
17559 if (i != ((long) (sizeof (long long))))
17560 exit (1);
17561 fprintf (f, "%lu\n", i);
17562 }
17563 exit (ferror (f) || fclose (f) != 0);
17564
17565 ;
17566 return 0;
17567}
17568_ACEOF
17569rm -f conftest$ac_exeext
17570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_sizeof_long_long=`cat conftest.val`
17581else
17582 echo "$as_me: program exited with status $ac_status" >&5
17583echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586( exit $ac_status )
17587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17588See \`config.log' for more details." >&5
17589echo "$as_me: error: cannot compute sizeof (long long), 77
17590See \`config.log' for more details." >&2;}
17591 { (exit 1); exit 1; }; }
17592fi
ac1cb8d3 17593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17594fi
17595fi
17596rm -f conftest.val
17597else
17598 ac_cv_sizeof_long_long=0
17599fi
17600fi
17601echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17602echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17603cat >>confdefs.h <<_ACEOF
17604#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17605_ACEOF
17606
17607
17608 if test "$ac_cv_sizeof_long_long" != "0"; then
17609 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17610 fi
17611 ;;
17612 * )
17613 echo "$as_me:$LINENO: checking for long long" >&5
17614echo $ECHO_N "checking for long long... $ECHO_C" >&6
17615if test "${ac_cv_type_long_long+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617else
17618 cat >conftest.$ac_ext <<_ACEOF
17619/* confdefs.h. */
17620_ACEOF
17621cat confdefs.h >>conftest.$ac_ext
17622cat >>conftest.$ac_ext <<_ACEOF
17623/* end confdefs.h. */
17624$ac_includes_default
17625int
17626main ()
17627{
17628if ((long long *) 0)
17629 return 0;
17630if (sizeof (long long))
17631 return 0;
17632 ;
17633 return 0;
17634}
17635_ACEOF
17636rm -f conftest.$ac_objext
17637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17638 (eval $ac_compile) 2>conftest.er1
a848cd7e 17639 ac_status=$?
ac1cb8d3
VS
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
a848cd7e
SC
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
ac1cb8d3
VS
17645 { ac_try='test -z "$ac_c_werror_flag"
17646 || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_type_long_long=yes
17659else
17660 echo "$as_me: failed program was:" >&5
17661sed 's/^/| /' conftest.$ac_ext >&5
17662
17663ac_cv_type_long_long=no
17664fi
ac1cb8d3 17665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17666fi
17667echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17668echo "${ECHO_T}$ac_cv_type_long_long" >&6
17669
17670echo "$as_me:$LINENO: checking size of long long" >&5
17671echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17672if test "${ac_cv_sizeof_long_long+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674else
17675 if test "$ac_cv_type_long_long" = yes; then
17676 # The cast to unsigned long works around a bug in the HP C Compiler
17677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17679 # This bug is HP SR number 8606223364.
17680 if test "$cross_compiling" = yes; then
17681 # Depending upon the size, compute the lo and hi bounds.
17682cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689int
17690main ()
17691{
17692static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17693test_array [0] = 0
17694
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17701 (eval $ac_compile) 2>conftest.er1
a848cd7e 17702 ac_status=$?
ac1cb8d3
VS
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
a848cd7e
SC
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
ac1cb8d3
VS
17708 { ac_try='test -z "$ac_c_werror_flag"
17709 || test ! -s conftest.err'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_lo=0 ac_mid=0
17722 while :; do
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17734test_array [0] = 0
17735
17736 ;
17737 return 0;
17738}
17739_ACEOF
17740rm -f conftest.$ac_objext
17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17742 (eval $ac_compile) 2>conftest.er1
a848cd7e 17743 ac_status=$?
ac1cb8d3
VS
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
a848cd7e
SC
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
ac1cb8d3
VS
17749 { ac_try='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_hi=$ac_mid; break
17763else
17764 echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17768 if test $ac_lo -le $ac_mid; then
17769 ac_lo= ac_hi=
17770 break
17771 fi
17772 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17773fi
ac1cb8d3 17774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17775 done
17776else
17777 echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h. */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h. */
17786$ac_includes_default
17787int
17788main ()
17789{
17790static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17791test_array [0] = 0
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext
17798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17799 (eval $ac_compile) 2>conftest.er1
a848cd7e 17800 ac_status=$?
ac1cb8d3
VS
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
a848cd7e
SC
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
ac1cb8d3
VS
17806 { ac_try='test -z "$ac_c_werror_flag"
17807 || test ! -s conftest.err'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_hi=-1 ac_mid=-1
17820 while :; do
17821 cat >conftest.$ac_ext <<_ACEOF
17822/* confdefs.h. */
17823_ACEOF
17824cat confdefs.h >>conftest.$ac_ext
17825cat >>conftest.$ac_ext <<_ACEOF
17826/* end confdefs.h. */
17827$ac_includes_default
17828int
17829main ()
17830{
17831static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17832test_array [0] = 0
17833
17834 ;
17835 return 0;
17836}
17837_ACEOF
17838rm -f conftest.$ac_objext
17839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17840 (eval $ac_compile) 2>conftest.er1
a848cd7e 17841 ac_status=$?
ac1cb8d3
VS
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
a848cd7e
SC
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
ac1cb8d3
VS
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_lo=$ac_mid; break
17861else
17862 echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17866 if test $ac_mid -le $ac_hi; then
17867 ac_lo= ac_hi=
17868 break
17869 fi
17870 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17871fi
ac1cb8d3 17872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17873 done
17874else
17875 echo "$as_me: failed program was:" >&5
17876sed 's/^/| /' conftest.$ac_ext >&5
17877
17878ac_lo= ac_hi=
17879fi
ac1cb8d3 17880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17883# Binary search between lo and hi bounds.
17884while test "x$ac_lo" != "x$ac_hi"; do
17885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17886 cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892$ac_includes_default
17893int
17894main ()
17895{
17896static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17897test_array [0] = 0
17898
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext
17904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17905 (eval $ac_compile) 2>conftest.er1
a848cd7e 17906 ac_status=$?
ac1cb8d3
VS
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
a848cd7e
SC
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
ac1cb8d3
VS
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_hi=$ac_mid
17926else
17927 echo "$as_me: failed program was:" >&5
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930ac_lo=`expr '(' $ac_mid ')' + 1`
17931fi
ac1cb8d3 17932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17933done
17934case $ac_lo in
17935?*) ac_cv_sizeof_long_long=$ac_lo;;
17936'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17937See \`config.log' for more details." >&5
17938echo "$as_me: error: cannot compute sizeof (long long), 77
17939See \`config.log' for more details." >&2;}
17940 { (exit 1); exit 1; }; } ;;
17941esac
17942else
17943 if test "$cross_compiling" = yes; then
17944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17945See \`config.log' for more details." >&5
17946echo "$as_me: error: cannot run test program while cross compiling
17947See \`config.log' for more details." >&2;}
17948 { (exit 1); exit 1; }; }
17949else
17950 cat >conftest.$ac_ext <<_ACEOF
17951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
17956$ac_includes_default
17957long longval () { return (long) (sizeof (long long)); }
17958unsigned long ulongval () { return (long) (sizeof (long long)); }
17959#include <stdio.h>
17960#include <stdlib.h>
17961int
17962main ()
17963{
17964
17965 FILE *f = fopen ("conftest.val", "w");
17966 if (! f)
17967 exit (1);
17968 if (((long) (sizeof (long long))) < 0)
17969 {
17970 long i = longval ();
17971 if (i != ((long) (sizeof (long long))))
17972 exit (1);
17973 fprintf (f, "%ld\n", i);
17974 }
17975 else
17976 {
17977 unsigned long i = ulongval ();
17978 if (i != ((long) (sizeof (long long))))
17979 exit (1);
17980 fprintf (f, "%lu\n", i);
17981 }
17982 exit (ferror (f) || fclose (f) != 0);
17983
17984 ;
17985 return 0;
17986}
17987_ACEOF
17988rm -f conftest$ac_exeext
17989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17990 (eval $ac_link) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 ac_cv_sizeof_long_long=`cat conftest.val`
18000else
18001 echo "$as_me: program exited with status $ac_status" >&5
18002echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005( exit $ac_status )
18006{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18007See \`config.log' for more details." >&5
18008echo "$as_me: error: cannot compute sizeof (long long), 77
18009See \`config.log' for more details." >&2;}
18010 { (exit 1); exit 1; }; }
18011fi
ac1cb8d3 18012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013fi
18014fi
18015rm -f conftest.val
18016else
18017 ac_cv_sizeof_long_long=0
18018fi
18019fi
18020echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18021echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18022cat >>confdefs.h <<_ACEOF
18023#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18024_ACEOF
18025
18026
18027esac
18028
18029echo "$as_me:$LINENO: checking size of wchar_t" >&5
18030echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18031if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034
18035 if test "$cross_compiling" = yes; then
18036
18037 case "${host}" in
18038 *-pc-msdosdjgpp )
18039 wx_cv_sizeof_wchar_t=0
18040 ;;
18041 * )
18042 wx_cv_sizeof_wchar_t=4
18043 ;;
18044 esac
18045
18046
18047else
18048 cat >conftest.$ac_ext <<_ACEOF
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054
18055 /* DJGPP only has fake wchar_t: */
18056 #ifdef __DJGPP__
18057 # error "fake wchar_t"
18058 #endif
18059 #ifdef HAVE_WCHAR_H
18060 # ifdef __CYGWIN__
18061 # include <stddef.h>
18062 # endif
18063 # include <wchar.h>
18064 #endif
18065 #ifdef HAVE_STDLIB_H
18066 # include <stdlib.h>
18067 #endif
18068 #include <stdio.h>
18069 int main()
18070 {
18071 FILE *f=fopen("conftestval", "w");
18072 if (!f) exit(1);
18073 fprintf(f, "%i", sizeof(wchar_t));
18074 exit(0);
18075 }
18076
18077_ACEOF
18078rm -f conftest$ac_exeext
18079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 wx_cv_sizeof_wchar_t=`cat conftestval`
18090else
18091 echo "$as_me: program exited with status $ac_status" >&5
18092echo "$as_me: failed program was:" >&5
18093sed 's/^/| /' conftest.$ac_ext >&5
18094
18095( exit $ac_status )
18096wx_cv_sizeof_wchar_t=0
18097fi
ac1cb8d3 18098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18099fi
18100
18101fi
18102echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18103echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18104
18105cat >>confdefs.h <<_ACEOF
18106#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18107_ACEOF
18108
18109
18110# Check whether --enable-largefile or --disable-largefile was given.
18111if test "${enable_largefile+set}" = set; then
18112 enableval="$enable_largefile"
18113
18114fi;
18115if test "$enable_largefile" != no; then
18116 wx_largefile=no
18117
18118 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18119echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18120if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122else
18123
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130#define _FILE_OFFSET_BITS 64
18131 #include <sys/types.h>
18132int
18133main ()
18134{
18135typedef struct {
18136 unsigned int field: sizeof(off_t) == 8;
18137} wxlf;
18138
18139 ;
18140 return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18145 (eval $ac_compile) 2>conftest.er1
a848cd7e 18146 ac_status=$?
ac1cb8d3
VS
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
a848cd7e
SC
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
ac1cb8d3
VS
18152 { ac_try='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_sys_file_offset_bits=64
18166else
18167 echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170ac_cv_sys_file_offset_bits=no
18171fi
ac1cb8d3 18172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18173
18174
18175fi
18176echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18177echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18178
18179 if test "$ac_cv_sys_file_offset_bits" != no; then
18180 wx_largefile=yes
18181 cat >>confdefs.h <<_ACEOF
18182#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18183_ACEOF
18184
18185 fi
18186
18187 if test "x$wx_largefile" != "xyes"; then
18188
18189 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18190echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18191if test "${ac_cv_sys_large_files+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193else
18194
18195 cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
18201#define _LARGE_FILES 1
18202 #include <sys/types.h>
18203int
18204main ()
18205{
18206typedef struct {
18207 unsigned int field: sizeof(off_t) == 8;
18208} wxlf;
18209
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext
18215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18216 (eval $ac_compile) 2>conftest.er1
a848cd7e 18217 ac_status=$?
ac1cb8d3
VS
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
a848cd7e
SC
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
ac1cb8d3
VS
18223 { ac_try='test -z "$ac_c_werror_flag"
18224 || test ! -s conftest.err'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_sys_large_files=1
18237else
18238 echo "$as_me: failed program was:" >&5
18239sed 's/^/| /' conftest.$ac_ext >&5
18240
18241ac_cv_sys_large_files=no
18242fi
ac1cb8d3 18243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18244
18245
18246fi
18247echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18248echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18249
18250 if test "$ac_cv_sys_large_files" != no; then
18251 wx_largefile=yes
18252 cat >>confdefs.h <<_ACEOF
18253#define _LARGE_FILES $ac_cv_sys_large_files
18254_ACEOF
18255
18256 fi
18257
18258 fi
18259
18260 echo "$as_me:$LINENO: checking if large file support is available" >&5
18261echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18262 if test "x$wx_largefile" = "xyes"; then
18263 cat >>confdefs.h <<\_ACEOF
18264#define HAVE_LARGEFILE_SUPPORT 1
18265_ACEOF
18266
18267 fi
18268 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18269echo "${ECHO_T}$wx_largefile" >&6
18270fi
18271
18272
18273if test "x$wx_largefile" = "xyes"; then
18274 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18275 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18276 else
18277 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18278 fi
18279 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18280fi
18281
18282echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18283echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18284if test "${ac_cv_c_bigendian+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287 ac_cv_c_bigendian=unknown
18288# See if sys/param.h defines the BYTE_ORDER macro.
18289cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295#include <sys/types.h>
18296#include <sys/param.h>
18297int
18298main ()
18299{
18300
18301#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18302 bogus endian macros
18303#endif
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext
18309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18310 (eval $ac_compile) 2>conftest.er1
a848cd7e 18311 ac_status=$?
ac1cb8d3
VS
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
a848cd7e
SC
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
ac1cb8d3
VS
18317 { ac_try='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 # It does; now see whether it defined to BIG_ENDIAN or not.
18331cat >conftest.$ac_ext <<_ACEOF
18332/* confdefs.h. */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h. */
18337#include <sys/types.h>
18338#include <sys/param.h>
18339int
18340main ()
18341{
18342
18343#if BYTE_ORDER != BIG_ENDIAN
18344 not big endian
18345#endif
18346 ;
18347 return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext
18351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18352 (eval $ac_compile) 2>conftest.er1
a848cd7e 18353 ac_status=$?
ac1cb8d3
VS
18354 grep -v '^ *+' conftest.er1 >conftest.err
18355 rm -f conftest.er1
18356 cat conftest.err >&5
a848cd7e
SC
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
ac1cb8d3
VS
18359 { ac_try='test -z "$ac_c_werror_flag"
18360 || test ! -s conftest.err'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 ac_cv_c_bigendian=yes
18373else
18374 echo "$as_me: failed program was:" >&5
18375sed 's/^/| /' conftest.$ac_ext >&5
18376
18377ac_cv_c_bigendian=no
18378fi
ac1cb8d3 18379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18380else
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384fi
ac1cb8d3 18385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18386if test $ac_cv_c_bigendian = unknown; then
18387if test "$cross_compiling" = yes; then
18388 ac_cv_c_bigendian=unknown
18389else
18390 cat >conftest.$ac_ext <<_ACEOF
18391/* confdefs.h. */
18392_ACEOF
18393cat confdefs.h >>conftest.$ac_ext
18394cat >>conftest.$ac_ext <<_ACEOF
18395/* end confdefs.h. */
18396main () {
18397 /* Are we little or big endian? From Harbison&Steele. */
18398 union
18399 {
18400 long l;
18401 char c[sizeof (long)];
18402 } u;
18403 u.l = 1;
18404 exit (u.c[sizeof (long) - 1] == 1);
18405}
18406_ACEOF
18407rm -f conftest$ac_exeext
18408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18409 (eval $ac_link) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_c_bigendian=no
18419else
18420 echo "$as_me: program exited with status $ac_status" >&5
18421echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424( exit $ac_status )
18425ac_cv_c_bigendian=yes
18426fi
ac1cb8d3 18427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18428fi
18429fi
18430fi
18431echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18432echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18433if test $ac_cv_c_bigendian = unknown; then
18434 { 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
18435echo "$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;}
18436fi
18437if test $ac_cv_c_bigendian = yes; then
18438 cat >>confdefs.h <<\_ACEOF
18439#define WORDS_BIGENDIAN 1
18440_ACEOF
18441
18442fi
18443
18444
18445ac_ext=cc
18446ac_cpp='$CXXCPP $CPPFLAGS'
18447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18450echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18451echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18452if test -z "$CXXCPP"; then
18453 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18455else
18456 # Double quotes because CXXCPP needs to be expanded
18457 for CXXCPP in "$CXX -E" "/lib/cpp"
18458 do
18459 ac_preproc_ok=false
18460for ac_cxx_preproc_warn_flag in '' yes
18461do
18462 # Use a header file that comes with gcc, so configuring glibc
18463 # with a fresh cross-compiler works.
18464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18465 # <limits.h> exists even on freestanding compilers.
18466 # On the NeXT, cc -E runs the code through the compiler's parser,
18467 # not just through cpp. "Syntax error" is here to catch this case.
18468 cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
18474#ifdef __STDC__
18475# include <limits.h>
18476#else
18477# include <assert.h>
18478#endif
ac1cb8d3 18479 Syntax error
a848cd7e
SC
18480_ACEOF
18481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } >/dev/null; then
18489 if test -s conftest.err; then
18490 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18491 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18492 else
18493 ac_cpp_err=
18494 fi
18495else
18496 ac_cpp_err=yes
18497fi
18498if test -z "$ac_cpp_err"; then
18499 :
18500else
18501 echo "$as_me: failed program was:" >&5
18502sed 's/^/| /' conftest.$ac_ext >&5
18503
18504 # Broken: fails on valid input.
18505continue
18506fi
18507rm -f conftest.err conftest.$ac_ext
18508
18509 # OK, works on sane cases. Now check whether non-existent headers
18510 # can be detected and how.
18511 cat >conftest.$ac_ext <<_ACEOF
18512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
18517#include <ac_nonexistent.h>
18518_ACEOF
18519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } >/dev/null; then
18527 if test -s conftest.err; then
18528 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18529 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18530 else
18531 ac_cpp_err=
18532 fi
18533else
18534 ac_cpp_err=yes
18535fi
18536if test -z "$ac_cpp_err"; then
18537 # Broken: success on invalid input.
18538continue
18539else
18540 echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 # Passes both tests.
18544ac_preproc_ok=:
18545break
18546fi
18547rm -f conftest.err conftest.$ac_ext
18548
18549done
18550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18551rm -f conftest.err conftest.$ac_ext
18552if $ac_preproc_ok; then
18553 break
18554fi
18555
18556 done
18557 ac_cv_prog_CXXCPP=$CXXCPP
18558
18559fi
18560 CXXCPP=$ac_cv_prog_CXXCPP
18561else
18562 ac_cv_prog_CXXCPP=$CXXCPP
18563fi
18564echo "$as_me:$LINENO: result: $CXXCPP" >&5
18565echo "${ECHO_T}$CXXCPP" >&6
18566ac_preproc_ok=false
18567for ac_cxx_preproc_warn_flag in '' yes
18568do
18569 # Use a header file that comes with gcc, so configuring glibc
18570 # with a fresh cross-compiler works.
18571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18572 # <limits.h> exists even on freestanding compilers.
18573 # On the NeXT, cc -E runs the code through the compiler's parser,
18574 # not just through cpp. "Syntax error" is here to catch this case.
18575 cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581#ifdef __STDC__
18582# include <limits.h>
18583#else
18584# include <assert.h>
18585#endif
ac1cb8d3 18586 Syntax error
a848cd7e
SC
18587_ACEOF
18588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } >/dev/null; then
18596 if test -s conftest.err; then
18597 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18598 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18599 else
18600 ac_cpp_err=
18601 fi
18602else
18603 ac_cpp_err=yes
18604fi
18605if test -z "$ac_cpp_err"; then
18606 :
18607else
18608 echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 # Broken: fails on valid input.
18612continue
18613fi
18614rm -f conftest.err conftest.$ac_ext
18615
18616 # OK, works on sane cases. Now check whether non-existent headers
18617 # can be detected and how.
18618 cat >conftest.$ac_ext <<_ACEOF
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
18624#include <ac_nonexistent.h>
18625_ACEOF
18626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } >/dev/null; then
18634 if test -s conftest.err; then
18635 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18636 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18637 else
18638 ac_cpp_err=
18639 fi
18640else
18641 ac_cpp_err=yes
18642fi
18643if test -z "$ac_cpp_err"; then
18644 # Broken: success on invalid input.
18645continue
18646else
18647 echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 # Passes both tests.
18651ac_preproc_ok=:
18652break
18653fi
18654rm -f conftest.err conftest.$ac_ext
18655
18656done
18657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18658rm -f conftest.err conftest.$ac_ext
18659if $ac_preproc_ok; then
18660 :
18661else
18662 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18663See \`config.log' for more details." >&5
18664echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18665See \`config.log' for more details." >&2;}
18666 { (exit 1); exit 1; }; }
18667fi
18668
18669ac_ext=cc
18670ac_cpp='$CXXCPP $CPPFLAGS'
18671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18674
18675
18676
18677
18678
18679 ac_ext=cc
18680ac_cpp='$CXXCPP $CPPFLAGS'
18681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18684
18685
18686
18687for ac_header in iostream
18688do
18689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18690if eval "test \"\${$as_ac_Header+set}\" = set"; then
18691 echo "$as_me:$LINENO: checking for $ac_header" >&5
18692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18693if eval "test \"\${$as_ac_Header+set}\" = set"; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695fi
18696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18698else
18699 # Is the header compilable?
18700echo "$as_me:$LINENO: checking $ac_header usability" >&5
18701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18702cat >conftest.$ac_ext <<_ACEOF
18703/* confdefs.h. */
18704_ACEOF
18705cat confdefs.h >>conftest.$ac_ext
18706cat >>conftest.$ac_ext <<_ACEOF
18707/* end confdefs.h. */
18708$ac_includes_default
18709#include <$ac_header>
18710_ACEOF
18711rm -f conftest.$ac_objext
18712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18713 (eval $ac_compile) 2>conftest.er1
a848cd7e 18714 ac_status=$?
ac1cb8d3
VS
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
a848cd7e
SC
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
ac1cb8d3
VS
18720 { ac_try='test -z "$ac_cxx_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_header_compiler=yes
18734else
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738ac_header_compiler=no
18739fi
ac1cb8d3 18740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18742echo "${ECHO_T}$ac_header_compiler" >&6
18743
18744# Is the header present?
18745echo "$as_me:$LINENO: checking $ac_header presence" >&5
18746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18747cat >conftest.$ac_ext <<_ACEOF
18748/* confdefs.h. */
18749_ACEOF
18750cat confdefs.h >>conftest.$ac_ext
18751cat >>conftest.$ac_ext <<_ACEOF
18752/* end confdefs.h. */
18753#include <$ac_header>
18754_ACEOF
18755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev/null; then
18763 if test -s conftest.err; then
18764 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18766 else
18767 ac_cpp_err=
18768 fi
18769else
18770 ac_cpp_err=yes
18771fi
18772if test -z "$ac_cpp_err"; then
18773 ac_header_preproc=yes
18774else
18775 echo "$as_me: failed program was:" >&5
18776sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_header_preproc=no
18779fi
18780rm -f conftest.err conftest.$ac_ext
18781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18782echo "${ECHO_T}$ac_header_preproc" >&6
18783
18784# So? What about this header?
ac1cb8d3
VS
18785case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18786 yes:no: )
a848cd7e
SC
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18791 ac_header_preproc=yes
a848cd7e 18792 ;;
ac1cb8d3 18793 no:yes:* )
a848cd7e
SC
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18806 (
18807 cat <<\_ASBOX
ac1cb8d3
VS
18808## ----------------------------------------- ##
18809## Report this to wx-dev@lists.wxwidgets.org ##
18810## ----------------------------------------- ##
a848cd7e
SC
18811_ASBOX
18812 ) |
18813 sed "s/^/$as_me: WARNING: /" >&2
18814 ;;
18815esac
18816echo "$as_me:$LINENO: checking for $ac_header" >&5
18817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18818if eval "test \"\${$as_ac_Header+set}\" = set"; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820else
ac1cb8d3 18821 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18822fi
18823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18825
18826fi
18827if test `eval echo '${'$as_ac_Header'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18830_ACEOF
18831
18832fi
18833
18834done
18835
18836
18837 if test "$ac_cv_header_iostream" = "yes" ; then
18838 :
18839 else
18840 cat >>confdefs.h <<\_ACEOF
18841#define wxUSE_IOSTREAMH 1
18842_ACEOF
18843
18844 fi
18845
18846 ac_ext=c
18847ac_cpp='$CPP $CPPFLAGS'
18848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850ac_compiler_gnu=$ac_cv_c_compiler_gnu
18851
18852
18853
18854
18855 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18856echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18857if test "${wx_cv_cpp_bool+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860
18861
18862
18863 ac_ext=cc
18864ac_cpp='$CXXCPP $CPPFLAGS'
18865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18868
18869
18870 cat >conftest.$ac_ext <<_ACEOF
18871/* confdefs.h. */
18872_ACEOF
18873cat confdefs.h >>conftest.$ac_ext
18874cat >>conftest.$ac_ext <<_ACEOF
18875/* end confdefs.h. */
18876
18877
18878int
18879main ()
18880{
18881
18882 bool b = true;
18883
18884 return 0;
18885
18886 ;
18887 return 0;
18888}
18889_ACEOF
18890rm -f conftest.$ac_objext
18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18892 (eval $ac_compile) 2>conftest.er1
a848cd7e 18893 ac_status=$?
ac1cb8d3
VS
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
a848cd7e
SC
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
ac1cb8d3
VS
18899 { ac_try='test -z "$ac_cxx_werror_flag"
18900 || test ! -s conftest.err'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912
18913 wx_cv_cpp_bool=yes
18914
18915else
18916 echo "$as_me: failed program was:" >&5
18917sed 's/^/| /' conftest.$ac_ext >&5
18918
18919
18920 wx_cv_cpp_bool=no
18921
18922
18923fi
ac1cb8d3 18924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18925
18926 ac_ext=c
18927ac_cpp='$CPP $CPPFLAGS'
18928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930ac_compiler_gnu=$ac_cv_c_compiler_gnu
18931
18932
18933fi
18934echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18935echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18936
18937 if test "$wx_cv_cpp_bool" = "yes"; then
18938 cat >>confdefs.h <<\_ACEOF
18939#define HAVE_BOOL 1
18940_ACEOF
18941
18942 fi
18943
18944
18945
18946 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18947echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18948if test "${wx_cv_explicit+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18950else
18951
18952
18953
18954 ac_ext=cc
18955ac_cpp='$CXXCPP $CPPFLAGS'
18956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18959
18960
18961 cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967
18968 class Foo { public: explicit Foo(int) {} };
18969
18970int
18971main ()
18972{
18973
18974 return 0;
18975
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18982 (eval $ac_compile) 2>conftest.er1
a848cd7e 18983 ac_status=$?
ac1cb8d3
VS
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
a848cd7e
SC
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
ac1cb8d3
VS
18989 { ac_try='test -z "$ac_cxx_werror_flag"
18990 || test ! -s conftest.err'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002
19003 cat >conftest.$ac_ext <<_ACEOF
19004/* confdefs.h. */
19005_ACEOF
19006cat confdefs.h >>conftest.$ac_ext
19007cat >>conftest.$ac_ext <<_ACEOF
19008/* end confdefs.h. */
19009
19010 class Foo { public: explicit Foo(int) {} };
19011 static void TakeFoo(const Foo& foo) { }
19012
19013int
19014main ()
19015{
19016
19017 TakeFoo(17);
19018 return 0;
19019
19020 ;
19021 return 0;
19022}
19023_ACEOF
19024rm -f conftest.$ac_objext
19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19026 (eval $ac_compile) 2>conftest.er1
a848cd7e 19027 ac_status=$?
ac1cb8d3
VS
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
a848cd7e
SC
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
ac1cb8d3
VS
19033 { ac_try='test -z "$ac_cxx_werror_flag"
19034 || test ! -s conftest.err'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 wx_cv_explicit=no
19047else
19048 echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051wx_cv_explicit=yes
19052
19053fi
ac1cb8d3 19054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19055
19056else
19057 echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060wx_cv_explicit=no
19061
19062fi
ac1cb8d3 19063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19064
19065 ac_ext=c
19066ac_cpp='$CPP $CPPFLAGS'
19067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070
19071
19072fi
19073echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19074echo "${ECHO_T}$wx_cv_explicit" >&6
19075
19076 if test "$wx_cv_explicit" = "yes"; then
19077 cat >>confdefs.h <<\_ACEOF
19078#define HAVE_EXPLICIT 1
19079_ACEOF
19080
19081 fi
19082
19083
19084echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19085echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19086if test "${ac_cv_cxx_const_cast+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089
19090
19091 ac_ext=cc
19092ac_cpp='$CXXCPP $CPPFLAGS'
19093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19096
19097 cat >conftest.$ac_ext <<_ACEOF
19098/* confdefs.h. */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h. */
19103
19104int
19105main ()
19106{
19107int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext
19113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19114 (eval $ac_compile) 2>conftest.er1
a848cd7e 19115 ac_status=$?
ac1cb8d3
VS
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
a848cd7e
SC
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
ac1cb8d3
VS
19121 { ac_try='test -z "$ac_cxx_werror_flag"
19122 || test ! -s conftest.err'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 ac_cv_cxx_const_cast=yes
19135else
19136 echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139ac_cv_cxx_const_cast=no
19140fi
ac1cb8d3 19141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19142 ac_ext=c
19143ac_cpp='$CPP $CPPFLAGS'
19144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146ac_compiler_gnu=$ac_cv_c_compiler_gnu
19147
19148
19149fi
19150echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19151echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19152if test "$ac_cv_cxx_const_cast" = yes; then
19153
19154cat >>confdefs.h <<\_ACEOF
19155#define HAVE_CONST_CAST
19156_ACEOF
19157
19158fi
19159
19160echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19161echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19162if test "${ac_cv_cxx_static_cast+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164else
19165
19166
19167 ac_ext=cc
19168ac_cpp='$CXXCPP $CPPFLAGS'
19169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19172
19173 cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179#include <typeinfo>
19180class Base { public : Base () {} virtual void f () = 0; };
19181class Derived : public Base { public : Derived () {} virtual void f () {} };
19182int g (Derived&) { return 0; }
19183int
19184main ()
19185{
19186
19187Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19188 ;
19189 return 0;
19190}
19191_ACEOF
19192rm -f conftest.$ac_objext
19193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19194 (eval $ac_compile) 2>conftest.er1
a848cd7e 19195 ac_status=$?
ac1cb8d3
VS
19196 grep -v '^ *+' conftest.er1 >conftest.err
19197 rm -f conftest.er1
19198 cat conftest.err >&5
a848cd7e
SC
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
ac1cb8d3
VS
19201 { ac_try='test -z "$ac_cxx_werror_flag"
19202 || test ! -s conftest.err'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; } &&
19208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_cxx_static_cast=yes
19215else
19216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219ac_cv_cxx_static_cast=no
19220fi
ac1cb8d3 19221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19222 ac_ext=c
19223ac_cpp='$CPP $CPPFLAGS'
19224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19226ac_compiler_gnu=$ac_cv_c_compiler_gnu
19227
19228
19229fi
19230echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19231echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19232if test "$ac_cv_cxx_static_cast" = yes; then
19233
19234cat >>confdefs.h <<\_ACEOF
19235#define HAVE_STATIC_CAST
19236_ACEOF
19237
19238fi
19239
19240
19241if test "$wxUSE_STL" = "yes"; then
19242 ac_ext=cc
19243ac_cpp='$CXXCPP $CPPFLAGS'
19244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19247
19248
19249 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19250echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19251 cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257#include <string>
19258 #include <functional>
19259 #include <algorithm>
19260 #include <vector>
19261 #include <list>
19262int
19263main ()
19264{
19265std::vector<int> moo;
19266 std::list<int> foo;
19267 std::vector<int>::iterator it =
19268 std::find_if(moo.begin(), moo.end(),
19269 std::bind2nd(std::less<int>(), 3));
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19276 (eval $ac_compile) 2>conftest.er1
a848cd7e 19277 ac_status=$?
ac1cb8d3
VS
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
a848cd7e
SC
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
ac1cb8d3
VS
19283 { ac_try='test -z "$ac_cxx_werror_flag"
19284 || test ! -s conftest.err'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 echo "$as_me:$LINENO: result: yes" >&5
19297echo "${ECHO_T}yes" >&6
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302echo "$as_me:$LINENO: result: no" >&5
19303echo "${ECHO_T}no" >&6
19304 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19305echo "$as_me: error: Basic STL functionality missing" >&2;}
19306 { (exit 1); exit 1; }; }
19307fi
ac1cb8d3 19308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19309
19310 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19311echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
19318#include <string>
19319int
19320main ()
19321{
19322std::wstring foo;
19323 ;
19324 return 0;
19325}
19326_ACEOF
19327rm -f conftest.$ac_objext
19328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19329 (eval $ac_compile) 2>conftest.er1
a848cd7e 19330 ac_status=$?
ac1cb8d3
VS
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
a848cd7e
SC
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
ac1cb8d3
VS
19336 { ac_try='test -z "$ac_cxx_werror_flag"
19337 || test ! -s conftest.err'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 echo "$as_me:$LINENO: result: yes" >&5
19350echo "${ECHO_T}yes" >&6
19351 cat >>confdefs.h <<\_ACEOF
19352#define HAVE_STD_WSTRING 1
19353_ACEOF
19354
19355else
19356 echo "$as_me: failed program was:" >&5
19357sed 's/^/| /' conftest.$ac_ext >&5
19358
19359echo "$as_me:$LINENO: result: no" >&5
19360echo "${ECHO_T}no" >&6
19361fi
ac1cb8d3 19362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19363
19364 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19365echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19366 cat >conftest.$ac_ext <<_ACEOF
19367/* confdefs.h. */
19368_ACEOF
19369cat confdefs.h >>conftest.$ac_ext
19370cat >>conftest.$ac_ext <<_ACEOF
19371/* end confdefs.h. */
19372#include <string>
19373int
19374main ()
19375{
19376std::string foo, bar;
19377 foo.compare(bar);
19378 foo.compare(1, 1, bar);
19379 foo.compare(1, 1, bar, 1, 1);
19380 foo.compare("");
19381 foo.compare(1, 1, "");
19382 foo.compare(1, 1, "", 2);
19383 ;
19384 return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext
19388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19389 (eval $ac_compile) 2>conftest.er1
a848cd7e 19390 ac_status=$?
ac1cb8d3
VS
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
a848cd7e
SC
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
ac1cb8d3
VS
19396 { ac_try='test -z "$ac_cxx_werror_flag"
19397 || test ! -s conftest.err'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 echo "$as_me:$LINENO: result: yes" >&5
19410echo "${ECHO_T}yes" >&6
19411 cat >>confdefs.h <<\_ACEOF
19412#define HAVE_STD_STRING_COMPARE 1
19413_ACEOF
19414
19415else
19416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419echo "$as_me:$LINENO: result: no" >&5
19420echo "${ECHO_T}no" >&6
19421fi
ac1cb8d3 19422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19423
19424 if test "${ac_cv_header_hash_map+set}" = set; then
19425 echo "$as_me:$LINENO: checking for hash_map" >&5
19426echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19427if test "${ac_cv_header_hash_map+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429fi
19430echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19431echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19432else
19433 # Is the header compilable?
19434echo "$as_me:$LINENO: checking hash_map usability" >&5
19435echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19436cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
19442$ac_includes_default
19443#include <hash_map>
19444_ACEOF
19445rm -f conftest.$ac_objext
19446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19447 (eval $ac_compile) 2>conftest.er1
bdcade0a 19448 ac_status=$?
ac1cb8d3
VS
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
bdcade0a
MB
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
ac1cb8d3
VS
19454 { ac_try='test -z "$ac_cxx_werror_flag"
19455 || test ! -s conftest.err'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_header_compiler=yes
19468else
19469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472ac_header_compiler=no
19473fi
ac1cb8d3 19474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19476echo "${ECHO_T}$ac_header_compiler" >&6
19477
19478# Is the header present?
19479echo "$as_me:$LINENO: checking hash_map presence" >&5
19480echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19481cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h. */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
19486/* end confdefs.h. */
19487#include <hash_map>
19488_ACEOF
19489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19491 ac_status=$?
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } >/dev/null; then
19497 if test -s conftest.err; then
19498 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19499 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19500 else
19501 ac_cpp_err=
19502 fi
19503else
19504 ac_cpp_err=yes
19505fi
19506if test -z "$ac_cpp_err"; then
19507 ac_header_preproc=yes
19508else
19509 echo "$as_me: failed program was:" >&5
19510sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 ac_header_preproc=no
19513fi
19514rm -f conftest.err conftest.$ac_ext
19515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19516echo "${ECHO_T}$ac_header_preproc" >&6
19517
19518# So? What about this header?
ac1cb8d3
VS
19519case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19520 yes:no: )
bdcade0a
MB
19521 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19522echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19523 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19524echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19525 ac_header_preproc=yes
bdcade0a 19526 ;;
ac1cb8d3 19527 no:yes:* )
bdcade0a
MB
19528 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19529echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19530 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19531echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19532 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19533echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19534 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19535echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19536 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19537echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19538 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19539echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19540 (
19541 cat <<\_ASBOX
ac1cb8d3
VS
19542## ----------------------------------------- ##
19543## Report this to wx-dev@lists.wxwidgets.org ##
19544## ----------------------------------------- ##
bdcade0a
MB
19545_ASBOX
19546 ) |
19547 sed "s/^/$as_me: WARNING: /" >&2
19548 ;;
19549esac
19550echo "$as_me:$LINENO: checking for hash_map" >&5
19551echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19552if test "${ac_cv_header_hash_map+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555 ac_cv_header_hash_map=$ac_header_preproc
19556fi
19557echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19558echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19559
19560fi
19561if test $ac_cv_header_hash_map = yes; then
19562 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19563echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19564 cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570#include <hash_map>
19571 #include <hash_set>
19572int
19573main ()
19574{
19575std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19576 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19577 ;
19578 return 0;
19579}
19580_ACEOF
19581rm -f conftest.$ac_objext
19582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19583 (eval $ac_compile) 2>conftest.er1
bdcade0a 19584 ac_status=$?
ac1cb8d3
VS
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
bdcade0a
MB
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } &&
ac1cb8d3
VS
19590 { ac_try='test -z "$ac_cxx_werror_flag"
19591 || test ! -s conftest.err'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 echo "$as_me:$LINENO: result: yes" >&5
19604echo "${ECHO_T}yes" >&6
19605 cat >>confdefs.h <<\_ACEOF
19606#define HAVE_HASH_MAP 1
19607_ACEOF
19608
19609 cat >>confdefs.h <<\_ACEOF
19610#define HAVE_STD_HASH_MAP 1
19611_ACEOF
19612
19613else
19614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617echo "$as_me:$LINENO: result: no" >&5
19618echo "${ECHO_T}no" >&6
19619fi
ac1cb8d3 19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19621
19622fi
19623
19624
19625
19626 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19627 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19628echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19629if test "${ac_cv_header_ext_hash_map+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19631fi
19632echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19633echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19634else
19635 # Is the header compilable?
19636echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19637echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19638cat >conftest.$ac_ext <<_ACEOF
19639/* confdefs.h. */
19640_ACEOF
19641cat confdefs.h >>conftest.$ac_ext
19642cat >>conftest.$ac_ext <<_ACEOF
19643/* end confdefs.h. */
19644$ac_includes_default
19645#include <ext/hash_map>
19646_ACEOF
19647rm -f conftest.$ac_objext
19648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19649 (eval $ac_compile) 2>conftest.er1
bdcade0a 19650 ac_status=$?
ac1cb8d3
VS
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
bdcade0a
MB
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
ac1cb8d3
VS
19656 { ac_try='test -z "$ac_cxx_werror_flag"
19657 || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 ac_header_compiler=yes
19670else
19671 echo "$as_me: failed program was:" >&5
19672sed 's/^/| /' conftest.$ac_ext >&5
19673
19674ac_header_compiler=no
19675fi
ac1cb8d3 19676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19678echo "${ECHO_T}$ac_header_compiler" >&6
19679
19680# Is the header present?
19681echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19682echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19683cat >conftest.$ac_ext <<_ACEOF
19684/* confdefs.h. */
19685_ACEOF
19686cat confdefs.h >>conftest.$ac_ext
19687cat >>conftest.$ac_ext <<_ACEOF
19688/* end confdefs.h. */
19689#include <ext/hash_map>
19690_ACEOF
19691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } >/dev/null; then
19699 if test -s conftest.err; then
19700 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19701 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19702 else
19703 ac_cpp_err=
19704 fi
19705else
19706 ac_cpp_err=yes
19707fi
19708if test -z "$ac_cpp_err"; then
19709 ac_header_preproc=yes
19710else
19711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 ac_header_preproc=no
19715fi
19716rm -f conftest.err conftest.$ac_ext
19717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19718echo "${ECHO_T}$ac_header_preproc" >&6
19719
19720# So? What about this header?
ac1cb8d3
VS
19721case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19722 yes:no: )
bdcade0a
MB
19723 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19724echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19725 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19726echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19727 ac_header_preproc=yes
bdcade0a 19728 ;;
ac1cb8d3 19729 no:yes:* )
bdcade0a
MB
19730 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19731echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19732 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19733echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19735echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19737echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19738 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19739echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19740 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19741echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19742 (
19743 cat <<\_ASBOX
ac1cb8d3
VS
19744## ----------------------------------------- ##
19745## Report this to wx-dev@lists.wxwidgets.org ##
19746## ----------------------------------------- ##
bdcade0a
MB
19747_ASBOX
19748 ) |
19749 sed "s/^/$as_me: WARNING: /" >&2
19750 ;;
19751esac
19752echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19753echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19754if test "${ac_cv_header_ext_hash_map+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756else
19757 ac_cv_header_ext_hash_map=$ac_header_preproc
19758fi
19759echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19760echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19761
19762fi
19763if test $ac_cv_header_ext_hash_map = yes; then
19764 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19765echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19766 cat >conftest.$ac_ext <<_ACEOF
19767/* confdefs.h. */
19768_ACEOF
19769cat confdefs.h >>conftest.$ac_ext
19770cat >>conftest.$ac_ext <<_ACEOF
19771/* end confdefs.h. */
19772#include <ext/hash_map>
19773 #include <ext/hash_set>
19774int
19775main ()
19776{
19777__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19778 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19779 ;
19780 return 0;
19781}
19782_ACEOF
19783rm -f conftest.$ac_objext
19784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19785 (eval $ac_compile) 2>conftest.er1
bdcade0a 19786 ac_status=$?
ac1cb8d3
VS
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
bdcade0a
MB
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
ac1cb8d3
VS
19792 { ac_try='test -z "$ac_cxx_werror_flag"
19793 || test ! -s conftest.err'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 echo "$as_me:$LINENO: result: yes" >&5
19806echo "${ECHO_T}yes" >&6
19807 cat >>confdefs.h <<\_ACEOF
19808#define HAVE_EXT_HASH_MAP 1
19809_ACEOF
19810
19811 cat >>confdefs.h <<\_ACEOF
19812#define HAVE_GNU_CXX_HASH_MAP 1
19813_ACEOF
19814
19815else
19816 echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819echo "$as_me:$LINENO: result: no" >&5
19820echo "${ECHO_T}no" >&6
19821fi
ac1cb8d3 19822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19823
19824fi
19825
19826
a848cd7e
SC
19827
19828 ac_ext=c
19829ac_cpp='$CPP $CPPFLAGS'
19830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832ac_compiler_gnu=$ac_cv_c_compiler_gnu
19833
19834fi
19835
19836
19837SEARCH_INCLUDE="\
19838 /usr/local/include \
19839 \
19840 /usr/Motif-2.1/include \
19841 /usr/Motif-1.2/include \
19842 /usr/include/Motif1.2 \
19843 /opt/xpm/include/X11 \
19844 /opt/GBxpm/include/ \
19845 /opt/GBxpm/X11/include/ \
19846 \
19847 /usr/dt/include \
19848 /usr/openwin/include \
19849 \
19850 /usr/include/Xm \
19851 \
19852 /usr/X11R6/include \
19853 /usr/X11R6.4/include \
19854 /usr/X11R5/include \
19855 /usr/X11R4/include \
19856 \
19857 /usr/include/X11R6 \
19858 /usr/include/X11R5 \
19859 /usr/include/X11R4 \
19860 \
19861 /usr/local/X11R6/include \
19862 /usr/local/X11R5/include \
19863 /usr/local/X11R4/include \
19864 \
19865 /usr/local/include/X11R6 \
19866 /usr/local/include/X11R5 \
19867 /usr/local/include/X11R4 \
19868 \
19869 /usr/X11/include \
19870 /usr/include/X11 \
19871 /usr/local/X11/include \
19872 /usr/local/include/X11 \
19873 \
19874 /usr/X386/include \
19875 /usr/x386/include \
19876 /usr/XFree86/include/X11 \
19877 \
19878 X:/XFree86/include \
19879 X:/XFree86/include/X11 \
19880 \
19881 /usr/include/gtk \
19882 /usr/local/include/gtk \
19883 /usr/include/glib \
19884 /usr/local/include/glib \
19885 \
19886 /usr/include/qt \
19887 /usr/local/include/qt \
19888 \
19889 /usr/local/arm/3.3.2/include \
19890 \
19891 /usr/include/windows \
19892 /usr/include/wine \
19893 /usr/local/include/wine \
19894 \
19895 /usr/unsupported/include \
19896 /usr/athena/include \
19897 /usr/local/x11r5/include \
19898 /usr/lpp/Xamples/include \
19899 \
19900 /usr/openwin/share/include"
19901
19902SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19903
19904
19905cat >confcache <<\_ACEOF
19906# This file is a shell script that caches the results of configure
19907# tests run on this system so they can be shared between configure
19908# scripts and configure runs, see configure's option --config-cache.
19909# It is not useful on other systems. If it contains results you don't
19910# want to keep, you may remove or edit it.
19911#
19912# config.status only pays attention to the cache file if you give it
19913# the --recheck option to rerun configure.
19914#
19915# `ac_cv_env_foo' variables (set or unset) will be overridden when
19916# loading this file, other *unset* `ac_cv_foo' will be assigned the
19917# following values.
19918
19919_ACEOF
19920
19921# The following way of writing the cache mishandles newlines in values,
19922# but we know of no workaround that is simple, portable, and efficient.
19923# So, don't put newlines in cache variables' values.
19924# Ultrix sh set writes to stderr and can't be redirected directly,
19925# and sets the high bit in the cache file unless we assign to the vars.
19926{
19927 (set) 2>&1 |
19928 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19929 *ac_space=\ *)
19930 # `set' does not quote correctly, so add quotes (double-quote
19931 # substitution turns \\\\ into \\, and sed turns \\ into \).
19932 sed -n \
ac1cb8d3
VS
19933 "s/'/'\\\\''/g;
19934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19935 ;;
19936 *)
19937 # `set' quotes correctly as required by POSIX, so do not add quotes.
19938 sed -n \
ac1cb8d3 19939 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19940 ;;
19941 esac;
19942} |
19943 sed '
19944 t clear
19945 : clear
19946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19947 t end
19948 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19949 : end' >>confcache
19950if diff $cache_file confcache >/dev/null 2>&1; then :; else
19951 if test -w $cache_file; then
19952 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19953 cat confcache >$cache_file
19954 else
19955 echo "not updating unwritable cache $cache_file"
19956 fi
19957fi
19958rm -f confcache
19959
19960if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19961 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19962echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19963if test "${wx_cv_lib_glibc21+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966
19967 cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973#include <features.h>
19974int
19975main ()
19976{
19977
19978 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19979 #error not glibc2.1
19980 #endif
19981
19982 ;
19983 return 0;
19984}
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19988 (eval $ac_compile) 2>conftest.er1
a848cd7e 19989 ac_status=$?
ac1cb8d3
VS
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
a848cd7e
SC
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
ac1cb8d3
VS
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008
20009 wx_cv_lib_glibc21=yes
20010
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015
20016 wx_cv_lib_glibc21=no
20017
20018
20019fi
ac1cb8d3 20020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20021
20022fi
20023echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20024echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20025 if test "$wx_cv_lib_glibc21" = "yes"; then
20026 cat >>confdefs.h <<\_ACEOF
20027#define wxHAVE_GLIBC2 1
20028_ACEOF
20029
20030 fi
20031fi
20032
20033if test "x$wx_cv_lib_glibc21" = "xyes"; then
20034 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20035 cat >>confdefs.h <<\_ACEOF
20036#define _GNU_SOURCE 1
20037_ACEOF
20038
20039 fi
20040fi
20041
20042
20043
20044if test "$wxUSE_REGEX" != "no"; then
20045 cat >>confdefs.h <<\_ACEOF
20046#define wxUSE_REGEX 1
20047_ACEOF
20048
20049
20050 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20051 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20052echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20053 wxUSE_REGEX=builtin
20054 fi
20055
20056 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20057 if test "${ac_cv_header_regex_h+set}" = set; then
20058 echo "$as_me:$LINENO: checking for regex.h" >&5
20059echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20060if test "${ac_cv_header_regex_h+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062fi
20063echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20064echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20065else
20066 # Is the header compilable?
20067echo "$as_me:$LINENO: checking regex.h usability" >&5
20068echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20069cat >conftest.$ac_ext <<_ACEOF
20070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075$ac_includes_default
20076#include <regex.h>
20077_ACEOF
20078rm -f conftest.$ac_objext
20079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20080 (eval $ac_compile) 2>conftest.er1
a848cd7e 20081 ac_status=$?
ac1cb8d3
VS
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
a848cd7e
SC
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
ac1cb8d3
VS
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 ac_header_compiler=yes
20101else
20102 echo "$as_me: failed program was:" >&5
20103sed 's/^/| /' conftest.$ac_ext >&5
20104
20105ac_header_compiler=no
20106fi
ac1cb8d3 20107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20109echo "${ECHO_T}$ac_header_compiler" >&6
20110
20111# Is the header present?
20112echo "$as_me:$LINENO: checking regex.h presence" >&5
20113echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20114cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120#include <regex.h>
20121_ACEOF
20122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20124 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } >/dev/null; then
20130 if test -s conftest.err; then
20131 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20133 else
20134 ac_cpp_err=
20135 fi
20136else
20137 ac_cpp_err=yes
20138fi
20139if test -z "$ac_cpp_err"; then
20140 ac_header_preproc=yes
20141else
20142 echo "$as_me: failed program was:" >&5
20143sed 's/^/| /' conftest.$ac_ext >&5
20144
20145 ac_header_preproc=no
20146fi
20147rm -f conftest.err conftest.$ac_ext
20148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20149echo "${ECHO_T}$ac_header_preproc" >&6
20150
20151# So? What about this header?
ac1cb8d3
VS
20152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20153 yes:no: )
a848cd7e
SC
20154 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20155echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20156 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20157echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20158 ac_header_preproc=yes
a848cd7e 20159 ;;
ac1cb8d3 20160 no:yes:* )
a848cd7e
SC
20161 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20162echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20163 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20164echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20166echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20168echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20169 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20170echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20171 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20172echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20173 (
20174 cat <<\_ASBOX
ac1cb8d3
VS
20175## ----------------------------------------- ##
20176## Report this to wx-dev@lists.wxwidgets.org ##
20177## ----------------------------------------- ##
a848cd7e
SC
20178_ASBOX
20179 ) |
20180 sed "s/^/$as_me: WARNING: /" >&2
20181 ;;
20182esac
20183echo "$as_me:$LINENO: checking for regex.h" >&5
20184echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20185if test "${ac_cv_header_regex_h+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187else
20188 ac_cv_header_regex_h=$ac_header_preproc
20189fi
20190echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20191echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20192
20193fi
20194if test $ac_cv_header_regex_h = yes; then
20195
20196for ac_func in regcomp
20197do
20198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20199echo "$as_me:$LINENO: checking for $ac_func" >&5
20200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20201if eval "test \"\${$as_ac_var+set}\" = set"; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
ac1cb8d3
VS
20210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20212#define $ac_func innocuous_$ac_func
20213
a848cd7e
SC
20214/* System header to define __stub macros and hopefully few prototypes,
20215 which can conflict with char $ac_func (); below.
20216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20218
a848cd7e
SC
20219#ifdef __STDC__
20220# include <limits.h>
20221#else
20222# include <assert.h>
20223#endif
ac1cb8d3
VS
20224
20225#undef $ac_func
20226
a848cd7e
SC
20227/* Override any gcc2 internal prototype to avoid an error. */
20228#ifdef __cplusplus
20229extern "C"
20230{
20231#endif
20232/* We use char because int might match the return type of a gcc2
20233 builtin and then its argument prototype would still apply. */
20234char $ac_func ();
20235/* The GNU C library defines this for functions which it implements
20236 to always fail with ENOSYS. Some functions are actually named
20237 something starting with __ and the normal name is an alias. */
20238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20239choke me
20240#else
20241char (*f) () = $ac_func;
20242#endif
20243#ifdef __cplusplus
20244}
20245#endif
20246
20247int
20248main ()
20249{
20250return f != $ac_func;
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest.$ac_objext conftest$ac_exeext
20256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20257 (eval $ac_link) 2>conftest.er1
a848cd7e 20258 ac_status=$?
ac1cb8d3
VS
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
a848cd7e
SC
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
ac1cb8d3
VS
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 eval "$as_ac_var=yes"
20278else
20279 echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
20282eval "$as_ac_var=no"
20283fi
ac1cb8d3
VS
20284rm -f conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20286fi
20287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20289if test `eval echo '${'$as_ac_var'}'` = yes; then
20290 cat >>confdefs.h <<_ACEOF
20291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20292_ACEOF
20293
20294fi
20295done
20296
20297fi
20298
20299
20300
20301 if test "x$ac_cv_func_regcomp" != "xyes"; then
20302 if test "$wxUSE_REGEX" = "sys" ; then
20303 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20304echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20305 { (exit 1); exit 1; }; }
20306 else
20307 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20308echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20309 wxUSE_REGEX=builtin
20310 fi
20311 else
20312 wxUSE_REGEX=sys
20313 cat >>confdefs.h <<\_ACEOF
20314#define WX_NO_REGEX_ADVANCED 1
20315_ACEOF
20316
20317 fi
20318 fi
20319fi
20320
20321
20322ZLIB_LINK=
20323if test "$wxUSE_ZLIB" != "no" ; then
20324 cat >>confdefs.h <<\_ACEOF
20325#define wxUSE_ZLIB 1
20326_ACEOF
20327
20328
20329 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20330 if test "$USE_DARWIN" = 1; then
20331 system_zlib_h_ok="yes"
20332 else
20333 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20334echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20335if test "${ac_cv_header_zlib_h+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337else
20338 if test "$cross_compiling" = yes; then
20339 unset ac_cv_header_zlib_h
20340
20341else
20342 cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348
20349 #include <zlib.h>
20350 #include <stdio.h>
20351
20352 int main()
20353 {
20354 FILE *f=fopen("conftestval", "w");
20355 if (!f) exit(1);
20356 fprintf(f, "%s",
20357 ZLIB_VERSION[0] == '1' &&
20358 (ZLIB_VERSION[2] > '1' ||
20359 (ZLIB_VERSION[2] == '1' &&
20360 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20361 exit(0);
20362 }
20363
20364_ACEOF
20365rm -f conftest$ac_exeext
20366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367 (eval $ac_link) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
20376 ac_cv_header_zlib_h=`cat conftestval`
20377else
20378 echo "$as_me: program exited with status $ac_status" >&5
20379echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382( exit $ac_status )
20383ac_cv_header_zlib_h=no
20384fi
ac1cb8d3 20385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20386fi
20387
20388fi
20389echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20390echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20391 if test "${ac_cv_header_zlib_h+set}" = set; then
20392 echo "$as_me:$LINENO: checking for zlib.h" >&5
20393echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20394if test "${ac_cv_header_zlib_h+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396fi
20397echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20398echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20399else
20400 # Is the header compilable?
20401echo "$as_me:$LINENO: checking zlib.h usability" >&5
20402echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20403cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
20409$ac_includes_default
20410#include <zlib.h>
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20414 (eval $ac_compile) 2>conftest.er1
a848cd7e 20415 ac_status=$?
ac1cb8d3
VS
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
a848cd7e
SC
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
ac1cb8d3
VS
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_header_compiler=yes
20435else
20436 echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439ac_header_compiler=no
20440fi
ac1cb8d3 20441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20443echo "${ECHO_T}$ac_header_compiler" >&6
20444
20445# Is the header present?
20446echo "$as_me:$LINENO: checking zlib.h presence" >&5
20447echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20448cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
20454#include <zlib.h>
20455_ACEOF
20456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20458 ac_status=$?
20459 grep -v '^ *+' conftest.er1 >conftest.err
20460 rm -f conftest.er1
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } >/dev/null; then
20464 if test -s conftest.err; then
20465 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20467 else
20468 ac_cpp_err=
20469 fi
20470else
20471 ac_cpp_err=yes
20472fi
20473if test -z "$ac_cpp_err"; then
20474 ac_header_preproc=yes
20475else
20476 echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_header_preproc=no
20480fi
20481rm -f conftest.err conftest.$ac_ext
20482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20483echo "${ECHO_T}$ac_header_preproc" >&6
20484
20485# So? What about this header?
ac1cb8d3
VS
20486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20487 yes:no: )
a848cd7e
SC
20488 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20489echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20490 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20491echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20492 ac_header_preproc=yes
a848cd7e 20493 ;;
ac1cb8d3 20494 no:yes:* )
a848cd7e
SC
20495 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20496echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20497 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20498echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20500echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20502echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20503 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20504echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20505 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20506echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20507 (
20508 cat <<\_ASBOX
ac1cb8d3
VS
20509## ----------------------------------------- ##
20510## Report this to wx-dev@lists.wxwidgets.org ##
20511## ----------------------------------------- ##
a848cd7e
SC
20512_ASBOX
20513 ) |
20514 sed "s/^/$as_me: WARNING: /" >&2
20515 ;;
20516esac
20517echo "$as_me:$LINENO: checking for zlib.h" >&5
20518echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20519if test "${ac_cv_header_zlib_h+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522 ac_cv_header_zlib_h=$ac_header_preproc
20523fi
20524echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20525echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20526
20527fi
20528
20529
20530
20531 system_zlib_h_ok=$ac_cv_header_zlib_h
20532 fi
20533
20534 if test "$system_zlib_h_ok" = "yes"; then
20535 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20536echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20537if test "${ac_cv_lib_z_deflate+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20539else
20540 ac_check_lib_save_LIBS=$LIBS
20541LIBS="-lz $LIBS"
20542cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
20548
20549/* Override any gcc2 internal prototype to avoid an error. */
20550#ifdef __cplusplus
20551extern "C"
20552#endif
20553/* We use char because int might match the return type of a gcc2
20554 builtin and then its argument prototype would still apply. */
20555char deflate ();
20556int
20557main ()
20558{
20559deflate ();
20560 ;
20561 return 0;
20562}
20563_ACEOF
20564rm -f conftest.$ac_objext conftest$ac_exeext
20565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20566 (eval $ac_link) 2>conftest.er1
a848cd7e 20567 ac_status=$?
ac1cb8d3
VS
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
a848cd7e
SC
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
ac1cb8d3
VS
20573 { ac_try='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_lib_z_deflate=yes
20587else
20588 echo "$as_me: failed program was:" >&5
20589sed 's/^/| /' conftest.$ac_ext >&5
20590
20591ac_cv_lib_z_deflate=no
20592fi
ac1cb8d3
VS
20593rm -f conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20595LIBS=$ac_check_lib_save_LIBS
20596fi
20597echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20598echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20599if test $ac_cv_lib_z_deflate = yes; then
20600 ZLIB_LINK=" -lz"
20601fi
20602
20603 fi
20604
20605 if test "x$ZLIB_LINK" = "x" ; then
20606 if test "$wxUSE_ZLIB" = "sys" ; then
20607 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20608echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20609 { (exit 1); exit 1; }; }
20610 else
20611 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20612echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20613 wxUSE_ZLIB=builtin
20614 fi
20615 else
20616 wxUSE_ZLIB=sys
20617 fi
20618 fi
20619fi
20620
20621
20622PNG_LINK=
20623if test "$wxUSE_LIBPNG" != "no" ; then
20624 cat >>confdefs.h <<\_ACEOF
20625#define wxUSE_LIBPNG 1
20626_ACEOF
20627
20628
20629 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20630 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20631echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20632 wxUSE_LIBPNG=sys
20633 fi
20634
20635 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20636 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20637echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20638 wxUSE_LIBPNG=builtin
20639 fi
20640
20641 if test "$wxUSE_MGL" != 1 ; then
20642 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20643 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20644echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20645if test "${ac_cv_header_png_h+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20647else
20648 if test "$cross_compiling" = yes; then
20649 unset ac_cv_header_png_h
20650
20651else
20652 cat >conftest.$ac_ext <<_ACEOF
20653/* confdefs.h. */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h. */
20658
20659 #include <png.h>
20660 #include <stdio.h>
20661
20662 int main()
20663 {
20664 FILE *f=fopen("conftestval", "w");
20665 if (!f) exit(1);
20666 fprintf(f, "%s",
20667 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20668 exit(0);
20669 }
20670
20671_ACEOF
20672rm -f conftest$ac_exeext
20673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_header_png_h=`cat conftestval`
20684else
20685 echo "$as_me: program exited with status $ac_status" >&5
20686echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
20688
20689( exit $ac_status )
20690ac_cv_header_png_h=no
20691fi
ac1cb8d3 20692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20693fi
20694
20695fi
20696echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20697echo "${ECHO_T}$ac_cv_header_png_h" >&6
20698 if test "${ac_cv_header_png_h+set}" = set; then
20699 echo "$as_me:$LINENO: checking for png.h" >&5
20700echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20701if test "${ac_cv_header_png_h+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703fi
20704echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20705echo "${ECHO_T}$ac_cv_header_png_h" >&6
20706else
20707 # Is the header compilable?
20708echo "$as_me:$LINENO: checking png.h usability" >&5
20709echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20710cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716$ac_includes_default
20717#include <png.h>
20718_ACEOF
20719rm -f conftest.$ac_objext
20720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20721 (eval $ac_compile) 2>conftest.er1
a848cd7e 20722 ac_status=$?
ac1cb8d3
VS
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
a848cd7e
SC
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
ac1cb8d3
VS
20728 { ac_try='test -z "$ac_c_werror_flag"
20729 || test ! -s conftest.err'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; } &&
20735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20741 ac_header_compiler=yes
20742else
20743 echo "$as_me: failed program was:" >&5
20744sed 's/^/| /' conftest.$ac_ext >&5
20745
20746ac_header_compiler=no
20747fi
ac1cb8d3 20748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20750echo "${ECHO_T}$ac_header_compiler" >&6
20751
20752# Is the header present?
20753echo "$as_me:$LINENO: checking png.h presence" >&5
20754echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20755cat >conftest.$ac_ext <<_ACEOF
20756/* confdefs.h. */
20757_ACEOF
20758cat confdefs.h >>conftest.$ac_ext
20759cat >>conftest.$ac_ext <<_ACEOF
20760/* end confdefs.h. */
20761#include <png.h>
20762_ACEOF
20763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } >/dev/null; then
20771 if test -s conftest.err; then
20772 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20774 else
20775 ac_cpp_err=
20776 fi
20777else
20778 ac_cpp_err=yes
20779fi
20780if test -z "$ac_cpp_err"; then
20781 ac_header_preproc=yes
20782else
20783 echo "$as_me: failed program was:" >&5
20784sed 's/^/| /' conftest.$ac_ext >&5
20785
20786 ac_header_preproc=no
20787fi
20788rm -f conftest.err conftest.$ac_ext
20789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20790echo "${ECHO_T}$ac_header_preproc" >&6
20791
20792# So? What about this header?
ac1cb8d3
VS
20793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20794 yes:no: )
a848cd7e
SC
20795 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20796echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20797 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20798echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20799 ac_header_preproc=yes
a848cd7e 20800 ;;
ac1cb8d3 20801 no:yes:* )
a848cd7e
SC
20802 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20803echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20804 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20805echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20807echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20809echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20810 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20811echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20812 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20813echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20814 (
20815 cat <<\_ASBOX
ac1cb8d3
VS
20816## ----------------------------------------- ##
20817## Report this to wx-dev@lists.wxwidgets.org ##
20818## ----------------------------------------- ##
a848cd7e
SC
20819_ASBOX
20820 ) |
20821 sed "s/^/$as_me: WARNING: /" >&2
20822 ;;
20823esac
20824echo "$as_me:$LINENO: checking for png.h" >&5
20825echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20826if test "${ac_cv_header_png_h+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828else
20829 ac_cv_header_png_h=$ac_header_preproc
20830fi
20831echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20832echo "${ECHO_T}$ac_cv_header_png_h" >&6
20833
20834fi
20835
20836
20837
20838 if test "$ac_cv_header_png_h" = "yes"; then
20839 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20840echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20841if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843else
20844 ac_check_lib_save_LIBS=$LIBS
20845LIBS="-lpng -lz -lm $LIBS"
20846cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h. */
20852
20853/* Override any gcc2 internal prototype to avoid an error. */
20854#ifdef __cplusplus
20855extern "C"
20856#endif
20857/* We use char because int might match the return type of a gcc2
20858 builtin and then its argument prototype would still apply. */
20859char png_check_sig ();
20860int
20861main ()
20862{
20863png_check_sig ();
20864 ;
20865 return 0;
20866}
20867_ACEOF
20868rm -f conftest.$ac_objext conftest$ac_exeext
20869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20870 (eval $ac_link) 2>conftest.er1
a848cd7e 20871 ac_status=$?
ac1cb8d3
VS
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
a848cd7e
SC
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
ac1cb8d3
VS
20877 { ac_try='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_lib_png_png_check_sig=yes
20891else
20892 echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895ac_cv_lib_png_png_check_sig=no
20896fi
ac1cb8d3
VS
20897rm -f conftest.err conftest.$ac_objext \
20898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20899LIBS=$ac_check_lib_save_LIBS
20900fi
20901echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20902echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20903if test $ac_cv_lib_png_png_check_sig = yes; then
20904 PNG_LINK=" -lpng -lz"
20905fi
20906
20907 fi
20908
20909 if test "x$PNG_LINK" = "x" ; then
20910 if test "$wxUSE_LIBPNG" = "sys" ; then
20911 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20912echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20913 { (exit 1); exit 1; }; }
20914 else
20915 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20916echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20917 wxUSE_LIBPNG=builtin
20918 fi
20919 else
20920 wxUSE_LIBPNG=sys
20921 fi
20922 fi
20923 fi
20924
20925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20926fi
20927
20928
20929JPEG_LINK=
20930if test "$wxUSE_LIBJPEG" != "no" ; then
20931 cat >>confdefs.h <<\_ACEOF
20932#define wxUSE_LIBJPEG 1
20933_ACEOF
20934
20935
20936 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20937 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20938echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20939 wxUSE_LIBJPEG=sys
20940 fi
20941
20942 if test "$wxUSE_MGL" != 1 ; then
20943 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20944 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20945echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20946 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20948else
20949 cat >conftest.$ac_ext <<_ACEOF
20950/* confdefs.h. */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
20954/* end confdefs.h. */
20955
20956 #undef HAVE_STDLIB_H
20957 #include <stdio.h>
20958 #include <jpeglib.h>
20959
20960int
20961main ()
20962{
20963
20964
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969rm -f conftest.$ac_objext
20970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20971 (eval $ac_compile) 2>conftest.er1
a848cd7e 20972 ac_status=$?
ac1cb8d3
VS
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
a848cd7e
SC
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
ac1cb8d3
VS
20978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_header_jpeglib_h=yes
20992else
20993 echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
20995
20996ac_cv_header_jpeglib_h=no
20997
20998fi
ac1cb8d3 20999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21000
21001fi
21002
21003 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21004echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21005
21006 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21007 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21008echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21009if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011else
21012 ac_check_lib_save_LIBS=$LIBS
21013LIBS="-ljpeg $LIBS"
21014cat >conftest.$ac_ext <<_ACEOF
21015/* confdefs.h. */
21016_ACEOF
21017cat confdefs.h >>conftest.$ac_ext
21018cat >>conftest.$ac_ext <<_ACEOF
21019/* end confdefs.h. */
21020
21021/* Override any gcc2 internal prototype to avoid an error. */
21022#ifdef __cplusplus
21023extern "C"
21024#endif
21025/* We use char because int might match the return type of a gcc2
21026 builtin and then its argument prototype would still apply. */
21027char jpeg_read_header ();
21028int
21029main ()
21030{
21031jpeg_read_header ();
21032 ;
21033 return 0;
21034}
21035_ACEOF
21036rm -f conftest.$ac_objext conftest$ac_exeext
21037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21038 (eval $ac_link) 2>conftest.er1
a848cd7e 21039 ac_status=$?
ac1cb8d3
VS
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
a848cd7e
SC
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
ac1cb8d3
VS
21045 { ac_try='test -z "$ac_c_werror_flag"
21046 || test ! -s conftest.err'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_lib_jpeg_jpeg_read_header=yes
21059else
21060 echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
21063ac_cv_lib_jpeg_jpeg_read_header=no
21064fi
ac1cb8d3
VS
21065rm -f conftest.err conftest.$ac_objext \
21066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21067LIBS=$ac_check_lib_save_LIBS
21068fi
21069echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21070echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21071if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21072 JPEG_LINK=" -ljpeg"
21073fi
21074
21075 fi
21076
21077 if test "x$JPEG_LINK" = "x" ; then
21078 if test "$wxUSE_LIBJPEG" = "sys" ; then
21079 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21080echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21081 { (exit 1); exit 1; }; }
21082 else
21083 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21084echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21085 wxUSE_LIBJPEG=builtin
21086 fi
21087 else
21088 wxUSE_LIBJPEG=sys
21089 fi
21090 fi
21091 fi
21092fi
21093
21094
21095TIFF_LINK=
21096TIFF_PREREQ_LINKS=-lm
21097if test "$wxUSE_LIBTIFF" != "no" ; then
21098 cat >>confdefs.h <<\_ACEOF
21099#define wxUSE_LIBTIFF 1
21100_ACEOF
21101
21102
21103 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21104 if test "$wxUSE_LIBJPEG" = "sys"; then
21105 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21106 fi
21107 if test "$wxUSE_ZLIB" = "sys"; then
21108 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21109 fi
21110 if test "${ac_cv_header_tiffio_h+set}" = set; then
21111 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21112echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21113if test "${ac_cv_header_tiffio_h+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115fi
21116echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21117echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21118else
21119 # Is the header compilable?
21120echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21121echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21122cat >conftest.$ac_ext <<_ACEOF
21123/* confdefs.h. */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
21127/* end confdefs.h. */
21128$ac_includes_default
21129#include <tiffio.h>
21130_ACEOF
21131rm -f conftest.$ac_objext
21132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21133 (eval $ac_compile) 2>conftest.er1
a848cd7e 21134 ac_status=$?
ac1cb8d3
VS
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
a848cd7e
SC
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
ac1cb8d3
VS
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_header_compiler=yes
21154else
21155 echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158ac_header_compiler=no
21159fi
ac1cb8d3 21160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21161echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21162echo "${ECHO_T}$ac_header_compiler" >&6
21163
21164# Is the header present?
21165echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21166echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21167cat >conftest.$ac_ext <<_ACEOF
21168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
21173#include <tiffio.h>
21174_ACEOF
21175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } >/dev/null; then
21183 if test -s conftest.err; then
21184 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21186 else
21187 ac_cpp_err=
21188 fi
21189else
21190 ac_cpp_err=yes
21191fi
21192if test -z "$ac_cpp_err"; then
21193 ac_header_preproc=yes
21194else
21195 echo "$as_me: failed program was:" >&5
21196sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ac_header_preproc=no
21199fi
21200rm -f conftest.err conftest.$ac_ext
21201echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21202echo "${ECHO_T}$ac_header_preproc" >&6
21203
21204# So? What about this header?
ac1cb8d3
VS
21205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21206 yes:no: )
a848cd7e
SC
21207 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21208echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21209 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21210echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21211 ac_header_preproc=yes
a848cd7e 21212 ;;
ac1cb8d3 21213 no:yes:* )
a848cd7e
SC
21214 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21215echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21216 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21217echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21219echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21221echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21222 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21223echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21224 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21225echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21226 (
21227 cat <<\_ASBOX
ac1cb8d3
VS
21228## ----------------------------------------- ##
21229## Report this to wx-dev@lists.wxwidgets.org ##
21230## ----------------------------------------- ##
a848cd7e
SC
21231_ASBOX
21232 ) |
21233 sed "s/^/$as_me: WARNING: /" >&2
21234 ;;
21235esac
21236echo "$as_me:$LINENO: checking for tiffio.h" >&5
21237echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21238if test "${ac_cv_header_tiffio_h+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21240else
21241 ac_cv_header_tiffio_h=$ac_header_preproc
21242fi
21243echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21244echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21245
21246fi
21247if test $ac_cv_header_tiffio_h = yes; then
21248
21249 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21250echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21251if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253else
21254 ac_check_lib_save_LIBS=$LIBS
21255LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21256cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h. */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h. */
21262
21263/* Override any gcc2 internal prototype to avoid an error. */
21264#ifdef __cplusplus
21265extern "C"
21266#endif
21267/* We use char because int might match the return type of a gcc2
21268 builtin and then its argument prototype would still apply. */
21269char TIFFError ();
21270int
21271main ()
21272{
21273TIFFError ();
21274 ;
21275 return 0;
21276}
21277_ACEOF
21278rm -f conftest.$ac_objext conftest$ac_exeext
21279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21280 (eval $ac_link) 2>conftest.er1
a848cd7e 21281 ac_status=$?
ac1cb8d3
VS
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
a848cd7e
SC
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } &&
ac1cb8d3
VS
21287 { ac_try='test -z "$ac_c_werror_flag"
21288 || test ! -s conftest.err'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; } &&
21294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ac_cv_lib_tiff_TIFFError=yes
21301else
21302 echo "$as_me: failed program was:" >&5
21303sed 's/^/| /' conftest.$ac_ext >&5
21304
21305ac_cv_lib_tiff_TIFFError=no
21306fi
ac1cb8d3
VS
21307rm -f conftest.err conftest.$ac_objext \
21308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21309LIBS=$ac_check_lib_save_LIBS
21310fi
21311echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21312echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21313if test $ac_cv_lib_tiff_TIFFError = yes; then
21314 TIFF_LINK=" -ltiff"
21315fi
21316
21317
21318
21319fi
21320
21321
21322
21323 if test "x$TIFF_LINK" = "x" ; then
21324 if test "$wxUSE_LIBTIFF" = "sys" ; then
21325 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21326echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21327 { (exit 1); exit 1; }; }
21328 else
21329 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21330echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21331 wxUSE_LIBTIFF=builtin
21332 fi
21333 else
21334 wxUSE_LIBTIFF=sys
21335 fi
21336 fi
21337fi
21338
21339
21340if test "$wxUSE_EXPAT" != "no"; then
21341 wxUSE_XML=yes
21342 cat >>confdefs.h <<\_ACEOF
21343#define wxUSE_EXPAT 1
21344_ACEOF
21345
21346 cat >>confdefs.h <<\_ACEOF
21347#define wxUSE_XML 1
21348_ACEOF
21349
21350
21351 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21352 if test "${ac_cv_header_expat_h+set}" = set; then
21353 echo "$as_me:$LINENO: checking for expat.h" >&5
21354echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21355if test "${ac_cv_header_expat_h+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21357fi
21358echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21359echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21360else
21361 # Is the header compilable?
21362echo "$as_me:$LINENO: checking expat.h usability" >&5
21363echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21364cat >conftest.$ac_ext <<_ACEOF
21365/* confdefs.h. */
21366_ACEOF
21367cat confdefs.h >>conftest.$ac_ext
21368cat >>conftest.$ac_ext <<_ACEOF
21369/* end confdefs.h. */
21370$ac_includes_default
21371#include <expat.h>
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21375 (eval $ac_compile) 2>conftest.er1
a848cd7e 21376 ac_status=$?
ac1cb8d3
VS
21377 grep -v '^ *+' conftest.er1 >conftest.err
21378 rm -f conftest.er1
21379 cat conftest.err >&5
a848cd7e
SC
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
ac1cb8d3
VS
21382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_header_compiler=yes
21396else
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400ac_header_compiler=no
21401fi
ac1cb8d3 21402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21404echo "${ECHO_T}$ac_header_compiler" >&6
21405
21406# Is the header present?
21407echo "$as_me:$LINENO: checking expat.h presence" >&5
21408echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21409cat >conftest.$ac_ext <<_ACEOF
21410/* confdefs.h. */
21411_ACEOF
21412cat confdefs.h >>conftest.$ac_ext
21413cat >>conftest.$ac_ext <<_ACEOF
21414/* end confdefs.h. */
21415#include <expat.h>
21416_ACEOF
21417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } >/dev/null; then
21425 if test -s conftest.err; then
21426 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21428 else
21429 ac_cpp_err=
21430 fi
21431else
21432 ac_cpp_err=yes
21433fi
21434if test -z "$ac_cpp_err"; then
21435 ac_header_preproc=yes
21436else
21437 echo "$as_me: failed program was:" >&5
21438sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 ac_header_preproc=no
21441fi
21442rm -f conftest.err conftest.$ac_ext
21443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21444echo "${ECHO_T}$ac_header_preproc" >&6
21445
21446# So? What about this header?
ac1cb8d3
VS
21447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21448 yes:no: )
a848cd7e
SC
21449 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21450echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21451 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21452echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21453 ac_header_preproc=yes
a848cd7e 21454 ;;
ac1cb8d3 21455 no:yes:* )
a848cd7e
SC
21456 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21457echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21458 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21459echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21461echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21463echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21464 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21465echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21466 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21467echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21468 (
21469 cat <<\_ASBOX
ac1cb8d3
VS
21470## ----------------------------------------- ##
21471## Report this to wx-dev@lists.wxwidgets.org ##
21472## ----------------------------------------- ##
a848cd7e
SC
21473_ASBOX
21474 ) |
21475 sed "s/^/$as_me: WARNING: /" >&2
21476 ;;
21477esac
21478echo "$as_me:$LINENO: checking for expat.h" >&5
21479echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21480if test "${ac_cv_header_expat_h+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482else
21483 ac_cv_header_expat_h=$ac_header_preproc
21484fi
21485echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21486echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21487
21488fi
21489if test $ac_cv_header_expat_h = yes; then
21490 found_expat_h=1
21491fi
21492
21493
21494 if test "x$found_expat_h" = "x1"; then
21495 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21496echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21497if test "${wx_cv_expat_is_not_broken+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499else
21500
21501
21502
21503 ac_ext=cc
21504ac_cpp='$CXXCPP $CPPFLAGS'
21505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21508
21509 cat >conftest.$ac_ext <<_ACEOF
21510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
21515#include <expat.h>
21516int
21517main ()
21518{
21519
21520 ;
21521 return 0;
21522}
21523_ACEOF
21524rm -f conftest.$ac_objext
21525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21526 (eval $ac_compile) 2>conftest.er1
a848cd7e 21527 ac_status=$?
ac1cb8d3
VS
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
a848cd7e
SC
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
ac1cb8d3
VS
21533 { ac_try='test -z "$ac_cxx_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 wx_cv_expat_is_not_broken=yes
21547else
21548 echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
21551wx_cv_expat_is_not_broken=no
21552
21553fi
ac1cb8d3 21554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21555 ac_ext=c
21556ac_cpp='$CPP $CPPFLAGS'
21557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21559ac_compiler_gnu=$ac_cv_c_compiler_gnu
21560
21561
21562
21563fi
21564echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21565echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21566 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21567 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21568echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21569if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571else
21572 ac_check_lib_save_LIBS=$LIBS
21573LIBS="-lexpat $LIBS"
21574cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h. */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h. */
21580
21581/* Override any gcc2 internal prototype to avoid an error. */
21582#ifdef __cplusplus
21583extern "C"
21584#endif
21585/* We use char because int might match the return type of a gcc2
21586 builtin and then its argument prototype would still apply. */
21587char XML_ParserCreate ();
21588int
21589main ()
21590{
21591XML_ParserCreate ();
21592 ;
21593 return 0;
21594}
21595_ACEOF
21596rm -f conftest.$ac_objext conftest$ac_exeext
21597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21598 (eval $ac_link) 2>conftest.er1
a848cd7e 21599 ac_status=$?
ac1cb8d3
VS
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
a848cd7e
SC
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
ac1cb8d3
VS
21605 { ac_try='test -z "$ac_c_werror_flag"
21606 || test ! -s conftest.err'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_cv_lib_expat_XML_ParserCreate=yes
21619else
21620 echo "$as_me: failed program was:" >&5
21621sed 's/^/| /' conftest.$ac_ext >&5
21622
21623ac_cv_lib_expat_XML_ParserCreate=no
21624fi
ac1cb8d3
VS
21625rm -f conftest.err conftest.$ac_objext \
21626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21627LIBS=$ac_check_lib_save_LIBS
21628fi
21629echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21630echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21631if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21632 EXPAT_LINK=" -lexpat"
21633fi
21634
21635 fi
21636 fi
21637 if test "x$EXPAT_LINK" = "x" ; then
21638 if test "$wxUSE_EXPAT" = "sys" ; then
21639 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21640echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21641 { (exit 1); exit 1; }; }
21642 else
21643 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21644echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21645 wxUSE_EXPAT=builtin
21646 fi
21647 else
21648 wxUSE_EXPAT=sys
21649 fi
21650 fi
21651 if test "$wxUSE_EXPAT" = "builtin" ; then
21652
21653
21654subdirs="$subdirs src/expat"
21655
21656 fi
21657fi
21658
21659
21660
21661if test "$wxUSE_LIBMSPACK" != "no"; then
21662
21663 if test "${ac_cv_header_mspack_h+set}" = set; then
21664 echo "$as_me:$LINENO: checking for mspack.h" >&5
21665echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21666if test "${ac_cv_header_mspack_h+set}" = set; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21668fi
21669echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21670echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21671else
21672 # Is the header compilable?
21673echo "$as_me:$LINENO: checking mspack.h usability" >&5
21674echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21675cat >conftest.$ac_ext <<_ACEOF
21676/* confdefs.h. */
21677_ACEOF
21678cat confdefs.h >>conftest.$ac_ext
21679cat >>conftest.$ac_ext <<_ACEOF
21680/* end confdefs.h. */
21681$ac_includes_default
21682#include <mspack.h>
21683_ACEOF
21684rm -f conftest.$ac_objext
21685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21686 (eval $ac_compile) 2>conftest.er1
a848cd7e 21687 ac_status=$?
ac1cb8d3
VS
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
a848cd7e
SC
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
ac1cb8d3
VS
21693 { ac_try='test -z "$ac_c_werror_flag"
21694 || test ! -s conftest.err'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; }; then
21706 ac_header_compiler=yes
21707else
21708 echo "$as_me: failed program was:" >&5
21709sed 's/^/| /' conftest.$ac_ext >&5
21710
21711ac_header_compiler=no
21712fi
ac1cb8d3 21713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21715echo "${ECHO_T}$ac_header_compiler" >&6
21716
21717# Is the header present?
21718echo "$as_me:$LINENO: checking mspack.h presence" >&5
21719echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21720cat >conftest.$ac_ext <<_ACEOF
21721/* confdefs.h. */
21722_ACEOF
21723cat confdefs.h >>conftest.$ac_ext
21724cat >>conftest.$ac_ext <<_ACEOF
21725/* end confdefs.h. */
21726#include <mspack.h>
21727_ACEOF
21728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } >/dev/null; then
21736 if test -s conftest.err; then
21737 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21739 else
21740 ac_cpp_err=
21741 fi
21742else
21743 ac_cpp_err=yes
21744fi
21745if test -z "$ac_cpp_err"; then
21746 ac_header_preproc=yes
21747else
21748 echo "$as_me: failed program was:" >&5
21749sed 's/^/| /' conftest.$ac_ext >&5
21750
21751 ac_header_preproc=no
21752fi
21753rm -f conftest.err conftest.$ac_ext
21754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21755echo "${ECHO_T}$ac_header_preproc" >&6
21756
21757# So? What about this header?
ac1cb8d3
VS
21758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21759 yes:no: )
a848cd7e
SC
21760 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21761echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21762 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21763echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21764 ac_header_preproc=yes
a848cd7e 21765 ;;
ac1cb8d3 21766 no:yes:* )
a848cd7e
SC
21767 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21768echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21769 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21770echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21772echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21774echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21775 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21776echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21777 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21778echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21779 (
21780 cat <<\_ASBOX
ac1cb8d3
VS
21781## ----------------------------------------- ##
21782## Report this to wx-dev@lists.wxwidgets.org ##
21783## ----------------------------------------- ##
a848cd7e
SC
21784_ASBOX
21785 ) |
21786 sed "s/^/$as_me: WARNING: /" >&2
21787 ;;
21788esac
21789echo "$as_me:$LINENO: checking for mspack.h" >&5
21790echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21791if test "${ac_cv_header_mspack_h+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793else
21794 ac_cv_header_mspack_h=$ac_header_preproc
21795fi
21796echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21797echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21798
21799fi
21800if test $ac_cv_header_mspack_h = yes; then
21801 found_mspack_h=1
21802fi
21803
21804
21805 if test "x$found_mspack_h" = "x1"; then
21806 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21807echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21808if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21810else
21811 ac_check_lib_save_LIBS=$LIBS
21812LIBS="-lmspack $LIBS"
21813cat >conftest.$ac_ext <<_ACEOF
21814/* confdefs.h. */
21815_ACEOF
21816cat confdefs.h >>conftest.$ac_ext
21817cat >>conftest.$ac_ext <<_ACEOF
21818/* end confdefs.h. */
21819
21820/* Override any gcc2 internal prototype to avoid an error. */
21821#ifdef __cplusplus
21822extern "C"
21823#endif
21824/* We use char because int might match the return type of a gcc2
21825 builtin and then its argument prototype would still apply. */
21826char mspack_create_chm_decompressor ();
21827int
21828main ()
21829{
21830mspack_create_chm_decompressor ();
21831 ;
21832 return 0;
21833}
21834_ACEOF
21835rm -f conftest.$ac_objext conftest$ac_exeext
21836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21837 (eval $ac_link) 2>conftest.er1
a848cd7e 21838 ac_status=$?
ac1cb8d3
VS
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
a848cd7e
SC
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
ac1cb8d3
VS
21844 { ac_try='test -z "$ac_c_werror_flag"
21845 || test ! -s conftest.err'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21857 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21858else
21859 echo "$as_me: failed program was:" >&5
21860sed 's/^/| /' conftest.$ac_ext >&5
21861
21862ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21863fi
ac1cb8d3
VS
21864rm -f conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21866LIBS=$ac_check_lib_save_LIBS
21867fi
21868echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21869echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21870if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21871 MSPACK_LINK=" -lmspack"
21872fi
21873
21874 fi
21875 if test "x$MSPACK_LINK" = "x" ; then
21876 wxUSE_LIBMSPACK=no
21877 else
21878 cat >>confdefs.h <<\_ACEOF
21879#define wxUSE_LIBMSPACK 1
21880_ACEOF
21881
21882 fi
21883fi
21884
21885
21886
21887AFMINSTALL=
21888WIN32INSTALL=
21889
21890TOOLKIT=
21891TOOLKIT_INCLUDE=
21892WIDGET_SET=
21893
21894if test "$USE_WIN32" = 1 ; then
21895
21896for ac_header in w32api.h
21897do
21898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21899if eval "test \"\${$as_ac_Header+set}\" = set"; then
21900 echo "$as_me:$LINENO: checking for $ac_header" >&5
21901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21902if eval "test \"\${$as_ac_Header+set}\" = set"; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904fi
21905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21907else
21908 # Is the header compilable?
21909echo "$as_me:$LINENO: checking $ac_header usability" >&5
21910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21911cat >conftest.$ac_ext <<_ACEOF
21912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
21917$ac_includes_default
21918#include <$ac_header>
21919_ACEOF
21920rm -f conftest.$ac_objext
21921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21922 (eval $ac_compile) 2>conftest.er1
a848cd7e 21923 ac_status=$?
ac1cb8d3
VS
21924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
a848cd7e
SC
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } &&
ac1cb8d3
VS
21929 { ac_try='test -z "$ac_c_werror_flag"
21930 || test ! -s conftest.err'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21933 ac_status=$?
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; } &&
21936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
21942 ac_header_compiler=yes
21943else
21944 echo "$as_me: failed program was:" >&5
21945sed 's/^/| /' conftest.$ac_ext >&5
21946
21947ac_header_compiler=no
21948fi
ac1cb8d3 21949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21951echo "${ECHO_T}$ac_header_compiler" >&6
21952
21953# Is the header present?
21954echo "$as_me:$LINENO: checking $ac_header presence" >&5
21955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21956cat >conftest.$ac_ext <<_ACEOF
21957/* confdefs.h. */
21958_ACEOF
21959cat confdefs.h >>conftest.$ac_ext
21960cat >>conftest.$ac_ext <<_ACEOF
21961/* end confdefs.h. */
21962#include <$ac_header>
21963_ACEOF
21964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } >/dev/null; then
21972 if test -s conftest.err; then
21973 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21975 else
21976 ac_cpp_err=
21977 fi
21978else
21979 ac_cpp_err=yes
21980fi
21981if test -z "$ac_cpp_err"; then
21982 ac_header_preproc=yes
21983else
21984 echo "$as_me: failed program was:" >&5
21985sed 's/^/| /' conftest.$ac_ext >&5
21986
21987 ac_header_preproc=no
21988fi
21989rm -f conftest.err conftest.$ac_ext
21990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21991echo "${ECHO_T}$ac_header_preproc" >&6
21992
21993# So? What about this header?
ac1cb8d3
VS
21994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21995 yes:no: )
a848cd7e
SC
21996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22000 ac_header_preproc=yes
a848cd7e 22001 ;;
ac1cb8d3 22002 no:yes:* )
a848cd7e
SC
22003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22015 (
22016 cat <<\_ASBOX
ac1cb8d3
VS
22017## ----------------------------------------- ##
22018## Report this to wx-dev@lists.wxwidgets.org ##
22019## ----------------------------------------- ##
a848cd7e
SC
22020_ASBOX
22021 ) |
22022 sed "s/^/$as_me: WARNING: /" >&2
22023 ;;
22024esac
22025echo "$as_me:$LINENO: checking for $ac_header" >&5
22026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22027if eval "test \"\${$as_ac_Header+set}\" = set"; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029else
ac1cb8d3 22030 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22031fi
22032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22034
22035fi
22036if test `eval echo '${'$as_ac_Header'}'` = yes; then
22037 cat >>confdefs.h <<_ACEOF
22038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22039_ACEOF
22040
22041fi
22042
22043done
22044
22045 if test "${ac_cv_header_windows_h+set}" = set; then
22046 echo "$as_me:$LINENO: checking for windows.h" >&5
22047echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22048if test "${ac_cv_header_windows_h+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050fi
22051echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22052echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22053else
22054 # Is the header compilable?
22055echo "$as_me:$LINENO: checking windows.h usability" >&5
22056echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22057cat >conftest.$ac_ext <<_ACEOF
22058/* confdefs.h. */
22059_ACEOF
22060cat confdefs.h >>conftest.$ac_ext
22061cat >>conftest.$ac_ext <<_ACEOF
22062/* end confdefs.h. */
22063$ac_includes_default
22064#include <windows.h>
22065_ACEOF
22066rm -f conftest.$ac_objext
22067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22068 (eval $ac_compile) 2>conftest.er1
a848cd7e 22069 ac_status=$?
ac1cb8d3
VS
22070 grep -v '^ *+' conftest.er1 >conftest.err
22071 rm -f conftest.er1
22072 cat conftest.err >&5
a848cd7e
SC
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } &&
ac1cb8d3
VS
22075 { ac_try='test -z "$ac_c_werror_flag"
22076 || test ! -s conftest.err'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22088 ac_header_compiler=yes
22089else
22090 echo "$as_me: failed program was:" >&5
22091sed 's/^/| /' conftest.$ac_ext >&5
22092
22093ac_header_compiler=no
22094fi
ac1cb8d3 22095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22097echo "${ECHO_T}$ac_header_compiler" >&6
22098
22099# Is the header present?
22100echo "$as_me:$LINENO: checking windows.h presence" >&5
22101echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22102cat >conftest.$ac_ext <<_ACEOF
22103/* confdefs.h. */
22104_ACEOF
22105cat confdefs.h >>conftest.$ac_ext
22106cat >>conftest.$ac_ext <<_ACEOF
22107/* end confdefs.h. */
22108#include <windows.h>
22109_ACEOF
22110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } >/dev/null; then
22118 if test -s conftest.err; then
22119 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22121 else
22122 ac_cpp_err=
22123 fi
22124else
22125 ac_cpp_err=yes
22126fi
22127if test -z "$ac_cpp_err"; then
22128 ac_header_preproc=yes
22129else
22130 echo "$as_me: failed program was:" >&5
22131sed 's/^/| /' conftest.$ac_ext >&5
22132
22133 ac_header_preproc=no
22134fi
22135rm -f conftest.err conftest.$ac_ext
22136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22137echo "${ECHO_T}$ac_header_preproc" >&6
22138
22139# So? What about this header?
ac1cb8d3
VS
22140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22141 yes:no: )
a848cd7e
SC
22142 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22143echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22144 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22145echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22146 ac_header_preproc=yes
a848cd7e 22147 ;;
ac1cb8d3 22148 no:yes:* )
a848cd7e
SC
22149 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22150echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22151 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22152echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22154echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22156echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22157 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22158echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22159 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22160echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22161 (
22162 cat <<\_ASBOX
ac1cb8d3
VS
22163## ----------------------------------------- ##
22164## Report this to wx-dev@lists.wxwidgets.org ##
22165## ----------------------------------------- ##
a848cd7e
SC
22166_ASBOX
22167 ) |
22168 sed "s/^/$as_me: WARNING: /" >&2
22169 ;;
22170esac
22171echo "$as_me:$LINENO: checking for windows.h" >&5
22172echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22173if test "${ac_cv_header_windows_h+set}" = set; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22175else
22176 ac_cv_header_windows_h=$ac_header_preproc
22177fi
22178echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22179echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22180
22181fi
22182if test $ac_cv_header_windows_h = yes; then
22183 :
22184else
22185
22186 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22187echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22188 { (exit 1); exit 1; }; }
22189
22190fi
22191
22192
22193
22194 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22195
22196 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22197 LIBS="$LIBS -loleacc"
22198 fi
22199
22200 case "${host}" in
22201 *-*-cygwin* )
22202 LIBS="$LIBS -lkernel32 -luser32"
22203 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22204 esac
22205
22206 if test "$wxUSE_ODBC" = "sys" ; then
22207 wxUSE_ODBC = "yes"
22208 fi
22209 if test "$wxUSE_ODBC" = "yes" ; then
22210 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22211 cat >>confdefs.h <<\_ACEOF
22212#define wxUSE_ODBC 1
22213_ACEOF
22214
22215 fi
22216
22217 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22218 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22219
22220 WIN32INSTALL=win32install
22221fi
22222
22223if test "$wxUSE_GUI" = "yes"; then
22224 USE_GUI=1
22225
22226 GUI_TK_LIBRARY=
22227
22228 WXGTK12=
22229 WXGTK127=
22230 WXGTK20=
22231 WXGPE=
22232
22233 if test "$wxUSE_MSW" = 1 ; then
22234 TOOLKIT=MSW
22235 GUIDIST=MSW_DIST
22236
22237 case "${host}" in
22238 *-*-mingw32* )
22239 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22240 esac
22241 fi
22242
22243 if test "$wxUSE_GTK" = 1; then
22244 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22245echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22246
22247 gtk_version_cached=1
22248 if test "${wx_cv_lib_gtk+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22250else
22251
22252 gtk_version_cached=0
22253 echo "$as_me:$LINENO: result: " >&5
22254echo "${ECHO_T}" >&6
22255
22256 GTK_MODULES=
22257 if test "$wxUSE_THREADS" = "yes"; then
22258 GTK_MODULES=gthread
22259 fi
22260
22261 wx_cv_lib_gtk=
22262 if test "x$wxUSE_GTK2" = "xyes"; then
22263 # Check whether --enable-gtktest or --disable-gtktest was given.
22264if test "${enable_gtktest+set}" = set; then
22265 enableval="$enable_gtktest"
22266
22267else
22268 enable_gtktest=yes
22269fi;
22270
22271 pkg_config_args=gtk+-2.0
22272 for module in . $GTK_MODULES
22273 do
22274 case "$module" in
22275 gthread)
22276 pkg_config_args="$pkg_config_args gthread-2.0"
22277 ;;
22278 esac
22279 done
22280
22281 no_gtk=""
22282
22283 # Extract the first word of "pkg-config", so it can be a program name with args.
22284set dummy pkg-config; ac_word=$2
22285echo "$as_me:$LINENO: checking for $ac_word" >&5
22286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22287if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290 case $PKG_CONFIG in
22291 [\\/]* | ?:[\\/]*)
22292 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22293 ;;
22294 *)
22295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22296for as_dir in $PATH
22297do
22298 IFS=$as_save_IFS
22299 test -z "$as_dir" && as_dir=.
22300 for ac_exec_ext in '' $ac_executable_extensions; do
22301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22302 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22304 break 2
22305 fi
22306done
22307done
22308
22309 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22310 ;;
22311esac
22312fi
22313PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22314
22315if test -n "$PKG_CONFIG"; then
22316 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22317echo "${ECHO_T}$PKG_CONFIG" >&6
22318else
22319 echo "$as_me:$LINENO: result: no" >&5
22320echo "${ECHO_T}no" >&6
22321fi
22322
22323
22324 if test x$PKG_CONFIG != xno ; then
22325 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22326 :
22327 else
c2218763 22328 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22329 no_gtk=yes
22330 PKG_CONFIG=no
22331 fi
22332 else
22333 no_gtk=yes
22334 fi
22335
22336 min_gtk_version=2.0.0
22337 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22338echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22339
22340 if test x$PKG_CONFIG != xno ; then
22341 ## don't try to run the test against uninstalled libtool libs
22342 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22343 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22344 enable_gtktest=no
22345 fi
22346
22347 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22348 :
22349 else
22350 no_gtk=yes
22351 fi
22352 fi
22353
22354 if test x"$no_gtk" = x ; then
22355 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22356 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22357 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22358 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22359 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22360 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22361 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22362 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22363 if test "x$enable_gtktest" = "xyes" ; then
22364 ac_save_CFLAGS="$CFLAGS"
22365 ac_save_LIBS="$LIBS"
22366 CFLAGS="$CFLAGS $GTK_CFLAGS"
22367 LIBS="$GTK_LIBS $LIBS"
22368 rm -f conf.gtktest
22369 if test "$cross_compiling" = yes; then
22370 echo $ac_n "cross compiling; assumed OK... $ac_c"
22371else
22372 cat >conftest.$ac_ext <<_ACEOF
22373/* confdefs.h. */
22374_ACEOF
22375cat confdefs.h >>conftest.$ac_ext
22376cat >>conftest.$ac_ext <<_ACEOF
22377/* end confdefs.h. */
22378
22379#include <gtk/gtk.h>
22380#include <stdio.h>
22381#include <stdlib.h>
22382
22383int
22384main ()
22385{
22386 int major, minor, micro;
22387 char *tmp_version;
22388
22389 system ("touch conf.gtktest");
22390
22391 /* HP/UX 9 (%@#!) writes to sscanf strings */
22392 tmp_version = g_strdup("$min_gtk_version");
22393 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22394 printf("%s, bad version string\n", "$min_gtk_version");
22395 exit(1);
22396 }
22397
22398 if ((gtk_major_version != $gtk_config_major_version) ||
22399 (gtk_minor_version != $gtk_config_minor_version) ||
22400 (gtk_micro_version != $gtk_config_micro_version))
22401 {
22402 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22403 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22404 gtk_major_version, gtk_minor_version, gtk_micro_version);
22405 printf ("*** was found! If pkg-config was correct, then it is best\n");
22406 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22407 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22408 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22409 printf("*** required on your system.\n");
22410 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22411 printf("*** to point to the correct configuration files\n");
22412 }
22413 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22414 (gtk_minor_version != GTK_MINOR_VERSION) ||
22415 (gtk_micro_version != GTK_MICRO_VERSION))
22416 {
22417 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22418 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22419 printf("*** library (version %d.%d.%d)\n",
22420 gtk_major_version, gtk_minor_version, gtk_micro_version);
22421 }
22422 else
22423 {
22424 if ((gtk_major_version > major) ||
22425 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22426 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22427 {
22428 return 0;
22429 }
22430 else
22431 {
22432 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22433 gtk_major_version, gtk_minor_version, gtk_micro_version);
22434 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22435 major, minor, micro);
22436 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22437 printf("***\n");
22438 printf("*** If you have already installed a sufficiently new version, this error\n");
22439 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22440 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22441 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22442 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22443 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22444 printf("*** so that the correct libraries are found at run-time))\n");
22445 }
22446 }
22447 return 1;
22448}
22449
22450_ACEOF
22451rm -f conftest$ac_exeext
22452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22453 (eval $ac_link) 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 :
22463else
22464 echo "$as_me: program exited with status $ac_status" >&5
22465echo "$as_me: failed program was:" >&5
22466sed 's/^/| /' conftest.$ac_ext >&5
22467
22468( exit $ac_status )
22469no_gtk=yes
22470fi
ac1cb8d3 22471rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22472fi
22473 CFLAGS="$ac_save_CFLAGS"
22474 LIBS="$ac_save_LIBS"
22475 fi
22476 fi
22477 if test "x$no_gtk" = x ; then
22478 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22479echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22480 wx_cv_lib_gtk=2.0
22481 else
22482 echo "$as_me:$LINENO: result: no" >&5
22483echo "${ECHO_T}no" >&6
22484 if test "$PKG_CONFIG" = "no" ; then
22485 echo "*** A new enough version of pkg-config was not found."
22486 echo "*** See http://pkgconfig.sourceforge.net"
22487 else
22488 if test -f conf.gtktest ; then
22489 :
22490 else
22491 echo "*** Could not run GTK+ test program, checking why..."
22492 ac_save_CFLAGS="$CFLAGS"
22493 ac_save_LIBS="$LIBS"
22494 CFLAGS="$CFLAGS $GTK_CFLAGS"
22495 LIBS="$LIBS $GTK_LIBS"
22496 cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502
22503#include <gtk/gtk.h>
22504#include <stdio.h>
22505
22506int
22507main ()
22508{
22509 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22510 ;
22511 return 0;
22512}
22513_ACEOF
22514rm -f conftest.$ac_objext conftest$ac_exeext
22515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22516 (eval $ac_link) 2>conftest.er1
a848cd7e 22517 ac_status=$?
ac1cb8d3
VS
22518 grep -v '^ *+' conftest.er1 >conftest.err
22519 rm -f conftest.er1
22520 cat conftest.err >&5
a848cd7e
SC
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
ac1cb8d3
VS
22523 { ac_try='test -z "$ac_c_werror_flag"
22524 || test ! -s conftest.err'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 echo "*** The test program compiled, but did not run. This usually means"
22537 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22538 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22539 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22540 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22541 echo "*** is required on your system"
22542 echo "***"
22543 echo "*** If you have an old version installed, it is best to remove it, although"
22544 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22545else
22546 echo "$as_me: failed program was:" >&5
22547sed 's/^/| /' conftest.$ac_ext >&5
22548
22549 echo "*** The test program failed to compile or link. See the file config.log for the"
22550 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22551fi
ac1cb8d3
VS
22552rm -f conftest.err conftest.$ac_objext \
22553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22554 CFLAGS="$ac_save_CFLAGS"
22555 LIBS="$ac_save_LIBS"
22556 fi
22557 fi
22558 GTK_CFLAGS=""
22559 GTK_LIBS=""
22560 :
22561 fi
22562
22563
22564 rm -f conf.gtktest
22565
22566 else
22567
22568# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22569if test "${with_gtk_prefix+set}" = set; then
22570 withval="$with_gtk_prefix"
22571 gtk_config_prefix="$withval"
22572else
22573 gtk_config_prefix=""
22574fi;
22575
22576# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22577if test "${with_gtk_exec_prefix+set}" = set; then
22578 withval="$with_gtk_exec_prefix"
22579 gtk_config_exec_prefix="$withval"
22580else
22581 gtk_config_exec_prefix=""
22582fi;
22583# Check whether --enable-gtktest or --disable-gtktest was given.
22584if test "${enable_gtktest+set}" = set; then
22585 enableval="$enable_gtktest"
22586
22587else
22588 enable_gtktest=yes
22589fi;
22590
22591 for module in . $GTK_MODULES
22592 do
22593 case "$module" in
22594 gthread)
22595 gtk_config_args="$gtk_config_args gthread"
22596 ;;
22597 esac
22598 done
22599
22600 if test x$gtk_config_exec_prefix != x ; then
22601 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22602 if test x${GTK_CONFIG+set} != xset ; then
22603 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22604 fi
22605 fi
22606 if test x$gtk_config_prefix != x ; then
22607 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22608 if test x${GTK_CONFIG+set} != xset ; then
22609 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22610 fi
22611 fi
22612
22613 # Extract the first word of "gtk-config", so it can be a program name with args.
22614set dummy gtk-config; ac_word=$2
22615echo "$as_me:$LINENO: checking for $ac_word" >&5
22616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22617if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22619else
22620 case $GTK_CONFIG in
22621 [\\/]* | ?:[\\/]*)
22622 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22623 ;;
22624 *)
22625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22626for as_dir in $PATH
22627do
22628 IFS=$as_save_IFS
22629 test -z "$as_dir" && as_dir=.
22630 for ac_exec_ext in '' $ac_executable_extensions; do
22631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22632 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22634 break 2
22635 fi
22636done
22637done
22638
22639 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22640 ;;
22641esac
22642fi
22643GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22644
22645if test -n "$GTK_CONFIG"; then
22646 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22647echo "${ECHO_T}$GTK_CONFIG" >&6
22648else
22649 echo "$as_me:$LINENO: result: no" >&5
22650echo "${ECHO_T}no" >&6
22651fi
22652
22653 min_gtk_version=1.2.7
22654 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22655echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22656 no_gtk=""
22657 if test "$GTK_CONFIG" = "no" ; then
22658 no_gtk=yes
22659 else
22660 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22661 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22662 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22663 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22664 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22666 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22668 if test "x$enable_gtktest" = "xyes" ; then
22669 ac_save_CFLAGS="$CFLAGS"
22670 ac_save_LIBS="$LIBS"
22671 CFLAGS="$CFLAGS $GTK_CFLAGS"
22672 LIBS="$GTK_LIBS $LIBS"
22673 rm -f conf.gtktest
22674 if test "$cross_compiling" = yes; then
22675 echo $ac_n "cross compiling; assumed OK... $ac_c"
22676else
22677 cat >conftest.$ac_ext <<_ACEOF
22678/* confdefs.h. */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h. */
22683
22684#include <gtk/gtk.h>
22685#include <stdio.h>
22686#include <stdlib.h>
22687
22688int
22689main ()
22690{
22691 int major, minor, micro;
22692 char *tmp_version;
22693
22694 system ("touch conf.gtktest");
22695
22696 /* HP/UX 9 (%@#!) writes to sscanf strings */
22697 tmp_version = g_strdup("$min_gtk_version");
22698 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22699 printf("%s, bad version string\n", "$min_gtk_version");
22700 exit(1);
22701 }
22702
22703 if ((gtk_major_version != $gtk_config_major_version) ||
22704 (gtk_minor_version != $gtk_config_minor_version) ||
22705 (gtk_micro_version != $gtk_config_micro_version))
22706 {
22707 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22708 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22709 gtk_major_version, gtk_minor_version, gtk_micro_version);
22710 printf ("*** was found! If gtk-config was correct, then it is best\n");
22711 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22712 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22713 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22714 printf("*** required on your system.\n");
22715 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22716 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22717 printf("*** before re-running configure\n");
22718 }
22719#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22720 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22721 (gtk_minor_version != GTK_MINOR_VERSION) ||
22722 (gtk_micro_version != GTK_MICRO_VERSION))
22723 {
22724 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22725 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22726 printf("*** library (version %d.%d.%d)\n",
22727 gtk_major_version, gtk_minor_version, gtk_micro_version);
22728 }
22729#endif /* defined (GTK_MAJOR_VERSION) ... */
22730 else
22731 {
22732 if ((gtk_major_version > major) ||
22733 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22734 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22735 {
22736 return 0;
22737 }
22738 else
22739 {
22740 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22741 gtk_major_version, gtk_minor_version, gtk_micro_version);
22742 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22743 major, minor, micro);
22744 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22745 printf("***\n");
22746 printf("*** If you have already installed a sufficiently new version, this error\n");
22747 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22748 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22749 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22750 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22751 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22752 printf("*** so that the correct libraries are found at run-time))\n");
22753 }
22754 }
22755 return 1;
22756}
22757
22758_ACEOF
22759rm -f conftest$ac_exeext
22760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761 (eval $ac_link) 2>&5
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
22770 :
22771else
22772 echo "$as_me: program exited with status $ac_status" >&5
22773echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776( exit $ac_status )
22777no_gtk=yes
22778fi
ac1cb8d3 22779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22780fi
22781 CFLAGS="$ac_save_CFLAGS"
22782 LIBS="$ac_save_LIBS"
22783 fi
22784 fi
22785 if test "x$no_gtk" = x ; then
22786 echo "$as_me:$LINENO: result: yes" >&5
22787echo "${ECHO_T}yes" >&6
22788 wx_cv_lib_gtk=1.2.7
22789 else
22790 echo "$as_me:$LINENO: result: no" >&5
22791echo "${ECHO_T}no" >&6
22792 if test "$GTK_CONFIG" = "no" ; then
22793 echo "*** The gtk-config script installed by GTK could not be found"
22794 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22795 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22796 echo "*** full path to gtk-config."
22797 else
22798 if test -f conf.gtktest ; then
22799 :
22800 else
22801 echo "*** Could not run GTK test program, checking why..."
22802 CFLAGS="$CFLAGS $GTK_CFLAGS"
22803 LIBS="$LIBS $GTK_LIBS"
22804 cat >conftest.$ac_ext <<_ACEOF
22805/* confdefs.h. */
22806_ACEOF
22807cat confdefs.h >>conftest.$ac_ext
22808cat >>conftest.$ac_ext <<_ACEOF
22809/* end confdefs.h. */
22810
22811#include <gtk/gtk.h>
22812#include <stdio.h>
22813
22814int
22815main ()
22816{
22817 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22818 ;
22819 return 0;
22820}
22821_ACEOF
22822rm -f conftest.$ac_objext conftest$ac_exeext
22823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22824 (eval $ac_link) 2>conftest.er1
a848cd7e 22825 ac_status=$?
ac1cb8d3
VS
22826 grep -v '^ *+' conftest.er1 >conftest.err
22827 rm -f conftest.er1
22828 cat conftest.err >&5
a848cd7e
SC
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } &&
ac1cb8d3
VS
22831 { ac_try='test -z "$ac_c_werror_flag"
22832 || test ! -s conftest.err'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; } &&
22838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840 (eval $ac_try) 2>&5
22841 ac_status=$?
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; }; then
22844 echo "*** The test program compiled, but did not run. This usually means"
22845 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22846 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22847 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22848 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22849 echo "*** is required on your system"
22850 echo "***"
22851 echo "*** If you have an old version installed, it is best to remove it, although"
22852 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22853 echo "***"
22854 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22855 echo "*** came with the system with the command"
22856 echo "***"
22857 echo "*** rpm --erase --nodeps gtk gtk-devel"
22858else
22859 echo "$as_me: failed program was:" >&5
22860sed 's/^/| /' conftest.$ac_ext >&5
22861
22862 echo "*** The test program failed to compile or link. See the file config.log for the"
22863 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22864 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22865 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22866fi
ac1cb8d3
VS
22867rm -f conftest.err conftest.$ac_objext \
22868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22869 CFLAGS="$ac_save_CFLAGS"
22870 LIBS="$ac_save_LIBS"
22871 fi
22872 fi
22873 GTK_CFLAGS=""
22874 GTK_LIBS=""
22875 :
22876 fi
22877
22878
22879 rm -f conf.gtktest
22880
22881
22882 if test -z "$wx_cv_lib_gtk"; then
22883
22884# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22885if test "${with_gtk_prefix+set}" = set; then
22886 withval="$with_gtk_prefix"
22887 gtk_config_prefix="$withval"
22888else
22889 gtk_config_prefix=""
22890fi;
22891
22892# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22893if test "${with_gtk_exec_prefix+set}" = set; then
22894 withval="$with_gtk_exec_prefix"
22895 gtk_config_exec_prefix="$withval"
22896else
22897 gtk_config_exec_prefix=""
22898fi;
22899# Check whether --enable-gtktest or --disable-gtktest was given.
22900if test "${enable_gtktest+set}" = set; then
22901 enableval="$enable_gtktest"
22902
22903else
22904 enable_gtktest=yes
22905fi;
22906
22907 for module in . $GTK_MODULES
22908 do
22909 case "$module" in
22910 gthread)
22911 gtk_config_args="$gtk_config_args gthread"
22912 ;;
22913 esac
22914 done
22915
22916 if test x$gtk_config_exec_prefix != x ; then
22917 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22918 if test x${GTK_CONFIG+set} != xset ; then
22919 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22920 fi
22921 fi
22922 if test x$gtk_config_prefix != x ; then
22923 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22924 if test x${GTK_CONFIG+set} != xset ; then
22925 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22926 fi
22927 fi
22928
22929 # Extract the first word of "gtk-config", so it can be a program name with args.
22930set dummy gtk-config; ac_word=$2
22931echo "$as_me:$LINENO: checking for $ac_word" >&5
22932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22933if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22935else
22936 case $GTK_CONFIG in
22937 [\\/]* | ?:[\\/]*)
22938 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22939 ;;
22940 *)
22941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22942for as_dir in $PATH
22943do
22944 IFS=$as_save_IFS
22945 test -z "$as_dir" && as_dir=.
22946 for ac_exec_ext in '' $ac_executable_extensions; do
22947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22948 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22950 break 2
22951 fi
22952done
22953done
22954
22955 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22956 ;;
22957esac
22958fi
22959GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22960
22961if test -n "$GTK_CONFIG"; then
22962 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22963echo "${ECHO_T}$GTK_CONFIG" >&6
22964else
22965 echo "$as_me:$LINENO: result: no" >&5
22966echo "${ECHO_T}no" >&6
22967fi
22968
22969 min_gtk_version=1.2.3
22970 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22971echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22972 no_gtk=""
22973 if test "$GTK_CONFIG" = "no" ; then
22974 no_gtk=yes
22975 else
22976 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22977 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22978 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22980 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22982 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22984 if test "x$enable_gtktest" = "xyes" ; then
22985 ac_save_CFLAGS="$CFLAGS"
22986 ac_save_LIBS="$LIBS"
22987 CFLAGS="$CFLAGS $GTK_CFLAGS"
22988 LIBS="$GTK_LIBS $LIBS"
22989 rm -f conf.gtktest
22990 if test "$cross_compiling" = yes; then
22991 echo $ac_n "cross compiling; assumed OK... $ac_c"
22992else
22993 cat >conftest.$ac_ext <<_ACEOF
22994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
22999
23000#include <gtk/gtk.h>
23001#include <stdio.h>
23002#include <stdlib.h>
23003
23004int
23005main ()
23006{
23007 int major, minor, micro;
23008 char *tmp_version;
23009
23010 system ("touch conf.gtktest");
23011
23012 /* HP/UX 9 (%@#!) writes to sscanf strings */
23013 tmp_version = g_strdup("$min_gtk_version");
23014 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23015 printf("%s, bad version string\n", "$min_gtk_version");
23016 exit(1);
23017 }
23018
23019 if ((gtk_major_version != $gtk_config_major_version) ||
23020 (gtk_minor_version != $gtk_config_minor_version) ||
23021 (gtk_micro_version != $gtk_config_micro_version))
23022 {
23023 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23024 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23025 gtk_major_version, gtk_minor_version, gtk_micro_version);
23026 printf ("*** was found! If gtk-config was correct, then it is best\n");
23027 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23028 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23029 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23030 printf("*** required on your system.\n");
23031 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23032 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23033 printf("*** before re-running configure\n");
23034 }
23035#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23036 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23037 (gtk_minor_version != GTK_MINOR_VERSION) ||
23038 (gtk_micro_version != GTK_MICRO_VERSION))
23039 {
23040 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23041 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23042 printf("*** library (version %d.%d.%d)\n",
23043 gtk_major_version, gtk_minor_version, gtk_micro_version);
23044 }
23045#endif /* defined (GTK_MAJOR_VERSION) ... */
23046 else
23047 {
23048 if ((gtk_major_version > major) ||
23049 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23050 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23051 {
23052 return 0;
23053 }
23054 else
23055 {
23056 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23057 gtk_major_version, gtk_minor_version, gtk_micro_version);
23058 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23059 major, minor, micro);
23060 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23061 printf("***\n");
23062 printf("*** If you have already installed a sufficiently new version, this error\n");
23063 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23064 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23065 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23066 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23067 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23068 printf("*** so that the correct libraries are found at run-time))\n");
23069 }
23070 }
23071 return 1;
23072}
23073
23074_ACEOF
23075rm -f conftest$ac_exeext
23076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23077 (eval $ac_link) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 :
23087else
23088 echo "$as_me: program exited with status $ac_status" >&5
23089echo "$as_me: failed program was:" >&5
23090sed 's/^/| /' conftest.$ac_ext >&5
23091
23092( exit $ac_status )
23093no_gtk=yes
23094fi
ac1cb8d3 23095rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23096fi
23097 CFLAGS="$ac_save_CFLAGS"
23098 LIBS="$ac_save_LIBS"
23099 fi
23100 fi
23101 if test "x$no_gtk" = x ; then
23102 echo "$as_me:$LINENO: result: yes" >&5
23103echo "${ECHO_T}yes" >&6
23104 wx_cv_lib_gtk=1.2.3
23105 else
23106 echo "$as_me:$LINENO: result: no" >&5
23107echo "${ECHO_T}no" >&6
23108 if test "$GTK_CONFIG" = "no" ; then
23109 echo "*** The gtk-config script installed by GTK could not be found"
23110 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23111 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23112 echo "*** full path to gtk-config."
23113 else
23114 if test -f conf.gtktest ; then
23115 :
23116 else
23117 echo "*** Could not run GTK test program, checking why..."
23118 CFLAGS="$CFLAGS $GTK_CFLAGS"
23119 LIBS="$LIBS $GTK_LIBS"
23120 cat >conftest.$ac_ext <<_ACEOF
23121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
23126
23127#include <gtk/gtk.h>
23128#include <stdio.h>
23129
23130int
23131main ()
23132{
23133 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23134 ;
23135 return 0;
23136}
23137_ACEOF
23138rm -f conftest.$ac_objext conftest$ac_exeext
23139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23140 (eval $ac_link) 2>conftest.er1
a848cd7e 23141 ac_status=$?
ac1cb8d3
VS
23142 grep -v '^ *+' conftest.er1 >conftest.err
23143 rm -f conftest.er1
23144 cat conftest.err >&5
a848cd7e
SC
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
ac1cb8d3
VS
23147 { ac_try='test -z "$ac_c_werror_flag"
23148 || test ! -s conftest.err'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 echo "*** The test program compiled, but did not run. This usually means"
23161 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23162 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23163 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23164 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23165 echo "*** is required on your system"
23166 echo "***"
23167 echo "*** If you have an old version installed, it is best to remove it, although"
23168 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23169 echo "***"
23170 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23171 echo "*** came with the system with the command"
23172 echo "***"
23173 echo "*** rpm --erase --nodeps gtk gtk-devel"
23174else
23175 echo "$as_me: failed program was:" >&5
23176sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 echo "*** The test program failed to compile or link. See the file config.log for the"
23179 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23180 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23181 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23182fi
ac1cb8d3
VS
23183rm -f conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23185 CFLAGS="$ac_save_CFLAGS"
23186 LIBS="$ac_save_LIBS"
23187 fi
23188 fi
23189 GTK_CFLAGS=""
23190 GTK_LIBS=""
23191 :
23192 fi
23193
23194
23195 rm -f conf.gtktest
23196
23197 fi
23198 fi
23199
23200 if test -z "$wx_cv_lib_gtk"; then
23201 wx_cv_lib_gtk=none
23202 else
23203 wx_cv_cflags_gtk=$GTK_CFLAGS
23204 wx_cv_libs_gtk=$GTK_LIBS
23205 fi
23206
23207
23208fi
23209
23210
23211 if test "$gtk_version_cached" = 1; then
23212 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23213echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23214 fi
23215
23216 case "$wx_cv_lib_gtk" in
23217 2.0) WXGTK20=1
23218 TOOLKIT_VERSION=2
23219 ;;
23220 1.2.7) WXGTK127=1
23221 WXGTK12=1
23222 ;;
23223 1.2.3) WXGTK12=1
23224 ;;
23225 *) { { echo "$as_me:$LINENO: error:
23226Please check that gtk-config is in path, the directory
23227where GTK+ libraries are installed (returned by
23228'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23229equivalent variable and GTK+ is version 1.2.3 or above.
23230 " >&5
23231echo "$as_me: error:
23232Please check that gtk-config is in path, the directory
23233where GTK+ libraries are installed (returned by
23234'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23235equivalent variable and GTK+ is version 1.2.3 or above.
23236 " >&2;}
23237 { (exit 1); exit 1; }; }
23238 ;;
23239 esac
23240
23241 if test "$WXGTK20" = 1; then
23242 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23243
23244 succeeded=no
23245
23246 if test -z "$PKG_CONFIG"; then
23247 # Extract the first word of "pkg-config", so it can be a program name with args.
23248set dummy pkg-config; ac_word=$2
23249echo "$as_me:$LINENO: checking for $ac_word" >&5
23250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23251if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23252 echo $ECHO_N "(cached) $ECHO_C" >&6
23253else
23254 case $PKG_CONFIG in
23255 [\\/]* | ?:[\\/]*)
23256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23257 ;;
23258 *)
23259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23260for as_dir in $PATH
23261do
23262 IFS=$as_save_IFS
23263 test -z "$as_dir" && as_dir=.
23264 for ac_exec_ext in '' $ac_executable_extensions; do
23265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23266 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23268 break 2
23269 fi
23270done
23271done
23272
23273 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23274 ;;
23275esac
23276fi
23277PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23278
23279if test -n "$PKG_CONFIG"; then
23280 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23281echo "${ECHO_T}$PKG_CONFIG" >&6
23282else
23283 echo "$as_me:$LINENO: result: no" >&5
23284echo "${ECHO_T}no" >&6
23285fi
23286
23287 fi
23288
23289 if test "$PKG_CONFIG" = "no" ; then
23290 echo "*** The pkg-config script could not be found. Make sure it is"
23291 echo "*** in your path, or set the PKG_CONFIG environment variable"
23292 echo "*** to the full path to pkg-config."
23293 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23294 else
23295 PKG_CONFIG_MIN_VERSION=0.9.0
23296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23297 echo "$as_me:$LINENO: checking for pangoft2" >&5
23298echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23299
23300 if $PKG_CONFIG --exists "pangoft2" ; then
23301 echo "$as_me:$LINENO: result: yes" >&5
23302echo "${ECHO_T}yes" >&6
23303 succeeded=yes
23304
23305 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23306echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23307 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23308 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23309echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23310
23311 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23312echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23313 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23314 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23315echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23316 else
23317 PANGOFT2_CFLAGS=""
23318 PANGOFT2_LIBS=""
23319 ## If we have a custom action on failure, don't print errors, but
23320 ## do set a variable so people can do so.
23321 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23322
23323 fi
23324
23325
23326
23327 else
23328 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23329 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23330 fi
23331 fi
23332
23333 if test $succeeded = yes; then
23334
23335 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23336 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23337
23338 else
23339
23340 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23341echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23342 wxUSE_PRINTING_ARCHITECTURE="no"
23343
23344
23345 fi
23346
23347 fi
304205f1
VS
23348
23349 save_CFLAGS="$CFLAGS"
23350 save_LIBS="$LIBS"
23351 CFLAGS="$CFLAGS $GTK_CFLAGS"
23352 LIBS="$LIBS $GTK_LIBS"
23353
23354for ac_func in pango_font_family_is_monospace
23355do
23356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23357echo "$as_me:$LINENO: checking for $ac_func" >&5
23358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23359if eval "test \"\${$as_ac_var+set}\" = set"; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23361else
23362 cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h. */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h. */
23368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23370#define $ac_func innocuous_$ac_func
23371
23372/* System header to define __stub macros and hopefully few prototypes,
23373 which can conflict with char $ac_func (); below.
23374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23375 <limits.h> exists even on freestanding compilers. */
23376
23377#ifdef __STDC__
23378# include <limits.h>
23379#else
23380# include <assert.h>
23381#endif
23382
23383#undef $ac_func
23384
23385/* Override any gcc2 internal prototype to avoid an error. */
23386#ifdef __cplusplus
23387extern "C"
23388{
23389#endif
23390/* We use char because int might match the return type of a gcc2
23391 builtin and then its argument prototype would still apply. */
23392char $ac_func ();
23393/* The GNU C library defines this for functions which it implements
23394 to always fail with ENOSYS. Some functions are actually named
23395 something starting with __ and the normal name is an alias. */
23396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23397choke me
23398#else
23399char (*f) () = $ac_func;
23400#endif
23401#ifdef __cplusplus
23402}
23403#endif
23404
23405int
23406main ()
23407{
23408return f != $ac_func;
23409 ;
23410 return 0;
23411}
23412_ACEOF
23413rm -f conftest.$ac_objext conftest$ac_exeext
23414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415 (eval $ac_link) 2>conftest.er1
23416 ac_status=$?
23417 grep -v '^ *+' conftest.er1 >conftest.err
23418 rm -f conftest.er1
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } &&
23422 { ac_try='test -z "$ac_c_werror_flag"
23423 || test ! -s conftest.err'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; } &&
23429 { ac_try='test -s conftest$ac_exeext'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 eval "$as_ac_var=yes"
23436else
23437 echo "$as_me: failed program was:" >&5
23438sed 's/^/| /' conftest.$ac_ext >&5
23439
23440eval "$as_ac_var=no"
23441fi
23442rm -f conftest.err conftest.$ac_objext \
23443 conftest$ac_exeext conftest.$ac_ext
23444fi
23445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23447if test `eval echo '${'$as_ac_var'}'` = yes; then
23448 cat >>confdefs.h <<_ACEOF
23449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23450_ACEOF
23451
23452fi
23453done
23454
23455 CFLAGS="$save_CFLAGS"
23456 LIBS="$save_LIBS"
a848cd7e
SC
23457 else
23458 if test "$wxUSE_UNICODE" = "yes"; then
23459 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23460echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23461 wxUSE_UNICODE=no
23462 fi
23463 fi
23464
23465 if test "$USE_DARWIN" != 1; then
23466
23467for ac_func in poll
23468do
23469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23470echo "$as_me:$LINENO: checking for $ac_func" >&5
23471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23472if eval "test \"\${$as_ac_var+set}\" = set"; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23474else
23475 cat >conftest.$ac_ext <<_ACEOF
23476/* confdefs.h. */
23477_ACEOF
23478cat confdefs.h >>conftest.$ac_ext
23479cat >>conftest.$ac_ext <<_ACEOF
23480/* end confdefs.h. */
ac1cb8d3
VS
23481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23483#define $ac_func innocuous_$ac_func
23484
a848cd7e
SC
23485/* System header to define __stub macros and hopefully few prototypes,
23486 which can conflict with char $ac_func (); below.
23487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23489
a848cd7e
SC
23490#ifdef __STDC__
23491# include <limits.h>
23492#else
23493# include <assert.h>
23494#endif
ac1cb8d3
VS
23495
23496#undef $ac_func
23497
a848cd7e
SC
23498/* Override any gcc2 internal prototype to avoid an error. */
23499#ifdef __cplusplus
23500extern "C"
23501{
23502#endif
23503/* We use char because int might match the return type of a gcc2
23504 builtin and then its argument prototype would still apply. */
23505char $ac_func ();
23506/* The GNU C library defines this for functions which it implements
23507 to always fail with ENOSYS. Some functions are actually named
23508 something starting with __ and the normal name is an alias. */
23509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23510choke me
23511#else
23512char (*f) () = $ac_func;
23513#endif
23514#ifdef __cplusplus
23515}
23516#endif
23517
23518int
23519main ()
23520{
23521return f != $ac_func;
23522 ;
23523 return 0;
23524}
23525_ACEOF
23526rm -f conftest.$ac_objext conftest$ac_exeext
23527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23528 (eval $ac_link) 2>conftest.er1
a848cd7e 23529 ac_status=$?
ac1cb8d3
VS
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
a848cd7e
SC
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } &&
ac1cb8d3
VS
23535 { ac_try='test -z "$ac_c_werror_flag"
23536 || test ! -s conftest.err'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; } &&
23542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544 (eval $ac_try) 2>&5
23545 ac_status=$?
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; }; then
23548 eval "$as_ac_var=yes"
23549else
23550 echo "$as_me: failed program was:" >&5
23551sed 's/^/| /' conftest.$ac_ext >&5
23552
23553eval "$as_ac_var=no"
23554fi
ac1cb8d3
VS
23555rm -f conftest.err conftest.$ac_objext \
23556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23557fi
23558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23560if test `eval echo '${'$as_ac_var'}'` = yes; then
23561 cat >>confdefs.h <<_ACEOF
23562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23563_ACEOF
23564
23565fi
23566done
23567
23568 fi
23569
23570 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23571 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23572
23573 AFMINSTALL=afminstall
23574 TOOLKIT=GTK
23575 GUIDIST=GTK_DIST
23576
23577 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23578echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23579if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23581else
23582 ac_check_lib_save_LIBS=$LIBS
23583LIBS="-lgdk $LIBS"
23584cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590
23591/* Override any gcc2 internal prototype to avoid an error. */
23592#ifdef __cplusplus
23593extern "C"
23594#endif
23595/* We use char because int might match the return type of a gcc2
23596 builtin and then its argument prototype would still apply. */
23597char gdk_im_open ();
23598int
23599main ()
23600{
23601gdk_im_open ();
23602 ;
23603 return 0;
23604}
23605_ACEOF
23606rm -f conftest.$ac_objext conftest$ac_exeext
23607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23608 (eval $ac_link) 2>conftest.er1
a848cd7e 23609 ac_status=$?
ac1cb8d3
VS
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
a848cd7e
SC
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } &&
ac1cb8d3
VS
23615 { ac_try='test -z "$ac_c_werror_flag"
23616 || test ! -s conftest.err'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; } &&
23622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 ac_cv_lib_gdk_gdk_im_open=yes
23629else
23630 echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633ac_cv_lib_gdk_gdk_im_open=no
23634fi
ac1cb8d3
VS
23635rm -f conftest.err conftest.$ac_objext \
23636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23637LIBS=$ac_check_lib_save_LIBS
23638fi
23639echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23640echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23641if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23642 cat >>confdefs.h <<\_ACEOF
23643#define HAVE_XIM 1
23644_ACEOF
23645
23646fi
23647
23648
23649
23650 if test "$wxUSE_GPE" = "yes"; then
23651 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23652echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23653
23654ac_find_libraries=
23655for ac_dir in $SEARCH_LIB /usr/lib;
23656 do
23657 for ac_extension in a so sl dylib; do
23658 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23659 ac_find_libraries=$ac_dir
23660 break 2
23661 fi
23662 done
23663 done
23664
23665 if test "$ac_find_libraries" != "" ; then
23666
23667 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23668 result=$?
23669 if test $result = 0; then
23670 ac_path_to_link=""
23671 else
23672 ac_path_to_link=" -L$ac_find_libraries"
23673 fi
23674
23675 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23676 WXGPE=1
23677 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23678echo "${ECHO_T}found at $ac_find_libraries" >&6
23679 else
23680 echo "$as_me:$LINENO: result: not found" >&5
23681echo "${ECHO_T}not found" >&6
23682 fi
23683
23684 fi
23685 fi
23686
23687 if test "$wxUSE_MGL" = 1; then
23688 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23689echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23690 if test "x$MGL_ROOT" = x ; then
23691 echo "$as_me:$LINENO: result: not found" >&5
23692echo "${ECHO_T}not found" >&6
23693 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23694echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23695 { (exit 1); exit 1; }; }
23696 else
23697 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23698echo "${ECHO_T}$MGL_ROOT" >&6
23699 fi
23700
23701 echo "$as_me:$LINENO: checking for libmgl location" >&5
23702echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23703 case "${host}" in
23704 *-*-linux* )
23705 if test "x$wxUSE_SHARED" = xyes ; then
23706 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23707 else
23708 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23709 fi
23710 ;;
23711 *-pc-msdosdjgpp )
23712 mgl_os_candidates="dos32/dj2"
23713 ;;
23714 *)
23715 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23716echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23717 { (exit 1); exit 1; }; }
23718 esac
23719
23720 mgl_lib_type=""
23721 mgl_os=""
23722
23723 for mgl_os_i in $mgl_os_candidates ; do
23724 if test "x$mgl_os" = x ; then
23725 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23726 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23727 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23728 mgl_lib_type=debug
23729 mgl_os=$mgl_os_i
23730 fi
23731 fi
23732 if test "x$mgl_lib_type" = x ; then
23733 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23734 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23735 mgl_lib_type=release
23736 mgl_os=$mgl_os_i
23737 fi
23738 fi
23739 fi
23740 done
23741
23742 if test "x$mgl_os" = x ; then
23743 echo "$as_me:$LINENO: result: not found" >&5
23744echo "${ECHO_T}not found" >&6
23745 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23746echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23747 { (exit 1); exit 1; }; }
23748 fi
23749 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23750echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23751
23752 wxUSE_UNIVERSAL="yes"
23753
23754 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23755 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23756
23757 AFMINSTALL=afminstall
23758 TOOLKIT=MGL
23759 GUIDIST=MGL_DIST
23760 fi
23761
23762 if test "$wxUSE_MICROWIN" = 1; then
23763 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23764echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23765 if test "x$MICROWINDOWS" = x ; then
23766 echo "$as_me:$LINENO: result: not found" >&5
23767echo "${ECHO_T}not found" >&6
23768 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23769echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23770 { (exit 1); exit 1; }; }
23771 else
23772 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23773echo "${ECHO_T}$MICROWINDOWS" >&6
23774 fi
23775
23776 if test -f $MICROWINDOWS/lib/libmwin.a; then
23777 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23778echo "${ECHO_T}MicroWindows' libraries found." >&6
23779 else
23780 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23781echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23782 { (exit 1); exit 1; }; }
23783 fi
23784
23785 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23786 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23787
23788 wxUSE_UNIVERSAL="yes"
23789
23790 AFMINSTALL=afminstall
23791 TOOLKIT=MICROWIN
23792 GUIDIST=MICROWIN_DIST
23793
23794 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23795 fi
23796
23797 if test "$wxUSE_X11" = 1; then
23798 echo "$as_me:$LINENO: checking for X" >&5
23799echo $ECHO_N "checking for X... $ECHO_C" >&6
23800
23801
23802# Check whether --with-x or --without-x was given.
23803if test "${with_x+set}" = set; then
23804 withval="$with_x"
23805
23806fi;
23807# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23808if test "x$with_x" = xno; then
23809 # The user explicitly disabled X.
23810 have_x=disabled
23811else
23812 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23813 # Both variables are already set.
23814 have_x=yes
23815 else
23816 if test "${ac_cv_have_x+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23818else
23819 # One or both of the vars are not set, and there is no cached value.
23820ac_x_includes=no ac_x_libraries=no
23821rm -fr conftest.dir
23822if mkdir conftest.dir; then
23823 cd conftest.dir
23824 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23825 cat >Imakefile <<'_ACEOF'
23826acfindx:
23827 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23828_ACEOF
23829 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23831 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23832 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23833 for ac_extension in a so sl; do
23834 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23835 test -f $ac_im_libdir/libX11.$ac_extension; then
23836 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23837 fi
23838 done
23839 # Screen out bogus values from the imake configuration. They are
23840 # bogus both because they are the default anyway, and because
23841 # using them would break gcc on systems where it needs fixed includes.
23842 case $ac_im_incroot in
23843 /usr/include) ;;
23844 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23845 esac
23846 case $ac_im_usrlibdir in
23847 /usr/lib | /lib) ;;
23848 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23849 esac
23850 fi
23851 cd ..
23852 rm -fr conftest.dir
23853fi
23854
23855# Standard set of common directories for X headers.
23856# Check X11 before X11Rn because it is often a symlink to the current release.
23857ac_x_header_dirs='
23858/usr/X11/include
23859/usr/X11R6/include
23860/usr/X11R5/include
23861/usr/X11R4/include
23862
23863/usr/include/X11
23864/usr/include/X11R6
23865/usr/include/X11R5
23866/usr/include/X11R4
23867
23868/usr/local/X11/include
23869/usr/local/X11R6/include
23870/usr/local/X11R5/include
23871/usr/local/X11R4/include
23872
23873/usr/local/include/X11
23874/usr/local/include/X11R6
23875/usr/local/include/X11R5
23876/usr/local/include/X11R4
23877
23878/usr/X386/include
23879/usr/x386/include
23880/usr/XFree86/include/X11
23881
23882/usr/include
23883/usr/local/include
23884/usr/unsupported/include
23885/usr/athena/include
23886/usr/local/x11r5/include
23887/usr/lpp/Xamples/include
23888
23889/usr/openwin/include
23890/usr/openwin/share/include'
23891
23892if test "$ac_x_includes" = no; then
23893 # Guess where to find include files, by looking for Intrinsic.h.
23894 # First, try using that file with no special directory specified.
23895 cat >conftest.$ac_ext <<_ACEOF
23896/* confdefs.h. */
23897_ACEOF
23898cat confdefs.h >>conftest.$ac_ext
23899cat >>conftest.$ac_ext <<_ACEOF
23900/* end confdefs.h. */
23901#include <X11/Intrinsic.h>
23902_ACEOF
23903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23905 ac_status=$?
23906 grep -v '^ *+' conftest.er1 >conftest.err
23907 rm -f conftest.er1
23908 cat conftest.err >&5
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } >/dev/null; then
23911 if test -s conftest.err; then
23912 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23914 else
23915 ac_cpp_err=
23916 fi
23917else
23918 ac_cpp_err=yes
23919fi
23920if test -z "$ac_cpp_err"; then
23921 # We can compile using X headers with no special include directory.
23922ac_x_includes=
23923else
23924 echo "$as_me: failed program was:" >&5
23925sed 's/^/| /' conftest.$ac_ext >&5
23926
23927 for ac_dir in $ac_x_header_dirs; do
23928 if test -r "$ac_dir/X11/Intrinsic.h"; then
23929 ac_x_includes=$ac_dir
23930 break
23931 fi
23932done
23933fi
23934rm -f conftest.err conftest.$ac_ext
23935fi # $ac_x_includes = no
23936
23937if test "$ac_x_libraries" = no; then
23938 # Check for the libraries.
23939 # See if we find them without any special options.
23940 # Don't add to $LIBS permanently.
23941 ac_save_LIBS=$LIBS
23942 LIBS="-lXt $LIBS"
23943 cat >conftest.$ac_ext <<_ACEOF
23944/* confdefs.h. */
23945_ACEOF
23946cat confdefs.h >>conftest.$ac_ext
23947cat >>conftest.$ac_ext <<_ACEOF
23948/* end confdefs.h. */
23949#include <X11/Intrinsic.h>
23950int
23951main ()
23952{
23953XtMalloc (0)
23954 ;
23955 return 0;
23956}
23957_ACEOF
23958rm -f conftest.$ac_objext conftest$ac_exeext
23959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23960 (eval $ac_link) 2>conftest.er1
a848cd7e 23961 ac_status=$?
ac1cb8d3
VS
23962 grep -v '^ *+' conftest.er1 >conftest.err
23963 rm -f conftest.er1
23964 cat conftest.err >&5
a848cd7e
SC
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } &&
ac1cb8d3
VS
23967 { ac_try='test -z "$ac_c_werror_flag"
23968 || test ! -s conftest.err'
23969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }; } &&
23974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; }; then
23980 LIBS=$ac_save_LIBS
23981# We can link X programs with no special library path.
23982ac_x_libraries=
23983else
23984 echo "$as_me: failed program was:" >&5
23985sed 's/^/| /' conftest.$ac_ext >&5
23986
23987LIBS=$ac_save_LIBS
23988for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23989do
23990 # Don't even attempt the hair of trying to link an X program!
23991 for ac_extension in a so sl; do
23992 if test -r $ac_dir/libXt.$ac_extension; then
23993 ac_x_libraries=$ac_dir
23994 break 2
23995 fi
23996 done
23997done
23998fi
ac1cb8d3
VS
23999rm -f conftest.err conftest.$ac_objext \
24000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24001fi # $ac_x_libraries = no
24002
24003if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24004 # Didn't find X anywhere. Cache the known absence of X.
24005 ac_cv_have_x="have_x=no"
24006else
24007 # Record where we found X for the cache.
24008 ac_cv_have_x="have_x=yes \
ac1cb8d3 24009 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24010fi
24011fi
24012
24013 fi
24014 eval "$ac_cv_have_x"
24015fi # $with_x != no
24016
24017if test "$have_x" != yes; then
24018 echo "$as_me:$LINENO: result: $have_x" >&5
24019echo "${ECHO_T}$have_x" >&6
24020 no_x=yes
24021else
24022 # If each of the values was on the command line, it overrides each guess.
24023 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24024 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24025 # Update the cache value to reflect the command line values.
24026 ac_cv_have_x="have_x=yes \
24027 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24028 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24029echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24030fi
24031
24032if test "$no_x" = yes; then
24033 # Not all programs may use this symbol, but it does not hurt to define it.
24034
24035cat >>confdefs.h <<\_ACEOF
24036#define X_DISPLAY_MISSING 1
24037_ACEOF
24038
24039 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24040else
24041 if test -n "$x_includes"; then
24042 X_CFLAGS="$X_CFLAGS -I$x_includes"
24043 fi
24044
24045 # It would also be nice to do this for all -L options, not just this one.
24046 if test -n "$x_libraries"; then
24047 X_LIBS="$X_LIBS -L$x_libraries"
24048 # For Solaris; some versions of Sun CC require a space after -R and
24049 # others require no space. Words are not sufficient . . . .
24050 case `(uname -sr) 2>/dev/null` in
24051 "SunOS 5"*)
24052 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24053echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24054 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24055 cat >conftest.$ac_ext <<_ACEOF
24056/* confdefs.h. */
24057_ACEOF
24058cat confdefs.h >>conftest.$ac_ext
24059cat >>conftest.$ac_ext <<_ACEOF
24060/* end confdefs.h. */
24061
24062int
24063main ()
24064{
24065
24066 ;
24067 return 0;
24068}
24069_ACEOF
24070rm -f conftest.$ac_objext conftest$ac_exeext
24071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24072 (eval $ac_link) 2>conftest.er1
a848cd7e 24073 ac_status=$?
ac1cb8d3
VS
24074 grep -v '^ *+' conftest.er1 >conftest.err
24075 rm -f conftest.er1
24076 cat conftest.err >&5
a848cd7e
SC
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } &&
ac1cb8d3
VS
24079 { ac_try='test -z "$ac_c_werror_flag"
24080 || test ! -s conftest.err'
24081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082 (eval $ac_try) 2>&5
24083 ac_status=$?
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); }; } &&
24086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24088 (eval $ac_try) 2>&5
24089 ac_status=$?
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); }; }; then
24092 ac_R_nospace=yes
24093else
24094 echo "$as_me: failed program was:" >&5
24095sed 's/^/| /' conftest.$ac_ext >&5
24096
24097ac_R_nospace=no
24098fi
ac1cb8d3
VS
24099rm -f conftest.err conftest.$ac_objext \
24100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24101 if test $ac_R_nospace = yes; then
24102 echo "$as_me:$LINENO: result: no" >&5
24103echo "${ECHO_T}no" >&6
24104 X_LIBS="$X_LIBS -R$x_libraries"
24105 else
24106 LIBS="$ac_xsave_LIBS -R $x_libraries"
24107 cat >conftest.$ac_ext <<_ACEOF
24108/* confdefs.h. */
24109_ACEOF
24110cat confdefs.h >>conftest.$ac_ext
24111cat >>conftest.$ac_ext <<_ACEOF
24112/* end confdefs.h. */
24113
24114int
24115main ()
24116{
24117
24118 ;
24119 return 0;
24120}
24121_ACEOF
24122rm -f conftest.$ac_objext conftest$ac_exeext
24123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24124 (eval $ac_link) 2>conftest.er1
a848cd7e 24125 ac_status=$?
ac1cb8d3
VS
24126 grep -v '^ *+' conftest.er1 >conftest.err
24127 rm -f conftest.er1
24128 cat conftest.err >&5
a848cd7e
SC
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } &&
ac1cb8d3
VS
24131 { ac_try='test -z "$ac_c_werror_flag"
24132 || test ! -s conftest.err'
24133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134 (eval $ac_try) 2>&5
24135 ac_status=$?
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; } &&
24138 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 ac_R_space=yes
24145else
24146 echo "$as_me: failed program was:" >&5
24147sed 's/^/| /' conftest.$ac_ext >&5
24148
24149ac_R_space=no
24150fi
ac1cb8d3
VS
24151rm -f conftest.err conftest.$ac_objext \
24152 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24153 if test $ac_R_space = yes; then
24154 echo "$as_me:$LINENO: result: yes" >&5
24155echo "${ECHO_T}yes" >&6
24156 X_LIBS="$X_LIBS -R $x_libraries"
24157 else
24158 echo "$as_me:$LINENO: result: neither works" >&5
24159echo "${ECHO_T}neither works" >&6
24160 fi
24161 fi
24162 LIBS=$ac_xsave_LIBS
24163 esac
24164 fi
24165
24166 # Check for system-dependent libraries X programs must link with.
24167 # Do this before checking for the system-independent R6 libraries
24168 # (-lICE), since we may need -lsocket or whatever for X linking.
24169
24170 if test "$ISC" = yes; then
24171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24172 else
24173 # Martyn Johnson says this is needed for Ultrix, if the X
24174 # libraries were built with DECnet support. And Karl Berry says
24175 # the Alpha needs dnet_stub (dnet does not exist).
24176 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24177 cat >conftest.$ac_ext <<_ACEOF
24178/* confdefs.h. */
24179_ACEOF
24180cat confdefs.h >>conftest.$ac_ext
24181cat >>conftest.$ac_ext <<_ACEOF
24182/* end confdefs.h. */
24183
24184/* Override any gcc2 internal prototype to avoid an error. */
24185#ifdef __cplusplus
24186extern "C"
24187#endif
24188/* We use char because int might match the return type of a gcc2
24189 builtin and then its argument prototype would still apply. */
24190char XOpenDisplay ();
24191int
24192main ()
24193{
24194XOpenDisplay ();
24195 ;
24196 return 0;
24197}
24198_ACEOF
24199rm -f conftest.$ac_objext conftest$ac_exeext
24200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24201 (eval $ac_link) 2>conftest.er1
a848cd7e 24202 ac_status=$?
ac1cb8d3
VS
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
a848cd7e
SC
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } &&
ac1cb8d3
VS
24208 { ac_try='test -z "$ac_c_werror_flag"
24209 || test ! -s conftest.err'
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; } &&
24215 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24218 ac_status=$?
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 :
24222else
24223 echo "$as_me: failed program was:" >&5
24224sed 's/^/| /' conftest.$ac_ext >&5
24225
24226echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24227echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24228if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24230else
24231 ac_check_lib_save_LIBS=$LIBS
24232LIBS="-ldnet $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); } &&
ac1cb8d3
VS
24264 { ac_try='test -z "$ac_c_werror_flag"
24265 || test ! -s conftest.err'
24266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); }; } &&
24271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; }; then
24277 ac_cv_lib_dnet_dnet_ntoa=yes
24278else
24279 echo "$as_me: failed program was:" >&5
24280sed 's/^/| /' conftest.$ac_ext >&5
24281
24282ac_cv_lib_dnet_dnet_ntoa=no
24283fi
ac1cb8d3
VS
24284rm -f conftest.err conftest.$ac_objext \
24285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24286LIBS=$ac_check_lib_save_LIBS
24287fi
24288echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24289echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24290if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24292fi
24293
24294 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24295 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24296echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24297if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24298 echo $ECHO_N "(cached) $ECHO_C" >&6
24299else
24300 ac_check_lib_save_LIBS=$LIBS
24301LIBS="-ldnet_stub $LIBS"
24302cat >conftest.$ac_ext <<_ACEOF
24303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
24308
24309/* Override any gcc2 internal prototype to avoid an error. */
24310#ifdef __cplusplus
24311extern "C"
24312#endif
24313/* We use char because int might match the return type of a gcc2
24314 builtin and then its argument prototype would still apply. */
24315char dnet_ntoa ();
24316int
24317main ()
24318{
24319dnet_ntoa ();
24320 ;
24321 return 0;
24322}
24323_ACEOF
24324rm -f conftest.$ac_objext conftest$ac_exeext
24325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24326 (eval $ac_link) 2>conftest.er1
a848cd7e 24327 ac_status=$?
ac1cb8d3
VS
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
a848cd7e
SC
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
ac1cb8d3
VS
24333 { ac_try='test -z "$ac_c_werror_flag"
24334 || test ! -s conftest.err'
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; } &&
24340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24343 ac_status=$?
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24347else
24348 echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351ac_cv_lib_dnet_stub_dnet_ntoa=no
24352fi
ac1cb8d3
VS
24353rm -f conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24355LIBS=$ac_check_lib_save_LIBS
24356fi
24357echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24358echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24359if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24360 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24361fi
24362
24363 fi
24364fi
ac1cb8d3
VS
24365rm -f conftest.err conftest.$ac_objext \
24366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24367 LIBS="$ac_xsave_LIBS"
24368
24369 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24370 # to get the SysV transport functions.
24371 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24372 # needs -lnsl.
24373 # The nsl library prevents programs from opening the X display
24374 # on Irix 5.2, according to T.E. Dickey.
24375 # The functions gethostbyname, getservbyname, and inet_addr are
24376 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24377 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24378echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24379if test "${ac_cv_func_gethostbyname+set}" = set; then
24380 echo $ECHO_N "(cached) $ECHO_C" >&6
24381else
24382 cat >conftest.$ac_ext <<_ACEOF
24383/* confdefs.h. */
24384_ACEOF
24385cat confdefs.h >>conftest.$ac_ext
24386cat >>conftest.$ac_ext <<_ACEOF
24387/* end confdefs.h. */
ac1cb8d3
VS
24388/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24390#define gethostbyname innocuous_gethostbyname
24391
a848cd7e
SC
24392/* System header to define __stub macros and hopefully few prototypes,
24393 which can conflict with char gethostbyname (); below.
24394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24395 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24396
a848cd7e
SC
24397#ifdef __STDC__
24398# include <limits.h>
24399#else
24400# include <assert.h>
24401#endif
ac1cb8d3
VS
24402
24403#undef gethostbyname
24404
a848cd7e
SC
24405/* Override any gcc2 internal prototype to avoid an error. */
24406#ifdef __cplusplus
24407extern "C"
24408{
24409#endif
24410/* We use char because int might match the return type of a gcc2
24411 builtin and then its argument prototype would still apply. */
24412char gethostbyname ();
24413/* The GNU C library defines this for functions which it implements
24414 to always fail with ENOSYS. Some functions are actually named
24415 something starting with __ and the normal name is an alias. */
24416#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24417choke me
24418#else
24419char (*f) () = gethostbyname;
24420#endif
24421#ifdef __cplusplus
24422}
24423#endif
24424
24425int
24426main ()
24427{
24428return f != gethostbyname;
24429 ;
24430 return 0;
24431}
24432_ACEOF
24433rm -f conftest.$ac_objext conftest$ac_exeext
24434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24435 (eval $ac_link) 2>conftest.er1
a848cd7e 24436 ac_status=$?
ac1cb8d3
VS
24437 grep -v '^ *+' conftest.er1 >conftest.err
24438 rm -f conftest.er1
24439 cat conftest.err >&5
a848cd7e
SC
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); } &&
ac1cb8d3
VS
24442 { ac_try='test -z "$ac_c_werror_flag"
24443 || test ! -s conftest.err'
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; } &&
24449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451 (eval $ac_try) 2>&5
24452 ac_status=$?
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; }; then
24455 ac_cv_func_gethostbyname=yes
24456else
24457 echo "$as_me: failed program was:" >&5
24458sed 's/^/| /' conftest.$ac_ext >&5
24459
24460ac_cv_func_gethostbyname=no
24461fi
ac1cb8d3
VS
24462rm -f conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24464fi
24465echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24466echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24467
24468 if test $ac_cv_func_gethostbyname = no; then
24469 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24470echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24471if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473else
24474 ac_check_lib_save_LIBS=$LIBS
24475LIBS="-lnsl $LIBS"
24476cat >conftest.$ac_ext <<_ACEOF
24477/* confdefs.h. */
24478_ACEOF
24479cat confdefs.h >>conftest.$ac_ext
24480cat >>conftest.$ac_ext <<_ACEOF
24481/* end confdefs.h. */
24482
24483/* Override any gcc2 internal prototype to avoid an error. */
24484#ifdef __cplusplus
24485extern "C"
24486#endif
24487/* We use char because int might match the return type of a gcc2
24488 builtin and then its argument prototype would still apply. */
24489char gethostbyname ();
24490int
24491main ()
24492{
24493gethostbyname ();
24494 ;
24495 return 0;
24496}
24497_ACEOF
24498rm -f conftest.$ac_objext conftest$ac_exeext
24499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24500 (eval $ac_link) 2>conftest.er1
24501 ac_status=$?
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } &&
24507 { ac_try='test -z "$ac_c_werror_flag"
24508 || test ! -s conftest.err'
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; } &&
24514 { ac_try='test -s conftest$ac_exeext'
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; }; then
24520 ac_cv_lib_nsl_gethostbyname=yes
24521else
24522 echo "$as_me: failed program was:" >&5
24523sed 's/^/| /' conftest.$ac_ext >&5
24524
24525ac_cv_lib_nsl_gethostbyname=no
24526fi
24527rm -f conftest.err conftest.$ac_objext \
24528 conftest$ac_exeext conftest.$ac_ext
24529LIBS=$ac_check_lib_save_LIBS
24530fi
24531echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24532echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24533if test $ac_cv_lib_nsl_gethostbyname = yes; then
24534 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24535fi
24536
24537 if test $ac_cv_lib_nsl_gethostbyname = no; then
24538 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24539echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24540if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24541 echo $ECHO_N "(cached) $ECHO_C" >&6
24542else
24543 ac_check_lib_save_LIBS=$LIBS
24544LIBS="-lbsd $LIBS"
24545cat >conftest.$ac_ext <<_ACEOF
24546/* confdefs.h. */
24547_ACEOF
24548cat confdefs.h >>conftest.$ac_ext
24549cat >>conftest.$ac_ext <<_ACEOF
24550/* end confdefs.h. */
24551
24552/* Override any gcc2 internal prototype to avoid an error. */
24553#ifdef __cplusplus
24554extern "C"
24555#endif
24556/* We use char because int might match the return type of a gcc2
24557 builtin and then its argument prototype would still apply. */
24558char gethostbyname ();
24559int
24560main ()
24561{
24562gethostbyname ();
24563 ;
24564 return 0;
24565}
24566_ACEOF
24567rm -f conftest.$ac_objext conftest$ac_exeext
24568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24569 (eval $ac_link) 2>conftest.er1
a848cd7e 24570 ac_status=$?
ac1cb8d3
VS
24571 grep -v '^ *+' conftest.er1 >conftest.err
24572 rm -f conftest.er1
24573 cat conftest.err >&5
a848cd7e
SC
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } &&
ac1cb8d3
VS
24576 { ac_try='test -z "$ac_c_werror_flag"
24577 || test ! -s conftest.err'
a848cd7e
SC
24578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579 (eval $ac_try) 2>&5
24580 ac_status=$?
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24582 (exit $ac_status); }; } &&
24583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; }; then
24589 ac_cv_lib_bsd_gethostbyname=yes
24590else
24591 echo "$as_me: failed program was:" >&5
24592sed 's/^/| /' conftest.$ac_ext >&5
24593
24594ac_cv_lib_bsd_gethostbyname=no
24595fi
ac1cb8d3
VS
24596rm -f conftest.err conftest.$ac_objext \
24597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24598LIBS=$ac_check_lib_save_LIBS
24599fi
24600echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24601echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24602if test $ac_cv_lib_bsd_gethostbyname = yes; then
24603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24604fi
24605
24606 fi
24607 fi
24608
24609 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24610 # socket/setsockopt and other routines are undefined under SCO ODT
24611 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24612 # on later versions), says Simon Leinen: it contains gethostby*
24613 # variants that don't use the name server (or something). -lsocket
24614 # must be given before -lnsl if both are needed. We assume that
24615 # if connect needs -lnsl, so does gethostbyname.
24616 echo "$as_me:$LINENO: checking for connect" >&5
24617echo $ECHO_N "checking for connect... $ECHO_C" >&6
24618if test "${ac_cv_func_connect+set}" = set; then
24619 echo $ECHO_N "(cached) $ECHO_C" >&6
24620else
24621 cat >conftest.$ac_ext <<_ACEOF
24622/* confdefs.h. */
24623_ACEOF
24624cat confdefs.h >>conftest.$ac_ext
24625cat >>conftest.$ac_ext <<_ACEOF
24626/* end confdefs.h. */
ac1cb8d3
VS
24627/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24629#define connect innocuous_connect
24630
a848cd7e
SC
24631/* System header to define __stub macros and hopefully few prototypes,
24632 which can conflict with char connect (); below.
24633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24635
a848cd7e
SC
24636#ifdef __STDC__
24637# include <limits.h>
24638#else
24639# include <assert.h>
24640#endif
ac1cb8d3
VS
24641
24642#undef connect
24643
a848cd7e
SC
24644/* Override any gcc2 internal prototype to avoid an error. */
24645#ifdef __cplusplus
24646extern "C"
24647{
24648#endif
24649/* We use char because int might match the return type of a gcc2
24650 builtin and then its argument prototype would still apply. */
24651char connect ();
24652/* The GNU C library defines this for functions which it implements
24653 to always fail with ENOSYS. Some functions are actually named
24654 something starting with __ and the normal name is an alias. */
24655#if defined (__stub_connect) || defined (__stub___connect)
24656choke me
24657#else
24658char (*f) () = connect;
24659#endif
24660#ifdef __cplusplus
24661}
24662#endif
24663
24664int
24665main ()
24666{
24667return f != connect;
24668 ;
24669 return 0;
24670}
24671_ACEOF
24672rm -f conftest.$ac_objext conftest$ac_exeext
24673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24674 (eval $ac_link) 2>conftest.er1
a848cd7e 24675 ac_status=$?
ac1cb8d3
VS
24676 grep -v '^ *+' conftest.er1 >conftest.err
24677 rm -f conftest.er1
24678 cat conftest.err >&5
a848cd7e
SC
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } &&
ac1cb8d3
VS
24681 { ac_try='test -z "$ac_c_werror_flag"
24682 || test ! -s conftest.err'
24683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; } &&
24688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; }; then
24694 ac_cv_func_connect=yes
24695else
24696 echo "$as_me: failed program was:" >&5
24697sed 's/^/| /' conftest.$ac_ext >&5
24698
24699ac_cv_func_connect=no
24700fi
ac1cb8d3
VS
24701rm -f conftest.err conftest.$ac_objext \
24702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24703fi
24704echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24705echo "${ECHO_T}$ac_cv_func_connect" >&6
24706
24707 if test $ac_cv_func_connect = no; then
24708 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24709echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24710if test "${ac_cv_lib_socket_connect+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24712else
24713 ac_check_lib_save_LIBS=$LIBS
24714LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24715cat >conftest.$ac_ext <<_ACEOF
24716/* confdefs.h. */
24717_ACEOF
24718cat confdefs.h >>conftest.$ac_ext
24719cat >>conftest.$ac_ext <<_ACEOF
24720/* end confdefs.h. */
24721
24722/* Override any gcc2 internal prototype to avoid an error. */
24723#ifdef __cplusplus
24724extern "C"
24725#endif
24726/* We use char because int might match the return type of a gcc2
24727 builtin and then its argument prototype would still apply. */
24728char connect ();
24729int
24730main ()
24731{
24732connect ();
24733 ;
24734 return 0;
24735}
24736_ACEOF
24737rm -f conftest.$ac_objext conftest$ac_exeext
24738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24739 (eval $ac_link) 2>conftest.er1
a848cd7e 24740 ac_status=$?
ac1cb8d3
VS
24741 grep -v '^ *+' conftest.er1 >conftest.err
24742 rm -f conftest.er1
24743 cat conftest.err >&5
a848cd7e
SC
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); } &&
ac1cb8d3
VS
24746 { ac_try='test -z "$ac_c_werror_flag"
24747 || test ! -s conftest.err'
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; } &&
24753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24756 ac_status=$?
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; }; then
24759 ac_cv_lib_socket_connect=yes
24760else
24761 echo "$as_me: failed program was:" >&5
24762sed 's/^/| /' conftest.$ac_ext >&5
24763
24764ac_cv_lib_socket_connect=no
24765fi
ac1cb8d3
VS
24766rm -f conftest.err conftest.$ac_objext \
24767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24768LIBS=$ac_check_lib_save_LIBS
24769fi
24770echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24771echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24772if test $ac_cv_lib_socket_connect = yes; then
24773 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24774fi
24775
24776 fi
24777
24778 # Guillermo Gomez says -lposix is necessary on A/UX.
24779 echo "$as_me:$LINENO: checking for remove" >&5
24780echo $ECHO_N "checking for remove... $ECHO_C" >&6
24781if test "${ac_cv_func_remove+set}" = set; then
24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24783else
24784 cat >conftest.$ac_ext <<_ACEOF
24785/* confdefs.h. */
24786_ACEOF
24787cat confdefs.h >>conftest.$ac_ext
24788cat >>conftest.$ac_ext <<_ACEOF
24789/* end confdefs.h. */
ac1cb8d3
VS
24790/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24792#define remove innocuous_remove
24793
a848cd7e
SC
24794/* System header to define __stub macros and hopefully few prototypes,
24795 which can conflict with char remove (); below.
24796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24798
a848cd7e
SC
24799#ifdef __STDC__
24800# include <limits.h>
24801#else
24802# include <assert.h>
24803#endif
ac1cb8d3
VS
24804
24805#undef remove
24806
a848cd7e
SC
24807/* Override any gcc2 internal prototype to avoid an error. */
24808#ifdef __cplusplus
24809extern "C"
24810{
24811#endif
24812/* We use char because int might match the return type of a gcc2
24813 builtin and then its argument prototype would still apply. */
24814char remove ();
24815/* The GNU C library defines this for functions which it implements
24816 to always fail with ENOSYS. Some functions are actually named
24817 something starting with __ and the normal name is an alias. */
24818#if defined (__stub_remove) || defined (__stub___remove)
24819choke me
24820#else
24821char (*f) () = remove;
24822#endif
24823#ifdef __cplusplus
24824}
24825#endif
24826
24827int
24828main ()
24829{
24830return f != remove;
24831 ;
24832 return 0;
24833}
24834_ACEOF
24835rm -f conftest.$ac_objext conftest$ac_exeext
24836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24837 (eval $ac_link) 2>conftest.er1
a848cd7e 24838 ac_status=$?
ac1cb8d3
VS
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
a848cd7e
SC
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
ac1cb8d3
VS
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 ac_cv_func_remove=yes
24858else
24859 echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
24862ac_cv_func_remove=no
24863fi
ac1cb8d3
VS
24864rm -f conftest.err conftest.$ac_objext \
24865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24866fi
24867echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24868echo "${ECHO_T}$ac_cv_func_remove" >&6
24869
24870 if test $ac_cv_func_remove = no; then
24871 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24872echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24873if test "${ac_cv_lib_posix_remove+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24875else
24876 ac_check_lib_save_LIBS=$LIBS
24877LIBS="-lposix $LIBS"
24878cat >conftest.$ac_ext <<_ACEOF
24879/* confdefs.h. */
24880_ACEOF
24881cat confdefs.h >>conftest.$ac_ext
24882cat >>conftest.$ac_ext <<_ACEOF
24883/* end confdefs.h. */
24884
24885/* Override any gcc2 internal prototype to avoid an error. */
24886#ifdef __cplusplus
24887extern "C"
24888#endif
24889/* We use char because int might match the return type of a gcc2
24890 builtin and then its argument prototype would still apply. */
24891char remove ();
24892int
24893main ()
24894{
24895remove ();
24896 ;
24897 return 0;
24898}
24899_ACEOF
24900rm -f conftest.$ac_objext conftest$ac_exeext
24901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24902 (eval $ac_link) 2>conftest.er1
a848cd7e 24903 ac_status=$?
ac1cb8d3
VS
24904 grep -v '^ *+' conftest.er1 >conftest.err
24905 rm -f conftest.er1
24906 cat conftest.err >&5
a848cd7e
SC
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } &&
ac1cb8d3
VS
24909 { ac_try='test -z "$ac_c_werror_flag"
24910 || test ! -s conftest.err'
24911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); }; } &&
24916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
24922 ac_cv_lib_posix_remove=yes
24923else
24924 echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
24927ac_cv_lib_posix_remove=no
24928fi
ac1cb8d3
VS
24929rm -f conftest.err conftest.$ac_objext \
24930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24931LIBS=$ac_check_lib_save_LIBS
24932fi
24933echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24934echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24935if test $ac_cv_lib_posix_remove = yes; then
24936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24937fi
24938
24939 fi
24940
24941 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24942 echo "$as_me:$LINENO: checking for shmat" >&5
24943echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24944if test "${ac_cv_func_shmat+set}" = set; then
24945 echo $ECHO_N "(cached) $ECHO_C" >&6
24946else
24947 cat >conftest.$ac_ext <<_ACEOF
24948/* confdefs.h. */
24949_ACEOF
24950cat confdefs.h >>conftest.$ac_ext
24951cat >>conftest.$ac_ext <<_ACEOF
24952/* end confdefs.h. */
ac1cb8d3
VS
24953/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24955#define shmat innocuous_shmat
24956
a848cd7e
SC
24957/* System header to define __stub macros and hopefully few prototypes,
24958 which can conflict with char shmat (); below.
24959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24961
a848cd7e
SC
24962#ifdef __STDC__
24963# include <limits.h>
24964#else
24965# include <assert.h>
24966#endif
ac1cb8d3
VS
24967
24968#undef shmat
24969
a848cd7e
SC
24970/* Override any gcc2 internal prototype to avoid an error. */
24971#ifdef __cplusplus
24972extern "C"
24973{
24974#endif
24975/* We use char because int might match the return type of a gcc2
24976 builtin and then its argument prototype would still apply. */
24977char shmat ();
24978/* The GNU C library defines this for functions which it implements
24979 to always fail with ENOSYS. Some functions are actually named
24980 something starting with __ and the normal name is an alias. */
24981#if defined (__stub_shmat) || defined (__stub___shmat)
24982choke me
24983#else
24984char (*f) () = shmat;
24985#endif
24986#ifdef __cplusplus
24987}
24988#endif
24989
24990int
24991main ()
24992{
24993return f != shmat;
24994 ;
24995 return 0;
24996}
24997_ACEOF
24998rm -f conftest.$ac_objext conftest$ac_exeext
24999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25000 (eval $ac_link) 2>conftest.er1
a848cd7e 25001 ac_status=$?
ac1cb8d3
VS
25002 grep -v '^ *+' conftest.er1 >conftest.err
25003 rm -f conftest.er1
25004 cat conftest.err >&5
a848cd7e
SC
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } &&
ac1cb8d3
VS
25007 { ac_try='test -z "$ac_c_werror_flag"
25008 || test ! -s conftest.err'
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; } &&
25014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_func_shmat=yes
25021else
25022 echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025ac_cv_func_shmat=no
25026fi
ac1cb8d3
VS
25027rm -f conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25029fi
25030echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25031echo "${ECHO_T}$ac_cv_func_shmat" >&6
25032
25033 if test $ac_cv_func_shmat = no; then
25034 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25035echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25036if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25038else
25039 ac_check_lib_save_LIBS=$LIBS
25040LIBS="-lipc $LIBS"
25041cat >conftest.$ac_ext <<_ACEOF
25042/* confdefs.h. */
25043_ACEOF
25044cat confdefs.h >>conftest.$ac_ext
25045cat >>conftest.$ac_ext <<_ACEOF
25046/* end confdefs.h. */
25047
25048/* Override any gcc2 internal prototype to avoid an error. */
25049#ifdef __cplusplus
25050extern "C"
25051#endif
25052/* We use char because int might match the return type of a gcc2
25053 builtin and then its argument prototype would still apply. */
25054char shmat ();
25055int
25056main ()
25057{
25058shmat ();
25059 ;
25060 return 0;
25061}
25062_ACEOF
25063rm -f conftest.$ac_objext conftest$ac_exeext
25064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25065 (eval $ac_link) 2>conftest.er1
a848cd7e 25066 ac_status=$?
ac1cb8d3
VS
25067 grep -v '^ *+' conftest.er1 >conftest.err
25068 rm -f conftest.er1
25069 cat conftest.err >&5
a848cd7e
SC
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); } &&
ac1cb8d3
VS
25072 { ac_try='test -z "$ac_c_werror_flag"
25073 || test ! -s conftest.err'
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_ipc_shmat=yes
25086else
25087 echo "$as_me: failed program was:" >&5
25088sed 's/^/| /' conftest.$ac_ext >&5
25089
25090ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
25097echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25098if test $ac_cv_lib_ipc_shmat = yes; then
25099 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25100fi
25101
25102 fi
25103 fi
25104
25105 # Check for libraries that X11R6 Xt/Xaw programs need.
25106 ac_save_LDFLAGS=$LDFLAGS
25107 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25108 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25109 # check for ICE first), but we must link in the order -lSM -lICE or
25110 # we get undefined symbols. So assume we have SM if we have ICE.
25111 # These have to be linked with before -lX11, unlike the other
25112 # libraries we check for below, so use a different variable.
25113 # John Interrante, Karl Berry
25114 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25115echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25116if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25118else
25119 ac_check_lib_save_LIBS=$LIBS
25120LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25121cat >conftest.$ac_ext <<_ACEOF
25122/* confdefs.h. */
25123_ACEOF
25124cat confdefs.h >>conftest.$ac_ext
25125cat >>conftest.$ac_ext <<_ACEOF
25126/* end confdefs.h. */
25127
25128/* Override any gcc2 internal prototype to avoid an error. */
25129#ifdef __cplusplus
25130extern "C"
25131#endif
25132/* We use char because int might match the return type of a gcc2
25133 builtin and then its argument prototype would still apply. */
25134char IceConnectionNumber ();
25135int
25136main ()
25137{
25138IceConnectionNumber ();
25139 ;
25140 return 0;
25141}
25142_ACEOF
25143rm -f conftest.$ac_objext conftest$ac_exeext
25144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25145 (eval $ac_link) 2>conftest.er1
a848cd7e 25146 ac_status=$?
ac1cb8d3
VS
25147 grep -v '^ *+' conftest.er1 >conftest.err
25148 rm -f conftest.er1
25149 cat conftest.err >&5
a848cd7e
SC
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } &&
ac1cb8d3
VS
25152 { ac_try='test -z "$ac_c_werror_flag"
25153 || test ! -s conftest.err'
25154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); }; } &&
25159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25162 ac_status=$?
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; }; then
25165 ac_cv_lib_ICE_IceConnectionNumber=yes
25166else
25167 echo "$as_me: failed program was:" >&5
25168sed 's/^/| /' conftest.$ac_ext >&5
25169
25170ac_cv_lib_ICE_IceConnectionNumber=no
25171fi
ac1cb8d3
VS
25172rm -f conftest.err conftest.$ac_objext \
25173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25174LIBS=$ac_check_lib_save_LIBS
25175fi
25176echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25177echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25178if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25179 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25180fi
25181
25182 LDFLAGS=$ac_save_LDFLAGS
25183
25184fi
25185
25186
25187 if test "$no_x" = "yes"; then
25188 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25189echo "$as_me: error: X11 not found" >&2;}
25190 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25191 fi
25192
25193 GUI_TK_LIBRARY="$X_LIBS"
25194 TOOLKIT_INCLUDE="$X_CFLAGS"
25195 AFMINSTALL=afminstall
25196 COMPILED_X_PROGRAM=0
25197
25198 if test "$wxUSE_NANOX" = "yes"; then
25199 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25200echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25201 if test "x$MICROWIN" = x ; then
25202 echo "$as_me:$LINENO: result: not found" >&5
25203echo "${ECHO_T}not found" >&6
25204 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25205echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25206 { (exit 1); exit 1; }; }
25207 else
25208 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25209echo "${ECHO_T}$MICROWIN" >&6
25210 cat >>confdefs.h <<\_ACEOF
25211#define wxUSE_NANOX 1
25212_ACEOF
25213
25214 fi
25215 fi
25216
25217 if test "$wxUSE_UNICODE" = "yes"; then
25218
25219 succeeded=no
25220
25221 if test -z "$PKG_CONFIG"; then
25222 # Extract the first word of "pkg-config", so it can be a program name with args.
25223set dummy pkg-config; ac_word=$2
25224echo "$as_me:$LINENO: checking for $ac_word" >&5
25225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25226if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25227 echo $ECHO_N "(cached) $ECHO_C" >&6
25228else
25229 case $PKG_CONFIG in
25230 [\\/]* | ?:[\\/]*)
25231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25232 ;;
25233 *)
25234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25235for as_dir in $PATH
25236do
25237 IFS=$as_save_IFS
25238 test -z "$as_dir" && as_dir=.
25239 for ac_exec_ext in '' $ac_executable_extensions; do
25240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25243 break 2
25244 fi
25245done
25246done
25247
25248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25249 ;;
25250esac
25251fi
25252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25253
25254if test -n "$PKG_CONFIG"; then
25255 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25256echo "${ECHO_T}$PKG_CONFIG" >&6
25257else
25258 echo "$as_me:$LINENO: result: no" >&5
25259echo "${ECHO_T}no" >&6
25260fi
25261
25262 fi
25263
25264 if test "$PKG_CONFIG" = "no" ; then
25265 echo "*** The pkg-config script could not be found. Make sure it is"
25266 echo "*** in your path, or set the PKG_CONFIG environment variable"
25267 echo "*** to the full path to pkg-config."
25268 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25269 else
25270 PKG_CONFIG_MIN_VERSION=0.9.0
25271 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25272 echo "$as_me:$LINENO: checking for pangox" >&5
25273echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25274
25275 if $PKG_CONFIG --exists "pangox" ; then
25276 echo "$as_me:$LINENO: result: yes" >&5
25277echo "${ECHO_T}yes" >&6
25278 succeeded=yes
25279
25280 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25281echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25282 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25283 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25284echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25285
25286 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25287echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25288 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25289 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25290echo "${ECHO_T}$PANGOX_LIBS" >&6
25291 else
25292 PANGOX_CFLAGS=""
25293 PANGOX_LIBS=""
25294 ## If we have a custom action on failure, don't print errors, but
25295 ## do set a variable so people can do so.
25296 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25297
25298 fi
25299
25300
25301
25302 else
25303 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25304 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25305 fi
25306 fi
25307
25308 if test $succeeded = yes; then
25309
25310 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25311 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25312
25313 else
25314
25315 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25316echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25317 { (exit 1); exit 1; }; }
25318
25319
25320 fi
25321
25322
25323 succeeded=no
25324
25325 if test -z "$PKG_CONFIG"; then
25326 # Extract the first word of "pkg-config", so it can be a program name with args.
25327set dummy pkg-config; ac_word=$2
25328echo "$as_me:$LINENO: checking for $ac_word" >&5
25329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25330if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25332else
25333 case $PKG_CONFIG in
25334 [\\/]* | ?:[\\/]*)
25335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25336 ;;
25337 *)
25338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25339for as_dir in $PATH
25340do
25341 IFS=$as_save_IFS
25342 test -z "$as_dir" && as_dir=.
25343 for ac_exec_ext in '' $ac_executable_extensions; do
25344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25347 break 2
25348 fi
25349done
25350done
25351
25352 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25353 ;;
25354esac
25355fi
25356PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25357
25358if test -n "$PKG_CONFIG"; then
25359 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25360echo "${ECHO_T}$PKG_CONFIG" >&6
25361else
25362 echo "$as_me:$LINENO: result: no" >&5
25363echo "${ECHO_T}no" >&6
25364fi
25365
25366 fi
25367
25368 if test "$PKG_CONFIG" = "no" ; then
25369 echo "*** The pkg-config script could not be found. Make sure it is"
25370 echo "*** in your path, or set the PKG_CONFIG environment variable"
25371 echo "*** to the full path to pkg-config."
25372 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25373 else
25374 PKG_CONFIG_MIN_VERSION=0.9.0
25375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25376 echo "$as_me:$LINENO: checking for pangoft2" >&5
25377echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25378
25379 if $PKG_CONFIG --exists "pangoft2" ; then
25380 echo "$as_me:$LINENO: result: yes" >&5
25381echo "${ECHO_T}yes" >&6
25382 succeeded=yes
25383
25384 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25385echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25386 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25387 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25388echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25389
25390 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25391echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25392 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25393 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25394echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25395 else
25396 PANGOFT2_CFLAGS=""
25397 PANGOFT2_LIBS=""
25398 ## If we have a custom action on failure, don't print errors, but
25399 ## do set a variable so people can do so.
25400 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25401
25402 fi
25403
25404
25405
25406 else
25407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25409 fi
25410 fi
25411
25412 if test $succeeded = yes; then
25413
25414 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25415 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25416
25417 else
25418
25419 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25420echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25421 wxUSE_PRINTING_ARCHITECTURE="no"
25422
25423
25424 fi
25425
25426
25427 succeeded=no
25428
25429 if test -z "$PKG_CONFIG"; then
25430 # Extract the first word of "pkg-config", so it can be a program name with args.
25431set dummy pkg-config; ac_word=$2
25432echo "$as_me:$LINENO: checking for $ac_word" >&5
25433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25434if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436else
25437 case $PKG_CONFIG in
25438 [\\/]* | ?:[\\/]*)
25439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25440 ;;
25441 *)
25442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25443for as_dir in $PATH
25444do
25445 IFS=$as_save_IFS
25446 test -z "$as_dir" && as_dir=.
25447 for ac_exec_ext in '' $ac_executable_extensions; do
25448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25451 break 2
25452 fi
25453done
25454done
25455
25456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25457 ;;
25458esac
25459fi
25460PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25461
25462if test -n "$PKG_CONFIG"; then
25463 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25464echo "${ECHO_T}$PKG_CONFIG" >&6
25465else
25466 echo "$as_me:$LINENO: result: no" >&5
25467echo "${ECHO_T}no" >&6
25468fi
25469
25470 fi
25471
25472 if test "$PKG_CONFIG" = "no" ; then
25473 echo "*** The pkg-config script could not be found. Make sure it is"
25474 echo "*** in your path, or set the PKG_CONFIG environment variable"
25475 echo "*** to the full path to pkg-config."
25476 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25477 else
25478 PKG_CONFIG_MIN_VERSION=0.9.0
25479 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25480 echo "$as_me:$LINENO: checking for pangoxft" >&5
25481echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25482
25483 if $PKG_CONFIG --exists "pangoxft" ; then
25484 echo "$as_me:$LINENO: result: yes" >&5
25485echo "${ECHO_T}yes" >&6
25486 succeeded=yes
25487
25488 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25489echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25490 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25491 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25492echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25493
25494 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25495echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25496 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25497 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25498echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25499 else
25500 PANGOXFT_CFLAGS=""
25501 PANGOXFT_LIBS=""
25502 ## If we have a custom action on failure, don't print errors, but
25503 ## do set a variable so people can do so.
25504 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25505
25506 fi
25507
25508
25509
25510 else
25511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25513 fi
25514 fi
25515
25516 if test $succeeded = yes; then
25517
25518 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25519 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25520
25521 else
25522
25523 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25524echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25525
25526
25527 fi
25528
304205f1
VS
25529 save_CFLAGS="$CFLAGS"
25530 save_LIBS="$LIBS"
25531 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25532 LIBS="$LIBS $PANGOX_LIBS"
25533
25534for ac_func in pango_font_family_is_monospace
25535do
25536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25537echo "$as_me:$LINENO: checking for $ac_func" >&5
25538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25539if eval "test \"\${$as_ac_var+set}\" = set"; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25541else
25542 cat >conftest.$ac_ext <<_ACEOF
25543/* confdefs.h. */
25544_ACEOF
25545cat confdefs.h >>conftest.$ac_ext
25546cat >>conftest.$ac_ext <<_ACEOF
25547/* end confdefs.h. */
25548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25550#define $ac_func innocuous_$ac_func
25551
25552/* System header to define __stub macros and hopefully few prototypes,
25553 which can conflict with char $ac_func (); below.
25554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25555 <limits.h> exists even on freestanding compilers. */
25556
25557#ifdef __STDC__
25558# include <limits.h>
25559#else
25560# include <assert.h>
25561#endif
25562
25563#undef $ac_func
25564
25565/* Override any gcc2 internal prototype to avoid an error. */
25566#ifdef __cplusplus
25567extern "C"
25568{
25569#endif
25570/* We use char because int might match the return type of a gcc2
25571 builtin and then its argument prototype would still apply. */
25572char $ac_func ();
25573/* The GNU C library defines this for functions which it implements
25574 to always fail with ENOSYS. Some functions are actually named
25575 something starting with __ and the normal name is an alias. */
25576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25577choke me
25578#else
25579char (*f) () = $ac_func;
25580#endif
25581#ifdef __cplusplus
25582}
25583#endif
25584
25585int
25586main ()
25587{
25588return f != $ac_func;
25589 ;
25590 return 0;
25591}
25592_ACEOF
25593rm -f conftest.$ac_objext conftest$ac_exeext
25594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25595 (eval $ac_link) 2>conftest.er1
25596 ac_status=$?
25597 grep -v '^ *+' conftest.er1 >conftest.err
25598 rm -f conftest.er1
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -z "$ac_c_werror_flag"
25603 || test ! -s conftest.err'
25604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; } &&
25609 { ac_try='test -s conftest$ac_exeext'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25612 ac_status=$?
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; }; then
25615 eval "$as_ac_var=yes"
25616else
25617 echo "$as_me: failed program was:" >&5
25618sed 's/^/| /' conftest.$ac_ext >&5
25619
25620eval "$as_ac_var=no"
25621fi
25622rm -f conftest.err conftest.$ac_objext \
25623 conftest$ac_exeext conftest.$ac_ext
25624fi
25625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25627if test `eval echo '${'$as_ac_var'}'` = yes; then
25628 cat >>confdefs.h <<_ACEOF
25629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25630_ACEOF
25631
25632fi
25633done
25634
25635 CFLAGS="$save_CFLAGS"
25636 LIBS="$save_LIBS"
a848cd7e
SC
25637 fi
25638
25639 wxUSE_UNIVERSAL="yes"
25640
25641 if test "$wxUSE_NANOX" = "yes"; then
25642 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25643 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"
25644 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25645 else
25646 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25647 fi
25648
25649 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25650 TOOLKIT=X11
25651 GUIDIST=X11_DIST
25652 fi
25653
25654 if test "$wxUSE_MOTIF" = 1; then
25655 if test "$no_x" = yes; then
25656 # Not all programs may use this symbol, but it does not hurt to define it.
25657
25658cat >>confdefs.h <<\_ACEOF
25659#define X_DISPLAY_MISSING 1
25660_ACEOF
25661
25662 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25663else
25664 if test -n "$x_includes"; then
25665 X_CFLAGS="$X_CFLAGS -I$x_includes"
25666 fi
25667
25668 # It would also be nice to do this for all -L options, not just this one.
25669 if test -n "$x_libraries"; then
25670 X_LIBS="$X_LIBS -L$x_libraries"
25671 # For Solaris; some versions of Sun CC require a space after -R and
25672 # others require no space. Words are not sufficient . . . .
25673 case `(uname -sr) 2>/dev/null` in
25674 "SunOS 5"*)
25675 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25676echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25677 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25678 cat >conftest.$ac_ext <<_ACEOF
25679/* confdefs.h. */
25680_ACEOF
25681cat confdefs.h >>conftest.$ac_ext
25682cat >>conftest.$ac_ext <<_ACEOF
25683/* end confdefs.h. */
25684
25685int
25686main ()
25687{
25688
25689 ;
25690 return 0;
25691}
25692_ACEOF
25693rm -f conftest.$ac_objext conftest$ac_exeext
25694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25695 (eval $ac_link) 2>conftest.er1
a848cd7e 25696 ac_status=$?
ac1cb8d3
VS
25697 grep -v '^ *+' conftest.er1 >conftest.err
25698 rm -f conftest.er1
25699 cat conftest.err >&5
a848cd7e
SC
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); } &&
ac1cb8d3
VS
25702 { ac_try='test -z "$ac_c_werror_flag"
25703 || test ! -s conftest.err'
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; } &&
25709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; }; then
25715 ac_R_nospace=yes
25716else
25717 echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720ac_R_nospace=no
25721fi
ac1cb8d3
VS
25722rm -f conftest.err conftest.$ac_objext \
25723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25724 if test $ac_R_nospace = yes; then
25725 echo "$as_me:$LINENO: result: no" >&5
25726echo "${ECHO_T}no" >&6
25727 X_LIBS="$X_LIBS -R$x_libraries"
25728 else
25729 LIBS="$ac_xsave_LIBS -R $x_libraries"
25730 cat >conftest.$ac_ext <<_ACEOF
25731/* confdefs.h. */
25732_ACEOF
25733cat confdefs.h >>conftest.$ac_ext
25734cat >>conftest.$ac_ext <<_ACEOF
25735/* end confdefs.h. */
25736
25737int
25738main ()
25739{
25740
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext conftest$ac_exeext
25746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25747 (eval $ac_link) 2>conftest.er1
a848cd7e 25748 ac_status=$?
ac1cb8d3
VS
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
a848cd7e
SC
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
ac1cb8d3
VS
25754 { ac_try='test -z "$ac_c_werror_flag"
25755 || test ! -s conftest.err'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; } &&
25761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25764 ac_status=$?
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
25767 ac_R_space=yes
25768else
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
25772ac_R_space=no
25773fi
ac1cb8d3
VS
25774rm -f conftest.err conftest.$ac_objext \
25775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25776 if test $ac_R_space = yes; then
25777 echo "$as_me:$LINENO: result: yes" >&5
25778echo "${ECHO_T}yes" >&6
25779 X_LIBS="$X_LIBS -R $x_libraries"
25780 else
25781 echo "$as_me:$LINENO: result: neither works" >&5
25782echo "${ECHO_T}neither works" >&6
25783 fi
25784 fi
25785 LIBS=$ac_xsave_LIBS
25786 esac
25787 fi
25788
25789 # Check for system-dependent libraries X programs must link with.
25790 # Do this before checking for the system-independent R6 libraries
25791 # (-lICE), since we may need -lsocket or whatever for X linking.
25792
25793 if test "$ISC" = yes; then
25794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25795 else
25796 # Martyn Johnson says this is needed for Ultrix, if the X
25797 # libraries were built with DECnet support. And Karl Berry says
25798 # the Alpha needs dnet_stub (dnet does not exist).
25799 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25800 cat >conftest.$ac_ext <<_ACEOF
25801/* confdefs.h. */
25802_ACEOF
25803cat confdefs.h >>conftest.$ac_ext
25804cat >>conftest.$ac_ext <<_ACEOF
25805/* end confdefs.h. */
25806
25807/* Override any gcc2 internal prototype to avoid an error. */
25808#ifdef __cplusplus
25809extern "C"
25810#endif
25811/* We use char because int might match the return type of a gcc2
25812 builtin and then its argument prototype would still apply. */
25813char XOpenDisplay ();
25814int
25815main ()
25816{
25817XOpenDisplay ();
25818 ;
25819 return 0;
25820}
25821_ACEOF
25822rm -f conftest.$ac_objext conftest$ac_exeext
25823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25824 (eval $ac_link) 2>conftest.er1
a848cd7e 25825 ac_status=$?
ac1cb8d3
VS
25826 grep -v '^ *+' conftest.er1 >conftest.err
25827 rm -f conftest.er1
25828 cat conftest.err >&5
a848cd7e
SC
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
ac1cb8d3
VS
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 :
25845else
25846 echo "$as_me: failed program was:" >&5
25847sed 's/^/| /' conftest.$ac_ext >&5
25848
25849echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25850echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25851if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25853else
25854 ac_check_lib_save_LIBS=$LIBS
25855LIBS="-ldnet $LIBS"
25856cat >conftest.$ac_ext <<_ACEOF
25857/* confdefs.h. */
25858_ACEOF
25859cat confdefs.h >>conftest.$ac_ext
25860cat >>conftest.$ac_ext <<_ACEOF
25861/* end confdefs.h. */
25862
25863/* Override any gcc2 internal prototype to avoid an error. */
25864#ifdef __cplusplus
25865extern "C"
25866#endif
25867/* We use char because int might match the return type of a gcc2
25868 builtin and then its argument prototype would still apply. */
25869char dnet_ntoa ();
25870int
25871main ()
25872{
25873dnet_ntoa ();
25874 ;
25875 return 0;
25876}
25877_ACEOF
25878rm -f conftest.$ac_objext conftest$ac_exeext
25879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25880 (eval $ac_link) 2>conftest.er1
a848cd7e 25881 ac_status=$?
ac1cb8d3
VS
25882 grep -v '^ *+' conftest.er1 >conftest.err
25883 rm -f conftest.er1
25884 cat conftest.err >&5
a848cd7e
SC
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } &&
ac1cb8d3
VS
25887 { ac_try='test -z "$ac_c_werror_flag"
25888 || test ! -s conftest.err'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; } &&
25894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25897 ac_status=$?
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
25900 ac_cv_lib_dnet_dnet_ntoa=yes
25901else
25902 echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905ac_cv_lib_dnet_dnet_ntoa=no
25906fi
ac1cb8d3
VS
25907rm -f conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25909LIBS=$ac_check_lib_save_LIBS
25910fi
25911echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25912echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25913if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25915fi
25916
25917 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25918 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25919echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25920if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25921 echo $ECHO_N "(cached) $ECHO_C" >&6
25922else
25923 ac_check_lib_save_LIBS=$LIBS
25924LIBS="-ldnet_stub $LIBS"
25925cat >conftest.$ac_ext <<_ACEOF
25926/* confdefs.h. */
25927_ACEOF
25928cat confdefs.h >>conftest.$ac_ext
25929cat >>conftest.$ac_ext <<_ACEOF
25930/* end confdefs.h. */
25931
25932/* Override any gcc2 internal prototype to avoid an error. */
25933#ifdef __cplusplus
25934extern "C"
25935#endif
25936/* We use char because int might match the return type of a gcc2
25937 builtin and then its argument prototype would still apply. */
25938char dnet_ntoa ();
25939int
25940main ()
25941{
25942dnet_ntoa ();
25943 ;
25944 return 0;
25945}
25946_ACEOF
25947rm -f conftest.$ac_objext conftest$ac_exeext
25948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25949 (eval $ac_link) 2>conftest.er1
a848cd7e 25950 ac_status=$?
ac1cb8d3
VS
25951 grep -v '^ *+' conftest.er1 >conftest.err
25952 rm -f conftest.er1
25953 cat conftest.err >&5
a848cd7e
SC
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
ac1cb8d3
VS
25956 { ac_try='test -z "$ac_c_werror_flag"
25957 || test ! -s conftest.err'
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25970else
25971 echo "$as_me: failed program was:" >&5
25972sed 's/^/| /' conftest.$ac_ext >&5
25973
25974ac_cv_lib_dnet_stub_dnet_ntoa=no
25975fi
ac1cb8d3
VS
25976rm -f conftest.err conftest.$ac_objext \
25977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25978LIBS=$ac_check_lib_save_LIBS
25979fi
25980echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25981echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25982if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25983 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25984fi
25985
25986 fi
25987fi
ac1cb8d3
VS
25988rm -f conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25990 LIBS="$ac_xsave_LIBS"
25991
25992 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25993 # to get the SysV transport functions.
25994 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25995 # needs -lnsl.
25996 # The nsl library prevents programs from opening the X display
25997 # on Irix 5.2, according to T.E. Dickey.
25998 # The functions gethostbyname, getservbyname, and inet_addr are
25999 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26000 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26001echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26002if test "${ac_cv_func_gethostbyname+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26004else
26005 cat >conftest.$ac_ext <<_ACEOF
26006/* confdefs.h. */
26007_ACEOF
26008cat confdefs.h >>conftest.$ac_ext
26009cat >>conftest.$ac_ext <<_ACEOF
26010/* end confdefs.h. */
ac1cb8d3
VS
26011/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26013#define gethostbyname innocuous_gethostbyname
26014
a848cd7e
SC
26015/* System header to define __stub macros and hopefully few prototypes,
26016 which can conflict with char gethostbyname (); below.
26017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26018 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26019
a848cd7e
SC
26020#ifdef __STDC__
26021# include <limits.h>
26022#else
26023# include <assert.h>
26024#endif
ac1cb8d3
VS
26025
26026#undef gethostbyname
26027
a848cd7e
SC
26028/* Override any gcc2 internal prototype to avoid an error. */
26029#ifdef __cplusplus
26030extern "C"
26031{
26032#endif
26033/* We use char because int might match the return type of a gcc2
26034 builtin and then its argument prototype would still apply. */
26035char gethostbyname ();
26036/* The GNU C library defines this for functions which it implements
26037 to always fail with ENOSYS. Some functions are actually named
26038 something starting with __ and the normal name is an alias. */
26039#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26040choke me
26041#else
26042char (*f) () = gethostbyname;
26043#endif
26044#ifdef __cplusplus
26045}
26046#endif
26047
26048int
26049main ()
26050{
26051return f != gethostbyname;
26052 ;
26053 return 0;
26054}
26055_ACEOF
26056rm -f conftest.$ac_objext conftest$ac_exeext
26057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26058 (eval $ac_link) 2>conftest.er1
a848cd7e 26059 ac_status=$?
ac1cb8d3
VS
26060 grep -v '^ *+' conftest.er1 >conftest.err
26061 rm -f conftest.er1
26062 cat conftest.err >&5
a848cd7e
SC
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } &&
ac1cb8d3
VS
26065 { ac_try='test -z "$ac_c_werror_flag"
26066 || test ! -s conftest.err'
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26069 ac_status=$?
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; } &&
26072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26075 ac_status=$?
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 ac_cv_func_gethostbyname=yes
26079else
26080 echo "$as_me: failed program was:" >&5
26081sed 's/^/| /' conftest.$ac_ext >&5
26082
26083ac_cv_func_gethostbyname=no
26084fi
ac1cb8d3
VS
26085rm -f conftest.err conftest.$ac_objext \
26086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26087fi
26088echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26089echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26090
26091 if test $ac_cv_func_gethostbyname = no; then
26092 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26093echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26094if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26096else
26097 ac_check_lib_save_LIBS=$LIBS
26098LIBS="-lnsl $LIBS"
26099cat >conftest.$ac_ext <<_ACEOF
26100/* confdefs.h. */
26101_ACEOF
26102cat confdefs.h >>conftest.$ac_ext
26103cat >>conftest.$ac_ext <<_ACEOF
26104/* end confdefs.h. */
26105
26106/* Override any gcc2 internal prototype to avoid an error. */
26107#ifdef __cplusplus
26108extern "C"
26109#endif
26110/* We use char because int might match the return type of a gcc2
26111 builtin and then its argument prototype would still apply. */
26112char gethostbyname ();
26113int
26114main ()
26115{
26116gethostbyname ();
26117 ;
26118 return 0;
26119}
26120_ACEOF
26121rm -f conftest.$ac_objext conftest$ac_exeext
26122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26123 (eval $ac_link) 2>conftest.er1
a848cd7e 26124 ac_status=$?
ac1cb8d3
VS
26125 grep -v '^ *+' conftest.er1 >conftest.err
26126 rm -f conftest.er1
26127 cat conftest.err >&5
a848cd7e
SC
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } &&
ac1cb8d3
VS
26130 { ac_try='test -z "$ac_c_werror_flag"
26131 || test ! -s conftest.err'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; } &&
26137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26140 ac_status=$?
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
26143 ac_cv_lib_nsl_gethostbyname=yes
26144else
26145 echo "$as_me: failed program was:" >&5
26146sed 's/^/| /' conftest.$ac_ext >&5
26147
26148ac_cv_lib_nsl_gethostbyname=no
26149fi
ac1cb8d3
VS
26150rm -f conftest.err conftest.$ac_objext \
26151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26152LIBS=$ac_check_lib_save_LIBS
26153fi
26154echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26155echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26156if test $ac_cv_lib_nsl_gethostbyname = yes; then
26157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26158fi
26159
26160 if test $ac_cv_lib_nsl_gethostbyname = no; then
ac1cb8d3 26161 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
a848cd7e
SC
26162echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26163if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26165else
26166 ac_check_lib_save_LIBS=$LIBS
26167LIBS="-lbsd $LIBS"
26168cat >conftest.$ac_ext <<_ACEOF
26169/* confdefs.h. */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
26173/* end confdefs.h. */
26174
26175/* Override any gcc2 internal prototype to avoid an error. */
26176#ifdef __cplusplus
26177extern "C"
26178#endif
26179/* We use char because int might match the return type of a gcc2
26180 builtin and then its argument prototype would still apply. */
26181char gethostbyname ();
26182int
26183main ()
26184{
26185gethostbyname ();
26186 ;
26187 return 0;
26188}
26189_ACEOF
26190rm -f conftest.$ac_objext conftest$ac_exeext
26191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26192 (eval $ac_link) 2>conftest.er1
a848cd7e 26193 ac_status=$?
ac1cb8d3
VS
26194 grep -v '^ *+' conftest.er1 >conftest.err
26195 rm -f conftest.er1
26196 cat conftest.err >&5
a848cd7e
SC
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
ac1cb8d3
VS
26199 { ac_try='test -z "$ac_c_werror_flag"
26200 || test ! -s conftest.err'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26203 ac_status=$?
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; } &&
26206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26209 ac_status=$?
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 ac_cv_lib_bsd_gethostbyname=yes
26213else
26214 echo "$as_me: failed program was:" >&5
26215sed 's/^/| /' conftest.$ac_ext >&5
26216
26217ac_cv_lib_bsd_gethostbyname=no
26218fi
ac1cb8d3
VS
26219rm -f conftest.err conftest.$ac_objext \
26220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26221LIBS=$ac_check_lib_save_LIBS
26222fi
26223echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26224echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26225if test $ac_cv_lib_bsd_gethostbyname = yes; then
26226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26227fi
26228
26229 fi
26230 fi
26231
26232 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26233 # socket/setsockopt and other routines are undefined under SCO ODT
26234 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26235 # on later versions), says Simon Leinen: it contains gethostby*
26236 # variants that don't use the name server (or something). -lsocket
26237 # must be given before -lnsl if both are needed. We assume that
26238 # if connect needs -lnsl, so does gethostbyname.
26239 echo "$as_me:$LINENO: checking for connect" >&5
26240echo $ECHO_N "checking for connect... $ECHO_C" >&6
26241if test "${ac_cv_func_connect+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26243else
26244 cat >conftest.$ac_ext <<_ACEOF
26245/* confdefs.h. */
26246_ACEOF
26247cat confdefs.h >>conftest.$ac_ext
26248cat >>conftest.$ac_ext <<_ACEOF
26249/* end confdefs.h. */
ac1cb8d3
VS
26250/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26252#define connect innocuous_connect
26253
a848cd7e
SC
26254/* System header to define __stub macros and hopefully few prototypes,
26255 which can conflict with char connect (); below.
26256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26258
a848cd7e
SC
26259#ifdef __STDC__
26260# include <limits.h>
26261#else
26262# include <assert.h>
26263#endif
ac1cb8d3
VS
26264
26265#undef connect
26266
a848cd7e
SC
26267/* Override any gcc2 internal prototype to avoid an error. */
26268#ifdef __cplusplus
26269extern "C"
26270{
26271#endif
26272/* We use char because int might match the return type of a gcc2
26273 builtin and then its argument prototype would still apply. */
26274char connect ();
26275/* The GNU C library defines this for functions which it implements
26276 to always fail with ENOSYS. Some functions are actually named
26277 something starting with __ and the normal name is an alias. */
26278#if defined (__stub_connect) || defined (__stub___connect)
26279choke me
26280#else
26281char (*f) () = connect;
26282#endif
26283#ifdef __cplusplus
26284}
26285#endif
26286
26287int
26288main ()
26289{
26290return f != connect;
26291 ;
26292 return 0;
26293}
26294_ACEOF
26295rm -f conftest.$ac_objext conftest$ac_exeext
26296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26297 (eval $ac_link) 2>conftest.er1
a848cd7e 26298 ac_status=$?
ac1cb8d3
VS
26299 grep -v '^ *+' conftest.er1 >conftest.err
26300 rm -f conftest.er1
26301 cat conftest.err >&5
a848cd7e
SC
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } &&
ac1cb8d3
VS
26304 { ac_try='test -z "$ac_c_werror_flag"
26305 || test ! -s conftest.err'
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; } &&
26311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; }; then
26317 ac_cv_func_connect=yes
26318else
26319 echo "$as_me: failed program was:" >&5
26320sed 's/^/| /' conftest.$ac_ext >&5
26321
26322ac_cv_func_connect=no
26323fi
ac1cb8d3
VS
26324rm -f conftest.err conftest.$ac_objext \
26325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26326fi
26327echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26328echo "${ECHO_T}$ac_cv_func_connect" >&6
26329
26330 if test $ac_cv_func_connect = no; then
26331 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26332echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26333if test "${ac_cv_lib_socket_connect+set}" = set; then
26334 echo $ECHO_N "(cached) $ECHO_C" >&6
26335else
26336 ac_check_lib_save_LIBS=$LIBS
26337LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26338cat >conftest.$ac_ext <<_ACEOF
26339/* confdefs.h. */
26340_ACEOF
26341cat confdefs.h >>conftest.$ac_ext
26342cat >>conftest.$ac_ext <<_ACEOF
26343/* end confdefs.h. */
26344
26345/* Override any gcc2 internal prototype to avoid an error. */
26346#ifdef __cplusplus
26347extern "C"
26348#endif
26349/* We use char because int might match the return type of a gcc2
26350 builtin and then its argument prototype would still apply. */
26351char connect ();
26352int
26353main ()
26354{
26355connect ();
26356 ;
26357 return 0;
26358}
26359_ACEOF
26360rm -f conftest.$ac_objext conftest$ac_exeext
26361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26362 (eval $ac_link) 2>conftest.er1
a848cd7e 26363 ac_status=$?
ac1cb8d3
VS
26364 grep -v '^ *+' conftest.er1 >conftest.err
26365 rm -f conftest.er1
26366 cat conftest.err >&5
a848cd7e
SC
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } &&
ac1cb8d3
VS
26369 { ac_try='test -z "$ac_c_werror_flag"
26370 || test ! -s conftest.err'
26371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26372 (eval $ac_try) 2>&5
26373 ac_status=$?
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); }; } &&
26376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; }; then
26382 ac_cv_lib_socket_connect=yes
26383else
26384 echo "$as_me: failed program was:" >&5
26385sed 's/^/| /' conftest.$ac_ext >&5
26386
26387ac_cv_lib_socket_connect=no
26388fi
ac1cb8d3
VS
26389rm -f conftest.err conftest.$ac_objext \
26390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26391LIBS=$ac_check_lib_save_LIBS
26392fi
26393echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26394echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26395if test $ac_cv_lib_socket_connect = yes; then
26396 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26397fi
26398
26399 fi
26400
26401 # Guillermo Gomez says -lposix is necessary on A/UX.
26402 echo "$as_me:$LINENO: checking for remove" >&5
26403echo $ECHO_N "checking for remove... $ECHO_C" >&6
26404if test "${ac_cv_func_remove+set}" = set; then
26405 echo $ECHO_N "(cached) $ECHO_C" >&6
26406else
26407 cat >conftest.$ac_ext <<_ACEOF
26408/* confdefs.h. */
26409_ACEOF
26410cat confdefs.h >>conftest.$ac_ext
26411cat >>conftest.$ac_ext <<_ACEOF
26412/* end confdefs.h. */
ac1cb8d3
VS
26413/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26415#define remove innocuous_remove
26416
a848cd7e
SC
26417/* System header to define __stub macros and hopefully few prototypes,
26418 which can conflict with char remove (); below.
26419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26421
a848cd7e
SC
26422#ifdef __STDC__
26423# include <limits.h>
26424#else
26425# include <assert.h>
26426#endif
ac1cb8d3
VS
26427
26428#undef remove
26429
a848cd7e
SC
26430/* Override any gcc2 internal prototype to avoid an error. */
26431#ifdef __cplusplus
26432extern "C"
26433{
26434#endif
26435/* We use char because int might match the return type of a gcc2
26436 builtin and then its argument prototype would still apply. */
26437char remove ();
26438/* The GNU C library defines this for functions which it implements
26439 to always fail with ENOSYS. Some functions are actually named
26440 something starting with __ and the normal name is an alias. */
26441#if defined (__stub_remove) || defined (__stub___remove)
26442choke me
26443#else
26444char (*f) () = remove;
26445#endif
26446#ifdef __cplusplus
26447}
26448#endif
26449
26450int
26451main ()
26452{
26453return f != remove;
26454 ;
26455 return 0;
26456}
26457_ACEOF
26458rm -f conftest.$ac_objext conftest$ac_exeext
26459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26460 (eval $ac_link) 2>conftest.er1
a848cd7e 26461 ac_status=$?
ac1cb8d3
VS
26462 grep -v '^ *+' conftest.er1 >conftest.err
26463 rm -f conftest.er1
26464 cat conftest.err >&5
a848cd7e
SC
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
ac1cb8d3
VS
26467 { ac_try='test -z "$ac_c_werror_flag"
26468 || test ! -s conftest.err'
26469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); }; } &&
26474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
26480 ac_cv_func_remove=yes
26481else
26482 echo "$as_me: failed program was:" >&5
26483sed 's/^/| /' conftest.$ac_ext >&5
26484
26485ac_cv_func_remove=no
26486fi
ac1cb8d3
VS
26487rm -f conftest.err conftest.$ac_objext \
26488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26489fi
26490echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26491echo "${ECHO_T}$ac_cv_func_remove" >&6
26492
26493 if test $ac_cv_func_remove = no; then
26494 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26495echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26496if test "${ac_cv_lib_posix_remove+set}" = set; then
26497 echo $ECHO_N "(cached) $ECHO_C" >&6
26498else
26499 ac_check_lib_save_LIBS=$LIBS
26500LIBS="-lposix $LIBS"
26501cat >conftest.$ac_ext <<_ACEOF
26502/* confdefs.h. */
26503_ACEOF
26504cat confdefs.h >>conftest.$ac_ext
26505cat >>conftest.$ac_ext <<_ACEOF
26506/* end confdefs.h. */
26507
26508/* Override any gcc2 internal prototype to avoid an error. */
26509#ifdef __cplusplus
26510extern "C"
26511#endif
26512/* We use char because int might match the return type of a gcc2
26513 builtin and then its argument prototype would still apply. */
26514char remove ();
26515int
26516main ()
26517{
26518remove ();
26519 ;
26520 return 0;
26521}
26522_ACEOF
26523rm -f conftest.$ac_objext conftest$ac_exeext
26524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26525 (eval $ac_link) 2>conftest.er1
a848cd7e 26526 ac_status=$?
ac1cb8d3
VS
26527 grep -v '^ *+' conftest.er1 >conftest.err
26528 rm -f conftest.er1
26529 cat conftest.err >&5
a848cd7e
SC
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } &&
ac1cb8d3
VS
26532 { ac_try='test -z "$ac_c_werror_flag"
26533 || test ! -s conftest.err'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; } &&
26539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; }; then
26545 ac_cv_lib_posix_remove=yes
26546else
26547 echo "$as_me: failed program was:" >&5
26548sed 's/^/| /' conftest.$ac_ext >&5
26549
26550ac_cv_lib_posix_remove=no
26551fi
ac1cb8d3
VS
26552rm -f conftest.err conftest.$ac_objext \
26553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26554LIBS=$ac_check_lib_save_LIBS
26555fi
26556echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26557echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26558if test $ac_cv_lib_posix_remove = yes; then
26559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26560fi
26561
26562 fi
26563
26564 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26565 echo "$as_me:$LINENO: checking for shmat" >&5
26566echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26567if test "${ac_cv_func_shmat+set}" = set; then
26568 echo $ECHO_N "(cached) $ECHO_C" >&6
26569else
26570 cat >conftest.$ac_ext <<_ACEOF
26571/* confdefs.h. */
26572_ACEOF
26573cat confdefs.h >>conftest.$ac_ext
26574cat >>conftest.$ac_ext <<_ACEOF
26575/* end confdefs.h. */
ac1cb8d3
VS
26576/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26578#define shmat innocuous_shmat
26579
a848cd7e
SC
26580/* System header to define __stub macros and hopefully few prototypes,
26581 which can conflict with char shmat (); below.
26582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26583 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26584
a848cd7e
SC
26585#ifdef __STDC__
26586# include <limits.h>
26587#else
26588# include <assert.h>
26589#endif
ac1cb8d3
VS
26590
26591#undef shmat
26592
a848cd7e
SC
26593/* Override any gcc2 internal prototype to avoid an error. */
26594#ifdef __cplusplus
26595extern "C"
26596{
26597#endif
26598/* We use char because int might match the return type of a gcc2
26599 builtin and then its argument prototype would still apply. */
26600char shmat ();
26601/* The GNU C library defines this for functions which it implements
26602 to always fail with ENOSYS. Some functions are actually named
26603 something starting with __ and the normal name is an alias. */
26604#if defined (__stub_shmat) || defined (__stub___shmat)
26605choke me
26606#else
26607char (*f) () = shmat;
26608#endif
26609#ifdef __cplusplus
26610}
26611#endif
26612
26613int
26614main ()
26615{
26616return f != shmat;
26617 ;
26618 return 0;
26619}
26620_ACEOF
26621rm -f conftest.$ac_objext conftest$ac_exeext
26622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26623 (eval $ac_link) 2>conftest.er1
a848cd7e 26624 ac_status=$?
ac1cb8d3
VS
26625 grep -v '^ *+' conftest.er1 >conftest.err
26626 rm -f conftest.er1
26627 cat conftest.err >&5
a848cd7e
SC
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } &&
ac1cb8d3
VS
26630 { ac_try='test -z "$ac_c_werror_flag"
26631 || test ! -s conftest.err'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; } &&
26637 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639 (eval $ac_try) 2>&5
26640 ac_status=$?
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); }; }; then
26643 ac_cv_func_shmat=yes
26644else
26645 echo "$as_me: failed program was:" >&5
26646sed 's/^/| /' conftest.$ac_ext >&5
26647
26648ac_cv_func_shmat=no
26649fi
ac1cb8d3
VS
26650rm -f conftest.err conftest.$ac_objext \
26651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26652fi
26653echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26654echo "${ECHO_T}$ac_cv_func_shmat" >&6
26655
26656 if test $ac_cv_func_shmat = no; then
26657 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26658echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26659if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26661else
26662 ac_check_lib_save_LIBS=$LIBS
26663LIBS="-lipc $LIBS"
26664cat >conftest.$ac_ext <<_ACEOF
26665/* confdefs.h. */
26666_ACEOF
26667cat confdefs.h >>conftest.$ac_ext
26668cat >>conftest.$ac_ext <<_ACEOF
26669/* end confdefs.h. */
26670
26671/* Override any gcc2 internal prototype to avoid an error. */
26672#ifdef __cplusplus
26673extern "C"
26674#endif
26675/* We use char because int might match the return type of a gcc2
26676 builtin and then its argument prototype would still apply. */
26677char shmat ();
26678int
26679main ()
26680{
26681shmat ();
26682 ;
26683 return 0;
26684}
26685_ACEOF
26686rm -f conftest.$ac_objext conftest$ac_exeext
26687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26688 (eval $ac_link) 2>conftest.er1
a848cd7e 26689 ac_status=$?
ac1cb8d3
VS
26690 grep -v '^ *+' conftest.er1 >conftest.err
26691 rm -f conftest.er1
26692 cat conftest.err >&5
a848cd7e
SC
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } &&
ac1cb8d3
VS
26695 { ac_try='test -z "$ac_c_werror_flag"
26696 || test ! -s conftest.err'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; } &&
26702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; }; then
26708 ac_cv_lib_ipc_shmat=yes
26709else
26710 echo "$as_me: failed program was:" >&5
26711sed 's/^/| /' conftest.$ac_ext >&5
26712
26713ac_cv_lib_ipc_shmat=no
26714fi
ac1cb8d3
VS
26715rm -f conftest.err conftest.$ac_objext \
26716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26717LIBS=$ac_check_lib_save_LIBS
26718fi
26719echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26720echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26721if test $ac_cv_lib_ipc_shmat = yes; then
26722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26723fi
26724
26725 fi
26726 fi
26727
26728 # Check for libraries that X11R6 Xt/Xaw programs need.
26729 ac_save_LDFLAGS=$LDFLAGS
26730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26732 # check for ICE first), but we must link in the order -lSM -lICE or
26733 # we get undefined symbols. So assume we have SM if we have ICE.
26734 # These have to be linked with before -lX11, unlike the other
26735 # libraries we check for below, so use a different variable.
26736 # John Interrante, Karl Berry
26737 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26738echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26739if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741else
26742 ac_check_lib_save_LIBS=$LIBS
26743LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26744cat >conftest.$ac_ext <<_ACEOF
26745/* confdefs.h. */
26746_ACEOF
26747cat confdefs.h >>conftest.$ac_ext
26748cat >>conftest.$ac_ext <<_ACEOF
26749/* end confdefs.h. */
26750
26751/* Override any gcc2 internal prototype to avoid an error. */
26752#ifdef __cplusplus
26753extern "C"
26754#endif
26755/* We use char because int might match the return type of a gcc2
26756 builtin and then its argument prototype would still apply. */
26757char IceConnectionNumber ();
26758int
26759main ()
26760{
26761IceConnectionNumber ();
26762 ;
26763 return 0;
26764}
26765_ACEOF
26766rm -f conftest.$ac_objext conftest$ac_exeext
26767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26768 (eval $ac_link) 2>conftest.er1
a848cd7e 26769 ac_status=$?
ac1cb8d3
VS
26770 grep -v '^ *+' conftest.er1 >conftest.err
26771 rm -f conftest.er1
26772 cat conftest.err >&5
a848cd7e
SC
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } &&
ac1cb8d3
VS
26775 { ac_try='test -z "$ac_c_werror_flag"
26776 || test ! -s conftest.err'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; } &&
26782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26785 ac_status=$?
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; }; then
26788 ac_cv_lib_ICE_IceConnectionNumber=yes
26789else
26790 echo "$as_me: failed program was:" >&5
26791sed 's/^/| /' conftest.$ac_ext >&5
26792
26793ac_cv_lib_ICE_IceConnectionNumber=no
26794fi
ac1cb8d3
VS
26795rm -f conftest.err conftest.$ac_objext \
26796 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26797LIBS=$ac_check_lib_save_LIBS
26798fi
26799echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26800echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26801if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26802 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26803fi
26804
26805 LDFLAGS=$ac_save_LDFLAGS
26806
26807fi
26808
26809
26810 if test "$no_x" = "yes"; then
26811 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26812echo "$as_me: error: X11 not found" >&2;}
26813 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26814 fi
26815
26816 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26817 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26818 AFMINSTALL=afminstall
26819 COMPILED_X_PROGRAM=0
26820
26821 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26822echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26823
26824ac_find_includes=
26825for ac_dir in $SEARCH_INCLUDE /usr/include;
26826 do
26827 if test -f "$ac_dir/Xm/Xm.h"; then
26828 ac_find_includes=$ac_dir
26829 break
26830 fi
26831 done
26832
26833 if test "$ac_find_includes" != "" ; then
26834 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26835echo "${ECHO_T}found in $ac_find_includes" >&6
26836
26837 if test "x$ac_find_includes" = "x/usr/include"; then
26838 ac_path_to_include=""
26839 else
26840 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26841 result=$?
26842 if test $result = 0; then
26843 ac_path_to_include=""
26844 else
26845 ac_path_to_include=" -I$ac_find_includes"
26846 fi
26847 fi
26848
26849 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26850 else
26851 cat >conftest.$ac_ext <<_ACEOF
26852/* confdefs.h. */
26853_ACEOF
26854cat confdefs.h >>conftest.$ac_ext
26855cat >>conftest.$ac_ext <<_ACEOF
26856/* end confdefs.h. */
26857
26858 #include <Xm/Xm.h>
26859
26860int
26861main ()
26862{
26863
26864 int version;
26865 version = xmUseVersion;
26866
26867 ;
26868 return 0;
26869}
26870_ACEOF
26871rm -f conftest.$ac_objext
26872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26873 (eval $ac_compile) 2>conftest.er1
a848cd7e 26874 ac_status=$?
ac1cb8d3
VS
26875 grep -v '^ *+' conftest.er1 >conftest.err
26876 rm -f conftest.er1
26877 cat conftest.err >&5
a848cd7e
SC
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); } &&
ac1cb8d3
VS
26880 { ac_try='test -z "$ac_c_werror_flag"
26881 || test ! -s conftest.err'
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26884 ac_status=$?
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; } &&
26887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; }; then
26893
26894 echo "$as_me:$LINENO: result: found in default search path" >&5
26895echo "${ECHO_T}found in default search path" >&6
26896 COMPILED_X_PROGRAM=1
26897
26898else
26899 echo "$as_me: failed program was:" >&5
26900sed 's/^/| /' conftest.$ac_ext >&5
26901
26902
26903 echo "$as_me:$LINENO: result: no" >&5
26904echo "${ECHO_T}no" >&6
26905 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26906echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26907 { (exit 1); exit 1; }; }
26908
26909
26910fi
ac1cb8d3 26911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26912 fi
26913
26914 if test "$COMPILED_X_PROGRAM" = 0; then
26915 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26916echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26917
26918ac_find_libraries=
26919for ac_dir in $SEARCH_LIB /usr/lib;
26920 do
26921 for ac_extension in a so sl dylib; do
26922 if test -f "$ac_dir/libXm.$ac_extension"; then
26923 ac_find_libraries=$ac_dir
26924 break 2
26925 fi
26926 done
26927 done
26928
26929 if test "$ac_find_libraries" != "" ; then
26930 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26931echo "${ECHO_T}found at $ac_find_libraries" >&6
26932
26933
26934 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26935 result=$?
26936 if test $result = 0; then
26937 ac_path_to_link=""
26938 else
26939 ac_path_to_link=" -L$ac_find_libraries"
26940 fi
26941
26942 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26943 else
26944 save_CFLAGS=$CFLAGS
26945 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26946
26947 cat >conftest.$ac_ext <<_ACEOF
26948/* confdefs.h. */
26949_ACEOF
26950cat confdefs.h >>conftest.$ac_ext
26951cat >>conftest.$ac_ext <<_ACEOF
26952/* end confdefs.h. */
26953
26954 #include <Xm/Xm.h>
26955
26956int
26957main ()
26958{
26959
26960 int version;
26961 version = xmUseVersion;
26962
26963 ;
26964 return 0;
26965}
26966_ACEOF
26967rm -f conftest.$ac_objext
26968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26969 (eval $ac_compile) 2>conftest.er1
a848cd7e 26970 ac_status=$?
ac1cb8d3
VS
26971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
a848cd7e
SC
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
ac1cb8d3
VS
26976 { ac_try='test -z "$ac_c_werror_flag"
26977 || test ! -s conftest.err'
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; } &&
26983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985 (eval $ac_try) 2>&5
26986 ac_status=$?
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); }; }; then
26989
26990 echo "$as_me:$LINENO: result: found in default search path" >&5
26991echo "${ECHO_T}found in default search path" >&6
26992 COMPILED_X_PROGRAM=1
26993
26994else
26995 echo "$as_me: failed program was:" >&5
26996sed 's/^/| /' conftest.$ac_ext >&5
26997
26998
26999 echo "$as_me:$LINENO: result: no" >&5
27000echo "${ECHO_T}no" >&6
27001 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27002echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27003 { (exit 1); exit 1; }; }
27004
27005
27006fi
ac1cb8d3 27007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27008
27009 CFLAGS=$save_CFLAGS
27010 fi
27011 fi
27012
27013 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27014echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27015 libp_link=""
27016 libsm_ice_link=""
27017 libs_found=0
27018 for libp in "" " -lXp"; do
27019 if test "$libs_found" = "0"; then
27020 for libsm_ice in "" " -lSM -lICE"; do
27021 if test "$libs_found" = "0"; then
27022 save_LIBS="$LIBS"
27023 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27024 save_CFLAGS=$CFLAGS
27025 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27026
27027 cat >conftest.$ac_ext <<_ACEOF
27028/* confdefs.h. */
27029_ACEOF
27030cat confdefs.h >>conftest.$ac_ext
27031cat >>conftest.$ac_ext <<_ACEOF
27032/* end confdefs.h. */
27033
27034 #include <Xm/Xm.h>
27035 #include <Xm/List.h>
27036
27037int
27038main ()
27039{
27040
27041 XmString string = NULL;
27042 Widget w = NULL;
27043 int position = 0;
27044 XmListAddItem(w, string, position);
27045
27046 ;
27047 return 0;
27048}
27049_ACEOF
27050rm -f conftest.$ac_objext conftest$ac_exeext
27051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27052 (eval $ac_link) 2>conftest.er1
a848cd7e 27053 ac_status=$?
ac1cb8d3
VS
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
a848cd7e
SC
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } &&
ac1cb8d3
VS
27059 { ac_try='test -z "$ac_c_werror_flag"
27060 || test ! -s conftest.err'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; } &&
27066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; }; then
27072
27073 libp_link="$libp"
27074 libsm_ice_link="$libsm_ice"
27075 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27076echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27077 libs_found=1
27078
27079else
27080 echo "$as_me: failed program was:" >&5
27081sed 's/^/| /' conftest.$ac_ext >&5
27082
27083
27084
27085fi
ac1cb8d3
VS
27086rm -f conftest.err conftest.$ac_objext \
27087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27088
27089 LIBS="$save_LIBS"
27090 CFLAGS=$save_CFLAGS
27091 fi
27092 done
27093 fi
27094 done
27095
27096 if test "$libs_found" = "0"; then
27097 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27098echo "${ECHO_T}can't find the right libraries" >&6
27099 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27100echo "$as_me: error: can't link a simple motif program" >&2;}
27101 { (exit 1); exit 1; }; }
27102 fi
27103
27104 save_CFLAGS=$CFLAGS
27105 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27106 echo "$as_me:$LINENO: checking for Motif 2" >&5
27107echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27108 cat >conftest.$ac_ext <<_ACEOF
27109/* confdefs.h. */
27110_ACEOF
27111cat confdefs.h >>conftest.$ac_ext
27112cat >>conftest.$ac_ext <<_ACEOF
27113/* end confdefs.h. */
27114
27115 #include <Xm/Xm.h>
27116
27117int
27118main ()
27119{
27120
27121 #if XmVersion < 2000
27122 #error "Not Motif 2"
27123 #endif
27124
27125 ;
27126 return 0;
27127}
27128_ACEOF
27129rm -f conftest.$ac_objext
27130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27131 (eval $ac_compile) 2>conftest.er1
a848cd7e 27132 ac_status=$?
ac1cb8d3
VS
27133 grep -v '^ *+' conftest.er1 >conftest.err
27134 rm -f conftest.er1
27135 cat conftest.err >&5
a848cd7e
SC
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } &&
ac1cb8d3
VS
27138 { ac_try='test -z "$ac_c_werror_flag"
27139 || test ! -s conftest.err'
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; } &&
27145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151
27152 cat >>confdefs.h <<\_ACEOF
27153#define __WXMOTIF20__ 1
27154_ACEOF
27155
27156 echo "$as_me:$LINENO: result: found" >&5
27157echo "${ECHO_T}found" >&6
27158
27159else
27160 echo "$as_me: failed program was:" >&5
27161sed 's/^/| /' conftest.$ac_ext >&5
27162
27163
27164 cat >>confdefs.h <<\_ACEOF
27165#define __WXMOTIF20__ 0
27166_ACEOF
27167
27168 echo "$as_me:$LINENO: result: not found" >&5
27169echo "${ECHO_T}not found" >&6
27170
27171fi
ac1cb8d3 27172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27173 CFLAGS=$save_CFLAGS
27174
27175 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
27176 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
27177 TOOLKIT=MOTIF
27178 GUIDIST=MOTIF_DIST
27179 fi
27180
27181 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
27182 if test "$wxUSE_LIBXPM" = "sys"; then
27183 echo "$as_me:$LINENO: checking for Xpm library" >&5
27184echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27185
27186ac_find_libraries=
27187for ac_dir in $SEARCH_LIB /usr/lib;
27188 do
27189 for ac_extension in a so sl dylib; do
27190 if test -f "$ac_dir/libXpm.$ac_extension"; then
27191 ac_find_libraries=$ac_dir
27192 break 2
27193 fi
27194 done
27195 done
27196
27197 if test "$ac_find_libraries" != "" ; then
27198
27199 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27200 result=$?
27201 if test $result = 0; then
27202 ac_path_to_link=""
27203 else
27204 ac_path_to_link=" -L$ac_find_libraries"
27205 fi
27206
27207 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27208 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27209echo "${ECHO_T}found at $ac_find_libraries" >&6
27210
27211 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27212echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27213if test "${wx_cv_x11_xpm_h+set}" = set; then
27214 echo $ECHO_N "(cached) $ECHO_C" >&6
27215else
27216
27217 save_CFLAGS=$CFLAGS
27218 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27219
27220 cat >conftest.$ac_ext <<_ACEOF
27221/* confdefs.h. */
27222_ACEOF
27223cat confdefs.h >>conftest.$ac_ext
27224cat >>conftest.$ac_ext <<_ACEOF
27225/* end confdefs.h. */
27226
27227 #include <X11/xpm.h>
27228
27229int
27230main ()
27231{
27232
27233 int version;
27234 version = XpmLibraryVersion();
27235
27236 ;
27237 return 0;
27238}
27239_ACEOF
27240rm -f conftest.$ac_objext
27241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27242 (eval $ac_compile) 2>conftest.er1
a848cd7e 27243 ac_status=$?
ac1cb8d3
VS
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
a848cd7e
SC
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
ac1cb8d3
VS
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27253 ac_status=$?
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 wx_cv_x11_xpm_h=yes
27263else
27264 echo "$as_me: failed program was:" >&5
27265sed 's/^/| /' conftest.$ac_ext >&5
27266
27267wx_cv_x11_xpm_h=no
27268
27269fi
ac1cb8d3 27270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27271
27272 CFLAGS=$save_CFLAGS
27273
27274
27275fi
27276echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27277echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27278
27279 if test $wx_cv_x11_xpm_h = "yes"; then
27280 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27281 cat >>confdefs.h <<\_ACEOF
27282#define wxHAVE_LIB_XPM 1
27283_ACEOF
27284
27285 else
27286 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27287echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27288 fi
27289 fi
27290
27291 fi
27292
27293 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27294echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27295if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27297else
27298 ac_check_lib_save_LIBS=$LIBS
27299LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27300cat >conftest.$ac_ext <<_ACEOF
27301/* confdefs.h. */
27302_ACEOF
27303cat confdefs.h >>conftest.$ac_ext
27304cat >>conftest.$ac_ext <<_ACEOF
27305/* end confdefs.h. */
27306
27307/* Override any gcc2 internal prototype to avoid an error. */
27308#ifdef __cplusplus
27309extern "C"
27310#endif
27311/* We use char because int might match the return type of a gcc2
27312 builtin and then its argument prototype would still apply. */
27313char XShapeQueryExtension ();
27314int
27315main ()
27316{
27317XShapeQueryExtension ();
27318 ;
27319 return 0;
27320}
27321_ACEOF
27322rm -f conftest.$ac_objext conftest$ac_exeext
27323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27324 (eval $ac_link) 2>conftest.er1
a848cd7e 27325 ac_status=$?
ac1cb8d3
VS
27326 grep -v '^ *+' conftest.er1 >conftest.err
27327 rm -f conftest.er1
27328 cat conftest.err >&5
a848cd7e
SC
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } &&
ac1cb8d3
VS
27331 { ac_try='test -z "$ac_c_werror_flag"
27332 || test ! -s conftest.err'
27333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334 (eval $ac_try) 2>&5
27335 ac_status=$?
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; } &&
27338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27340 (eval $ac_try) 2>&5
27341 ac_status=$?
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
27344 ac_cv_lib_Xext_XShapeQueryExtension=yes
27345else
27346 echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349ac_cv_lib_Xext_XShapeQueryExtension=no
27350fi
ac1cb8d3
VS
27351rm -f conftest.err conftest.$ac_objext \
27352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27353LIBS=$ac_check_lib_save_LIBS
27354fi
27355echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27356echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27357if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27358
27359 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27360 wxHAVE_XEXT_LIB=1
27361
27362fi
27363
27364
27365 if test "$wxHAVE_XEXT_LIB" = 1; then
27366 save_CFLAGS="$CFLAGS"
27367 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27368
27369 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27370echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27371 cat >conftest.$ac_ext <<_ACEOF
27372/* confdefs.h. */
27373_ACEOF
27374cat confdefs.h >>conftest.$ac_ext
27375cat >>conftest.$ac_ext <<_ACEOF
27376/* end confdefs.h. */
27377
27378 #include <X11/Xlib.h>
27379 #include <X11/extensions/shape.h>
27380
27381int
27382main ()
27383{
27384
27385 int dummy1, dummy2;
27386 XShapeQueryExtension((Display*)NULL,
27387 (int*)NULL, (int*)NULL);
27388
27389 ;
27390 return 0;
27391}
27392_ACEOF
27393rm -f conftest.$ac_objext
27394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27395 (eval $ac_compile) 2>conftest.er1
a848cd7e 27396 ac_status=$?
ac1cb8d3
VS
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
a848cd7e
SC
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
ac1cb8d3
VS
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415
27416 cat >>confdefs.h <<\_ACEOF
27417#define HAVE_XSHAPE 1
27418_ACEOF
27419
27420 echo "$as_me:$LINENO: result: found" >&5
27421echo "${ECHO_T}found" >&6
27422
27423else
27424 echo "$as_me: failed program was:" >&5
27425sed 's/^/| /' conftest.$ac_ext >&5
27426
27427
27428 echo "$as_me:$LINENO: result: not found" >&5
27429echo "${ECHO_T}not found" >&6
27430
27431fi
ac1cb8d3 27432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27433 CFLAGS="$save_CFLAGS"
27434
27435 fi
27436 fi
27437
27438 if test "$wxUSE_MAC" = 1; then
27439 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27440echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27441 if test "$GCC" = yes; then
27442 echo "$as_me:$LINENO: result: gcc" >&5
27443echo "${ECHO_T}gcc" >&6
27444 CPPFLAGS_PASCAL="-fpascal-strings"
27445 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27446 echo "$as_me:$LINENO: result: xlc" >&5
27447echo "${ECHO_T}xlc" >&6
27448 CPPFLAGS_PASCAL="-qmacpstr"
27449 else
27450 echo "$as_me:$LINENO: result: none" >&5
27451echo "${ECHO_T}none" >&6
27452 fi
27453
27454 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27455
27456 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
27457 TOOLKIT=MAC
27458 GUIDIST=MACX_DIST
27459 WXBASEPORT="_carbon"
27460 fi
27461
27462 if test "$wxUSE_COCOA" = 1; then
27463 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
27464 TOOLKIT=COCOA
27465 GUIDIST=COCOA_DIST
27466 fi
27467
27468 if test "$wxUSE_PM" = 1; then
27469 TOOLKIT=PM
de59c161
RD
27470 GUIDIST=PM_DIST
27471 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27472echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27473if test "${wx_cv_spbcdata+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27475else
27476
27477 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27478/* confdefs.h. */
27479_ACEOF
27480cat confdefs.h >>conftest.$ac_ext
27481cat >>conftest.$ac_ext <<_ACEOF
27482/* end confdefs.h. */
27483
27484 #define INCL_PM
27485 #include <os2.h>
27486
27487int
27488main ()
27489{
27490
27491 SPBCDATA test;
27492
27493 ;
27494 return 0;
27495}
27496_ACEOF
27497rm -f conftest.$ac_objext
27498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27499 (eval $ac_compile) 2>conftest.er1
de59c161 27500 ac_status=$?
ac1cb8d3
VS
27501 grep -v '^ *+' conftest.er1 >conftest.err
27502 rm -f conftest.er1
27503 cat conftest.err >&5
de59c161
RD
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); } &&
ac1cb8d3
VS
27506 { ac_try='test -z "$ac_c_werror_flag"
27507 || test ! -s conftest.err'
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; } &&
27513 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; }; then
27519 wx_cv_spbcdata=yes
27520else
27521 echo "$as_me: failed program was:" >&5
27522sed 's/^/| /' conftest.$ac_ext >&5
27523
27524wx_cv_spbcdata=no
27525
27526fi
ac1cb8d3 27527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27528
27529
27530fi
27531echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27532echo "${ECHO_T}$wx_cv_spbcdata" >&6
27533
27534 if test $wx_cv_spbcdata = "yes"; then
27535 cat >>confdefs.h <<\_ACEOF
27536#define HAVE_SPBCDATA 1
27537_ACEOF
27538
27539 fi
a848cd7e
SC
27540 fi
27541
27542 if test "$TOOLKIT" = "PM" ; then
27543 TOOLKIT_DIR="os2"
27544 else
27545 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27546 fi
27547
27548 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
27549
27550 if test "$wxUSE_UNIVERSAL" = "yes"; then
27551 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
27552
27553 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
27554 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
27555
27556 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
27557 if test "$wxUSE_X11" = 1; then
27558 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
27559 else
27560 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
27561 fi
27562 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27563 WIDGET_SET=univ
27564 else
27565 ALL_OBJECTS="\$(GUIOBJS)"
27566 ALL_SOURCES="\$(ALL_SOURCES)"
27567 ALL_HEADERS="\$(ALL_HEADERS)"
27568 fi
27569
27570 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
27571
27572 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
27573 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
27574 fi
27575
27576 if test "$wxUSE_HTML" = "yes"; then
27577 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
27578 fi
27579
27580 if test "$wxUSE_LIBJPEG" = "builtin" ; then
27581 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
27582 fi
27583 if test "$wxUSE_LIBTIFF" = "builtin" ; then
27584 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
27585 fi
27586 if test "$wxUSE_LIBPNG" = "builtin" ; then
27587 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
27588 fi
27589
27590 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27591 DISTDIR="wx\$(TOOLKIT)"
27592else
27593 USE_GUI=0
27594
27595 TOOLKIT_DIR="base"
27596
27597 if test "$USE_WIN32" = 1 ; then
27598 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
27599 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
27600
27601 TOOLKIT="MSW"
27602 else
27603 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
27604 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
27605 fi
27606
27607 ALL_SOURCES="\$(ALL_SOURCES)"
27608 ALL_HEADERS="\$(ALL_HEADERS)"
27609
27610 PORT_FILES="\${top_srcdir}/src/files.lst"
27611
27612 GUIDIST="BASE_DIST"
27613 DISTDIR="wxBase"
27614fi
27615
27616
27617
27618
27619IODBC_C_SRC=""
27620
27621
27622if test "$TOOLKIT" != "MSW" ; then
27623
27624 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27625
27626 if test "${ac_cv_header_sql_h+set}" = set; then
27627 echo "$as_me:$LINENO: checking for sql.h" >&5
27628echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27629if test "${ac_cv_header_sql_h+set}" = set; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27631fi
27632echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27633echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27634else
27635 # Is the header compilable?
27636echo "$as_me:$LINENO: checking sql.h usability" >&5
27637echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27638cat >conftest.$ac_ext <<_ACEOF
27639/* confdefs.h. */
27640_ACEOF
27641cat confdefs.h >>conftest.$ac_ext
27642cat >>conftest.$ac_ext <<_ACEOF
27643/* end confdefs.h. */
27644$ac_includes_default
27645#include <sql.h>
27646_ACEOF
27647rm -f conftest.$ac_objext
27648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27649 (eval $ac_compile) 2>conftest.er1
a848cd7e 27650 ac_status=$?
ac1cb8d3
VS
27651 grep -v '^ *+' conftest.er1 >conftest.err
27652 rm -f conftest.er1
27653 cat conftest.err >&5
a848cd7e
SC
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); } &&
ac1cb8d3
VS
27656 { ac_try='test -z "$ac_c_werror_flag"
27657 || test ! -s conftest.err'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } &&
27663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27665 (eval $ac_try) 2>&5
27666 ac_status=$?
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); }; }; then
27669 ac_header_compiler=yes
27670else
27671 echo "$as_me: failed program was:" >&5
27672sed 's/^/| /' conftest.$ac_ext >&5
27673
27674ac_header_compiler=no
27675fi
ac1cb8d3 27676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27678echo "${ECHO_T}$ac_header_compiler" >&6
27679
27680# Is the header present?
27681echo "$as_me:$LINENO: checking sql.h presence" >&5
27682echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27683cat >conftest.$ac_ext <<_ACEOF
27684/* confdefs.h. */
27685_ACEOF
27686cat confdefs.h >>conftest.$ac_ext
27687cat >>conftest.$ac_ext <<_ACEOF
27688/* end confdefs.h. */
27689#include <sql.h>
27690_ACEOF
27691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27693 ac_status=$?
27694 grep -v '^ *+' conftest.er1 >conftest.err
27695 rm -f conftest.er1
27696 cat conftest.err >&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } >/dev/null; then
27699 if test -s conftest.err; then
27700 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27702 else
27703 ac_cpp_err=
27704 fi
27705else
27706 ac_cpp_err=yes
27707fi
27708if test -z "$ac_cpp_err"; then
27709 ac_header_preproc=yes
27710else
27711 echo "$as_me: failed program was:" >&5
27712sed 's/^/| /' conftest.$ac_ext >&5
27713
27714 ac_header_preproc=no
27715fi
27716rm -f conftest.err conftest.$ac_ext
27717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27718echo "${ECHO_T}$ac_header_preproc" >&6
27719
27720# So? What about this header?
ac1cb8d3
VS
27721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27722 yes:no: )
a848cd7e
SC
27723 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27724echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27725 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27726echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27727 ac_header_preproc=yes
a848cd7e 27728 ;;
ac1cb8d3 27729 no:yes:* )
a848cd7e
SC
27730 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27731echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27732 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27733echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27734 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27735echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27736 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27737echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27738 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27739echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27740 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27741echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27742 (
27743 cat <<\_ASBOX
ac1cb8d3
VS
27744## ----------------------------------------- ##
27745## Report this to wx-dev@lists.wxwidgets.org ##
27746## ----------------------------------------- ##
a848cd7e
SC
27747_ASBOX
27748 ) |
27749 sed "s/^/$as_me: WARNING: /" >&2
27750 ;;
27751esac
27752echo "$as_me:$LINENO: checking for sql.h" >&5
27753echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27754if test "${ac_cv_header_sql_h+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756else
27757 ac_cv_header_sql_h=$ac_header_preproc
27758fi
27759echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27760echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27761
27762fi
27763if test $ac_cv_header_sql_h = yes; then
27764 found_sql_h=1
27765fi
27766
27767
27768 if test "x$found_sql_h" = "x1" ; then
27769 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27770echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27771if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27773else
27774 ac_check_lib_save_LIBS=$LIBS
27775LIBS="-liodbc $LIBS"
27776cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h. */
27782
27783/* Override any gcc2 internal prototype to avoid an error. */
27784#ifdef __cplusplus
27785extern "C"
27786#endif
27787/* We use char because int might match the return type of a gcc2
27788 builtin and then its argument prototype would still apply. */
27789char SQLAllocEnv ();
27790int
27791main ()
27792{
27793SQLAllocEnv ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
27798rm -f conftest.$ac_objext conftest$ac_exeext
27799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27800 (eval $ac_link) 2>conftest.er1
a848cd7e 27801 ac_status=$?
ac1cb8d3
VS
27802 grep -v '^ *+' conftest.er1 >conftest.err
27803 rm -f conftest.er1
27804 cat conftest.err >&5
a848cd7e
SC
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } &&
ac1cb8d3
VS
27807 { ac_try='test -z "$ac_c_werror_flag"
27808 || test ! -s conftest.err'
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; } &&
27814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; }; then
27820 ac_cv_lib_iodbc_SQLAllocEnv=yes
27821else
27822 echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825ac_cv_lib_iodbc_SQLAllocEnv=no
27826fi
ac1cb8d3
VS
27827rm -f conftest.err conftest.$ac_objext \
27828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27829LIBS=$ac_check_lib_save_LIBS
27830fi
27831echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27832echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27833if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27834 ODBC_LINK=" -liodbc"
27835else
27836
27837 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27838echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27839if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27841else
27842 ac_check_lib_save_LIBS=$LIBS
27843LIBS="-lunixodbc $LIBS"
27844cat >conftest.$ac_ext <<_ACEOF
27845/* confdefs.h. */
27846_ACEOF
27847cat confdefs.h >>conftest.$ac_ext
27848cat >>conftest.$ac_ext <<_ACEOF
27849/* end confdefs.h. */
27850
27851/* Override any gcc2 internal prototype to avoid an error. */
27852#ifdef __cplusplus
27853extern "C"
27854#endif
27855/* We use char because int might match the return type of a gcc2
27856 builtin and then its argument prototype would still apply. */
27857char SQLAllocEnv ();
27858int
27859main ()
27860{
27861SQLAllocEnv ();
27862 ;
27863 return 0;
27864}
27865_ACEOF
27866rm -f conftest.$ac_objext conftest$ac_exeext
27867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27868 (eval $ac_link) 2>conftest.er1
a848cd7e 27869 ac_status=$?
ac1cb8d3
VS
27870 grep -v '^ *+' conftest.er1 >conftest.err
27871 rm -f conftest.er1
27872 cat conftest.err >&5
a848cd7e
SC
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); } &&
ac1cb8d3
VS
27875 { ac_try='test -z "$ac_c_werror_flag"
27876 || test ! -s conftest.err'
27877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27878 (eval $ac_try) 2>&5
27879 ac_status=$?
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884 (eval $ac_try) 2>&5
27885 ac_status=$?
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; }; then
27888 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27889else
27890 echo "$as_me: failed program was:" >&5
27891sed 's/^/| /' conftest.$ac_ext >&5
27892
27893ac_cv_lib_unixodbc_SQLAllocEnv=no
27894fi
ac1cb8d3
VS
27895rm -f conftest.err conftest.$ac_objext \
27896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27897LIBS=$ac_check_lib_save_LIBS
27898fi
27899echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27900echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27901if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27902 ODBC_LINK=" -lunixodbc"
27903else
27904
27905 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27906echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27907if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909else
27910 ac_check_lib_save_LIBS=$LIBS
27911LIBS="-lodbc $LIBS"
27912cat >conftest.$ac_ext <<_ACEOF
27913/* confdefs.h. */
27914_ACEOF
27915cat confdefs.h >>conftest.$ac_ext
27916cat >>conftest.$ac_ext <<_ACEOF
27917/* end confdefs.h. */
27918
27919/* Override any gcc2 internal prototype to avoid an error. */
27920#ifdef __cplusplus
27921extern "C"
27922#endif
27923/* We use char because int might match the return type of a gcc2
27924 builtin and then its argument prototype would still apply. */
27925char SQLAllocEnv ();
27926int
27927main ()
27928{
27929SQLAllocEnv ();
27930 ;
27931 return 0;
27932}
27933_ACEOF
27934rm -f conftest.$ac_objext conftest$ac_exeext
27935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27936 (eval $ac_link) 2>conftest.er1
a848cd7e 27937 ac_status=$?
ac1cb8d3
VS
27938 grep -v '^ *+' conftest.er1 >conftest.err
27939 rm -f conftest.er1
27940 cat conftest.err >&5
a848cd7e
SC
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); } &&
ac1cb8d3
VS
27943 { ac_try='test -z "$ac_c_werror_flag"
27944 || test ! -s conftest.err'
27945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27946 (eval $ac_try) 2>&5
27947 ac_status=$?
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; } &&
27950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; }; then
27956 ac_cv_lib_odbc_SQLAllocEnv=yes
27957else
27958 echo "$as_me: failed program was:" >&5
27959sed 's/^/| /' conftest.$ac_ext >&5
27960
27961ac_cv_lib_odbc_SQLAllocEnv=no
27962fi
ac1cb8d3
VS
27963rm -f conftest.err conftest.$ac_objext \
27964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27965LIBS=$ac_check_lib_save_LIBS
27966fi
27967echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27968echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27969if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27970 ODBC_LINK=" -lodbc"
27971fi
27972
27973
27974fi
27975
27976
27977fi
27978
27979 fi
27980 if test "x$ODBC_LINK" = "x" ; then
27981 if test "$wxUSE_ODBC" = "sys" ; then
27982 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27983echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27984 { (exit 1); exit 1; }; }
27985 else
27986 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27987echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27988 wxUSE_ODBC=builtin
27989 fi
27990 else
27991 wxUSE_ODBC=sys
27992 fi
27993 fi
27994 if test "$wxUSE_ODBC" != "no" ; then
27995 cat >>confdefs.h <<\_ACEOF
27996#define wxUSE_ODBC 1
27997_ACEOF
27998
27999 if test "$wxUSE_ODBC" = "builtin" ; then
28000 cat >>confdefs.h <<\_ACEOF
28001#define wxUSE_BUILTIN_IODBC 1
28002_ACEOF
28003
28004 fi
28005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28006
28007 WXODBCFLAG="-D_IODBC_"
28008 fi
28009fi
28010
28011if test "$wxUSE_REGEX" = "builtin" ; then
28012 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
28013fi
28014if test "$wxUSE_ZLIB" = "builtin" ; then
28015 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
28016fi
28017
01cb68df 28018
a848cd7e 28019if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28020 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28021 echo "$as_me:$LINENO: checking for Xinerama" >&5
28022echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28023
28024ac_find_libraries=
28025for ac_dir in $SEARCH_LIB /usr/lib;
28026 do
28027 for ac_extension in a so sl dylib; do
28028 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28029 ac_find_libraries=$ac_dir
28030 break 2
28031 fi
28032 done
28033 done
28034
28035 if test "$ac_find_libraries" != "" ; then
28036
28037 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28038 result=$?
28039 if test $result = 0; then
28040 ac_path_to_link=""
28041 else
28042 ac_path_to_link=" -L$ac_find_libraries"
28043 fi
28044
28045 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28046 LDFLAGS="$LDFLAGS $ac_path_to_link"
28047 fi
28048 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28049 echo "$as_me:$LINENO: result: yes" >&5
28050echo "${ECHO_T}yes" >&6
28051
28052 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28053echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28054
28055ac_find_libraries=
28056for ac_dir in $SEARCH_LIB /usr/lib;
28057 do
28058 for ac_extension in a so sl dylib; do
28059 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28060 ac_find_libraries=$ac_dir
28061 break 2
28062 fi
28063 done
28064 done
28065
28066 if test "$ac_find_libraries" != "" ; then
28067 echo "$as_me:$LINENO: result: yes" >&5
28068echo "${ECHO_T}yes" >&6
28069
28070for ac_header in X11/extensions/xf86vmode.h
28071do
28072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28073echo "$as_me:$LINENO: checking for $ac_header" >&5
28074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28075if eval "test \"\${$as_ac_Header+set}\" = set"; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28077else
28078 cat >conftest.$ac_ext <<_ACEOF
28079/* confdefs.h. */
28080_ACEOF
28081cat confdefs.h >>conftest.$ac_ext
28082cat >>conftest.$ac_ext <<_ACEOF
28083/* end confdefs.h. */
28084
28085 #if HAVE_X11_XLIB_H
28086 #include <X11/Xlib.h>
28087 #endif
28088
28089
28090#include <$ac_header>
28091_ACEOF
28092rm -f conftest.$ac_objext
28093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28094 (eval $ac_compile) 2>conftest.er1
a848cd7e 28095 ac_status=$?
ac1cb8d3
VS
28096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
a848cd7e
SC
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
ac1cb8d3
VS
28101 { ac_try='test -z "$ac_c_werror_flag"
28102 || test ! -s conftest.err'
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; } &&
28108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110 (eval $ac_try) 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); }; }; then
28114 eval "$as_ac_Header=yes"
28115else
28116 echo "$as_me: failed program was:" >&5
28117sed 's/^/| /' conftest.$ac_ext >&5
28118
28119eval "$as_ac_Header=no"
28120fi
ac1cb8d3 28121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28122fi
28123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28125if test `eval echo '${'$as_ac_Header'}'` = yes; then
28126 cat >>confdefs.h <<_ACEOF
28127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28128_ACEOF
28129
28130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28131
28132fi
28133
28134done
28135
28136 else
28137 echo "$as_me:$LINENO: result: no" >&5
28138echo "${ECHO_T}no" >&6
28139 fi
28140
28141 else
28142 echo "$as_me:$LINENO: result: no" >&5
28143echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28144 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28145echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28146 wxUSE_DISPLAY="no"
28147 fi
01cb68df
RG
28148 elif test "$wxUSE_MSW" = 1; then
28149
28150
28151for ac_header in multimon.h ddraw.h
28152do
28153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28154if eval "test \"\${$as_ac_Header+set}\" = set"; then
28155 echo "$as_me:$LINENO: checking for $ac_header" >&5
28156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28157if eval "test \"\${$as_ac_Header+set}\" = set"; then
28158 echo $ECHO_N "(cached) $ECHO_C" >&6
28159fi
28160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28162else
28163 # Is the header compilable?
28164echo "$as_me:$LINENO: checking $ac_header usability" >&5
28165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28166cat >conftest.$ac_ext <<_ACEOF
28167/* confdefs.h. */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h. */
28172$ac_includes_default
28173#include <$ac_header>
28174_ACEOF
28175rm -f conftest.$ac_objext
28176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28177 (eval $ac_compile) 2>conftest.er1
01cb68df 28178 ac_status=$?
ac1cb8d3
VS
28179 grep -v '^ *+' conftest.er1 >conftest.err
28180 rm -f conftest.er1
28181 cat conftest.err >&5
01cb68df
RG
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
ac1cb8d3
VS
28184 { ac_try='test -z "$ac_c_werror_flag"
28185 || test ! -s conftest.err'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
28197 ac_header_compiler=yes
28198else
28199 echo "$as_me: failed program was:" >&5
28200sed 's/^/| /' conftest.$ac_ext >&5
28201
28202ac_header_compiler=no
28203fi
ac1cb8d3 28204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28206echo "${ECHO_T}$ac_header_compiler" >&6
28207
28208# Is the header present?
28209echo "$as_me:$LINENO: checking $ac_header presence" >&5
28210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28211cat >conftest.$ac_ext <<_ACEOF
28212/* confdefs.h. */
28213_ACEOF
28214cat confdefs.h >>conftest.$ac_ext
28215cat >>conftest.$ac_ext <<_ACEOF
28216/* end confdefs.h. */
28217#include <$ac_header>
28218_ACEOF
28219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28221 ac_status=$?
28222 grep -v '^ *+' conftest.er1 >conftest.err
28223 rm -f conftest.er1
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } >/dev/null; then
28227 if test -s conftest.err; then
28228 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
28230 else
28231 ac_cpp_err=
28232 fi
28233else
28234 ac_cpp_err=yes
28235fi
28236if test -z "$ac_cpp_err"; then
28237 ac_header_preproc=yes
28238else
28239 echo "$as_me: failed program was:" >&5
28240sed 's/^/| /' conftest.$ac_ext >&5
28241
28242 ac_header_preproc=no
28243fi
28244rm -f conftest.err conftest.$ac_ext
28245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28246echo "${ECHO_T}$ac_header_preproc" >&6
28247
28248# So? What about this header?
ac1cb8d3
VS
28249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28250 yes:no: )
01cb68df
RG
28251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28255 ac_header_preproc=yes
01cb68df 28256 ;;
ac1cb8d3 28257 no:yes:* )
01cb68df
RG
28258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
28266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
28270 (
28271 cat <<\_ASBOX
ac1cb8d3
VS
28272## ----------------------------------------- ##
28273## Report this to wx-dev@lists.wxwidgets.org ##
28274## ----------------------------------------- ##
01cb68df
RG
28275_ASBOX
28276 ) |
28277 sed "s/^/$as_me: WARNING: /" >&2
28278 ;;
28279esac
28280echo "$as_me:$LINENO: checking for $ac_header" >&5
28281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28282if eval "test \"\${$as_ac_Header+set}\" = set"; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28284else
ac1cb8d3 28285 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
28286fi
28287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28289
28290fi
28291if test `eval echo '${'$as_ac_Header'}'` = yes; then
28292 cat >>confdefs.h <<_ACEOF
28293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28294_ACEOF
28295
28296else
28297
28298 wxUSE_DISPLAY="no"
dcc1b6ad
VS
28299 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
28300echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28301
28302fi
28303
28304done
28305
a848cd7e
SC
28306 fi
28307fi
28308
28309
28310USE_OPENGL=0
28311if test "$wxUSE_OPENGL" = "yes"; then
28312 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28313 OPENGL_LIBS="-framework OpenGL -framework AGL"
28314 elif test "$wxUSE_MSW" = 1; then
28315 OPENGL_LIBS="-lopengl32 -lglu32"
28316 else
28317
28318
28319ac_find_includes=
28320for ac_dir in $SEARCH_INCLUDE /usr/include;
28321 do
28322 if test -f "$ac_dir/GL/gl.h"; then
28323 ac_find_includes=$ac_dir
28324 break
28325 fi
28326 done
28327
28328 if test "$ac_find_includes" != "" ; then
28329 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28330echo "${ECHO_T}found in $ac_find_includes" >&6
28331
28332 if test "x$ac_find_includes" = "x/usr/include"; then
28333 ac_path_to_include=""
28334 else
28335 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28336 result=$?
28337 if test $result = 0; then
28338 ac_path_to_include=""
28339 else
28340 ac_path_to_include=" -I$ac_find_includes"
28341 fi
28342 fi
28343
28344 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28345 fi
28346
28347 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28348 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28349echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28350if test "${ac_cv_header_GL_gl_h+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28352fi
28353echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28354echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28355else
28356 # Is the header compilable?
28357echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28358echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28359cat >conftest.$ac_ext <<_ACEOF
28360/* confdefs.h. */
28361_ACEOF
28362cat confdefs.h >>conftest.$ac_ext
28363cat >>conftest.$ac_ext <<_ACEOF
28364/* end confdefs.h. */
28365$ac_includes_default
28366#include <GL/gl.h>
28367_ACEOF
28368rm -f conftest.$ac_objext
28369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28370 (eval $ac_compile) 2>conftest.er1
a848cd7e 28371 ac_status=$?
ac1cb8d3
VS
28372 grep -v '^ *+' conftest.er1 >conftest.err
28373 rm -f conftest.er1
28374 cat conftest.err >&5
a848cd7e
SC
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); } &&
ac1cb8d3
VS
28377 { ac_try='test -z "$ac_c_werror_flag"
28378 || test ! -s conftest.err'
28379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380 (eval $ac_try) 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; } &&
28384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; }; then
28390 ac_header_compiler=yes
28391else
28392 echo "$as_me: failed program was:" >&5
28393sed 's/^/| /' conftest.$ac_ext >&5
28394
28395ac_header_compiler=no
28396fi
ac1cb8d3 28397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28399echo "${ECHO_T}$ac_header_compiler" >&6
28400
28401# Is the header present?
28402echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28403echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28404cat >conftest.$ac_ext <<_ACEOF
28405/* confdefs.h. */
28406_ACEOF
28407cat confdefs.h >>conftest.$ac_ext
28408cat >>conftest.$ac_ext <<_ACEOF
28409/* end confdefs.h. */
28410#include <GL/gl.h>
28411_ACEOF
28412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28414 ac_status=$?
28415 grep -v '^ *+' conftest.er1 >conftest.err
28416 rm -f conftest.er1
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } >/dev/null; then
28420 if test -s conftest.err; then
28421 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28423 else
28424 ac_cpp_err=
28425 fi
28426else
28427 ac_cpp_err=yes
28428fi
28429if test -z "$ac_cpp_err"; then
28430 ac_header_preproc=yes
28431else
28432 echo "$as_me: failed program was:" >&5
28433sed 's/^/| /' conftest.$ac_ext >&5
28434
28435 ac_header_preproc=no
28436fi
28437rm -f conftest.err conftest.$ac_ext
28438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28439echo "${ECHO_T}$ac_header_preproc" >&6
28440
28441# So? What about this header?
ac1cb8d3
VS
28442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28443 yes:no: )
a848cd7e
SC
28444 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28445echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28446 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28447echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28448 ac_header_preproc=yes
a848cd7e 28449 ;;
ac1cb8d3 28450 no:yes:* )
a848cd7e
SC
28451 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28452echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28453 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28454echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28455 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28456echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28457 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28458echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28459 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28460echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28461 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28462echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28463 (
28464 cat <<\_ASBOX
ac1cb8d3
VS
28465## ----------------------------------------- ##
28466## Report this to wx-dev@lists.wxwidgets.org ##
28467## ----------------------------------------- ##
a848cd7e
SC
28468_ASBOX
28469 ) |
28470 sed "s/^/$as_me: WARNING: /" >&2
28471 ;;
28472esac
28473echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28474echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28475if test "${ac_cv_header_GL_gl_h+set}" = set; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
28477else
28478 ac_cv_header_GL_gl_h=$ac_header_preproc
28479fi
28480echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28481echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28482
28483fi
28484if test $ac_cv_header_GL_gl_h = yes; then
28485
28486 found_gl=0
28487
28488 echo "$as_me:$LINENO: checking for -lGL" >&5
28489echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28490
28491ac_find_libraries=
28492for ac_dir in $SEARCH_LIB /usr/lib;
28493 do
28494 for ac_extension in a so sl dylib; do
28495 if test -f "$ac_dir/libGL.$ac_extension"; then
28496 ac_find_libraries=$ac_dir
28497 break 2
28498 fi
28499 done
28500 done
28501
28502 if test "$ac_find_libraries" != "" ; then
28503
28504 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28505 result=$?
28506 if test $result = 0; then
28507 ac_path_to_link=""
28508 else
28509 ac_path_to_link=" -L$ac_find_libraries"
28510 fi
28511
28512 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28513 LDFLAGS_GL="$ac_path_to_link"
28514 fi
28515
28516
28517ac_find_libraries=
28518for ac_dir in $SEARCH_LIB /usr/lib;
28519 do
28520 for ac_extension in a so sl dylib; do
28521 if test -f "$ac_dir/libGLU.$ac_extension"; then
28522 ac_find_libraries=$ac_dir
28523 break 2
28524 fi
28525 done
28526 done
28527
28528 if test "$ac_find_libraries" != "" ; then
28529
28530 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28531 result=$?
28532 if test $result = 0; then
28533 ac_path_to_link=""
28534 else
28535 ac_path_to_link=" -L$ac_find_libraries"
28536 fi
28537
28538 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28539 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28540 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28541 fi
28542
28543 found_gl=1
28544 OPENGL_LIBS="-lGL -lGLU"
28545 echo "$as_me:$LINENO: result: yes" >&5
28546echo "${ECHO_T}yes" >&6
28547 fi
28548 fi
28549
28550 if test "$found_gl" != 1; then
28551 echo "$as_me:$LINENO: result: no" >&5
28552echo "${ECHO_T}no" >&6
28553 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28554echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28555
28556ac_find_libraries=
28557for ac_dir in $SEARCH_LIB /usr/lib;
28558 do
28559 for ac_extension in a so sl dylib; do
28560 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28561 ac_find_libraries=$ac_dir
28562 break 2
28563 fi
28564 done
28565 done
28566
28567 if test "$ac_find_libraries" != "" ; then
28568
28569 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28570 result=$?
28571 if test $result = 0; then
28572 ac_path_to_link=""
28573 else
28574 ac_path_to_link=" -L$ac_find_libraries"
28575 fi
28576
28577 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28578 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28579 echo "$as_me:$LINENO: result: yes" >&5
28580echo "${ECHO_T}yes" >&6
28581 else
28582 echo "$as_me:$LINENO: result: no" >&5
28583echo "${ECHO_T}no" >&6
28584 fi
28585 fi
28586
28587fi
28588
28589
28590
28591 if test "x$OPENGL_LIBS" = "x"; then
28592 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28593echo "$as_me: error: OpenGL libraries not available" >&2;}
28594 { (exit 1); exit 1; }; }
28595 fi
28596 fi
28597
28598 if test "$wxUSE_OPENGL" = "yes"; then
28599 USE_OPENGL=1
28600 cat >>confdefs.h <<\_ACEOF
28601#define wxUSE_OPENGL 1
28602_ACEOF
28603
28604 cat >>confdefs.h <<\_ACEOF
28605#define wxUSE_GLCANVAS 1
28606_ACEOF
28607
28608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28609 fi
28610fi
28611
28612if test -z "$TOOLKIT_VPATH" ; then
28613 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
28614fi
28615
28616if test -n "$TOOLKIT" ; then
28617 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28618fi
28619
28620UNICODE=0
28621lib_unicode_suffix=
28622if test "$wxUSE_UNICODE" = "yes"; then
28623 lib_unicode_suffix=u
28624 UNICODE=1
28625fi
28626
28627lib_debug_suffix=
28628DEBUG_FLAG=0
28629if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28630 lib_debug_suffix=d
28631 DEBUG_FLAG=1
28632fi
28633
28634DEBUG_INFO=0
28635if test "$wxUSE_DEBUG_INFO" = "yes"; then
28636 DEBUG_INFO=1
28637fi
28638
28639WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
28640
28641TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
28642TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
28643
28644if test "$cross_compiling" = "yes"; then
28645 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
28646 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
28647 HOST_SUFFIX="-${host_alias}"
28648fi
28649
28650WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
28651WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
28652WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
28653WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
28654
28655WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
28656WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
28657
28658WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
28659WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
28660WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
28661WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
28662
28663case "${host}" in
28664 *-*-cygwin* | *-*-mingw32* )
28665 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
28666 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
28667 ;;
28668
28669 *-*-darwin* )
28670
28671 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
28672 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
28673
28674 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
28675 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
28676 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
28677 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
28678
28679 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28680 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
28681 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
28682 fi
28683 ;;
28684esac
28685
28686WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
28687WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
28688
28689WXCONFIG_LIBS="-l${WX_LIBRARY}"
28690WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
28691
28692if test "$wxUSE_OPENGL" = "yes"; then
28693 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
28694 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
28695fi
28696
28697
28698
28699if test "$wxUSE_SHARED" = "yes"; then
28700 case "${host}" in
28701 *-pc-msdosdjgpp )
28702 wxUSE_SHARED=no
28703 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28704echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28705 ;;
28706 esac
28707fi
28708
28709SHARED=0
28710if test "$wxUSE_SHARED" = "yes"; then
28711 SHARED=1
28712
28713
28714 found_versioning=no
28715
28716
28717 if test $found_versioning = no ; then
28718 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28719echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28720if test "${wx_cv_version_script+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28722else
28723
28724 echo "VER_1 { *; };" >conftest.sym
28725 echo "int main() { return 0; }" >conftest.cpp
28726
28727 if { ac_try='
28728 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28729 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731 (eval $ac_try) 2>&5
28732 ac_status=$?
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; } ; then
28735 if test -s conftest.stderr ; then
28736 wx_cv_version_script=no
28737 else
28738 wx_cv_version_script=yes
28739 fi
28740 else
28741 wx_cv_version_script=no
28742 fi
28743 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28744
28745fi
28746echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28747echo "${ECHO_T}$wx_cv_version_script" >&6
28748 if test $wx_cv_version_script = yes ; then
28749 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28750 fi
28751 fi
28752
28753
28754 case "${host}" in
28755 *-*-linux* | *-*-gnu* )
28756 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28757 ;;
28758
28759 *-*-solaris2* )
28760 if test "$GCC" = yes ; then
28761 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28762
28763 saveLdflags="$LDFLAGS"
28764 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28765 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28766echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28767 cat >conftest.$ac_ext <<_ACEOF
28768/* confdefs.h. */
28769_ACEOF
28770cat confdefs.h >>conftest.$ac_ext
28771cat >>conftest.$ac_ext <<_ACEOF
28772/* end confdefs.h. */
28773
28774int
28775main ()
28776{
28777
28778 ;
28779 return 0;
28780}
28781_ACEOF
28782rm -f conftest.$ac_objext conftest$ac_exeext
28783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28784 (eval $ac_link) 2>conftest.er1
a848cd7e 28785 ac_status=$?
ac1cb8d3
VS
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
a848cd7e
SC
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
ac1cb8d3
VS
28791 { ac_try='test -z "$ac_c_werror_flag"
28792 || test ! -s conftest.err'
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804
28805 echo "$as_me:$LINENO: result: yes" >&5
28806echo "${ECHO_T}yes" >&6
28807 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28808
28809else
28810 echo "$as_me: failed program was:" >&5
28811sed 's/^/| /' conftest.$ac_ext >&5
28812
28813
28814 echo "$as_me:$LINENO: result: no" >&5
28815echo "${ECHO_T}no" >&6
28816 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28817echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28818 LDFLAGS="$saveLdflags -Wl,-R,/"
28819 cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825
28826int
28827main ()
28828{
28829
28830 ;
28831 return 0;
28832}
28833_ACEOF
28834rm -f conftest.$ac_objext conftest$ac_exeext
28835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28836 (eval $ac_link) 2>conftest.er1
a848cd7e 28837 ac_status=$?
ac1cb8d3
VS
28838 grep -v '^ *+' conftest.er1 >conftest.err
28839 rm -f conftest.er1
28840 cat conftest.err >&5
a848cd7e
SC
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); } &&
ac1cb8d3
VS
28843 { ac_try='test -z "$ac_c_werror_flag"
28844 || test ! -s conftest.err'
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; } &&
28850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; }; then
28856
28857 echo "$as_me:$LINENO: result: yes" >&5
28858echo "${ECHO_T}yes" >&6
28859 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28860else
28861 echo "$as_me: failed program was:" >&5
28862sed 's/^/| /' conftest.$ac_ext >&5
28863
28864
28865 echo "$as_me:$LINENO: result: no" >&5
28866echo "${ECHO_T}no" >&6
28867
28868fi
ac1cb8d3
VS
28869rm -f conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28871
28872fi
ac1cb8d3
VS
28873rm -f conftest.err conftest.$ac_objext \
28874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28875 LDFLAGS="$saveLdflags"
28876 else
28877 SHARED_LD="${CXX} -G -o"
28878 PIC_FLAG="-KPIC"
28879 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28880 fi
28881 ;;
28882
28883 powerpc-*-darwin* )
28884 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28885 cat <<EOF >change-install-names
28886#!/bin/sh
28887libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28888inst_cmd="install_name_tool "
28889for i in \${libnames} ; do
28890 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28891done
28892\${inst_cmd} \${3}
28893EOF
28894 chmod +x change-install-names
28895 ;;
28896
28897 *-*-cygwin* | *-*-mingw32* )
28898 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28899 ;;
28900
28901 esac
28902
28903 if test "x$WX_TARGET_LIBRARY" = "x"; then
28904 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28905 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28906 fi
28907
28908 WX_TARGET_LIBRARY_TYPE="so"
28909 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28910fi
28911
28912if test "$wxUSE_SHARED" = "no"; then
28913
28914 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28915 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28916 fi
28917
28918 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28919 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28920 fi
28921
28922 if test "$wxUSE_OPENGL" = "yes"; then
28923 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28924 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28925 else
28926 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28927 fi
28928
28929 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28930 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28931
28932 WX_TARGET_LIBRARY_TYPE="a"
28933 INSTALL_LIBRARY='$(INSTALL_DATA)'
28934
28935 STATIC_FLAG="yes"
28936else
28937 STATIC_FLAG="no"
28938fi
28939
28940if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28941 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28942 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28943 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28944
28945 # Extract the first word of "Rez", so it can be a program name with args.
28946set dummy Rez; ac_word=$2
28947echo "$as_me:$LINENO: checking for $ac_word" >&5
28948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28949if test "${ac_cv_prog_RESCOMP+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952 if test -n "$RESCOMP"; then
28953 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28954else
28955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28956for as_dir in $PATH
28957do
28958 IFS=$as_save_IFS
28959 test -z "$as_dir" && as_dir=.
28960 for ac_exec_ext in '' $ac_executable_extensions; do
28961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28962 ac_cv_prog_RESCOMP="Rez"
28963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28964 break 2
28965 fi
28966done
28967done
28968
28969 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28970fi
28971fi
28972RESCOMP=$ac_cv_prog_RESCOMP
28973if test -n "$RESCOMP"; then
28974 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28975echo "${ECHO_T}$RESCOMP" >&6
28976else
28977 echo "$as_me:$LINENO: result: no" >&5
28978echo "${ECHO_T}no" >&6
28979fi
28980
28981 # Extract the first word of "DeRez", so it can be a program name with args.
28982set dummy DeRez; ac_word=$2
28983echo "$as_me:$LINENO: checking for $ac_word" >&5
28984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28985if test "${ac_cv_prog_DEREZ+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988 if test -n "$DEREZ"; then
28989 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28990else
28991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28992for as_dir in $PATH
28993do
28994 IFS=$as_save_IFS
28995 test -z "$as_dir" && as_dir=.
28996 for ac_exec_ext in '' $ac_executable_extensions; do
28997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28998 ac_cv_prog_DEREZ="DeRez"
28999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29000 break 2
29001 fi
29002done
29003done
29004
29005 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29006fi
29007fi
29008DEREZ=$ac_cv_prog_DEREZ
29009if test -n "$DEREZ"; then
29010 echo "$as_me:$LINENO: result: $DEREZ" >&5
29011echo "${ECHO_T}$DEREZ" >&6
29012else
29013 echo "$as_me:$LINENO: result: no" >&5
29014echo "${ECHO_T}no" >&6
29015fi
29016
29017 # Extract the first word of "SetFile", so it can be a program name with args.
29018set dummy SetFile; ac_word=$2
29019echo "$as_me:$LINENO: checking for $ac_word" >&5
29020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29021if test "${ac_cv_prog_SETFILE+set}" = set; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29023else
29024 if test -n "$SETFILE"; then
29025 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29026else
29027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29028for as_dir in $PATH
29029do
29030 IFS=$as_save_IFS
29031 test -z "$as_dir" && as_dir=.
29032 for ac_exec_ext in '' $ac_executable_extensions; do
29033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29034 ac_cv_prog_SETFILE="SetFile"
29035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29036 break 2
29037 fi
29038done
29039done
29040
29041 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29042fi
29043fi
29044SETFILE=$ac_cv_prog_SETFILE
29045if test -n "$SETFILE"; then
29046 echo "$as_me:$LINENO: result: $SETFILE" >&5
29047echo "${ECHO_T}$SETFILE" >&6
29048else
29049 echo "$as_me:$LINENO: result: no" >&5
29050echo "${ECHO_T}no" >&6
29051fi
29052
29053
29054 MACSETFILE="\$(SETFILE)"
29055
29056 if test "$wxUSE_MAC" = 1; then
29057 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29058
29059 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29060 else
29061 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29062 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29063 fi
29064else
29065 MACSETFILE="@#"
29066 MACRESWXCONFIG="#"
29067
29068 if test "$wxUSE_PM" = 1; then
29069 MACRESCOMP="emxbind -ep"
29070 else
29071 MACRESCOMP="@#"
29072 fi
29073fi
29074
29075
29076
29077echo "$as_me:$LINENO: checking for mode_t" >&5
29078echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29079if test "${ac_cv_type_mode_t+set}" = set; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29081else
29082 cat >conftest.$ac_ext <<_ACEOF
29083/* confdefs.h. */
29084_ACEOF
29085cat confdefs.h >>conftest.$ac_ext
29086cat >>conftest.$ac_ext <<_ACEOF
29087/* end confdefs.h. */
29088$ac_includes_default
29089int
29090main ()
29091{
29092if ((mode_t *) 0)
29093 return 0;
29094if (sizeof (mode_t))
29095 return 0;
29096 ;
29097 return 0;
29098}
29099_ACEOF
29100rm -f conftest.$ac_objext
29101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29102 (eval $ac_compile) 2>conftest.er1
a848cd7e 29103 ac_status=$?
ac1cb8d3
VS
29104 grep -v '^ *+' conftest.er1 >conftest.err
29105 rm -f conftest.er1
29106 cat conftest.err >&5
a848cd7e
SC
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); } &&
ac1cb8d3
VS
29109 { ac_try='test -z "$ac_c_werror_flag"
29110 || test ! -s conftest.err'
29111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29119 ac_status=$?
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; }; then
29122 ac_cv_type_mode_t=yes
29123else
29124 echo "$as_me: failed program was:" >&5
29125sed 's/^/| /' conftest.$ac_ext >&5
29126
29127ac_cv_type_mode_t=no
29128fi
ac1cb8d3 29129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29130fi
29131echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29132echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29133if test $ac_cv_type_mode_t = yes; then
29134 :
29135else
29136
29137cat >>confdefs.h <<_ACEOF
29138#define mode_t int
29139_ACEOF
29140
29141fi
29142
29143echo "$as_me:$LINENO: checking for off_t" >&5
29144echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29145if test "${ac_cv_type_off_t+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29147else
29148 cat >conftest.$ac_ext <<_ACEOF
29149/* confdefs.h. */
29150_ACEOF
29151cat confdefs.h >>conftest.$ac_ext
29152cat >>conftest.$ac_ext <<_ACEOF
29153/* end confdefs.h. */
29154$ac_includes_default
29155int
29156main ()
29157{
29158if ((off_t *) 0)
29159 return 0;
29160if (sizeof (off_t))
29161 return 0;
29162 ;
29163 return 0;
29164}
29165_ACEOF
29166rm -f conftest.$ac_objext
29167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29168 (eval $ac_compile) 2>conftest.er1
a848cd7e 29169 ac_status=$?
ac1cb8d3
VS
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
a848cd7e
SC
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } &&
ac1cb8d3
VS
29175 { ac_try='test -z "$ac_c_werror_flag"
29176 || test ! -s conftest.err'
29177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29179 ac_status=$?
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; } &&
29182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; }; then
29188 ac_cv_type_off_t=yes
29189else
29190 echo "$as_me: failed program was:" >&5
29191sed 's/^/| /' conftest.$ac_ext >&5
29192
29193ac_cv_type_off_t=no
29194fi
ac1cb8d3 29195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29196fi
29197echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29198echo "${ECHO_T}$ac_cv_type_off_t" >&6
29199if test $ac_cv_type_off_t = yes; then
29200 :
29201else
29202
29203cat >>confdefs.h <<_ACEOF
29204#define off_t long
29205_ACEOF
29206
29207fi
29208
29209echo "$as_me:$LINENO: checking for pid_t" >&5
29210echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29211if test "${ac_cv_type_pid_t+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29213else
29214 cat >conftest.$ac_ext <<_ACEOF
29215/* confdefs.h. */
29216_ACEOF
29217cat confdefs.h >>conftest.$ac_ext
29218cat >>conftest.$ac_ext <<_ACEOF
29219/* end confdefs.h. */
29220$ac_includes_default
29221int
29222main ()
29223{
29224if ((pid_t *) 0)
29225 return 0;
29226if (sizeof (pid_t))
29227 return 0;
29228 ;
29229 return 0;
29230}
29231_ACEOF
29232rm -f conftest.$ac_objext
29233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29234 (eval $ac_compile) 2>conftest.er1
a848cd7e 29235 ac_status=$?
ac1cb8d3
VS
29236 grep -v '^ *+' conftest.er1 >conftest.err
29237 rm -f conftest.er1
29238 cat conftest.err >&5
a848cd7e
SC
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); } &&
ac1cb8d3
VS
29241 { ac_try='test -z "$ac_c_werror_flag"
29242 || test ! -s conftest.err'
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29251 ac_status=$?
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; }; then
29254 ac_cv_type_pid_t=yes
29255else
29256 echo "$as_me: failed program was:" >&5
29257sed 's/^/| /' conftest.$ac_ext >&5
29258
29259ac_cv_type_pid_t=no
29260fi
ac1cb8d3 29261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29262fi
29263echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29264echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29265if test $ac_cv_type_pid_t = yes; then
29266 :
29267else
29268
29269cat >>confdefs.h <<_ACEOF
29270#define pid_t int
29271_ACEOF
29272
29273fi
29274
29275echo "$as_me:$LINENO: checking for size_t" >&5
29276echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29277if test "${ac_cv_type_size_t+set}" = set; then
29278 echo $ECHO_N "(cached) $ECHO_C" >&6
29279else
29280 cat >conftest.$ac_ext <<_ACEOF
29281/* confdefs.h. */
29282_ACEOF
29283cat confdefs.h >>conftest.$ac_ext
29284cat >>conftest.$ac_ext <<_ACEOF
29285/* end confdefs.h. */
29286$ac_includes_default
29287int
29288main ()
29289{
29290if ((size_t *) 0)
29291 return 0;
29292if (sizeof (size_t))
29293 return 0;
29294 ;
29295 return 0;
29296}
29297_ACEOF
29298rm -f conftest.$ac_objext
29299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29300 (eval $ac_compile) 2>conftest.er1
a848cd7e 29301 ac_status=$?
ac1cb8d3
VS
29302 grep -v '^ *+' conftest.er1 >conftest.err
29303 rm -f conftest.er1
29304 cat conftest.err >&5
a848cd7e
SC
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } &&
ac1cb8d3
VS
29307 { ac_try='test -z "$ac_c_werror_flag"
29308 || test ! -s conftest.err'
29309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29310 (eval $ac_try) 2>&5
29311 ac_status=$?
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); }; } &&
29314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316 (eval $ac_try) 2>&5
29317 ac_status=$?
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; }; then
29320 ac_cv_type_size_t=yes
29321else
29322 echo "$as_me: failed program was:" >&5
29323sed 's/^/| /' conftest.$ac_ext >&5
29324
29325ac_cv_type_size_t=no
29326fi
ac1cb8d3 29327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29328fi
29329echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29330echo "${ECHO_T}$ac_cv_type_size_t" >&6
29331if test $ac_cv_type_size_t = yes; then
29332 :
29333else
29334
29335cat >>confdefs.h <<_ACEOF
29336#define size_t unsigned
29337_ACEOF
29338
29339fi
29340
29341echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29342echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29343if test "${ac_cv_type_uid_t+set}" = set; then
29344 echo $ECHO_N "(cached) $ECHO_C" >&6
29345else
29346 cat >conftest.$ac_ext <<_ACEOF
29347/* confdefs.h. */
29348_ACEOF
29349cat confdefs.h >>conftest.$ac_ext
29350cat >>conftest.$ac_ext <<_ACEOF
29351/* end confdefs.h. */
29352#include <sys/types.h>
29353
29354_ACEOF
29355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29356 $EGREP "uid_t" >/dev/null 2>&1; then
29357 ac_cv_type_uid_t=yes
29358else
29359 ac_cv_type_uid_t=no
29360fi
29361rm -f conftest*
29362
29363fi
29364echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29365echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29366if test $ac_cv_type_uid_t = no; then
29367
29368cat >>confdefs.h <<\_ACEOF
29369#define uid_t int
29370_ACEOF
29371
29372
29373cat >>confdefs.h <<\_ACEOF
29374#define gid_t int
29375_ACEOF
29376
29377fi
29378
29379
29380
29381
29382ac_ext=cc
29383ac_cpp='$CXXCPP $CPPFLAGS'
29384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29387
29388echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29389echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29390if test "${wx_cv_size_t_is_uint+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393
29394 cat >conftest.$ac_ext <<_ACEOF
29395/* confdefs.h. */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h. */
29400#include <stddef.h>
29401int
29402main ()
29403{
29404
29405 return 0; }
29406
29407 struct Foo { void foo(size_t); void foo(unsigned int); };
29408
29409 int bar() {
29410
29411 ;
29412 return 0;
29413}
29414_ACEOF
29415rm -f conftest.$ac_objext
29416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29417 (eval $ac_compile) 2>conftest.er1
a848cd7e 29418 ac_status=$?
ac1cb8d3
VS
29419 grep -v '^ *+' conftest.er1 >conftest.err
29420 rm -f conftest.er1
29421 cat conftest.err >&5
a848cd7e
SC
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } &&
ac1cb8d3
VS
29424 { ac_try='test -z "$ac_cxx_werror_flag"
29425 || test ! -s conftest.err'
29426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427 (eval $ac_try) 2>&5
29428 ac_status=$?
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; } &&
29431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29434 ac_status=$?
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437 wx_cv_size_t_is_uint=no
29438else
29439 echo "$as_me: failed program was:" >&5
29440sed 's/^/| /' conftest.$ac_ext >&5
29441
29442wx_cv_size_t_is_uint=yes
29443
29444fi
ac1cb8d3 29445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29446
29447
29448fi
29449echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29450echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29451
29452if test "$wx_cv_size_t_is_uint" = "yes"; then
29453 cat >>confdefs.h <<\_ACEOF
29454#define wxSIZE_T_IS_UINT 1
29455_ACEOF
29456
29457else
29458 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29459echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29460if test "${wx_cv_size_t_is_ulong+set}" = set; then
29461 echo $ECHO_N "(cached) $ECHO_C" >&6
29462else
29463 cat >conftest.$ac_ext <<_ACEOF
29464/* confdefs.h. */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h. */
29469#include <stddef.h>
29470int
29471main ()
29472{
29473
29474 return 0; }
29475
29476 struct Foo { void foo(size_t); void foo(unsigned long); };
29477
29478 int bar() {
29479
29480 ;
29481 return 0;
29482}
29483_ACEOF
29484rm -f conftest.$ac_objext
29485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29486 (eval $ac_compile) 2>conftest.er1
a848cd7e 29487 ac_status=$?
ac1cb8d3
VS
29488 grep -v '^ *+' conftest.er1 >conftest.err
29489 rm -f conftest.er1
29490 cat conftest.err >&5
a848cd7e
SC
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); } &&
ac1cb8d3
VS
29493 { ac_try='test -z "$ac_cxx_werror_flag"
29494 || test ! -s conftest.err'
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; } &&
29500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29502 (eval $ac_try) 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; }; then
29506 wx_cv_size_t_is_ulong=no
29507else
29508 echo "$as_me: failed program was:" >&5
29509sed 's/^/| /' conftest.$ac_ext >&5
29510
29511wx_cv_size_t_is_ulong=yes
29512
29513fi
ac1cb8d3 29514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29515
29516fi
29517echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29518echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29519
29520 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29521 cat >>confdefs.h <<\_ACEOF
29522#define wxSIZE_T_IS_ULONG 1
29523_ACEOF
29524
29525 fi
29526fi
29527
29528ac_ext=c
29529ac_cpp='$CPP $CPPFLAGS'
29530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29532ac_compiler_gnu=$ac_cv_c_compiler_gnu
29533
29534
29535
29536echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29537echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29538if test "${wx_cv_struct_pw_gecos+set}" = set; then
29539 echo $ECHO_N "(cached) $ECHO_C" >&6
29540else
29541
29542 cat >conftest.$ac_ext <<_ACEOF
29543/* confdefs.h. */
29544_ACEOF
29545cat confdefs.h >>conftest.$ac_ext
29546cat >>conftest.$ac_ext <<_ACEOF
29547/* end confdefs.h. */
29548#include <pwd.h>
29549int
29550main ()
29551{
29552
29553 char *p;
29554 struct passwd *pw;
29555 p = pw->pw_gecos;
29556
29557 ;
29558 return 0;
29559}
29560_ACEOF
29561rm -f conftest.$ac_objext
29562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29563 (eval $ac_compile) 2>conftest.er1
a848cd7e 29564 ac_status=$?
ac1cb8d3
VS
29565 grep -v '^ *+' conftest.er1 >conftest.err
29566 rm -f conftest.er1
29567 cat conftest.err >&5
a848cd7e
SC
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); } &&
ac1cb8d3
VS
29570 { ac_try='test -z "$ac_c_werror_flag"
29571 || test ! -s conftest.err'
29572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573 (eval $ac_try) 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29579 (eval $ac_try) 2>&5
29580 ac_status=$?
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); }; }; then
29583
29584 wx_cv_struct_pw_gecos=yes
29585
29586else
29587 echo "$as_me: failed program was:" >&5
29588sed 's/^/| /' conftest.$ac_ext >&5
29589
29590
29591 wx_cv_struct_pw_gecos=no
29592
29593
29594fi
ac1cb8d3 29595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29596
29597
29598fi
29599echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29600echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29601
29602if test "$wx_cv_struct_pw_gecos" = "yes"; then
29603 cat >>confdefs.h <<\_ACEOF
29604#define HAVE_PW_GECOS 1
29605_ACEOF
29606
29607fi
29608
29609
29610if test "$wx_cv_sizeof_wchar_t" != "0"; then
29611 cat >>confdefs.h <<\_ACEOF
29612#define wxUSE_WCHAR_T 1
29613_ACEOF
29614
29615
29616 WCSLEN_FOUND=0
29617 WCHAR_LINK=
29618
29619for ac_func in wcslen
29620do
29621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29622echo "$as_me:$LINENO: checking for $ac_func" >&5
29623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29624if eval "test \"\${$as_ac_var+set}\" = set"; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 cat >conftest.$ac_ext <<_ACEOF
29628/* confdefs.h. */
29629_ACEOF
29630cat confdefs.h >>conftest.$ac_ext
29631cat >>conftest.$ac_ext <<_ACEOF
29632/* end confdefs.h. */
ac1cb8d3
VS
29633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29635#define $ac_func innocuous_$ac_func
29636
a848cd7e
SC
29637/* System header to define __stub macros and hopefully few prototypes,
29638 which can conflict with char $ac_func (); below.
29639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29640 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29641
a848cd7e
SC
29642#ifdef __STDC__
29643# include <limits.h>
29644#else
29645# include <assert.h>
29646#endif
ac1cb8d3
VS
29647
29648#undef $ac_func
29649
a848cd7e
SC
29650/* Override any gcc2 internal prototype to avoid an error. */
29651#ifdef __cplusplus
29652extern "C"
29653{
29654#endif
29655/* We use char because int might match the return type of a gcc2
29656 builtin and then its argument prototype would still apply. */
29657char $ac_func ();
29658/* The GNU C library defines this for functions which it implements
29659 to always fail with ENOSYS. Some functions are actually named
29660 something starting with __ and the normal name is an alias. */
29661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29662choke me
29663#else
29664char (*f) () = $ac_func;
29665#endif
29666#ifdef __cplusplus
29667}
29668#endif
29669
29670int
29671main ()
29672{
29673return f != $ac_func;
29674 ;
29675 return 0;
29676}
29677_ACEOF
29678rm -f conftest.$ac_objext conftest$ac_exeext
29679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29680 (eval $ac_link) 2>conftest.er1
a848cd7e 29681 ac_status=$?
ac1cb8d3
VS
29682 grep -v '^ *+' conftest.er1 >conftest.err
29683 rm -f conftest.er1
29684 cat conftest.err >&5
a848cd7e
SC
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } &&
ac1cb8d3
VS
29687 { ac_try='test -z "$ac_c_werror_flag"
29688 || test ! -s conftest.err'
29689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690 (eval $ac_try) 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696 (eval $ac_try) 2>&5
29697 ac_status=$?
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; }; then
29700 eval "$as_ac_var=yes"
29701else
29702 echo "$as_me: failed program was:" >&5
29703sed 's/^/| /' conftest.$ac_ext >&5
29704
29705eval "$as_ac_var=no"
29706fi
ac1cb8d3
VS
29707rm -f conftest.err conftest.$ac_objext \
29708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29709fi
29710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29712if test `eval echo '${'$as_ac_var'}'` = yes; then
29713 cat >>confdefs.h <<_ACEOF
29714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29715_ACEOF
29716 WCSLEN_FOUND=1
29717fi
29718done
29719
29720
29721 if test "$WCSLEN_FOUND" = 0; then
29722 if test "$TOOLKIT" = "MSW"; then
29723 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29724echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29725if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29726 echo $ECHO_N "(cached) $ECHO_C" >&6
29727else
29728 ac_check_lib_save_LIBS=$LIBS
29729LIBS="-lmsvcrt $LIBS"
29730cat >conftest.$ac_ext <<_ACEOF
29731/* confdefs.h. */
29732_ACEOF
29733cat confdefs.h >>conftest.$ac_ext
29734cat >>conftest.$ac_ext <<_ACEOF
29735/* end confdefs.h. */
29736
29737/* Override any gcc2 internal prototype to avoid an error. */
29738#ifdef __cplusplus
29739extern "C"
29740#endif
29741/* We use char because int might match the return type of a gcc2
29742 builtin and then its argument prototype would still apply. */
29743char wcslen ();
29744int
29745main ()
29746{
29747wcslen ();
29748 ;
29749 return 0;
29750}
29751_ACEOF
29752rm -f conftest.$ac_objext conftest$ac_exeext
29753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29754 (eval $ac_link) 2>conftest.er1
a848cd7e 29755 ac_status=$?
ac1cb8d3
VS
29756 grep -v '^ *+' conftest.er1 >conftest.err
29757 rm -f conftest.er1
29758 cat conftest.err >&5
a848cd7e
SC
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } &&
ac1cb8d3
VS
29761 { ac_try='test -z "$ac_c_werror_flag"
29762 || test ! -s conftest.err'
29763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764 (eval $ac_try) 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; } &&
29768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ac_cv_lib_msvcrt_wcslen=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779ac_cv_lib_msvcrt_wcslen=no
29780fi
ac1cb8d3
VS
29781rm -f conftest.err conftest.$ac_objext \
29782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29783LIBS=$ac_check_lib_save_LIBS
29784fi
29785echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29786echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29787if test $ac_cv_lib_msvcrt_wcslen = yes; then
29788 WCHAR_OK=1
29789fi
29790
29791 else
29792 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29793echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29794if test "${ac_cv_lib_w_wcslen+set}" = set; then
29795 echo $ECHO_N "(cached) $ECHO_C" >&6
29796else
29797 ac_check_lib_save_LIBS=$LIBS
29798LIBS="-lw $LIBS"
29799cat >conftest.$ac_ext <<_ACEOF
29800/* confdefs.h. */
29801_ACEOF
29802cat confdefs.h >>conftest.$ac_ext
29803cat >>conftest.$ac_ext <<_ACEOF
29804/* end confdefs.h. */
29805
29806/* Override any gcc2 internal prototype to avoid an error. */
29807#ifdef __cplusplus
29808extern "C"
29809#endif
29810/* We use char because int might match the return type of a gcc2
29811 builtin and then its argument prototype would still apply. */
29812char wcslen ();
29813int
29814main ()
29815{
29816wcslen ();
29817 ;
29818 return 0;
29819}
29820_ACEOF
29821rm -f conftest.$ac_objext conftest$ac_exeext
29822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29823 (eval $ac_link) 2>conftest.er1
a848cd7e 29824 ac_status=$?
ac1cb8d3
VS
29825 grep -v '^ *+' conftest.er1 >conftest.err
29826 rm -f conftest.er1
29827 cat conftest.err >&5
a848cd7e
SC
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
ac1cb8d3
VS
29830 { ac_try='test -z "$ac_c_werror_flag"
29831 || test ! -s conftest.err'
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
29837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
29843 ac_cv_lib_w_wcslen=yes
29844else
29845 echo "$as_me: failed program was:" >&5
29846sed 's/^/| /' conftest.$ac_ext >&5
29847
29848ac_cv_lib_w_wcslen=no
29849fi
ac1cb8d3
VS
29850rm -f conftest.err conftest.$ac_objext \
29851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29852LIBS=$ac_check_lib_save_LIBS
29853fi
29854echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29855echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29856if test $ac_cv_lib_w_wcslen = yes; then
29857
29858 WCHAR_LINK=" -lw"
29859 WCSLEN_FOUND=1
29860
29861fi
29862
29863 fi
29864 fi
29865
29866 if test "$WCSLEN_FOUND" = 1; then
29867 cat >>confdefs.h <<\_ACEOF
29868#define HAVE_WCSLEN 1
29869_ACEOF
29870
29871 fi
29872
473276a9
VS
29873 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29874 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29875 fi
29876
a848cd7e
SC
29877
29878for ac_func in wcsrtombs
29879do
29880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29881echo "$as_me:$LINENO: checking for $ac_func" >&5
29882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29883if eval "test \"\${$as_ac_var+set}\" = set"; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29885else
29886 cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
ac1cb8d3
VS
29892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29894#define $ac_func innocuous_$ac_func
29895
a848cd7e
SC
29896/* System header to define __stub macros and hopefully few prototypes,
29897 which can conflict with char $ac_func (); below.
29898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29899 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29900
a848cd7e
SC
29901#ifdef __STDC__
29902# include <limits.h>
29903#else
29904# include <assert.h>
29905#endif
ac1cb8d3
VS
29906
29907#undef $ac_func
29908
a848cd7e
SC
29909/* Override any gcc2 internal prototype to avoid an error. */
29910#ifdef __cplusplus
29911extern "C"
29912{
29913#endif
29914/* We use char because int might match the return type of a gcc2
29915 builtin and then its argument prototype would still apply. */
29916char $ac_func ();
29917/* The GNU C library defines this for functions which it implements
29918 to always fail with ENOSYS. Some functions are actually named
29919 something starting with __ and the normal name is an alias. */
29920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29921choke me
29922#else
29923char (*f) () = $ac_func;
29924#endif
29925#ifdef __cplusplus
29926}
29927#endif
29928
29929int
29930main ()
29931{
29932return f != $ac_func;
29933 ;
29934 return 0;
29935}
29936_ACEOF
29937rm -f conftest.$ac_objext conftest$ac_exeext
29938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29939 (eval $ac_link) 2>conftest.er1
a848cd7e 29940 ac_status=$?
ac1cb8d3
VS
29941 grep -v '^ *+' conftest.er1 >conftest.err
29942 rm -f conftest.er1
29943 cat conftest.err >&5
a848cd7e
SC
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); } &&
ac1cb8d3
VS
29946 { ac_try='test -z "$ac_c_werror_flag"
29947 || test ! -s conftest.err'
29948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29949 (eval $ac_try) 2>&5
29950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; } &&
29953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); }; }; then
29959 eval "$as_ac_var=yes"
29960else
29961 echo "$as_me: failed program was:" >&5
29962sed 's/^/| /' conftest.$ac_ext >&5
29963
29964eval "$as_ac_var=no"
29965fi
ac1cb8d3
VS
29966rm -f conftest.err conftest.$ac_objext \
29967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29968fi
29969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29971if test `eval echo '${'$as_ac_var'}'` = yes; then
29972 cat >>confdefs.h <<_ACEOF
29973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29974_ACEOF
29975
29976fi
29977done
29978
29979else
29980 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29981echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29982fi
29983
29984
29985
29986ac_ext=cc
29987ac_cpp='$CXXCPP $CPPFLAGS'
29988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29991
29992
29993
29994for ac_func in vsnprintf
29995do
29996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29997echo "$as_me:$LINENO: checking for $ac_func" >&5
29998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29999if eval "test \"\${$as_ac_var+set}\" = set"; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30001else
30002 cat >conftest.$ac_ext <<_ACEOF
30003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
ac1cb8d3
VS
30008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30010#define $ac_func innocuous_$ac_func
30011
a848cd7e
SC
30012/* System header to define __stub macros and hopefully few prototypes,
30013 which can conflict with char $ac_func (); below.
30014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30015 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30016
a848cd7e
SC
30017#ifdef __STDC__
30018# include <limits.h>
30019#else
30020# include <assert.h>
30021#endif
ac1cb8d3
VS
30022
30023#undef $ac_func
30024
a848cd7e
SC
30025/* Override any gcc2 internal prototype to avoid an error. */
30026#ifdef __cplusplus
30027extern "C"
30028{
30029#endif
30030/* We use char because int might match the return type of a gcc2
30031 builtin and then its argument prototype would still apply. */
30032char $ac_func ();
30033/* The GNU C library defines this for functions which it implements
30034 to always fail with ENOSYS. Some functions are actually named
30035 something starting with __ and the normal name is an alias. */
30036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30037choke me
30038#else
30039char (*f) () = $ac_func;
30040#endif
30041#ifdef __cplusplus
30042}
30043#endif
30044
30045int
30046main ()
30047{
30048return f != $ac_func;
30049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest.$ac_objext conftest$ac_exeext
30054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30055 (eval $ac_link) 2>conftest.er1
a848cd7e 30056 ac_status=$?
ac1cb8d3
VS
30057 grep -v '^ *+' conftest.er1 >conftest.err
30058 rm -f conftest.er1
30059 cat conftest.err >&5
a848cd7e
SC
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
ac1cb8d3
VS
30062 { ac_try='test -z "$ac_cxx_werror_flag"
30063 || test ! -s conftest.err'
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 eval "$as_ac_var=yes"
30076else
30077 echo "$as_me: failed program was:" >&5
30078sed 's/^/| /' conftest.$ac_ext >&5
30079
30080eval "$as_ac_var=no"
30081fi
ac1cb8d3
VS
30082rm -f conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30084fi
30085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30087if test `eval echo '${'$as_ac_var'}'` = yes; then
30088 cat >>confdefs.h <<_ACEOF
30089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30090_ACEOF
30091
30092fi
30093done
30094
30095
30096if test "$ac_cv_func_vsnprintf" = "yes"; then
30097 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30098echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30099if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30101else
30102
30103 cat >conftest.$ac_ext <<_ACEOF
30104/* confdefs.h. */
30105_ACEOF
30106cat confdefs.h >>conftest.$ac_ext
30107cat >>conftest.$ac_ext <<_ACEOF
30108/* end confdefs.h. */
30109
30110 #include <stdio.h>
30111 #include <stdarg.h>
30112
30113int
30114main ()
30115{
30116
30117 char *buf;
30118 va_list ap;
30119 vsnprintf(buf, 10u, "%s", ap);
30120
30121 ;
30122 return 0;
30123}
30124_ACEOF
30125rm -f conftest.$ac_objext
30126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30127 (eval $ac_compile) 2>conftest.er1
a848cd7e 30128 ac_status=$?
ac1cb8d3
VS
30129 grep -v '^ *+' conftest.er1 >conftest.err
30130 rm -f conftest.er1
30131 cat conftest.err >&5
a848cd7e
SC
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } &&
ac1cb8d3
VS
30134 { ac_try='test -z "$ac_cxx_werror_flag"
30135 || test ! -s conftest.err'
30136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137 (eval $ac_try) 2>&5
30138 ac_status=$?
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; } &&
30141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143 (eval $ac_try) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; }; then
30147 wx_cv_func_vsnprintf_decl=yes
30148else
30149 echo "$as_me: failed program was:" >&5
30150sed 's/^/| /' conftest.$ac_ext >&5
30151
30152wx_cv_func_vsnprintf_decl=no
30153
30154fi
ac1cb8d3 30155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30156
30157
30158fi
30159echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30160echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30161
30162 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30163 cat >>confdefs.h <<\_ACEOF
30164#define HAVE_VSNPRINTF_DECL 1
30165_ACEOF
30166
30167 fi
30168fi
30169
30170if test "$wxUSE_UNICODE" = yes; then
30171
30172
30173
30174for ac_func in fputwc wprintf vswprintf
30175do
30176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30177echo "$as_me:$LINENO: checking for $ac_func" >&5
30178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30179if eval "test \"\${$as_ac_var+set}\" = set"; then
30180 echo $ECHO_N "(cached) $ECHO_C" >&6
30181else
30182 cat >conftest.$ac_ext <<_ACEOF
30183/* confdefs.h. */
30184_ACEOF
30185cat confdefs.h >>conftest.$ac_ext
30186cat >>conftest.$ac_ext <<_ACEOF
30187/* end confdefs.h. */
ac1cb8d3
VS
30188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30190#define $ac_func innocuous_$ac_func
30191
a848cd7e
SC
30192/* System header to define __stub macros and hopefully few prototypes,
30193 which can conflict with char $ac_func (); below.
30194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30196
a848cd7e
SC
30197#ifdef __STDC__
30198# include <limits.h>
30199#else
30200# include <assert.h>
30201#endif
ac1cb8d3
VS
30202
30203#undef $ac_func
30204
a848cd7e
SC
30205/* Override any gcc2 internal prototype to avoid an error. */
30206#ifdef __cplusplus
30207extern "C"
30208{
30209#endif
30210/* We use char because int might match the return type of a gcc2
30211 builtin and then its argument prototype would still apply. */
30212char $ac_func ();
30213/* The GNU C library defines this for functions which it implements
30214 to always fail with ENOSYS. Some functions are actually named
30215 something starting with __ and the normal name is an alias. */
30216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30217choke me
30218#else
30219char (*f) () = $ac_func;
30220#endif
30221#ifdef __cplusplus
30222}
30223#endif
30224
30225int
30226main ()
30227{
30228return f != $ac_func;
30229 ;
30230 return 0;
30231}
30232_ACEOF
30233rm -f conftest.$ac_objext conftest$ac_exeext
30234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30235 (eval $ac_link) 2>conftest.er1
a848cd7e 30236 ac_status=$?
ac1cb8d3
VS
30237 grep -v '^ *+' conftest.er1 >conftest.err
30238 rm -f conftest.er1
30239 cat conftest.err >&5
a848cd7e
SC
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } &&
ac1cb8d3
VS
30242 { ac_try='test -z "$ac_cxx_werror_flag"
30243 || test ! -s conftest.err'
30244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30245 (eval $ac_try) 2>&5
30246 ac_status=$?
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); }; } &&
30249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 eval "$as_ac_var=yes"
30256else
30257 echo "$as_me: failed program was:" >&5
30258sed 's/^/| /' conftest.$ac_ext >&5
30259
30260eval "$as_ac_var=no"
30261fi
ac1cb8d3
VS
30262rm -f conftest.err conftest.$ac_objext \
30263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30264fi
30265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30267if test `eval echo '${'$as_ac_var'}'` = yes; then
30268 cat >>confdefs.h <<_ACEOF
30269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30270_ACEOF
30271
30272fi
30273done
30274
30275
30276 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30277echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30278 cat >conftest.$ac_ext <<_ACEOF
30279/* confdefs.h. */
30280_ACEOF
30281cat confdefs.h >>conftest.$ac_ext
30282cat >>conftest.$ac_ext <<_ACEOF
30283/* end confdefs.h. */
30284#include <wchar.h>
30285int
30286main ()
30287{
30288&_vsnwprintf;
30289 ;
30290 return 0;
30291}
30292_ACEOF
30293rm -f conftest.$ac_objext
30294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30295 (eval $ac_compile) 2>conftest.er1
a848cd7e 30296 ac_status=$?
ac1cb8d3
VS
30297 grep -v '^ *+' conftest.er1 >conftest.err
30298 rm -f conftest.er1
30299 cat conftest.err >&5
a848cd7e
SC
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); } &&
ac1cb8d3
VS
30302 { ac_try='test -z "$ac_cxx_werror_flag"
30303 || test ! -s conftest.err'
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; } &&
30309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311 (eval $ac_try) 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 echo "$as_me:$LINENO: result: yes" >&5
30316echo "${ECHO_T}yes" >&6
30317 cat >>confdefs.h <<\_ACEOF
30318#define HAVE__VSNWPRINTF 1
30319_ACEOF
30320
30321else
30322 echo "$as_me: failed program was:" >&5
30323sed 's/^/| /' conftest.$ac_ext >&5
30324
30325echo "$as_me:$LINENO: result: no" >&5
30326echo "${ECHO_T}no" >&6
30327fi
ac1cb8d3 30328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30329fi
30330
30331ac_ext=c
30332ac_cpp='$CPP $CPPFLAGS'
30333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30335ac_compiler_gnu=$ac_cv_c_compiler_gnu
30336
30337
30338
30339
30340if test "$TOOLKIT" != "MSW"; then
30341
30342
30343
30344
30345ac_ext=cc
30346ac_cpp='$CXXCPP $CPPFLAGS'
30347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30350
30351
30352
30353
30354# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30355if test "${with_libiconv_prefix+set}" = set; then
30356 withval="$with_libiconv_prefix"
30357
30358 for dir in `echo "$withval" | tr : ' '`; do
30359 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30360 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30361 done
30362
30363fi;
30364
30365 echo "$as_me:$LINENO: checking for iconv" >&5
30366echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30367if test "${am_cv_func_iconv+set}" = set; then
30368 echo $ECHO_N "(cached) $ECHO_C" >&6
30369else
30370
30371 am_cv_func_iconv="no, consider installing GNU libiconv"
30372 am_cv_lib_iconv=no
30373 cat >conftest.$ac_ext <<_ACEOF
30374/* confdefs.h. */
30375_ACEOF
30376cat confdefs.h >>conftest.$ac_ext
30377cat >>conftest.$ac_ext <<_ACEOF
30378/* end confdefs.h. */
30379#include <stdlib.h>
30380#include <iconv.h>
30381int
30382main ()
30383{
30384iconv_t cd = iconv_open("","");
30385 iconv(cd,NULL,NULL,NULL,NULL);
30386 iconv_close(cd);
30387 ;
30388 return 0;
30389}
30390_ACEOF
30391rm -f conftest.$ac_objext conftest$ac_exeext
30392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30393 (eval $ac_link) 2>conftest.er1
a848cd7e 30394 ac_status=$?
ac1cb8d3
VS
30395 grep -v '^ *+' conftest.er1 >conftest.err
30396 rm -f conftest.er1
30397 cat conftest.err >&5
a848cd7e
SC
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); } &&
ac1cb8d3
VS
30400 { ac_try='test -z "$ac_cxx_werror_flag"
30401 || test ! -s conftest.err'
30402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30403 (eval $ac_try) 2>&5
30404 ac_status=$?
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; } &&
30407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30409 (eval $ac_try) 2>&5
30410 ac_status=$?
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); }; }; then
30413 am_cv_func_iconv=yes
30414else
30415 echo "$as_me: failed program was:" >&5
30416sed 's/^/| /' conftest.$ac_ext >&5
30417
30418fi
ac1cb8d3
VS
30419rm -f conftest.err conftest.$ac_objext \
30420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30421 if test "$am_cv_func_iconv" != yes; then
30422 am_save_LIBS="$LIBS"
30423 LIBS="$LIBS -liconv"
30424 cat >conftest.$ac_ext <<_ACEOF
30425/* confdefs.h. */
30426_ACEOF
30427cat confdefs.h >>conftest.$ac_ext
30428cat >>conftest.$ac_ext <<_ACEOF
30429/* end confdefs.h. */
30430#include <stdlib.h>
30431#include <iconv.h>
30432int
30433main ()
30434{
30435iconv_t cd = iconv_open("","");
30436 iconv(cd,NULL,NULL,NULL,NULL);
30437 iconv_close(cd);
30438 ;
30439 return 0;
30440}
30441_ACEOF
30442rm -f conftest.$ac_objext conftest$ac_exeext
30443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30444 (eval $ac_link) 2>conftest.er1
a848cd7e 30445 ac_status=$?
ac1cb8d3
VS
30446 grep -v '^ *+' conftest.er1 >conftest.err
30447 rm -f conftest.er1
30448 cat conftest.err >&5
a848cd7e
SC
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } &&
ac1cb8d3
VS
30451 { ac_try='test -z "$ac_cxx_werror_flag"
30452 || test ! -s conftest.err'
30453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454 (eval $ac_try) 2>&5
30455 ac_status=$?
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); }; } &&
30458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460 (eval $ac_try) 2>&5
30461 ac_status=$?
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; }; then
30464 am_cv_lib_iconv=yes
30465 am_cv_func_iconv=yes
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470fi
ac1cb8d3
VS
30471rm -f conftest.err conftest.$ac_objext \
30472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30473 LIBS="$am_save_LIBS"
30474 fi
30475
30476fi
30477echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30478echo "${ECHO_T}$am_cv_func_iconv" >&6
30479 if test "$am_cv_func_iconv" = yes; then
30480
30481cat >>confdefs.h <<\_ACEOF
30482#define HAVE_ICONV 1
30483_ACEOF
30484
30485 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30486echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30487if test "${wx_cv_func_iconv_const+set}" = set; then
30488 echo $ECHO_N "(cached) $ECHO_C" >&6
30489else
30490 cat >conftest.$ac_ext <<_ACEOF
30491/* confdefs.h. */
30492_ACEOF
30493cat confdefs.h >>conftest.$ac_ext
30494cat >>conftest.$ac_ext <<_ACEOF
30495/* end confdefs.h. */
30496
30497#include <stdlib.h>
30498#include <iconv.h>
30499extern
30500#ifdef __cplusplus
30501"C"
30502#endif
30503#if defined(__STDC__) || defined(__cplusplus)
30504size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30505#else
30506size_t iconv();
30507#endif
30508
30509int
30510main ()
30511{
30512
30513 ;
30514 return 0;
30515}
30516_ACEOF
30517rm -f conftest.$ac_objext
30518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30519 (eval $ac_compile) 2>conftest.er1
a848cd7e 30520 ac_status=$?
ac1cb8d3
VS
30521 grep -v '^ *+' conftest.er1 >conftest.err
30522 rm -f conftest.er1
30523 cat conftest.err >&5
a848cd7e
SC
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } &&
ac1cb8d3
VS
30526 { ac_try='test -z "$ac_cxx_werror_flag"
30527 || test ! -s conftest.err'
30528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529 (eval $ac_try) 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; } &&
30533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30535 (eval $ac_try) 2>&5
30536 ac_status=$?
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; }; then
30539 wx_cv_func_iconv_const="no"
30540else
30541 echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
30544wx_cv_func_iconv_const="yes"
30545
30546fi
ac1cb8d3 30547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30548
30549fi
30550echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30551echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30552
30553 iconv_const=
30554 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30555 iconv_const="const"
30556 fi
30557
30558
30559cat >>confdefs.h <<_ACEOF
30560#define ICONV_CONST $iconv_const
30561_ACEOF
30562
30563 fi
30564 LIBICONV=
30565 if test "$am_cv_lib_iconv" = yes; then
30566 LIBICONV="-liconv"
30567 fi
30568
30569
30570LIBS="$LIBICONV $LIBS"
30571ac_ext=c
30572ac_cpp='$CPP $CPPFLAGS'
30573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30575ac_compiler_gnu=$ac_cv_c_compiler_gnu
30576
30577
30578if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30579
30580for ac_func in sigaction
30581do
30582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30583echo "$as_me:$LINENO: checking for $ac_func" >&5
30584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30585if eval "test \"\${$as_ac_var+set}\" = set"; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30587else
30588 cat >conftest.$ac_ext <<_ACEOF
30589/* confdefs.h. */
30590_ACEOF
30591cat confdefs.h >>conftest.$ac_ext
30592cat >>conftest.$ac_ext <<_ACEOF
30593/* end confdefs.h. */
ac1cb8d3
VS
30594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30596#define $ac_func innocuous_$ac_func
30597
a848cd7e
SC
30598/* System header to define __stub macros and hopefully few prototypes,
30599 which can conflict with char $ac_func (); below.
30600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30602
a848cd7e
SC
30603#ifdef __STDC__
30604# include <limits.h>
30605#else
30606# include <assert.h>
30607#endif
ac1cb8d3
VS
30608
30609#undef $ac_func
30610
a848cd7e
SC
30611/* Override any gcc2 internal prototype to avoid an error. */
30612#ifdef __cplusplus
30613extern "C"
30614{
30615#endif
30616/* We use char because int might match the return type of a gcc2
30617 builtin and then its argument prototype would still apply. */
30618char $ac_func ();
30619/* The GNU C library defines this for functions which it implements
30620 to always fail with ENOSYS. Some functions are actually named
30621 something starting with __ and the normal name is an alias. */
30622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30623choke me
30624#else
30625char (*f) () = $ac_func;
30626#endif
30627#ifdef __cplusplus
30628}
30629#endif
30630
30631int
30632main ()
30633{
30634return f != $ac_func;
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30641 (eval $ac_link) 2>conftest.er1
a848cd7e 30642 ac_status=$?
ac1cb8d3
VS
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
a848cd7e
SC
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
ac1cb8d3
VS
30648 { ac_try='test -z "$ac_c_werror_flag"
30649 || test ! -s conftest.err'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; } &&
30655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }; then
30661 eval "$as_ac_var=yes"
30662else
30663 echo "$as_me: failed program was:" >&5
30664sed 's/^/| /' conftest.$ac_ext >&5
30665
30666eval "$as_ac_var=no"
30667fi
ac1cb8d3
VS
30668rm -f conftest.err conftest.$ac_objext \
30669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30670fi
30671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30673if test `eval echo '${'$as_ac_var'}'` = yes; then
30674 cat >>confdefs.h <<_ACEOF
30675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30676_ACEOF
30677
30678fi
30679done
30680
30681
30682 if test "$ac_cv_func_sigaction" = "no"; then
30683 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30684echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30685 wxUSE_ON_FATAL_EXCEPTION=no
30686 fi
30687
30688 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30689
30690
30691 ac_ext=cc
30692ac_cpp='$CXXCPP $CPPFLAGS'
30693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30696
30697
30698 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30699echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30700if test "${wx_cv_type_sa_handler+set}" = set; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30702else
30703
30704 cat >conftest.$ac_ext <<_ACEOF
30705/* confdefs.h. */
30706_ACEOF
30707cat confdefs.h >>conftest.$ac_ext
30708cat >>conftest.$ac_ext <<_ACEOF
30709/* end confdefs.h. */
30710#include <signal.h>
30711int
30712main ()
30713{
30714
30715 extern void testSigHandler(int);
30716
30717 struct sigaction sa;
30718 sa.sa_handler = testSigHandler;
30719
30720 ;
30721 return 0;
30722}
30723_ACEOF
30724rm -f conftest.$ac_objext
30725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30726 (eval $ac_compile) 2>conftest.er1
a848cd7e 30727 ac_status=$?
ac1cb8d3
VS
30728 grep -v '^ *+' conftest.er1 >conftest.err
30729 rm -f conftest.er1
30730 cat conftest.err >&5
a848cd7e
SC
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); } &&
ac1cb8d3
VS
30733 { ac_try='test -z "$ac_cxx_werror_flag"
30734 || test ! -s conftest.err'
30735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30736 (eval $ac_try) 2>&5
30737 ac_status=$?
30738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30739 (exit $ac_status); }; } &&
30740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30742 (eval $ac_try) 2>&5
30743 ac_status=$?
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); }; }; then
30746
30747 wx_cv_type_sa_handler=int
30748
30749else
30750 echo "$as_me: failed program was:" >&5
30751sed 's/^/| /' conftest.$ac_ext >&5
30752
30753
30754 wx_cv_type_sa_handler=void
30755
30756fi
ac1cb8d3 30757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30758
30759fi
30760echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30761echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30762
30763 ac_ext=c
30764ac_cpp='$CPP $CPPFLAGS'
30765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767ac_compiler_gnu=$ac_cv_c_compiler_gnu
30768
30769
30770 cat >>confdefs.h <<_ACEOF
30771#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30772_ACEOF
30773
30774 fi
30775fi
30776
30777
30778
30779for ac_func in mkstemp mktemp
30780do
30781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30782echo "$as_me:$LINENO: checking for $ac_func" >&5
30783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30784if eval "test \"\${$as_ac_var+set}\" = set"; then
30785 echo $ECHO_N "(cached) $ECHO_C" >&6
30786else
30787 cat >conftest.$ac_ext <<_ACEOF
30788/* confdefs.h. */
30789_ACEOF
30790cat confdefs.h >>conftest.$ac_ext
30791cat >>conftest.$ac_ext <<_ACEOF
30792/* end confdefs.h. */
ac1cb8d3
VS
30793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30795#define $ac_func innocuous_$ac_func
30796
a848cd7e
SC
30797/* System header to define __stub macros and hopefully few prototypes,
30798 which can conflict with char $ac_func (); below.
30799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30800 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30801
a848cd7e
SC
30802#ifdef __STDC__
30803# include <limits.h>
30804#else
30805# include <assert.h>
30806#endif
ac1cb8d3
VS
30807
30808#undef $ac_func
30809
a848cd7e
SC
30810/* Override any gcc2 internal prototype to avoid an error. */
30811#ifdef __cplusplus
30812extern "C"
30813{
30814#endif
30815/* We use char because int might match the return type of a gcc2
30816 builtin and then its argument prototype would still apply. */
30817char $ac_func ();
30818/* The GNU C library defines this for functions which it implements
30819 to always fail with ENOSYS. Some functions are actually named
30820 something starting with __ and the normal name is an alias. */
30821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30822choke me
30823#else
30824char (*f) () = $ac_func;
30825#endif
30826#ifdef __cplusplus
30827}
30828#endif
30829
30830int
30831main ()
30832{
30833return f != $ac_func;
30834 ;
30835 return 0;
30836}
30837_ACEOF
30838rm -f conftest.$ac_objext conftest$ac_exeext
30839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30840 (eval $ac_link) 2>conftest.er1
a848cd7e 30841 ac_status=$?
ac1cb8d3
VS
30842 grep -v '^ *+' conftest.er1 >conftest.err
30843 rm -f conftest.er1
30844 cat conftest.err >&5
a848cd7e
SC
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); } &&
ac1cb8d3
VS
30847 { ac_try='test -z "$ac_c_werror_flag"
30848 || test ! -s conftest.err'
30849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30850 (eval $ac_try) 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; } &&
30854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30856 (eval $ac_try) 2>&5
30857 ac_status=$?
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; }; then
30860 eval "$as_ac_var=yes"
30861else
30862 echo "$as_me: failed program was:" >&5
30863sed 's/^/| /' conftest.$ac_ext >&5
30864
30865eval "$as_ac_var=no"
30866fi
ac1cb8d3
VS
30867rm -f conftest.err conftest.$ac_objext \
30868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30869fi
30870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30872if test `eval echo '${'$as_ac_var'}'` = yes; then
30873 cat >>confdefs.h <<_ACEOF
30874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30875_ACEOF
30876 break
30877fi
30878done
30879
30880
30881echo "$as_me:$LINENO: checking for statfs" >&5
30882echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30883if test "${wx_cv_func_statfs+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30885else
30886 cat >conftest.$ac_ext <<_ACEOF
30887/* confdefs.h. */
30888_ACEOF
30889cat confdefs.h >>conftest.$ac_ext
30890cat >>conftest.$ac_ext <<_ACEOF
30891/* end confdefs.h. */
30892
30893 #if defined(__BSD__)
30894 #include <sys/param.h>
30895 #include <sys/mount.h>
30896 #else
30897 #include <sys/vfs.h>
30898 #endif
30899
30900int
30901main ()
30902{
30903
30904 long l;
30905 struct statfs fs;
30906 statfs("/", &fs);
30907 l = fs.f_bsize;
30908 l += fs.f_blocks;
30909 l += fs.f_bavail;
30910
30911 ;
30912 return 0;
30913}
30914_ACEOF
30915rm -f conftest.$ac_objext
30916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30917 (eval $ac_compile) 2>conftest.er1
a848cd7e 30918 ac_status=$?
ac1cb8d3
VS
30919 grep -v '^ *+' conftest.er1 >conftest.err
30920 rm -f conftest.er1
30921 cat conftest.err >&5
a848cd7e
SC
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); } &&
ac1cb8d3
VS
30924 { ac_try='test -z "$ac_c_werror_flag"
30925 || test ! -s conftest.err'
30926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927 (eval $ac_try) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; } &&
30931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30933 (eval $ac_try) 2>&5
30934 ac_status=$?
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); }; }; then
30937
30938 wx_cv_func_statfs=yes
30939
30940else
30941 echo "$as_me: failed program was:" >&5
30942sed 's/^/| /' conftest.$ac_ext >&5
30943
30944
30945 wx_cv_func_statfs=no
30946
30947
30948fi
ac1cb8d3 30949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30950
30951fi
30952echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30953echo "${ECHO_T}$wx_cv_func_statfs" >&6
30954
30955if test "$wx_cv_func_statfs" = "yes"; then
30956 wx_cv_type_statvfs_t="struct statfs"
30957 cat >>confdefs.h <<\_ACEOF
30958#define HAVE_STATFS 1
30959_ACEOF
30960
30961else
30962 echo "$as_me:$LINENO: checking for statvfs" >&5
30963echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30964if test "${wx_cv_func_statvfs+set}" = set; then
30965 echo $ECHO_N "(cached) $ECHO_C" >&6
30966else
30967 cat >conftest.$ac_ext <<_ACEOF
30968/* confdefs.h. */
30969_ACEOF
30970cat confdefs.h >>conftest.$ac_ext
30971cat >>conftest.$ac_ext <<_ACEOF
30972/* end confdefs.h. */
30973
30974 #include <stddef.h>
30975 #include <sys/statvfs.h>
30976
30977int
30978main ()
30979{
30980
30981 statvfs("/", NULL);
30982
30983 ;
30984 return 0;
30985}
30986_ACEOF
30987rm -f conftest.$ac_objext
30988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30989 (eval $ac_compile) 2>conftest.er1
a848cd7e 30990 ac_status=$?
ac1cb8d3
VS
30991 grep -v '^ *+' conftest.er1 >conftest.err
30992 rm -f conftest.er1
30993 cat conftest.err >&5
a848cd7e
SC
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
ac1cb8d3
VS
30996 { ac_try='test -z "$ac_c_werror_flag"
30997 || test ! -s conftest.err'
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; } &&
31003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; }; then
31009 wx_cv_func_statvfs=yes
31010else
31011 echo "$as_me: failed program was:" >&5
31012sed 's/^/| /' conftest.$ac_ext >&5
31013
31014wx_cv_func_statvfs=no
31015
31016fi
ac1cb8d3 31017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31018
31019fi
31020echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31021echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31022
31023 if test "$wx_cv_func_statvfs" = "yes"; then
31024
31025
31026 ac_ext=cc
31027ac_cpp='$CXXCPP $CPPFLAGS'
31028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31031
31032
31033 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31034echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31035if test "${wx_cv_type_statvfs_t+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038 cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044
31045 #include <sys/statvfs.h>
31046
31047int
31048main ()
31049{
31050
31051 long l;
31052 statvfs_t fs;
31053 statvfs("/", &fs);
31054 l = fs.f_bsize;
31055 l += fs.f_blocks;
31056 l += fs.f_bavail;
31057
31058 ;
31059 return 0;
31060}
31061_ACEOF
31062rm -f conftest.$ac_objext
31063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31064 (eval $ac_compile) 2>conftest.er1
a848cd7e 31065 ac_status=$?
ac1cb8d3
VS
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
a848cd7e
SC
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
ac1cb8d3
VS
31071 { ac_try='test -z "$ac_cxx_werror_flag"
31072 || test ! -s conftest.err'
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; } &&
31078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31081 ac_status=$?
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; }; then
31084 wx_cv_type_statvfs_t=statvfs_t
31085else
31086 echo "$as_me: failed program was:" >&5
31087sed 's/^/| /' conftest.$ac_ext >&5
31088
31089
31090 cat >conftest.$ac_ext <<_ACEOF
31091/* confdefs.h. */
31092_ACEOF
31093cat confdefs.h >>conftest.$ac_ext
31094cat >>conftest.$ac_ext <<_ACEOF
31095/* end confdefs.h. */
31096
31097 #include <sys/statvfs.h>
31098
31099int
31100main ()
31101{
31102
31103 long l;
31104 struct statvfs fs;
31105 statvfs("/", &fs);
31106 l = fs.f_bsize;
31107 l += fs.f_blocks;
31108 l += fs.f_bavail;
31109
31110 ;
31111 return 0;
31112}
31113_ACEOF
31114rm -f conftest.$ac_objext
31115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31116 (eval $ac_compile) 2>conftest.er1
a848cd7e 31117 ac_status=$?
ac1cb8d3
VS
31118 grep -v '^ *+' conftest.er1 >conftest.err
31119 rm -f conftest.er1
31120 cat conftest.err >&5
a848cd7e
SC
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
ac1cb8d3
VS
31123 { ac_try='test -z "$ac_cxx_werror_flag"
31124 || test ! -s conftest.err'
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 wx_cv_type_statvfs_t="struct statvfs"
31137else
31138 echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
31141wx_cv_type_statvfs_t="unknown"
31142
31143fi
ac1cb8d3 31144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31145
31146
31147fi
ac1cb8d3 31148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31149
31150fi
31151echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31152echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31153
31154 ac_ext=c
31155ac_cpp='$CPP $CPPFLAGS'
31156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31158ac_compiler_gnu=$ac_cv_c_compiler_gnu
31159
31160
31161 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31162 cat >>confdefs.h <<\_ACEOF
31163#define HAVE_STATVFS 1
31164_ACEOF
31165
31166 fi
31167 else
31168 wx_cv_type_statvfs_t="unknown"
31169 fi
31170fi
31171
31172if test "$wx_cv_type_statvfs_t" != "unknown"; then
31173 cat >>confdefs.h <<_ACEOF
31174#define WX_STATFS_T $wx_cv_type_statvfs_t
31175_ACEOF
31176
31177else
31178 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31179echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31180fi
31181
31182if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31183
31184
31185for ac_func in fcntl flock
31186do
31187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31188echo "$as_me:$LINENO: checking for $ac_func" >&5
31189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31190if eval "test \"\${$as_ac_var+set}\" = set"; then
31191 echo $ECHO_N "(cached) $ECHO_C" >&6
31192else
31193 cat >conftest.$ac_ext <<_ACEOF
31194/* confdefs.h. */
31195_ACEOF
31196cat confdefs.h >>conftest.$ac_ext
31197cat >>conftest.$ac_ext <<_ACEOF
31198/* end confdefs.h. */
ac1cb8d3
VS
31199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31201#define $ac_func innocuous_$ac_func
31202
a848cd7e
SC
31203/* System header to define __stub macros and hopefully few prototypes,
31204 which can conflict with char $ac_func (); below.
31205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31206 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31207
a848cd7e
SC
31208#ifdef __STDC__
31209# include <limits.h>
31210#else
31211# include <assert.h>
31212#endif
ac1cb8d3
VS
31213
31214#undef $ac_func
31215
a848cd7e
SC
31216/* Override any gcc2 internal prototype to avoid an error. */
31217#ifdef __cplusplus
31218extern "C"
31219{
31220#endif
31221/* We use char because int might match the return type of a gcc2
31222 builtin and then its argument prototype would still apply. */
31223char $ac_func ();
31224/* The GNU C library defines this for functions which it implements
31225 to always fail with ENOSYS. Some functions are actually named
31226 something starting with __ and the normal name is an alias. */
31227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31228choke me
31229#else
31230char (*f) () = $ac_func;
31231#endif
31232#ifdef __cplusplus
31233}
31234#endif
31235
31236int
31237main ()
31238{
31239return f != $ac_func;
31240 ;
31241 return 0;
31242}
31243_ACEOF
31244rm -f conftest.$ac_objext conftest$ac_exeext
31245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31246 (eval $ac_link) 2>conftest.er1
a848cd7e 31247 ac_status=$?
ac1cb8d3
VS
31248 grep -v '^ *+' conftest.er1 >conftest.err
31249 rm -f conftest.er1
31250 cat conftest.err >&5
a848cd7e
SC
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } &&
ac1cb8d3
VS
31253 { ac_try='test -z "$ac_c_werror_flag"
31254 || test ! -s conftest.err'
31255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256 (eval $ac_try) 2>&5
31257 ac_status=$?
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); }; } &&
31260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31262 (eval $ac_try) 2>&5
31263 ac_status=$?
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); }; }; then
31266 eval "$as_ac_var=yes"
31267else
31268 echo "$as_me: failed program was:" >&5
31269sed 's/^/| /' conftest.$ac_ext >&5
31270
31271eval "$as_ac_var=no"
31272fi
ac1cb8d3
VS
31273rm -f conftest.err conftest.$ac_objext \
31274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31275fi
31276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31278if test `eval echo '${'$as_ac_var'}'` = yes; then
31279 cat >>confdefs.h <<_ACEOF
31280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31281_ACEOF
31282 break
31283fi
31284done
31285
31286
31287 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31288 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31289echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31290 wxUSE_SNGLINST_CHECKER=no
31291 fi
31292fi
31293
31294
31295for ac_func in timegm
31296do
31297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31298echo "$as_me:$LINENO: checking for $ac_func" >&5
31299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31300if eval "test \"\${$as_ac_var+set}\" = set"; then
31301 echo $ECHO_N "(cached) $ECHO_C" >&6
31302else
31303 cat >conftest.$ac_ext <<_ACEOF
31304/* confdefs.h. */
31305_ACEOF
31306cat confdefs.h >>conftest.$ac_ext
31307cat >>conftest.$ac_ext <<_ACEOF
31308/* end confdefs.h. */
ac1cb8d3
VS
31309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31311#define $ac_func innocuous_$ac_func
31312
a848cd7e
SC
31313/* System header to define __stub macros and hopefully few prototypes,
31314 which can conflict with char $ac_func (); below.
31315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31316 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31317
a848cd7e
SC
31318#ifdef __STDC__
31319# include <limits.h>
31320#else
31321# include <assert.h>
31322#endif
ac1cb8d3
VS
31323
31324#undef $ac_func
31325
a848cd7e
SC
31326/* Override any gcc2 internal prototype to avoid an error. */
31327#ifdef __cplusplus
31328extern "C"
31329{
31330#endif
31331/* We use char because int might match the return type of a gcc2
31332 builtin and then its argument prototype would still apply. */
31333char $ac_func ();
31334/* The GNU C library defines this for functions which it implements
31335 to always fail with ENOSYS. Some functions are actually named
31336 something starting with __ and the normal name is an alias. */
31337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31338choke me
31339#else
31340char (*f) () = $ac_func;
31341#endif
31342#ifdef __cplusplus
31343}
31344#endif
31345
31346int
31347main ()
31348{
31349return f != $ac_func;
31350 ;
31351 return 0;
31352}
31353_ACEOF
31354rm -f conftest.$ac_objext conftest$ac_exeext
31355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31356 (eval $ac_link) 2>conftest.er1
a848cd7e 31357 ac_status=$?
ac1cb8d3
VS
31358 grep -v '^ *+' conftest.er1 >conftest.err
31359 rm -f conftest.er1
31360 cat conftest.err >&5
a848cd7e
SC
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); } &&
ac1cb8d3
VS
31363 { ac_try='test -z "$ac_c_werror_flag"
31364 || test ! -s conftest.err'
31365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31366 (eval $ac_try) 2>&5
31367 ac_status=$?
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); }; } &&
31370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31372 (eval $ac_try) 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; }; then
31376 eval "$as_ac_var=yes"
31377else
31378 echo "$as_me: failed program was:" >&5
31379sed 's/^/| /' conftest.$ac_ext >&5
31380
31381eval "$as_ac_var=no"
31382fi
ac1cb8d3
VS
31383rm -f conftest.err conftest.$ac_objext \
31384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31385fi
31386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31388if test `eval echo '${'$as_ac_var'}'` = yes; then
31389 cat >>confdefs.h <<_ACEOF
31390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31391_ACEOF
31392
31393fi
31394done
31395
31396
31397
31398
31399for ac_func in putenv setenv
31400do
31401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31402echo "$as_me:$LINENO: checking for $ac_func" >&5
31403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31404if eval "test \"\${$as_ac_var+set}\" = set"; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31406else
31407 cat >conftest.$ac_ext <<_ACEOF
31408/* confdefs.h. */
31409_ACEOF
31410cat confdefs.h >>conftest.$ac_ext
31411cat >>conftest.$ac_ext <<_ACEOF
31412/* end confdefs.h. */
ac1cb8d3
VS
31413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31415#define $ac_func innocuous_$ac_func
31416
a848cd7e
SC
31417/* System header to define __stub macros and hopefully few prototypes,
31418 which can conflict with char $ac_func (); below.
31419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31421
a848cd7e
SC
31422#ifdef __STDC__
31423# include <limits.h>
31424#else
31425# include <assert.h>
31426#endif
ac1cb8d3
VS
31427
31428#undef $ac_func
31429
a848cd7e
SC
31430/* Override any gcc2 internal prototype to avoid an error. */
31431#ifdef __cplusplus
31432extern "C"
31433{
31434#endif
31435/* We use char because int might match the return type of a gcc2
31436 builtin and then its argument prototype would still apply. */
31437char $ac_func ();
31438/* The GNU C library defines this for functions which it implements
31439 to always fail with ENOSYS. Some functions are actually named
31440 something starting with __ and the normal name is an alias. */
31441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31442choke me
31443#else
31444char (*f) () = $ac_func;
31445#endif
31446#ifdef __cplusplus
31447}
31448#endif
31449
31450int
31451main ()
31452{
31453return f != $ac_func;
31454 ;
31455 return 0;
31456}
31457_ACEOF
31458rm -f conftest.$ac_objext conftest$ac_exeext
31459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31460 (eval $ac_link) 2>conftest.er1
a848cd7e 31461 ac_status=$?
ac1cb8d3
VS
31462 grep -v '^ *+' conftest.er1 >conftest.err
31463 rm -f conftest.er1
31464 cat conftest.err >&5
a848cd7e
SC
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); } &&
ac1cb8d3
VS
31467 { ac_try='test -z "$ac_c_werror_flag"
31468 || test ! -s conftest.err'
31469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31470 (eval $ac_try) 2>&5
31471 ac_status=$?
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); }; } &&
31474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31476 (eval $ac_try) 2>&5
31477 ac_status=$?
31478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479 (exit $ac_status); }; }; then
31480 eval "$as_ac_var=yes"
31481else
31482 echo "$as_me: failed program was:" >&5
31483sed 's/^/| /' conftest.$ac_ext >&5
31484
31485eval "$as_ac_var=no"
31486fi
ac1cb8d3
VS
31487rm -f conftest.err conftest.$ac_objext \
31488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31489fi
31490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31492if test `eval echo '${'$as_ac_var'}'` = yes; then
31493 cat >>confdefs.h <<_ACEOF
31494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31495_ACEOF
31496 break
31497fi
31498done
31499
31500
31501HAVE_SOME_SLEEP_FUNC=0
31502if test "$USE_BEOS" = 1; then
31503 cat >>confdefs.h <<\_ACEOF
31504#define HAVE_SLEEP 1
31505_ACEOF
31506
31507 HAVE_SOME_SLEEP_FUNC=1
31508fi
31509
31510if test "$USE_DARWIN" = 1; then
31511 cat >>confdefs.h <<\_ACEOF
31512#define HAVE_USLEEP 1
31513_ACEOF
31514
31515 HAVE_SOME_SLEEP_FUNC=1
31516fi
31517
31518if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31519 POSIX4_LINK=
31520
31521for ac_func in nanosleep
31522do
31523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31524echo "$as_me:$LINENO: checking for $ac_func" >&5
31525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31526if eval "test \"\${$as_ac_var+set}\" = set"; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31528else
31529 cat >conftest.$ac_ext <<_ACEOF
31530/* confdefs.h. */
31531_ACEOF
31532cat confdefs.h >>conftest.$ac_ext
31533cat >>conftest.$ac_ext <<_ACEOF
31534/* end confdefs.h. */
ac1cb8d3
VS
31535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31537#define $ac_func innocuous_$ac_func
31538
a848cd7e
SC
31539/* System header to define __stub macros and hopefully few prototypes,
31540 which can conflict with char $ac_func (); below.
31541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31542 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31543
a848cd7e
SC
31544#ifdef __STDC__
31545# include <limits.h>
31546#else
31547# include <assert.h>
31548#endif
ac1cb8d3
VS
31549
31550#undef $ac_func
31551
a848cd7e
SC
31552/* Override any gcc2 internal prototype to avoid an error. */
31553#ifdef __cplusplus
31554extern "C"
31555{
31556#endif
31557/* We use char because int might match the return type of a gcc2
31558 builtin and then its argument prototype would still apply. */
31559char $ac_func ();
31560/* The GNU C library defines this for functions which it implements
31561 to always fail with ENOSYS. Some functions are actually named
31562 something starting with __ and the normal name is an alias. */
31563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31564choke me
31565#else
31566char (*f) () = $ac_func;
31567#endif
31568#ifdef __cplusplus
31569}
31570#endif
31571
31572int
31573main ()
31574{
31575return f != $ac_func;
31576 ;
31577 return 0;
31578}
31579_ACEOF
31580rm -f conftest.$ac_objext conftest$ac_exeext
31581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31582 (eval $ac_link) 2>conftest.er1
a848cd7e 31583 ac_status=$?
ac1cb8d3
VS
31584 grep -v '^ *+' conftest.er1 >conftest.err
31585 rm -f conftest.er1
31586 cat conftest.err >&5
a848cd7e
SC
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); } &&
ac1cb8d3
VS
31589 { ac_try='test -z "$ac_c_werror_flag"
31590 || test ! -s conftest.err'
31591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31592 (eval $ac_try) 2>&5
31593 ac_status=$?
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); }; } &&
31596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31598 (eval $ac_try) 2>&5
31599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; }; then
31602 eval "$as_ac_var=yes"
31603else
31604 echo "$as_me: failed program was:" >&5
31605sed 's/^/| /' conftest.$ac_ext >&5
31606
31607eval "$as_ac_var=no"
31608fi
ac1cb8d3
VS
31609rm -f conftest.err conftest.$ac_objext \
31610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31611fi
31612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31614if test `eval echo '${'$as_ac_var'}'` = yes; then
31615 cat >>confdefs.h <<_ACEOF
31616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31617_ACEOF
31618 cat >>confdefs.h <<\_ACEOF
31619#define HAVE_NANOSLEEP 1
31620_ACEOF
31621
31622else
31623
31624 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31625echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31626if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31628else
31629 ac_check_lib_save_LIBS=$LIBS
31630LIBS="-lposix4 $LIBS"
31631cat >conftest.$ac_ext <<_ACEOF
31632/* confdefs.h. */
31633_ACEOF
31634cat confdefs.h >>conftest.$ac_ext
31635cat >>conftest.$ac_ext <<_ACEOF
31636/* end confdefs.h. */
31637
31638/* Override any gcc2 internal prototype to avoid an error. */
31639#ifdef __cplusplus
31640extern "C"
31641#endif
31642/* We use char because int might match the return type of a gcc2
31643 builtin and then its argument prototype would still apply. */
31644char nanosleep ();
31645int
31646main ()
31647{
31648nanosleep ();
31649 ;
31650 return 0;
31651}
31652_ACEOF
31653rm -f conftest.$ac_objext conftest$ac_exeext
31654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31655 (eval $ac_link) 2>conftest.er1
a848cd7e 31656 ac_status=$?
ac1cb8d3
VS
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
a848cd7e
SC
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } &&
ac1cb8d3
VS
31662 { ac_try='test -z "$ac_c_werror_flag"
31663 || test ! -s conftest.err'
31664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665 (eval $ac_try) 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 ac_cv_lib_posix4_nanosleep=yes
31676else
31677 echo "$as_me: failed program was:" >&5
31678sed 's/^/| /' conftest.$ac_ext >&5
31679
31680ac_cv_lib_posix4_nanosleep=no
31681fi
ac1cb8d3
VS
31682rm -f conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31684LIBS=$ac_check_lib_save_LIBS
31685fi
31686echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31687echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31688if test $ac_cv_lib_posix4_nanosleep = yes; then
31689
31690 cat >>confdefs.h <<\_ACEOF
31691#define HAVE_NANOSLEEP 1
31692_ACEOF
31693
31694 POSIX4_LINK=" -lposix4"
31695
31696else
31697
31698
31699for ac_func in usleep
31700do
31701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31702echo "$as_me:$LINENO: checking for $ac_func" >&5
31703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31704if eval "test \"\${$as_ac_var+set}\" = set"; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31706else
31707 cat >conftest.$ac_ext <<_ACEOF
31708/* confdefs.h. */
31709_ACEOF
31710cat confdefs.h >>conftest.$ac_ext
31711cat >>conftest.$ac_ext <<_ACEOF
31712/* end confdefs.h. */
ac1cb8d3
VS
31713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31715#define $ac_func innocuous_$ac_func
31716
a848cd7e
SC
31717/* System header to define __stub macros and hopefully few prototypes,
31718 which can conflict with char $ac_func (); below.
31719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31720 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31721
a848cd7e
SC
31722#ifdef __STDC__
31723# include <limits.h>
31724#else
31725# include <assert.h>
31726#endif
ac1cb8d3
VS
31727
31728#undef $ac_func
31729
a848cd7e
SC
31730/* Override any gcc2 internal prototype to avoid an error. */
31731#ifdef __cplusplus
31732extern "C"
31733{
31734#endif
31735/* We use char because int might match the return type of a gcc2
31736 builtin and then its argument prototype would still apply. */
31737char $ac_func ();
31738/* The GNU C library defines this for functions which it implements
31739 to always fail with ENOSYS. Some functions are actually named
31740 something starting with __ and the normal name is an alias. */
31741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31742choke me
31743#else
31744char (*f) () = $ac_func;
31745#endif
31746#ifdef __cplusplus
31747}
31748#endif
31749
31750int
31751main ()
31752{
31753return f != $ac_func;
31754 ;
31755 return 0;
31756}
31757_ACEOF
31758rm -f conftest.$ac_objext conftest$ac_exeext
31759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31760 (eval $ac_link) 2>conftest.er1
a848cd7e 31761 ac_status=$?
ac1cb8d3
VS
31762 grep -v '^ *+' conftest.er1 >conftest.err
31763 rm -f conftest.er1
31764 cat conftest.err >&5
a848cd7e
SC
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } &&
ac1cb8d3
VS
31767 { ac_try='test -z "$ac_c_werror_flag"
31768 || test ! -s conftest.err'
31769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770 (eval $ac_try) 2>&5
31771 ac_status=$?
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); }; } &&
31774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31776 (eval $ac_try) 2>&5
31777 ac_status=$?
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); }; }; then
31780 eval "$as_ac_var=yes"
31781else
31782 echo "$as_me: failed program was:" >&5
31783sed 's/^/| /' conftest.$ac_ext >&5
31784
31785eval "$as_ac_var=no"
31786fi
ac1cb8d3
VS
31787rm -f conftest.err conftest.$ac_objext \
31788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31789fi
31790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31792if test `eval echo '${'$as_ac_var'}'` = yes; then
31793 cat >>confdefs.h <<_ACEOF
31794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31795_ACEOF
31796 cat >>confdefs.h <<\_ACEOF
31797#define HAVE_USLEEP 1
31798_ACEOF
31799
31800else
31801 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31802echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31803
31804fi
31805done
31806
31807
31808
31809fi
31810
31811
31812
31813fi
31814done
31815
31816fi
31817
31818
31819
31820for ac_func in uname gethostname
31821do
31822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31823echo "$as_me:$LINENO: checking for $ac_func" >&5
31824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31825if eval "test \"\${$as_ac_var+set}\" = set"; then
31826 echo $ECHO_N "(cached) $ECHO_C" >&6
31827else
31828 cat >conftest.$ac_ext <<_ACEOF
31829/* confdefs.h. */
31830_ACEOF
31831cat confdefs.h >>conftest.$ac_ext
31832cat >>conftest.$ac_ext <<_ACEOF
31833/* end confdefs.h. */
ac1cb8d3
VS
31834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31836#define $ac_func innocuous_$ac_func
31837
a848cd7e
SC
31838/* System header to define __stub macros and hopefully few prototypes,
31839 which can conflict with char $ac_func (); below.
31840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31841 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31842
a848cd7e
SC
31843#ifdef __STDC__
31844# include <limits.h>
31845#else
31846# include <assert.h>
31847#endif
ac1cb8d3
VS
31848
31849#undef $ac_func
31850
a848cd7e
SC
31851/* Override any gcc2 internal prototype to avoid an error. */
31852#ifdef __cplusplus
31853extern "C"
31854{
31855#endif
31856/* We use char because int might match the return type of a gcc2
31857 builtin and then its argument prototype would still apply. */
31858char $ac_func ();
31859/* The GNU C library defines this for functions which it implements
31860 to always fail with ENOSYS. Some functions are actually named
31861 something starting with __ and the normal name is an alias. */
31862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31863choke me
31864#else
31865char (*f) () = $ac_func;
31866#endif
31867#ifdef __cplusplus
31868}
31869#endif
31870
31871int
31872main ()
31873{
31874return f != $ac_func;
31875 ;
31876 return 0;
31877}
31878_ACEOF
31879rm -f conftest.$ac_objext conftest$ac_exeext
31880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31881 (eval $ac_link) 2>conftest.er1
a848cd7e 31882 ac_status=$?
ac1cb8d3
VS
31883 grep -v '^ *+' conftest.er1 >conftest.err
31884 rm -f conftest.er1
31885 cat conftest.err >&5
a848cd7e
SC
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); } &&
ac1cb8d3
VS
31888 { ac_try='test -z "$ac_c_werror_flag"
31889 || test ! -s conftest.err'
31890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31891 (eval $ac_try) 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; } &&
31895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897 (eval $ac_try) 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
31901 eval "$as_ac_var=yes"
31902else
31903 echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
31906eval "$as_ac_var=no"
31907fi
ac1cb8d3
VS
31908rm -f conftest.err conftest.$ac_objext \
31909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31910fi
31911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31912echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31913if test `eval echo '${'$as_ac_var'}'` = yes; then
31914 cat >>confdefs.h <<_ACEOF
31915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31916_ACEOF
31917 break
31918fi
31919done
31920
31921
31922
31923
31924ac_ext=cc
31925ac_cpp='$CXXCPP $CPPFLAGS'
31926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31929
31930
31931
31932for ac_func in strtok_r
31933do
31934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31935echo "$as_me:$LINENO: checking for $ac_func" >&5
31936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31937if eval "test \"\${$as_ac_var+set}\" = set"; then
31938 echo $ECHO_N "(cached) $ECHO_C" >&6
31939else
31940 cat >conftest.$ac_ext <<_ACEOF
31941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
ac1cb8d3
VS
31946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31948#define $ac_func innocuous_$ac_func
31949
a848cd7e
SC
31950/* System header to define __stub macros and hopefully few prototypes,
31951 which can conflict with char $ac_func (); below.
31952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31953 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31954
a848cd7e
SC
31955#ifdef __STDC__
31956# include <limits.h>
31957#else
31958# include <assert.h>
31959#endif
ac1cb8d3
VS
31960
31961#undef $ac_func
31962
a848cd7e
SC
31963/* Override any gcc2 internal prototype to avoid an error. */
31964#ifdef __cplusplus
31965extern "C"
31966{
31967#endif
31968/* We use char because int might match the return type of a gcc2
31969 builtin and then its argument prototype would still apply. */
31970char $ac_func ();
31971/* The GNU C library defines this for functions which it implements
31972 to always fail with ENOSYS. Some functions are actually named
31973 something starting with __ and the normal name is an alias. */
31974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31975choke me
31976#else
31977char (*f) () = $ac_func;
31978#endif
31979#ifdef __cplusplus
31980}
31981#endif
31982
31983int
31984main ()
31985{
31986return f != $ac_func;
31987 ;
31988 return 0;
31989}
31990_ACEOF
31991rm -f conftest.$ac_objext conftest$ac_exeext
31992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31993 (eval $ac_link) 2>conftest.er1
a848cd7e 31994 ac_status=$?
ac1cb8d3
VS
31995 grep -v '^ *+' conftest.er1 >conftest.err
31996 rm -f conftest.er1
31997 cat conftest.err >&5
a848cd7e
SC
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); } &&
ac1cb8d3
VS
32000 { ac_try='test -z "$ac_cxx_werror_flag"
32001 || test ! -s conftest.err'
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32004 ac_status=$?
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; } &&
32007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32009 (eval $ac_try) 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
32013 eval "$as_ac_var=yes"
32014else
32015 echo "$as_me: failed program was:" >&5
32016sed 's/^/| /' conftest.$ac_ext >&5
32017
32018eval "$as_ac_var=no"
32019fi
ac1cb8d3
VS
32020rm -f conftest.err conftest.$ac_objext \
32021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32022fi
32023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32025if test `eval echo '${'$as_ac_var'}'` = yes; then
32026 cat >>confdefs.h <<_ACEOF
32027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32028_ACEOF
32029
32030fi
32031done
32032
32033
32034ac_ext=c
32035ac_cpp='$CPP $CPPFLAGS'
32036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32038ac_compiler_gnu=$ac_cv_c_compiler_gnu
32039
32040
32041INET_LINK=
32042
32043for ac_func in inet_addr
32044do
32045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32046echo "$as_me:$LINENO: checking for $ac_func" >&5
32047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32048if eval "test \"\${$as_ac_var+set}\" = set"; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32050else
32051 cat >conftest.$ac_ext <<_ACEOF
32052/* confdefs.h. */
32053_ACEOF
32054cat confdefs.h >>conftest.$ac_ext
32055cat >>conftest.$ac_ext <<_ACEOF
32056/* end confdefs.h. */
ac1cb8d3
VS
32057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32059#define $ac_func innocuous_$ac_func
32060
a848cd7e
SC
32061/* System header to define __stub macros and hopefully few prototypes,
32062 which can conflict with char $ac_func (); below.
32063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32065
a848cd7e
SC
32066#ifdef __STDC__
32067# include <limits.h>
32068#else
32069# include <assert.h>
32070#endif
ac1cb8d3
VS
32071
32072#undef $ac_func
32073
a848cd7e
SC
32074/* Override any gcc2 internal prototype to avoid an error. */
32075#ifdef __cplusplus
32076extern "C"
32077{
32078#endif
32079/* We use char because int might match the return type of a gcc2
32080 builtin and then its argument prototype would still apply. */
32081char $ac_func ();
32082/* The GNU C library defines this for functions which it implements
32083 to always fail with ENOSYS. Some functions are actually named
32084 something starting with __ and the normal name is an alias. */
32085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32086choke me
32087#else
32088char (*f) () = $ac_func;
32089#endif
32090#ifdef __cplusplus
32091}
32092#endif
32093
32094int
32095main ()
32096{
32097return f != $ac_func;
32098 ;
32099 return 0;
32100}
32101_ACEOF
32102rm -f conftest.$ac_objext conftest$ac_exeext
32103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32104 (eval $ac_link) 2>conftest.er1
a848cd7e 32105 ac_status=$?
ac1cb8d3
VS
32106 grep -v '^ *+' conftest.er1 >conftest.err
32107 rm -f conftest.er1
32108 cat conftest.err >&5
a848cd7e
SC
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); } &&
ac1cb8d3
VS
32111 { ac_try='test -z "$ac_c_werror_flag"
32112 || test ! -s conftest.err'
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; } &&
32118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120 (eval $ac_try) 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
32124 eval "$as_ac_var=yes"
32125else
32126 echo "$as_me: failed program was:" >&5
32127sed 's/^/| /' conftest.$ac_ext >&5
32128
32129eval "$as_ac_var=no"
32130fi
ac1cb8d3
VS
32131rm -f conftest.err conftest.$ac_objext \
32132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32133fi
32134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32136if test `eval echo '${'$as_ac_var'}'` = yes; then
32137 cat >>confdefs.h <<_ACEOF
32138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32139_ACEOF
32140 cat >>confdefs.h <<\_ACEOF
32141#define HAVE_INET_ADDR 1
32142_ACEOF
32143
32144else
32145
32146 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32147echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32148if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32149 echo $ECHO_N "(cached) $ECHO_C" >&6
32150else
32151 ac_check_lib_save_LIBS=$LIBS
32152LIBS="-lnsl $LIBS"
32153cat >conftest.$ac_ext <<_ACEOF
32154/* confdefs.h. */
32155_ACEOF
32156cat confdefs.h >>conftest.$ac_ext
32157cat >>conftest.$ac_ext <<_ACEOF
32158/* end confdefs.h. */
32159
32160/* Override any gcc2 internal prototype to avoid an error. */
32161#ifdef __cplusplus
32162extern "C"
32163#endif
32164/* We use char because int might match the return type of a gcc2
32165 builtin and then its argument prototype would still apply. */
32166char inet_addr ();
32167int
32168main ()
32169{
32170inet_addr ();
32171 ;
32172 return 0;
32173}
32174_ACEOF
32175rm -f conftest.$ac_objext conftest$ac_exeext
32176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32177 (eval $ac_link) 2>conftest.er1
a848cd7e 32178 ac_status=$?
ac1cb8d3
VS
32179 grep -v '^ *+' conftest.er1 >conftest.err
32180 rm -f conftest.er1
32181 cat conftest.err >&5
a848cd7e
SC
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
ac1cb8d3
VS
32184 { ac_try='test -z "$ac_c_werror_flag"
32185 || test ! -s conftest.err'
32186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32187 (eval $ac_try) 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32193 (eval $ac_try) 2>&5
32194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
32197 ac_cv_lib_nsl_inet_addr=yes
32198else
32199 echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202ac_cv_lib_nsl_inet_addr=no
32203fi
ac1cb8d3
VS
32204rm -f conftest.err conftest.$ac_objext \
32205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32206LIBS=$ac_check_lib_save_LIBS
32207fi
32208echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32209echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32210if test $ac_cv_lib_nsl_inet_addr = yes; then
32211 INET_LINK="nsl"
32212else
32213
32214 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32215echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32216if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32218else
32219 ac_check_lib_save_LIBS=$LIBS
32220LIBS="-lresolv $LIBS"
32221cat >conftest.$ac_ext <<_ACEOF
32222/* confdefs.h. */
32223_ACEOF
32224cat confdefs.h >>conftest.$ac_ext
32225cat >>conftest.$ac_ext <<_ACEOF
32226/* end confdefs.h. */
32227
32228/* Override any gcc2 internal prototype to avoid an error. */
32229#ifdef __cplusplus
32230extern "C"
32231#endif
32232/* We use char because int might match the return type of a gcc2
32233 builtin and then its argument prototype would still apply. */
32234char inet_addr ();
32235int
32236main ()
32237{
32238inet_addr ();
32239 ;
32240 return 0;
32241}
32242_ACEOF
32243rm -f conftest.$ac_objext conftest$ac_exeext
32244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32245 (eval $ac_link) 2>conftest.er1
a848cd7e 32246 ac_status=$?
ac1cb8d3
VS
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
a848cd7e
SC
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } &&
ac1cb8d3
VS
32252 { ac_try='test -z "$ac_c_werror_flag"
32253 || test ! -s conftest.err'
32254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255 (eval $ac_try) 2>&5
32256 ac_status=$?
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; } &&
32259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32261 (eval $ac_try) 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 ac_cv_lib_resolv_inet_addr=yes
32266else
32267 echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
32270ac_cv_lib_resolv_inet_addr=no
32271fi
ac1cb8d3
VS
32272rm -f conftest.err conftest.$ac_objext \
32273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32274LIBS=$ac_check_lib_save_LIBS
32275fi
32276echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32277echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32278if test $ac_cv_lib_resolv_inet_addr = yes; then
32279 INET_LINK="resolv"
32280else
32281
32282 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32283echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32284if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32285 echo $ECHO_N "(cached) $ECHO_C" >&6
32286else
32287 ac_check_lib_save_LIBS=$LIBS
32288LIBS="-lsocket $LIBS"
32289cat >conftest.$ac_ext <<_ACEOF
32290/* confdefs.h. */
32291_ACEOF
32292cat confdefs.h >>conftest.$ac_ext
32293cat >>conftest.$ac_ext <<_ACEOF
32294/* end confdefs.h. */
32295
32296/* Override any gcc2 internal prototype to avoid an error. */
32297#ifdef __cplusplus
32298extern "C"
32299#endif
32300/* We use char because int might match the return type of a gcc2
32301 builtin and then its argument prototype would still apply. */
32302char inet_addr ();
32303int
32304main ()
32305{
32306inet_addr ();
32307 ;
32308 return 0;
32309}
32310_ACEOF
32311rm -f conftest.$ac_objext conftest$ac_exeext
32312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32313 (eval $ac_link) 2>conftest.er1
a848cd7e 32314 ac_status=$?
ac1cb8d3
VS
32315 grep -v '^ *+' conftest.er1 >conftest.err
32316 rm -f conftest.er1
32317 cat conftest.err >&5
a848cd7e
SC
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); } &&
ac1cb8d3
VS
32320 { ac_try='test -z "$ac_c_werror_flag"
32321 || test ! -s conftest.err'
32322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32323 (eval $ac_try) 2>&5
32324 ac_status=$?
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; } &&
32327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329 (eval $ac_try) 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; }; then
32333 ac_cv_lib_socket_inet_addr=yes
32334else
32335 echo "$as_me: failed program was:" >&5
32336sed 's/^/| /' conftest.$ac_ext >&5
32337
32338ac_cv_lib_socket_inet_addr=no
32339fi
ac1cb8d3
VS
32340rm -f conftest.err conftest.$ac_objext \
32341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32342LIBS=$ac_check_lib_save_LIBS
32343fi
32344echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32345echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32346if test $ac_cv_lib_socket_inet_addr = yes; then
32347 INET_LINK="socket"
32348
32349fi
32350
32351
32352
32353fi
32354
32355
32356
32357fi
32358
32359
32360
32361fi
32362done
32363
32364
32365
32366for ac_func in inet_aton
32367do
32368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32369echo "$as_me:$LINENO: checking for $ac_func" >&5
32370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32371if eval "test \"\${$as_ac_var+set}\" = set"; then
32372 echo $ECHO_N "(cached) $ECHO_C" >&6
32373else
32374 cat >conftest.$ac_ext <<_ACEOF
32375/* confdefs.h. */
32376_ACEOF
32377cat confdefs.h >>conftest.$ac_ext
32378cat >>conftest.$ac_ext <<_ACEOF
32379/* end confdefs.h. */
ac1cb8d3
VS
32380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32382#define $ac_func innocuous_$ac_func
32383
a848cd7e
SC
32384/* System header to define __stub macros and hopefully few prototypes,
32385 which can conflict with char $ac_func (); below.
32386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32387 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32388
a848cd7e
SC
32389#ifdef __STDC__
32390# include <limits.h>
32391#else
32392# include <assert.h>
32393#endif
ac1cb8d3
VS
32394
32395#undef $ac_func
32396
a848cd7e
SC
32397/* Override any gcc2 internal prototype to avoid an error. */
32398#ifdef __cplusplus
32399extern "C"
32400{
32401#endif
32402/* We use char because int might match the return type of a gcc2
32403 builtin and then its argument prototype would still apply. */
32404char $ac_func ();
32405/* The GNU C library defines this for functions which it implements
32406 to always fail with ENOSYS. Some functions are actually named
32407 something starting with __ and the normal name is an alias. */
32408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32409choke me
32410#else
32411char (*f) () = $ac_func;
32412#endif
32413#ifdef __cplusplus
32414}
32415#endif
32416
32417int
32418main ()
32419{
32420return f != $ac_func;
32421 ;
32422 return 0;
32423}
32424_ACEOF
32425rm -f conftest.$ac_objext conftest$ac_exeext
32426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32427 (eval $ac_link) 2>conftest.er1
a848cd7e 32428 ac_status=$?
ac1cb8d3
VS
32429 grep -v '^ *+' conftest.er1 >conftest.err
32430 rm -f conftest.er1
32431 cat conftest.err >&5
a848cd7e
SC
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); } &&
ac1cb8d3
VS
32434 { ac_try='test -z "$ac_c_werror_flag"
32435 || test ! -s conftest.err'
32436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437 (eval $ac_try) 2>&5
32438 ac_status=$?
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; } &&
32441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443 (eval $ac_try) 2>&5
32444 ac_status=$?
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 eval "$as_ac_var=yes"
32448else
32449 echo "$as_me: failed program was:" >&5
32450sed 's/^/| /' conftest.$ac_ext >&5
32451
32452eval "$as_ac_var=no"
32453fi
ac1cb8d3
VS
32454rm -f conftest.err conftest.$ac_objext \
32455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32456fi
32457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32459if test `eval echo '${'$as_ac_var'}'` = yes; then
32460 cat >>confdefs.h <<_ACEOF
32461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32462_ACEOF
32463 cat >>confdefs.h <<\_ACEOF
32464#define HAVE_INET_ATON 1
32465_ACEOF
32466
32467else
32468
32469 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32470echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32471echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32472if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32473 echo $ECHO_N "(cached) $ECHO_C" >&6
32474else
32475 ac_check_lib_save_LIBS=$LIBS
32476LIBS="-l$INET_LINK $LIBS"
32477cat >conftest.$ac_ext <<_ACEOF
32478/* confdefs.h. */
32479_ACEOF
32480cat confdefs.h >>conftest.$ac_ext
32481cat >>conftest.$ac_ext <<_ACEOF
32482/* end confdefs.h. */
32483
32484/* Override any gcc2 internal prototype to avoid an error. */
32485#ifdef __cplusplus
32486extern "C"
32487#endif
32488/* We use char because int might match the return type of a gcc2
32489 builtin and then its argument prototype would still apply. */
32490char inet_aton ();
32491int
32492main ()
32493{
32494inet_aton ();
32495 ;
32496 return 0;
32497}
32498_ACEOF
32499rm -f conftest.$ac_objext conftest$ac_exeext
32500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32501 (eval $ac_link) 2>conftest.er1
a848cd7e 32502 ac_status=$?
ac1cb8d3
VS
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
a848cd7e
SC
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
ac1cb8d3
VS
32508 { ac_try='test -z "$ac_c_werror_flag"
32509 || test ! -s conftest.err'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; } &&
32515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 (eval $ac_try) 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 eval "$as_ac_Lib=yes"
32522else
32523 echo "$as_me: failed program was:" >&5
32524sed 's/^/| /' conftest.$ac_ext >&5
32525
32526eval "$as_ac_Lib=no"
32527fi
ac1cb8d3
VS
32528rm -f conftest.err conftest.$ac_objext \
32529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32530LIBS=$ac_check_lib_save_LIBS
32531fi
32532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32533echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32534if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32535 cat >>confdefs.h <<\_ACEOF
32536#define HAVE_INET_ATON 1
32537_ACEOF
32538
32539fi
32540
32541
32542fi
32543done
32544
32545
32546if test "x$INET_LINK" != "x"; then
32547 cat >>confdefs.h <<\_ACEOF
32548#define HAVE_INET_ADDR 1
32549_ACEOF
32550
32551 INET_LINK=" -l$INET_LINK"
32552fi
32553
32554fi
32555
32556
32557
32558EXTRALIBS_ESD=
32559echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32560echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32561if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32563else
32564 ac_check_lib_save_LIBS=$LIBS
32565LIBS="-lesd $LIBS"
32566cat >conftest.$ac_ext <<_ACEOF
32567/* confdefs.h. */
32568_ACEOF
32569cat confdefs.h >>conftest.$ac_ext
32570cat >>conftest.$ac_ext <<_ACEOF
32571/* end confdefs.h. */
32572
32573/* Override any gcc2 internal prototype to avoid an error. */
32574#ifdef __cplusplus
32575extern "C"
32576#endif
32577/* We use char because int might match the return type of a gcc2
32578 builtin and then its argument prototype would still apply. */
32579char esd_close ();
32580int
32581main ()
32582{
32583esd_close ();
32584 ;
32585 return 0;
32586}
32587_ACEOF
32588rm -f conftest.$ac_objext conftest$ac_exeext
32589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32590 (eval $ac_link) 2>conftest.er1
a848cd7e 32591 ac_status=$?
ac1cb8d3
VS
32592 grep -v '^ *+' conftest.er1 >conftest.err
32593 rm -f conftest.er1
32594 cat conftest.err >&5
a848cd7e
SC
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); } &&
ac1cb8d3
VS
32597 { ac_try='test -z "$ac_c_werror_flag"
32598 || test ! -s conftest.err'
32599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 (eval $ac_try) 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; }; then
32610 ac_cv_lib_esd_esd_close=yes
32611else
32612 echo "$as_me: failed program was:" >&5
32613sed 's/^/| /' conftest.$ac_ext >&5
32614
32615ac_cv_lib_esd_esd_close=no
32616fi
ac1cb8d3
VS
32617rm -f conftest.err conftest.$ac_objext \
32618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32619LIBS=$ac_check_lib_save_LIBS
32620fi
32621echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32622echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32623if test $ac_cv_lib_esd_esd_close = yes; then
32624
32625
32626for ac_header in esd.h
32627do
32628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32629if eval "test \"\${$as_ac_Header+set}\" = set"; then
32630 echo "$as_me:$LINENO: checking for $ac_header" >&5
32631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32632if eval "test \"\${$as_ac_Header+set}\" = set"; then
32633 echo $ECHO_N "(cached) $ECHO_C" >&6
32634fi
32635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32637else
32638 # Is the header compilable?
32639echo "$as_me:$LINENO: checking $ac_header usability" >&5
32640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32641cat >conftest.$ac_ext <<_ACEOF
32642/* confdefs.h. */
32643_ACEOF
32644cat confdefs.h >>conftest.$ac_ext
32645cat >>conftest.$ac_ext <<_ACEOF
32646/* end confdefs.h. */
32647$ac_includes_default
32648#include <$ac_header>
32649_ACEOF
32650rm -f conftest.$ac_objext
32651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32652 (eval $ac_compile) 2>conftest.er1
a848cd7e 32653 ac_status=$?
ac1cb8d3
VS
32654 grep -v '^ *+' conftest.er1 >conftest.err
32655 rm -f conftest.er1
32656 cat conftest.err >&5
a848cd7e
SC
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } &&
ac1cb8d3
VS
32659 { ac_try='test -z "$ac_c_werror_flag"
32660 || test ! -s conftest.err'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; } &&
32666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32669 ac_status=$?
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; }; then
32672 ac_header_compiler=yes
32673else
32674 echo "$as_me: failed program was:" >&5
32675sed 's/^/| /' conftest.$ac_ext >&5
32676
32677ac_header_compiler=no
32678fi
ac1cb8d3 32679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32681echo "${ECHO_T}$ac_header_compiler" >&6
32682
32683# Is the header present?
32684echo "$as_me:$LINENO: checking $ac_header presence" >&5
32685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32686cat >conftest.$ac_ext <<_ACEOF
32687/* confdefs.h. */
32688_ACEOF
32689cat confdefs.h >>conftest.$ac_ext
32690cat >>conftest.$ac_ext <<_ACEOF
32691/* end confdefs.h. */
32692#include <$ac_header>
32693_ACEOF
32694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32696 ac_status=$?
32697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } >/dev/null; then
32702 if test -s conftest.err; then
32703 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32705 else
32706 ac_cpp_err=
32707 fi
32708else
32709 ac_cpp_err=yes
32710fi
32711if test -z "$ac_cpp_err"; then
32712 ac_header_preproc=yes
32713else
32714 echo "$as_me: failed program was:" >&5
32715sed 's/^/| /' conftest.$ac_ext >&5
32716
32717 ac_header_preproc=no
32718fi
32719rm -f conftest.err conftest.$ac_ext
32720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32721echo "${ECHO_T}$ac_header_preproc" >&6
32722
32723# So? What about this header?
ac1cb8d3
VS
32724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32725 yes:no: )
a848cd7e
SC
32726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32730 ac_header_preproc=yes
a848cd7e 32731 ;;
ac1cb8d3 32732 no:yes:* )
a848cd7e
SC
32733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32745 (
32746 cat <<\_ASBOX
ac1cb8d3
VS
32747## ----------------------------------------- ##
32748## Report this to wx-dev@lists.wxwidgets.org ##
32749## ----------------------------------------- ##
a848cd7e
SC
32750_ASBOX
32751 ) |
32752 sed "s/^/$as_me: WARNING: /" >&2
32753 ;;
32754esac
32755echo "$as_me:$LINENO: checking for $ac_header" >&5
32756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32757if eval "test \"\${$as_ac_Header+set}\" = set"; then
32758 echo $ECHO_N "(cached) $ECHO_C" >&6
32759else
ac1cb8d3 32760 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32761fi
32762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32764
32765fi
32766if test `eval echo '${'$as_ac_Header'}'` = yes; then
32767 cat >>confdefs.h <<_ACEOF
32768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32769_ACEOF
32770
32771 EXTRALIBS_ESD="-lesd"
32772
32773fi
32774
32775done
32776
32777
32778fi
32779
32780
32781
32782echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32783echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32784cat >conftest.$ac_ext <<_ACEOF
32785/* confdefs.h. */
32786_ACEOF
32787cat confdefs.h >>conftest.$ac_ext
32788cat >>conftest.$ac_ext <<_ACEOF
32789/* end confdefs.h. */
32790#ifdef __linux__
32791 #include <linux/cdrom.h>
32792 #else
32793 /* For Solaris */
32794 #include <sys/cdio.h>
32795 #endif
32796
32797int
32798main ()
32799{
32800struct cdrom_tocentry entry, old_entry;
32801 ;
32802 return 0;
32803}
32804_ACEOF
32805rm -f conftest.$ac_objext
32806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32807 (eval $ac_compile) 2>conftest.er1
a848cd7e 32808 ac_status=$?
ac1cb8d3
VS
32809 grep -v '^ *+' conftest.er1 >conftest.err
32810 rm -f conftest.er1
32811 cat conftest.err >&5
a848cd7e
SC
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); } &&
ac1cb8d3
VS
32814 { ac_try='test -z "$ac_c_werror_flag"
32815 || test ! -s conftest.err'
32816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32817 (eval $ac_try) 2>&5
32818 ac_status=$?
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; } &&
32821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823 (eval $ac_try) 2>&5
32824 ac_status=$?
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); }; }; then
32827 echo "$as_me:$LINENO: result: yes" >&5
32828echo "${ECHO_T}yes" >&6
32829 cat >>confdefs.h <<\_ACEOF
32830#define HAVE_KNOWN_CDROM_INTERFACE 1
32831_ACEOF
32832
32833else
32834 echo "$as_me: failed program was:" >&5
32835sed 's/^/| /' conftest.$ac_ext >&5
32836
32837echo "$as_me:$LINENO: result: no" >&5
32838echo "${ECHO_T}no" >&6
32839fi
ac1cb8d3 32840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32841
32842
32843cat >confcache <<\_ACEOF
32844# This file is a shell script that caches the results of configure
32845# tests run on this system so they can be shared between configure
32846# scripts and configure runs, see configure's option --config-cache.
32847# It is not useful on other systems. If it contains results you don't
32848# want to keep, you may remove or edit it.
32849#
32850# config.status only pays attention to the cache file if you give it
32851# the --recheck option to rerun configure.
32852#
32853# `ac_cv_env_foo' variables (set or unset) will be overridden when
32854# loading this file, other *unset* `ac_cv_foo' will be assigned the
32855# following values.
32856
32857_ACEOF
32858
32859# The following way of writing the cache mishandles newlines in values,
32860# but we know of no workaround that is simple, portable, and efficient.
32861# So, don't put newlines in cache variables' values.
32862# Ultrix sh set writes to stderr and can't be redirected directly,
32863# and sets the high bit in the cache file unless we assign to the vars.
32864{
32865 (set) 2>&1 |
32866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32867 *ac_space=\ *)
32868 # `set' does not quote correctly, so add quotes (double-quote
32869 # substitution turns \\\\ into \\, and sed turns \\ into \).
32870 sed -n \
ac1cb8d3
VS
32871 "s/'/'\\\\''/g;
32872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32873 ;;
32874 *)
32875 # `set' quotes correctly as required by POSIX, so do not add quotes.
32876 sed -n \
ac1cb8d3 32877 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32878 ;;
32879 esac;
32880} |
32881 sed '
32882 t clear
32883 : clear
32884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32885 t end
32886 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32887 : end' >>confcache
32888if diff $cache_file confcache >/dev/null 2>&1; then :; else
32889 if test -w $cache_file; then
32890 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32891 cat confcache >$cache_file
32892 else
32893 echo "not updating unwritable cache $cache_file"
32894 fi
32895fi
32896rm -f confcache
32897
32898
32899CPP_MT_FLAG=
32900if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32901
32902
32903 THREADS_LINK=
32904 THREADS_CFLAGS=
32905
32906 if test "$wxUSE_THREADS" = "yes" ; then
32907 if test "$USE_BEOS" = 1; then
32908 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32909echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32910 wxUSE_THREADS="no"
32911 fi
32912 fi
32913
32914 if test "$wxUSE_THREADS" = "yes" ; then
32915
32916
32917 THREAD_OPTS="-pthread"
32918 case "${host}" in
32919 *-*-solaris2* | *-*-sunos4* )
32920 if test "x$GCC" = "xyes"; then
32921 THREAD_OPTS="-pthreads $THREAD_OPTS"
32922 else
32923 THREAD_OPTS="-mt $THREAD_OPTS"
32924 fi
32925 ;;
32926 *-*-freebsd*)
32927 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32928 ;;
32929 *-*-darwin* | *-*-cygwin* )
32930 THREAD_OPTS=""
32931 ;;
32932 *-*-aix*)
32933 THREAD_OPTS="pthreads"
32934 ;;
32935 *-hp-hpux* )
32936 if test "x$GCC" != "xyes"; then
32937 THREAD_OPTS=""
32938 fi
32939 ;;
32940
32941 *-*-irix* )
32942 if test "x$GCC" = "xyes"; then
32943 THREAD_OPTS=""
32944 fi
32945 ;;
32946
32947 *-*-*UnixWare*)
32948 if test "x$GCC" != "xyes"; then
32949 THREAD_OPTS="-Ethread"
32950 fi
32951 ;;
32952 esac
32953
32954 THREAD_OPTS="$THREAD_OPTS pthread none"
32955
32956 THREADS_OK=no
32957 for flag in $THREAD_OPTS; do
32958 case $flag in
32959 none)
32960 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32961echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32962 ;;
32963
32964 -*)
32965 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32966echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32967 THREADS_CFLAGS="$flag"
32968 ;;
32969
32970 *)
32971 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32972echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32973 THREADS_LINK="-l$flag"
32974 ;;
32975 esac
32976
32977 save_LIBS="$LIBS"
32978 save_CFLAGS="$CFLAGS"
32979 LIBS="$THREADS_LINK $LIBS"
32980 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32981
32982 cat >conftest.$ac_ext <<_ACEOF
32983/* confdefs.h. */
32984_ACEOF
32985cat confdefs.h >>conftest.$ac_ext
32986cat >>conftest.$ac_ext <<_ACEOF
32987/* end confdefs.h. */
32988#include <pthread.h>
32989int
32990main ()
32991{
32992pthread_create(0,0,0,0);
32993 ;
32994 return 0;
32995}
32996_ACEOF
32997rm -f conftest.$ac_objext conftest$ac_exeext
32998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32999 (eval $ac_link) 2>conftest.er1
a848cd7e 33000 ac_status=$?
ac1cb8d3
VS
33001 grep -v '^ *+' conftest.er1 >conftest.err
33002 rm -f conftest.er1
33003 cat conftest.err >&5
a848cd7e
SC
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); } &&
ac1cb8d3
VS
33006 { ac_try='test -z "$ac_c_werror_flag"
33007 || test ! -s conftest.err'
33008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33009 (eval $ac_try) 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; } &&
33013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33015 (eval $ac_try) 2>&5
33016 ac_status=$?
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); }; }; then
33019 THREADS_OK=yes
33020else
33021 echo "$as_me: failed program was:" >&5
33022sed 's/^/| /' conftest.$ac_ext >&5
33023
33024fi
ac1cb8d3
VS
33025rm -f conftest.err conftest.$ac_objext \
33026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33027
33028 LIBS="$save_LIBS"
33029 CFLAGS="$save_CFLAGS"
33030
33031 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33032echo "${ECHO_T}$THREADS_OK" >&6
33033 if test "x$THREADS_OK" = "xyes"; then
33034 break;
33035 fi
33036
33037 THREADS_LINK=""
33038 THREADS_CFLAGS=""
33039 done
33040
33041 if test "x$THREADS_OK" != "xyes"; then
33042 wxUSE_THREADS=no
33043 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33044echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33045 else
33046 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33047 LIBS="$THREADS_LINK $LIBS"
33048
33049 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33050echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33051 flag=no
33052 case "${host}" in
33053 *-aix*)
33054 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33055 flag="-D_THREAD_SAFE"
33056 ;;
33057 *-freebsd*)
33058 flag="-D_THREAD_SAFE"
33059 ;;
33060 *-hp-hpux* )
33061 flag="-D_REENTRANT"
33062 if test "x$GCC" != "xyes"; then
33063 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
33064
33065 LIBS="$LIBS -lcma"
a848cd7e
SC
33066 fi
33067 ;;
33068 *solaris* | alpha*-osf*)
33069 flag="-D_REENTRANT"
33070 ;;
33071 esac
33072 echo "$as_me:$LINENO: result: ${flag}" >&5
33073echo "${ECHO_T}${flag}" >&6
33074 if test "x$flag" != xno; then
33075 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33076 fi
33077
33078 if test "x$THREADS_CFLAGS" != "x"; then
33079 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33080 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33081 fi
33082 fi
33083 fi
33084
33085 if test "$wxUSE_THREADS" = "yes" ; then
33086
33087for ac_func in thr_setconcurrency
33088do
33089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33090echo "$as_me:$LINENO: checking for $ac_func" >&5
33091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33092if eval "test \"\${$as_ac_var+set}\" = set"; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33094else
33095 cat >conftest.$ac_ext <<_ACEOF
33096/* confdefs.h. */
33097_ACEOF
33098cat confdefs.h >>conftest.$ac_ext
33099cat >>conftest.$ac_ext <<_ACEOF
33100/* end confdefs.h. */
ac1cb8d3
VS
33101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33103#define $ac_func innocuous_$ac_func
33104
a848cd7e
SC
33105/* System header to define __stub macros and hopefully few prototypes,
33106 which can conflict with char $ac_func (); below.
33107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33108 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33109
a848cd7e
SC
33110#ifdef __STDC__
33111# include <limits.h>
33112#else
33113# include <assert.h>
33114#endif
ac1cb8d3
VS
33115
33116#undef $ac_func
33117
a848cd7e
SC
33118/* Override any gcc2 internal prototype to avoid an error. */
33119#ifdef __cplusplus
33120extern "C"
33121{
33122#endif
33123/* We use char because int might match the return type of a gcc2
33124 builtin and then its argument prototype would still apply. */
33125char $ac_func ();
33126/* The GNU C library defines this for functions which it implements
33127 to always fail with ENOSYS. Some functions are actually named
33128 something starting with __ and the normal name is an alias. */
33129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33130choke me
33131#else
33132char (*f) () = $ac_func;
33133#endif
33134#ifdef __cplusplus
33135}
33136#endif
33137
33138int
33139main ()
33140{
33141return f != $ac_func;
33142 ;
33143 return 0;
33144}
33145_ACEOF
33146rm -f conftest.$ac_objext conftest$ac_exeext
33147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33148 (eval $ac_link) 2>conftest.er1
a848cd7e 33149 ac_status=$?
ac1cb8d3
VS
33150 grep -v '^ *+' conftest.er1 >conftest.err
33151 rm -f conftest.er1
33152 cat conftest.err >&5
a848cd7e
SC
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); } &&
ac1cb8d3
VS
33155 { ac_try='test -z "$ac_c_werror_flag"
33156 || test ! -s conftest.err'
33157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158 (eval $ac_try) 2>&5
33159 ac_status=$?
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; } &&
33162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164 (eval $ac_try) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); }; }; then
33168 eval "$as_ac_var=yes"
33169else
33170 echo "$as_me: failed program was:" >&5
33171sed 's/^/| /' conftest.$ac_ext >&5
33172
33173eval "$as_ac_var=no"
33174fi
ac1cb8d3
VS
33175rm -f conftest.err conftest.$ac_objext \
33176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33177fi
33178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33180if test `eval echo '${'$as_ac_var'}'` = yes; then
33181 cat >>confdefs.h <<_ACEOF
33182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33183_ACEOF
33184
33185fi
33186done
33187
33188
33189
33190for ac_header in sched.h
33191do
33192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33193if eval "test \"\${$as_ac_Header+set}\" = set"; then
33194 echo "$as_me:$LINENO: checking for $ac_header" >&5
33195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33196if eval "test \"\${$as_ac_Header+set}\" = set"; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33198fi
33199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33201else
33202 # Is the header compilable?
33203echo "$as_me:$LINENO: checking $ac_header usability" >&5
33204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33205cat >conftest.$ac_ext <<_ACEOF
33206/* confdefs.h. */
33207_ACEOF
33208cat confdefs.h >>conftest.$ac_ext
33209cat >>conftest.$ac_ext <<_ACEOF
33210/* end confdefs.h. */
33211$ac_includes_default
33212#include <$ac_header>
33213_ACEOF
33214rm -f conftest.$ac_objext
33215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33216 (eval $ac_compile) 2>conftest.er1
a848cd7e 33217 ac_status=$?
ac1cb8d3
VS
33218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
a848cd7e
SC
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
ac1cb8d3
VS
33223 { ac_try='test -z "$ac_c_werror_flag"
33224 || test ! -s conftest.err'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; } &&
33230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232 (eval $ac_try) 2>&5
33233 ac_status=$?
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; }; then
33236 ac_header_compiler=yes
33237else
33238 echo "$as_me: failed program was:" >&5
33239sed 's/^/| /' conftest.$ac_ext >&5
33240
33241ac_header_compiler=no
33242fi
ac1cb8d3 33243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33245echo "${ECHO_T}$ac_header_compiler" >&6
33246
33247# Is the header present?
33248echo "$as_me:$LINENO: checking $ac_header presence" >&5
33249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33250cat >conftest.$ac_ext <<_ACEOF
33251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
33256#include <$ac_header>
33257_ACEOF
33258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33260 ac_status=$?
33261 grep -v '^ *+' conftest.er1 >conftest.err
33262 rm -f conftest.er1
33263 cat conftest.err >&5
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); } >/dev/null; then
33266 if test -s conftest.err; then
33267 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33269 else
33270 ac_cpp_err=
33271 fi
33272else
33273 ac_cpp_err=yes
33274fi
33275if test -z "$ac_cpp_err"; then
33276 ac_header_preproc=yes
33277else
33278 echo "$as_me: failed program was:" >&5
33279sed 's/^/| /' conftest.$ac_ext >&5
33280
33281 ac_header_preproc=no
33282fi
33283rm -f conftest.err conftest.$ac_ext
33284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33285echo "${ECHO_T}$ac_header_preproc" >&6
33286
33287# So? What about this header?
ac1cb8d3
VS
33288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33289 yes:no: )
a848cd7e
SC
33290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33294 ac_header_preproc=yes
a848cd7e 33295 ;;
ac1cb8d3 33296 no:yes:* )
a848cd7e
SC
33297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33309 (
33310 cat <<\_ASBOX
ac1cb8d3
VS
33311## ----------------------------------------- ##
33312## Report this to wx-dev@lists.wxwidgets.org ##
33313## ----------------------------------------- ##
a848cd7e
SC
33314_ASBOX
33315 ) |
33316 sed "s/^/$as_me: WARNING: /" >&2
33317 ;;
33318esac
33319echo "$as_me:$LINENO: checking for $ac_header" >&5
33320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33321if eval "test \"\${$as_ac_Header+set}\" = set"; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33323else
ac1cb8d3 33324 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33325fi
33326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33328
33329fi
33330if test `eval echo '${'$as_ac_Header'}'` = yes; then
33331 cat >>confdefs.h <<_ACEOF
33332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33333_ACEOF
33334
33335fi
33336
33337done
33338
33339 if test "$ac_cv_header_sched_h" = "yes"; then
33340 echo "$as_me:$LINENO: checking for sched_yield" >&5
33341echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33342if test "${ac_cv_func_sched_yield+set}" = set; then
33343 echo $ECHO_N "(cached) $ECHO_C" >&6
33344else
33345 cat >conftest.$ac_ext <<_ACEOF
33346/* confdefs.h. */
33347_ACEOF
33348cat confdefs.h >>conftest.$ac_ext
33349cat >>conftest.$ac_ext <<_ACEOF
33350/* end confdefs.h. */
ac1cb8d3
VS
33351/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33353#define sched_yield innocuous_sched_yield
33354
a848cd7e
SC
33355/* System header to define __stub macros and hopefully few prototypes,
33356 which can conflict with char sched_yield (); below.
33357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33358 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33359
a848cd7e
SC
33360#ifdef __STDC__
33361# include <limits.h>
33362#else
33363# include <assert.h>
33364#endif
ac1cb8d3
VS
33365
33366#undef sched_yield
33367
a848cd7e
SC
33368/* Override any gcc2 internal prototype to avoid an error. */
33369#ifdef __cplusplus
33370extern "C"
33371{
33372#endif
33373/* We use char because int might match the return type of a gcc2
33374 builtin and then its argument prototype would still apply. */
33375char sched_yield ();
33376/* The GNU C library defines this for functions which it implements
33377 to always fail with ENOSYS. Some functions are actually named
33378 something starting with __ and the normal name is an alias. */
33379#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33380choke me
33381#else
33382char (*f) () = sched_yield;
33383#endif
33384#ifdef __cplusplus
33385}
33386#endif
33387
33388int
33389main ()
33390{
33391return f != sched_yield;
33392 ;
33393 return 0;
33394}
33395_ACEOF
33396rm -f conftest.$ac_objext conftest$ac_exeext
33397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33398 (eval $ac_link) 2>conftest.er1
a848cd7e 33399 ac_status=$?
ac1cb8d3
VS
33400 grep -v '^ *+' conftest.er1 >conftest.err
33401 rm -f conftest.er1
33402 cat conftest.err >&5
a848cd7e
SC
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); } &&
ac1cb8d3
VS
33405 { ac_try='test -z "$ac_c_werror_flag"
33406 || test ! -s conftest.err'
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33409 ac_status=$?
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; } &&
33412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33414 (eval $ac_try) 2>&5
33415 ac_status=$?
33416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); }; }; then
33418 ac_cv_func_sched_yield=yes
33419else
33420 echo "$as_me: failed program was:" >&5
33421sed 's/^/| /' conftest.$ac_ext >&5
33422
33423ac_cv_func_sched_yield=no
33424fi
ac1cb8d3
VS
33425rm -f conftest.err conftest.$ac_objext \
33426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33427fi
33428echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33429echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33430if test $ac_cv_func_sched_yield = yes; then
33431 cat >>confdefs.h <<\_ACEOF
33432#define HAVE_SCHED_YIELD 1
33433_ACEOF
33434
33435else
33436
33437 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33438echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33439if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33440 echo $ECHO_N "(cached) $ECHO_C" >&6
33441else
33442 ac_check_lib_save_LIBS=$LIBS
33443LIBS="-lposix4 $LIBS"
33444cat >conftest.$ac_ext <<_ACEOF
33445/* confdefs.h. */
33446_ACEOF
33447cat confdefs.h >>conftest.$ac_ext
33448cat >>conftest.$ac_ext <<_ACEOF
33449/* end confdefs.h. */
33450
33451/* Override any gcc2 internal prototype to avoid an error. */
33452#ifdef __cplusplus
33453extern "C"
33454#endif
33455/* We use char because int might match the return type of a gcc2
33456 builtin and then its argument prototype would still apply. */
33457char sched_yield ();
33458int
33459main ()
33460{
33461sched_yield ();
33462 ;
33463 return 0;
33464}
33465_ACEOF
33466rm -f conftest.$ac_objext conftest$ac_exeext
33467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33468 (eval $ac_link) 2>conftest.er1
a848cd7e 33469 ac_status=$?
ac1cb8d3
VS
33470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
a848cd7e
SC
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
ac1cb8d3
VS
33475 { ac_try='test -z "$ac_c_werror_flag"
33476 || test ! -s conftest.err'
33477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478 (eval $ac_try) 2>&5
33479 ac_status=$?
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); }; } &&
33482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484 (eval $ac_try) 2>&5
33485 ac_status=$?
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; }; then
33488 ac_cv_lib_posix4_sched_yield=yes
33489else
33490 echo "$as_me: failed program was:" >&5
33491sed 's/^/| /' conftest.$ac_ext >&5
33492
33493ac_cv_lib_posix4_sched_yield=no
33494fi
ac1cb8d3
VS
33495rm -f conftest.err conftest.$ac_objext \
33496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33497LIBS=$ac_check_lib_save_LIBS
33498fi
33499echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33500echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33501if test $ac_cv_lib_posix4_sched_yield = yes; then
33502 cat >>confdefs.h <<\_ACEOF
33503#define HAVE_SCHED_YIELD 1
33504_ACEOF
33505 POSIX4_LINK=" -lposix4"
33506else
33507 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33508echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33509
33510fi
33511
33512
33513
33514fi
33515
33516 fi
33517
33518 HAVE_PRIOR_FUNCS=0
33519 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33520echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33521if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33522 echo $ECHO_N "(cached) $ECHO_C" >&6
33523else
33524 cat >conftest.$ac_ext <<_ACEOF
33525/* confdefs.h. */
33526_ACEOF
33527cat confdefs.h >>conftest.$ac_ext
33528cat >>conftest.$ac_ext <<_ACEOF
33529/* end confdefs.h. */
ac1cb8d3
VS
33530/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33532#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33533
a848cd7e
SC
33534/* System header to define __stub macros and hopefully few prototypes,
33535 which can conflict with char pthread_attr_getschedpolicy (); below.
33536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33537 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33538
a848cd7e
SC
33539#ifdef __STDC__
33540# include <limits.h>
33541#else
33542# include <assert.h>
33543#endif
ac1cb8d3
VS
33544
33545#undef pthread_attr_getschedpolicy
33546
a848cd7e
SC
33547/* Override any gcc2 internal prototype to avoid an error. */
33548#ifdef __cplusplus
33549extern "C"
33550{
33551#endif
33552/* We use char because int might match the return type of a gcc2
33553 builtin and then its argument prototype would still apply. */
33554char pthread_attr_getschedpolicy ();
33555/* The GNU C library defines this for functions which it implements
33556 to always fail with ENOSYS. Some functions are actually named
33557 something starting with __ and the normal name is an alias. */
33558#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33559choke me
33560#else
33561char (*f) () = pthread_attr_getschedpolicy;
33562#endif
33563#ifdef __cplusplus
33564}
33565#endif
33566
33567int
33568main ()
33569{
33570return f != pthread_attr_getschedpolicy;
33571 ;
33572 return 0;
33573}
33574_ACEOF
33575rm -f conftest.$ac_objext conftest$ac_exeext
33576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33577 (eval $ac_link) 2>conftest.er1
a848cd7e 33578 ac_status=$?
ac1cb8d3
VS
33579 grep -v '^ *+' conftest.er1 >conftest.err
33580 rm -f conftest.er1
33581 cat conftest.err >&5
a848cd7e
SC
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); } &&
ac1cb8d3
VS
33584 { ac_try='test -z "$ac_c_werror_flag"
33585 || test ! -s conftest.err'
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; } &&
33591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593 (eval $ac_try) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; }; then
33597 ac_cv_func_pthread_attr_getschedpolicy=yes
33598else
33599 echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602ac_cv_func_pthread_attr_getschedpolicy=no
33603fi
ac1cb8d3
VS
33604rm -f conftest.err conftest.$ac_objext \
33605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33606fi
33607echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33608echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33609if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33610 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33611echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33612if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
33615 cat >conftest.$ac_ext <<_ACEOF
33616/* confdefs.h. */
33617_ACEOF
33618cat confdefs.h >>conftest.$ac_ext
33619cat >>conftest.$ac_ext <<_ACEOF
33620/* end confdefs.h. */
ac1cb8d3
VS
33621/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33623#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33624
a848cd7e
SC
33625/* System header to define __stub macros and hopefully few prototypes,
33626 which can conflict with char pthread_attr_setschedparam (); below.
33627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33628 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33629
a848cd7e
SC
33630#ifdef __STDC__
33631# include <limits.h>
33632#else
33633# include <assert.h>
33634#endif
ac1cb8d3
VS
33635
33636#undef pthread_attr_setschedparam
33637
a848cd7e
SC
33638/* Override any gcc2 internal prototype to avoid an error. */
33639#ifdef __cplusplus
33640extern "C"
33641{
33642#endif
33643/* We use char because int might match the return type of a gcc2
33644 builtin and then its argument prototype would still apply. */
33645char pthread_attr_setschedparam ();
33646/* The GNU C library defines this for functions which it implements
33647 to always fail with ENOSYS. Some functions are actually named
33648 something starting with __ and the normal name is an alias. */
33649#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33650choke me
33651#else
33652char (*f) () = pthread_attr_setschedparam;
33653#endif
33654#ifdef __cplusplus
33655}
33656#endif
33657
33658int
33659main ()
33660{
33661return f != pthread_attr_setschedparam;
33662 ;
33663 return 0;
33664}
33665_ACEOF
33666rm -f conftest.$ac_objext conftest$ac_exeext
33667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33668 (eval $ac_link) 2>conftest.er1
a848cd7e 33669 ac_status=$?
ac1cb8d3
VS
33670 grep -v '^ *+' conftest.er1 >conftest.err
33671 rm -f conftest.er1
33672 cat conftest.err >&5
a848cd7e
SC
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } &&
ac1cb8d3
VS
33675 { ac_try='test -z "$ac_c_werror_flag"
33676 || test ! -s conftest.err'
33677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678 (eval $ac_try) 2>&5
33679 ac_status=$?
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33685 ac_status=$?
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; }; then
33688 ac_cv_func_pthread_attr_setschedparam=yes
33689else
33690 echo "$as_me: failed program was:" >&5
33691sed 's/^/| /' conftest.$ac_ext >&5
33692
33693ac_cv_func_pthread_attr_setschedparam=no
33694fi
ac1cb8d3
VS
33695rm -f conftest.err conftest.$ac_objext \
33696 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33697fi
33698echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33699echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33700if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33701 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33702echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33703if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33704 echo $ECHO_N "(cached) $ECHO_C" >&6
33705else
33706 cat >conftest.$ac_ext <<_ACEOF
33707/* confdefs.h. */
33708_ACEOF
33709cat confdefs.h >>conftest.$ac_ext
33710cat >>conftest.$ac_ext <<_ACEOF
33711/* end confdefs.h. */
ac1cb8d3
VS
33712/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33714#define sched_get_priority_max innocuous_sched_get_priority_max
33715
a848cd7e
SC
33716/* System header to define __stub macros and hopefully few prototypes,
33717 which can conflict with char sched_get_priority_max (); below.
33718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33719 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33720
a848cd7e
SC
33721#ifdef __STDC__
33722# include <limits.h>
33723#else
33724# include <assert.h>
33725#endif
ac1cb8d3
VS
33726
33727#undef sched_get_priority_max
33728
a848cd7e
SC
33729/* Override any gcc2 internal prototype to avoid an error. */
33730#ifdef __cplusplus
33731extern "C"
33732{
33733#endif
33734/* We use char because int might match the return type of a gcc2
33735 builtin and then its argument prototype would still apply. */
33736char sched_get_priority_max ();
33737/* The GNU C library defines this for functions which it implements
33738 to always fail with ENOSYS. Some functions are actually named
33739 something starting with __ and the normal name is an alias. */
33740#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33741choke me
33742#else
33743char (*f) () = sched_get_priority_max;
33744#endif
33745#ifdef __cplusplus
33746}
33747#endif
33748
33749int
33750main ()
33751{
33752return f != sched_get_priority_max;
33753 ;
33754 return 0;
33755}
33756_ACEOF
33757rm -f conftest.$ac_objext conftest$ac_exeext
33758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33759 (eval $ac_link) 2>conftest.er1
a848cd7e 33760 ac_status=$?
ac1cb8d3
VS
33761 grep -v '^ *+' conftest.er1 >conftest.err
33762 rm -f conftest.er1
33763 cat conftest.err >&5
a848cd7e
SC
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); } &&
ac1cb8d3
VS
33766 { ac_try='test -z "$ac_c_werror_flag"
33767 || test ! -s conftest.err'
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); }; } &&
33773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; }; then
33779 ac_cv_func_sched_get_priority_max=yes
33780else
33781 echo "$as_me: failed program was:" >&5
33782sed 's/^/| /' conftest.$ac_ext >&5
33783
33784ac_cv_func_sched_get_priority_max=no
33785fi
ac1cb8d3
VS
33786rm -f conftest.err conftest.$ac_objext \
33787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33788fi
33789echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33790echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33791if test $ac_cv_func_sched_get_priority_max = yes; then
33792 HAVE_PRIOR_FUNCS=1
33793else
33794 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33795echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33796if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33797 echo $ECHO_N "(cached) $ECHO_C" >&6
33798else
33799 ac_check_lib_save_LIBS=$LIBS
33800LIBS="-lposix4 $LIBS"
33801cat >conftest.$ac_ext <<_ACEOF
33802/* confdefs.h. */
33803_ACEOF
33804cat confdefs.h >>conftest.$ac_ext
33805cat >>conftest.$ac_ext <<_ACEOF
33806/* end confdefs.h. */
33807
33808/* Override any gcc2 internal prototype to avoid an error. */
33809#ifdef __cplusplus
33810extern "C"
33811#endif
33812/* We use char because int might match the return type of a gcc2
33813 builtin and then its argument prototype would still apply. */
33814char sched_get_priority_max ();
33815int
33816main ()
33817{
33818sched_get_priority_max ();
33819 ;
33820 return 0;
33821}
33822_ACEOF
33823rm -f conftest.$ac_objext conftest$ac_exeext
33824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33825 (eval $ac_link) 2>conftest.er1
a848cd7e 33826 ac_status=$?
ac1cb8d3
VS
33827 grep -v '^ *+' conftest.er1 >conftest.err
33828 rm -f conftest.er1
33829 cat conftest.err >&5
a848cd7e
SC
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); } &&
ac1cb8d3
VS
33832 { ac_try='test -z "$ac_c_werror_flag"
33833 || test ! -s conftest.err'
33834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33835 (eval $ac_try) 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841 (eval $ac_try) 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; }; then
33845 ac_cv_lib_posix4_sched_get_priority_max=yes
33846else
33847 echo "$as_me: failed program was:" >&5
33848sed 's/^/| /' conftest.$ac_ext >&5
33849
33850ac_cv_lib_posix4_sched_get_priority_max=no
33851fi
ac1cb8d3
VS
33852rm -f conftest.err conftest.$ac_objext \
33853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33854LIBS=$ac_check_lib_save_LIBS
33855fi
33856echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33857echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33858if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33859
33860 HAVE_PRIOR_FUNCS=1
33861 POSIX4_LINK=" -lposix4"
33862
33863fi
33864
33865
33866fi
33867
33868
33869fi
33870
33871
33872fi
33873
33874
33875 if test "$HAVE_PRIOR_FUNCS" = 1; then
33876 cat >>confdefs.h <<\_ACEOF
33877#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33878_ACEOF
33879
33880 else
33881 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33882echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33883 fi
33884
33885 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33886echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33887if test "${ac_cv_func_pthread_cancel+set}" = set; then
33888 echo $ECHO_N "(cached) $ECHO_C" >&6
33889else
33890 cat >conftest.$ac_ext <<_ACEOF
33891/* confdefs.h. */
33892_ACEOF
33893cat confdefs.h >>conftest.$ac_ext
33894cat >>conftest.$ac_ext <<_ACEOF
33895/* end confdefs.h. */
ac1cb8d3
VS
33896/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33898#define pthread_cancel innocuous_pthread_cancel
33899
a848cd7e
SC
33900/* System header to define __stub macros and hopefully few prototypes,
33901 which can conflict with char pthread_cancel (); below.
33902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33903 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33904
a848cd7e
SC
33905#ifdef __STDC__
33906# include <limits.h>
33907#else
33908# include <assert.h>
33909#endif
ac1cb8d3
VS
33910
33911#undef pthread_cancel
33912
a848cd7e
SC
33913/* Override any gcc2 internal prototype to avoid an error. */
33914#ifdef __cplusplus
33915extern "C"
33916{
33917#endif
33918/* We use char because int might match the return type of a gcc2
33919 builtin and then its argument prototype would still apply. */
33920char pthread_cancel ();
33921/* The GNU C library defines this for functions which it implements
33922 to always fail with ENOSYS. Some functions are actually named
33923 something starting with __ and the normal name is an alias. */
33924#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33925choke me
33926#else
33927char (*f) () = pthread_cancel;
33928#endif
33929#ifdef __cplusplus
33930}
33931#endif
33932
33933int
33934main ()
33935{
33936return f != pthread_cancel;
33937 ;
33938 return 0;
33939}
33940_ACEOF
33941rm -f conftest.$ac_objext conftest$ac_exeext
33942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33943 (eval $ac_link) 2>conftest.er1
a848cd7e 33944 ac_status=$?
ac1cb8d3
VS
33945 grep -v '^ *+' conftest.er1 >conftest.err
33946 rm -f conftest.er1
33947 cat conftest.err >&5
a848cd7e
SC
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); } &&
ac1cb8d3
VS
33950 { ac_try='test -z "$ac_c_werror_flag"
33951 || test ! -s conftest.err'
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953 (eval $ac_try) 2>&5
33954 ac_status=$?
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; } &&
33957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959 (eval $ac_try) 2>&5
33960 ac_status=$?
33961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962 (exit $ac_status); }; }; then
33963 ac_cv_func_pthread_cancel=yes
33964else
33965 echo "$as_me: failed program was:" >&5
33966sed 's/^/| /' conftest.$ac_ext >&5
33967
33968ac_cv_func_pthread_cancel=no
33969fi
ac1cb8d3
VS
33970rm -f conftest.err conftest.$ac_objext \
33971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33972fi
33973echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33974echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33975if test $ac_cv_func_pthread_cancel = yes; then
33976 cat >>confdefs.h <<\_ACEOF
33977#define HAVE_PTHREAD_CANCEL 1
33978_ACEOF
33979
33980else
33981 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33982echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33983fi
33984
33985
33986
33987
33988 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33989echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33990if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
33992else
33993
33994 cat >conftest.$ac_ext <<_ACEOF
33995/* confdefs.h. */
33996_ACEOF
33997cat confdefs.h >>conftest.$ac_ext
33998cat >>conftest.$ac_ext <<_ACEOF
33999/* end confdefs.h. */
34000#include <pthread.h>
34001int
34002main ()
34003{
34004
34005 pthread_mutexattr_t attr;
34006 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34007
34008 ;
34009 return 0;
34010}
34011_ACEOF
34012rm -f conftest.$ac_objext
34013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34014 (eval $ac_compile) 2>conftest.er1
a848cd7e 34015 ac_status=$?
ac1cb8d3
VS
34016 grep -v '^ *+' conftest.er1 >conftest.err
34017 rm -f conftest.er1
34018 cat conftest.err >&5
a848cd7e
SC
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } &&
ac1cb8d3
VS
34021 { ac_try='test -z "$ac_c_werror_flag"
34022 || test ! -s conftest.err'
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; } &&
34028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; }; then
34034
34035 wx_cv_type_pthread_mutexattr_t=yes
34036
34037else
34038 echo "$as_me: failed program was:" >&5
34039sed 's/^/| /' conftest.$ac_ext >&5
34040
34041
34042 wx_cv_type_pthread_mutexattr_t=no
34043
34044
34045fi
ac1cb8d3 34046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34047
34048fi
34049echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34050echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34051
34052 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34053 cat >>confdefs.h <<\_ACEOF
34054#define HAVE_PTHREAD_MUTEXATTR_T 1
34055_ACEOF
34056
34057 else
34058 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34059echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34060if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34062else
34063
34064 cat >conftest.$ac_ext <<_ACEOF
34065/* confdefs.h. */
34066_ACEOF
34067cat confdefs.h >>conftest.$ac_ext
34068cat >>conftest.$ac_ext <<_ACEOF
34069/* end confdefs.h. */
34070#include <pthread.h>
34071int
34072main ()
34073{
34074
34075 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34076
34077 ;
34078 return 0;
34079}
34080_ACEOF
34081rm -f conftest.$ac_objext
34082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34083 (eval $ac_compile) 2>conftest.er1
a848cd7e 34084 ac_status=$?
ac1cb8d3
VS
34085 grep -v '^ *+' conftest.er1 >conftest.err
34086 rm -f conftest.er1
34087 cat conftest.err >&5
a848cd7e
SC
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); } &&
ac1cb8d3
VS
34090 { ac_try='test -z "$ac_c_werror_flag"
34091 || test ! -s conftest.err'
34092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093 (eval $ac_try) 2>&5
34094 ac_status=$?
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); }; } &&
34097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34099 (eval $ac_try) 2>&5
34100 ac_status=$?
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); }; }; then
34103
34104 wx_cv_type_pthread_rec_mutex_init=yes
34105
34106else
34107 echo "$as_me: failed program was:" >&5
34108sed 's/^/| /' conftest.$ac_ext >&5
34109
34110
34111 wx_cv_type_pthread_rec_mutex_init=no
34112
34113
34114fi
ac1cb8d3 34115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34116
34117fi
34118echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34119echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34120 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34121 cat >>confdefs.h <<\_ACEOF
34122#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34123_ACEOF
34124
34125 else
34126 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34127echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34128 fi
34129 fi
34130 fi
34131
34132else
34133 if test "$wxUSE_THREADS" = "yes" ; then
34134 case "${host}" in
34135 *-*-mingw32* )
34136 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34137echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34138if test "${wx_cv_cflags_mthread+set}" = set; then
34139 echo $ECHO_N "(cached) $ECHO_C" >&6
34140else
34141
34142 CFLAGS_OLD="$CFLAGS"
34143 CFLAGS="$CFLAGS -mthreads"
34144 cat >conftest.$ac_ext <<_ACEOF
34145/* confdefs.h. */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h. */
34150
34151int
34152main ()
34153{
34154
34155 ;
34156 return 0;
34157}
34158_ACEOF
34159rm -f conftest.$ac_objext
34160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34161 (eval $ac_compile) 2>conftest.er1
a848cd7e 34162 ac_status=$?
ac1cb8d3
VS
34163 grep -v '^ *+' conftest.er1 >conftest.err
34164 rm -f conftest.er1
34165 cat conftest.err >&5
a848cd7e
SC
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); } &&
ac1cb8d3
VS
34168 { ac_try='test -z "$ac_c_werror_flag"
34169 || test ! -s conftest.err'
34170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34171 (eval $ac_try) 2>&5
34172 ac_status=$?
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); }; } &&
34175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34177 (eval $ac_try) 2>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
34181 wx_cv_cflags_mthread=yes
34182else
34183 echo "$as_me: failed program was:" >&5
34184sed 's/^/| /' conftest.$ac_ext >&5
34185
34186wx_cv_cflags_mthread=no
34187
34188fi
ac1cb8d3 34189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34190
34191
34192fi
34193echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34194echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34195
34196 if test "$wx_cv_cflags_mthread" = "yes"; then
34197 CXXFLAGS="$CXXFLAGS -mthreads"
34198 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34199 LDFLAGS="$LDFLAGS -mthreads"
34200 else
34201 CFLAGS="$CFLAGS_OLD"
34202 fi
34203 ;;
34204 *-pc-os2*emx )
34205 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34206 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34207 LDFLAGS="$LDFLAGS -Zmt"
34208 ;;
34209 esac
34210 fi
34211fi
34212
34213if test "$wxUSE_THREADS" = "yes"; then
34214 cat >>confdefs.h <<\_ACEOF
34215#define wxUSE_THREADS 1
34216_ACEOF
34217
34218
34219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34220else
34221 if test "$ac_cv_func_strtok_r" = "yes"; then
34222 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34223echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34224 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34225 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34226 echo "$as_me:$LINENO: result: yes" >&5
34227echo "${ECHO_T}yes" >&6
34228 else
34229 echo "$as_me:$LINENO: result: no" >&5
34230echo "${ECHO_T}no" >&6
34231 fi
34232 fi
34233fi
34234
34235if test "$WXGTK20" = 1 ; then
34236 cat >>confdefs.h <<_ACEOF
34237#define __WXGTK20__ $WXGTK20
34238_ACEOF
34239
34240 WXGTK12=1
34241fi
34242
34243if test "$WXGTK12" = 1 ; then
34244 cat >>confdefs.h <<_ACEOF
34245#define __WXGTK12__ $WXGTK12
34246_ACEOF
34247
34248fi
34249
34250if test "$WXGTK127" = 1 ; then
34251 cat >>confdefs.h <<_ACEOF
34252#define __WXGTK127__ $WXGTK127
34253_ACEOF
34254
34255fi
34256
34257if test "$WXGPE" = 1 ; then
34258 cat >>confdefs.h <<_ACEOF
34259#define __WXGPE__ $WXGPE
34260_ACEOF
34261
34262fi
34263
34264WXDEBUG=
34265
34266if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34267 WXDEBUG="-g"
34268 wxUSE_OPTIMISE=no
34269fi
34270
34271if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34272 wxUSE_DEBUG_INFO=yes
34273 WXDEBUG="-ggdb"
34274fi
34275
34276if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34277 cat >>confdefs.h <<\_ACEOF
34278#define WXDEBUG 1
34279_ACEOF
34280
34281 WXDEBUG_DEFINE="-D__WXDEBUG__"
34282else
34283 if test "$wxUSE_GTK" = 1 ; then
34284 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34285 fi
34286fi
34287
34288if test "$wxUSE_MEM_TRACING" = "yes" ; then
34289 cat >>confdefs.h <<\_ACEOF
34290#define wxUSE_MEMORY_TRACING 1
34291_ACEOF
34292
34293 cat >>confdefs.h <<\_ACEOF
34294#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34295_ACEOF
34296
34297 cat >>confdefs.h <<\_ACEOF
34298#define wxUSE_DEBUG_NEW_ALWAYS 1
34299_ACEOF
34300
34301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34302fi
34303
34304if test "$wxUSE_DMALLOC" = "yes" ; then
34305 DMALLOC_LIBS="-ldmalloc"
34306fi
34307
34308PROFILE=
34309if test "$wxUSE_PROFILE" = "yes" ; then
34310 PROFILE=" -pg"
34311fi
34312
34313CODE_GEN_FLAGS=
34314CODE_GEN_FLAGS_CXX=
34315if test "$GCC" = "yes" ; then
34316 if test "$wxUSE_NO_RTTI" = "yes" ; then
34317 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34318 fi
34319 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34320 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34321 fi
34322 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34323 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34324 fi
34325
34326 case "${host}" in
34327 powerpc*-*-aix* )
34328 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34329 ;;
34330 *-hppa* )
34331 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34332 ;;
34333 esac
34334fi
34335
34336OPTIMISE=
34337if test "$wxUSE_OPTIMISE" = "no" ; then
34338 if test "$GCC" = yes ; then
34339 OPTIMISE="-O0"
34340 fi
34341else
34342 if test "$GCC" = yes ; then
34343 OPTIMISE="-O2"
34344
34345 case "${host}" in
34346 i586-*-*|i686-*-* )
34347 OPTIMISE="${OPTIMISE} "
34348 ;;
34349 esac
34350 else
34351 OPTIMISE="-O"
34352 fi
34353fi
34354
34355
34356if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34357 cat >>confdefs.h <<\_ACEOF
34358#define WXWIN_COMPATIBILITY_2_2 1
34359_ACEOF
34360
34361
34362 WXWIN_COMPATIBILITY_2_4="yes"
34363fi
34364
34365if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34366 cat >>confdefs.h <<\_ACEOF
34367#define WXWIN_COMPATIBILITY_2_4 1
34368_ACEOF
34369
34370fi
34371
34372
34373if test "$wxUSE_GUI" = "yes"; then
34374 cat >>confdefs.h <<\_ACEOF
34375#define wxUSE_GUI 1
34376_ACEOF
34377
34378
34379 else
34380 cat >>confdefs.h <<\_ACEOF
34381#define wxUSE_NOGUI 1
34382_ACEOF
34383
34384fi
34385
34386
34387if test "$wxUSE_UNIX" = "yes"; then
34388 cat >>confdefs.h <<\_ACEOF
34389#define wxUSE_UNIX 1
34390_ACEOF
34391
34392fi
34393
34394
34395if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34396
34397 HAVE_DL_FUNCS=0
34398 HAVE_SHL_FUNCS=0
34399 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34400 if test "$USE_DARWIN" = 1; then
34401 HAVE_DL_FUNCS=1
34402 else
34403
34404for ac_func in dlopen
34405do
34406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34407echo "$as_me:$LINENO: checking for $ac_func" >&5
34408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34409if eval "test \"\${$as_ac_var+set}\" = set"; then
34410 echo $ECHO_N "(cached) $ECHO_C" >&6
34411else
34412 cat >conftest.$ac_ext <<_ACEOF
34413/* confdefs.h. */
34414_ACEOF
34415cat confdefs.h >>conftest.$ac_ext
34416cat >>conftest.$ac_ext <<_ACEOF
34417/* end confdefs.h. */
ac1cb8d3
VS
34418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34420#define $ac_func innocuous_$ac_func
34421
a848cd7e
SC
34422/* System header to define __stub macros and hopefully few prototypes,
34423 which can conflict with char $ac_func (); below.
34424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34425 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34426
a848cd7e
SC
34427#ifdef __STDC__
34428# include <limits.h>
34429#else
34430# include <assert.h>
34431#endif
ac1cb8d3
VS
34432
34433#undef $ac_func
34434
a848cd7e
SC
34435/* Override any gcc2 internal prototype to avoid an error. */
34436#ifdef __cplusplus
34437extern "C"
34438{
34439#endif
34440/* We use char because int might match the return type of a gcc2
34441 builtin and then its argument prototype would still apply. */
34442char $ac_func ();
34443/* The GNU C library defines this for functions which it implements
34444 to always fail with ENOSYS. Some functions are actually named
34445 something starting with __ and the normal name is an alias. */
34446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34447choke me
34448#else
34449char (*f) () = $ac_func;
34450#endif
34451#ifdef __cplusplus
34452}
34453#endif
34454
34455int
34456main ()
34457{
34458return f != $ac_func;
34459 ;
34460 return 0;
34461}
34462_ACEOF
34463rm -f conftest.$ac_objext conftest$ac_exeext
34464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34465 (eval $ac_link) 2>conftest.er1
a848cd7e 34466 ac_status=$?
ac1cb8d3
VS
34467 grep -v '^ *+' conftest.er1 >conftest.err
34468 rm -f conftest.er1
34469 cat conftest.err >&5
a848cd7e
SC
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); } &&
ac1cb8d3
VS
34472 { ac_try='test -z "$ac_c_werror_flag"
34473 || test ! -s conftest.err'
34474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475 (eval $ac_try) 2>&5
34476 ac_status=$?
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); }; } &&
34479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34482 ac_status=$?
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; }; then
34485 eval "$as_ac_var=yes"
34486else
34487 echo "$as_me: failed program was:" >&5
34488sed 's/^/| /' conftest.$ac_ext >&5
34489
34490eval "$as_ac_var=no"
34491fi
ac1cb8d3
VS
34492rm -f conftest.err conftest.$ac_objext \
34493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34494fi
34495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34497if test `eval echo '${'$as_ac_var'}'` = yes; then
34498 cat >>confdefs.h <<_ACEOF
34499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34500_ACEOF
34501
34502 cat >>confdefs.h <<\_ACEOF
34503#define HAVE_DLOPEN 1
34504_ACEOF
34505
34506 HAVE_DL_FUNCS=1
34507
34508else
34509
34510 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34511echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34512if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34513 echo $ECHO_N "(cached) $ECHO_C" >&6
34514else
34515 ac_check_lib_save_LIBS=$LIBS
34516LIBS="-ldl $LIBS"
34517cat >conftest.$ac_ext <<_ACEOF
34518/* confdefs.h. */
34519_ACEOF
34520cat confdefs.h >>conftest.$ac_ext
34521cat >>conftest.$ac_ext <<_ACEOF
34522/* end confdefs.h. */
34523
34524/* Override any gcc2 internal prototype to avoid an error. */
34525#ifdef __cplusplus
34526extern "C"
34527#endif
34528/* We use char because int might match the return type of a gcc2
34529 builtin and then its argument prototype would still apply. */
34530char dlopen ();
34531int
34532main ()
34533{
34534dlopen ();
34535 ;
34536 return 0;
34537}
34538_ACEOF
34539rm -f conftest.$ac_objext conftest$ac_exeext
34540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34541 (eval $ac_link) 2>conftest.er1
a848cd7e 34542 ac_status=$?
ac1cb8d3
VS
34543 grep -v '^ *+' conftest.er1 >conftest.err
34544 rm -f conftest.er1
34545 cat conftest.err >&5
a848cd7e
SC
34546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34547 (exit $ac_status); } &&
ac1cb8d3
VS
34548 { ac_try='test -z "$ac_c_werror_flag"
34549 || test ! -s conftest.err'
34550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34551 (eval $ac_try) 2>&5
34552 ac_status=$?
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); }; } &&
34555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34557 (eval $ac_try) 2>&5
34558 ac_status=$?
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); }; }; then
34561 ac_cv_lib_dl_dlopen=yes
34562else
34563 echo "$as_me: failed program was:" >&5
34564sed 's/^/| /' conftest.$ac_ext >&5
34565
34566ac_cv_lib_dl_dlopen=no
34567fi
ac1cb8d3
VS
34568rm -f conftest.err conftest.$ac_objext \
34569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34570LIBS=$ac_check_lib_save_LIBS
34571fi
34572echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34573echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34574if test $ac_cv_lib_dl_dlopen = yes; then
34575
34576 cat >>confdefs.h <<\_ACEOF
34577#define HAVE_DLOPEN 1
34578_ACEOF
34579
34580 HAVE_DL_FUNCS=1
34581 DL_LINK=" -ldl$DL_LINK"
34582
34583else
34584
34585
34586for ac_func in shl_load
34587do
34588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34589echo "$as_me:$LINENO: checking for $ac_func" >&5
34590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34591if eval "test \"\${$as_ac_var+set}\" = set"; then
34592 echo $ECHO_N "(cached) $ECHO_C" >&6
34593else
34594 cat >conftest.$ac_ext <<_ACEOF
34595/* confdefs.h. */
34596_ACEOF
34597cat confdefs.h >>conftest.$ac_ext
34598cat >>conftest.$ac_ext <<_ACEOF
34599/* end confdefs.h. */
ac1cb8d3
VS
34600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34602#define $ac_func innocuous_$ac_func
34603
a848cd7e
SC
34604/* System header to define __stub macros and hopefully few prototypes,
34605 which can conflict with char $ac_func (); below.
34606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34607 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34608
a848cd7e
SC
34609#ifdef __STDC__
34610# include <limits.h>
34611#else
34612# include <assert.h>
34613#endif
ac1cb8d3
VS
34614
34615#undef $ac_func
34616
a848cd7e
SC
34617/* Override any gcc2 internal prototype to avoid an error. */
34618#ifdef __cplusplus
34619extern "C"
34620{
34621#endif
34622/* We use char because int might match the return type of a gcc2
34623 builtin and then its argument prototype would still apply. */
34624char $ac_func ();
34625/* The GNU C library defines this for functions which it implements
34626 to always fail with ENOSYS. Some functions are actually named
34627 something starting with __ and the normal name is an alias. */
34628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34629choke me
34630#else
34631char (*f) () = $ac_func;
34632#endif
34633#ifdef __cplusplus
34634}
34635#endif
34636
34637int
34638main ()
34639{
34640return f != $ac_func;
34641 ;
34642 return 0;
34643}
34644_ACEOF
34645rm -f conftest.$ac_objext conftest$ac_exeext
34646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34647 (eval $ac_link) 2>conftest.er1
a848cd7e 34648 ac_status=$?
ac1cb8d3
VS
34649 grep -v '^ *+' conftest.er1 >conftest.err
34650 rm -f conftest.er1
34651 cat conftest.err >&5
a848cd7e
SC
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); } &&
ac1cb8d3
VS
34654 { ac_try='test -z "$ac_c_werror_flag"
34655 || test ! -s conftest.err'
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; } &&
34661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34663 (eval $ac_try) 2>&5
34664 ac_status=$?
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); }; }; then
34667 eval "$as_ac_var=yes"
34668else
34669 echo "$as_me: failed program was:" >&5
34670sed 's/^/| /' conftest.$ac_ext >&5
34671
34672eval "$as_ac_var=no"
34673fi
ac1cb8d3
VS
34674rm -f conftest.err conftest.$ac_objext \
34675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34676fi
34677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34679if test `eval echo '${'$as_ac_var'}'` = yes; then
34680 cat >>confdefs.h <<_ACEOF
34681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34682_ACEOF
34683
34684 cat >>confdefs.h <<\_ACEOF
34685#define HAVE_SHL_LOAD 1
34686_ACEOF
34687
34688 HAVE_SHL_FUNCS=1
34689
34690else
34691
34692 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34693echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34694if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34695 echo $ECHO_N "(cached) $ECHO_C" >&6
34696else
34697 ac_check_lib_save_LIBS=$LIBS
34698LIBS="-lshl_load $LIBS"
34699cat >conftest.$ac_ext <<_ACEOF
34700/* confdefs.h. */
34701_ACEOF
34702cat confdefs.h >>conftest.$ac_ext
34703cat >>conftest.$ac_ext <<_ACEOF
34704/* end confdefs.h. */
34705
34706/* Override any gcc2 internal prototype to avoid an error. */
34707#ifdef __cplusplus
34708extern "C"
34709#endif
34710/* We use char because int might match the return type of a gcc2
34711 builtin and then its argument prototype would still apply. */
34712char dld ();
34713int
34714main ()
34715{
34716dld ();
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); } &&
ac1cb8d3
VS
34730 { ac_try='test -z "$ac_c_werror_flag"
34731 || test ! -s conftest.err'
34732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733 (eval $ac_try) 2>&5
34734 ac_status=$?
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); }; } &&
34737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34739 (eval $ac_try) 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; }; then
34743 ac_cv_lib_shl_load_dld=yes
34744else
34745 echo "$as_me: failed program was:" >&5
34746sed 's/^/| /' conftest.$ac_ext >&5
34747
34748ac_cv_lib_shl_load_dld=no
34749fi
ac1cb8d3
VS
34750rm -f conftest.err conftest.$ac_objext \
34751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34752LIBS=$ac_check_lib_save_LIBS
34753fi
34754echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34755echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34756if test $ac_cv_lib_shl_load_dld = yes; then
34757
34758 HAVE_SHL_FUNCS=1
34759 DL_LINK=" -ldld$DL_LINK"
34760
34761fi
34762
34763
34764fi
34765done
34766
34767
34768fi
34769
34770
34771fi
34772done
34773
34774
34775 if test "$HAVE_DL_FUNCS" = 1; then
34776
34777for ac_func in dlerror
34778do
34779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34780echo "$as_me:$LINENO: checking for $ac_func" >&5
34781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34782if eval "test \"\${$as_ac_var+set}\" = set"; then
34783 echo $ECHO_N "(cached) $ECHO_C" >&6
34784else
34785 cat >conftest.$ac_ext <<_ACEOF
34786/* confdefs.h. */
34787_ACEOF
34788cat confdefs.h >>conftest.$ac_ext
34789cat >>conftest.$ac_ext <<_ACEOF
34790/* end confdefs.h. */
ac1cb8d3
VS
34791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34793#define $ac_func innocuous_$ac_func
34794
a848cd7e
SC
34795/* System header to define __stub macros and hopefully few prototypes,
34796 which can conflict with char $ac_func (); below.
34797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34798 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34799
a848cd7e
SC
34800#ifdef __STDC__
34801# include <limits.h>
34802#else
34803# include <assert.h>
34804#endif
ac1cb8d3
VS
34805
34806#undef $ac_func
34807
a848cd7e
SC
34808/* Override any gcc2 internal prototype to avoid an error. */
34809#ifdef __cplusplus
34810extern "C"
34811{
34812#endif
34813/* We use char because int might match the return type of a gcc2
34814 builtin and then its argument prototype would still apply. */
34815char $ac_func ();
34816/* The GNU C library defines this for functions which it implements
34817 to always fail with ENOSYS. Some functions are actually named
34818 something starting with __ and the normal name is an alias. */
34819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34820choke me
34821#else
34822char (*f) () = $ac_func;
34823#endif
34824#ifdef __cplusplus
34825}
34826#endif
34827
34828int
34829main ()
34830{
34831return f != $ac_func;
34832 ;
34833 return 0;
34834}
34835_ACEOF
34836rm -f conftest.$ac_objext conftest$ac_exeext
34837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34838 (eval $ac_link) 2>conftest.er1
a848cd7e 34839 ac_status=$?
ac1cb8d3
VS
34840 grep -v '^ *+' conftest.er1 >conftest.err
34841 rm -f conftest.er1
34842 cat conftest.err >&5
a848cd7e
SC
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); } &&
ac1cb8d3
VS
34845 { ac_try='test -z "$ac_c_werror_flag"
34846 || test ! -s conftest.err'
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34849 ac_status=$?
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; } &&
34852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34855 ac_status=$?
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; }; then
34858 eval "$as_ac_var=yes"
34859else
34860 echo "$as_me: failed program was:" >&5
34861sed 's/^/| /' conftest.$ac_ext >&5
34862
34863eval "$as_ac_var=no"
34864fi
ac1cb8d3
VS
34865rm -f conftest.err conftest.$ac_objext \
34866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34867fi
34868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34870if test `eval echo '${'$as_ac_var'}'` = yes; then
34871 cat >>confdefs.h <<_ACEOF
34872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34873_ACEOF
34874 cat >>confdefs.h <<\_ACEOF
34875#define HAVE_DLERROR 1
34876_ACEOF
34877
34878else
34879
34880 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34881echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34882if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34883 echo $ECHO_N "(cached) $ECHO_C" >&6
34884else
34885 ac_check_lib_save_LIBS=$LIBS
34886LIBS="-ldl $LIBS"
34887cat >conftest.$ac_ext <<_ACEOF
34888/* confdefs.h. */
34889_ACEOF
34890cat confdefs.h >>conftest.$ac_ext
34891cat >>conftest.$ac_ext <<_ACEOF
34892/* end confdefs.h. */
34893
34894/* Override any gcc2 internal prototype to avoid an error. */
34895#ifdef __cplusplus
34896extern "C"
34897#endif
34898/* We use char because int might match the return type of a gcc2
34899 builtin and then its argument prototype would still apply. */
34900char dlerror ();
34901int
34902main ()
34903{
34904dlerror ();
34905 ;
34906 return 0;
34907}
34908_ACEOF
34909rm -f conftest.$ac_objext conftest$ac_exeext
34910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34911 (eval $ac_link) 2>conftest.er1
a848cd7e 34912 ac_status=$?
ac1cb8d3
VS
34913 grep -v '^ *+' conftest.er1 >conftest.err
34914 rm -f conftest.er1
34915 cat conftest.err >&5
a848cd7e
SC
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); } &&
ac1cb8d3
VS
34918 { ac_try='test -z "$ac_c_werror_flag"
34919 || test ! -s conftest.err'
34920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34921 (eval $ac_try) 2>&5
34922 ac_status=$?
34923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924 (exit $ac_status); }; } &&
34925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34927 (eval $ac_try) 2>&5
34928 ac_status=$?
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); }; }; then
34931 ac_cv_lib_dl_dlerror=yes
34932else
34933 echo "$as_me: failed program was:" >&5
34934sed 's/^/| /' conftest.$ac_ext >&5
34935
34936ac_cv_lib_dl_dlerror=no
34937fi
ac1cb8d3
VS
34938rm -f conftest.err conftest.$ac_objext \
34939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34940LIBS=$ac_check_lib_save_LIBS
34941fi
34942echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34943echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34944if test $ac_cv_lib_dl_dlerror = yes; then
34945 cat >>confdefs.h <<\_ACEOF
34946#define HAVE_DLERROR 1
34947_ACEOF
34948
34949fi
34950
34951
34952
34953fi
34954done
34955
34956 fi
34957 fi
34958
34959 if test "$HAVE_DL_FUNCS" = 0; then
34960 if test "$HAVE_SHL_FUNCS" = 0; then
34961 if test "$USE_UNIX" = 1; then
34962 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34963echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34964 wxUSE_DYNAMIC_LOADER=no
34965 wxUSE_DYNLIB_CLASS=no
34966 else
34967 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34968echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34969 fi
34970 fi
34971 fi
34972 fi
34973fi
34974
34975if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34976 cat >>confdefs.h <<\_ACEOF
34977#define wxUSE_DYNAMIC_LOADER 1
34978_ACEOF
34979
34980fi
34981if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34982 cat >>confdefs.h <<\_ACEOF
34983#define wxUSE_DYNLIB_CLASS 1
34984_ACEOF
34985
34986fi
34987
34988
34989
34990if test "$wxUSE_PLUGINS" = "yes" ; then
34991 if test "$wxUSE_SHARED" = "no" ; then
34992 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34993echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34994 wxUSE_PLUGINS=no
34995 fi
34996 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34997 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34998echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34999 wxUSE_PLUGINS=no
35000 fi
35001 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35002 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35003echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35004 wxUSE_PLUGINS=no
35005 fi
35006 if test "$wxUSE_PLUGINS" = "yes" ; then
35007 cat >>confdefs.h <<\_ACEOF
35008#define wxUSE_PLUGINS 1
35009_ACEOF
35010
35011 fi
35012fi
35013
35014
35015if test "$wxUSE_STL" = "yes"; then
35016 cat >>confdefs.h <<\_ACEOF
35017#define wxUSE_STL 1
35018_ACEOF
35019
35020fi
35021
35022if test "$wxUSE_APPLE_IEEE" = "yes"; then
35023 cat >>confdefs.h <<\_ACEOF
35024#define wxUSE_APPLE_IEEE 1
35025_ACEOF
35026
35027fi
35028
35029if test "$wxUSE_TIMER" = "yes"; then
35030 cat >>confdefs.h <<\_ACEOF
35031#define wxUSE_TIMER 1
35032_ACEOF
35033
35034fi
35035
35036WITH_PLUGIN_SDL=0
35037if test "$wxUSE_SOUND" = "yes"; then
35038 if test "$USE_UNIX" = "1" ; then
35039
35040for ac_header in sys/soundcard.h
35041do
35042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35043if eval "test \"\${$as_ac_Header+set}\" = set"; then
35044 echo "$as_me:$LINENO: checking for $ac_header" >&5
35045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35046if eval "test \"\${$as_ac_Header+set}\" = set"; then
35047 echo $ECHO_N "(cached) $ECHO_C" >&6
35048fi
35049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35051else
35052 # Is the header compilable?
35053echo "$as_me:$LINENO: checking $ac_header usability" >&5
35054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35055cat >conftest.$ac_ext <<_ACEOF
35056/* confdefs.h. */
35057_ACEOF
35058cat confdefs.h >>conftest.$ac_ext
35059cat >>conftest.$ac_ext <<_ACEOF
35060/* end confdefs.h. */
35061$ac_includes_default
35062#include <$ac_header>
35063_ACEOF
35064rm -f conftest.$ac_objext
35065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35066 (eval $ac_compile) 2>conftest.er1
a848cd7e 35067 ac_status=$?
ac1cb8d3
VS
35068 grep -v '^ *+' conftest.er1 >conftest.err
35069 rm -f conftest.er1
35070 cat conftest.err >&5
a848cd7e
SC
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); } &&
ac1cb8d3
VS
35073 { ac_try='test -z "$ac_c_werror_flag"
35074 || test ! -s conftest.err'
35075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076 (eval $ac_try) 2>&5
35077 ac_status=$?
35078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); }; } &&
35080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082 (eval $ac_try) 2>&5
35083 ac_status=$?
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); }; }; then
35086 ac_header_compiler=yes
35087else
35088 echo "$as_me: failed program was:" >&5
35089sed 's/^/| /' conftest.$ac_ext >&5
35090
35091ac_header_compiler=no
35092fi
ac1cb8d3 35093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35094echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35095echo "${ECHO_T}$ac_header_compiler" >&6
35096
35097# Is the header present?
35098echo "$as_me:$LINENO: checking $ac_header presence" >&5
35099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35100cat >conftest.$ac_ext <<_ACEOF
35101/* confdefs.h. */
35102_ACEOF
35103cat confdefs.h >>conftest.$ac_ext
35104cat >>conftest.$ac_ext <<_ACEOF
35105/* end confdefs.h. */
35106#include <$ac_header>
35107_ACEOF
35108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35110 ac_status=$?
35111 grep -v '^ *+' conftest.er1 >conftest.err
35112 rm -f conftest.er1
35113 cat conftest.err >&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } >/dev/null; then
35116 if test -s conftest.err; then
35117 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35119 else
35120 ac_cpp_err=
35121 fi
35122else
35123 ac_cpp_err=yes
35124fi
35125if test -z "$ac_cpp_err"; then
35126 ac_header_preproc=yes
35127else
35128 echo "$as_me: failed program was:" >&5
35129sed 's/^/| /' conftest.$ac_ext >&5
35130
35131 ac_header_preproc=no
35132fi
35133rm -f conftest.err conftest.$ac_ext
35134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35135echo "${ECHO_T}$ac_header_preproc" >&6
35136
35137# So? What about this header?
ac1cb8d3
VS
35138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35139 yes:no: )
a848cd7e
SC
35140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35144 ac_header_preproc=yes
a848cd7e 35145 ;;
ac1cb8d3 35146 no:yes:* )
a848cd7e
SC
35147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35159 (
35160 cat <<\_ASBOX
ac1cb8d3
VS
35161## ----------------------------------------- ##
35162## Report this to wx-dev@lists.wxwidgets.org ##
35163## ----------------------------------------- ##
a848cd7e
SC
35164_ASBOX
35165 ) |
35166 sed "s/^/$as_me: WARNING: /" >&2
35167 ;;
35168esac
35169echo "$as_me:$LINENO: checking for $ac_header" >&5
35170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35171if eval "test \"\${$as_ac_Header+set}\" = set"; then
35172 echo $ECHO_N "(cached) $ECHO_C" >&6
35173else
ac1cb8d3 35174 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35175fi
35176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35178
35179fi
35180if test `eval echo '${'$as_ac_Header'}'` = yes; then
35181 cat >>confdefs.h <<_ACEOF
35182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35183_ACEOF
35184
35185fi
35186
35187done
35188
35189
35190 if test "$wxUSE_LIBSDL" != "no"; then
35191
35192# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35193if test "${with_sdl_prefix+set}" = set; then
35194 withval="$with_sdl_prefix"
35195 sdl_prefix="$withval"
35196else
35197 sdl_prefix=""
35198fi;
35199
35200# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35201if test "${with_sdl_exec_prefix+set}" = set; then
35202 withval="$with_sdl_exec_prefix"
35203 sdl_exec_prefix="$withval"
35204else
35205 sdl_exec_prefix=""
35206fi;
35207# Check whether --enable-sdltest or --disable-sdltest was given.
35208if test "${enable_sdltest+set}" = set; then
35209 enableval="$enable_sdltest"
35210
35211else
35212 enable_sdltest=yes
35213fi;
35214
35215 if test x$sdl_exec_prefix != x ; then
35216 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35217 if test x${SDL_CONFIG+set} != xset ; then
35218 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35219 fi
35220 fi
35221 if test x$sdl_prefix != x ; then
35222 sdl_args="$sdl_args --prefix=$sdl_prefix"
35223 if test x${SDL_CONFIG+set} != xset ; then
35224 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35225 fi
35226 fi
35227
35228
35229 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35230 # Extract the first word of "sdl-config", so it can be a program name with args.
35231set dummy sdl-config; ac_word=$2
35232echo "$as_me:$LINENO: checking for $ac_word" >&5
35233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35234if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35235 echo $ECHO_N "(cached) $ECHO_C" >&6
35236else
35237 case $SDL_CONFIG in
35238 [\\/]* | ?:[\\/]*)
35239 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35240 ;;
35241 *)
35242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35243for as_dir in $PATH
35244do
35245 IFS=$as_save_IFS
35246 test -z "$as_dir" && as_dir=.
35247 for ac_exec_ext in '' $ac_executable_extensions; do
35248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35249 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35251 break 2
35252 fi
35253done
35254done
35255
35256 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35257 ;;
35258esac
35259fi
35260SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35261
35262if test -n "$SDL_CONFIG"; then
35263 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35264echo "${ECHO_T}$SDL_CONFIG" >&6
35265else
35266 echo "$as_me:$LINENO: result: no" >&5
35267echo "${ECHO_T}no" >&6
35268fi
35269
35270 min_sdl_version=1.2.0
35271 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35272echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35273 no_sdl=""
35274 if test "$SDL_CONFIG" = "no" ; then
35275 no_sdl=yes
35276 else
35277 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35278 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35279
35280 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35282 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35284 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35286 if test "x$enable_sdltest" = "xyes" ; then
35287 ac_save_CFLAGS="$CFLAGS"
35288 ac_save_LIBS="$LIBS"
35289 CFLAGS="$CFLAGS $SDL_CFLAGS"
35290 LIBS="$LIBS $SDL_LIBS"
35291 rm -f conf.sdltest
35292 if test "$cross_compiling" = yes; then
35293 echo $ac_n "cross compiling; assumed OK... $ac_c"
35294else
35295 cat >conftest.$ac_ext <<_ACEOF
35296/* confdefs.h. */
35297_ACEOF
35298cat confdefs.h >>conftest.$ac_ext
35299cat >>conftest.$ac_ext <<_ACEOF
35300/* end confdefs.h. */
35301
35302#include <stdio.h>
35303#include <stdlib.h>
35304#include <string.h>
35305#include "SDL.h"
35306
35307char*
35308my_strdup (char *str)
35309{
35310 char *new_str;
35311
35312 if (str)
35313 {
35314 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35315 strcpy (new_str, str);
35316 }
35317 else
35318 new_str = NULL;
35319
35320 return new_str;
35321}
35322
35323int main (int argc, char *argv[])
35324{
35325 int major, minor, micro;
35326 char *tmp_version;
35327
35328 /* This hangs on some systems (?)
35329 system ("touch conf.sdltest");
35330 */
35331 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35332
35333 /* HP/UX 9 (%@#!) writes to sscanf strings */
35334 tmp_version = my_strdup("$min_sdl_version");
35335 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35336 printf("%s, bad version string\n", "$min_sdl_version");
35337 exit(1);
35338 }
35339
35340 if (($sdl_major_version > major) ||
35341 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35342 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35343 {
35344 return 0;
35345 }
35346 else
35347 {
35348 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35349 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35350 printf("*** best to upgrade to the required version.\n");
35351 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35352 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35353 printf("*** config.cache before re-running configure\n");
35354 return 1;
35355 }
35356}
35357
35358
35359_ACEOF
35360rm -f conftest$ac_exeext
35361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35362 (eval $ac_link) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
35371 :
35372else
35373 echo "$as_me: program exited with status $ac_status" >&5
35374echo "$as_me: failed program was:" >&5
35375sed 's/^/| /' conftest.$ac_ext >&5
35376
35377( exit $ac_status )
35378no_sdl=yes
35379fi
ac1cb8d3 35380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35381fi
35382 CFLAGS="$ac_save_CFLAGS"
35383 LIBS="$ac_save_LIBS"
35384 fi
35385 fi
35386 if test "x$no_sdl" = x ; then
35387 echo "$as_me:$LINENO: result: yes" >&5
35388echo "${ECHO_T}yes" >&6
35389
35390 EXTRALIBS_SDL="$SDL_LIBS"
35391 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35392 cat >>confdefs.h <<\_ACEOF
35393#define wxUSE_LIBSDL 1
35394_ACEOF
35395
35396
35397 else
35398 echo "$as_me:$LINENO: result: no" >&5
35399echo "${ECHO_T}no" >&6
35400 if test "$SDL_CONFIG" = "no" ; then
35401 echo "*** The sdl-config script installed by SDL could not be found"
35402 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35403 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35404 echo "*** full path to sdl-config."
35405 else
35406 if test -f conf.sdltest ; then
35407 :
35408 else
35409 echo "*** Could not run SDL test program, checking why..."
35410 CFLAGS="$CFLAGS $SDL_CFLAGS"
35411 LIBS="$LIBS $SDL_LIBS"
35412 cat >conftest.$ac_ext <<_ACEOF
35413/* confdefs.h. */
35414_ACEOF
35415cat confdefs.h >>conftest.$ac_ext
35416cat >>conftest.$ac_ext <<_ACEOF
35417/* end confdefs.h. */
35418
35419#include <stdio.h>
35420#include "SDL.h"
35421
35422int main(int argc, char *argv[])
35423{ return 0; }
35424#undef main
35425#define main K_and_R_C_main
35426
35427int
35428main ()
35429{
35430 return 0;
35431 ;
35432 return 0;
35433}
35434_ACEOF
35435rm -f conftest.$ac_objext conftest$ac_exeext
35436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35437 (eval $ac_link) 2>conftest.er1
a848cd7e 35438 ac_status=$?
ac1cb8d3
VS
35439 grep -v '^ *+' conftest.er1 >conftest.err
35440 rm -f conftest.er1
35441 cat conftest.err >&5
a848cd7e
SC
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); } &&
ac1cb8d3
VS
35444 { ac_try='test -z "$ac_c_werror_flag"
35445 || test ! -s conftest.err'
35446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447 (eval $ac_try) 2>&5
35448 ac_status=$?
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); }; } &&
35451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453 (eval $ac_try) 2>&5
35454 ac_status=$?
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; }; then
35457 echo "*** The test program compiled, but did not run. This usually means"
35458 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35459 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35460 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35461 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35462 echo "*** is required on your system"
35463 echo "***"
35464 echo "*** If you have an old version installed, it is best to remove it, although"
35465 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35466else
35467 echo "$as_me: failed program was:" >&5
35468sed 's/^/| /' conftest.$ac_ext >&5
35469
35470 echo "*** The test program failed to compile or link. See the file config.log for the"
35471 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35472 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35473 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35474fi
ac1cb8d3
VS
35475rm -f conftest.err conftest.$ac_objext \
35476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35477 CFLAGS="$ac_save_CFLAGS"
35478 LIBS="$ac_save_LIBS"
35479 fi
35480 fi
35481 SDL_CFLAGS=""
35482 SDL_LIBS=""
35483 wxUSE_LIBSDL="no"
35484 fi
35485
35486
35487 rm -f conf.sdltest
35488
35489 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35490 WITH_PLUGIN_SDL=1
35491 fi
35492 fi
35493 fi
35494
35495 cat >>confdefs.h <<\_ACEOF
35496#define wxUSE_SOUND 1
35497_ACEOF
35498
35499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35500fi
35501
35502if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35503 cat >>confdefs.h <<\_ACEOF
35504#define wxUSE_CMDLINE_PARSER 1
35505_ACEOF
35506
35507fi
35508
35509if test "$wxUSE_STOPWATCH" = "yes"; then
35510 cat >>confdefs.h <<\_ACEOF
35511#define wxUSE_STOPWATCH 1
35512_ACEOF
35513
35514fi
35515
35516if test "$wxUSE_DATETIME" = "yes"; then
35517 cat >>confdefs.h <<\_ACEOF
35518#define wxUSE_DATETIME 1
35519_ACEOF
35520
35521fi
35522
35523if test "$wxUSE_FILE" = "yes"; then
35524 cat >>confdefs.h <<\_ACEOF
35525#define wxUSE_FILE 1
35526_ACEOF
35527
35528fi
35529
35530if test "$wxUSE_FFILE" = "yes"; then
35531 cat >>confdefs.h <<\_ACEOF
35532#define wxUSE_FFILE 1
35533_ACEOF
35534
35535fi
35536
35537if test "$wxUSE_FILESYSTEM" = "yes"; then
35538 cat >>confdefs.h <<\_ACEOF
35539#define wxUSE_FILESYSTEM 1
35540_ACEOF
35541
35542fi
35543
35544if test "$wxUSE_FS_ZIP" = "yes"; then
35545 cat >>confdefs.h <<\_ACEOF
35546#define wxUSE_FS_ZIP 1
35547_ACEOF
35548
35549fi
35550
35551if test "$wxUSE_ZIPSTREAM" = "yes"; then
35552 cat >>confdefs.h <<\_ACEOF
35553#define wxUSE_ZIPSTREAM 1
35554_ACEOF
35555
35556fi
35557
a848cd7e
SC
35558if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35559 cat >>confdefs.h <<\_ACEOF
35560#define wxUSE_ON_FATAL_EXCEPTION 1
35561_ACEOF
35562
35563fi
35564
35565if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35566 cat >>confdefs.h <<\_ACEOF
35567#define wxUSE_SNGLINST_CHECKER 1
35568_ACEOF
35569
35570fi
35571
35572if test "$wxUSE_BUSYINFO" = "yes"; then
35573 cat >>confdefs.h <<\_ACEOF
35574#define wxUSE_BUSYINFO 1
35575_ACEOF
35576
35577fi
35578
35579if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35580 cat >>confdefs.h <<\_ACEOF
35581#define wxUSE_STD_IOSTREAM 1
35582_ACEOF
35583
35584fi
35585
35586if test "$wxUSE_TEXTBUFFER" = "yes"; then
35587 cat >>confdefs.h <<\_ACEOF
35588#define wxUSE_TEXTBUFFER 1
35589_ACEOF
35590
35591fi
35592
35593if test "$wxUSE_TEXTFILE" = "yes"; then
35594 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35595 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35596echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35597 else
35598 cat >>confdefs.h <<\_ACEOF
35599#define wxUSE_TEXTFILE 1
35600_ACEOF
35601
35602 fi
35603fi
35604
35605if test "$wxUSE_CONFIG" = "yes" ; then
35606 if test "$wxUSE_TEXTFILE" != "yes"; then
35607 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35608echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35609 else
35610 cat >>confdefs.h <<\_ACEOF
35611#define wxUSE_CONFIG 1
35612_ACEOF
35613
35614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35615 fi
35616fi
35617
35618if test "$wxUSE_INTL" = "yes" ; then
35619 if test "$wxUSE_FILE" != "yes"; then
35620 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35621echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35622 else
35623 cat >>confdefs.h <<\_ACEOF
35624#define wxUSE_INTL 1
35625_ACEOF
35626
35627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35628 GUIDIST="$GUIDIST INTL_DIST"
35629 fi
35630fi
35631
35632if test "$wxUSE_LOG" = "yes"; then
35633 cat >>confdefs.h <<\_ACEOF
35634#define wxUSE_LOG 1
35635_ACEOF
35636
35637
35638 if test "$wxUSE_LOGGUI" = "yes"; then
35639 cat >>confdefs.h <<\_ACEOF
35640#define wxUSE_LOGGUI 1
35641_ACEOF
35642
35643 fi
35644
35645 if test "$wxUSE_LOGWINDOW" = "yes"; then
35646 cat >>confdefs.h <<\_ACEOF
35647#define wxUSE_LOGWINDOW 1
35648_ACEOF
35649
35650 fi
35651
35652 if test "$wxUSE_LOGDIALOG" = "yes"; then
35653 cat >>confdefs.h <<\_ACEOF
35654#define wxUSE_LOG_DIALOG 1
35655_ACEOF
35656
35657 fi
35658fi
35659
35660if test "$wxUSE_LONGLONG" = "yes"; then
35661 cat >>confdefs.h <<\_ACEOF
35662#define wxUSE_LONGLONG 1
35663_ACEOF
35664
35665fi
35666
35667if test "$wxUSE_GEOMETRY" = "yes"; then
35668 cat >>confdefs.h <<\_ACEOF
35669#define wxUSE_GEOMETRY 1
35670_ACEOF
35671
35672fi
35673
35674if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35675 cat >>confdefs.h <<\_ACEOF
35676#define wxUSE_DIALUP_MANAGER 1
35677_ACEOF
35678
35679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35680fi
35681
35682if test "$wxUSE_STREAMS" = "yes" ; then
35683 cat >>confdefs.h <<\_ACEOF
35684#define wxUSE_STREAMS 1
35685_ACEOF
35686
35687fi
35688
35689
35690if test "$wxUSE_DATETIME" = "yes"; then
35691
35692for ac_func in strptime
35693do
35694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35695echo "$as_me:$LINENO: checking for $ac_func" >&5
35696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35697if eval "test \"\${$as_ac_var+set}\" = set"; then
35698 echo $ECHO_N "(cached) $ECHO_C" >&6
35699else
35700 cat >conftest.$ac_ext <<_ACEOF
35701/* confdefs.h. */
35702_ACEOF
35703cat confdefs.h >>conftest.$ac_ext
35704cat >>conftest.$ac_ext <<_ACEOF
35705/* end confdefs.h. */
ac1cb8d3
VS
35706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35708#define $ac_func innocuous_$ac_func
35709
a848cd7e
SC
35710/* System header to define __stub macros and hopefully few prototypes,
35711 which can conflict with char $ac_func (); below.
35712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35713 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35714
a848cd7e
SC
35715#ifdef __STDC__
35716# include <limits.h>
35717#else
35718# include <assert.h>
35719#endif
ac1cb8d3
VS
35720
35721#undef $ac_func
35722
a848cd7e
SC
35723/* Override any gcc2 internal prototype to avoid an error. */
35724#ifdef __cplusplus
35725extern "C"
35726{
35727#endif
35728/* We use char because int might match the return type of a gcc2
35729 builtin and then its argument prototype would still apply. */
35730char $ac_func ();
35731/* The GNU C library defines this for functions which it implements
35732 to always fail with ENOSYS. Some functions are actually named
35733 something starting with __ and the normal name is an alias. */
35734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35735choke me
35736#else
35737char (*f) () = $ac_func;
35738#endif
35739#ifdef __cplusplus
35740}
35741#endif
35742
35743int
35744main ()
35745{
35746return f != $ac_func;
35747 ;
35748 return 0;
35749}
35750_ACEOF
35751rm -f conftest.$ac_objext conftest$ac_exeext
35752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35753 (eval $ac_link) 2>conftest.er1
a848cd7e 35754 ac_status=$?
ac1cb8d3
VS
35755 grep -v '^ *+' conftest.er1 >conftest.err
35756 rm -f conftest.er1
35757 cat conftest.err >&5
a848cd7e
SC
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } &&
ac1cb8d3
VS
35760 { ac_try='test -z "$ac_c_werror_flag"
35761 || test ! -s conftest.err'
35762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35763 (eval $ac_try) 2>&5
35764 ac_status=$?
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); }; } &&
35767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 (eval $ac_try) 2>&5
35770 ac_status=$?
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); }; }; then
35773 eval "$as_ac_var=yes"
35774else
35775 echo "$as_me: failed program was:" >&5
35776sed 's/^/| /' conftest.$ac_ext >&5
35777
35778eval "$as_ac_var=no"
35779fi
ac1cb8d3
VS
35780rm -f conftest.err conftest.$ac_objext \
35781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35782fi
35783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35785if test `eval echo '${'$as_ac_var'}'` = yes; then
35786 cat >>confdefs.h <<_ACEOF
35787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35788_ACEOF
35789
35790fi
35791done
35792
35793
35794 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35795echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35796if test "${wx_cv_var_timezone+set}" = set; then
35797 echo $ECHO_N "(cached) $ECHO_C" >&6
35798else
35799
35800 cat >conftest.$ac_ext <<_ACEOF
35801/* confdefs.h. */
35802_ACEOF
35803cat confdefs.h >>conftest.$ac_ext
35804cat >>conftest.$ac_ext <<_ACEOF
35805/* end confdefs.h. */
35806
35807 #include <time.h>
35808
35809int
35810main ()
35811{
35812
35813 int tz;
35814 tz = timezone;
35815
35816 ;
35817 return 0;
35818}
35819_ACEOF
35820rm -f conftest.$ac_objext
35821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35822 (eval $ac_compile) 2>conftest.er1
a848cd7e 35823 ac_status=$?
ac1cb8d3
VS
35824 grep -v '^ *+' conftest.er1 >conftest.err
35825 rm -f conftest.er1
35826 cat conftest.err >&5
a848cd7e
SC
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); } &&
ac1cb8d3
VS
35829 { ac_try='test -z "$ac_c_werror_flag"
35830 || test ! -s conftest.err'
35831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832 (eval $ac_try) 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; } &&
35836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838 (eval $ac_try) 2>&5
35839 ac_status=$?
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; }; then
35842
35843 wx_cv_var_timezone=timezone
35844
35845else
35846 echo "$as_me: failed program was:" >&5
35847sed 's/^/| /' conftest.$ac_ext >&5
35848
35849
35850 cat >conftest.$ac_ext <<_ACEOF
35851/* confdefs.h. */
35852_ACEOF
35853cat confdefs.h >>conftest.$ac_ext
35854cat >>conftest.$ac_ext <<_ACEOF
35855/* end confdefs.h. */
35856
35857 #include <time.h>
35858
35859int
35860main ()
35861{
35862
35863 int tz;
35864 tz = _timezone;
35865
35866 ;
35867 return 0;
35868}
35869_ACEOF
35870rm -f conftest.$ac_objext
35871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35872 (eval $ac_compile) 2>conftest.er1
a848cd7e 35873 ac_status=$?
ac1cb8d3
VS
35874 grep -v '^ *+' conftest.er1 >conftest.err
35875 rm -f conftest.er1
35876 cat conftest.err >&5
a848cd7e
SC
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); } &&
ac1cb8d3
VS
35879 { ac_try='test -z "$ac_c_werror_flag"
35880 || test ! -s conftest.err'
35881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35882 (eval $ac_try) 2>&5
35883 ac_status=$?
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); }; } &&
35886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35888 (eval $ac_try) 2>&5
35889 ac_status=$?
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); }; }; then
35892
35893 wx_cv_var_timezone=_timezone
35894
35895else
35896 echo "$as_me: failed program was:" >&5
35897sed 's/^/| /' conftest.$ac_ext >&5
35898
35899
35900 cat >conftest.$ac_ext <<_ACEOF
35901/* confdefs.h. */
35902_ACEOF
35903cat confdefs.h >>conftest.$ac_ext
35904cat >>conftest.$ac_ext <<_ACEOF
35905/* end confdefs.h. */
35906
35907 #include <time.h>
35908
35909int
35910main ()
35911{
35912
35913 int tz;
35914 tz = __timezone;
35915
35916 ;
35917 return 0;
35918}
35919_ACEOF
35920rm -f conftest.$ac_objext
35921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35922 (eval $ac_compile) 2>conftest.er1
a848cd7e 35923 ac_status=$?
ac1cb8d3
VS
35924 grep -v '^ *+' conftest.er1 >conftest.err
35925 rm -f conftest.er1
35926 cat conftest.err >&5
a848cd7e
SC
35927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928 (exit $ac_status); } &&
ac1cb8d3
VS
35929 { ac_try='test -z "$ac_c_werror_flag"
35930 || test ! -s conftest.err'
35931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35932 (eval $ac_try) 2>&5
35933 ac_status=$?
35934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935 (exit $ac_status); }; } &&
35936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35939 ac_status=$?
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; }; then
35942
35943 wx_cv_var_timezone=__timezone
35944
35945else
35946 echo "$as_me: failed program was:" >&5
35947sed 's/^/| /' conftest.$ac_ext >&5
35948
35949
35950 if test "$USE_DOS" = 0 ; then
35951 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35952echo "$as_me: WARNING: no timezone variable" >&2;}
35953 fi
35954
35955
35956fi
ac1cb8d3 35957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35958
35959
35960fi
ac1cb8d3 35961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35962
35963
35964fi
ac1cb8d3 35965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35966
35967
35968fi
35969echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35970echo "${ECHO_T}$wx_cv_var_timezone" >&6
35971
35972 if test "x$wx_cv_var_timezone" != x ; then
35973 cat >>confdefs.h <<_ACEOF
35974#define WX_TIMEZONE $wx_cv_var_timezone
35975_ACEOF
35976
35977 fi
35978
35979
35980for ac_func in localtime
35981do
35982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35983echo "$as_me:$LINENO: checking for $ac_func" >&5
35984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35985if eval "test \"\${$as_ac_var+set}\" = set"; then
35986 echo $ECHO_N "(cached) $ECHO_C" >&6
35987else
35988 cat >conftest.$ac_ext <<_ACEOF
35989/* confdefs.h. */
35990_ACEOF
35991cat confdefs.h >>conftest.$ac_ext
35992cat >>conftest.$ac_ext <<_ACEOF
35993/* end confdefs.h. */
ac1cb8d3
VS
35994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35996#define $ac_func innocuous_$ac_func
35997
a848cd7e
SC
35998/* System header to define __stub macros and hopefully few prototypes,
35999 which can conflict with char $ac_func (); below.
36000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36001 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36002
a848cd7e
SC
36003#ifdef __STDC__
36004# include <limits.h>
36005#else
36006# include <assert.h>
36007#endif
ac1cb8d3
VS
36008
36009#undef $ac_func
36010
a848cd7e
SC
36011/* Override any gcc2 internal prototype to avoid an error. */
36012#ifdef __cplusplus
36013extern "C"
36014{
36015#endif
36016/* We use char because int might match the return type of a gcc2
36017 builtin and then its argument prototype would still apply. */
36018char $ac_func ();
36019/* The GNU C library defines this for functions which it implements
36020 to always fail with ENOSYS. Some functions are actually named
36021 something starting with __ and the normal name is an alias. */
36022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36023choke me
36024#else
36025char (*f) () = $ac_func;
36026#endif
36027#ifdef __cplusplus
36028}
36029#endif
36030
36031int
36032main ()
36033{
36034return f != $ac_func;
36035 ;
36036 return 0;
36037}
36038_ACEOF
36039rm -f conftest.$ac_objext conftest$ac_exeext
36040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36041 (eval $ac_link) 2>conftest.er1
a848cd7e 36042 ac_status=$?
ac1cb8d3
VS
36043 grep -v '^ *+' conftest.er1 >conftest.err
36044 rm -f conftest.er1
36045 cat conftest.err >&5
a848cd7e
SC
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); } &&
ac1cb8d3
VS
36048 { ac_try='test -z "$ac_c_werror_flag"
36049 || test ! -s conftest.err'
36050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36051 (eval $ac_try) 2>&5
36052 ac_status=$?
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); }; } &&
36055 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057 (eval $ac_try) 2>&5
36058 ac_status=$?
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); }; }; then
36061 eval "$as_ac_var=yes"
36062else
36063 echo "$as_me: failed program was:" >&5
36064sed 's/^/| /' conftest.$ac_ext >&5
36065
36066eval "$as_ac_var=no"
36067fi
ac1cb8d3
VS
36068rm -f conftest.err conftest.$ac_objext \
36069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36070fi
36071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36073if test `eval echo '${'$as_ac_var'}'` = yes; then
36074 cat >>confdefs.h <<_ACEOF
36075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36076_ACEOF
36077
36078fi
36079done
36080
36081
36082 if test "$ac_cv_func_localtime" = "yes"; then
36083 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36084echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36085if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36086 echo $ECHO_N "(cached) $ECHO_C" >&6
36087else
36088
36089 cat >conftest.$ac_ext <<_ACEOF
36090/* confdefs.h. */
36091_ACEOF
36092cat confdefs.h >>conftest.$ac_ext
36093cat >>conftest.$ac_ext <<_ACEOF
36094/* end confdefs.h. */
36095
36096 #include <time.h>
36097
36098int
36099main ()
36100{
36101
36102 struct tm tm;
36103 tm.tm_gmtoff++;
36104
36105 ;
36106 return 0;
36107}
36108_ACEOF
36109rm -f conftest.$ac_objext
36110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36111 (eval $ac_compile) 2>conftest.er1
a848cd7e 36112 ac_status=$?
ac1cb8d3
VS
36113 grep -v '^ *+' conftest.er1 >conftest.err
36114 rm -f conftest.er1
36115 cat conftest.err >&5
a848cd7e
SC
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); } &&
ac1cb8d3
VS
36118 { ac_try='test -z "$ac_c_werror_flag"
36119 || test ! -s conftest.err'
36120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36121 (eval $ac_try) 2>&5
36122 ac_status=$?
36123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124 (exit $ac_status); }; } &&
36125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36127 (eval $ac_try) 2>&5
36128 ac_status=$?
36129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130 (exit $ac_status); }; }; then
36131
36132 wx_cv_struct_tm_has_gmtoff=yes
36133
36134else
36135 echo "$as_me: failed program was:" >&5
36136sed 's/^/| /' conftest.$ac_ext >&5
36137
36138wx_cv_struct_tm_has_gmtoff=no
36139
36140fi
ac1cb8d3 36141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36142
36143fi
36144echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36145echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36146 fi
36147
36148 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36149 cat >>confdefs.h <<\_ACEOF
36150#define WX_GMTOFF_IN_TM 1
36151_ACEOF
36152
36153 fi
36154
36155
36156
36157for ac_func in gettimeofday ftime
36158do
36159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36160echo "$as_me:$LINENO: checking for $ac_func" >&5
36161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36162if eval "test \"\${$as_ac_var+set}\" = set"; then
36163 echo $ECHO_N "(cached) $ECHO_C" >&6
36164else
36165 cat >conftest.$ac_ext <<_ACEOF
36166/* confdefs.h. */
36167_ACEOF
36168cat confdefs.h >>conftest.$ac_ext
36169cat >>conftest.$ac_ext <<_ACEOF
36170/* end confdefs.h. */
ac1cb8d3
VS
36171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36173#define $ac_func innocuous_$ac_func
36174
a848cd7e
SC
36175/* System header to define __stub macros and hopefully few prototypes,
36176 which can conflict with char $ac_func (); below.
36177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36178 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36179
a848cd7e
SC
36180#ifdef __STDC__
36181# include <limits.h>
36182#else
36183# include <assert.h>
36184#endif
ac1cb8d3
VS
36185
36186#undef $ac_func
36187
a848cd7e
SC
36188/* Override any gcc2 internal prototype to avoid an error. */
36189#ifdef __cplusplus
36190extern "C"
36191{
36192#endif
36193/* We use char because int might match the return type of a gcc2
36194 builtin and then its argument prototype would still apply. */
36195char $ac_func ();
36196/* The GNU C library defines this for functions which it implements
36197 to always fail with ENOSYS. Some functions are actually named
36198 something starting with __ and the normal name is an alias. */
36199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36200choke me
36201#else
36202char (*f) () = $ac_func;
36203#endif
36204#ifdef __cplusplus
36205}
36206#endif
36207
36208int
36209main ()
36210{
36211return f != $ac_func;
36212 ;
36213 return 0;
36214}
36215_ACEOF
36216rm -f conftest.$ac_objext conftest$ac_exeext
36217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36218 (eval $ac_link) 2>conftest.er1
a848cd7e 36219 ac_status=$?
ac1cb8d3
VS
36220 grep -v '^ *+' conftest.er1 >conftest.err
36221 rm -f conftest.er1
36222 cat conftest.err >&5
a848cd7e
SC
36223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224 (exit $ac_status); } &&
ac1cb8d3
VS
36225 { ac_try='test -z "$ac_c_werror_flag"
36226 || test ! -s conftest.err'
36227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36228 (eval $ac_try) 2>&5
36229 ac_status=$?
36230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); }; } &&
36232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; }; then
36238 eval "$as_ac_var=yes"
36239else
36240 echo "$as_me: failed program was:" >&5
36241sed 's/^/| /' conftest.$ac_ext >&5
36242
36243eval "$as_ac_var=no"
36244fi
ac1cb8d3
VS
36245rm -f conftest.err conftest.$ac_objext \
36246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36247fi
36248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36250if test `eval echo '${'$as_ac_var'}'` = yes; then
36251 cat >>confdefs.h <<_ACEOF
36252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36253_ACEOF
36254 break
36255fi
36256done
36257
36258
36259 if test "$ac_cv_func_gettimeofday" = "yes"; then
36260 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36261echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36262if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36264else
36265
36266
36267
36268 ac_ext=cc
36269ac_cpp='$CXXCPP $CPPFLAGS'
36270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36273
36274
36275 cat >conftest.$ac_ext <<_ACEOF
36276/* confdefs.h. */
36277_ACEOF
36278cat confdefs.h >>conftest.$ac_ext
36279cat >>conftest.$ac_ext <<_ACEOF
36280/* end confdefs.h. */
36281
36282 #include <sys/time.h>
36283 #include <unistd.h>
36284
36285int
36286main ()
36287{
36288
36289 struct timeval tv;
36290 gettimeofday(&tv, NULL);
36291
36292 ;
36293 return 0;
36294}
36295_ACEOF
36296rm -f conftest.$ac_objext
36297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36298 (eval $ac_compile) 2>conftest.er1
a848cd7e 36299 ac_status=$?
ac1cb8d3
VS
36300 grep -v '^ *+' conftest.er1 >conftest.err
36301 rm -f conftest.er1
36302 cat conftest.err >&5
a848cd7e
SC
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); } &&
ac1cb8d3
VS
36305 { ac_try='test -z "$ac_cxx_werror_flag"
36306 || test ! -s conftest.err'
36307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36308 (eval $ac_try) 2>&5
36309 ac_status=$?
36310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36311 (exit $ac_status); }; } &&
36312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36314 (eval $ac_try) 2>&5
36315 ac_status=$?
36316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); }; }; then
36318 wx_cv_func_gettimeofday_has_2_args=yes
36319else
36320 echo "$as_me: failed program was:" >&5
36321sed 's/^/| /' conftest.$ac_ext >&5
36322
36323cat >conftest.$ac_ext <<_ACEOF
36324/* confdefs.h. */
36325_ACEOF
36326cat confdefs.h >>conftest.$ac_ext
36327cat >>conftest.$ac_ext <<_ACEOF
36328/* end confdefs.h. */
36329
36330 #include <sys/time.h>
36331 #include <unistd.h>
36332
36333int
36334main ()
36335{
36336
36337 struct timeval tv;
36338 gettimeofday(&tv);
36339
36340 ;
36341 return 0;
36342}
36343_ACEOF
36344rm -f conftest.$ac_objext
36345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36346 (eval $ac_compile) 2>conftest.er1
a848cd7e 36347 ac_status=$?
ac1cb8d3
VS
36348 grep -v '^ *+' conftest.er1 >conftest.err
36349 rm -f conftest.er1
36350 cat conftest.err >&5
a848cd7e
SC
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } &&
ac1cb8d3
VS
36353 { ac_try='test -z "$ac_cxx_werror_flag"
36354 || test ! -s conftest.err'
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; } &&
36360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 wx_cv_func_gettimeofday_has_2_args=no
36367else
36368 echo "$as_me: failed program was:" >&5
36369sed 's/^/| /' conftest.$ac_ext >&5
36370
36371
36372 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36373echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36374 wx_cv_func_gettimeofday_has_2_args=unknown
36375
36376
36377fi
ac1cb8d3 36378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36379
36380fi
ac1cb8d3 36381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36382 ac_ext=c
36383ac_cpp='$CPP $CPPFLAGS'
36384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36386ac_compiler_gnu=$ac_cv_c_compiler_gnu
36387
36388
36389fi
36390echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36391echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36392
36393 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36394 cat >>confdefs.h <<\_ACEOF
36395#define WX_GETTIMEOFDAY_NO_TZ 1
36396_ACEOF
36397
36398 fi
36399 fi
36400
36401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36402fi
36403
36404
36405if test "$wxUSE_SOCKETS" = "yes"; then
36406 if test "$wxUSE_MGL" = "1"; then
36407 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36408echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36409 wxUSE_SOCKETS="no"
36410 fi
36411fi
36412
36413if test "$wxUSE_SOCKETS" = "yes"; then
36414 if test "$TOOLKIT" != "MSW"; then
36415 echo "$as_me:$LINENO: checking for socket" >&5
36416echo $ECHO_N "checking for socket... $ECHO_C" >&6
36417if test "${ac_cv_func_socket+set}" = set; then
36418 echo $ECHO_N "(cached) $ECHO_C" >&6
36419else
36420 cat >conftest.$ac_ext <<_ACEOF
36421/* confdefs.h. */
36422_ACEOF
36423cat confdefs.h >>conftest.$ac_ext
36424cat >>conftest.$ac_ext <<_ACEOF
36425/* end confdefs.h. */
ac1cb8d3
VS
36426/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36428#define socket innocuous_socket
36429
a848cd7e
SC
36430/* System header to define __stub macros and hopefully few prototypes,
36431 which can conflict with char socket (); below.
36432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36434
a848cd7e
SC
36435#ifdef __STDC__
36436# include <limits.h>
36437#else
36438# include <assert.h>
36439#endif
ac1cb8d3
VS
36440
36441#undef socket
36442
a848cd7e
SC
36443/* Override any gcc2 internal prototype to avoid an error. */
36444#ifdef __cplusplus
36445extern "C"
36446{
36447#endif
36448/* We use char because int might match the return type of a gcc2
36449 builtin and then its argument prototype would still apply. */
36450char socket ();
36451/* The GNU C library defines this for functions which it implements
36452 to always fail with ENOSYS. Some functions are actually named
36453 something starting with __ and the normal name is an alias. */
36454#if defined (__stub_socket) || defined (__stub___socket)
36455choke me
36456#else
36457char (*f) () = socket;
36458#endif
36459#ifdef __cplusplus
36460}
36461#endif
36462
36463int
36464main ()
36465{
36466return f != socket;
36467 ;
36468 return 0;
36469}
36470_ACEOF
36471rm -f conftest.$ac_objext conftest$ac_exeext
36472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36473 (eval $ac_link) 2>conftest.er1
a848cd7e 36474 ac_status=$?
ac1cb8d3
VS
36475 grep -v '^ *+' conftest.er1 >conftest.err
36476 rm -f conftest.er1
36477 cat conftest.err >&5
a848cd7e
SC
36478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36479 (exit $ac_status); } &&
ac1cb8d3
VS
36480 { ac_try='test -z "$ac_c_werror_flag"
36481 || test ! -s conftest.err'
36482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483 (eval $ac_try) 2>&5
36484 ac_status=$?
36485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 (exit $ac_status); }; } &&
36487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 (eval $ac_try) 2>&5
36490 ac_status=$?
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); }; }; then
36493 ac_cv_func_socket=yes
36494else
36495 echo "$as_me: failed program was:" >&5
36496sed 's/^/| /' conftest.$ac_ext >&5
36497
36498ac_cv_func_socket=no
36499fi
ac1cb8d3
VS
36500rm -f conftest.err conftest.$ac_objext \
36501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36502fi
36503echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36504echo "${ECHO_T}$ac_cv_func_socket" >&6
36505if test $ac_cv_func_socket = yes; then
36506 :
36507else
36508
36509 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36510echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36511if test "${ac_cv_lib_socket_socket+set}" = set; then
36512 echo $ECHO_N "(cached) $ECHO_C" >&6
36513else
36514 ac_check_lib_save_LIBS=$LIBS
36515LIBS="-lsocket $LIBS"
36516cat >conftest.$ac_ext <<_ACEOF
36517/* confdefs.h. */
36518_ACEOF
36519cat confdefs.h >>conftest.$ac_ext
36520cat >>conftest.$ac_ext <<_ACEOF
36521/* end confdefs.h. */
36522
36523/* Override any gcc2 internal prototype to avoid an error. */
36524#ifdef __cplusplus
36525extern "C"
36526#endif
36527/* We use char because int might match the return type of a gcc2
36528 builtin and then its argument prototype would still apply. */
36529char socket ();
36530int
36531main ()
36532{
36533socket ();
36534 ;
36535 return 0;
36536}
36537_ACEOF
36538rm -f conftest.$ac_objext conftest$ac_exeext
36539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36540 (eval $ac_link) 2>conftest.er1
a848cd7e 36541 ac_status=$?
ac1cb8d3
VS
36542 grep -v '^ *+' conftest.er1 >conftest.err
36543 rm -f conftest.er1
36544 cat conftest.err >&5
a848cd7e
SC
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } &&
ac1cb8d3
VS
36547 { ac_try='test -z "$ac_c_werror_flag"
36548 || test ! -s conftest.err'
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
36551 ac_status=$?
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; } &&
36554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; }; then
36560 ac_cv_lib_socket_socket=yes
36561else
36562 echo "$as_me: failed program was:" >&5
36563sed 's/^/| /' conftest.$ac_ext >&5
36564
36565ac_cv_lib_socket_socket=no
36566fi
ac1cb8d3
VS
36567rm -f conftest.err conftest.$ac_objext \
36568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36569LIBS=$ac_check_lib_save_LIBS
36570fi
36571echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36572echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36573if test $ac_cv_lib_socket_socket = yes; then
36574 if test "$INET_LINK" != " -lsocket"; then
36575 INET_LINK="$INET_LINK -lsocket"
36576 fi
36577else
36578
36579 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36580echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36581 wxUSE_SOCKETS=no
36582
36583
36584fi
36585
36586
36587
36588fi
36589
36590 fi
36591fi
36592
36593if test "$wxUSE_SOCKETS" = "yes" ; then
36594 if test "$TOOLKIT" != "MSW"; then
36595 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
36596echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36597if test "${wx_cv_type_getsockname3+set}" = set; then
36598 echo $ECHO_N "(cached) $ECHO_C" >&6
36599else
36600
36601 cat >conftest.$ac_ext <<_ACEOF
36602/* confdefs.h. */
36603_ACEOF
36604cat confdefs.h >>conftest.$ac_ext
36605cat >>conftest.$ac_ext <<_ACEOF
36606/* end confdefs.h. */
36607
36608 #include <sys/types.h>
36609 #include <sys/socket.h>
36610
36611int
36612main ()
36613{
36614
36615 socklen_t len;
36616 getsockname(0, 0, &len);
36617
36618 ;
36619 return 0;
36620}
36621_ACEOF
36622rm -f conftest.$ac_objext
36623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36624 (eval $ac_compile) 2>conftest.er1
a848cd7e 36625 ac_status=$?
ac1cb8d3
VS
36626 grep -v '^ *+' conftest.er1 >conftest.err
36627 rm -f conftest.er1
36628 cat conftest.err >&5
a848cd7e
SC
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); } &&
ac1cb8d3
VS
36631 { ac_try='test -z "$ac_c_werror_flag"
36632 || test ! -s conftest.err'
36633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634 (eval $ac_try) 2>&5
36635 ac_status=$?
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); }; } &&
36638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640 (eval $ac_try) 2>&5
36641 ac_status=$?
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); }; }; then
36644 wx_cv_type_getsockname3=socklen_t
36645else
36646 echo "$as_me: failed program was:" >&5
36647sed 's/^/| /' conftest.$ac_ext >&5
36648
36649
36650 CFLAGS_OLD="$CFLAGS"
36651 if test "$GCC" = yes ; then
36652 CFLAGS="$CFLAGS -Werror"
36653 fi
36654
36655 cat >conftest.$ac_ext <<_ACEOF
36656/* confdefs.h. */
36657_ACEOF
36658cat confdefs.h >>conftest.$ac_ext
36659cat >>conftest.$ac_ext <<_ACEOF
36660/* end confdefs.h. */
36661
36662 #include <sys/types.h>
36663 #include <sys/socket.h>
36664
36665int
36666main ()
36667{
36668
36669 size_t len;
36670 getsockname(0, 0, &len);
36671
36672 ;
36673 return 0;
36674}
36675_ACEOF
36676rm -f conftest.$ac_objext
36677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36678 (eval $ac_compile) 2>conftest.er1
a848cd7e 36679 ac_status=$?
ac1cb8d3
VS
36680 grep -v '^ *+' conftest.er1 >conftest.err
36681 rm -f conftest.er1
36682 cat conftest.err >&5
a848cd7e
SC
36683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); } &&
ac1cb8d3
VS
36685 { ac_try='test -z "$ac_c_werror_flag"
36686 || test ! -s conftest.err'
36687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36688 (eval $ac_try) 2>&5
36689 ac_status=$?
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); }; } &&
36692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694 (eval $ac_try) 2>&5
36695 ac_status=$?
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); }; }; then
36698 wx_cv_type_getsockname3=size_t
36699else
36700 echo "$as_me: failed program was:" >&5
36701sed 's/^/| /' conftest.$ac_ext >&5
36702
36703cat >conftest.$ac_ext <<_ACEOF
36704/* confdefs.h. */
36705_ACEOF
36706cat confdefs.h >>conftest.$ac_ext
36707cat >>conftest.$ac_ext <<_ACEOF
36708/* end confdefs.h. */
36709
36710 #include <sys/types.h>
36711 #include <sys/socket.h>
36712
36713int
36714main ()
36715{
36716
36717 int len;
36718 getsockname(0, 0, &len);
36719
36720 ;
36721 return 0;
36722}
36723_ACEOF
36724rm -f conftest.$ac_objext
36725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36726 (eval $ac_compile) 2>conftest.er1
a848cd7e 36727 ac_status=$?
ac1cb8d3
VS
36728 grep -v '^ *+' conftest.er1 >conftest.err
36729 rm -f conftest.er1
36730 cat conftest.err >&5
a848cd7e
SC
36731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732 (exit $ac_status); } &&
ac1cb8d3
VS
36733 { ac_try='test -z "$ac_c_werror_flag"
36734 || test ! -s conftest.err'
36735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36736 (eval $ac_try) 2>&5
36737 ac_status=$?
36738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36739 (exit $ac_status); }; } &&
36740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
36746 wx_cv_type_getsockname3=int
36747else
36748 echo "$as_me: failed program was:" >&5
36749sed 's/^/| /' conftest.$ac_ext >&5
36750
36751wx_cv_type_getsockname3=unknown
36752
36753fi
ac1cb8d3 36754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36755
36756fi
ac1cb8d3 36757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36758
36759 CFLAGS="$CFLAGS_OLD"
36760
36761
36762fi
ac1cb8d3 36763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36764
36765fi
36766echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36767echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36768
36769 if test "$wx_cv_type_getsockname3" = "unknown"; then
36770 wxUSE_SOCKETS=no
36771 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36772echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36773 else
36774 cat >>confdefs.h <<_ACEOF
36775#define SOCKLEN_T $wx_cv_type_getsockname3
36776_ACEOF
36777
36778 fi
36779 fi
36780fi
36781
36782if test "$wxUSE_SOCKETS" = "yes" ; then
36783 cat >>confdefs.h <<\_ACEOF
36784#define wxUSE_SOCKETS 1
36785_ACEOF
36786
36787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36788fi
36789
36790if test "$wxUSE_PROTOCOL" = "yes"; then
36791 if test "$wxUSE_SOCKETS" != "yes"; then
36792 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36793echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36794 wxUSE_PROTOCOL=no
36795 fi
36796fi
36797
36798if test "$wxUSE_PROTOCOL" = "yes"; then
36799 cat >>confdefs.h <<\_ACEOF
36800#define wxUSE_PROTOCOL 1
36801_ACEOF
36802
36803
36804 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36805 cat >>confdefs.h <<\_ACEOF
36806#define wxUSE_PROTOCOL_HTTP 1
36807_ACEOF
36808
36809 fi
36810 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36811 cat >>confdefs.h <<\_ACEOF
36812#define wxUSE_PROTOCOL_FTP 1
36813_ACEOF
36814
36815 fi
36816 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36817 cat >>confdefs.h <<\_ACEOF
36818#define wxUSE_PROTOCOL_FILE 1
36819_ACEOF
36820
36821 fi
36822else
36823 if test "$wxUSE_FS_INET" = "yes"; then
36824 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36825echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36826 wxUSE_FS_INET="no"
36827 fi
36828fi
36829
36830if test "$wxUSE_URL" = "yes"; then
36831 if test "$wxUSE_PROTOCOL" != "yes"; then
36832 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36833echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36834 wxUSE_URL=no
36835 fi
36836 if test "$wxUSE_URL" = "yes"; then
36837 cat >>confdefs.h <<\_ACEOF
36838#define wxUSE_URL 1
36839_ACEOF
36840
36841 fi
36842fi
36843
36844if test "$wxUSE_FS_INET" = "yes"; then
36845 cat >>confdefs.h <<\_ACEOF
36846#define wxUSE_FS_INET 1
36847_ACEOF
36848
36849fi
36850
36851
36852if test "$wxUSE_GUI" = "yes"; then
36853
36854 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36855 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36856echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36857 wxUSE_JOYSTICK=no
36858 fi
36859
36860 if test "$TOOLKIT" != "MSW"; then
36861 if test "$wxUSE_JOYSTICK" = "yes"; then
36862
36863for ac_header in linux/joystick.h
36864do
36865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36866if eval "test \"\${$as_ac_Header+set}\" = set"; then
36867 echo "$as_me:$LINENO: checking for $ac_header" >&5
36868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36869if eval "test \"\${$as_ac_Header+set}\" = set"; then
36870 echo $ECHO_N "(cached) $ECHO_C" >&6
36871fi
36872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36874else
36875 # Is the header compilable?
36876echo "$as_me:$LINENO: checking $ac_header usability" >&5
36877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36878cat >conftest.$ac_ext <<_ACEOF
36879/* confdefs.h. */
36880_ACEOF
36881cat confdefs.h >>conftest.$ac_ext
36882cat >>conftest.$ac_ext <<_ACEOF
36883/* end confdefs.h. */
36884$ac_includes_default
36885#include <$ac_header>
36886_ACEOF
36887rm -f conftest.$ac_objext
36888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36889 (eval $ac_compile) 2>conftest.er1
a848cd7e 36890 ac_status=$?
ac1cb8d3
VS
36891 grep -v '^ *+' conftest.er1 >conftest.err
36892 rm -f conftest.er1
36893 cat conftest.err >&5
a848cd7e
SC
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); } &&
ac1cb8d3
VS
36896 { ac_try='test -z "$ac_c_werror_flag"
36897 || test ! -s conftest.err'
36898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36899 (eval $ac_try) 2>&5
36900 ac_status=$?
36901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902 (exit $ac_status); }; } &&
36903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36905 (eval $ac_try) 2>&5
36906 ac_status=$?
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); }; }; then
36909 ac_header_compiler=yes
36910else
36911 echo "$as_me: failed program was:" >&5
36912sed 's/^/| /' conftest.$ac_ext >&5
36913
36914ac_header_compiler=no
36915fi
ac1cb8d3 36916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36918echo "${ECHO_T}$ac_header_compiler" >&6
36919
36920# Is the header present?
36921echo "$as_me:$LINENO: checking $ac_header presence" >&5
36922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36923cat >conftest.$ac_ext <<_ACEOF
36924/* confdefs.h. */
36925_ACEOF
36926cat confdefs.h >>conftest.$ac_ext
36927cat >>conftest.$ac_ext <<_ACEOF
36928/* end confdefs.h. */
36929#include <$ac_header>
36930_ACEOF
36931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36933 ac_status=$?
36934 grep -v '^ *+' conftest.er1 >conftest.err
36935 rm -f conftest.er1
36936 cat conftest.err >&5
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); } >/dev/null; then
36939 if test -s conftest.err; then
36940 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36942 else
36943 ac_cpp_err=
36944 fi
36945else
36946 ac_cpp_err=yes
36947fi
36948if test -z "$ac_cpp_err"; then
36949 ac_header_preproc=yes
36950else
36951 echo "$as_me: failed program was:" >&5
36952sed 's/^/| /' conftest.$ac_ext >&5
36953
36954 ac_header_preproc=no
36955fi
36956rm -f conftest.err conftest.$ac_ext
36957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36958echo "${ECHO_T}$ac_header_preproc" >&6
36959
36960# So? What about this header?
ac1cb8d3
VS
36961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36962 yes:no: )
a848cd7e
SC
36963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36967 ac_header_preproc=yes
a848cd7e 36968 ;;
ac1cb8d3 36969 no:yes:* )
a848cd7e
SC
36970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36982 (
36983 cat <<\_ASBOX
ac1cb8d3
VS
36984## ----------------------------------------- ##
36985## Report this to wx-dev@lists.wxwidgets.org ##
36986## ----------------------------------------- ##
a848cd7e
SC
36987_ASBOX
36988 ) |
36989 sed "s/^/$as_me: WARNING: /" >&2
36990 ;;
36991esac
36992echo "$as_me:$LINENO: checking for $ac_header" >&5
36993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36994if eval "test \"\${$as_ac_Header+set}\" = set"; then
36995 echo $ECHO_N "(cached) $ECHO_C" >&6
36996else
ac1cb8d3 36997 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36998fi
36999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37001
37002fi
37003if test `eval echo '${'$as_ac_Header'}'` = yes; then
37004 cat >>confdefs.h <<_ACEOF
37005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37006_ACEOF
37007
37008fi
37009
37010done
37011
37012 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37013 wxUSE_JOYSTICK=no
37014 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37015echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37016 fi
37017 fi
37018 fi
37019
37020 if test "$wxUSE_JOYSTICK" = "yes"; then
37021 cat >>confdefs.h <<\_ACEOF
37022#define wxUSE_JOYSTICK 1
37023_ACEOF
37024
37025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37026 fi
37027fi
37028
37029
37030
37031if test "$wxUSE_FONTMAP" = "yes" ; then
37032 cat >>confdefs.h <<\_ACEOF
37033#define wxUSE_FONTMAP 1
37034_ACEOF
37035
37036fi
37037
37038if test "$wxUSE_UNICODE" = "yes" ; then
37039 cat >>confdefs.h <<\_ACEOF
37040#define wxUSE_UNICODE 1
37041_ACEOF
37042
37043
37044 if test "$USE_WIN32" != 1; then
37045 wxUSE_UNICODE_MSLU=no
37046 fi
37047
37048 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37049 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37050echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37051if test "${ac_cv_lib_unicows_main+set}" = set; then
37052 echo $ECHO_N "(cached) $ECHO_C" >&6
37053else
37054 ac_check_lib_save_LIBS=$LIBS
37055LIBS="-lunicows $LIBS"
37056cat >conftest.$ac_ext <<_ACEOF
37057/* confdefs.h. */
37058_ACEOF
37059cat confdefs.h >>conftest.$ac_ext
37060cat >>conftest.$ac_ext <<_ACEOF
37061/* end confdefs.h. */
37062
37063
37064int
37065main ()
37066{
37067main ();
37068 ;
37069 return 0;
37070}
37071_ACEOF
37072rm -f conftest.$ac_objext conftest$ac_exeext
37073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37074 (eval $ac_link) 2>conftest.er1
a848cd7e 37075 ac_status=$?
ac1cb8d3
VS
37076 grep -v '^ *+' conftest.er1 >conftest.err
37077 rm -f conftest.er1
37078 cat conftest.err >&5
a848cd7e
SC
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); } &&
ac1cb8d3
VS
37081 { ac_try='test -z "$ac_c_werror_flag"
37082 || test ! -s conftest.err'
37083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37084 (eval $ac_try) 2>&5
37085 ac_status=$?
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); }; } &&
37088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37090 (eval $ac_try) 2>&5
37091 ac_status=$?
37092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 (exit $ac_status); }; }; then
37094 ac_cv_lib_unicows_main=yes
37095else
37096 echo "$as_me: failed program was:" >&5
37097sed 's/^/| /' conftest.$ac_ext >&5
37098
37099ac_cv_lib_unicows_main=no
37100fi
ac1cb8d3
VS
37101rm -f conftest.err conftest.$ac_objext \
37102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37103LIBS=$ac_check_lib_save_LIBS
37104fi
37105echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37106echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37107if test $ac_cv_lib_unicows_main = yes; then
37108
37109 cat >>confdefs.h <<\_ACEOF
37110#define wxUSE_UNICODE_MSLU 1
37111_ACEOF
37112
37113
37114else
37115
37116 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37117 Applications will only run on Windows NT/2000/XP!" >&5
37118echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37119 Applications will only run on Windows NT/2000/XP!" >&2;}
37120 wxUSE_UNICODE_MSLU=no
37121
37122fi
37123
37124 fi
37125fi
37126
37127if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37128 cat >>confdefs.h <<\_ACEOF
37129#define wxUSE_EXPERIMENTAL_PRINTF 1
37130_ACEOF
37131
37132fi
37133
37134
37135if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37136 cat >>confdefs.h <<\_ACEOF
37137#define wxUSE_POSTSCRIPT 1
37138_ACEOF
37139
37140fi
37141
37142cat >>confdefs.h <<\_ACEOF
37143#define wxUSE_AFM_FOR_POSTSCRIPT 1
37144_ACEOF
37145
37146
37147cat >>confdefs.h <<\_ACEOF
37148#define wxUSE_NORMALIZED_PS_FONTS 1
37149_ACEOF
37150
37151
37152
37153if test "$wxUSE_CONSTRAINTS" = "yes"; then
37154 cat >>confdefs.h <<\_ACEOF
37155#define wxUSE_CONSTRAINTS 1
37156_ACEOF
37157
37158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37159fi
37160
8a7b1113
VZ
37161if test "$wxUSE_MDI" = "yes"; then
37162 cat >>confdefs.h <<\_ACEOF
37163#define wxUSE_MDI 1
37164_ACEOF
37165
37166
37167 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37168 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37169#define wxUSE_MDI_ARCHITECTURE 1
37170_ACEOF
37171
8a7b1113
VZ
37172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37173 fi
a848cd7e
SC
37174fi
37175
37176if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37177 cat >>confdefs.h <<\_ACEOF
37178#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37179_ACEOF
37180
37181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37182 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37184 fi
37185fi
37186
37187if test "$wxUSE_HELP" = "yes"; then
37188 cat >>confdefs.h <<\_ACEOF
37189#define wxUSE_HELP 1
37190_ACEOF
37191
37192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37193
37194 if test "$wxUSE_MSW" = 1; then
37195 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37196 cat >>confdefs.h <<\_ACEOF
37197#define wxUSE_MS_HTML_HELP 1
37198_ACEOF
37199
37200 fi
37201 fi
37202
37203 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37204 if test "$wxUSE_HTML" = "yes"; then
37205 cat >>confdefs.h <<\_ACEOF
37206#define wxUSE_WXHTML_HELP 1
37207_ACEOF
37208
37209 else
37210 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37211echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37212 wxUSE_WXHTML_HELP=no
37213 fi
37214 fi
37215fi
37216
37217if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37218 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37219 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37220echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37221 else
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxUSE_PRINTING_ARCHITECTURE 1
37224_ACEOF
37225
37226 fi
37227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37228fi
37229
37230if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37231 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37232echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37233 { (exit 1); exit 1; }; }
37234fi
37235
37236
37237if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37238 -o "$wxUSE_CLIPBOARD" = "yes" \
37239 -o "$wxUSE_OLE" = "yes" \
37240 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37241
37242for ac_header in ole2.h
37243do
37244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37245if eval "test \"\${$as_ac_Header+set}\" = set"; then
37246 echo "$as_me:$LINENO: checking for $ac_header" >&5
37247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37248if eval "test \"\${$as_ac_Header+set}\" = set"; then
37249 echo $ECHO_N "(cached) $ECHO_C" >&6
37250fi
37251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37253else
37254 # Is the header compilable?
37255echo "$as_me:$LINENO: checking $ac_header usability" >&5
37256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37257cat >conftest.$ac_ext <<_ACEOF
37258/* confdefs.h. */
37259_ACEOF
37260cat confdefs.h >>conftest.$ac_ext
37261cat >>conftest.$ac_ext <<_ACEOF
37262/* end confdefs.h. */
37263$ac_includes_default
37264#include <$ac_header>
37265_ACEOF
37266rm -f conftest.$ac_objext
37267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37268 (eval $ac_compile) 2>conftest.er1
a848cd7e 37269 ac_status=$?
ac1cb8d3
VS
37270 grep -v '^ *+' conftest.er1 >conftest.err
37271 rm -f conftest.er1
37272 cat conftest.err >&5
a848cd7e
SC
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); } &&
ac1cb8d3
VS
37275 { ac_try='test -z "$ac_c_werror_flag"
37276 || test ! -s conftest.err'
37277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37278 (eval $ac_try) 2>&5
37279 ac_status=$?
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); }; } &&
37282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284 (eval $ac_try) 2>&5
37285 ac_status=$?
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); }; }; then
37288 ac_header_compiler=yes
37289else
37290 echo "$as_me: failed program was:" >&5
37291sed 's/^/| /' conftest.$ac_ext >&5
37292
37293ac_header_compiler=no
37294fi
ac1cb8d3 37295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37297echo "${ECHO_T}$ac_header_compiler" >&6
37298
37299# Is the header present?
37300echo "$as_me:$LINENO: checking $ac_header presence" >&5
37301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37302cat >conftest.$ac_ext <<_ACEOF
37303/* confdefs.h. */
37304_ACEOF
37305cat confdefs.h >>conftest.$ac_ext
37306cat >>conftest.$ac_ext <<_ACEOF
37307/* end confdefs.h. */
37308#include <$ac_header>
37309_ACEOF
37310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37312 ac_status=$?
37313 grep -v '^ *+' conftest.er1 >conftest.err
37314 rm -f conftest.er1
37315 cat conftest.err >&5
37316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317 (exit $ac_status); } >/dev/null; then
37318 if test -s conftest.err; then
37319 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37321 else
37322 ac_cpp_err=
37323 fi
37324else
37325 ac_cpp_err=yes
37326fi
37327if test -z "$ac_cpp_err"; then
37328 ac_header_preproc=yes
37329else
37330 echo "$as_me: failed program was:" >&5
37331sed 's/^/| /' conftest.$ac_ext >&5
37332
37333 ac_header_preproc=no
37334fi
37335rm -f conftest.err conftest.$ac_ext
37336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37337echo "${ECHO_T}$ac_header_preproc" >&6
37338
37339# So? What about this header?
ac1cb8d3
VS
37340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37341 yes:no: )
a848cd7e
SC
37342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37346 ac_header_preproc=yes
a848cd7e 37347 ;;
ac1cb8d3 37348 no:yes:* )
a848cd7e
SC
37349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37361 (
37362 cat <<\_ASBOX
ac1cb8d3
VS
37363## ----------------------------------------- ##
37364## Report this to wx-dev@lists.wxwidgets.org ##
37365## ----------------------------------------- ##
a848cd7e
SC
37366_ASBOX
37367 ) |
37368 sed "s/^/$as_me: WARNING: /" >&2
37369 ;;
37370esac
37371echo "$as_me:$LINENO: checking for $ac_header" >&5
37372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37373if eval "test \"\${$as_ac_Header+set}\" = set"; then
37374 echo $ECHO_N "(cached) $ECHO_C" >&6
37375else
ac1cb8d3 37376 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37377fi
37378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37380
37381fi
37382if test `eval echo '${'$as_ac_Header'}'` = yes; then
37383 cat >>confdefs.h <<_ACEOF
37384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37385_ACEOF
37386
37387fi
37388
37389done
37390
37391
37392 if test "$ac_cv_header_ole2_h" = "yes" ; then
37393 if test "$GCC" = yes ; then
37394
37395
37396 ac_ext=cc
37397ac_cpp='$CXXCPP $CPPFLAGS'
37398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37401
37402
37403 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37404echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
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. */
37411#include <windows.h>
37412 #include <ole2.h>
37413int
37414main ()
37415{
37416
37417 ;
37418 return 0;
37419}
37420_ACEOF
37421rm -f conftest.$ac_objext
37422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37423 (eval $ac_compile) 2>conftest.er1
a848cd7e 37424 ac_status=$?
ac1cb8d3
VS
37425 grep -v '^ *+' conftest.er1 >conftest.err
37426 rm -f conftest.er1
37427 cat conftest.err >&5
a848cd7e
SC
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); } &&
ac1cb8d3
VS
37430 { ac_try='test -z "$ac_cxx_werror_flag"
37431 || test ! -s conftest.err'
37432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37433 (eval $ac_try) 2>&5
37434 ac_status=$?
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); }; } &&
37437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37440 ac_status=$?
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; }; then
37443 echo "$as_me:$LINENO: result: no" >&5
37444echo "${ECHO_T}no" >&6
37445else
37446 echo "$as_me: failed program was:" >&5
37447sed 's/^/| /' conftest.$ac_ext >&5
37448
37449echo "$as_me:$LINENO: result: yes" >&5
37450echo "${ECHO_T}yes" >&6
37451 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37452fi
ac1cb8d3 37453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37454 ac_ext=c
37455ac_cpp='$CPP $CPPFLAGS'
37456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37458ac_compiler_gnu=$ac_cv_c_compiler_gnu
37459
37460 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
37461 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37462 if test "$wxUSE_OLE" = "yes" ; then
37463 cat >>confdefs.h <<\_ACEOF
37464#define wxUSE_OLE 1
37465_ACEOF
37466
37467 fi
37468 fi
37469
37470 if test "$wxUSE_DATAOBJ" = "yes" ; then
37471 cat >>confdefs.h <<\_ACEOF
37472#define wxUSE_DATAOBJ 1
37473_ACEOF
37474
37475 fi
37476 else
37477 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37478echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37479
37480 wxUSE_CLIPBOARD=no
37481 wxUSE_DRAG_AND_DROP=no
37482 wxUSE_DATAOBJ=no
37483 wxUSE_OLE=no
37484 fi
37485
37486 if test "$wxUSE_METAFILE" = "yes"; then
37487 cat >>confdefs.h <<\_ACEOF
37488#define wxUSE_METAFILE 1
37489_ACEOF
37490
37491
37492 cat >>confdefs.h <<\_ACEOF
37493#define wxUSE_ENH_METAFILE 1
37494_ACEOF
37495
37496 fi
37497fi
37498
37499if test "$wxUSE_IPC" = "yes"; then
37500 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37501 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37502echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37503 fi
37504
37505 cat >>confdefs.h <<\_ACEOF
37506#define wxUSE_IPC 1
37507_ACEOF
37508
37509fi
37510
37511if test "$wxUSE_CLIPBOARD" = "yes"; then
37512 if test "$wxUSE_MGL" = 1; then
37513 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37514echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37515 wxUSE_CLIPBOARD=no
37516 fi
37517
37518 if test "$wxUSE_CLIPBOARD" = "yes"; then
37519 cat >>confdefs.h <<\_ACEOF
37520#define wxUSE_CLIPBOARD 1
37521_ACEOF
37522
37523
37524 cat >>confdefs.h <<\_ACEOF
37525#define wxUSE_DATAOBJ 1
37526_ACEOF
37527
37528 fi
37529fi
37530
37531if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37532 if test "$wxUSE_GTK" = 1; then
37533 if test "$WXGTK12" != 1; then
37534 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37535echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37536 wxUSE_DRAG_AND_DROP=no
37537 fi
37538 fi
37539
37540 if test "$wxUSE_MOTIF" = 1; then
37541 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37542echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37543 wxUSE_DRAG_AND_DROP=no
37544 fi
37545
37546 if test "$wxUSE_X11" = 1; then
37547 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37548echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37549 wxUSE_DRAG_AND_DROP=no
37550 fi
37551
37552 if test "$wxUSE_MGL" = 1; then
37553 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37554echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37555 wxUSE_DRAG_AND_DROP=no
37556 fi
37557
37558 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37559 cat >>confdefs.h <<\_ACEOF
37560#define wxUSE_DRAG_AND_DROP 1
37561_ACEOF
37562
37563 fi
37564
37565fi
37566
37567if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37569fi
37570
37571if test "$wxUSE_SPLINES" = "yes" ; then
37572 cat >>confdefs.h <<\_ACEOF
37573#define wxUSE_SPLINES 1
37574_ACEOF
37575
37576fi
37577
37578
37579USES_CONTROLS=0
37580if test "$wxUSE_CONTROLS" = "yes"; then
37581 USES_CONTROLS=1
37582fi
37583
37584if test "$wxUSE_ACCEL" = "yes"; then
37585 cat >>confdefs.h <<\_ACEOF
37586#define wxUSE_ACCEL 1
37587_ACEOF
37588
37589 USES_CONTROLS=1
37590fi
37591
37592if test "$wxUSE_BUTTON" = "yes"; then
37593 cat >>confdefs.h <<\_ACEOF
37594#define wxUSE_BUTTON 1
37595_ACEOF
37596
37597 USES_CONTROLS=1
37598fi
37599
37600if test "$wxUSE_BMPBUTTON" = "yes"; then
37601 cat >>confdefs.h <<\_ACEOF
37602#define wxUSE_BMPBUTTON 1
37603_ACEOF
37604
37605 USES_CONTROLS=1
37606fi
37607
37608if test "$wxUSE_CALCTRL" = "yes"; then
37609 cat >>confdefs.h <<\_ACEOF
37610#define wxUSE_CALENDARCTRL 1
37611_ACEOF
37612
37613 USES_CONTROLS=1
37614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37615fi
37616
37617if test "$wxUSE_CARET" = "yes"; then
37618 cat >>confdefs.h <<\_ACEOF
37619#define wxUSE_CARET 1
37620_ACEOF
37621
37622 USES_CONTROLS=1
37623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37624fi
37625
37626if test "$wxUSE_COMBOBOX" = "yes"; then
37627 cat >>confdefs.h <<\_ACEOF
37628#define wxUSE_COMBOBOX 1
37629_ACEOF
37630
37631 USES_CONTROLS=1
37632fi
37633
37634if test "$wxUSE_CHOICE" = "yes"; then
37635 cat >>confdefs.h <<\_ACEOF
37636#define wxUSE_CHOICE 1
37637_ACEOF
37638
37639 USES_CONTROLS=1
37640fi
37641
37642if test "$wxUSE_CHECKBOX" = "yes"; then
37643 cat >>confdefs.h <<\_ACEOF
37644#define wxUSE_CHECKBOX 1
37645_ACEOF
37646
37647 USES_CONTROLS=1
37648fi
37649
37650if test "$wxUSE_CHECKLST" = "yes"; then
37651 cat >>confdefs.h <<\_ACEOF
37652#define wxUSE_CHECKLISTBOX 1
37653_ACEOF
37654
37655 USES_CONTROLS=1
37656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37657fi
37658
37659if test "$wxUSE_DISPLAY" = "yes"; then
37660 cat >>confdefs.h <<\_ACEOF
37661#define wxUSE_DISPLAY 1
37662_ACEOF
37663
37664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37665fi
37666
37667if test "$wxUSE_GAUGE" = "yes"; then
37668 cat >>confdefs.h <<\_ACEOF
37669#define wxUSE_GAUGE 1
37670_ACEOF
37671
37672 USES_CONTROLS=1
37673fi
37674
37675if test "$wxUSE_GRID" = "yes"; then
37676 cat >>confdefs.h <<\_ACEOF
37677#define wxUSE_GRID 1
37678_ACEOF
37679
37680 USES_CONTROLS=1
37681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37682fi
37683
37684if test "$wxUSE_IMAGLIST" = "yes"; then
37685 cat >>confdefs.h <<\_ACEOF
37686#define wxUSE_IMAGLIST 1
37687_ACEOF
37688
37689fi
37690
37691if test "$wxUSE_LISTBOOK" = "yes"; then
37692 cat >>confdefs.h <<\_ACEOF
37693#define wxUSE_LISTBOOK 1
37694_ACEOF
37695
37696 USES_CONTROLS=1
37697fi
37698
37699if test "$wxUSE_LISTBOX" = "yes"; then
37700 cat >>confdefs.h <<\_ACEOF
37701#define wxUSE_LISTBOX 1
37702_ACEOF
37703
37704 USES_CONTROLS=1
37705fi
37706
37707if test "$wxUSE_LISTCTRL" = "yes"; then
37708 if test "$wxUSE_IMAGLIST" = "yes"; then
37709 cat >>confdefs.h <<\_ACEOF
37710#define wxUSE_LISTCTRL 1
37711_ACEOF
37712
37713 USES_CONTROLS=1
37714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37715 else
37716 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37717echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37718 fi
37719fi
37720
37721if test "$wxUSE_NOTEBOOK" = "yes"; then
37722 cat >>confdefs.h <<\_ACEOF
37723#define wxUSE_NOTEBOOK 1
37724_ACEOF
37725
37726 USES_CONTROLS=1
37727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37728fi
37729
37730
37731if test "$wxUSE_RADIOBOX" = "yes"; then
37732 cat >>confdefs.h <<\_ACEOF
37733#define wxUSE_RADIOBOX 1
37734_ACEOF
37735
37736 USES_CONTROLS=1
37737fi
37738
37739if test "$wxUSE_RADIOBTN" = "yes"; then
37740 cat >>confdefs.h <<\_ACEOF
37741#define wxUSE_RADIOBTN 1
37742_ACEOF
37743
37744 USES_CONTROLS=1
37745fi
37746
37747if test "$wxUSE_SASH" = "yes"; then
37748 cat >>confdefs.h <<\_ACEOF
37749#define wxUSE_SASH 1
37750_ACEOF
37751
37752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37753fi
37754
37755if test "$wxUSE_SCROLLBAR" = "yes"; then
37756 cat >>confdefs.h <<\_ACEOF
37757#define wxUSE_SCROLLBAR 1
37758_ACEOF
37759
37760 USES_CONTROLS=1
37761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37762fi
37763
37764if test "$wxUSE_SLIDER" = "yes"; then
37765 cat >>confdefs.h <<\_ACEOF
37766#define wxUSE_SLIDER 1
37767_ACEOF
37768
37769 USES_CONTROLS=1
37770fi
37771
37772if test "$wxUSE_SPINBTN" = "yes"; then
37773 cat >>confdefs.h <<\_ACEOF
37774#define wxUSE_SPINBTN 1
37775_ACEOF
37776
37777 USES_CONTROLS=1
37778fi
37779
37780if test "$wxUSE_SPINCTRL" = "yes"; then
37781 cat >>confdefs.h <<\_ACEOF
37782#define wxUSE_SPINCTRL 1
37783_ACEOF
37784
37785 USES_CONTROLS=1
37786fi
37787
37788if test "$wxUSE_SPLITTER" = "yes"; then
37789 cat >>confdefs.h <<\_ACEOF
37790#define wxUSE_SPLITTER 1
37791_ACEOF
37792
37793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37794fi
37795
37796if test "$wxUSE_STATBMP" = "yes"; then
37797 cat >>confdefs.h <<\_ACEOF
37798#define wxUSE_STATBMP 1
37799_ACEOF
37800
37801 USES_CONTROLS=1
37802fi
37803
37804if test "$wxUSE_STATBOX" = "yes"; then
37805 cat >>confdefs.h <<\_ACEOF
37806#define wxUSE_STATBOX 1
37807_ACEOF
37808
37809 USES_CONTROLS=1
37810fi
37811
37812if test "$wxUSE_STATTEXT" = "yes"; then
37813 cat >>confdefs.h <<\_ACEOF
37814#define wxUSE_STATTEXT 1
37815_ACEOF
37816
37817 USES_CONTROLS=1
37818fi
37819
37820if test "$wxUSE_STATLINE" = "yes"; then
37821 cat >>confdefs.h <<\_ACEOF
37822#define wxUSE_STATLINE 1
37823_ACEOF
37824
37825 USES_CONTROLS=1
37826fi
37827
37828if test "$wxUSE_STATUSBAR" = "yes"; then
37829 cat >>confdefs.h <<\_ACEOF
37830#define wxUSE_STATUSBAR 1
37831_ACEOF
37832
37833 USES_CONTROLS=1
37834
37835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37836fi
37837
37838if test "$wxUSE_TABDIALOG" = "yes"; then
37839 cat >>confdefs.h <<\_ACEOF
37840#define wxUSE_TAB_DIALOG 1
37841_ACEOF
37842
37843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37844fi
37845
37846if test "$wxUSE_TEXTCTRL" = "yes"; then
37847 cat >>confdefs.h <<\_ACEOF
37848#define wxUSE_TEXTCTRL 1
37849_ACEOF
37850
37851 USES_CONTROLS=1
37852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37853fi
37854
37855if test "$wxUSE_TOGGLEBTN" = "yes"; then
37856 if test "$wxUSE_COCOA" = 1 ; then
37857 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37858echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37859 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37860 else
37861 if test "$wxUSE_PM" = 1; then
37862 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37863echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37864 wxUSE_TOGGLEBTN=no
37865 fi
a848cd7e
SC
37866 fi
37867 if test "$wxUSE_UNIVERSAL" = "yes"; then
37868 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37869echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37870 wxUSE_TOGGLEBTN=no
37871 fi
37872
37873 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37874 cat >>confdefs.h <<\_ACEOF
37875#define wxUSE_TOGGLEBTN 1
37876_ACEOF
37877
37878 USES_CONTROLS=1
37879 fi
37880fi
37881
37882if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37883 cat >>confdefs.h <<\_ACEOF
37884#define wxUSE_TOOLBAR_SIMPLE 1
37885_ACEOF
37886
37887 wxUSE_TOOLBAR="yes"
37888 USES_CONTROLS=1
37889fi
37890
37891if test "$wxUSE_TOOLBAR" = "yes"; then
37892 cat >>confdefs.h <<\_ACEOF
37893#define wxUSE_TOOLBAR 1
37894_ACEOF
37895
37896 USES_CONTROLS=1
37897
37898 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37899 wxUSE_TOOLBAR_NATIVE="yes"
37900 fi
37901
37902 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37903 cat >>confdefs.h <<\_ACEOF
37904#define wxUSE_TOOLBAR_NATIVE 1
37905_ACEOF
37906
37907 USES_CONTROLS=1
37908 fi
37909
37910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37911fi
37912
37913if test "$wxUSE_TOOLTIPS" = "yes"; then
37914 if test "$wxUSE_MOTIF" = 1; then
37915 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37916echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37917 else
37918 if test "$wxUSE_UNIVERSAL" = "yes"; then
37919 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37920echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37921 else
37922 cat >>confdefs.h <<\_ACEOF
37923#define wxUSE_TOOLTIPS 1
37924_ACEOF
37925
37926 fi
37927 fi
37928fi
37929
37930if test "$wxUSE_TREECTRL" = "yes"; then
37931 if test "$wxUSE_IMAGLIST" = "yes"; then
37932 cat >>confdefs.h <<\_ACEOF
37933#define wxUSE_TREECTRL 1
37934_ACEOF
37935
37936 USES_CONTROLS=1
37937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37938 else
37939 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37940echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37941 fi
37942fi
37943
37944if test "$wxUSE_POPUPWIN" = "yes"; then
37945 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37946 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37947echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37948 else
37949 if test "$wxUSE_PM" = 1; then
37950 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37951echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37952 else
37953 cat >>confdefs.h <<\_ACEOF
37954#define wxUSE_POPUPWIN 1
37955_ACEOF
37956
37957
37958 USES_CONTROLS=1
37959 fi
37960 fi
37961fi
37962
37963if test "$wxUSE_TIPWINDOW" = "yes"; then
37964 if test "$wxUSE_PM" = 1; then
37965 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37966echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37967 else
37968 cat >>confdefs.h <<\_ACEOF
37969#define wxUSE_TIPWINDOW 1
37970_ACEOF
37971
37972 fi
37973fi
37974
37975if test "$USES_CONTROLS" = 1; then
37976 cat >>confdefs.h <<\_ACEOF
37977#define wxUSE_CONTROLS 1
37978_ACEOF
37979
37980fi
37981
37982
37983if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37984 cat >>confdefs.h <<\_ACEOF
37985#define wxUSE_ACCESSIBILITY 1
37986_ACEOF
37987
37988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37989fi
37990
37991if test "$wxUSE_DRAGIMAGE" = "yes"; then
37992 cat >>confdefs.h <<\_ACEOF
37993#define wxUSE_DRAGIMAGE 1
37994_ACEOF
37995
37996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37997fi
37998
37999if test "$wxUSE_EXCEPTIONS" = "yes"; then
38000 cat >>confdefs.h <<\_ACEOF
38001#define wxUSE_EXCEPTIONS 1
38002_ACEOF
38003
38004fi
38005
38006USE_HTML=0
38007if test "$wxUSE_HTML" = "yes"; then
38008 cat >>confdefs.h <<\_ACEOF
38009#define wxUSE_HTML 1
38010_ACEOF
38011
38012 USE_HTML=1
38013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38014 if test "$wxUSE_MAC" = 1; then
38015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38016 fi
a848cd7e
SC
38017fi
38018
38019if test "$wxUSE_MENUS" = "yes"; then
38020 cat >>confdefs.h <<\_ACEOF
38021#define wxUSE_MENUS 1
38022_ACEOF
38023
38024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38025fi
38026
38027if test "$wxUSE_METAFILE" = "yes"; then
38028 cat >>confdefs.h <<\_ACEOF
38029#define wxUSE_METAFILE 1
38030_ACEOF
38031
38032fi
38033
38034if test "$wxUSE_MIMETYPE" = "yes"; then
38035 cat >>confdefs.h <<\_ACEOF
38036#define wxUSE_MIMETYPE 1
38037_ACEOF
38038
38039fi
38040
38041if test "$wxUSE_MINIFRAME" = "yes"; then
38042 cat >>confdefs.h <<\_ACEOF
38043#define wxUSE_MINIFRAME 1
38044_ACEOF
38045
38046 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38047fi
38048
38049if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38050 cat >>confdefs.h <<\_ACEOF
38051#define wxUSE_SYSTEM_OPTIONS 1
38052_ACEOF
38053
38054 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
38055 "$TOOLKIT" = "MOTIF"; then
38056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38057 fi
38058fi
38059
38060
38061if test "$wxUSE_VALIDATORS" = "yes"; then
38062 cat >>confdefs.h <<\_ACEOF
38063#define wxUSE_VALIDATORS 1
38064_ACEOF
38065
38066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38067fi
38068
38069if test "$wxUSE_PALETTE" = "yes" ; then
38070 cat >>confdefs.h <<\_ACEOF
38071#define wxUSE_PALETTE 1
38072_ACEOF
38073
38074fi
38075
38076if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38077 LIBS=" -lunicows $LIBS"
38078fi
38079
38080
38081if test "$wxUSE_IMAGE" = "yes" ; then
38082 cat >>confdefs.h <<\_ACEOF
38083#define wxUSE_IMAGE 1
38084_ACEOF
38085
38086
38087 if test "$wxUSE_GIF" = "yes" ; then
38088 cat >>confdefs.h <<\_ACEOF
38089#define wxUSE_GIF 1
38090_ACEOF
38091
38092 fi
38093
38094 if test "$wxUSE_PCX" = "yes" ; then
38095 cat >>confdefs.h <<\_ACEOF
38096#define wxUSE_PCX 1
38097_ACEOF
38098
38099 fi
38100
38101 if test "$wxUSE_IFF" = "yes" ; then
38102 cat >>confdefs.h <<\_ACEOF
38103#define wxUSE_IFF 1
38104_ACEOF
38105
38106 fi
38107
38108 if test "$wxUSE_PNM" = "yes" ; then
38109 cat >>confdefs.h <<\_ACEOF
38110#define wxUSE_PNM 1
38111_ACEOF
38112
38113 fi
38114
38115 if test "$wxUSE_XPM" = "yes" ; then
38116 cat >>confdefs.h <<\_ACEOF
38117#define wxUSE_XPM 1
38118_ACEOF
38119
38120 fi
38121
38122 if test "$wxUSE_ICO_CUR" = "yes" ; then
38123 cat >>confdefs.h <<\_ACEOF
38124#define wxUSE_ICO_CUR 1
38125_ACEOF
38126
38127 fi
38128fi
38129
38130
38131if test "$wxUSE_CHOICEDLG" = "yes"; then
38132 cat >>confdefs.h <<\_ACEOF
38133#define wxUSE_CHOICEDLG 1
38134_ACEOF
38135
38136fi
38137
38138if test "$wxUSE_COLOURDLG" = "yes"; then
38139 cat >>confdefs.h <<\_ACEOF
38140#define wxUSE_COLOURDLG 1
38141_ACEOF
38142
38143fi
38144
38145if test "$wxUSE_FILEDLG" = "yes"; then
38146 cat >>confdefs.h <<\_ACEOF
38147#define wxUSE_FILEDLG 1
38148_ACEOF
38149
38150fi
38151
38152if test "$wxUSE_FINDREPLDLG" = "yes"; then
38153 cat >>confdefs.h <<\_ACEOF
38154#define wxUSE_FINDREPLDLG 1
38155_ACEOF
38156
38157fi
38158
38159if test "$wxUSE_FONTDLG" = "yes"; then
38160 cat >>confdefs.h <<\_ACEOF
38161#define wxUSE_FONTDLG 1
38162_ACEOF
38163
38164fi
38165
38166if test "$wxUSE_DIRDLG" = "yes"; then
38167 if test "$wxUSE_TREECTRL" != "yes"; then
38168 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38169echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38170 else
38171 cat >>confdefs.h <<\_ACEOF
38172#define wxUSE_DIRDLG 1
38173_ACEOF
38174
38175 fi
38176fi
38177
38178if test "$wxUSE_MSGDLG" = "yes"; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define wxUSE_MSGDLG 1
38181_ACEOF
38182
38183fi
38184
38185if test "$wxUSE_NUMBERDLG" = "yes"; then
38186 cat >>confdefs.h <<\_ACEOF
38187#define wxUSE_NUMBERDLG 1
38188_ACEOF
38189
38190fi
38191
38192if test "$wxUSE_PROGRESSDLG" = "yes"; then
38193 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38194 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38195echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38196 else
38197 cat >>confdefs.h <<\_ACEOF
38198#define wxUSE_PROGRESSDLG 1
38199_ACEOF
38200
38201 fi
38202fi
38203
38204if test "$wxUSE_SPLASH" = "yes"; then
38205 cat >>confdefs.h <<\_ACEOF
38206#define wxUSE_SPLASH 1
38207_ACEOF
38208
38209fi
38210
38211if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38212 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38213 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38214echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38215 else
38216 cat >>confdefs.h <<\_ACEOF
38217#define wxUSE_STARTUP_TIPS 1
38218_ACEOF
38219
38220 fi
38221fi
38222
38223if test "$wxUSE_TEXTDLG" = "yes"; then
38224 cat >>confdefs.h <<\_ACEOF
38225#define wxUSE_TEXTDLG 1
38226_ACEOF
38227
38228fi
38229
38230if test "$wxUSE_WIZARDDLG" = "yes"; then
38231 cat >>confdefs.h <<\_ACEOF
38232#define wxUSE_WIZARDDLG 1
38233_ACEOF
38234
38235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38236fi
38237
38238
38239if test "$cross_compiling" = "yes"; then
38240 OSINFO="\"$host\""
38241else
38242 OSINFO=`uname -s -r -m`
38243 OSINFO="\"$OSINFO\""
38244fi
38245
38246cat >>confdefs.h <<_ACEOF
38247#define WXWIN_OS_DESCRIPTION $OSINFO
38248_ACEOF
38249
38250
38251
38252if test "x$prefix" != "xNONE"; then
38253 wxPREFIX=$prefix
38254else
38255 wxPREFIX=$ac_default_prefix
38256fi
38257
38258cat >>confdefs.h <<_ACEOF
38259#define wxINSTALL_PREFIX "$wxPREFIX"
38260_ACEOF
38261
38262
38263top_builddir_wxconfig=`pwd`
38264
38265
38266
38267CORE_BASE_LIBS="net base"
38268CORE_GUI_LIBS="adv core"
38269
38270if test "$wxUSE_XML" = "yes" ; then
38271 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38272fi
38273if test "$wxUSE_ODBC" != "no" ; then
38274 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38275 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38276fi
38277if test "$wxUSE_HTML" = "yes" ; then
38278 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38279fi
38280
38281if test "$wxUSE_GUI" != "yes"; then
38282 CORE_GUI_LIBS=""
38283fi
38284
38285
38286
38287
38288
38289
38290
38291
38292if test "$wxUSE_MAC" = 1 ; then
de59c161 38293 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework WebKit -framework System"
a848cd7e
SC
38294fi
38295if test "$wxUSE_COCOA" = 1 ; then
38296 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
38297fi
38298
38299
38300LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38301
38302have_cos=0
38303have_floor=0
38304
38305for ac_func in cos
38306do
38307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38308echo "$as_me:$LINENO: checking for $ac_func" >&5
38309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38310if eval "test \"\${$as_ac_var+set}\" = set"; then
38311 echo $ECHO_N "(cached) $ECHO_C" >&6
38312else
38313 cat >conftest.$ac_ext <<_ACEOF
38314/* confdefs.h. */
38315_ACEOF
38316cat confdefs.h >>conftest.$ac_ext
38317cat >>conftest.$ac_ext <<_ACEOF
38318/* end confdefs.h. */
ac1cb8d3
VS
38319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38321#define $ac_func innocuous_$ac_func
38322
a848cd7e
SC
38323/* System header to define __stub macros and hopefully few prototypes,
38324 which can conflict with char $ac_func (); below.
38325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38327
a848cd7e
SC
38328#ifdef __STDC__
38329# include <limits.h>
38330#else
38331# include <assert.h>
38332#endif
ac1cb8d3
VS
38333
38334#undef $ac_func
38335
a848cd7e
SC
38336/* Override any gcc2 internal prototype to avoid an error. */
38337#ifdef __cplusplus
38338extern "C"
38339{
38340#endif
38341/* We use char because int might match the return type of a gcc2
38342 builtin and then its argument prototype would still apply. */
38343char $ac_func ();
38344/* The GNU C library defines this for functions which it implements
38345 to always fail with ENOSYS. Some functions are actually named
38346 something starting with __ and the normal name is an alias. */
38347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38348choke me
38349#else
38350char (*f) () = $ac_func;
38351#endif
38352#ifdef __cplusplus
38353}
38354#endif
38355
38356int
38357main ()
38358{
38359return f != $ac_func;
38360 ;
38361 return 0;
38362}
38363_ACEOF
38364rm -f conftest.$ac_objext conftest$ac_exeext
38365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38366 (eval $ac_link) 2>conftest.er1
a848cd7e 38367 ac_status=$?
ac1cb8d3
VS
38368 grep -v '^ *+' conftest.er1 >conftest.err
38369 rm -f conftest.er1
38370 cat conftest.err >&5
a848cd7e
SC
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); } &&
ac1cb8d3
VS
38373 { ac_try='test -z "$ac_c_werror_flag"
38374 || test ! -s conftest.err'
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; } &&
38380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38383 ac_status=$?
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; }; then
38386 eval "$as_ac_var=yes"
38387else
38388 echo "$as_me: failed program was:" >&5
38389sed 's/^/| /' conftest.$ac_ext >&5
38390
38391eval "$as_ac_var=no"
38392fi
ac1cb8d3
VS
38393rm -f conftest.err conftest.$ac_objext \
38394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38395fi
38396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38397echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38398if test `eval echo '${'$as_ac_var'}'` = yes; then
38399 cat >>confdefs.h <<_ACEOF
38400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38401_ACEOF
38402 have_cos=1
38403fi
38404done
38405
38406
38407for ac_func in floor
38408do
38409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38410echo "$as_me:$LINENO: checking for $ac_func" >&5
38411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38412if eval "test \"\${$as_ac_var+set}\" = set"; then
38413 echo $ECHO_N "(cached) $ECHO_C" >&6
38414else
38415 cat >conftest.$ac_ext <<_ACEOF
38416/* confdefs.h. */
38417_ACEOF
38418cat confdefs.h >>conftest.$ac_ext
38419cat >>conftest.$ac_ext <<_ACEOF
38420/* end confdefs.h. */
ac1cb8d3
VS
38421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38423#define $ac_func innocuous_$ac_func
38424
a848cd7e
SC
38425/* System header to define __stub macros and hopefully few prototypes,
38426 which can conflict with char $ac_func (); below.
38427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38429
a848cd7e
SC
38430#ifdef __STDC__
38431# include <limits.h>
38432#else
38433# include <assert.h>
38434#endif
ac1cb8d3
VS
38435
38436#undef $ac_func
38437
a848cd7e
SC
38438/* Override any gcc2 internal prototype to avoid an error. */
38439#ifdef __cplusplus
38440extern "C"
38441{
38442#endif
38443/* We use char because int might match the return type of a gcc2
38444 builtin and then its argument prototype would still apply. */
38445char $ac_func ();
38446/* The GNU C library defines this for functions which it implements
38447 to always fail with ENOSYS. Some functions are actually named
38448 something starting with __ and the normal name is an alias. */
38449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38450choke me
38451#else
38452char (*f) () = $ac_func;
38453#endif
38454#ifdef __cplusplus
38455}
38456#endif
38457
38458int
38459main ()
38460{
38461return f != $ac_func;
38462 ;
38463 return 0;
38464}
38465_ACEOF
38466rm -f conftest.$ac_objext conftest$ac_exeext
38467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38468 (eval $ac_link) 2>conftest.er1
a848cd7e 38469 ac_status=$?
ac1cb8d3
VS
38470 grep -v '^ *+' conftest.er1 >conftest.err
38471 rm -f conftest.er1
38472 cat conftest.err >&5
a848cd7e
SC
38473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474 (exit $ac_status); } &&
ac1cb8d3
VS
38475 { ac_try='test -z "$ac_c_werror_flag"
38476 || test ! -s conftest.err'
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38479 ac_status=$?
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; } &&
38482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38485 ac_status=$?
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; }; then
38488 eval "$as_ac_var=yes"
38489else
38490 echo "$as_me: failed program was:" >&5
38491sed 's/^/| /' conftest.$ac_ext >&5
38492
38493eval "$as_ac_var=no"
38494fi
ac1cb8d3
VS
38495rm -f conftest.err conftest.$ac_objext \
38496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38497fi
38498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38500if test `eval echo '${'$as_ac_var'}'` = yes; then
38501 cat >>confdefs.h <<_ACEOF
38502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38503_ACEOF
38504 have_floor=1
38505fi
38506done
38507
38508echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38509echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38510if test "$have_cos" = 1 -a "$have_floor" = 1; then
38511 echo "$as_me:$LINENO: result: yes" >&5
38512echo "${ECHO_T}yes" >&6
38513else
38514 echo "$as_me:$LINENO: result: no" >&5
38515echo "${ECHO_T}no" >&6
38516 LIBS="$LIBS -lm"
38517 # use different functions to avoid configure caching
38518 have_sin=0
38519 have_ceil=0
38520
38521for ac_func in sin
38522do
38523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38524echo "$as_me:$LINENO: checking for $ac_func" >&5
38525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38526if eval "test \"\${$as_ac_var+set}\" = set"; then
38527 echo $ECHO_N "(cached) $ECHO_C" >&6
38528else
38529 cat >conftest.$ac_ext <<_ACEOF
38530/* confdefs.h. */
38531_ACEOF
38532cat confdefs.h >>conftest.$ac_ext
38533cat >>conftest.$ac_ext <<_ACEOF
38534/* end confdefs.h. */
ac1cb8d3
VS
38535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38537#define $ac_func innocuous_$ac_func
38538
a848cd7e
SC
38539/* System header to define __stub macros and hopefully few prototypes,
38540 which can conflict with char $ac_func (); below.
38541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38542 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38543
a848cd7e
SC
38544#ifdef __STDC__
38545# include <limits.h>
38546#else
38547# include <assert.h>
38548#endif
ac1cb8d3
VS
38549
38550#undef $ac_func
38551
a848cd7e
SC
38552/* Override any gcc2 internal prototype to avoid an error. */
38553#ifdef __cplusplus
38554extern "C"
38555{
38556#endif
38557/* We use char because int might match the return type of a gcc2
38558 builtin and then its argument prototype would still apply. */
38559char $ac_func ();
38560/* The GNU C library defines this for functions which it implements
38561 to always fail with ENOSYS. Some functions are actually named
38562 something starting with __ and the normal name is an alias. */
38563#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38564choke me
38565#else
38566char (*f) () = $ac_func;
38567#endif
38568#ifdef __cplusplus
38569}
38570#endif
38571
38572int
38573main ()
38574{
38575return f != $ac_func;
38576 ;
38577 return 0;
38578}
38579_ACEOF
38580rm -f conftest.$ac_objext conftest$ac_exeext
38581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38582 (eval $ac_link) 2>conftest.er1
a848cd7e 38583 ac_status=$?
ac1cb8d3
VS
38584 grep -v '^ *+' conftest.er1 >conftest.err
38585 rm -f conftest.er1
38586 cat conftest.err >&5
a848cd7e
SC
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); } &&
ac1cb8d3
VS
38589 { ac_try='test -z "$ac_c_werror_flag"
38590 || test ! -s conftest.err'
38591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592 (eval $ac_try) 2>&5
38593 ac_status=$?
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); }; } &&
38596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38599 ac_status=$?
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; }; then
38602 eval "$as_ac_var=yes"
38603else
38604 echo "$as_me: failed program was:" >&5
38605sed 's/^/| /' conftest.$ac_ext >&5
38606
38607eval "$as_ac_var=no"
38608fi
ac1cb8d3
VS
38609rm -f conftest.err conftest.$ac_objext \
38610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38611fi
38612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38614if test `eval echo '${'$as_ac_var'}'` = yes; then
38615 cat >>confdefs.h <<_ACEOF
38616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38617_ACEOF
38618 have_sin=1
38619fi
38620done
38621
38622
38623for ac_func in ceil
38624do
38625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38626echo "$as_me:$LINENO: checking for $ac_func" >&5
38627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38628if eval "test \"\${$as_ac_var+set}\" = set"; then
38629 echo $ECHO_N "(cached) $ECHO_C" >&6
38630else
38631 cat >conftest.$ac_ext <<_ACEOF
38632/* confdefs.h. */
38633_ACEOF
38634cat confdefs.h >>conftest.$ac_ext
38635cat >>conftest.$ac_ext <<_ACEOF
38636/* end confdefs.h. */
ac1cb8d3
VS
38637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38639#define $ac_func innocuous_$ac_func
38640
a848cd7e
SC
38641/* System header to define __stub macros and hopefully few prototypes,
38642 which can conflict with char $ac_func (); below.
38643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38644 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38645
a848cd7e
SC
38646#ifdef __STDC__
38647# include <limits.h>
38648#else
38649# include <assert.h>
38650#endif
ac1cb8d3
VS
38651
38652#undef $ac_func
38653
a848cd7e
SC
38654/* Override any gcc2 internal prototype to avoid an error. */
38655#ifdef __cplusplus
38656extern "C"
38657{
38658#endif
38659/* We use char because int might match the return type of a gcc2
38660 builtin and then its argument prototype would still apply. */
38661char $ac_func ();
38662/* The GNU C library defines this for functions which it implements
38663 to always fail with ENOSYS. Some functions are actually named
38664 something starting with __ and the normal name is an alias. */
38665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38666choke me
38667#else
38668char (*f) () = $ac_func;
38669#endif
38670#ifdef __cplusplus
38671}
38672#endif
38673
38674int
38675main ()
38676{
38677return f != $ac_func;
38678 ;
38679 return 0;
38680}
38681_ACEOF
38682rm -f conftest.$ac_objext conftest$ac_exeext
38683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38684 (eval $ac_link) 2>conftest.er1
a848cd7e 38685 ac_status=$?
ac1cb8d3
VS
38686 grep -v '^ *+' conftest.er1 >conftest.err
38687 rm -f conftest.er1
38688 cat conftest.err >&5
a848cd7e
SC
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); } &&
ac1cb8d3
VS
38691 { ac_try='test -z "$ac_c_werror_flag"
38692 || test ! -s conftest.err'
38693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38694 (eval $ac_try) 2>&5
38695 ac_status=$?
38696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697 (exit $ac_status); }; } &&
38698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38700 (eval $ac_try) 2>&5
38701 ac_status=$?
38702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38703 (exit $ac_status); }; }; then
38704 eval "$as_ac_var=yes"
38705else
38706 echo "$as_me: failed program was:" >&5
38707sed 's/^/| /' conftest.$ac_ext >&5
38708
38709eval "$as_ac_var=no"
38710fi
ac1cb8d3
VS
38711rm -f conftest.err conftest.$ac_objext \
38712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38713fi
38714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38716if test `eval echo '${'$as_ac_var'}'` = yes; then
38717 cat >>confdefs.h <<_ACEOF
38718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38719_ACEOF
38720 have_ceil=1
38721fi
38722done
38723
38724 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38725echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38726 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38727 echo "$as_me:$LINENO: result: yes" >&5
38728echo "${ECHO_T}yes" >&6
38729 else
38730 echo "$as_me:$LINENO: result: no" >&5
38731echo "${ECHO_T}no" >&6
38732 # not sure we should warn the user, crash, etc.
38733 fi
38734fi
38735
38736if test "$wxUSE_GUI" = "yes"; then
38737
38738
38739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38740 drawing dynamic erase event exec font image \
38741 minimal propsize rotate shaped widgets render"
38742
38743 if test "$wxUSE_MONOLITHIC" != "yes"; then
38744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38745 fi
38746else
38747 SAMPLES_SUBDIRS="console"
38748fi
38749
38750
38751INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
38752-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38753
38754if test "$GXX" = yes ; then
38755 CXXWARNINGS="-Wall"
38756 fi
38757
38758EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38759
38760CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
38761CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
38762CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
38763
38764
38765LIBS=`echo $LIBS | sed 's/ \+/ /g'`
38766EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38767EXTRALIBS_XML="$EXPAT_LINK"
38768EXTRALIBS_HTML="$MSPACK_LINK"
38769EXTRALIBS_ODBC="$ODBC_LINK"
38770if test "$wxUSE_GUI" = "yes"; then
38771 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
38772fi
38773if test "$wxUSE_OPENGL" = "yes"; then
38774 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38775fi
38776
38777LDFLAGS="$LDFLAGS $PROFILE"
38778
38779if test "$wxUSE_GTK" = 1; then
38780 WXCONFIG_INCLUDE=
38781else
38782 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38783fi
38784
38785WXCONFIG_EXTRALIBS="$LIBS"
38786
38787if test "$wxUSE_REGEX" = "builtin" ; then
38788 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38789fi
38790if test "$wxUSE_EXPAT" = "builtin" ; then
38791 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38792fi
38793if test "$wxUSE_ODBC" = "builtin" ; then
38794 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38795fi
38796if test "$wxUSE_LIBTIFF" = "builtin" ; then
38797 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38798fi
38799if test "$wxUSE_LIBJPEG" = "builtin" ; then
38800 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38801fi
38802if test "$wxUSE_LIBPNG" = "builtin" ; then
38803 wxconfig_3rdparty="$wxconfig_3rdparty png"
38804fi
38805if test "$wxUSE_ZLIB" = "builtin" ; then
38806 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38807fi
38808if test "$wxUSE_ODBC" = "builtin" ; then
38809 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38810fi
38811
38812for i in $wxconfig_3rdparty ; do
38813 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
38814done
38815
38816
38817if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38818 WXUNIV=1
38819else
38820 WXUNIV=0
38821fi
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831if test $wxUSE_MONOLITHIC = "yes" ; then
38832 MONOLITHIC=1
38833else
38834 MONOLITHIC=0
38835fi
38836
38837if test $wxUSE_PLUGINS = "yes" ; then
38838 USE_PLUGINS=1
38839else
38840 USE_PLUGINS=0
38841fi
38842
38843if test $wxUSE_ODBC != "no" ; then
38844 USE_ODBC=1
38845else
38846 USE_ODBC=0
38847fi
38848
38849if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38850 OFFICIAL_BUILD=1
38851else
38852 OFFICIAL_BUILD=0
38853fi
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885 if test "x$BAKEFILE_HOST" = "x"; then
38886 BAKEFILE_HOST="${host}"
38887 fi
38888
38889 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38890
38891 if test -n "$ac_tool_prefix"; then
38892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38893set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38894echo "$as_me:$LINENO: checking for $ac_word" >&5
38895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38896if test "${ac_cv_prog_RANLIB+set}" = set; then
38897 echo $ECHO_N "(cached) $ECHO_C" >&6
38898else
38899 if test -n "$RANLIB"; then
38900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38901else
38902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38903for as_dir in $PATH
38904do
38905 IFS=$as_save_IFS
38906 test -z "$as_dir" && as_dir=.
38907 for ac_exec_ext in '' $ac_executable_extensions; do
38908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38911 break 2
38912 fi
38913done
38914done
38915
38916fi
38917fi
38918RANLIB=$ac_cv_prog_RANLIB
38919if test -n "$RANLIB"; then
38920 echo "$as_me:$LINENO: result: $RANLIB" >&5
38921echo "${ECHO_T}$RANLIB" >&6
38922else
38923 echo "$as_me:$LINENO: result: no" >&5
38924echo "${ECHO_T}no" >&6
38925fi
38926
38927fi
38928if test -z "$ac_cv_prog_RANLIB"; then
38929 ac_ct_RANLIB=$RANLIB
38930 # Extract the first word of "ranlib", so it can be a program name with args.
38931set dummy ranlib; ac_word=$2
38932echo "$as_me:$LINENO: checking for $ac_word" >&5
38933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38934if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38935 echo $ECHO_N "(cached) $ECHO_C" >&6
38936else
38937 if test -n "$ac_ct_RANLIB"; then
38938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38939else
38940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38941for as_dir in $PATH
38942do
38943 IFS=$as_save_IFS
38944 test -z "$as_dir" && as_dir=.
38945 for ac_exec_ext in '' $ac_executable_extensions; do
38946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38947 ac_cv_prog_ac_ct_RANLIB="ranlib"
38948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38949 break 2
38950 fi
38951done
38952done
38953
38954 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38955fi
38956fi
38957ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38958if test -n "$ac_ct_RANLIB"; then
38959 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38960echo "${ECHO_T}$ac_ct_RANLIB" >&6
38961else
38962 echo "$as_me:$LINENO: result: no" >&5
38963echo "${ECHO_T}no" >&6
38964fi
38965
38966 RANLIB=$ac_ct_RANLIB
38967else
38968 RANLIB="$ac_cv_prog_RANLIB"
38969fi
38970
38971 # Find a good install program. We prefer a C program (faster),
38972# so one script is as good as another. But avoid the broken or
38973# incompatible versions:
38974# SysV /etc/install, /usr/sbin/install
38975# SunOS /usr/etc/install
38976# IRIX /sbin/install
38977# AIX /bin/install
38978# AmigaOS /C/install, which installs bootblocks on floppy discs
38979# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38980# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38981# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38982# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38983# ./install, which can be erroneously created by make from ./install.sh.
38984echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38985echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38986if test -z "$INSTALL"; then
38987if test "${ac_cv_path_install+set}" = set; then
38988 echo $ECHO_N "(cached) $ECHO_C" >&6
38989else
38990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38991for as_dir in $PATH
38992do
38993 IFS=$as_save_IFS
38994 test -z "$as_dir" && as_dir=.
38995 # Account for people who put trailing slashes in PATH elements.
38996case $as_dir/ in
38997 ./ | .// | /cC/* | \
38998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39000 /usr/ucb/* ) ;;
39001 *)
39002 # OSF1 and SCO ODT 3.0 have their own names for install.
39003 # Don't use installbsd from OSF since it installs stuff as root
39004 # by default.
39005 for ac_prog in ginstall scoinst install; do
39006 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39007 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39008 if test $ac_prog = install &&
39009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39010 # AIX install. It has an incompatible calling convention.
39011 :
39012 elif test $ac_prog = install &&
39013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39014 # program-specific install script used by HP pwplus--don't use.
39015 :
39016 else
39017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39018 break 3
39019 fi
39020 fi
a848cd7e
SC
39021 done
39022 done
39023 ;;
39024esac
39025done
39026
39027
39028fi
39029 if test "${ac_cv_path_install+set}" = set; then
39030 INSTALL=$ac_cv_path_install
39031 else
39032 # As a last resort, use the slow shell script. We don't cache a
39033 # path for INSTALL within a source directory, because that will
39034 # break other packages using the cache if that directory is
39035 # removed, or if the path is relative.
39036 INSTALL=$ac_install_sh
39037 fi
39038fi
39039echo "$as_me:$LINENO: result: $INSTALL" >&5
39040echo "${ECHO_T}$INSTALL" >&6
39041
39042# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39043# It thinks the first close brace ends the variable substitution.
39044test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39045
39046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39047
39048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39049
39050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39051echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39052LN_S=$as_ln_s
39053if test "$LN_S" = "ln -s"; then
39054 echo "$as_me:$LINENO: result: yes" >&5
39055echo "${ECHO_T}yes" >&6
39056else
39057 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39058echo "${ECHO_T}no, using $LN_S" >&6
39059fi
39060
39061
39062 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39063echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39064set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39065if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39066 echo $ECHO_N "(cached) $ECHO_C" >&6
39067else
39068 cat >conftest.make <<\_ACEOF
39069all:
39070 @echo 'ac_maketemp="$(MAKE)"'
39071_ACEOF
39072# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39073eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39074if test -n "$ac_maketemp"; then
39075 eval ac_cv_prog_make_${ac_make}_set=yes
39076else
39077 eval ac_cv_prog_make_${ac_make}_set=no
39078fi
39079rm -f conftest.make
39080fi
39081if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39082 echo "$as_me:$LINENO: result: yes" >&5
39083echo "${ECHO_T}yes" >&6
39084 SET_MAKE=
39085else
39086 echo "$as_me:$LINENO: result: no" >&5
39087echo "${ECHO_T}no" >&6
39088 SET_MAKE="MAKE=${MAKE-make}"
39089fi
39090
39091
39092
39093 if test -n "$ac_tool_prefix"; then
39094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39095set dummy ${ac_tool_prefix}ar; ac_word=$2
39096echo "$as_me:$LINENO: checking for $ac_word" >&5
39097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39098if test "${ac_cv_prog_AR+set}" = set; then
39099 echo $ECHO_N "(cached) $ECHO_C" >&6
39100else
39101 if test -n "$AR"; then
39102 ac_cv_prog_AR="$AR" # Let the user override the test.
39103else
39104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39105for as_dir in $PATH
39106do
39107 IFS=$as_save_IFS
39108 test -z "$as_dir" && as_dir=.
39109 for ac_exec_ext in '' $ac_executable_extensions; do
39110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39111 ac_cv_prog_AR="${ac_tool_prefix}ar"
39112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39113 break 2
39114 fi
39115done
39116done
39117
39118fi
39119fi
39120AR=$ac_cv_prog_AR
39121if test -n "$AR"; then
39122 echo "$as_me:$LINENO: result: $AR" >&5
39123echo "${ECHO_T}$AR" >&6
39124else
39125 echo "$as_me:$LINENO: result: no" >&5
39126echo "${ECHO_T}no" >&6
39127fi
39128
39129fi
39130if test -z "$ac_cv_prog_AR"; then
39131 ac_ct_AR=$AR
39132 # Extract the first word of "ar", so it can be a program name with args.
39133set dummy ar; ac_word=$2
39134echo "$as_me:$LINENO: checking for $ac_word" >&5
39135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39136if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39137 echo $ECHO_N "(cached) $ECHO_C" >&6
39138else
39139 if test -n "$ac_ct_AR"; then
39140 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39141else
39142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39143for as_dir in $PATH
39144do
39145 IFS=$as_save_IFS
39146 test -z "$as_dir" && as_dir=.
39147 for ac_exec_ext in '' $ac_executable_extensions; do
39148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39149 ac_cv_prog_ac_ct_AR="ar"
39150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39151 break 2
39152 fi
39153done
39154done
39155
39156 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39157fi
39158fi
39159ac_ct_AR=$ac_cv_prog_ac_ct_AR
39160if test -n "$ac_ct_AR"; then
39161 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39162echo "${ECHO_T}$ac_ct_AR" >&6
39163else
39164 echo "$as_me:$LINENO: result: no" >&5
39165echo "${ECHO_T}no" >&6
39166fi
39167
39168 AR=$ac_ct_AR
39169else
39170 AR="$ac_cv_prog_AR"
39171fi
39172
39173 if test -n "$ac_tool_prefix"; then
39174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39175set dummy ${ac_tool_prefix}strip; ac_word=$2
39176echo "$as_me:$LINENO: checking for $ac_word" >&5
39177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39178if test "${ac_cv_prog_STRIP+set}" = set; then
39179 echo $ECHO_N "(cached) $ECHO_C" >&6
39180else
39181 if test -n "$STRIP"; then
39182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39183else
39184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39185for as_dir in $PATH
39186do
39187 IFS=$as_save_IFS
39188 test -z "$as_dir" && as_dir=.
39189 for ac_exec_ext in '' $ac_executable_extensions; do
39190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39193 break 2
39194 fi
39195done
39196done
39197
39198fi
39199fi
39200STRIP=$ac_cv_prog_STRIP
39201if test -n "$STRIP"; then
39202 echo "$as_me:$LINENO: result: $STRIP" >&5
39203echo "${ECHO_T}$STRIP" >&6
39204else
39205 echo "$as_me:$LINENO: result: no" >&5
39206echo "${ECHO_T}no" >&6
39207fi
39208
39209fi
39210if test -z "$ac_cv_prog_STRIP"; then
39211 ac_ct_STRIP=$STRIP
39212 # Extract the first word of "strip", so it can be a program name with args.
39213set dummy strip; ac_word=$2
39214echo "$as_me:$LINENO: checking for $ac_word" >&5
39215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39216if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39217 echo $ECHO_N "(cached) $ECHO_C" >&6
39218else
39219 if test -n "$ac_ct_STRIP"; then
39220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39221else
39222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39223for as_dir in $PATH
39224do
39225 IFS=$as_save_IFS
39226 test -z "$as_dir" && as_dir=.
39227 for ac_exec_ext in '' $ac_executable_extensions; do
39228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39229 ac_cv_prog_ac_ct_STRIP="strip"
39230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39231 break 2
39232 fi
39233done
39234done
39235
39236 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39237fi
39238fi
39239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39240if test -n "$ac_ct_STRIP"; then
39241 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39242echo "${ECHO_T}$ac_ct_STRIP" >&6
39243else
39244 echo "$as_me:$LINENO: result: no" >&5
39245echo "${ECHO_T}no" >&6
39246fi
39247
39248 STRIP=$ac_ct_STRIP
39249else
39250 STRIP="$ac_cv_prog_STRIP"
39251fi
39252
39253 if test -n "$ac_tool_prefix"; then
39254 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39255set dummy ${ac_tool_prefix}nm; ac_word=$2
39256echo "$as_me:$LINENO: checking for $ac_word" >&5
39257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39258if test "${ac_cv_prog_NM+set}" = set; then
39259 echo $ECHO_N "(cached) $ECHO_C" >&6
39260else
39261 if test -n "$NM"; then
39262 ac_cv_prog_NM="$NM" # Let the user override the test.
39263else
39264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39265for as_dir in $PATH
39266do
39267 IFS=$as_save_IFS
39268 test -z "$as_dir" && as_dir=.
39269 for ac_exec_ext in '' $ac_executable_extensions; do
39270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39271 ac_cv_prog_NM="${ac_tool_prefix}nm"
39272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39273 break 2
39274 fi
39275done
39276done
39277
39278fi
39279fi
39280NM=$ac_cv_prog_NM
39281if test -n "$NM"; then
39282 echo "$as_me:$LINENO: result: $NM" >&5
39283echo "${ECHO_T}$NM" >&6
39284else
39285 echo "$as_me:$LINENO: result: no" >&5
39286echo "${ECHO_T}no" >&6
39287fi
39288
39289fi
39290if test -z "$ac_cv_prog_NM"; then
39291 ac_ct_NM=$NM
39292 # Extract the first word of "nm", so it can be a program name with args.
39293set dummy nm; ac_word=$2
39294echo "$as_me:$LINENO: checking for $ac_word" >&5
39295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39296if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39297 echo $ECHO_N "(cached) $ECHO_C" >&6
39298else
39299 if test -n "$ac_ct_NM"; then
39300 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39301else
39302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39303for as_dir in $PATH
39304do
39305 IFS=$as_save_IFS
39306 test -z "$as_dir" && as_dir=.
39307 for ac_exec_ext in '' $ac_executable_extensions; do
39308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39309 ac_cv_prog_ac_ct_NM="nm"
39310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39311 break 2
39312 fi
39313done
39314done
39315
39316 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39317fi
39318fi
39319ac_ct_NM=$ac_cv_prog_ac_ct_NM
39320if test -n "$ac_ct_NM"; then
39321 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39322echo "${ECHO_T}$ac_ct_NM" >&6
39323else
39324 echo "$as_me:$LINENO: result: no" >&5
39325echo "${ECHO_T}no" >&6
39326fi
39327
39328 NM=$ac_ct_NM
39329else
39330 NM="$ac_cv_prog_NM"
39331fi
39332
39333
39334 case ${BAKEFILE_HOST} in
39335 *-hp-hpux* )
39336 INSTALL_DIR="mkdir"
39337 ;;
39338 *) INSTALL_DIR="$INSTALL -d"
39339 ;;
39340 esac
39341
39342
39343 LDFLAGS_GUI=
39344 case ${BAKEFILE_HOST} in
39345 *-*-cygwin* | *-*-mingw32* )
39346 LDFLAGS_GUI="-mwindows"
39347 esac
39348
39349
39350 fi
39351
39352 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39353echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39354if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39355 echo $ECHO_N "(cached) $ECHO_C" >&6
39356else
39357
39358 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39359 egrep -s GNU > /dev/null); then
39360 bakefile_cv_prog_makeisgnu="yes"
39361 else
39362 bakefile_cv_prog_makeisgnu="no"
39363 fi
39364
39365fi
39366echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39367echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39368
39369 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39370 IF_GNU_MAKE=""
39371 else
39372 IF_GNU_MAKE="#"
39373 fi
39374
39375
39376
39377 PLATFORM_UNIX=0
39378 PLATFORM_WIN32=0
39379 PLATFORM_MSDOS=0
39380 PLATFORM_MAC=0
39381 PLATFORM_MACOSX=0
39382 PLATFORM_OS2=0
39383
39384 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39385 case "${BAKEFILE_HOST}" in
39386 *-*-cygwin* | *-*-mingw32* )
39387 PLATFORM_WIN32=1
39388 ;;
39389 *-pc-msdosdjgpp )
39390 PLATFORM_MSDOS=1
39391 ;;
39392 *-pc-os2_emx | *-pc-os2-emx )
39393 PLATFORM_OS2=1
39394 ;;
39395 powerpc-*-darwin* )
39396 PLATFORM_MAC=1
39397 PLATFORM_MACOSX=1
39398 ;;
39399 * )
39400 PLATFORM_UNIX=1
39401 ;;
39402 esac
39403 else
39404 case "$BAKEFILE_FORCE_PLATFORM" in
39405 win32 )
39406 PLATFORM_WIN32=1
39407 ;;
39408 msdos )
39409 PLATFORM_MSDOS=1
39410 ;;
39411 os2 )
39412 PLATFORM_OS2=1
39413 ;;
39414 darwin )
39415 PLATFORM_MAC=1
39416 PLATFORM_MACOSX=1
39417 ;;
39418 unix )
39419 PLATFORM_UNIX=1
39420 ;;
39421 * )
39422 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39423echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39424 { (exit 1); exit 1; }; }
39425 ;;
39426 esac
39427 fi
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437 # Check whether --enable-omf or --disable-omf was given.
39438if test "${enable_omf+set}" = set; then
39439 enableval="$enable_omf"
39440 bk_os2_use_omf="$enableval"
39441fi;
39442
39443 case "${BAKEFILE_HOST}" in
39444 *-*-darwin* )
39445 CFLAGS="$CFLAGS -fno-common"
39446 CXXFLAGS="$CXXFLAGS -fno-common"
39447 ;;
39448
39449 *-pc-os2_emx | *-pc-os2-emx )
39450 if test "x$bk_os2_use_omf" = "xyes" ; then
39451 AR=emxomfar
39452 RANLIB=:
39453 LDFLAGS="-Zomf $LDFLAGS"
39454 CFLAGS="-Zomf $CFLAGS"
39455 CXXFLAGS="-Zomf $CXXFLAGS"
39456 OS2_LIBEXT="lib"
39457 else
39458 OS2_LIBEXT="a"
39459 fi
39460 ;;
39461 esac
39462
39463
39464 SO_SUFFIX="so"
39465 SO_SUFFIX_MODULE="so"
39466 EXEEXT=""
39467 LIBPREFIX="lib"
39468 LIBEXT=".a"
39469 DLLPREFIX="lib"
39470 DLLPREFIX_MODULE=""
39471 DLLIMP_SUFFIX=""
39472
39473 case "${BAKEFILE_HOST}" in
39474 *-hp-hpux* )
39475 SO_SUFFIX="sl"
39476 SO_SUFFIX_MODULE="sl"
39477 ;;
39478 *-*-aix* )
39479 SO_SUFFIX="a"
39480 SO_SUFFIX_MODULE="a"
39481 ;;
39482 *-*-cygwin* | *-*-mingw32* )
39483 SO_SUFFIX="dll"
39484 SO_SUFFIX_MODULE="dll"
39485 DLLIMP_SUFFIX="dll.a"
39486 EXEEXT=".exe"
39487 DLLPREFIX=""
39488 ;;
39489 *-pc-msdosdjgpp )
39490 EXEEXT=".exe"
39491 DLLPREFIX=""
39492 ;;
39493 *-pc-os2_emx | *-pc-os2-emx )
39494 SO_SUFFIX="dll"
39495 SO_SUFFIX_MODULE="dll"
39496 DLLIMP_SUFFIX=$OS2_LIBEXT
39497 EXEEXT=".exe"
39498 DLLPREFIX=""
39499 LIBPREFIX=""
39500 LIBEXT=".$OS2_LIBEXT"
39501 ;;
39502 powerpc-*-darwin* )
39503 SO_SUFFIX="dylib"
39504 SO_SUFFIX_MODULE="bundle"
39505 ;;
39506 esac
39507
39508 if test "x$DLLIMP_SUFFIX" = "x" ; then
39509 DLLIMP_SUFFIX="$SO_SUFFIX"
39510 fi
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522 SHARED_LD_CC="\$(CC) -shared -o"
39523 SHARED_LD_CXX="\$(CXX) -shared -o"
39524
39525 if test "x$GCC" = "xyes"; then
39526 PIC_FLAG="-fPIC"
39527 fi
39528
39529 case "${BAKEFILE_HOST}" in
39530 *-hp-hpux* )
39531 if test "x$GCC" = "xyes"; then
39532 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
39533 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
39534 else
39535 LDFLAGS="$LDFLAGS -L/usr/lib"
39536
39537 SHARED_LD_CC="${CC} -b -o"
39538 SHARED_LD_CXX="${CXX} -b -o"
39539 PIC_FLAG="+Z"
39540 fi
39541 ;;
39542
39543 *-*-linux* )
39544 if test "x$GCC" != "xyes"; then
39545 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39546echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39547if test "${bakefile_cv_prog_icc+set}" = set; then
39548 echo $ECHO_N "(cached) $ECHO_C" >&6
39549else
39550
39551 cat >conftest.$ac_ext <<_ACEOF
39552/* confdefs.h. */
39553_ACEOF
39554cat confdefs.h >>conftest.$ac_ext
39555cat >>conftest.$ac_ext <<_ACEOF
39556/* end confdefs.h. */
39557
39558int
39559main ()
39560{
39561
39562 #ifndef __INTEL_COMPILER
39563 #error Not icc
39564 #endif
39565
39566 ;
39567 return 0;
39568}
39569_ACEOF
39570rm -f conftest.$ac_objext
39571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39572 (eval $ac_compile) 2>conftest.er1
a848cd7e 39573 ac_status=$?
ac1cb8d3
VS
39574 grep -v '^ *+' conftest.er1 >conftest.err
39575 rm -f conftest.er1
39576 cat conftest.err >&5
a848cd7e
SC
39577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578 (exit $ac_status); } &&
ac1cb8d3
VS
39579 { ac_try='test -z "$ac_c_werror_flag"
39580 || test ! -s conftest.err'
39581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39582 (eval $ac_try) 2>&5
39583 ac_status=$?
39584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585 (exit $ac_status); }; } &&
39586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39588 (eval $ac_try) 2>&5
39589 ac_status=$?
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); }; }; then
39592 bakefile_cv_prog_icc=yes
39593else
39594 echo "$as_me: failed program was:" >&5
39595sed 's/^/| /' conftest.$ac_ext >&5
39596
39597bakefile_cv_prog_icc=no
39598
39599fi
ac1cb8d3 39600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39601
39602fi
39603echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39604echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39605 if test "$bakefile_cv_prog_icc" = "yes"; then
39606 PIC_FLAG="-KPIC"
39607 fi
39608 fi
39609 ;;
39610
39611 *-*-solaris2* )
39612 if test "x$GCC" != xyes ; then
39613 SHARED_LD_CC="${CC} -G -o"
39614 SHARED_LD_CXX="${CXX} -G -o"
39615 PIC_FLAG="-KPIC"
39616 fi
39617 ;;
39618
39619 *-*-darwin* )
39620
39621 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39622echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39623if test "${wx_cv_gcc31+set}" = set; then
39624 echo $ECHO_N "(cached) $ECHO_C" >&6
39625else
39626
39627 cat >conftest.$ac_ext <<_ACEOF
39628/* confdefs.h. */
39629_ACEOF
39630cat confdefs.h >>conftest.$ac_ext
39631cat >>conftest.$ac_ext <<_ACEOF
39632/* end confdefs.h. */
39633
39634int
39635main ()
39636{
39637
39638 #if (__GNUC__ < 3) || \
39639 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39640 #error old gcc
39641 #endif
39642
39643 ;
39644 return 0;
39645}
39646_ACEOF
39647rm -f conftest.$ac_objext
39648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39649 (eval $ac_compile) 2>conftest.er1
a848cd7e 39650 ac_status=$?
ac1cb8d3
VS
39651 grep -v '^ *+' conftest.er1 >conftest.err
39652 rm -f conftest.er1
39653 cat conftest.err >&5
a848cd7e
SC
39654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39655 (exit $ac_status); } &&
ac1cb8d3
VS
39656 { ac_try='test -z "$ac_c_werror_flag"
39657 || test ! -s conftest.err'
39658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659 (eval $ac_try) 2>&5
39660 ac_status=$?
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); }; } &&
39663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39665 (eval $ac_try) 2>&5
39666 ac_status=$?
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); }; }; then
39669
39670 wx_cv_gcc31=yes
39671
39672else
39673 echo "$as_me: failed program was:" >&5
39674sed 's/^/| /' conftest.$ac_ext >&5
39675
39676
39677 wx_cv_gcc31=no
39678
39679
39680fi
ac1cb8d3 39681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39682
39683fi
39684echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39685echo "${ECHO_T}$wx_cv_gcc31" >&6
39686 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39687
39688D='$'
39689cat <<EOF >shared-ld-sh
a848cd7e
SC
39690#!/bin/sh
39691#-----------------------------------------------------------------------------
39692#-- Name: distrib/mac/shared-ld-sh
39693#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39694#-- Author: Gilles Depeyrot
39695#-- Copyright: (c) 2002 Gilles Depeyrot
39696#-- Licence: any use permitted
39697#-----------------------------------------------------------------------------
39698
39699verbose=0
39700args=""
39701objects=""
39702linking_flag="-dynamiclib"
39703
473276a9
VS
39704while test ${D}# -gt 0; do
39705 case ${D}1 in
a848cd7e
SC
39706
39707 -v)
39708 verbose=1
39709 ;;
39710
39711 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39712 # collect these options and values
473276a9 39713 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39714 shift
39715 ;;
39716
39717 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39718 # collect these options
473276a9 39719 args="${D}{args} ${D}1"
a848cd7e
SC
39720 ;;
39721
39722 -dynamiclib|-bundle)
473276a9 39723 linking_flag="${D}1"
a848cd7e
SC
39724 ;;
39725
39726 -*)
473276a9 39727 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39728 exit 1
39729 ;;
39730
39731 *.o | *.a | *.dylib)
39732 # collect object files
473276a9 39733 objects="${D}{objects} ${D}1"
a848cd7e
SC
39734 ;;
39735
39736 *)
473276a9 39737 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39738 exit 1
39739 ;;
39740
39741 esac
39742 shift
39743done
39744
39745#
39746# Link one module containing all the others
39747#
473276a9
VS
39748if test ${D}{verbose} = 1; then
39749 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39750fi
473276a9
VS
39751c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39752status=${D}?
39753if test ${D}{status} != 0; then
39754 exit ${D}{status}
a848cd7e
SC
39755fi
39756
39757#
39758# Link the shared library from the single module created
39759#
473276a9
VS
39760if test ${D}{verbose} = 1; then
39761 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39762fi
473276a9
VS
39763c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39764status=${D}?
39765if test ${D}{status} != 0; then
39766 exit ${D}{status}
a848cd7e
SC
39767fi
39768
39769#
39770# Remove intermediate module
39771#
473276a9 39772rm -f master.${D}${D}.o
a848cd7e
SC
39773
39774exit 0
39775EOF
473276a9 39776
a848cd7e
SC
39777 chmod +x shared-ld-sh
39778
39779 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39780 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39781 SHARED_LD_CXX="$SHARED_LD_CC"
39782 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39783 else
39784 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39785 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39786 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39787 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39788 fi
39789
39790 PIC_FLAG="-dynamic -fPIC"
39791 ;;
39792
39793 *-*-aix* )
39794 if test "x$GCC" != "xyes"; then
39795 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39796set dummy makeC++SharedLib; ac_word=$2
39797echo "$as_me:$LINENO: checking for $ac_word" >&5
39798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39799if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39800 echo $ECHO_N "(cached) $ECHO_C" >&6
39801else
39802 if test -n "$AIX_CXX_LD"; then
39803 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39804else
39805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39806for as_dir in $PATH
39807do
39808 IFS=$as_save_IFS
39809 test -z "$as_dir" && as_dir=.
39810 for ac_exec_ext in '' $ac_executable_extensions; do
39811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39812 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39814 break 2
39815 fi
39816done
39817done
39818
39819 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39820fi
39821fi
39822AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39823if test -n "$AIX_CXX_LD"; then
39824 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39825echo "${ECHO_T}$AIX_CXX_LD" >&6
39826else
39827 echo "$as_me:$LINENO: result: no" >&5
39828echo "${ECHO_T}no" >&6
39829fi
39830
39831 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39832 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39833 fi
39834 ;;
39835
39836 *-*-beos* )
39837 SHARED_LD_CC="${LD} -shared -o"
39838 SHARED_LD_CXX="${LD} -shared -o"
39839 ;;
39840
39841 *-*-irix* )
39842 if test "x$GCC" != "xyes"; then
39843 PIC_FLAG="-KPIC"
39844 fi
39845 ;;
39846
39847 *-*-cygwin* | *-*-mingw32* )
39848 PIC_FLAG=""
39849 ;;
39850
39851 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39852 SHARED_LD_CC="`pwd`/dllar.sh -o"
39853 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39854 PIC_FLAG=""
473276a9
VS
39855
39856D='$'
39857cat <<EOF >dllar.sh
39858#!/bin/sh
39859#
39860# dllar - a tool to build both a .dll and an .a file
39861# from a set of object (.o) files for EMX/OS2.
39862#
39863# Written by Andrew Zabolotny, bit@freya.etu.ru
39864# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39865#
39866# This script will accept a set of files on the command line.
39867# All the public symbols from the .o files will be exported into
39868# a .DEF file, then linker will be run (through gcc) against them to
39869# build a shared library consisting of all given .o files. All libraries
39870# (.a) will be first decompressed into component .o files then act as
39871# described above. You can optionally give a description (-d "description")
39872# which will be put into .DLL. To see the list of accepted options (as well
39873# as command-line format) simply run this program without options. The .DLL
39874# is built to be imported by name (there is no guarantee that new versions
39875# of the library you build will have same ordinals for same symbols).
39876#
39877# dllar is free software; you can redistribute it and/or modify
39878# it under the terms of the GNU General Public License as published by
39879# the Free Software Foundation; either version 2, or (at your option)
39880# any later version.
39881#
39882# dllar is distributed in the hope that it will be useful,
39883# but WITHOUT ANY WARRANTY; without even the implied warranty of
39884# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39885# GNU General Public License for more details.
39886#
39887# You should have received a copy of the GNU General Public License
39888# along with dllar; see the file COPYING. If not, write to the Free
39889# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39890# 02111-1307, USA.
39891
39892# To successfuly run this program you will need:
39893# - Current drive should have LFN support (HPFS, ext2, network, etc)
39894# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39895# - gcc
39896# (used to build the .dll)
39897# - emxexp
39898# (used to create .def file from .o files)
39899# - emximp
39900# (used to create .a file from .def file)
39901# - GNU text utilites (cat, sort, uniq)
39902# used to process emxexp output
39903# - GNU file utilities (mv, rm)
39904# - GNU sed
39905# - lxlite (optional, see flag below)
39906# (used for general .dll cleanup)
39907#
39908
39909flag_USE_LXLITE=1;
39910
39911#
39912# helper functions
39913# basnam, variant of basename, which does _not_ remove the path, _iff_
39914# second argument (suffix to remove) is given
39915basnam(){
39916 case ${D}# in
39917 1)
39918 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39919 ;;
39920 2)
39921 echo ${D}1 | sed 's/'${D}2'${D}//'
39922 ;;
39923 *)
39924 echo "error in basnam ${D}*"
39925 exit 8
39926 ;;
39927 esac
39928}
39929
39930# Cleanup temporary files and output
39931CleanUp() {
39932 cd ${D}curDir
39933 for i in ${D}inputFiles ; do
39934 case ${D}i in
39935 *!)
39936 rm -rf \`basnam ${D}i !\`
39937 ;;
39938 *)
39939 ;;
39940 esac
39941 done
39942
39943 # Kill result in case of failure as there is just to many stupid make/nmake
39944 # things out there which doesn't do this.
39945 if ${D}# -eq 0 ; then
39946 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39947 fi
39948}
39949
39950# Print usage and exit script with rc=1.
39951PrintHelp() {
39952 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
39953 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
39954 echo ' -ord[inals] -exclude "symbol(s)"'
39955 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
39956 echo ' *.o *.a'
39957 echo '*> "output_file" should have no extension.'
39958 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39959 echo ' The import library name is derived from this and is set to "name".a,'
39960 echo ' unless overridden by -import'
39961 echo '*> "importlib_name" should have no extension.'
39962 echo ' If it has the .o, or .a extension, it is automatically removed.'
39963 echo ' This name is used as the import library name and may be longer and'
39964 echo ' more descriptive than the DLL name which has to follow the old '
39965 echo ' 8.3 convention of FAT.'
39966 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39967 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39968 echo ' These flags will be put at the start of GCC command line.'
39969 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
39970 echo '*> -exclude defines symbols which will not be exported. You can define'
39971 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39972 echo ' If the last character of a symbol is "*", all symbols beginning'
39973 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
39974 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
39975 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
39976 echo '*> -nocrtdll switch will disable linking the library against emx''s'
39977 echo ' C runtime DLLs.'
39978 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
39979 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39980 echo ' unchanged to GCC at the end of command line.'
39981 echo '*> If you create a DLL from a library and you do not specify -o,'
39982 echo ' the basename for DLL and import library will be set to library name,'
39983 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39984 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39985 echo ' library will be renamed into gcc_s.a.'
39986 echo '--------'
39987 echo 'Example:'
39988 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39989 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39990 CleanUp
39991 exit 1
39992}
39993
39994# Execute a command.
39995# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39996# @Uses Whatever CleanUp() uses.
39997doCommand() {
39998 echo "${D}*"
39999 eval ${D}*
40000 rcCmd=${D}?
40001
40002 if ${D}rcCmd -ne 0 ; then
40003 echo "command failed, exit code="${D}rcCmd
40004 CleanUp
40005 exit ${D}rcCmd
40006 fi
40007}
40008
40009# main routine
40010# setup globals
40011cmdLine=${D}*
40012outFile=""
40013outimpFile=""
40014inputFiles=""
40015description=""
40016CC=gcc.exe
40017CFLAGS="-s -Zcrtdll"
40018EXTRA_CFLAGS=""
40019EXPORT_BY_ORDINALS=0
40020exclude_symbols=""
40021library_flags=""
40022curDir=\`pwd\`
40023curDirS=curDir
40024case ${D}curDirS in
40025*/)
40026 ;;
40027*)
40028 curDirS=${D}{curDirS}"/"
40029 ;;
40030esac
40031# Parse commandline
40032libsToLink=0
40033while ${D}1 ; do
40034 case ${D}1 in
40035 -ord*)
40036 EXPORT_BY_ORDINALS=1;
40037 ;;
40038 -o*)
40039 shift
40040 outFile=${D}1
40041 ;;
40042 -i*)
40043 shift
40044 outimpFile=${D}1
40045 ;;
40046 -d*)
40047 shift
40048 description=${D}1
40049 ;;
40050 -f*)
40051 shift
40052 CFLAGS=${D}1
40053 ;;
40054 -c*)
40055 shift
40056 CC=${D}1
40057 ;;
40058 -h*)
40059 PrintHelp
40060 ;;
40061 -ex*)
40062 shift
40063 exclude_symbols=${D}{exclude_symbols}${D}1" "
40064 ;;
40065 -libf*)
40066 shift
40067 library_flags=${D}{library_flags}${D}1" "
40068 ;;
40069 -nocrt*)
40070 CFLAGS="-s"
40071 ;;
40072 -nolxl*)
40073 flag_USE_LXLITE=0
40074 ;;
40075 -* | /*)
40076 case ${D}1 in
40077 -L* | -l*)
40078 libsToLink=1
40079 ;;
40080 *)
40081 ;;
40082 esac
40083 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40084 ;;
40085 *)
40086 found=0;
40087 if ${D}libsToLink -ne 0 ; then
40088 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40089 else
40090 for file in ${D}1 ; do
40091 if -f ${D}file ; then
40092 inputFiles="${D}{inputFiles} ${D}file"
40093 found=1
40094 fi
40095 done
40096 if ${D}found -eq 0 ; then
40097 echo "ERROR: No file(s) found: "${D}1
40098 exit 8
40099 fi
40100 fi
40101 ;;
40102 esac
40103 shift
40104done # iterate cmdline words
40105
40106#
40107if -z "${D}inputFiles" ; then
40108 echo "dllar: no input files"
40109 PrintHelp
40110fi
40111
40112# Now extract all .o files from .a files
40113newInputFiles=""
40114for file in ${D}inputFiles ; do
40115 case ${D}file in
40116 *.a | *.lib)
40117 case ${D}file in
40118 *.a)
40119 suffix=".a"
40120 AR="ar"
40121 ;;
40122 *.lib)
40123 suffix=".lib"
40124 AR="emxomfar"
40125 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40126 ;;
40127 *)
40128 ;;
40129 esac
40130 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40131 mkdir ${D}dirname
40132 if ${D}? -ne 0 ; then
40133 echo "Failed to create subdirectory ./${D}dirname"
40134 CleanUp
40135 exit 8;
40136 fi
40137 # Append '!' to indicate archive
40138 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40139 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40140 cd ${D}curDir
40141 found=0;
40142 for subfile in ${D}dirname/*.o* ; do
40143 if -f ${D}subfile ; then
40144 found=1
40145 if -s ${D}subfile ; then
40146 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40147 newInputFiles="${D}newInputFiles ${D}subfile"
40148 fi
40149 fi
40150 done
40151 if ${D}found -eq 0 ; then
40152 echo "WARNING: there are no files in archive \'${D}file\'"
40153 fi
40154 ;;
40155 *)
40156 newInputFiles="${D}{newInputFiles} ${D}file"
40157 ;;
40158 esac
40159done
40160inputFiles="${D}newInputFiles"
40161
40162# Output filename(s).
40163do_backup=0;
40164if -z ${D}outFile ; then
40165 do_backup=1;
40166 set outFile ${D}inputFiles; outFile=${D}2
40167fi
40168
40169# If it is an archive, remove the '!' and the '_%' suffixes
40170case ${D}outFile in
40171*_%!)
40172 outFile=\`basnam ${D}outFile _%!\`
40173 ;;
40174*)
40175 ;;
40176esac
40177case ${D}outFile in
40178*.dll)
40179 outFile=\`basnam ${D}outFile .dll\`
40180 ;;
40181*.DLL)
40182 outFile=\`basnam ${D}outFile .DLL\`
40183 ;;
40184*.o)
40185 outFile=\`basnam ${D}outFile .o\`
40186 ;;
40187*.obj)
40188 outFile=\`basnam ${D}outFile .obj\`
40189 ;;
40190*.a)
40191 outFile=\`basnam ${D}outFile .a\`
40192 ;;
40193*.lib)
40194 outFile=\`basnam ${D}outFile .lib\`
40195 ;;
40196*)
40197 ;;
40198esac
40199case ${D}outimpFile in
40200*.a)
40201 outimpFile=\`basnam ${D}outimpFile .a\`
40202 ;;
40203*.lib)
40204 outimpFile=\`basnam ${D}outimpFile .lib\`
40205 ;;
40206*)
40207 ;;
40208esac
40209if -z ${D}outimpFile ; then
40210 outimpFile=${D}outFile
40211fi
40212defFile="${D}{outFile}.def"
40213arcFile="${D}{outimpFile}.a"
40214arcFile2="${D}{outimpFile}.lib"
40215dllFile="${D}outFile"
40216# Add suffix to dllFile later, first we need a version to use as
40217# name in .def file.
40218
40219if ${D}do_backup -ne 0 ; then
40220 if -f ${D}arcFile ; then
40221 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40222 fi
40223 if -f ${D}arcFile2 ; then
40224 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40225 fi
40226fi
40227
40228# Extract public symbols from all the object files.
40229tmpdefFile=${D}{defFile}_%
40230rm -f ${D}tmpdefFile
40231for file in ${D}inputFiles ; do
40232 case ${D}file in
40233 *!)
40234 ;;
40235 *)
40236 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40237 ;;
40238 esac
40239done
40240
40241# Create the def file.
40242rm -f ${D}defFile
40243echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
40244dllFile="${D}dllFile.dll"
40245if -n ${D}description ; then
40246 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
40247fi
40248echo "EXPORTS" >> ${D}defFile
40249
40250doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40251grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40252
40253# Checks if the export is ok or not.
40254for word in ${D}exclude_symbols; do
40255 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40256 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40257done
40258
40259
40260if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
40261 sed "=" < ${D}tmpdefFile | \
40262 sed '
40263 N
40264 : loop
40265 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
40266 t loop
40267 ' > ${D}{tmpdefFile}%
40268 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40269else
40270 rm -f ${D}{tmpdefFile}%
40271fi
40272cat ${D}tmpdefFile >> ${D}defFile
40273rm -f ${D}tmpdefFile
40274
40275# Do linking, create implib, and apply lxlite.
40276gccCmdl="";
40277for file in ${D}inputFiles ; do
40278 case ${D}file in
40279 *!)
40280 ;;
40281 *)
40282 gccCmdl="${D}gccCmdl ${D}file"
40283 ;;
40284 esac
40285done
40286doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40287touch "${D}{outFile}.dll"
40288
40289doCommand "emximp -o ${D}arcFile ${D}defFile"
40290if ${D}flag_USE_LXLITE -ne 0 ; then
40291 add_flags="";
40292 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
40293 add_flags="-ynd"
40294 fi
40295 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40296fi
40297doCommand "emxomf -s -l ${D}arcFile"
40298
40299# Successful exit.
40300CleanUp 1
40301exit 0
40302EOF
40303
40304 chmod +x dllar.sh
a848cd7e
SC
40305 ;;
40306
40307 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40308 *-*-sunos4* | \
40309 *-*-osf* | \
40310 *-*-dgux5* | \
40311 *-*-sysv5* )
40312 ;;
40313
40314 *)
40315 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40316echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40317 { (exit 1); exit 1; }; }
40318 esac
40319
40320 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40321 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40322 fi
40323 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40324 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40325 fi
40326
40327
40328
40329
40330
40331
40332
40333
40334 USE_SOVERSION=0
40335 USE_SOVERLINUX=0
40336 USE_SOVERSOLARIS=0
40337 USE_SOSYMLINKS=0
40338 USE_MACVERSION=0
40339 SONAME_FLAG=
40340
40341 case "${BAKEFILE_HOST}" in
40342 *-*-linux* )
40343 SONAME_FLAG="-Wl,-soname,"
40344 USE_SOVERSION=1
40345 USE_SOVERLINUX=1
40346 USE_SOSYMLINKS=1
40347 ;;
40348
40349 *-*-solaris2* )
40350 SONAME_FLAG="-h "
40351 USE_SOVERSION=1
40352 USE_SOVERSOLARIS=1
40353 USE_SOSYMLINKS=1
40354 ;;
40355
40356 *-*-darwin* )
40357 USE_MACVERSION=1
40358 USE_SOVERSION=1
40359 USE_SOSYMLINKS=1
40360 ;;
40361 esac
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40372echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40373 DEPS_TRACKING=0
40374
40375 if test "x$GCC" = "xyes"; then
40376 DEPSMODE=gcc
40377 DEPS_TRACKING=1
40378 case "${BAKEFILE_HOST}" in
40379 powerpc-*-darwin* )
40380 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40381 ;;
40382 * )
40383 DEPSFLAG_GCC="-MMD"
40384 ;;
40385 esac
40386 echo "$as_me:$LINENO: result: gcc" >&5
40387echo "${ECHO_T}gcc" >&6
40388 else
40389 echo "$as_me:$LINENO: result: none" >&5
40390echo "${ECHO_T}none" >&6
40391 fi
40392
40393 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40394
40395D='$'
40396cat <<EOF >bk-deps
a848cd7e
SC
40397#!/bin/sh
40398
40399# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40400# script. It is used to track C/C++ files dependencies in portable way.
40401#
40402# Permission is given to use this file in any way.
40403
473276a9 40404DEPSMODE=${DEPSMODE}
a848cd7e 40405DEPSDIR=.deps
473276a9 40406DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40407
473276a9 40408mkdir -p ${D}DEPSDIR
a848cd7e 40409
473276a9
VS
40410if test ${D}DEPSMODE = gcc ; then
40411 ${D}* ${D}{DEPSFLAG_GCC}
40412 status=${D}?
40413 if test ${D}{status} != 0 ; then
40414 exit ${D}{status}
a848cd7e
SC
40415 fi
40416 # move created file to the location we want it in:
473276a9
VS
40417 while test ${D}# -gt 0; do
40418 case "${D}1" in
a848cd7e
SC
40419 -o )
40420 shift
473276a9 40421 objfile=${D}1
a848cd7e
SC
40422 ;;
40423 -* )
40424 ;;
40425 * )
473276a9 40426 srcfile=${D}1
a848cd7e
SC
40427 ;;
40428 esac
40429 shift
40430 done
473276a9
VS
40431 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
40432 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
40433 if test -f ${D}depfile ; then
40434 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40435 rm -f ${D}depfile
a848cd7e 40436 else
473276a9
VS
40437 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
40438 if test -f ${D}depfile ; then
40439 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40440 rm -f ${D}depfile
a848cd7e
SC
40441 fi
40442 fi
40443 exit 0
40444else
473276a9
VS
40445 ${D}*
40446 exit ${D}?
a848cd7e
SC
40447fi
40448EOF
473276a9 40449
a848cd7e
SC
40450 chmod +x bk-deps
40451 fi
40452
40453
40454
40455
40456 RESCOMP=
40457 SETFILE=
40458
40459 case ${BAKEFILE_HOST} in
40460 *-*-cygwin* | *-*-mingw32* )
40461 if test "$build" != "$host" ; then
40462 RESCOMP=$host_alias-windres
40463 else
40464 # Extract the first word of "windres", so it can be a program name with args.
40465set dummy windres; ac_word=$2
40466echo "$as_me:$LINENO: checking for $ac_word" >&5
40467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40468if test "${ac_cv_prog_RESCOMP+set}" = set; then
40469 echo $ECHO_N "(cached) $ECHO_C" >&6
40470else
40471 if test -n "$RESCOMP"; then
40472 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40473else
40474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40475for as_dir in $PATH
40476do
40477 IFS=$as_save_IFS
40478 test -z "$as_dir" && as_dir=.
40479 for ac_exec_ext in '' $ac_executable_extensions; do
40480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40481 ac_cv_prog_RESCOMP="windres"
40482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40483 break 2
40484 fi
40485done
40486done
40487
40488 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40489fi
40490fi
40491RESCOMP=$ac_cv_prog_RESCOMP
40492if test -n "$RESCOMP"; then
40493 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40494echo "${ECHO_T}$RESCOMP" >&6
40495else
40496 echo "$as_me:$LINENO: result: no" >&5
40497echo "${ECHO_T}no" >&6
40498fi
40499
40500 fi
40501 ;;
40502
40503 *-*-darwin* )
40504 # Extract the first word of "Rez", so it can be a program name with args.
40505set dummy Rez; ac_word=$2
40506echo "$as_me:$LINENO: checking for $ac_word" >&5
40507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40508if test "${ac_cv_prog_RESCOMP+set}" = set; then
40509 echo $ECHO_N "(cached) $ECHO_C" >&6
40510else
40511 if test -n "$RESCOMP"; then
40512 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40513else
40514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40515for as_dir in $PATH
40516do
40517 IFS=$as_save_IFS
40518 test -z "$as_dir" && as_dir=.
40519 for ac_exec_ext in '' $ac_executable_extensions; do
40520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40521 ac_cv_prog_RESCOMP="Rez"
40522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40523 break 2
40524 fi
40525done
40526done
40527
40528 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40529fi
40530fi
40531RESCOMP=$ac_cv_prog_RESCOMP
40532if test -n "$RESCOMP"; then
40533 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40534echo "${ECHO_T}$RESCOMP" >&6
40535else
40536 echo "$as_me:$LINENO: result: no" >&5
40537echo "${ECHO_T}no" >&6
40538fi
40539
40540 # Extract the first word of "SetFile", so it can be a program name with args.
40541set dummy SetFile; ac_word=$2
40542echo "$as_me:$LINENO: checking for $ac_word" >&5
40543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40544if test "${ac_cv_prog_SETFILE+set}" = set; then
40545 echo $ECHO_N "(cached) $ECHO_C" >&6
40546else
40547 if test -n "$SETFILE"; then
40548 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40549else
40550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40551for as_dir in $PATH
40552do
40553 IFS=$as_save_IFS
40554 test -z "$as_dir" && as_dir=.
40555 for ac_exec_ext in '' $ac_executable_extensions; do
40556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40557 ac_cv_prog_SETFILE="SetFile"
40558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40559 break 2
40560 fi
40561done
40562done
40563
40564 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40565fi
40566fi
40567SETFILE=$ac_cv_prog_SETFILE
40568if test -n "$SETFILE"; then
40569 echo "$as_me:$LINENO: result: $SETFILE" >&5
40570echo "${ECHO_T}$SETFILE" >&6
40571else
40572 echo "$as_me:$LINENO: result: no" >&5
40573echo "${ECHO_T}no" >&6
40574fi
40575
40576 ;;
40577 esac
40578
40579
40580
40581
40582
40583
dcc1b6ad
VS
40584BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
40585
40586
a848cd7e 40587
a848cd7e
SC
40588 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40589if test "${enable_precomp_headers+set}" = set; then
40590 enableval="$enable_precomp_headers"
40591 bk_use_pch="$enableval"
40592fi;
40593
40594 GCC_PCH=0
40595
40596 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40597 if test "x$GCC" = "xyes"; then
40598 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40599echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40600 cat >conftest.$ac_ext <<_ACEOF
40601/* confdefs.h. */
40602_ACEOF
40603cat confdefs.h >>conftest.$ac_ext
40604cat >>conftest.$ac_ext <<_ACEOF
40605/* end confdefs.h. */
40606
40607int
40608main ()
40609{
40610
40611 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40612 #error "no pch support"
40613 #endif
40614 #if (__GNUC__ < 3)
40615 #error "no pch support"
40616 #endif
40617 #if (__GNUC__ == 3) && \
40618 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40619 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40620 #error "no pch support"
40621 #endif
40622
40623 ;
40624 return 0;
40625}
40626_ACEOF
40627rm -f conftest.$ac_objext
40628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40629 (eval $ac_compile) 2>conftest.er1
a848cd7e 40630 ac_status=$?
ac1cb8d3
VS
40631 grep -v '^ *+' conftest.er1 >conftest.err
40632 rm -f conftest.er1
40633 cat conftest.err >&5
a848cd7e
SC
40634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40635 (exit $ac_status); } &&
ac1cb8d3
VS
40636 { ac_try='test -z "$ac_c_werror_flag"
40637 || test ! -s conftest.err'
40638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40639 (eval $ac_try) 2>&5
40640 ac_status=$?
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); }; } &&
40643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40645 (eval $ac_try) 2>&5
40646 ac_status=$?
40647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40648 (exit $ac_status); }; }; then
40649
40650 echo "$as_me:$LINENO: result: yes" >&5
40651echo "${ECHO_T}yes" >&6
40652 CPPFLAGS="-fpch-deps $CPPFLAGS"
40653 GCC_PCH=1
40654
40655else
40656 echo "$as_me: failed program was:" >&5
40657sed 's/^/| /' conftest.$ac_ext >&5
40658
40659
40660 echo "$as_me:$LINENO: result: no" >&5
40661echo "${ECHO_T}no" >&6
40662
40663fi
ac1cb8d3 40664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40665 if test $GCC_PCH = 1 ; then
40666 cat <<EOF >bk-make-pch
40667#!/bin/sh
40668
40669# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40670# script. It is used to generated precompiled headers.
40671#
40672# Permission is given to use this file in any way.
40673
40674outfile="\${1}"
40675header="\${2}"
40676shift
40677shift
40678
40679compiler=
40680headerfile=
40681while test \${#} -gt 0; do
40682 case "\${1}" in
40683 -I* )
40684 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40685 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40686 headerfile="\${incdir}/\${header}"
40687 fi
40688 ;;
40689 esac
40690 compiler="\${compiler} \${1}"
40691 shift
40692done
40693
40694if test "x\${headerfile}" = "x" ; then
40695 echo "error: can't find header \${header} in include paths" >2
40696else
40697 if test -f \${outfile} ; then
40698 rm -f \${outfile}
40699 else
40700 mkdir -p \`dirname \${outfile}\`
40701 fi
40702 depsfile=".deps/\`basename \${outfile}\`.d"
40703 mkdir -p .deps
40704 # can do this because gcc is >= 3.4:
40705 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40706 exit \${?}
40707fi
40708EOF
40709 chmod +x bk-make-pch
40710 fi
40711 fi
40712 fi
40713
40714
40715
40716
40717
dcc1b6ad
VS
40718
40719
40720 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40721if test "${enable_precomp_headers+set}" = set; then
40722 enableval="$enable_precomp_headers"
40723 bk_use_pch="$enableval"
40724fi;
40725
40726 GCC_PCH=0
40727
40728 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40729 if test "x$GCC" = "xyes"; then
40730 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40731echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40732 cat >conftest.$ac_ext <<_ACEOF
40733/* confdefs.h. */
40734_ACEOF
40735cat confdefs.h >>conftest.$ac_ext
40736cat >>conftest.$ac_ext <<_ACEOF
40737/* end confdefs.h. */
40738
40739int
40740main ()
40741{
40742
40743 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40744 #error "no pch support"
40745 #endif
40746 #if (__GNUC__ < 3)
40747 #error "no pch support"
40748 #endif
40749 #if (__GNUC__ == 3) && \
40750 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40751 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40752 #error "no pch support"
40753 #endif
40754
40755 ;
40756 return 0;
40757}
40758_ACEOF
40759rm -f conftest.$ac_objext
40760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40761 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40762 ac_status=$?
ac1cb8d3
VS
40763 grep -v '^ *+' conftest.er1 >conftest.err
40764 rm -f conftest.er1
40765 cat conftest.err >&5
dcc1b6ad
VS
40766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767 (exit $ac_status); } &&
ac1cb8d3
VS
40768 { ac_try='test -z "$ac_c_werror_flag"
40769 || test ! -s conftest.err'
40770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40771 (eval $ac_try) 2>&5
40772 ac_status=$?
40773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774 (exit $ac_status); }; } &&
40775 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40777 (eval $ac_try) 2>&5
40778 ac_status=$?
40779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40780 (exit $ac_status); }; }; then
40781
40782 echo "$as_me:$LINENO: result: yes" >&5
40783echo "${ECHO_T}yes" >&6
40784 CPPFLAGS="-fpch-deps $CPPFLAGS"
40785 GCC_PCH=1
40786
40787else
40788 echo "$as_me: failed program was:" >&5
40789sed 's/^/| /' conftest.$ac_ext >&5
40790
40791
40792 echo "$as_me:$LINENO: result: no" >&5
40793echo "${ECHO_T}no" >&6
40794
40795fi
ac1cb8d3 40796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
40797 if test $GCC_PCH = 1 ; then
40798 cat <<EOF >bk-make-pch
40799#!/bin/sh
40800
40801# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40802# script. It is used to generated precompiled headers.
40803#
40804# Permission is given to use this file in any way.
40805
40806outfile="\${1}"
40807header="\${2}"
40808shift
40809shift
40810
40811compiler=
40812headerfile=
40813while test \${#} -gt 0; do
40814 case "\${1}" in
40815 -I* )
40816 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40817 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40818 headerfile="\${incdir}/\${header}"
40819 fi
40820 ;;
40821 esac
40822 compiler="\${compiler} \${1}"
40823 shift
40824done
40825
40826if test "x\${headerfile}" = "x" ; then
40827 echo "error: can't find header \${header} in include paths" >2
40828else
40829 if test -f \${outfile} ; then
40830 rm -f \${outfile}
40831 else
40832 mkdir -p \`dirname \${outfile}\`
40833 fi
40834 depsfile=".deps/\`basename \${outfile}\`.d"
40835 mkdir -p .deps
40836 # can do this because gcc is >= 3.4:
40837 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40838 exit \${?}
40839fi
40840EOF
40841 chmod +x bk-make-pch
40842 fi
40843 fi
40844 fi
40845
40846
40847
40848
a848cd7e
SC
40849 COND_BUILD_DEBUG="#"
40850 if test "x$BUILD" = "xdebug" ; then
40851 COND_BUILD_DEBUG=""
40852 fi
40853
40854 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40855 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40856 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40857 fi
40858
40859 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40860 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40861 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40862 fi
40863
40864 COND_BUILD_DEBUG_UNICODE_0="#"
40865 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40866 COND_BUILD_DEBUG_UNICODE_0=""
40867 fi
40868
40869 COND_BUILD_DEBUG_UNICODE_1="#"
40870 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40871 COND_BUILD_DEBUG_UNICODE_1=""
40872 fi
40873
40874 COND_BUILD_RELEASE="#"
40875 if test "x$BUILD" = "xrelease" ; then
40876 COND_BUILD_RELEASE=""
40877 fi
40878
40879 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40880 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40881 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40882 fi
40883
40884 COND_BUILD_RELEASE_UNICODE_0="#"
40885 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40886 COND_BUILD_RELEASE_UNICODE_0=""
40887 fi
40888
40889 COND_BUILD_RELEASE_UNICODE_1="#"
40890 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40891 COND_BUILD_RELEASE_UNICODE_1=""
40892 fi
40893
40894 COND_DEBUG_FLAG_1="#"
40895 if test "x$DEBUG_FLAG" = "x1" ; then
40896 COND_DEBUG_FLAG_1=""
40897 fi
40898
40899 COND_DEBUG_INFO_0="#"
40900 if test "x$DEBUG_INFO" = "x0" ; then
40901 COND_DEBUG_INFO_0=""
40902 fi
40903
40904 COND_DEBUG_INFO_1="#"
40905 if test "x$DEBUG_INFO" = "x1" ; then
40906 COND_DEBUG_INFO_1=""
40907 fi
40908
40909 COND_DEPS_TRACKING_0="#"
40910 if test "x$DEPS_TRACKING" = "x0" ; then
40911 COND_DEPS_TRACKING_0=""
40912 fi
40913
40914 COND_DEPS_TRACKING_1="#"
40915 if test "x$DEPS_TRACKING" = "x1" ; then
40916 COND_DEPS_TRACKING_1=""
40917 fi
40918
40919 COND_GCC_PCH_1="#"
40920 if test "x$GCC_PCH" = "x1" ; then
40921 COND_GCC_PCH_1=""
40922 fi
40923
40924 COND_MONOLITHIC_0="#"
40925 if test "x$MONOLITHIC" = "x0" ; then
40926 COND_MONOLITHIC_0=""
40927 fi
40928
40929 COND_MONOLITHIC_0_SHARED_0="#"
40930 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40931 COND_MONOLITHIC_0_SHARED_0=""
40932 fi
40933
40934 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40935 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40936 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40937 fi
40938
40939 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40940 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40941 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40942 fi
40943
40944 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40945 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40946 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40947 fi
40948
40949 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40950 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40951 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40952 fi
40953
40954 COND_MONOLITHIC_0_SHARED_1="#"
40955 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40956 COND_MONOLITHIC_0_SHARED_1=""
40957 fi
40958
40959 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40960 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40961 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40962 fi
40963
40964 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40965 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40966 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40967 fi
40968
40969 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40970 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40971 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40972 fi
40973
40974 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40975 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40976 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40977 fi
40978
40979 COND_MONOLITHIC_0_USE_ODBC_1="#"
40980 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40981 COND_MONOLITHIC_0_USE_ODBC_1=""
40982 fi
40983
40984 COND_MONOLITHIC_1="#"
40985 if test "x$MONOLITHIC" = "x1" ; then
40986 COND_MONOLITHIC_1=""
40987 fi
40988
40989 COND_MONOLITHIC_1_SHARED_0="#"
40990 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40991 COND_MONOLITHIC_1_SHARED_0=""
40992 fi
40993
40994 COND_MONOLITHIC_1_SHARED_1="#"
40995 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40996 COND_MONOLITHIC_1_SHARED_1=""
40997 fi
40998
40999 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41000 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41001 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41002 fi
41003
41004 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41005 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41006 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41007 fi
41008
41009 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41010 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41011 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41012 fi
41013
41014 COND_PLATFORM_MACOSX_1="#"
41015 if test "x$PLATFORM_MACOSX" = "x1" ; then
41016 COND_PLATFORM_MACOSX_1=""
41017 fi
41018
41019 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41020 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41021 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41022 fi
41023
41024 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41025 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41026 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41027 fi
41028
41029 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41030 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41031 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41032 fi
41033
41034 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41035 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41036 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41037 fi
41038
41039 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41040 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41041 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41042 fi
41043
41044 COND_PLATFORM_MAC_1="#"
41045 if test "x$PLATFORM_MAC" = "x1" ; then
41046 COND_PLATFORM_MAC_1=""
41047 fi
41048
41049 COND_PLATFORM_OS2_1="#"
41050 if test "x$PLATFORM_OS2" = "x1" ; then
41051 COND_PLATFORM_OS2_1=""
41052 fi
41053
41054 COND_PLATFORM_UNIX_0="#"
41055 if test "x$PLATFORM_UNIX" = "x0" ; then
41056 COND_PLATFORM_UNIX_0=""
41057 fi
41058
41059 COND_PLATFORM_UNIX_1="#"
41060 if test "x$PLATFORM_UNIX" = "x1" ; then
41061 COND_PLATFORM_UNIX_1=""
41062 fi
41063
41064 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41065 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41066 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41067 fi
41068
41069 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41070 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41071 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41072 fi
41073
41074 COND_PLATFORM_WIN32_0="#"
41075 if test "x$PLATFORM_WIN32" = "x0" ; then
41076 COND_PLATFORM_WIN32_0=""
41077 fi
41078
41079 COND_PLATFORM_WIN32_1="#"
41080 if test "x$PLATFORM_WIN32" = "x1" ; then
41081 COND_PLATFORM_WIN32_1=""
41082 fi
41083
41084 COND_SHARED_0="#"
41085 if test "x$SHARED" = "x0" ; then
41086 COND_SHARED_0=""
41087 fi
41088
41089 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41090 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41091 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41092 fi
41093
41094 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41095 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41096 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41097 fi
41098
41099 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41100 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41101 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41102 fi
41103
41104 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41105 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41106 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41107 fi
41108
41109 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41110 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41111 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41112 fi
41113
41114 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41115 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41116 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41117 fi
41118
41119 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41120 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41121 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41122 fi
41123
41124 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41125 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41126 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41127 fi
41128
41129 COND_SHARED_1="#"
41130 if test "x$SHARED" = "x1" ; then
41131 COND_SHARED_1=""
41132 fi
41133
41134 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41135 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41136 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41137 fi
41138
41139 COND_TOOLKIT_COCOA="#"
41140 if test "x$TOOLKIT" = "xCOCOA" ; then
41141 COND_TOOLKIT_COCOA=""
41142 fi
41143
41144 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41145 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41146 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41147 fi
41148
41149 COND_TOOLKIT_GTK="#"
41150 if test "x$TOOLKIT" = "xGTK" ; then
41151 COND_TOOLKIT_GTK=""
41152 fi
41153
41154 COND_TOOLKIT_GTK_USE_GUI_1="#"
41155 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41156 COND_TOOLKIT_GTK_USE_GUI_1=""
41157 fi
41158
41159 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41160 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41161 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41162 fi
41163
41164 COND_TOOLKIT_MAC="#"
41165 if test "x$TOOLKIT" = "xMAC" ; then
41166 COND_TOOLKIT_MAC=""
41167 fi
41168
41169 COND_TOOLKIT_MAC_USE_GUI_1="#"
41170 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41171 COND_TOOLKIT_MAC_USE_GUI_1=""
41172 fi
41173
41174 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41175 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41176 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41177 fi
41178
41179 COND_TOOLKIT_MGL="#"
41180 if test "x$TOOLKIT" = "xMGL" ; then
41181 COND_TOOLKIT_MGL=""
41182 fi
41183
41184 COND_TOOLKIT_MGL_USE_GUI_1="#"
41185 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41186 COND_TOOLKIT_MGL_USE_GUI_1=""
41187 fi
41188
41189 COND_TOOLKIT_MOTIF="#"
41190 if test "x$TOOLKIT" = "xMOTIF" ; then
41191 COND_TOOLKIT_MOTIF=""
41192 fi
41193
41194 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41195 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41196 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41197 fi
41198
41199 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41200 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41201 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41202 fi
41203
41204 COND_TOOLKIT_MSW="#"
41205 if test "x$TOOLKIT" = "xMSW" ; then
41206 COND_TOOLKIT_MSW=""
41207 fi
41208
41209 COND_TOOLKIT_MSW_USE_GUI_1="#"
41210 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41211 COND_TOOLKIT_MSW_USE_GUI_1=""
41212 fi
41213
41214 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41215 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41216 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41217 fi
41218
41219 COND_TOOLKIT_PM="#"
41220 if test "x$TOOLKIT" = "xPM" ; then
41221 COND_TOOLKIT_PM=""
41222 fi
41223
41224 COND_TOOLKIT_PM_USE_GUI_1="#"
41225 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41226 COND_TOOLKIT_PM_USE_GUI_1=""
41227 fi
41228
41229 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41230 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41231 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41232 fi
41233
3fd9c298
DE
41234 COND_TOOLKIT_WINCE="#"
41235 if test "x$TOOLKIT" = "xWINCE" ; then
41236 COND_TOOLKIT_WINCE=""
41237 fi
41238
41239 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41240 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41241 COND_TOOLKIT_WINCE_USE_GUI_1=""
41242 fi
41243
41244 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41245 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41246 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41247 fi
41248
a848cd7e
SC
41249 COND_TOOLKIT_X11="#"
41250 if test "x$TOOLKIT" = "xX11" ; then
41251 COND_TOOLKIT_X11=""
41252 fi
41253
41254 COND_TOOLKIT_X11_USE_GUI_1="#"
41255 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41256 COND_TOOLKIT_X11_USE_GUI_1=""
41257 fi
41258
41259 COND_UNICODE_1="#"
41260 if test "x$UNICODE" = "x1" ; then
41261 COND_UNICODE_1=""
41262 fi
41263
41264 COND_USE_EXCEPTIONS_0="#"
41265 if test "x$USE_EXCEPTIONS" = "x0" ; then
41266 COND_USE_EXCEPTIONS_0=""
41267 fi
41268
41269 COND_USE_EXCEPTIONS_1="#"
41270 if test "x$USE_EXCEPTIONS" = "x1" ; then
41271 COND_USE_EXCEPTIONS_1=""
41272 fi
41273
41274 COND_USE_GUI_0="#"
41275 if test "x$USE_GUI" = "x0" ; then
41276 COND_USE_GUI_0=""
41277 fi
41278
41279 COND_USE_GUI_1="#"
41280 if test "x$USE_GUI" = "x1" ; then
41281 COND_USE_GUI_1=""
41282 fi
41283
41284 COND_USE_GUI_1_WXUNIV_0="#"
41285 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41286 COND_USE_GUI_1_WXUNIV_0=""
41287 fi
41288
41289 COND_USE_GUI_1_WXUNIV_1="#"
41290 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41291 COND_USE_GUI_1_WXUNIV_1=""
41292 fi
41293
41294 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41295 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41296 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41297 fi
41298
41299 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41300 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41301 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41302 fi
41303
41304 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41305 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41306 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41307 fi
41308
41309 COND_USE_ODBC_1="#"
41310 if test "x$USE_ODBC" = "x1" ; then
41311 COND_USE_ODBC_1=""
41312 fi
41313
41314 COND_USE_PLUGINS_0="#"
41315 if test "x$USE_PLUGINS" = "x0" ; then
41316 COND_USE_PLUGINS_0=""
41317 fi
41318
41319 COND_USE_SOSYMLINKS_1="#"
41320 if test "x$USE_SOSYMLINKS" = "x1" ; then
41321 COND_USE_SOSYMLINKS_1=""
41322 fi
41323
41324 COND_USE_SOVERLINUX_1="#"
41325 if test "x$USE_SOVERLINUX" = "x1" ; then
41326 COND_USE_SOVERLINUX_1=""
41327 fi
41328
41329 COND_USE_SOVERSION_0="#"
41330 if test "x$USE_SOVERSION" = "x0" ; then
41331 COND_USE_SOVERSION_0=""
41332 fi
41333
41334 COND_USE_SOVERSOLARIS_1="#"
41335 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41336 COND_USE_SOVERSOLARIS_1=""
41337 fi
41338
41339 COND_WITH_PLUGIN_SDL_1="#"
41340 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41341 COND_WITH_PLUGIN_SDL_1=""
41342 fi
41343
41344 COND_WITH_SDL_1="#"
41345 if test "x$WITH_SDL" = "x1" ; then
41346 COND_WITH_SDL_1=""
41347 fi
41348
41349 COND_WXUNIV_1="#"
41350 if test "x$WXUNIV" = "x1" ; then
41351 COND_WXUNIV_1=""
41352 fi
41353
41354 COND_WXUSE_EXPAT_BUILTIN="#"
41355 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41356 COND_WXUSE_EXPAT_BUILTIN=""
41357 fi
41358
41359 COND_WXUSE_LIBJPEG_BUILTIN="#"
41360 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41361 COND_WXUSE_LIBJPEG_BUILTIN=""
41362 fi
41363
41364 COND_WXUSE_LIBPNG_BUILTIN="#"
41365 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41366 COND_WXUSE_LIBPNG_BUILTIN=""
41367 fi
41368
41369 COND_WXUSE_LIBTIFF_BUILTIN="#"
41370 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41371 COND_WXUSE_LIBTIFF_BUILTIN=""
41372 fi
41373
41374 COND_WXUSE_ODBC_BUILTIN="#"
41375 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41376 COND_WXUSE_ODBC_BUILTIN=""
41377 fi
41378
41379 COND_WXUSE_REGEX_BUILTIN="#"
41380 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41381 COND_WXUSE_REGEX_BUILTIN=""
41382 fi
41383
41384 COND_WXUSE_ZLIB_BUILTIN="#"
41385 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41386 COND_WXUSE_ZLIB_BUILTIN=""
41387 fi
41388
dcc1b6ad
VS
41389 COND_BUILD_DEBUG="#"
41390 if test "x$BUILD" = "xdebug" ; then
41391 COND_BUILD_DEBUG=""
41392 fi
41393
41394 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41395 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41396 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41397 fi
41398
41399 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41400 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41401 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41402 fi
41403
41404 COND_BUILD_DEBUG_UNICODE_0="#"
41405 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41406 COND_BUILD_DEBUG_UNICODE_0=""
41407 fi
41408
41409 COND_BUILD_DEBUG_UNICODE_1="#"
41410 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41411 COND_BUILD_DEBUG_UNICODE_1=""
41412 fi
41413
41414 COND_BUILD_RELEASE="#"
41415 if test "x$BUILD" = "xrelease" ; then
41416 COND_BUILD_RELEASE=""
41417 fi
41418
41419 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41420 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41421 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41422 fi
41423
41424 COND_BUILD_RELEASE_UNICODE_0="#"
41425 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41426 COND_BUILD_RELEASE_UNICODE_0=""
41427 fi
41428
41429 COND_BUILD_RELEASE_UNICODE_1="#"
41430 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41431 COND_BUILD_RELEASE_UNICODE_1=""
41432 fi
41433
41434 COND_DEBUG_FLAG_1="#"
41435 if test "x$DEBUG_FLAG" = "x1" ; then
41436 COND_DEBUG_FLAG_1=""
41437 fi
41438
41439 COND_DEBUG_INFO_0="#"
41440 if test "x$DEBUG_INFO" = "x0" ; then
41441 COND_DEBUG_INFO_0=""
41442 fi
41443
41444 COND_DEBUG_INFO_1="#"
41445 if test "x$DEBUG_INFO" = "x1" ; then
41446 COND_DEBUG_INFO_1=""
41447 fi
41448
41449 COND_DEPS_TRACKING_0="#"
41450 if test "x$DEPS_TRACKING" = "x0" ; then
41451 COND_DEPS_TRACKING_0=""
41452 fi
41453
41454 COND_DEPS_TRACKING_1="#"
41455 if test "x$DEPS_TRACKING" = "x1" ; then
41456 COND_DEPS_TRACKING_1=""
41457 fi
41458
41459 COND_GCC_PCH_1="#"
41460 if test "x$GCC_PCH" = "x1" ; then
41461 COND_GCC_PCH_1=""
41462 fi
41463
41464 COND_MONOLITHIC_0="#"
41465 if test "x$MONOLITHIC" = "x0" ; then
41466 COND_MONOLITHIC_0=""
41467 fi
41468
41469 COND_MONOLITHIC_0_SHARED_0="#"
41470 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41471 COND_MONOLITHIC_0_SHARED_0=""
41472 fi
41473
41474 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41475 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41476 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41477 fi
41478
41479 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41480 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41481 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41482 fi
41483
41484 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
41485 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
41486 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
41487 fi
41488
41489 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41490 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41491 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41492 fi
41493
41494 COND_MONOLITHIC_0_SHARED_1="#"
41495 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41496 COND_MONOLITHIC_0_SHARED_1=""
41497 fi
41498
41499 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41500 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41501 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41502 fi
41503
41504 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41505 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41506 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41507 fi
41508
41509 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
41510 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
41511 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
41512 fi
41513
41514 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41515 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41516 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41517 fi
41518
41519 COND_MONOLITHIC_0_USE_ODBC_1="#"
41520 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41521 COND_MONOLITHIC_0_USE_ODBC_1=""
41522 fi
41523
41524 COND_MONOLITHIC_1="#"
41525 if test "x$MONOLITHIC" = "x1" ; then
41526 COND_MONOLITHIC_1=""
41527 fi
41528
41529 COND_MONOLITHIC_1_SHARED_0="#"
41530 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41531 COND_MONOLITHIC_1_SHARED_0=""
41532 fi
41533
41534 COND_MONOLITHIC_1_SHARED_1="#"
41535 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41536 COND_MONOLITHIC_1_SHARED_1=""
41537 fi
41538
41539 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41540 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41541 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41542 fi
41543
41544 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41545 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41546 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41547 fi
41548
41549 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41550 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41551 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41552 fi
41553
41554 COND_PLATFORM_MACOSX_1="#"
41555 if test "x$PLATFORM_MACOSX" = "x1" ; then
41556 COND_PLATFORM_MACOSX_1=""
41557 fi
41558
41559 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41560 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41561 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41562 fi
41563
41564 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41565 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41566 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41567 fi
41568
41569 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41570 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41571 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41572 fi
41573
41574 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41576 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41577 fi
41578
41579 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41580 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41581 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41582 fi
41583
41584 COND_PLATFORM_MAC_1="#"
41585 if test "x$PLATFORM_MAC" = "x1" ; then
41586 COND_PLATFORM_MAC_1=""
41587 fi
41588
41589 COND_PLATFORM_OS2_1="#"
41590 if test "x$PLATFORM_OS2" = "x1" ; then
41591 COND_PLATFORM_OS2_1=""
41592 fi
41593
41594 COND_PLATFORM_UNIX_0="#"
41595 if test "x$PLATFORM_UNIX" = "x0" ; then
41596 COND_PLATFORM_UNIX_0=""
41597 fi
41598
41599 COND_PLATFORM_UNIX_1="#"
41600 if test "x$PLATFORM_UNIX" = "x1" ; then
41601 COND_PLATFORM_UNIX_1=""
41602 fi
41603
41604 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41605 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41606 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41607 fi
41608
41609 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41610 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41611 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41612 fi
41613
41614 COND_PLATFORM_WIN32_0="#"
41615 if test "x$PLATFORM_WIN32" = "x0" ; then
41616 COND_PLATFORM_WIN32_0=""
41617 fi
41618
41619 COND_PLATFORM_WIN32_1="#"
41620 if test "x$PLATFORM_WIN32" = "x1" ; then
41621 COND_PLATFORM_WIN32_1=""
41622 fi
41623
41624 COND_SHARED_0="#"
41625 if test "x$SHARED" = "x0" ; then
41626 COND_SHARED_0=""
41627 fi
41628
41629 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41630 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41631 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41632 fi
41633
41634 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41635 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41636 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41637 fi
41638
41639 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41640 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41641 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41642 fi
41643
41644 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41645 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41646 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41647 fi
41648
41649 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41650 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41651 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41652 fi
41653
41654 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41655 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41656 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41657 fi
41658
41659 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41660 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41661 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41662 fi
41663
41664 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41665 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41666 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41667 fi
41668
41669 COND_SHARED_1="#"
41670 if test "x$SHARED" = "x1" ; then
41671 COND_SHARED_1=""
41672 fi
41673
41674 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41675 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41676 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41677 fi
41678
41679 COND_TOOLKIT_COCOA="#"
41680 if test "x$TOOLKIT" = "xCOCOA" ; then
41681 COND_TOOLKIT_COCOA=""
41682 fi
41683
41684 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41685 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41686 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41687 fi
41688
41689 COND_TOOLKIT_GTK="#"
41690 if test "x$TOOLKIT" = "xGTK" ; then
41691 COND_TOOLKIT_GTK=""
41692 fi
41693
41694 COND_TOOLKIT_GTK_USE_GUI_1="#"
41695 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41696 COND_TOOLKIT_GTK_USE_GUI_1=""
41697 fi
41698
41699 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41700 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41701 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41702 fi
41703
41704 COND_TOOLKIT_MAC="#"
41705 if test "x$TOOLKIT" = "xMAC" ; then
41706 COND_TOOLKIT_MAC=""
41707 fi
41708
41709 COND_TOOLKIT_MAC_USE_GUI_1="#"
41710 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41711 COND_TOOLKIT_MAC_USE_GUI_1=""
41712 fi
41713
41714 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41715 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41716 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41717 fi
41718
41719 COND_TOOLKIT_MGL="#"
41720 if test "x$TOOLKIT" = "xMGL" ; then
41721 COND_TOOLKIT_MGL=""
41722 fi
41723
41724 COND_TOOLKIT_MGL_USE_GUI_1="#"
41725 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41726 COND_TOOLKIT_MGL_USE_GUI_1=""
41727 fi
41728
41729 COND_TOOLKIT_MOTIF="#"
41730 if test "x$TOOLKIT" = "xMOTIF" ; then
41731 COND_TOOLKIT_MOTIF=""
41732 fi
41733
41734 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41735 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41736 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41737 fi
41738
41739 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41740 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41741 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41742 fi
41743
41744 COND_TOOLKIT_MSW="#"
41745 if test "x$TOOLKIT" = "xMSW" ; then
41746 COND_TOOLKIT_MSW=""
41747 fi
41748
41749 COND_TOOLKIT_MSW_USE_GUI_1="#"
41750 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41751 COND_TOOLKIT_MSW_USE_GUI_1=""
41752 fi
41753
41754 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41755 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41756 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41757 fi
41758
41759 COND_TOOLKIT_PM="#"
41760 if test "x$TOOLKIT" = "xPM" ; then
41761 COND_TOOLKIT_PM=""
41762 fi
41763
41764 COND_TOOLKIT_PM_USE_GUI_1="#"
41765 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41766 COND_TOOLKIT_PM_USE_GUI_1=""
41767 fi
41768
41769 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41770 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41771 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41772 fi
41773
41774 COND_TOOLKIT_WINCE="#"
41775 if test "x$TOOLKIT" = "xWINCE" ; then
41776 COND_TOOLKIT_WINCE=""
41777 fi
41778
41779 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41780 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41781 COND_TOOLKIT_WINCE_USE_GUI_1=""
41782 fi
41783
41784 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41785 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41786 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41787 fi
41788
41789 COND_TOOLKIT_X11="#"
41790 if test "x$TOOLKIT" = "xX11" ; then
41791 COND_TOOLKIT_X11=""
41792 fi
41793
41794 COND_TOOLKIT_X11_USE_GUI_1="#"
41795 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41796 COND_TOOLKIT_X11_USE_GUI_1=""
41797 fi
41798
41799 COND_UNICODE_1="#"
41800 if test "x$UNICODE" = "x1" ; then
41801 COND_UNICODE_1=""
41802 fi
41803
41804 COND_USE_EXCEPTIONS_0="#"
41805 if test "x$USE_EXCEPTIONS" = "x0" ; then
41806 COND_USE_EXCEPTIONS_0=""
41807 fi
41808
41809 COND_USE_EXCEPTIONS_1="#"
41810 if test "x$USE_EXCEPTIONS" = "x1" ; then
41811 COND_USE_EXCEPTIONS_1=""
41812 fi
41813
41814 COND_USE_GUI_0="#"
41815 if test "x$USE_GUI" = "x0" ; then
41816 COND_USE_GUI_0=""
41817 fi
41818
41819 COND_USE_GUI_1="#"
41820 if test "x$USE_GUI" = "x1" ; then
41821 COND_USE_GUI_1=""
41822 fi
41823
41824 COND_USE_GUI_1_WXUNIV_0="#"
41825 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41826 COND_USE_GUI_1_WXUNIV_0=""
41827 fi
41828
41829 COND_USE_GUI_1_WXUNIV_1="#"
41830 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41831 COND_USE_GUI_1_WXUNIV_1=""
41832 fi
41833
41834 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41835 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41836 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41837 fi
41838
41839 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41840 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41841 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41842 fi
41843
41844 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41845 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41846 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41847 fi
41848
41849 COND_USE_ODBC_1="#"
41850 if test "x$USE_ODBC" = "x1" ; then
41851 COND_USE_ODBC_1=""
41852 fi
41853
41854 COND_USE_PLUGINS_0="#"
41855 if test "x$USE_PLUGINS" = "x0" ; then
41856 COND_USE_PLUGINS_0=""
41857 fi
41858
41859 COND_USE_SOSYMLINKS_1="#"
41860 if test "x$USE_SOSYMLINKS" = "x1" ; then
41861 COND_USE_SOSYMLINKS_1=""
41862 fi
41863
41864 COND_USE_SOVERLINUX_1="#"
41865 if test "x$USE_SOVERLINUX" = "x1" ; then
41866 COND_USE_SOVERLINUX_1=""
41867 fi
41868
41869 COND_USE_SOVERSION_0="#"
41870 if test "x$USE_SOVERSION" = "x0" ; then
41871 COND_USE_SOVERSION_0=""
41872 fi
41873
41874 COND_USE_SOVERSOLARIS_1="#"
41875 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41876 COND_USE_SOVERSOLARIS_1=""
41877 fi
41878
41879 COND_WITH_PLUGIN_SDL_1="#"
41880 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41881 COND_WITH_PLUGIN_SDL_1=""
41882 fi
41883
41884 COND_WXUNIV_1="#"
41885 if test "x$WXUNIV" = "x1" ; then
41886 COND_WXUNIV_1=""
41887 fi
41888
41889 COND_WXUSE_EXPAT_BUILTIN="#"
41890 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41891 COND_WXUSE_EXPAT_BUILTIN=""
41892 fi
41893
41894 COND_WXUSE_LIBJPEG_BUILTIN="#"
41895 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41896 COND_WXUSE_LIBJPEG_BUILTIN=""
41897 fi
41898
41899 COND_WXUSE_LIBPNG_BUILTIN="#"
41900 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41901 COND_WXUSE_LIBPNG_BUILTIN=""
41902 fi
41903
41904 COND_WXUSE_LIBTIFF_BUILTIN="#"
41905 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41906 COND_WXUSE_LIBTIFF_BUILTIN=""
41907 fi
41908
41909 COND_WXUSE_ODBC_BUILTIN="#"
41910 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41911 COND_WXUSE_ODBC_BUILTIN=""
41912 fi
41913
41914 COND_WXUSE_REGEX_BUILTIN="#"
41915 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41916 COND_WXUSE_REGEX_BUILTIN=""
41917 fi
41918
41919 COND_WXUSE_ZLIB_BUILTIN="#"
41920 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41921 COND_WXUSE_ZLIB_BUILTIN=""
41922 fi
41923
a848cd7e
SC
41924
41925
41926
41927
41928if test $GCC_PCH = 1 ; then
41929 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41930 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
41931else
41932 case "${host}" in
41933 powerpc-*-darwin* )
41934 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41935 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41936 ;;
bea8e651 41937 *-*-mingw32* )
1f344abf
VS
41938 if test "$wxUSE_STL" = "yes" -o \
41939 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41940 "$wxUSE_NO_RTTI" != "yes"; then
41941 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41942echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41943 cat >conftest.$ac_ext <<_ACEOF
41944/* confdefs.h. */
41945_ACEOF
41946cat confdefs.h >>conftest.$ac_ext
41947cat >>conftest.$ac_ext <<_ACEOF
41948/* end confdefs.h. */
41949
41950int
41951main ()
41952{
1f344abf 41953#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41954 #error "Not GCC 3.2 or greater"
41955 #endif
41956
41957 ;
41958 return 0;
41959}
41960_ACEOF
41961rm -f conftest.$ac_objext
41962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41963 (eval $ac_compile) 2>conftest.er1
bea8e651 41964 ac_status=$?
ac1cb8d3
VS
41965 grep -v '^ *+' conftest.er1 >conftest.err
41966 rm -f conftest.er1
41967 cat conftest.err >&5
bea8e651
MB
41968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41969 (exit $ac_status); } &&
ac1cb8d3
VS
41970 { ac_try='test -z "$ac_c_werror_flag"
41971 || test ! -s conftest.err'
41972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41973 (eval $ac_try) 2>&5
41974 ac_status=$?
41975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976 (exit $ac_status); }; } &&
41977 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41979 (eval $ac_try) 2>&5
41980 ac_status=$?
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); }; }; then
41983 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41984 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41985 echo "$as_me:$LINENO: result: yes" >&5
41986echo "${ECHO_T}yes" >&6
41987else
41988 echo "$as_me: failed program was:" >&5
41989sed 's/^/| /' conftest.$ac_ext >&5
41990
41991echo "$as_me:$LINENO: result: no" >&5
41992echo "${ECHO_T}no" >&6
41993fi
ac1cb8d3 41994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41995 fi
41996 ;;
a848cd7e
SC
41997 esac
41998fi
41999
42000
42001SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42002
42003
42004
42005
42006
42007
42008
42009
42010
42011
42012
42013
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046
42047
42048
42049
42050
42051
42052
42053
42054
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
42068
42069
42070
42071
42072
42073
42074
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100
42101
42102echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42103echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42104set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42105if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42106 echo $ECHO_N "(cached) $ECHO_C" >&6
42107else
42108 cat >conftest.make <<\_ACEOF
42109all:
42110 @echo 'ac_maketemp="$(MAKE)"'
42111_ACEOF
42112# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42113eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42114if test -n "$ac_maketemp"; then
42115 eval ac_cv_prog_make_${ac_make}_set=yes
42116else
42117 eval ac_cv_prog_make_${ac_make}_set=no
42118fi
42119rm -f conftest.make
42120fi
42121if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42122 echo "$as_me:$LINENO: result: yes" >&5
42123echo "${ECHO_T}yes" >&6
42124 SET_MAKE=
42125else
42126 echo "$as_me:$LINENO: result: no" >&5
42127echo "${ECHO_T}no" >&6
42128 SET_MAKE="MAKE=${MAKE-make}"
42129fi
42130
42131
42132if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
42133 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
42134fi
42135
42136 ac_config_headers="$ac_config_headers setup.h"
42137
42138
42139 ac_config_files="$ac_config_files wx-config version-script Makefile"
42140
42141
42142 ac_config_commands="$ac_config_commands default"
42143
42144
42145
42146if test "$wxUSE_GUI" = "yes"; then
42147 SUBDIRS="samples demos utils contrib"
42148else SUBDIRS="samples utils"
42149fi
42150
42151
42152
42153# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42154if test "${with_cppunit_prefix+set}" = set; then
42155 withval="$with_cppunit_prefix"
42156 cppunit_config_prefix="$withval"
42157else
42158 cppunit_config_prefix=""
42159fi;
42160
42161# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42162if test "${with_cppunit_exec_prefix+set}" = set; then
42163 withval="$with_cppunit_exec_prefix"
42164 cppunit_config_exec_prefix="$withval"
42165else
42166 cppunit_config_exec_prefix=""
42167fi;
42168
42169 if test x$cppunit_config_exec_prefix != x ; then
42170 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42171 if test x${CPPUNIT_CONFIG+set} != xset ; then
42172 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42173 fi
42174 fi
42175 if test x$cppunit_config_prefix != x ; then
42176 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42177 if test x${CPPUNIT_CONFIG+set} != xset ; then
42178 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42179 fi
42180 fi
42181
42182 # Extract the first word of "cppunit-config", so it can be a program name with args.
42183set dummy cppunit-config; ac_word=$2
42184echo "$as_me:$LINENO: checking for $ac_word" >&5
42185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42186if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42187 echo $ECHO_N "(cached) $ECHO_C" >&6
42188else
42189 case $CPPUNIT_CONFIG in
42190 [\\/]* | ?:[\\/]*)
42191 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42192 ;;
42193 *)
42194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42195for as_dir in $PATH
42196do
42197 IFS=$as_save_IFS
42198 test -z "$as_dir" && as_dir=.
42199 for ac_exec_ext in '' $ac_executable_extensions; do
42200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42201 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42203 break 2
42204 fi
42205done
42206done
42207
42208 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42209 ;;
42210esac
42211fi
42212CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42213
42214if test -n "$CPPUNIT_CONFIG"; then
42215 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42216echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42217else
42218 echo "$as_me:$LINENO: result: no" >&5
42219echo "${ECHO_T}no" >&6
42220fi
42221
42222 cppunit_version_min=1.8.0
42223
42224 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42225echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42226 no_cppunit=""
42227 if test "$CPPUNIT_CONFIG" = "no" ; then
42228 no_cppunit=yes
c2218763
VS
42229 echo "$as_me:$LINENO: result: no" >&5
42230echo "${ECHO_T}no" >&6
a848cd7e
SC
42231 else
42232 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42233 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42234 cppunit_version=`$CPPUNIT_CONFIG --version`
42235
42236 cppunit_major_version=`echo $cppunit_version | \
42237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42238 cppunit_minor_version=`echo $cppunit_version | \
42239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42240 cppunit_micro_version=`echo $cppunit_version | \
42241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42242
42243 cppunit_major_min=`echo $cppunit_version_min | \
42244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42245 cppunit_minor_min=`echo $cppunit_version_min | \
42246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42247 cppunit_micro_min=`echo $cppunit_version_min | \
42248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42249
42250 cppunit_version_proper=`expr \
42251 $cppunit_major_version \> $cppunit_major_min \| \
42252 $cppunit_major_version \= $cppunit_major_min \& \
42253 $cppunit_minor_version \> $cppunit_minor_min \| \
42254 $cppunit_major_version \= $cppunit_major_min \& \
42255 $cppunit_minor_version \= $cppunit_minor_min \& \
42256 $cppunit_micro_version \>= $cppunit_micro_min `
42257
42258 if test "$cppunit_version_proper" = "1" ; then
42259 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42260echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42261 else
42262 echo "$as_me:$LINENO: result: no" >&5
42263echo "${ECHO_T}no" >&6
42264 no_cppunit=yes
42265 fi
42266 fi
42267
42268 if test "x$no_cppunit" = x ; then
c2218763 42269 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42270 else
42271 CPPUNIT_CFLAGS=""
42272 CPPUNIT_LIBS=""
c2218763 42273 :
a848cd7e
SC
42274 fi
42275
42276
42277
42278
42279
42280for subdir in `echo $SUBDIRS`; do
42281 if test -d ${srcdir}/${subdir} ; then
42282 if test "$wxUSE_GUI" = "yes"; then
42283 if test ${subdir} = "samples"; then
42284 makefiles="samples/Makefile.in $makefiles"
42285 for sample in `echo $SAMPLES_SUBDIRS`; do
42286 if test -d $srcdir/samples/$sample; then
42287 makefiles="samples/$sample/Makefile.in $makefiles"
42288 fi
42289 done
42290 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42291 fi
42292 else if test ${subdir} = "samples"; then
42293 makefiles="samples/Makefile.in samples/console/Makefile.in"
42294 elif test ${subdir} = "utils"; then
42295 makefiles="utils/HelpGen/Makefile.in \
42296 utils/HelpGen/src/Makefile.in \
42297 utils/tex2rtf/Makefile.in \
42298 utils/tex2rtf/src/Makefile.in"
42299 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42300 fi
42301 fi
42302
42303 for mkin in $makefiles ; do
42304 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42305 ac_config_files="$ac_config_files $mk"
42306
42307 done
42308 fi
42309done
42310
42311
42312cat >confcache <<\_ACEOF
42313# This file is a shell script that caches the results of configure
42314# tests run on this system so they can be shared between configure
42315# scripts and configure runs, see configure's option --config-cache.
42316# It is not useful on other systems. If it contains results you don't
42317# want to keep, you may remove or edit it.
42318#
42319# config.status only pays attention to the cache file if you give it
42320# the --recheck option to rerun configure.
42321#
42322# `ac_cv_env_foo' variables (set or unset) will be overridden when
42323# loading this file, other *unset* `ac_cv_foo' will be assigned the
42324# following values.
42325
42326_ACEOF
42327
42328# The following way of writing the cache mishandles newlines in values,
42329# but we know of no workaround that is simple, portable, and efficient.
42330# So, don't put newlines in cache variables' values.
42331# Ultrix sh set writes to stderr and can't be redirected directly,
42332# and sets the high bit in the cache file unless we assign to the vars.
42333{
42334 (set) 2>&1 |
42335 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42336 *ac_space=\ *)
42337 # `set' does not quote correctly, so add quotes (double-quote
42338 # substitution turns \\\\ into \\, and sed turns \\ into \).
42339 sed -n \
ac1cb8d3
VS
42340 "s/'/'\\\\''/g;
42341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42342 ;;
42343 *)
42344 # `set' quotes correctly as required by POSIX, so do not add quotes.
42345 sed -n \
ac1cb8d3 42346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42347 ;;
42348 esac;
42349} |
42350 sed '
42351 t clear
42352 : clear
42353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42354 t end
42355 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42356 : end' >>confcache
42357if diff $cache_file confcache >/dev/null 2>&1; then :; else
42358 if test -w $cache_file; then
42359 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42360 cat confcache >$cache_file
42361 else
42362 echo "not updating unwritable cache $cache_file"
42363 fi
42364fi
42365rm -f confcache
42366
42367test "x$prefix" = xNONE && prefix=$ac_default_prefix
42368# Let make expand exec_prefix.
42369test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42370
42371# VPATH may cause trouble with some makes, so we remove $(srcdir),
42372# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42373# trailing colons and then remove the whole line if VPATH becomes empty
42374# (actually we leave an empty line to preserve line numbers).
42375if test "x$srcdir" = x.; then
ac1cb8d3 42376 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42377s/:*\$(srcdir):*/:/;
42378s/:*\${srcdir}:*/:/;
42379s/:*@srcdir@:*/:/;
ac1cb8d3 42380s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42381s/:*$//;
ac1cb8d3 42382s/^[^=]*=[ ]*$//;
a848cd7e
SC
42383}'
42384fi
42385
42386DEFS=-DHAVE_CONFIG_H
42387
42388ac_libobjs=
42389ac_ltlibobjs=
42390for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42391 # 1. Remove the extension, and $U if already installed.
42392 ac_i=`echo "$ac_i" |
ac1cb8d3 42393 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42394 # 2. Add them.
42395 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42396 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42397done
42398LIBOBJS=$ac_libobjs
42399
42400LTLIBOBJS=$ac_ltlibobjs
42401
42402
42403
42404: ${CONFIG_STATUS=./config.status}
42405ac_clean_files_save=$ac_clean_files
42406ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42407{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42408echo "$as_me: creating $CONFIG_STATUS" >&6;}
42409cat >$CONFIG_STATUS <<_ACEOF
42410#! $SHELL
42411# Generated by $as_me.
42412# Run this file to recreate the current configuration.
42413# Compiler output produced by configure, useful for debugging
42414# configure, is in config.log if it exists.
42415
42416debug=false
42417ac_cs_recheck=false
42418ac_cs_silent=false
42419SHELL=\${CONFIG_SHELL-$SHELL}
42420_ACEOF
42421
42422cat >>$CONFIG_STATUS <<\_ACEOF
42423## --------------------- ##
42424## M4sh Initialization. ##
42425## --------------------- ##
42426
42427# Be Bourne compatible
42428if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42429 emulate sh
42430 NULLCMD=:
42431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42432 # is contrary to our usage. Disable this feature.
42433 alias -g '${1+"$@"}'='"$@"'
42434elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42435 set -o posix
42436fi
ac1cb8d3 42437DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42438
42439# Support unset when possible.
ac1cb8d3 42440if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42441 as_unset=unset
42442else
42443 as_unset=false
42444fi
42445
42446
42447# Work around bugs in pre-3.0 UWIN ksh.
42448$as_unset ENV MAIL MAILPATH
42449PS1='$ '
42450PS2='> '
42451PS4='+ '
42452
42453# NLS nuisances.
42454for as_var in \
42455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42457 LC_TELEPHONE LC_TIME
42458do
ac1cb8d3 42459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42460 eval $as_var=C; export $as_var
42461 else
42462 $as_unset $as_var
42463 fi
42464done
42465
42466# Required to use basename.
42467if expr a : '\(a\)' >/dev/null 2>&1; then
42468 as_expr=expr
42469else
42470 as_expr=false
42471fi
42472
42473if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42474 as_basename=basename
42475else
42476 as_basename=false
42477fi
42478
42479
42480# Name of the executable.
42481as_me=`$as_basename "$0" ||
42482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42483 X"$0" : 'X\(//\)$' \| \
42484 X"$0" : 'X\(/\)$' \| \
42485 . : '\(.\)' 2>/dev/null ||
42486echo X/"$0" |
42487 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42488 /^X\/\(\/\/\)$/{ s//\1/; q; }
42489 /^X\/\(\/\).*/{ s//\1/; q; }
42490 s/.*/./; q'`
42491
42492
42493# PATH needs CR, and LINENO needs CR and PATH.
42494# Avoid depending upon Character Ranges.
42495as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42496as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42497as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42498as_cr_digits='0123456789'
42499as_cr_alnum=$as_cr_Letters$as_cr_digits
42500
42501# The user is always right.
42502if test "${PATH_SEPARATOR+set}" != set; then
42503 echo "#! /bin/sh" >conf$$.sh
42504 echo "exit 0" >>conf$$.sh
42505 chmod +x conf$$.sh
42506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42507 PATH_SEPARATOR=';'
42508 else
42509 PATH_SEPARATOR=:
42510 fi
42511 rm -f conf$$.sh
42512fi
42513
42514
42515 as_lineno_1=$LINENO
42516 as_lineno_2=$LINENO
42517 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42518 test "x$as_lineno_1" != "x$as_lineno_2" &&
42519 test "x$as_lineno_3" = "x$as_lineno_2" || {
42520 # Find who we are. Look in the path if we contain no path at all
42521 # relative or not.
42522 case $0 in
42523 *[\\/]* ) as_myself=$0 ;;
42524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42525for as_dir in $PATH
42526do
42527 IFS=$as_save_IFS
42528 test -z "$as_dir" && as_dir=.
42529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42530done
42531
42532 ;;
42533 esac
42534 # We did not find ourselves, most probably we were run as `sh COMMAND'
42535 # in which case we are not to be found in the path.
42536 if test "x$as_myself" = x; then
42537 as_myself=$0
42538 fi
42539 if test ! -f "$as_myself"; then
42540 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42541echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42542 { (exit 1); exit 1; }; }
42543 fi
42544 case $CONFIG_SHELL in
42545 '')
42546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42547for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42548do
42549 IFS=$as_save_IFS
42550 test -z "$as_dir" && as_dir=.
42551 for as_base in sh bash ksh sh5; do
42552 case $as_dir in
42553 /*)
42554 if ("$as_dir/$as_base" -c '
42555 as_lineno_1=$LINENO
42556 as_lineno_2=$LINENO
42557 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42558 test "x$as_lineno_1" != "x$as_lineno_2" &&
42559 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42560 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42561 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42562 CONFIG_SHELL=$as_dir/$as_base
42563 export CONFIG_SHELL
42564 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42565 fi;;
42566 esac
42567 done
42568done
42569;;
42570 esac
42571
42572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42573 # uniformly replaced by the line number. The first 'sed' inserts a
42574 # line-number line before each line; the second 'sed' does the real
42575 # work. The second script uses 'N' to pair each line-number line
42576 # with the numbered line, and appends trailing '-' during
42577 # substitution so that $LINENO is not a special case at line end.
42578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42579 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42580 sed '=' <$as_myself |
42581 sed '
42582 N
42583 s,$,-,
42584 : loop
42585 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42586 t loop
42587 s,-$,,
42588 s,^['$as_cr_digits']*\n,,
42589 ' >$as_me.lineno &&
42590 chmod +x $as_me.lineno ||
42591 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42592echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42593 { (exit 1); exit 1; }; }
42594
42595 # Don't try to exec as it changes $[0], causing all sort of problems
42596 # (the dirname of $[0] is not the place where we might find the
42597 # original and so on. Autoconf is especially sensible to this).
42598 . ./$as_me.lineno
42599 # Exit status is that of the last command.
42600 exit
42601}
42602
42603
42604case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42605 *c*,-n*) ECHO_N= ECHO_C='
42606' ECHO_T=' ' ;;
42607 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42608 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42609esac
42610
42611if expr a : '\(a\)' >/dev/null 2>&1; then
42612 as_expr=expr
42613else
42614 as_expr=false
42615fi
42616
42617rm -f conf$$ conf$$.exe conf$$.file
42618echo >conf$$.file
42619if ln -s conf$$.file conf$$ 2>/dev/null; then
42620 # We could just check for DJGPP; but this test a) works b) is more generic
42621 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42622 if test -f conf$$.exe; then
42623 # Don't use ln at all; we don't have any links
42624 as_ln_s='cp -p'
42625 else
42626 as_ln_s='ln -s'
42627 fi
42628elif ln conf$$.file conf$$ 2>/dev/null; then
42629 as_ln_s=ln
42630else
42631 as_ln_s='cp -p'
42632fi
42633rm -f conf$$ conf$$.exe conf$$.file
42634
42635if mkdir -p . 2>/dev/null; then
42636 as_mkdir_p=:
42637else
ac1cb8d3 42638 test -d ./-p && rmdir ./-p
a848cd7e
SC
42639 as_mkdir_p=false
42640fi
42641
42642as_executable_p="test -f"
42643
42644# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42645as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42646
42647# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42648as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42649
42650
42651# IFS
42652# We need space, tab and new line, in precisely that order.
42653as_nl='
42654'
42655IFS=" $as_nl"
42656
42657# CDPATH.
42658$as_unset CDPATH
42659
42660exec 6>&1
42661
42662# Open the log real soon, to keep \$[0] and so on meaningful, and to
42663# report actual input values of CONFIG_FILES etc. instead of their
42664# values after options handling. Logging --version etc. is OK.
42665exec 5>>config.log
42666{
42667 echo
42668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42669## Running $as_me. ##
42670_ASBOX
42671} >&5
42672cat >&5 <<_CSEOF
42673
77ffb593 42674This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 42675generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42676
42677 CONFIG_FILES = $CONFIG_FILES
42678 CONFIG_HEADERS = $CONFIG_HEADERS
42679 CONFIG_LINKS = $CONFIG_LINKS
42680 CONFIG_COMMANDS = $CONFIG_COMMANDS
42681 $ $0 $@
42682
42683_CSEOF
42684echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42685echo >&5
42686_ACEOF
42687
42688# Files that config.status was made for.
42689if test -n "$ac_config_files"; then
42690 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42691fi
42692
42693if test -n "$ac_config_headers"; then
42694 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42695fi
42696
42697if test -n "$ac_config_links"; then
42698 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42699fi
42700
42701if test -n "$ac_config_commands"; then
42702 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42703fi
42704
42705cat >>$CONFIG_STATUS <<\_ACEOF
42706
42707ac_cs_usage="\
42708\`$as_me' instantiates files from templates according to the
42709current configuration.
42710
42711Usage: $0 [OPTIONS] [FILE]...
42712
42713 -h, --help print this help, then exit
42714 -V, --version print version number, then exit
42715 -q, --quiet do not print progress messages
42716 -d, --debug don't remove temporary files
42717 --recheck update $as_me by reconfiguring in the same conditions
42718 --file=FILE[:TEMPLATE]
ac1cb8d3 42719 instantiate the configuration file FILE
a848cd7e 42720 --header=FILE[:TEMPLATE]
ac1cb8d3 42721 instantiate the configuration header FILE
a848cd7e
SC
42722
42723Configuration files:
42724$config_files
42725
42726Configuration headers:
42727$config_headers
42728
42729Configuration commands:
42730$config_commands
42731
42732Report bugs to <bug-autoconf@gnu.org>."
42733_ACEOF
42734
42735cat >>$CONFIG_STATUS <<_ACEOF
42736ac_cs_version="\\
77ffb593 42737wxWidgets config.status 2.5.2
ac1cb8d3 42738configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42739 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42740
ac1cb8d3 42741Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42742This config.status script is free software; the Free Software Foundation
42743gives unlimited permission to copy, distribute and modify it."
42744srcdir=$srcdir
42745INSTALL="$INSTALL"
42746_ACEOF
42747
42748cat >>$CONFIG_STATUS <<\_ACEOF
42749# If no file are specified by the user, then we need to provide default
42750# value. By we need to know if files were specified by the user.
42751ac_need_defaults=:
42752while test $# != 0
42753do
42754 case $1 in
42755 --*=*)
42756 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42757 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42758 ac_shift=:
42759 ;;
42760 -*)
42761 ac_option=$1
42762 ac_optarg=$2
42763 ac_shift=shift
42764 ;;
42765 *) # This is not an option, so the user has probably given explicit
42766 # arguments.
42767 ac_option=$1
42768 ac_need_defaults=false;;
42769 esac
42770
42771 case $ac_option in
42772 # Handling of the options.
42773_ACEOF
42774cat >>$CONFIG_STATUS <<\_ACEOF
42775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42776 ac_cs_recheck=: ;;
42777 --version | --vers* | -V )
42778 echo "$ac_cs_version"; exit 0 ;;
42779 --he | --h)
42780 # Conflict between --help and --header
42781 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42782Try \`$0 --help' for more information." >&5
42783echo "$as_me: error: ambiguous option: $1
42784Try \`$0 --help' for more information." >&2;}
42785 { (exit 1); exit 1; }; };;
42786 --help | --hel | -h )
42787 echo "$ac_cs_usage"; exit 0 ;;
42788 --debug | --d* | -d )
42789 debug=: ;;
42790 --file | --fil | --fi | --f )
42791 $ac_shift
42792 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42793 ac_need_defaults=false;;
42794 --header | --heade | --head | --hea )
42795 $ac_shift
42796 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42797 ac_need_defaults=false;;
42798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42799 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42800 ac_cs_silent=: ;;
42801
42802 # This is an error.
42803 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42804Try \`$0 --help' for more information." >&5
42805echo "$as_me: error: unrecognized option: $1
42806Try \`$0 --help' for more information." >&2;}
42807 { (exit 1); exit 1; }; } ;;
42808
42809 *) ac_config_targets="$ac_config_targets $1" ;;
42810
42811 esac
42812 shift
42813done
42814
42815ac_configure_extra_args=
42816
42817if $ac_cs_silent; then
42818 exec 6>/dev/null
42819 ac_configure_extra_args="$ac_configure_extra_args --silent"
42820fi
42821
42822_ACEOF
42823cat >>$CONFIG_STATUS <<_ACEOF
42824if \$ac_cs_recheck; then
42825 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42826 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42827fi
42828
42829_ACEOF
42830
42831cat >>$CONFIG_STATUS <<_ACEOF
42832#
42833# INIT-COMMANDS section.
42834#
42835
42836
42837 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
42838 LN_S="${LN_S}"
42839
42840
42841
42842_ACEOF
42843
42844
42845
42846cat >>$CONFIG_STATUS <<\_ACEOF
42847for ac_config_target in $ac_config_targets
42848do
42849 case "$ac_config_target" in
42850 # Handling of arguments.
42851 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
42852 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42853 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42854 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
42855 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42856 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
42857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42858echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42859 { (exit 1); exit 1; }; };;
42860 esac
42861done
42862
42863# If the user did not use the arguments to specify the items to instantiate,
42864# then the envvar interface is used. Set only those that are not.
42865# We use the long form for the default assignment because of an extremely
42866# bizarre bug on SunOS 4.1.3.
42867if $ac_need_defaults; then
42868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42871fi
42872
42873# Have a temporary directory for convenience. Make it in the build tree
42874# simply because there is no reason to put it here, and in addition,
42875# creating and moving files from /tmp can sometimes cause problems.
42876# Create a temporary directory, and hook for its removal unless debugging.
42877$debug ||
42878{
42879 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42880 trap '{ (exit 1); exit 1; }' 1 2 13 15
42881}
42882
42883# Create a (secure) tmp directory for tmp files.
42884
42885{
42886 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42887 test -n "$tmp" && test -d "$tmp"
42888} ||
42889{
42890 tmp=./confstat$$-$RANDOM
42891 (umask 077 && mkdir $tmp)
42892} ||
42893{
42894 echo "$me: cannot create a temporary directory in ." >&2
42895 { (exit 1); exit 1; }
42896}
42897
42898_ACEOF
42899
42900cat >>$CONFIG_STATUS <<_ACEOF
42901
42902#
42903# CONFIG_FILES section.
42904#
42905
42906# No need to generate the scripts if there are no CONFIG_FILES.
42907# This happens for instance when ./config.status config.h
42908if test -n "\$CONFIG_FILES"; then
42909 # Protect against being on the right side of a sed subst in config.status.
42910 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42911 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42912s,@SHELL@,$SHELL,;t t
42913s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42914s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42915s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42916s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42917s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42918s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42919s,@exec_prefix@,$exec_prefix,;t t
42920s,@prefix@,$prefix,;t t
42921s,@program_transform_name@,$program_transform_name,;t t
42922s,@bindir@,$bindir,;t t
42923s,@sbindir@,$sbindir,;t t
42924s,@libexecdir@,$libexecdir,;t t
42925s,@datadir@,$datadir,;t t
42926s,@sysconfdir@,$sysconfdir,;t t
42927s,@sharedstatedir@,$sharedstatedir,;t t
42928s,@localstatedir@,$localstatedir,;t t
42929s,@libdir@,$libdir,;t t
42930s,@includedir@,$includedir,;t t
42931s,@oldincludedir@,$oldincludedir,;t t
42932s,@infodir@,$infodir,;t t
42933s,@mandir@,$mandir,;t t
42934s,@build_alias@,$build_alias,;t t
42935s,@host_alias@,$host_alias,;t t
42936s,@target_alias@,$target_alias,;t t
42937s,@DEFS@,$DEFS,;t t
42938s,@ECHO_C@,$ECHO_C,;t t
42939s,@ECHO_N@,$ECHO_N,;t t
42940s,@ECHO_T@,$ECHO_T,;t t
42941s,@LIBS@,$LIBS,;t t
42942s,@build@,$build,;t t
42943s,@build_cpu@,$build_cpu,;t t
42944s,@build_vendor@,$build_vendor,;t t
42945s,@build_os@,$build_os,;t t
42946s,@host@,$host,;t t
42947s,@host_cpu@,$host_cpu,;t t
42948s,@host_vendor@,$host_vendor,;t t
42949s,@host_os@,$host_os,;t t
42950s,@target@,$target,;t t
42951s,@target_cpu@,$target_cpu,;t t
42952s,@target_vendor@,$target_vendor,;t t
42953s,@target_os@,$target_os,;t t
42954s,@CC@,$CC,;t t
42955s,@CFLAGS@,$CFLAGS,;t t
42956s,@LDFLAGS@,$LDFLAGS,;t t
42957s,@CPPFLAGS@,$CPPFLAGS,;t t
42958s,@ac_ct_CC@,$ac_ct_CC,;t t
42959s,@EXEEXT@,$EXEEXT,;t t
42960s,@OBJEXT@,$OBJEXT,;t t
42961s,@CPP@,$CPP,;t t
42962s,@EGREP@,$EGREP,;t t
42963s,@CXX@,$CXX,;t t
42964s,@CXXFLAGS@,$CXXFLAGS,;t t
42965s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42966s,@RANLIB@,$RANLIB,;t t
42967s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42968s,@AR@,$AR,;t t
42969s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42970s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42971s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42972s,@STRIP@,$STRIP,;t t
42973s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42974s,@LN_S@,$LN_S,;t t
42975s,@CXXCPP@,$CXXCPP,;t t
42976s,@subdirs@,$subdirs,;t t
42977s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42978s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42979s,@GTK_LIBS@,$GTK_LIBS,;t t
42980s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42981s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42982s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42983s,@X_CFLAGS@,$X_CFLAGS,;t t
42984s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42985s,@X_LIBS@,$X_LIBS,;t t
42986s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42987s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42988s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42989s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42990s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42991s,@RESCOMP@,$RESCOMP,;t t
42992s,@DEREZ@,$DEREZ,;t t
42993s,@SETFILE@,$SETFILE,;t t
42994s,@LIBICONV@,$LIBICONV,;t t
42995s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42996s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42997s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42998s,@SDL_LIBS@,$SDL_LIBS,;t t
42999s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43000s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43001s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43002s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43003s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43004s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43005s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43006s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43007s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43008s,@VENDOR@,$VENDOR,;t t
43009s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
43010s,@WXUNIV@,$WXUNIV,;t t
43011s,@MONOLITHIC@,$MONOLITHIC,;t t
43012s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43013s,@EXTRALIBS@,$EXTRALIBS,;t t
43014s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43015s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43016s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43017s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43018s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43019s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43020s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
43021s,@UNICODE@,$UNICODE,;t t
43022s,@BUILD@,$BUILD,;t t
43023s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43024s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
43025s,@SHARED@,$SHARED,;t t
43026s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43027s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43028s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43029s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43030s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43031s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43032s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43033s,@SET_MAKE@,$SET_MAKE,;t t
43034s,@MAKE_SET@,$MAKE_SET,;t t
43035s,@ac_ct_AR@,$ac_ct_AR,;t t
43036s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43037s,@NM@,$NM,;t t
43038s,@ac_ct_NM@,$ac_ct_NM,;t t
43039s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43040s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43041s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43042s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43043s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43044s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
43045s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43046s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
43047s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43048s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43049s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43050s,@LIBPREFIX@,$LIBPREFIX,;t t
43051s,@LIBEXT@,$LIBEXT,;t t
43052s,@DLLPREFIX@,$DLLPREFIX,;t t
43053s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43054s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43055s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43056s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43057s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43058s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43059s,@PIC_FLAG@,$PIC_FLAG,;t t
43060s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43061s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43062s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43063s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43064s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43065s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43066s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43067s,@GCC_PCH@,$GCC_PCH,;t t
43068s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43069s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43070s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43071s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43072s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43073s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43074s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43075s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43076s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43077s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43078s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43079s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43080s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43081s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43082s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43083s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43084s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43085s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
43086s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
43087s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
43088s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
43089s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43090s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
43091s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
43092s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
43093s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
43094s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43095s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43096s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43097s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43098s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43099s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43100s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43101s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
43102s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43103s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43104s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
43105s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43106s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
43107s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43108s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43109s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43110s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43111s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43112s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43113s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43114s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43115s,@COND_SHARED_0@,$COND_SHARED_0,;t t
43116s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43117s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43118s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43119s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43120s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43121s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43122s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43123s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43124s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43125s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
43126s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
43127s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43128s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43129s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43130s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43131s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43132s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43133s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43134s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43135s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43136s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43137s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43138s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43139s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43140s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43141s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43142s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43143s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43144s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43145s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43146s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43147s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43148s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43149s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43150s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43151s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43152s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43153s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43154s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43155s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43156s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43157s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43158s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43159s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43160s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
43161s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43162s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43163s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43164s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43165s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
43166s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
43167s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
43168s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43169s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43170s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43171s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43172s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43173s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43174s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43175s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
43176s,@PATH_IFS@,$PATH_IFS,;t t
43177s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
43178s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
43179s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
43180s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
43181s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
43182s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43183s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
43184s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
43185s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
43186s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
43187s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
43188s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
43189s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
43190s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
43191s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
43192s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
43193s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
43194s,@WX_ALL@,$WX_ALL,;t t
43195s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
43196s,@SHARED_LD@,$SHARED_LD,;t t
43197s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
43198s,@STATIC_FLAG@,$STATIC_FLAG,;t t
43199s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43200s,@USE_GUI@,$USE_GUI,;t t
43201s,@AFMINSTALL@,$AFMINSTALL,;t t
43202s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43203s,@TOOLKIT@,$TOOLKIT,;t t
43204s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
43205s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
43206s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
43207s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43208s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
43209s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
43210s,@cross_compiling@,$cross_compiling,;t t
43211s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
43212s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
43213s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
43214s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
43215s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
43216s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43217s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43218s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43219s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
43220s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43221s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
43222s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
43223s,@ALL_HEADERS@,$ALL_HEADERS,;t t
43224s,@ALL_SOURCES@,$ALL_SOURCES,;t t
43225s,@GUIDIST@,$GUIDIST,;t t
43226s,@PORT_FILES@,$PORT_FILES,;t t
43227s,@DISTDIR@,$DISTDIR,;t t
43228s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43229s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
43230s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
43231s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
43232s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43233s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43234s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43235s,@RESFLAGS@,$RESFLAGS,;t t
43236s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43237s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43238s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43239s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43240s,@MACRESCOMP@,$MACRESCOMP,;t t
43241s,@MACSETFILE@,$MACSETFILE,;t t
43242s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43243s,@GCC@,$GCC,;t t
43244s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
43245s,@DLLTOOL@,$DLLTOOL,;t t
43246s,@AS@,$AS,;t t
43247s,@LD@,$LD,;t t
43248s,@MAKEINFO@,$MAKEINFO,;t t
43249s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
43250s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43251s,@LIBOBJS@,$LIBOBJS,;t t
43252s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43253CEOF
43254
43255_ACEOF
43256
43257 cat >>$CONFIG_STATUS <<\_ACEOF
43258 # Split the substitutions into bite-sized pieces for seds with
43259 # small command number limits, like on Digital OSF/1 and HP-UX.
43260 ac_max_sed_lines=48
43261 ac_sed_frag=1 # Number of current file.
43262 ac_beg=1 # First line for current file.
43263 ac_end=$ac_max_sed_lines # Line after last line for current file.
43264 ac_more_lines=:
43265 ac_sed_cmds=
43266 while $ac_more_lines; do
43267 if test $ac_beg -gt 1; then
43268 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43269 else
43270 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43271 fi
43272 if test ! -s $tmp/subs.frag; then
43273 ac_more_lines=false
43274 else
43275 # The purpose of the label and of the branching condition is to
43276 # speed up the sed processing (if there are no `@' at all, there
43277 # is no need to browse any of the substitutions).
43278 # These are the two extra sed commands mentioned above.
43279 (echo ':t
43280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43281 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43282 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43283 else
ac1cb8d3 43284 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43285 fi
43286 ac_sed_frag=`expr $ac_sed_frag + 1`
43287 ac_beg=$ac_end
43288 ac_end=`expr $ac_end + $ac_max_sed_lines`
43289 fi
43290 done
43291 if test -z "$ac_sed_cmds"; then
43292 ac_sed_cmds=cat
43293 fi
43294fi # test -n "$CONFIG_FILES"
43295
43296_ACEOF
43297cat >>$CONFIG_STATUS <<\_ACEOF
43298for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43300 case $ac_file in
43301 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43302 cat >$tmp/stdin
43303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43307 * ) ac_file_in=$ac_file.in ;;
43308 esac
43309
43310 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43311 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43312$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43313 X"$ac_file" : 'X\(//\)[^/]' \| \
43314 X"$ac_file" : 'X\(//\)$' \| \
43315 X"$ac_file" : 'X\(/\)' \| \
43316 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43317echo X"$ac_file" |
43318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43320 /^X\(\/\/\)$/{ s//\1/; q; }
43321 /^X\(\/\).*/{ s//\1/; q; }
43322 s/.*/./; q'`
43323 { if $as_mkdir_p; then
43324 mkdir -p "$ac_dir"
43325 else
43326 as_dir="$ac_dir"
43327 as_dirs=
43328 while test ! -d "$as_dir"; do
43329 as_dirs="$as_dir $as_dirs"
43330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43332 X"$as_dir" : 'X\(//\)[^/]' \| \
43333 X"$as_dir" : 'X\(//\)$' \| \
43334 X"$as_dir" : 'X\(/\)' \| \
43335 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43336echo X"$as_dir" |
43337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43339 /^X\(\/\/\)$/{ s//\1/; q; }
43340 /^X\(\/\).*/{ s//\1/; q; }
43341 s/.*/./; q'`
43342 done
43343 test ! -n "$as_dirs" || mkdir $as_dirs
43344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43345echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43346 { (exit 1); exit 1; }; }; }
43347
43348 ac_builddir=.
43349
43350if test "$ac_dir" != .; then
43351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43352 # A "../" for each directory in $ac_dir_suffix.
43353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43354else
43355 ac_dir_suffix= ac_top_builddir=
43356fi
43357
43358case $srcdir in
43359 .) # No --srcdir option. We are building in place.
43360 ac_srcdir=.
43361 if test -z "$ac_top_builddir"; then
43362 ac_top_srcdir=.
43363 else
43364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43365 fi ;;
43366 [\\/]* | ?:[\\/]* ) # Absolute path.
43367 ac_srcdir=$srcdir$ac_dir_suffix;
43368 ac_top_srcdir=$srcdir ;;
43369 *) # Relative path.
43370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43372esac
ac1cb8d3
VS
43373
43374# Do not use `cd foo && pwd` to compute absolute paths, because
43375# the directories may not exist.
43376case `pwd` in
43377.) ac_abs_builddir="$ac_dir";;
43378*)
43379 case "$ac_dir" in
43380 .) ac_abs_builddir=`pwd`;;
43381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43383 esac;;
43384esac
43385case $ac_abs_builddir in
43386.) ac_abs_top_builddir=${ac_top_builddir}.;;
43387*)
43388 case ${ac_top_builddir}. in
43389 .) ac_abs_top_builddir=$ac_abs_builddir;;
43390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43392 esac;;
43393esac
43394case $ac_abs_builddir in
43395.) ac_abs_srcdir=$ac_srcdir;;
43396*)
43397 case $ac_srcdir in
43398 .) ac_abs_srcdir=$ac_abs_builddir;;
43399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43401 esac;;
43402esac
43403case $ac_abs_builddir in
43404.) ac_abs_top_srcdir=$ac_top_srcdir;;
43405*)
43406 case $ac_top_srcdir in
43407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43410 esac;;
43411esac
a848cd7e
SC
43412
43413
43414 case $INSTALL in
43415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43416 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43417 esac
43418
dcc1b6ad
VS
43419 if test x"$ac_file" != x-; then
43420 { echo "$as_me:$LINENO: creating $ac_file" >&5
43421echo "$as_me: creating $ac_file" >&6;}
43422 rm -f "$ac_file"
43423 fi
a848cd7e
SC
43424 # Let's still pretend it is `configure' which instantiates (i.e., don't
43425 # use $as_me), people would be surprised to read:
43426 # /* config.h. Generated by config.status. */
43427 if test x"$ac_file" = x-; then
43428 configure_input=
43429 else
43430 configure_input="$ac_file. "
43431 fi
43432 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43433 sed 's,.*/,,'` by configure."
a848cd7e
SC
43434
43435 # First look for the input files in the build tree, otherwise in the
43436 # src tree.
43437 ac_file_inputs=`IFS=:
43438 for f in $ac_file_in; do
43439 case $f in
43440 -) echo $tmp/stdin ;;
43441 [\\/$]*)
ac1cb8d3
VS
43442 # Absolute (can't be DOS-style, as IFS=:)
43443 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43444echo "$as_me: error: cannot find input file: $f" >&2;}
43445 { (exit 1); exit 1; }; }
ac1cb8d3 43446 echo "$f";;
a848cd7e 43447 *) # Relative
ac1cb8d3
VS
43448 if test -f "$f"; then
43449 # Build tree
43450 echo "$f"
43451 elif test -f "$srcdir/$f"; then
43452 # Source tree
43453 echo "$srcdir/$f"
43454 else
43455 # /dev/null tree
43456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43457echo "$as_me: error: cannot find input file: $f" >&2;}
43458 { (exit 1); exit 1; }; }
ac1cb8d3 43459 fi;;
a848cd7e
SC
43460 esac
43461 done` || { (exit 1); exit 1; }
43462_ACEOF
43463cat >>$CONFIG_STATUS <<_ACEOF
43464 sed "$ac_vpsub
43465$extrasub
43466_ACEOF
43467cat >>$CONFIG_STATUS <<\_ACEOF
43468:t
43469/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43470s,@configure_input@,$configure_input,;t t
43471s,@srcdir@,$ac_srcdir,;t t
43472s,@abs_srcdir@,$ac_abs_srcdir,;t t
43473s,@top_srcdir@,$ac_top_srcdir,;t t
43474s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43475s,@builddir@,$ac_builddir,;t t
43476s,@abs_builddir@,$ac_abs_builddir,;t t
43477s,@top_builddir@,$ac_top_builddir,;t t
43478s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43479s,@INSTALL@,$ac_INSTALL,;t t
43480" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43481 rm -f $tmp/stdin
43482 if test x"$ac_file" != x-; then
43483 mv $tmp/out $ac_file
43484 else
43485 cat $tmp/out
43486 rm -f $tmp/out
43487 fi
43488
43489done
43490_ACEOF
43491cat >>$CONFIG_STATUS <<\_ACEOF
43492
43493#
43494# CONFIG_HEADER section.
43495#
43496
43497# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43498# NAME is the cpp macro being defined and VALUE is the value it is being given.
43499#
43500# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43501ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43502ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43503ac_dC=' '
43504ac_dD=',;t'
43505# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43506ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43507ac_uB='$,\1#\2define\3'
43508ac_uC=' '
43509ac_uD=',;t'
43510
43511for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43513 case $ac_file in
43514 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43515 cat >$tmp/stdin
43516 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43520 * ) ac_file_in=$ac_file.in ;;
43521 esac
43522
43523 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43524echo "$as_me: creating $ac_file" >&6;}
43525
43526 # First look for the input files in the build tree, otherwise in the
43527 # src tree.
43528 ac_file_inputs=`IFS=:
43529 for f in $ac_file_in; do
43530 case $f in
43531 -) echo $tmp/stdin ;;
43532 [\\/$]*)
ac1cb8d3
VS
43533 # Absolute (can't be DOS-style, as IFS=:)
43534 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43535echo "$as_me: error: cannot find input file: $f" >&2;}
43536 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43537 # Do quote $f, to prevent DOS paths from being IFS'd.
43538 echo "$f";;
a848cd7e 43539 *) # Relative
ac1cb8d3
VS
43540 if test -f "$f"; then
43541 # Build tree
43542 echo "$f"
43543 elif test -f "$srcdir/$f"; then
43544 # Source tree
43545 echo "$srcdir/$f"
43546 else
43547 # /dev/null tree
43548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43549echo "$as_me: error: cannot find input file: $f" >&2;}
43550 { (exit 1); exit 1; }; }
ac1cb8d3 43551 fi;;
a848cd7e
SC
43552 esac
43553 done` || { (exit 1); exit 1; }
43554 # Remove the trailing spaces.
ac1cb8d3 43555 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43556
43557_ACEOF
43558
43559# Transform confdefs.h into two sed scripts, `conftest.defines' and
43560# `conftest.undefs', that substitutes the proper values into
43561# config.h.in to produce config.h. The first handles `#define'
43562# templates, and the second `#undef' templates.
43563# And first: Protect against being on the right side of a sed subst in
43564# config.status. Protect against being in an unquoted here document
43565# in config.status.
43566rm -f conftest.defines conftest.undefs
43567# Using a here document instead of a string reduces the quoting nightmare.
43568# Putting comments in sed scripts is not portable.
43569#
43570# `end' is used to avoid that the second main sed command (meant for
43571# 0-ary CPP macros) applies to n-ary macro definitions.
43572# See the Autoconf documentation for `clear'.
43573cat >confdef2sed.sed <<\_ACEOF
43574s/[\\&,]/\\&/g
43575s,[\\$`],\\&,g
43576t clear
43577: clear
ac1cb8d3 43578s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43579t end
ac1cb8d3 43580s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43581: end
43582_ACEOF
43583# If some macros were called several times there might be several times
43584# the same #defines, which is useless. Nevertheless, we may not want to
43585# sort them, since we want the *last* AC-DEFINE to be honored.
43586uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43587sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43588rm -f confdef2sed.sed
43589
43590# This sed command replaces #undef with comments. This is necessary, for
43591# example, in the case of _POSIX_SOURCE, which is predefined and required
43592# on some systems where configure will not decide to define it.
43593cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43594s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43595_ACEOF
43596
43597# Break up conftest.defines because some shells have a limit on the size
43598# of here documents, and old seds have small limits too (100 cmds).
43599echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43600echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43601echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43602echo ' :' >>$CONFIG_STATUS
43603rm -f conftest.tail
43604while grep . conftest.defines >/dev/null
43605do
43606 # Write a limited-size here document to $tmp/defines.sed.
43607 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43608 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43609 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43610 # Work around the forget-to-reset-the-flag bug.
43611 echo 't clr' >>$CONFIG_STATUS
43612 echo ': clr' >>$CONFIG_STATUS
43613 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43614 echo 'CEOF
43615 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43616 rm -f $tmp/in
43617 mv $tmp/out $tmp/in
43618' >>$CONFIG_STATUS
43619 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43620 rm -f conftest.defines
43621 mv conftest.tail conftest.defines
43622done
43623rm -f conftest.defines
43624echo ' fi # grep' >>$CONFIG_STATUS
43625echo >>$CONFIG_STATUS
43626
43627# Break up conftest.undefs because some shells have a limit on the size
43628# of here documents, and old seds have small limits too (100 cmds).
43629echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43630rm -f conftest.tail
43631while grep . conftest.undefs >/dev/null
43632do
43633 # Write a limited-size here document to $tmp/undefs.sed.
43634 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43635 # Speed up: don't consider the non `#undef'
ac1cb8d3 43636 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43637 # Work around the forget-to-reset-the-flag bug.
43638 echo 't clr' >>$CONFIG_STATUS
43639 echo ': clr' >>$CONFIG_STATUS
43640 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43641 echo 'CEOF
43642 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43643 rm -f $tmp/in
43644 mv $tmp/out $tmp/in
43645' >>$CONFIG_STATUS
43646 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43647 rm -f conftest.undefs
43648 mv conftest.tail conftest.undefs
43649done
43650rm -f conftest.undefs
43651
43652cat >>$CONFIG_STATUS <<\_ACEOF
43653 # Let's still pretend it is `configure' which instantiates (i.e., don't
43654 # use $as_me), people would be surprised to read:
43655 # /* config.h. Generated by config.status. */
43656 if test x"$ac_file" = x-; then
43657 echo "/* Generated by configure. */" >$tmp/config.h
43658 else
43659 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43660 fi
43661 cat $tmp/in >>$tmp/config.h
43662 rm -f $tmp/in
43663 if test x"$ac_file" != x-; then
43664 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43665 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43666echo "$as_me: $ac_file is unchanged" >&6;}
43667 else
43668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43669$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43670 X"$ac_file" : 'X\(//\)[^/]' \| \
43671 X"$ac_file" : 'X\(//\)$' \| \
43672 X"$ac_file" : 'X\(/\)' \| \
43673 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43674echo X"$ac_file" |
43675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43677 /^X\(\/\/\)$/{ s//\1/; q; }
43678 /^X\(\/\).*/{ s//\1/; q; }
43679 s/.*/./; q'`
43680 { if $as_mkdir_p; then
43681 mkdir -p "$ac_dir"
43682 else
43683 as_dir="$ac_dir"
43684 as_dirs=
43685 while test ! -d "$as_dir"; do
43686 as_dirs="$as_dir $as_dirs"
43687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43689 X"$as_dir" : 'X\(//\)[^/]' \| \
43690 X"$as_dir" : 'X\(//\)$' \| \
43691 X"$as_dir" : 'X\(/\)' \| \
43692 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43693echo X"$as_dir" |
43694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43696 /^X\(\/\/\)$/{ s//\1/; q; }
43697 /^X\(\/\).*/{ s//\1/; q; }
43698 s/.*/./; q'`
43699 done
43700 test ! -n "$as_dirs" || mkdir $as_dirs
43701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43702echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43703 { (exit 1); exit 1; }; }; }
43704
43705 rm -f $ac_file
43706 mv $tmp/config.h $ac_file
43707 fi
43708 else
43709 cat $tmp/config.h
43710 rm -f $tmp/config.h
43711 fi
43712done
43713_ACEOF
43714cat >>$CONFIG_STATUS <<\_ACEOF
43715
43716#
43717# CONFIG_COMMANDS section.
43718#
43719for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43720 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43721 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43722 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43723$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43724 X"$ac_dest" : 'X\(//\)[^/]' \| \
43725 X"$ac_dest" : 'X\(//\)$' \| \
43726 X"$ac_dest" : 'X\(/\)' \| \
43727 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43728echo X"$ac_dest" |
43729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43731 /^X\(\/\/\)$/{ s//\1/; q; }
43732 /^X\(\/\).*/{ s//\1/; q; }
43733 s/.*/./; q'`
ac1cb8d3
VS
43734 { if $as_mkdir_p; then
43735 mkdir -p "$ac_dir"
43736 else
43737 as_dir="$ac_dir"
43738 as_dirs=
43739 while test ! -d "$as_dir"; do
43740 as_dirs="$as_dir $as_dirs"
43741 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43743 X"$as_dir" : 'X\(//\)[^/]' \| \
43744 X"$as_dir" : 'X\(//\)$' \| \
43745 X"$as_dir" : 'X\(/\)' \| \
43746 . : '\(.\)' 2>/dev/null ||
43747echo X"$as_dir" |
43748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43750 /^X\(\/\/\)$/{ s//\1/; q; }
43751 /^X\(\/\).*/{ s//\1/; q; }
43752 s/.*/./; q'`
43753 done
43754 test ! -n "$as_dirs" || mkdir $as_dirs
43755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43756echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43757 { (exit 1); exit 1; }; }; }
43758
a848cd7e
SC
43759 ac_builddir=.
43760
43761if test "$ac_dir" != .; then
43762 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43763 # A "../" for each directory in $ac_dir_suffix.
43764 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43765else
43766 ac_dir_suffix= ac_top_builddir=
43767fi
43768
43769case $srcdir in
43770 .) # No --srcdir option. We are building in place.
43771 ac_srcdir=.
43772 if test -z "$ac_top_builddir"; then
43773 ac_top_srcdir=.
43774 else
43775 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43776 fi ;;
43777 [\\/]* | ?:[\\/]* ) # Absolute path.
43778 ac_srcdir=$srcdir$ac_dir_suffix;
43779 ac_top_srcdir=$srcdir ;;
43780 *) # Relative path.
43781 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43782 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43783esac
ac1cb8d3
VS
43784
43785# Do not use `cd foo && pwd` to compute absolute paths, because
43786# the directories may not exist.
43787case `pwd` in
43788.) ac_abs_builddir="$ac_dir";;
43789*)
43790 case "$ac_dir" in
43791 .) ac_abs_builddir=`pwd`;;
43792 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43793 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43794 esac;;
43795esac
43796case $ac_abs_builddir in
43797.) ac_abs_top_builddir=${ac_top_builddir}.;;
43798*)
43799 case ${ac_top_builddir}. in
43800 .) ac_abs_top_builddir=$ac_abs_builddir;;
43801 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43802 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43803 esac;;
43804esac
43805case $ac_abs_builddir in
43806.) ac_abs_srcdir=$ac_srcdir;;
43807*)
43808 case $ac_srcdir in
43809 .) ac_abs_srcdir=$ac_abs_builddir;;
43810 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43811 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43812 esac;;
43813esac
43814case $ac_abs_builddir in
43815.) ac_abs_top_srcdir=$ac_top_srcdir;;
43816*)
43817 case $ac_top_srcdir in
43818 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43819 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43820 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43821 esac;;
43822esac
a848cd7e
SC
43823
43824
43825 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43826echo "$as_me: executing $ac_dest commands" >&6;}
43827 case $ac_dest in
43828 default )
43829 if test ! -h wx-config; then
43830 chmod +x wx-config
43831 mv wx-config wx${TOOLCHAIN_NAME}-config
43832 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
43833 fi
43834
43835 if test ! -d lib; then
43836 mkdir lib
43837 fi
43838 if test ! -d lib/wx; then
43839 mkdir lib/wx
43840 fi
43841 if test ! -d lib/wx/include; then
43842 mkdir lib/wx/include
43843 fi
43844 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
43845 mkdir lib/wx/include/${TOOLCHAIN_NAME}
43846 fi
43847 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
43848 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
43849 fi
43850 if test -f setup.h; then
43851 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
43852 fi
43853 ;;
43854 esac
43855done
43856_ACEOF
43857
43858cat >>$CONFIG_STATUS <<\_ACEOF
43859
43860{ (exit 0); exit 0; }
43861_ACEOF
43862chmod +x $CONFIG_STATUS
43863ac_clean_files=$ac_clean_files_save
43864
43865
43866# configure is writing to config.log, and then calls config.status.
43867# config.status does its own redirection, appending to config.log.
43868# Unfortunately, on DOS this fails, as config.log is still kept open
43869# by configure, so config.status won't be able to write to it; its
43870# output is simply discarded. So we exec the FD to /dev/null,
43871# effectively closing config.log, so it can be properly (re)opened and
43872# appended to by config.status. When coming back to configure, we
43873# need to make the FD available again.
43874if test "$no_create" != yes; then
43875 ac_cs_success=:
43876 ac_config_status_args=
43877 test "$silent" = yes &&
43878 ac_config_status_args="$ac_config_status_args --quiet"
43879 exec 5>/dev/null
43880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43881 exec 5>>config.log
43882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43883 # would make configure fail if this is the last instruction.
43884 $ac_cs_success || { (exit 1); exit 1; }
43885fi
43886
43887#
43888# CONFIG_SUBDIRS section.
43889#
43890if test "$no_recursion" != yes; then
43891
43892 # Remove --cache-file and --srcdir arguments so they do not pile up.
43893 ac_sub_configure_args=
43894 ac_prev=
43895 for ac_arg in $ac_configure_args; do
43896 if test -n "$ac_prev"; then
43897 ac_prev=
43898 continue
43899 fi
43900 case $ac_arg in
43901 -cache-file | --cache-file | --cache-fil | --cache-fi \
43902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43903 ac_prev=cache_file ;;
43904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43906 | --c=*)
43907 ;;
43908 --config-cache | -C)
43909 ;;
43910 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43911 ac_prev=srcdir ;;
43912 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43913 ;;
43914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43915 ac_prev=prefix ;;
43916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43917 ;;
43918 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43919 esac
43920 done
43921
43922 # Always prepend --prefix to ensure using the same prefix
43923 # in subdir configurations.
43924 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43925
43926 ac_popdir=`pwd`
43927 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43928
43929 # Do not complain, so a configure script can configure whichever
43930 # parts of a large source tree are present.
43931 test -d $srcdir/$ac_dir || continue
43932
43933 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43934echo "$as_me: configuring in $ac_dir" >&6;}
43935 { if $as_mkdir_p; then
43936 mkdir -p "$ac_dir"
43937 else
43938 as_dir="$ac_dir"
43939 as_dirs=
43940 while test ! -d "$as_dir"; do
43941 as_dirs="$as_dir $as_dirs"
43942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43944 X"$as_dir" : 'X\(//\)[^/]' \| \
43945 X"$as_dir" : 'X\(//\)$' \| \
43946 X"$as_dir" : 'X\(/\)' \| \
43947 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43948echo X"$as_dir" |
43949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43951 /^X\(\/\/\)$/{ s//\1/; q; }
43952 /^X\(\/\).*/{ s//\1/; q; }
43953 s/.*/./; q'`
43954 done
43955 test ! -n "$as_dirs" || mkdir $as_dirs
43956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43957echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43958 { (exit 1); exit 1; }; }; }
43959
43960 ac_builddir=.
43961
43962if test "$ac_dir" != .; then
43963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43964 # A "../" for each directory in $ac_dir_suffix.
43965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43966else
43967 ac_dir_suffix= ac_top_builddir=
43968fi
43969
43970case $srcdir in
43971 .) # No --srcdir option. We are building in place.
43972 ac_srcdir=.
43973 if test -z "$ac_top_builddir"; then
43974 ac_top_srcdir=.
43975 else
43976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43977 fi ;;
43978 [\\/]* | ?:[\\/]* ) # Absolute path.
43979 ac_srcdir=$srcdir$ac_dir_suffix;
43980 ac_top_srcdir=$srcdir ;;
43981 *) # Relative path.
43982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43984esac
ac1cb8d3
VS
43985
43986# Do not use `cd foo && pwd` to compute absolute paths, because
43987# the directories may not exist.
43988case `pwd` in
43989.) ac_abs_builddir="$ac_dir";;
43990*)
43991 case "$ac_dir" in
43992 .) ac_abs_builddir=`pwd`;;
43993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43995 esac;;
43996esac
43997case $ac_abs_builddir in
43998.) ac_abs_top_builddir=${ac_top_builddir}.;;
43999*)
44000 case ${ac_top_builddir}. in
44001 .) ac_abs_top_builddir=$ac_abs_builddir;;
44002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44004 esac;;
44005esac
44006case $ac_abs_builddir in
44007.) ac_abs_srcdir=$ac_srcdir;;
44008*)
44009 case $ac_srcdir in
44010 .) ac_abs_srcdir=$ac_abs_builddir;;
44011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44013 esac;;
44014esac
44015case $ac_abs_builddir in
44016.) ac_abs_top_srcdir=$ac_top_srcdir;;
44017*)
44018 case $ac_top_srcdir in
44019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44022 esac;;
44023esac
a848cd7e
SC
44024
44025
44026 cd $ac_dir
44027
44028 # Check for guested configure; otherwise get Cygnus style configure.
44029 if test -f $ac_srcdir/configure.gnu; then
44030 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44031 elif test -f $ac_srcdir/configure; then
44032 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44033 elif test -f $ac_srcdir/configure.in; then
44034 ac_sub_configure=$ac_configure
44035 else
44036 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44037echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44038 ac_sub_configure=
44039 fi
44040
44041 # The recursion is here.
44042 if test -n "$ac_sub_configure"; then
44043 # Make the cache file name correct relative to the subdirectory.
44044 case $cache_file in
44045 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44046 *) # Relative path.
ac1cb8d3 44047 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44048 esac
44049
44050 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44051echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44052 # The eval makes quoting arguments work.
44053 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44054 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44055 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44056echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44057 { (exit 1); exit 1; }; }
44058 fi
44059
dcc1b6ad 44060 cd $ac_popdir
a848cd7e
SC
44061 done
44062fi
44063
44064
44065echo
77ffb593 44066echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44067echo ""
77ffb593
JS
44068echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
44069echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44070
77ffb593
JS
44071echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44072echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44073echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44074
77ffb593
JS
44075echo " What level of wxWidgets compatibility should be enabled?"
44076echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44077echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44078
77ffb593 44079echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44080echo " jpeg ${wxUSE_LIBJPEG-none}"
44081echo " png ${wxUSE_LIBPNG-none}"
44082echo " regex ${wxUSE_REGEX}"
44083echo " tiff ${wxUSE_LIBTIFF-none}"
44084if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44085echo " xpm ${wxUSE_LIBXPM-none}"
44086fi
44087echo " zlib ${wxUSE_ZLIB}"
44088echo " odbc ${wxUSE_ODBC}"
44089echo " expat ${wxUSE_EXPAT}"
44090echo " libmspack ${wxUSE_LIBMSPACK}"
44091echo " sdl ${wxUSE_LIBSDL}"
44092
44093echo ""
44094