]> git.saurik.com Git - wxWidgets.git/blame - configure
Add configure test for presence/compilabilty of multimon.h and display.h
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
01cb68df 4# Generated by GNU Autoconf 2.58 for wxWindows 2.5.1.
a848cd7e
SC
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
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
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
224 test -d ./-p && rmdir ./-p
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.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
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 \
675 localstatedir libdir includedir oldincludedir infodir mandir
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\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
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
797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
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
822 [$ac_default_prefix]
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
824 [PREFIX]
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
863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
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
871 --enable-monolithic build wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
873 --enable-universal use wxWindows GUI controls instead of native ones
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
892 --enable-compat22 enable wxWindows 2.2 compatibility
893 --disable-compat24 disable wxWindows 2.4 compatibility
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
934 --enable-wxprintfv use wxWindows implementation of vprintf()
935 --enable-zipstream use wxZipInputStream
936 --enable-gzstream use wxGzipInputStream
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
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
1032 --enable-official_build official build of wxWindows (win32 DLL only)
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:
01cb68df
RG
1076 CC
1077 C compiler command
1078 CFLAGS
1079 C compiler flags
1080 LDFLAGS
1081 linker flags, e.g. -L<lib dir> if you have
1082 libraries in a nonstandard directory <lib dir>
1083 CPPFLAGS
1084 C/C++ preprocessor flags, e.g. -I<include dir> if you
1085 have headers in a nonstandard directory <include dir>
1086 CPP
1087 C preprocessor
1088 CXX
1089 C++ compiler command
1090 CXXFLAGS
1091 C++ compiler flags
1092 CXXCPP
1093 C++ preprocessor
a848cd7e
SC
1094
1095Use these variables to override the choices made by `configure' or to help
1096it to find libraries and programs with nonstandard names/locations.
1097
1098Report bugs to <wx-dev@lists.wxwindows.org>.
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
1104 ac_popdir=`pwd`
1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106 test -d $ac_dir || continue
1107 ac_builddir=.
1108
1109if test "$ac_dir" != .; then
1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114 ac_dir_suffix= ac_top_builddir=
1115fi
1116
1117case $srcdir in
1118 .) # No --srcdir option. We are building in place.
1119 ac_srcdir=.
1120 if test -z "$ac_top_builddir"; then
1121 ac_top_srcdir=.
1122 else
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124 fi ;;
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
1126 ac_srcdir=$srcdir$ac_dir_suffix;
1127 ac_top_srcdir=$srcdir ;;
1128 *) # Relative path.
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138 case "$ac_dir" in
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156 case $ac_srcdir in
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169 esac;;
1170esac
1171
1172 cd $ac_dir
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1175 echo
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1178 echo
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
1181 test -f $ac_srcdir/configure.in; then
1182 echo
1183 $ac_configure --help
1184 else
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186 fi
01cb68df 1187 cd "$ac_popdir"
a848cd7e
SC
1188 done
1189fi
1190
1191test -n "$ac_init_help" && exit 0
1192if $ac_init_version; then
1193 cat <<\_ACEOF
1194wxWindows configure 2.5.1
01cb68df 1195generated by GNU Autoconf 2.58
a848cd7e
SC
1196
1197Copyright (C) 2003 Free Software Foundation, Inc.
1198This configure script is free software; the Free Software Foundation
1199gives unlimited permission to copy, distribute and modify it.
1200_ACEOF
1201 exit 0
1202fi
1203exec 5>config.log
1204cat >&5 <<_ACEOF
1205This file contains any messages produced by compilers while
1206running configure, to aid debugging if configure makes a mistake.
1207
1208It was created by wxWindows $as_me 2.5.1, which was
01cb68df 1209generated by GNU Autoconf 2.58. Invocation command line was
a848cd7e
SC
1210
1211 $ $0 $@
1212
1213_ACEOF
1214{
1215cat <<_ASUNAME
1216## --------- ##
1217## Platform. ##
1218## --------- ##
1219
1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1228
1229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1236
1237_ASUNAME
1238
1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240for as_dir in $PATH
1241do
1242 IFS=$as_save_IFS
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1245done
1246
1247} >&5
1248
1249cat >&5 <<_ACEOF
1250
1251
1252## ----------- ##
1253## Core tests. ##
1254## ----------- ##
1255
1256_ACEOF
1257
1258
1259# Keep a trace of the command line.
1260# Strip out --no-create and --no-recursion so they do not pile up.
1261# Strip out --silent because we don't want to record it for future runs.
1262# Also quote any args containing shell meta-characters.
1263# Make two passes to allow for proper duplicate-argument suppression.
1264ac_configure_args=
1265ac_configure_args0=
1266ac_configure_args1=
1267ac_sep=
1268ac_must_keep_next=false
1269for ac_pass in 1 2
1270do
1271 for ac_arg
1272 do
1273 case $ac_arg in
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 continue ;;
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 esac
1281 case $ac_pass in
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283 2)
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
1286 ac_must_keep_next=false # Got value, back to normal.
1287 else
1288 case $ac_arg in
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295 esac
1296 ;;
1297 -* ) ac_must_keep_next=true ;;
1298 esac
1299 fi
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1302 ac_sep=" "
1303 ;;
1304 esac
1305 done
1306done
1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310# When interrupted or exit'd, cleanup temporary files, and complete
1311# config.log. We remove comments because anyway the quotes in there
1312# would cause problems or look ugly.
1313# WARNING: Be sure not to use single quotes in there, as some shells,
1314# such as our DU 5.0 friend, will then `close' the trap.
1315trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1317 {
1318 echo
1319
1320 cat <<\_ASBOX
1321## ---------------- ##
1322## Cache variables. ##
1323## ---------------- ##
1324_ASBOX
1325 echo
1326 # The following way of writing the cache mishandles newlines in values,
1327{
1328 (set) 2>&1 |
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330 *ac_space=\ *)
1331 sed -n \
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334 ;;
1335 *)
1336 sed -n \
1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1338 ;;
1339 esac;
1340}
1341 echo
1342
1343 cat <<\_ASBOX
1344## ----------------- ##
1345## Output variables. ##
1346## ----------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_vars
1350 do
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1353 done | sort
1354 echo
1355
1356 if test -n "$ac_subst_files"; then
1357 cat <<\_ASBOX
1358## ------------- ##
1359## Output files. ##
1360## ------------- ##
1361_ASBOX
1362 echo
1363 for ac_var in $ac_subst_files
1364 do
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1367 done | sort
1368 echo
1369 fi
1370
1371 if test -s confdefs.h; then
1372 cat <<\_ASBOX
1373## ----------- ##
1374## confdefs.h. ##
1375## ----------- ##
1376_ASBOX
1377 echo
1378 sed "/^$/d" confdefs.h | sort
1379 echo
1380 fi
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1384 } >&5
1385 rm -f core *.core &&
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387 exit $exit_status
1388 ' 0
1389for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391done
1392ac_signal=0
1393
1394# confdefs.h avoids OS command line length limits that DEFS can exceed.
1395rm -rf conftest* confdefs.h
1396# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397echo >confdefs.h
1398
1399# Predefined preprocessor variables.
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_NAME "$PACKAGE_NAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_VERSION "$PACKAGE_VERSION"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_STRING "$PACKAGE_STRING"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423_ACEOF
1424
1425
1426# Let the site file select an alternate cache file if it wants to.
1427# Prefer explicitly selected file to automatically selected ones.
1428if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431 else
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433 fi
1434fi
1435for ac_site_file in $CONFIG_SITE; do
1436 if test -r "$ac_site_file"; then
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
1440 . "$ac_site_file"
1441 fi
1442done
1443
1444if test -r "$cache_file"; then
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449echo "$as_me: loading cache $cache_file" >&6;}
1450 case $cache_file in
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
1453 esac
1454 fi
1455else
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457echo "$as_me: creating cache $cache_file" >&6;}
1458 >$cache_file
1459fi
1460
1461# Check that the precious variables saved in the cache have kept the same
1462# value.
1463ac_cache_corrupted=false
1464for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1471 set,)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,set)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,);;
1480 *)
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1489 fi;;
1490 esac
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1493 case $ac_new_val in
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1497 esac
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 esac
1502 fi
1503done
1504if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1510fi
1511
1512ac_ext=c
1513ac_cpp='$CPP $CPPFLAGS'
1514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547ac_aux_dir=
1548for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1561 fi
1562done
1563if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1567fi
1568ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572# Make sure we can run config.sub.
1573$ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578echo "$as_me:$LINENO: checking build system type" >&5
1579echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_build_alias=$build_alias
1584test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1594
1595fi
1596echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597echo "${ECHO_T}$ac_cv_build" >&6
1598build=$ac_cv_build
1599build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604echo "$as_me:$LINENO: checking host system type" >&5
1605echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 ac_cv_host_alias=$host_alias
1610test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617fi
1618echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619echo "${ECHO_T}$ac_cv_host" >&6
1620host=$ac_cv_host
1621host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626echo "$as_me:$LINENO: checking target system type" >&5
1627echo $ECHO_N "checking target system type... $ECHO_C" >&6
1628if test "${ac_cv_target+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 ac_cv_target_alias=$target_alias
1632test "x$ac_cv_target_alias" = "x" &&
1633 ac_cv_target_alias=$ac_cv_host_alias
1634ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1641echo "${ECHO_T}$ac_cv_target" >&6
1642target=$ac_cv_target
1643target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648# The aliases save the names the user supplied, while $host etc.
1649# will get canonicalized.
1650test -n "$target_alias" &&
1651 test "$program_prefix$program_suffix$program_transform_name" = \
1652 NONENONEs,x,x, &&
1653 program_prefix=${target_alias}-
1654
1655
1656
1657WX_MAJOR_VERSION_NUMBER=2
1658WX_MINOR_VERSION_NUMBER=5
1659WX_RELEASE_NUMBER=1
1660
1661WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1662WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1663
1664WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1665
1666WX_CURRENT=1
1667WX_REVISION=0
1668WX_AGE=0
1669
1670
1671
1672USE_UNIX=1
1673USE_OS2=0
1674USE_WIN32=0
1675USE_DOS=0
1676USE_BEOS=0
1677USE_MAC=0
1678
1679USE_AIX=
1680USE_BSD= USE_DARWIN= USE_FREEBSD=
1681USE_GNU= USE_HPUX=
1682USE_LINUX=
1683USE_NETBSD=
1684USE_OPENBSD=
1685USE_OSF= USE_SGI=
1686USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1687USE_ULTRIX=
1688USE_UNIXWARE=
1689
1690USE_ALPHA=
1691
1692NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1693
1694ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1695
1696DEFAULT_wxUSE_COCOA=0
1697DEFAULT_wxUSE_GTK=0
1698DEFAULT_wxUSE_MAC=0
1699DEFAULT_wxUSE_MGL=0
1700DEFAULT_wxUSE_MICROWIN=0
1701DEFAULT_wxUSE_MOTIF=0
1702DEFAULT_wxUSE_MSW=0
1703DEFAULT_wxUSE_PM=0
1704DEFAULT_wxUSE_X11=0
1705
1706DEFAULT_DEFAULT_wxUSE_COCOA=0
1707DEFAULT_DEFAULT_wxUSE_GTK=0
1708DEFAULT_DEFAULT_wxUSE_MAC=0
1709DEFAULT_DEFAULT_wxUSE_MGL=0
1710DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1711DEFAULT_DEFAULT_wxUSE_MOTIF=0
1712DEFAULT_DEFAULT_wxUSE_MSW=0
1713DEFAULT_DEFAULT_wxUSE_PM=0
1714DEFAULT_DEFAULT_wxUSE_X11=0
1715
1716PROGRAM_EXT=
1717SO_SUFFIX=so
1718SAMPLES_RPATH_FLAG=
1719SAMPLES_RPATH_POSTLINK=
1720
1721case "${host}" in
1722 *-hp-hpux* )
1723 USE_HPUX=1
1724 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1725 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1726 SO_SUFFIX=sl
1727 cat >>confdefs.h <<\_ACEOF
1728#define __HPUX__ 1
1729_ACEOF
1730
1731 ;;
1732 *-*-linux* )
1733 USE_LINUX=1
1734 cat >>confdefs.h <<\_ACEOF
1735#define __LINUX__ 1
1736_ACEOF
1737
1738 TMP=`uname -m`
1739 if test "x$TMP" = "xalpha"; then
1740 USE_ALPHA=1
1741 cat >>confdefs.h <<\_ACEOF
1742#define __ALPHA__ 1
1743_ACEOF
1744
1745 fi
1746 DEFAULT_DEFAULT_wxUSE_GTK=1
1747 ;;
1748 *-*-gnu* | *-*-k*bsd*-gnu )
1749 USE_GNU=1
1750 TMP=`uname -m`
1751 if test "x$TMP" = "xalpha"; then
1752 USE_ALPHA=1
1753 cat >>confdefs.h <<\_ACEOF
1754#define __ALPHA__ 1
1755_ACEOF
1756
1757 fi
1758 DEFAULT_DEFAULT_wxUSE_GTK=1
1759 ;;
1760 *-*-irix5* | *-*-irix6* )
1761 USE_SGI=1
1762 USE_SVR4=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __SGI__ 1
1765_ACEOF
1766
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SVR4__ 1
1769_ACEOF
1770
1771 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1772 ;;
1773 *-*-solaris2* )
1774 USE_SUN=1
1775 USE_SOLARIS=1
1776 USE_SVR4=1
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SUN__ 1
1779_ACEOF
1780
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SOLARIS__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SVR4__ 1
1787_ACEOF
1788
1789 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1790 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1791 ;;
1792 *-*-sunos4* )
1793 USE_SUN=1
1794 USE_SUNOS=1
1795 USE_BSD=1
1796 cat >>confdefs.h <<\_ACEOF
1797#define __SUN__ 1
1798_ACEOF
1799
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUNOS__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __BSD__ 1
1806_ACEOF
1807
1808 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1809 ;;
1810 *-*-freebsd*)
1811 USE_BSD=1
1812 USE_FREEBSD=1
1813 cat >>confdefs.h <<\_ACEOF
1814#define __FREEBSD__ 1
1815_ACEOF
1816
1817 cat >>confdefs.h <<\_ACEOF
1818#define __BSD__ 1
1819_ACEOF
1820
1821 DEFAULT_DEFAULT_wxUSE_GTK=1
1822 ;;
1823 *-*-openbsd*)
1824 USE_BSD=1
1825 USE_OPENBSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __OPENBSD__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __BSD__ 1
1832_ACEOF
1833
1834 DEFAULT_DEFAULT_wxUSE_GTK=1
1835 ;;
1836 *-*-netbsd*)
1837 USE_BSD=1
1838 USE_NETBSD=1
1839 cat >>confdefs.h <<\_ACEOF
1840#define __NETBSD__ 1
1841_ACEOF
1842
1843 cat >>confdefs.h <<\_ACEOF
1844#define __BSD__ 1
1845_ACEOF
1846
1847 DEFAULT_DEFAULT_wxUSE_GTK=1
1848 ;;
1849 *-*-osf* )
1850 USE_ALPHA=1
1851 USE_OSF=1
1852 cat >>confdefs.h <<\_ACEOF
1853#define __ALPHA__ 1
1854_ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857#define __OSF__ 1
1858_ACEOF
1859
1860 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1861 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1862 ;;
1863 *-*-dgux5* )
1864 USE_ALPHA=1
1865 USE_SVR4=1
1866 cat >>confdefs.h <<\_ACEOF
1867#define __ALPHA__ 1
1868_ACEOF
1869
1870 cat >>confdefs.h <<\_ACEOF
1871#define __SVR4__ 1
1872_ACEOF
1873
1874 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1875 ;;
1876 *-*-sysv5* )
1877 USE_SYSV=1
1878 USE_SVR4=1
1879 cat >>confdefs.h <<\_ACEOF
1880#define __SYSV__ 1
1881_ACEOF
1882
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SVR4__ 1
1885_ACEOF
1886
1887 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1888 ;;
1889 *-*-aix* )
1890 USE_AIX=1
1891 USE_SYSV=1
1892 USE_SVR4=1
1893 SO_SUFFIX=a
1894 cat >>confdefs.h <<\_ACEOF
1895#define __AIX__ 1
1896_ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SYSV__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908
1909 *-*-*UnixWare*)
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 USE_UNIXWARE=1
1913 cat >>confdefs.h <<\_ACEOF
1914#define __UNIXWARE__ 1
1915_ACEOF
1916
1917 ;;
1918
1919 *-*-cygwin* | *-*-mingw32* )
1920 SO_SUFFIX=dll
1921 PROGRAM_EXT=".exe"
1922 RESCOMP=windres
1923 DEFAULT_DEFAULT_wxUSE_MSW=1
1924 ;;
1925
1926 *-pc-msdosdjgpp )
1927 USE_UNIX=0
1928 USE_DOS=1
1929 cat >>confdefs.h <<\_ACEOF
1930#define __DOS__ 1
1931_ACEOF
1932
1933 PROGRAM_EXT=".exe"
1934 DEFAULT_DEFAULT_wxUSE_MGL=1
1935 LIBS="$LIBS -lstdc++"
1936 ;;
1937
1938 *-pc-os2_emx | *-pc-os2-emx )
1939 cat >>confdefs.h <<\_ACEOF
1940#define __EMX__ 1
1941_ACEOF
1942
1943 USE_OS2=1
1944 cat >>confdefs.h <<\_ACEOF
1945#define __OS2__ 1
1946_ACEOF
1947
1948 PROGRAM_EXT=".exe"
1949 DEFAULT_DEFAULT_wxUSE_PM=1
1950 CXX=gcc
1951 LDFLAGS="$LDFLAGS -Zcrtdll"
1952 ac_executable_extensions=".exe"
1953 export ac_executable_extensions
1954 ac_save_IFS="$IFS"
1955 IFS='\\'
1956 ac_TEMP_PATH=
1957 for ac_dir in $PATH; do
1958 IFS=$ac_save_IFS
1959 if test -z "$ac_TEMP_PATH"; then
1960 ac_TEMP_PATH="$ac_dir"
1961 else
1962 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1963 fi
1964 done
1965 export PATH="$ac_TEMP_PATH"
1966 unset ac_TEMP_PATH
1967 ;;
1968
1969 powerpc-*-darwin* )
1970 USE_BSD=1
1971 USE_DARWIN=1
1972 SO_SUFFIX=dylib
1973 cat >>confdefs.h <<\_ACEOF
1974#define __BSD__ 1
1975_ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978#define __DARWIN__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __POWERPC__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define TARGET_CARBON 1
1987_ACEOF
1988
1989 DEFAULT_DEFAULT_wxUSE_MAC=1
1990 ;;
1991
1992 *-*-beos* )
1993 USE_BEOS=1
1994 cat >>confdefs.h <<\_ACEOF
1995#define __BEOS__ 1
1996_ACEOF
1997
1998 ;;
1999
2000 *)
2001 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2002echo "$as_me: error: unknown system type ${host}." >&2;}
2003 { (exit 1); exit 1; }; }
2004esac
2005
2006
2007
2008
2009 wx_arg_cache_file="configarg.cache"
2010 echo "loading argument cache $wx_arg_cache_file"
2011 rm -f ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}.tmp
2013 touch ${wx_arg_cache_file}
2014
2015
2016DEBUG_CONFIGURE=0
2017if test $DEBUG_CONFIGURE = 1; then
2018 DEFAULT_wxUSE_UNIVERSAL=no
2019 DEFAULT_wxUSE_STL=no
2020
2021 DEFAULT_wxUSE_NANOX=no
2022
2023 DEFAULT_wxUSE_THREADS=yes
2024
2025 DEFAULT_wxUSE_SHARED=yes
2026 DEFAULT_wxUSE_OPTIMISE=no
2027 DEFAULT_wxUSE_PROFILE=no
2028 DEFAULT_wxUSE_NO_DEPS=no
2029 DEFAULT_wxUSE_NO_RTTI=no
2030 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2031 DEFAULT_wxUSE_PERMISSIVE=no
2032 DEFAULT_wxUSE_DEBUG_FLAG=yes
2033 DEFAULT_wxUSE_DEBUG_INFO=yes
2034 DEFAULT_wxUSE_DEBUG_GDB=yes
2035 DEFAULT_wxUSE_MEM_TRACING=no
2036 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2037 DEFAULT_wxUSE_DMALLOC=no
2038 DEFAULT_wxUSE_APPLE_IEEE=no
2039
2040 DEFAULT_wxUSE_EXCEPTIONS=no
2041 DEFAULT_wxUSE_LOG=yes
2042 DEFAULT_wxUSE_LOGWINDOW=no
2043 DEFAULT_wxUSE_LOGGUI=no
2044 DEFAULT_wxUSE_LOGDIALOG=no
2045
2046 DEFAULT_wxUSE_GUI=yes
2047 DEFAULT_wxUSE_CONTROLS=no
2048
2049 DEFAULT_wxUSE_REGEX=no
2050 DEFAULT_wxUSE_XML=no
2051 DEFAULT_wxUSE_EXPAT=no
2052 DEFAULT_wxUSE_ZLIB=no
2053 DEFAULT_wxUSE_LIBPNG=no
2054 DEFAULT_wxUSE_LIBJPEG=no
2055 DEFAULT_wxUSE_LIBTIFF=no
2056 DEFAULT_wxUSE_LIBXPM=no
2057 DEFAULT_wxUSE_LIBMSPACK=no
2058 DEFAULT_wxUSE_LIBSDL=no
2059 DEFAULT_wxUSE_ODBC=no
2060 DEFAULT_wxUSE_OPENGL=no
2061
2062 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2063 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2064 DEFAULT_wxUSE_STD_IOSTREAM=no
2065 DEFAULT_wxUSE_CMDLINE_PARSER=no
2066 DEFAULT_wxUSE_DATETIME=no
2067 DEFAULT_wxUSE_TIMER=no
2068 DEFAULT_wxUSE_STOPWATCH=no
2069 DEFAULT_wxUSE_FILE=no
2070 DEFAULT_wxUSE_FFILE=no
2071 DEFAULT_wxUSE_TEXTBUFFER=no
2072 DEFAULT_wxUSE_TEXTFILE=no
2073 DEFAULT_wxUSE_SOUND=no
2074 DEFAULT_wxUSE_INTL=no
2075 DEFAULT_wxUSE_CONFIG=no
2076 DEFAULT_wxUSE_FONTMAP=no
2077 DEFAULT_wxUSE_STREAMS=no
2078 DEFAULT_wxUSE_SOCKETS=no
2079 DEFAULT_wxUSE_OLE=no
2080 DEFAULT_wxUSE_DATAOBJ=no
2081 DEFAULT_wxUSE_DIALUP_MANAGER=no
2082 DEFAULT_wxUSE_JOYSTICK=no
2083 DEFAULT_wxUSE_DYNLIB_CLASS=no
2084 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2085 DEFAULT_wxUSE_LONGLONG=no
2086 DEFAULT_wxUSE_GEOMETRY=no
2087
2088 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2089 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2090 DEFAULT_wxUSE_POSTSCRIPT=no
2091
2092 DEFAULT_wxUSE_CLIPBOARD=no
2093 DEFAULT_wxUSE_TOOLTIPS=no
2094 DEFAULT_wxUSE_DRAG_AND_DROP=no
2095 DEFAULT_wxUSE_DRAGIMAGE=no
2096 DEFAULT_wxUSE_SPLINES=no
2097
2098 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2099 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2100 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2101
2102 DEFAULT_wxUSE_RESOURCES=no
2103 DEFAULT_wxUSE_CONSTRAINTS=no
2104 DEFAULT_wxUSE_IPC=no
2105 DEFAULT_wxUSE_HELP=no
2106 DEFAULT_wxUSE_MS_HTML_HELP=no
2107 DEFAULT_wxUSE_WXHTML_HELP=no
2108 DEFAULT_wxUSE_TREELAYOUT=no
2109 DEFAULT_wxUSE_METAFILE=no
2110 DEFAULT_wxUSE_MIMETYPE=no
2111 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2112 DEFAULT_wxUSE_PROTOCOL=no
2113 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2114 DEFAULT_wxUSE_PROTOCOL_FTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FILE=no
2116 DEFAULT_wxUSE_URL=no
2117
2118 DEFAULT_wxUSE_COMMONDLGS=no
2119 DEFAULT_wxUSE_CHOICEDLG=no
2120 DEFAULT_wxUSE_COLOURDLG=no
2121 DEFAULT_wxUSE_DIRDLG=no
2122 DEFAULT_wxUSE_FILEDLG=no
2123 DEFAULT_wxUSE_FINDREPLDLG=no
2124 DEFAULT_wxUSE_FONTDLG=no
2125 DEFAULT_wxUSE_MSGDLG=no
2126 DEFAULT_wxUSE_NUMBERDLG=no
2127 DEFAULT_wxUSE_TEXTDLG=no
2128 DEFAULT_wxUSE_SPLASH=no
2129 DEFAULT_wxUSE_STARTUP_TIPS=no
2130 DEFAULT_wxUSE_PROGRESSDLG=no
2131 DEFAULT_wxUSE_WIZARDDLG=no
2132
2133 DEFAULT_wxUSE_MENUS=no
2134 DEFAULT_wxUSE_MINIFRAME=no
2135 DEFAULT_wxUSE_HTML=no
2136 DEFAULT_wxUSE_FILESYSTEM=no
2137 DEFAULT_wxUSE_FS_INET=no
2138 DEFAULT_wxUSE_FS_ZIP=no
2139 DEFAULT_wxUSE_BUSYINFO=no
2140 DEFAULT_wxUSE_ZIPSTREAM=no
2141 DEFAULT_wxUSE_GZSTREAM=no
2142 DEFAULT_wxUSE_VALIDATORS=no
2143
2144 DEFAULT_wxUSE_ACCEL=no
2145 DEFAULT_wxUSE_BUTTON=no
2146 DEFAULT_wxUSE_BMPBUTTON=no
2147 DEFAULT_wxUSE_CALCTRL=no
2148 DEFAULT_wxUSE_CARET=no
2149 DEFAULT_wxUSE_CHECKBOX=no
2150 DEFAULT_wxUSE_CHECKLST=no
2151 DEFAULT_wxUSE_CHOICE=no
2152 DEFAULT_wxUSE_COMBOBOX=no
2153 DEFAULT_wxUSE_DISPLAY=no
2154 DEFAULT_wxUSE_GAUGE=no
2155 DEFAULT_wxUSE_GRID=no
2156 DEFAULT_wxUSE_IMAGLIST=no
2157 DEFAULT_wxUSE_LISTBOOK=no
2158 DEFAULT_wxUSE_LISTBOX=no
2159 DEFAULT_wxUSE_LISTCTRL=no
2160 DEFAULT_wxUSE_NOTEBOOK=no
2161 DEFAULT_wxUSE_RADIOBOX=no
2162 DEFAULT_wxUSE_RADIOBTN=no
2163 DEFAULT_wxUSE_SASH=no
2164 DEFAULT_wxUSE_SCROLLBAR=no
2165 DEFAULT_wxUSE_SLIDER=no
2166 DEFAULT_wxUSE_SPINBTN=no
2167 DEFAULT_wxUSE_SPINCTRL=no
2168 DEFAULT_wxUSE_SPLITTER=no
2169 DEFAULT_wxUSE_STATBMP=no
2170 DEFAULT_wxUSE_STATBOX=no
2171 DEFAULT_wxUSE_STATLINE=no
2172 DEFAULT_wxUSE_STATTEXT=no
2173 DEFAULT_wxUSE_STATUSBAR=yes
2174 DEFAULT_wxUSE_TABDIALOG=no
2175 DEFAULT_wxUSE_TEXTCTRL=no
2176 DEFAULT_wxUSE_TOGGLEBTN=no
2177 DEFAULT_wxUSE_TOOLBAR=no
2178 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2179 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2180 DEFAULT_wxUSE_TREECTRL=no
2181 DEFAULT_wxUSE_POPUPWIN=no
2182 DEFAULT_wxUSE_TIPWINDOW=no
2183
2184 DEFAULT_wxUSE_UNICODE=no
2185 DEFAULT_wxUSE_UNICODE_MSLU=no
2186 DEFAULT_wxUSE_WCSRTOMBS=no
2187
2188 DEFAULT_wxUSE_PALETTE=no
2189 DEFAULT_wxUSE_IMAGE=no
2190 DEFAULT_wxUSE_GIF=no
2191 DEFAULT_wxUSE_PCX=no
2192 DEFAULT_wxUSE_PNM=no
2193 DEFAULT_wxUSE_IFF=no
2194 DEFAULT_wxUSE_XPM=no
2195 DEFAULT_wxUSE_ICO_CUR=no
2196 DEFAULT_wxUSE_ACCESSIBILITY=no
2197
2198 DEFAULT_wxUSE_MONOLITHIC=no
2199 DEFAULT_wxUSE_PLUGINS=no
2200 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2201else
2202 DEFAULT_wxUSE_UNIVERSAL=no
2203 DEFAULT_wxUSE_STL=no
2204
2205 DEFAULT_wxUSE_NANOX=no
2206
2207 DEFAULT_wxUSE_THREADS=yes
2208
2209 DEFAULT_wxUSE_SHARED=yes
2210 DEFAULT_wxUSE_OPTIMISE=yes
2211 DEFAULT_wxUSE_PROFILE=no
2212 DEFAULT_wxUSE_NO_DEPS=no
2213 DEFAULT_wxUSE_NO_RTTI=no
2214 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2215 DEFAULT_wxUSE_PERMISSIVE=no
2216 DEFAULT_wxUSE_DEBUG_FLAG=no
2217 DEFAULT_wxUSE_DEBUG_INFO=no
2218 DEFAULT_wxUSE_DEBUG_GDB=no
2219 DEFAULT_wxUSE_MEM_TRACING=no
2220 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2221 DEFAULT_wxUSE_DMALLOC=no
2222 DEFAULT_wxUSE_APPLE_IEEE=yes
2223
2224 DEFAULT_wxUSE_EXCEPTIONS=yes
2225 DEFAULT_wxUSE_LOG=yes
2226 DEFAULT_wxUSE_LOGWINDOW=yes
2227 DEFAULT_wxUSE_LOGGUI=yes
2228 DEFAULT_wxUSE_LOGDIALOG=yes
2229
2230 DEFAULT_wxUSE_GUI=yes
2231
2232 DEFAULT_wxUSE_REGEX=yes
2233 DEFAULT_wxUSE_XML=yes
2234 DEFAULT_wxUSE_EXPAT=yes
2235 DEFAULT_wxUSE_ZLIB=yes
2236 DEFAULT_wxUSE_LIBPNG=yes
2237 DEFAULT_wxUSE_LIBJPEG=yes
2238 DEFAULT_wxUSE_LIBTIFF=yes
2239 DEFAULT_wxUSE_LIBXPM=yes
2240 DEFAULT_wxUSE_LIBMSPACK=yes
2241 DEFAULT_wxUSE_LIBSDL=no
2242 DEFAULT_wxUSE_ODBC=no
2243 DEFAULT_wxUSE_OPENGL=no
2244
2245 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2246 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2247 DEFAULT_wxUSE_STD_IOSTREAM=no
2248 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2249 DEFAULT_wxUSE_DATETIME=yes
2250 DEFAULT_wxUSE_TIMER=yes
2251 DEFAULT_wxUSE_STOPWATCH=yes
2252 DEFAULT_wxUSE_FILE=yes
2253 DEFAULT_wxUSE_FFILE=yes
2254 DEFAULT_wxUSE_TEXTBUFFER=yes
2255 DEFAULT_wxUSE_TEXTFILE=yes
2256 DEFAULT_wxUSE_SOUND=yes
2257 DEFAULT_wxUSE_INTL=yes
2258 DEFAULT_wxUSE_CONFIG=yes
2259 DEFAULT_wxUSE_FONTMAP=yes
2260 DEFAULT_wxUSE_STREAMS=yes
2261 DEFAULT_wxUSE_SOCKETS=yes
2262 DEFAULT_wxUSE_OLE=yes
2263 DEFAULT_wxUSE_DATAOBJ=yes
2264 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2265 DEFAULT_wxUSE_JOYSTICK=yes
2266 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2267 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2268 DEFAULT_wxUSE_LONGLONG=yes
2269 DEFAULT_wxUSE_GEOMETRY=yes
2270
2271 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2272 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2273 DEFAULT_wxUSE_POSTSCRIPT=yes
2274
2275 DEFAULT_wxUSE_CLIPBOARD=yes
2276 DEFAULT_wxUSE_TOOLTIPS=yes
2277 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2278 DEFAULT_wxUSE_DRAGIMAGE=yes
2279 DEFAULT_wxUSE_SPLINES=yes
2280
2281 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2282 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2283 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2284
2285 DEFAULT_wxUSE_RESOURCES=no
2286 DEFAULT_wxUSE_CONSTRAINTS=yes
2287 DEFAULT_wxUSE_IPC=yes
2288 DEFAULT_wxUSE_HELP=yes
2289 DEFAULT_wxUSE_MS_HTML_HELP=yes
2290 DEFAULT_wxUSE_WXHTML_HELP=yes
2291 DEFAULT_wxUSE_TREELAYOUT=yes
2292 DEFAULT_wxUSE_METAFILE=yes
2293 DEFAULT_wxUSE_MIMETYPE=yes
2294 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2295 DEFAULT_wxUSE_PROTOCOL=yes
2296 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2297 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2298 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2299 DEFAULT_wxUSE_URL=yes
2300
2301 DEFAULT_wxUSE_COMMONDLGS=yes
2302 DEFAULT_wxUSE_CHOICEDLG=yes
2303 DEFAULT_wxUSE_COLOURDLG=yes
2304 DEFAULT_wxUSE_DIRDLG=yes
2305 DEFAULT_wxUSE_FILEDLG=yes
2306 DEFAULT_wxUSE_FINDREPLDLG=yes
2307 DEFAULT_wxUSE_FONTDLG=yes
2308 DEFAULT_wxUSE_MSGDLG=yes
2309 DEFAULT_wxUSE_NUMBERDLG=yes
2310 DEFAULT_wxUSE_TEXTDLG=yes
2311 DEFAULT_wxUSE_SPLASH=yes
2312 DEFAULT_wxUSE_STARTUP_TIPS=yes
2313 DEFAULT_wxUSE_PROGRESSDLG=yes
2314 DEFAULT_wxUSE_WIZARDDLG=yes
2315
2316 DEFAULT_wxUSE_MENUS=yes
2317 DEFAULT_wxUSE_MINIFRAME=yes
2318 DEFAULT_wxUSE_HTML=yes
2319 DEFAULT_wxUSE_FILESYSTEM=yes
2320 DEFAULT_wxUSE_FS_INET=yes
2321 DEFAULT_wxUSE_FS_ZIP=yes
2322 DEFAULT_wxUSE_BUSYINFO=yes
2323 DEFAULT_wxUSE_ZIPSTREAM=yes
2324 DEFAULT_wxUSE_GZSTREAM=yes
2325 DEFAULT_wxUSE_VALIDATORS=yes
2326
2327 DEFAULT_wxUSE_ACCEL=yes
2328 DEFAULT_wxUSE_BUTTON=yes
2329 DEFAULT_wxUSE_BMPBUTTON=yes
2330 DEFAULT_wxUSE_CALCTRL=yes
2331 DEFAULT_wxUSE_CARET=yes
2332 DEFAULT_wxUSE_CHECKBOX=yes
2333 DEFAULT_wxUSE_CHECKLST=yes
2334 DEFAULT_wxUSE_CHOICE=yes
2335 DEFAULT_wxUSE_COMBOBOX=yes
2336 DEFAULT_wxUSE_DISPLAY=yes
2337 DEFAULT_wxUSE_GAUGE=yes
2338 DEFAULT_wxUSE_GRID=yes
2339 DEFAULT_wxUSE_IMAGLIST=yes
2340 DEFAULT_wxUSE_LISTBOOK=yes
2341 DEFAULT_wxUSE_LISTBOX=yes
2342 DEFAULT_wxUSE_LISTCTRL=yes
2343 DEFAULT_wxUSE_NOTEBOOK=yes
2344 DEFAULT_wxUSE_RADIOBOX=yes
2345 DEFAULT_wxUSE_RADIOBTN=yes
2346 DEFAULT_wxUSE_SASH=yes
2347 DEFAULT_wxUSE_SCROLLBAR=yes
2348 DEFAULT_wxUSE_SLIDER=yes
2349 DEFAULT_wxUSE_SPINBTN=yes
2350 DEFAULT_wxUSE_SPINCTRL=yes
2351 DEFAULT_wxUSE_SPLITTER=yes
2352 DEFAULT_wxUSE_STATBMP=yes
2353 DEFAULT_wxUSE_STATBOX=yes
2354 DEFAULT_wxUSE_STATLINE=yes
2355 DEFAULT_wxUSE_STATTEXT=yes
2356 DEFAULT_wxUSE_STATUSBAR=yes
2357 DEFAULT_wxUSE_TABDIALOG=no
2358 DEFAULT_wxUSE_TEXTCTRL=yes
2359 DEFAULT_wxUSE_TOGGLEBTN=yes
2360 DEFAULT_wxUSE_TOOLBAR=yes
2361 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2362 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2363 DEFAULT_wxUSE_TREECTRL=yes
2364 DEFAULT_wxUSE_POPUPWIN=yes
2365 DEFAULT_wxUSE_TIPWINDOW=yes
2366
2367 DEFAULT_wxUSE_UNICODE=no
2368 DEFAULT_wxUSE_UNICODE_MSLU=yes
2369 DEFAULT_wxUSE_WCSRTOMBS=no
2370
2371 DEFAULT_wxUSE_PALETTE=yes
2372 DEFAULT_wxUSE_IMAGE=yes
2373 DEFAULT_wxUSE_GIF=yes
2374 DEFAULT_wxUSE_PCX=yes
2375 DEFAULT_wxUSE_IFF=no
2376 DEFAULT_wxUSE_PNM=yes
2377 DEFAULT_wxUSE_XPM=yes
2378 DEFAULT_wxUSE_ICO_CUR=yes
2379 DEFAULT_wxUSE_ACCESSIBILITY=no
2380
2381 DEFAULT_wxUSE_MONOLITHIC=no
2382 DEFAULT_wxUSE_PLUGINS=no
2383 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2384fi
2385
2386
2387
2388for toolkit in `echo $ALL_TOOLKITS`; do
2389 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2390 if test "x$LINE" != "x" ; then
2391 has_toolkit_in_cache=1
2392 eval "DEFAULT_$LINE"
2393 eval "CACHE_$toolkit=1"
2394 fi
2395done
2396
2397
2398
2399 enablestring=
2400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2401echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2402 no_cache=0
2403 # Check whether --enable-gui or --disable-gui was given.
2404if test "${enable_gui+set}" = set; then
2405 enableval="$enable_gui"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_gui='wxUSE_GUI=yes'
2409 else
2410 ac_cv_use_gui='wxUSE_GUI=no'
2411 fi
2412
2413else
2414
2415 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2423
2424fi;
2425
2426 eval "$ac_cv_use_gui"
2427 if test "$no_cache" != 1; then
2428 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2429 fi
2430
2431 if test "$wxUSE_GUI" = yes; then
2432 echo "$as_me:$LINENO: result: yes" >&5
2433echo "${ECHO_T}yes" >&6
2434 else
2435 echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6
2437 fi
2438
2439
2440 enablestring=
2441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2442echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2443 no_cache=0
2444 # Check whether --enable-monolithic or --disable-monolithic was given.
2445if test "${enable_monolithic+set}" = set; then
2446 enableval="$enable_monolithic"
2447
2448 if test "$enableval" = yes; then
2449 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2450 else
2451 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2452 fi
2453
2454else
2455
2456 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2457 if test "x$LINE" != x ; then
2458 eval "DEFAULT_$LINE"
2459 else
2460 no_cache=1
2461 fi
2462
2463 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2464
2465fi;
2466
2467 eval "$ac_cv_use_monolithic"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_MONOLITHIC" = yes; then
2473 echo "$as_me:$LINENO: result: yes" >&5
2474echo "${ECHO_T}yes" >&6
2475 else
2476 echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6
2478 fi
2479
2480
2481 enablestring=
2482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2483echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2484 no_cache=0
2485 # Check whether --enable-plugins or --disable-plugins was given.
2486if test "${enable_plugins+set}" = set; then
2487 enableval="$enable_plugins"
2488
2489 if test "$enableval" = yes; then
2490 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2491 else
2492 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2493 fi
2494
2495else
2496
2497 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2498 if test "x$LINE" != x ; then
2499 eval "DEFAULT_$LINE"
2500 else
2501 no_cache=1
2502 fi
2503
2504 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2505
2506fi;
2507
2508 eval "$ac_cv_use_plugins"
2509 if test "$no_cache" != 1; then
2510 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2511 fi
2512
2513 if test "$wxUSE_PLUGINS" = yes; then
2514 echo "$as_me:$LINENO: result: yes" >&5
2515echo "${ECHO_T}yes" >&6
2516 else
2517 echo "$as_me:$LINENO: result: no" >&5
2518echo "${ECHO_T}no" >&6
2519 fi
2520
2521
2522if test "$wxUSE_GUI" = "yes"; then
2523
2524
2525 enablestring=
2526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2527echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2528 no_cache=0
2529 # Check whether --enable-universal or --disable-universal was given.
2530if test "${enable_universal+set}" = set; then
2531 enableval="$enable_universal"
2532
2533 if test "$enableval" = yes; then
2534 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2535 else
2536 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2537 fi
2538
2539else
2540
2541 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2542 if test "x$LINE" != x ; then
2543 eval "DEFAULT_$LINE"
2544 else
2545 no_cache=1
2546 fi
2547
2548 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2549
2550fi;
2551
2552 eval "$ac_cv_use_universal"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_UNIVERSAL" = yes; then
2558 echo "$as_me:$LINENO: result: yes" >&5
2559echo "${ECHO_T}yes" >&6
2560 else
2561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
2563 fi
2564
2565
2566# Check whether --with-gtk or --without-gtk was given.
2567if test "${with_gtk+set}" = set; then
2568 withval="$with_gtk"
2569 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2570fi;
2571
2572# Check whether --with-motif or --without-motif was given.
2573if test "${with_motif+set}" = set; then
2574 withval="$with_motif"
2575 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2576fi;
2577
2578# Check whether --with-mac or --without-mac was given.
2579if test "${with_mac+set}" = set; then
2580 withval="$with_mac"
2581 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2582fi;
2583
2584# Check whether --with-cocoa or --without-cocoa was given.
2585if test "${with_cocoa+set}" = set; then
2586 withval="$with_cocoa"
2587 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2588fi;
2589
2590# Check whether --with-wine or --without-wine was given.
2591if test "${with_wine+set}" = set; then
2592 withval="$with_wine"
2593 wxUSE_WINE="$withval" CACHE_WINE=1
2594fi;
2595
2596# Check whether --with-msw or --without-msw was given.
2597if test "${with_msw+set}" = set; then
2598 withval="$with_msw"
2599 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2600fi;
2601
2602# Check whether --with-pm or --without-pm was given.
2603if test "${with_pm+set}" = set; then
2604 withval="$with_pm"
2605 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2606fi;
2607
2608# Check whether --with-mgl or --without-mgl was given.
2609if test "${with_mgl+set}" = set; then
2610 withval="$with_mgl"
2611 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2612fi;
2613
2614# Check whether --with-microwin or --without-microwin was given.
2615if test "${with_microwin+set}" = set; then
2616 withval="$with_microwin"
2617 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2618fi;
2619
2620# Check whether --with-x11 or --without-x11 was given.
2621if test "${with_x11+set}" = set; then
2622 withval="$with_x11"
2623 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2624fi;
2625
2626 enablestring=
2627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2628echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2629 no_cache=0
2630 # Check whether --enable-nanox or --disable-nanox was given.
2631if test "${enable_nanox+set}" = set; then
2632 enableval="$enable_nanox"
2633
2634 if test "$enableval" = yes; then
2635 ac_cv_use_nanox='wxUSE_NANOX=yes'
2636 else
2637 ac_cv_use_nanox='wxUSE_NANOX=no'
2638 fi
2639
2640else
2641
2642 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2650
2651fi;
2652
2653 eval "$ac_cv_use_nanox"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_NANOX" = yes; then
2659 echo "$as_me:$LINENO: result: yes" >&5
2660echo "${ECHO_T}yes" >&6
2661 else
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
2664 fi
2665
2666
2667
2668 enablestring=
2669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2670echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2671 no_cache=0
2672 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2673if test "${enable_gtk2+set}" = set; then
2674 enableval="$enable_gtk2"
2675
2676 if test "$enableval" = yes; then
2677 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2678 else
2679 ac_cv_use_gtk2='wxUSE_GTK2=no'
2680 fi
2681
2682else
2683
2684 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2685 if test "x$LINE" != x ; then
2686 eval "DEFAULT_$LINE"
2687 else
2688 no_cache=1
2689 fi
2690
2691 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2692
2693fi;
2694
2695 eval "$ac_cv_use_gtk2"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_GTK2" = yes; then
2701 echo "$as_me:$LINENO: result: yes" >&5
2702echo "${ECHO_T}yes" >&6
2703 else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706 fi
2707
2708
2709 enablestring=
2710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2711echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2712 no_cache=0
2713 # Check whether --enable-gpe or --disable-gpe was given.
2714if test "${enable_gpe+set}" = set; then
2715 enableval="$enable_gpe"
2716
2717 if test "$enableval" = yes; then
2718 ac_cv_use_gpe='wxUSE_GPE=yes'
2719 else
2720 ac_cv_use_gpe='wxUSE_GPE=no'
2721 fi
2722
2723else
2724
2725 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2726 if test "x$LINE" != x ; then
2727 eval "DEFAULT_$LINE"
2728 else
2729 no_cache=1
2730 fi
2731
2732 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2733
2734fi;
2735
2736 eval "$ac_cv_use_gpe"
2737 if test "$no_cache" != 1; then
2738 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2739 fi
2740
2741 if test "$wxUSE_GPE" = yes; then
2742 echo "$as_me:$LINENO: result: yes" >&5
2743echo "${ECHO_T}yes" >&6
2744 else
2745 echo "$as_me:$LINENO: result: no" >&5
2746echo "${ECHO_T}no" >&6
2747 fi
2748
2749
2750
2751 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2752echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2753 no_cache=0
2754
2755# Check whether --with-libpng or --without-libpng was given.
2756if test "${with_libpng+set}" = set; then
2757 withval="$with_libpng"
2758
2759 if test "$withval" = yes; then
2760 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2761 elif test "$withval" = no; then
2762 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2763 elif test "$withval" = sys; then
2764 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2765 elif test "$withval" = builtin; then
2766 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2767 else
2768 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2769echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2770 { (exit 1); exit 1; }; }
2771 fi
2772
2773else
2774
2775 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
2782 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2783
2784fi;
2785
2786 eval "$ac_cv_use_libpng"
2787 if test "$no_cache" != 1; then
2788 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2789 fi
2790
2791 if test "$wxUSE_LIBPNG" = yes; then
2792 echo "$as_me:$LINENO: result: yes" >&5
2793echo "${ECHO_T}yes" >&6
2794 elif test "$wxUSE_LIBPNG" = no; then
2795 echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6
2797 elif test "$wxUSE_LIBPNG" = sys; then
2798 echo "$as_me:$LINENO: result: system version" >&5
2799echo "${ECHO_T}system version" >&6
2800 elif test "$wxUSE_LIBPNG" = builtin; then
2801 echo "$as_me:$LINENO: result: builtin version" >&5
2802echo "${ECHO_T}builtin version" >&6
2803 else
2804 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2805echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2806 { (exit 1); exit 1; }; }
2807 fi
2808
2809
2810 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2811echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2812 no_cache=0
2813
2814# Check whether --with-libjpeg or --without-libjpeg was given.
2815if test "${with_libjpeg+set}" = set; then
2816 withval="$with_libjpeg"
2817
2818 if test "$withval" = yes; then
2819 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2820 elif test "$withval" = no; then
2821 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2822 elif test "$withval" = sys; then
2823 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2824 elif test "$withval" = builtin; then
2825 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2826 else
2827 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2828echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831
2832else
2833
2834 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2835 if test "x$LINE" != x ; then
2836 eval "DEFAULT_$LINE"
2837 else
2838 no_cache=1
2839 fi
2840
2841 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2842
2843fi;
2844
2845 eval "$ac_cv_use_libjpeg"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_LIBJPEG" = yes; then
2851 echo "$as_me:$LINENO: result: yes" >&5
2852echo "${ECHO_T}yes" >&6
2853 elif test "$wxUSE_LIBJPEG" = no; then
2854 echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856 elif test "$wxUSE_LIBJPEG" = sys; then
2857 echo "$as_me:$LINENO: result: system version" >&5
2858echo "${ECHO_T}system version" >&6
2859 elif test "$wxUSE_LIBJPEG" = builtin; then
2860 echo "$as_me:$LINENO: result: builtin version" >&5
2861echo "${ECHO_T}builtin version" >&6
2862 else
2863 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2864echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2865 { (exit 1); exit 1; }; }
2866 fi
2867
2868
2869 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2870echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2871 no_cache=0
2872
2873# Check whether --with-libtiff or --without-libtiff was given.
2874if test "${with_libtiff+set}" = set; then
2875 withval="$with_libtiff"
2876
2877 if test "$withval" = yes; then
2878 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2879 elif test "$withval" = no; then
2880 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2881 elif test "$withval" = sys; then
2882 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2883 elif test "$withval" = builtin; then
2884 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2885 else
2886 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2887echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890
2891else
2892
2893 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2901
2902fi;
2903
2904 eval "$ac_cv_use_libtiff"
2905 if test "$no_cache" != 1; then
2906 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2907 fi
2908
2909 if test "$wxUSE_LIBTIFF" = yes; then
2910 echo "$as_me:$LINENO: result: yes" >&5
2911echo "${ECHO_T}yes" >&6
2912 elif test "$wxUSE_LIBTIFF" = no; then
2913 echo "$as_me:$LINENO: result: no" >&5
2914echo "${ECHO_T}no" >&6
2915 elif test "$wxUSE_LIBTIFF" = sys; then
2916 echo "$as_me:$LINENO: result: system version" >&5
2917echo "${ECHO_T}system version" >&6
2918 elif test "$wxUSE_LIBTIFF" = builtin; then
2919 echo "$as_me:$LINENO: result: builtin version" >&5
2920echo "${ECHO_T}builtin version" >&6
2921 else
2922 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2923echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2924 { (exit 1); exit 1; }; }
2925 fi
2926
2927
2928 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2929echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2930 no_cache=0
2931
2932# Check whether --with-libxpm or --without-libxpm was given.
2933if test "${with_libxpm+set}" = set; then
2934 withval="$with_libxpm"
2935
2936 if test "$withval" = yes; then
2937 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2938 elif test "$withval" = no; then
2939 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2940 elif test "$withval" = sys; then
2941 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2942 elif test "$withval" = builtin; then
2943 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2944 else
2945 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2946echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950else
2951
2952 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2953 if test "x$LINE" != x ; then
2954 eval "DEFAULT_$LINE"
2955 else
2956 no_cache=1
2957 fi
2958
2959 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2960
2961fi;
2962
2963 eval "$ac_cv_use_libxpm"
2964 if test "$no_cache" != 1; then
2965 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2966 fi
2967
2968 if test "$wxUSE_LIBXPM" = yes; then
2969 echo "$as_me:$LINENO: result: yes" >&5
2970echo "${ECHO_T}yes" >&6
2971 elif test "$wxUSE_LIBXPM" = no; then
2972 echo "$as_me:$LINENO: result: no" >&5
2973echo "${ECHO_T}no" >&6
2974 elif test "$wxUSE_LIBXPM" = sys; then
2975 echo "$as_me:$LINENO: result: system version" >&5
2976echo "${ECHO_T}system version" >&6
2977 elif test "$wxUSE_LIBXPM" = builtin; then
2978 echo "$as_me:$LINENO: result: builtin version" >&5
2979echo "${ECHO_T}builtin version" >&6
2980 else
2981 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2982echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2983 { (exit 1); exit 1; }; }
2984 fi
2985
2986
2987 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2988echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2989 no_cache=0
2990
2991# Check whether --with-libmspack or --without-libmspack was given.
2992if test "${with_libmspack+set}" = set; then
2993 withval="$with_libmspack"
2994
2995 if test "$withval" = yes; then
2996 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2997 else
2998 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2999 fi
3000
3001else
3002
3003 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3011
3012fi;
3013
3014 eval "$ac_cv_use_libmspack"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$wxUSE_LIBMSPACK" = yes; then
3020 echo "$as_me:$LINENO: result: yes" >&5
3021echo "${ECHO_T}yes" >&6
3022 else
3023 echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
3025 fi
3026
3027
3028 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3029echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3030 no_cache=0
3031
3032# Check whether --with-sdl or --without-sdl was given.
3033if test "${with_sdl+set}" = set; then
3034 withval="$with_sdl"
3035
3036 if test "$withval" = yes; then
3037 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3038 else
3039 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3040 fi
3041
3042else
3043
3044 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3052
3053fi;
3054
3055 eval "$ac_cv_use_sdl"
3056 if test "$no_cache" != 1; then
3057 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3058 fi
3059
3060 if test "$wxUSE_LIBSDL" = yes; then
3061 echo "$as_me:$LINENO: result: yes" >&5
3062echo "${ECHO_T}yes" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066 fi
3067
3068
3069 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3070echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3071 no_cache=0
3072
3073# Check whether --with-opengl or --without-opengl was given.
3074if test "${with_opengl+set}" = set; then
3075 withval="$with_opengl"
3076
3077 if test "$withval" = yes; then
3078 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3079 else
3080 ac_cv_use_opengl='wxUSE_OPENGL=no'
3081 fi
3082
3083else
3084
3085 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3086 if test "x$LINE" != x ; then
3087 eval "DEFAULT_$LINE"
3088 else
3089 no_cache=1
3090 fi
3091
3092 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3093
3094fi;
3095
3096 eval "$ac_cv_use_opengl"
3097 if test "$no_cache" != 1; then
3098 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3099 fi
3100
3101 if test "$wxUSE_OPENGL" = yes; then
3102 echo "$as_me:$LINENO: result: yes" >&5
3103echo "${ECHO_T}yes" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106echo "${ECHO_T}no" >&6
3107 fi
3108
3109
3110fi
3111
3112
3113 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3114echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3115 no_cache=0
3116
3117# Check whether --with-dmalloc or --without-dmalloc was given.
3118if test "${with_dmalloc+set}" = set; then
3119 withval="$with_dmalloc"
3120
3121 if test "$withval" = yes; then
3122 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3123 else
3124 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3125 fi
3126
3127else
3128
3129 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3130 if test "x$LINE" != x ; then
3131 eval "DEFAULT_$LINE"
3132 else
3133 no_cache=1
3134 fi
3135
3136 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3137
3138fi;
3139
3140 eval "$ac_cv_use_dmalloc"
3141 if test "$no_cache" != 1; then
3142 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3143 fi
3144
3145 if test "$wxUSE_DMALLOC" = yes; then
3146 echo "$as_me:$LINENO: result: yes" >&5
3147echo "${ECHO_T}yes" >&6
3148 else
3149 echo "$as_me:$LINENO: result: no" >&5
3150echo "${ECHO_T}no" >&6
3151 fi
3152
3153
3154 echo "$as_me:$LINENO: checking for --with-regex" >&5
3155echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3156 no_cache=0
3157
3158# Check whether --with-regex or --without-regex was given.
3159if test "${with_regex+set}" = set; then
3160 withval="$with_regex"
3161
3162 if test "$withval" = yes; then
3163 ac_cv_use_regex='wxUSE_REGEX=yes'
3164 elif test "$withval" = no; then
3165 ac_cv_use_regex='wxUSE_REGEX=no'
3166 elif test "$withval" = sys; then
3167 ac_cv_use_regex='wxUSE_REGEX=sys'
3168 elif test "$withval" = builtin; then
3169 ac_cv_use_regex='wxUSE_REGEX=builtin'
3170 else
3171 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3172echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3173 { (exit 1); exit 1; }; }
3174 fi
3175
3176else
3177
3178 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3186
3187fi;
3188
3189 eval "$ac_cv_use_regex"
3190 if test "$no_cache" != 1; then
3191 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3192 fi
3193
3194 if test "$wxUSE_REGEX" = yes; then
3195 echo "$as_me:$LINENO: result: yes" >&5
3196echo "${ECHO_T}yes" >&6
3197 elif test "$wxUSE_REGEX" = no; then
3198 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200 elif test "$wxUSE_REGEX" = sys; then
3201 echo "$as_me:$LINENO: result: system version" >&5
3202echo "${ECHO_T}system version" >&6
3203 elif test "$wxUSE_REGEX" = builtin; then
3204 echo "$as_me:$LINENO: result: builtin version" >&5
3205echo "${ECHO_T}builtin version" >&6
3206 else
3207 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3208echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3209 { (exit 1); exit 1; }; }
3210 fi
3211
3212
3213 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3214echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3215 no_cache=0
3216
3217# Check whether --with-zlib or --without-zlib was given.
3218if test "${with_zlib+set}" = set; then
3219 withval="$with_zlib"
3220
3221 if test "$withval" = yes; then
3222 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3223 elif test "$withval" = no; then
3224 ac_cv_use_zlib='wxUSE_ZLIB=no'
3225 elif test "$withval" = sys; then
3226 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3227 elif test "$withval" = builtin; then
3228 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3229 else
3230 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3231echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3232 { (exit 1); exit 1; }; }
3233 fi
3234
3235else
3236
3237 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3238 if test "x$LINE" != x ; then
3239 eval "DEFAULT_$LINE"
3240 else
3241 no_cache=1
3242 fi
3243
3244 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3245
3246fi;
3247
3248 eval "$ac_cv_use_zlib"
3249 if test "$no_cache" != 1; then
3250 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3251 fi
3252
3253 if test "$wxUSE_ZLIB" = yes; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255echo "${ECHO_T}yes" >&6
3256 elif test "$wxUSE_ZLIB" = no; then
3257 echo "$as_me:$LINENO: result: no" >&5
3258echo "${ECHO_T}no" >&6
3259 elif test "$wxUSE_ZLIB" = sys; then
3260 echo "$as_me:$LINENO: result: system version" >&5
3261echo "${ECHO_T}system version" >&6
3262 elif test "$wxUSE_ZLIB" = builtin; then
3263 echo "$as_me:$LINENO: result: builtin version" >&5
3264echo "${ECHO_T}builtin version" >&6
3265 else
3266 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3267echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3268 { (exit 1); exit 1; }; }
3269 fi
3270
3271
3272 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3273echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3274 no_cache=0
3275
3276# Check whether --with-odbc or --without-odbc was given.
3277if test "${with_odbc+set}" = set; then
3278 withval="$with_odbc"
3279
3280 if test "$withval" = yes; then
3281 ac_cv_use_odbc='wxUSE_ODBC=yes'
3282 elif test "$withval" = no; then
3283 ac_cv_use_odbc='wxUSE_ODBC=no'
3284 elif test "$withval" = sys; then
3285 ac_cv_use_odbc='wxUSE_ODBC=sys'
3286 elif test "$withval" = builtin; then
3287 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3288 else
3289 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3290echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3291 { (exit 1); exit 1; }; }
3292 fi
3293
3294else
3295
3296 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3304
3305fi;
3306
3307 eval "$ac_cv_use_odbc"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_ODBC" = yes; then
3313 echo "$as_me:$LINENO: result: yes" >&5
3314echo "${ECHO_T}yes" >&6
3315 elif test "$wxUSE_ODBC" = no; then
3316 echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318 elif test "$wxUSE_ODBC" = sys; then
3319 echo "$as_me:$LINENO: result: system version" >&5
3320echo "${ECHO_T}system version" >&6
3321 elif test "$wxUSE_ODBC" = builtin; then
3322 echo "$as_me:$LINENO: result: builtin version" >&5
3323echo "${ECHO_T}builtin version" >&6
3324 else
3325 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3326echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3327 { (exit 1); exit 1; }; }
3328 fi
3329
3330
3331 echo "$as_me:$LINENO: checking for --with-expat" >&5
3332echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3333 no_cache=0
3334
3335# Check whether --with-expat or --without-expat was given.
3336if test "${with_expat+set}" = set; then
3337 withval="$with_expat"
3338
3339 if test "$withval" = yes; then
3340 ac_cv_use_expat='wxUSE_EXPAT=yes'
3341 elif test "$withval" = no; then
3342 ac_cv_use_expat='wxUSE_EXPAT=no'
3343 elif test "$withval" = sys; then
3344 ac_cv_use_expat='wxUSE_EXPAT=sys'
3345 elif test "$withval" = builtin; then
3346 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3347 else
3348 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3349echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3350 { (exit 1); exit 1; }; }
3351 fi
3352
3353else
3354
3355 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
3362 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3363
3364fi;
3365
3366 eval "$ac_cv_use_expat"
3367 if test "$no_cache" != 1; then
3368 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3369 fi
3370
3371 if test "$wxUSE_EXPAT" = yes; then
3372 echo "$as_me:$LINENO: result: yes" >&5
3373echo "${ECHO_T}yes" >&6
3374 elif test "$wxUSE_EXPAT" = no; then
3375 echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
3377 elif test "$wxUSE_EXPAT" = sys; then
3378 echo "$as_me:$LINENO: result: system version" >&5
3379echo "${ECHO_T}system version" >&6
3380 elif test "$wxUSE_EXPAT" = builtin; then
3381 echo "$as_me:$LINENO: result: builtin version" >&5
3382echo "${ECHO_T}builtin version" >&6
3383 else
3384 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3385echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3386 { (exit 1); exit 1; }; }
3387 fi
3388
3389
3390
3391
3392 enablestring=
3393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3394echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3395 no_cache=0
3396 # Check whether --enable-shared or --disable-shared was given.
3397if test "${enable_shared+set}" = set; then
3398 enableval="$enable_shared"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_shared='wxUSE_SHARED=yes'
3402 else
3403 ac_cv_use_shared='wxUSE_SHARED=no'
3404 fi
3405
3406else
3407
3408 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3416
3417fi;
3418
3419 eval "$ac_cv_use_shared"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_SHARED" = yes; then
3425 echo "$as_me:$LINENO: result: yes" >&5
3426echo "${ECHO_T}yes" >&6
3427 else
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
3430 fi
3431
3432
3433 enablestring=
3434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3435echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3436 no_cache=0
3437 # Check whether --enable-optimise or --disable-optimise was given.
3438if test "${enable_optimise+set}" = set; then
3439 enableval="$enable_optimise"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3443 else
3444 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3457
3458fi;
3459
3460 eval "$ac_cv_use_optimise"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_OPTIMISE" = yes; then
3466 echo "$as_me:$LINENO: result: yes" >&5
3467echo "${ECHO_T}yes" >&6
3468 else
3469 echo "$as_me:$LINENO: result: no" >&5
3470echo "${ECHO_T}no" >&6
3471 fi
3472
3473
3474 enablestring=
3475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3476echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3477 no_cache=0
3478 # Check whether --enable-debug or --disable-debug was given.
3479if test "${enable_debug+set}" = set; then
3480 enableval="$enable_debug"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_debug='wxUSE_DEBUG=yes'
3484 else
3485 ac_cv_use_debug='wxUSE_DEBUG=no'
3486 fi
3487
3488else
3489
3490 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3498
3499fi;
3500
3501 eval "$ac_cv_use_debug"
3502 if test "$no_cache" != 1; then
3503 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3504 fi
3505
3506 if test "$wxUSE_DEBUG" = yes; then
3507 echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6
3509 else
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512 fi
3513
3514
3515 enablestring=
3516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3517echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3518 no_cache=0
3519 # Check whether --enable-stl or --disable-stl was given.
3520if test "${enable_stl+set}" = set; then
3521 enableval="$enable_stl"
3522
3523 if test "$enableval" = yes; then
3524 ac_cv_use_stl='wxUSE_STL=yes'
3525 else
3526 ac_cv_use_stl='wxUSE_STL=no'
3527 fi
3528
3529else
3530
3531 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3532 if test "x$LINE" != x ; then
3533 eval "DEFAULT_$LINE"
3534 else
3535 no_cache=1
3536 fi
3537
3538 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3539
3540fi;
3541
3542 eval "$ac_cv_use_stl"
3543 if test "$no_cache" != 1; then
3544 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3545 fi
3546
3547 if test "$wxUSE_STL" = yes; then
3548 echo "$as_me:$LINENO: result: yes" >&5
3549echo "${ECHO_T}yes" >&6
3550 else
3551 echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
3553 fi
3554
3555if test "$USE_OS2" = "1"; then
3556
3557 enablestring=
3558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3559echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3560 no_cache=0
3561 # Check whether --enable-omf or --disable-omf was given.
3562if test "${enable_omf+set}" = set; then
3563 enableval="$enable_omf"
3564
3565 if test "$enableval" = yes; then
3566 ac_cv_use_omf='wxUSE_OMF=yes'
3567 else
3568 ac_cv_use_omf='wxUSE_OMF=no'
3569 fi
3570
3571else
3572
3573 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3581
3582fi;
3583
3584 eval "$ac_cv_use_omf"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_OMF" = yes; then
3590 echo "$as_me:$LINENO: result: yes" >&5
3591echo "${ECHO_T}yes" >&6
3592 else
3593 echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
3595 fi
3596
3597fi
3598
3599if test "$wxUSE_DEBUG" = "yes"; then
3600 DEFAULT_wxUSE_DEBUG_FLAG=yes
3601 DEFAULT_wxUSE_DEBUG_INFO=yes
3602 BUILD=debug
3603elif test "$wxUSE_DEBUG" = "no"; then
3604 DEFAULT_wxUSE_DEBUG_FLAG=no
3605 DEFAULT_wxUSE_DEBUG_INFO=no
3606 BUILD=release
3607fi
3608
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3615if test "${enable_debug_flag+set}" = set; then
3616 enableval="$enable_debug_flag"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3620 else
3621 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3634
3635fi;
3636
3637 eval "$ac_cv_use_debug_flag"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_DEBUG_FLAG" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650
3651 enablestring=
3652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3653echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3654 no_cache=0
3655 # Check whether --enable-debug_info or --disable-debug_info was given.
3656if test "${enable_debug_info+set}" = set; then
3657 enableval="$enable_debug_info"
3658
3659 if test "$enableval" = yes; then
3660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3661 else
3662 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3663 fi
3664
3665else
3666
3667 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3668 if test "x$LINE" != x ; then
3669 eval "DEFAULT_$LINE"
3670 else
3671 no_cache=1
3672 fi
3673
3674 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3675
3676fi;
3677
3678 eval "$ac_cv_use_debug_info"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_DEBUG_INFO" = yes; then
3684 echo "$as_me:$LINENO: result: yes" >&5
3685echo "${ECHO_T}yes" >&6
3686 else
3687 echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689 fi
3690
3691
3692 enablestring=
3693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3694echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3695 no_cache=0
3696 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3697if test "${enable_debug_gdb+set}" = set; then
3698 enableval="$enable_debug_gdb"
3699
3700 if test "$enableval" = yes; then
3701 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3702 else
3703 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3704 fi
3705
3706else
3707
3708 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3709 if test "x$LINE" != x ; then
3710 eval "DEFAULT_$LINE"
3711 else
3712 no_cache=1
3713 fi
3714
3715 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3716
3717fi;
3718
3719 eval "$ac_cv_use_debug_gdb"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_DEBUG_GDB" = yes; then
3725 echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730 fi
3731
3732
3733 enablestring=
3734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3735echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3736 no_cache=0
3737 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3738if test "${enable_debug_cntxt+set}" = set; then
3739 enableval="$enable_debug_cntxt"
3740
3741 if test "$enableval" = yes; then
3742 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3743 else
3744 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3745 fi
3746
3747else
3748
3749 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3750 if test "x$LINE" != x ; then
3751 eval "DEFAULT_$LINE"
3752 else
3753 no_cache=1
3754 fi
3755
3756 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3757
3758fi;
3759
3760 eval "$ac_cv_use_debug_cntxt"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3766 echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770echo "${ECHO_T}no" >&6
3771 fi
3772
3773
3774 enablestring=
3775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3776echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3777 no_cache=0
3778 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3779if test "${enable_mem_tracing+set}" = set; then
3780 enableval="$enable_mem_tracing"
3781
3782 if test "$enableval" = yes; then
3783 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3784 else
3785 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3786 fi
3787
3788else
3789
3790 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3798
3799fi;
3800
3801 eval "$ac_cv_use_mem_tracing"
3802 if test "$no_cache" != 1; then
3803 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3804 fi
3805
3806 if test "$wxUSE_MEM_TRACING" = yes; then
3807 echo "$as_me:$LINENO: result: yes" >&5
3808echo "${ECHO_T}yes" >&6
3809 else
3810 echo "$as_me:$LINENO: result: no" >&5
3811echo "${ECHO_T}no" >&6
3812 fi
3813
3814
3815 enablestring=
3816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3817echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3818 no_cache=0
3819 # Check whether --enable-profile or --disable-profile was given.
3820if test "${enable_profile+set}" = set; then
3821 enableval="$enable_profile"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_profile='wxUSE_PROFILE=yes'
3825 else
3826 ac_cv_use_profile='wxUSE_PROFILE=no'
3827 fi
3828
3829else
3830
3831 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3839
3840fi;
3841
3842 eval "$ac_cv_use_profile"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_PROFILE" = yes; then
3848 echo "$as_me:$LINENO: result: yes" >&5
3849echo "${ECHO_T}yes" >&6
3850 else
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
3853 fi
3854
3855
3856 enablestring=
3857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3858echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3859 no_cache=0
3860 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3861if test "${enable_no_rtti+set}" = set; then
3862 enableval="$enable_no_rtti"
3863
3864 if test "$enableval" = yes; then
3865 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3866 else
3867 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3868 fi
3869
3870else
3871
3872 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3880
3881fi;
3882
3883 eval "$ac_cv_use_no_rtti"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_NO_RTTI" = yes; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894 fi
3895
3896
3897 enablestring=
3898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3899echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3900 no_cache=0
3901 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3902if test "${enable_no_exceptions+set}" = set; then
3903 enableval="$enable_no_exceptions"
3904
3905 if test "$enableval" = yes; then
3906 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3907 else
3908 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3909 fi
3910
3911else
3912
3913 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3921
3922fi;
3923
3924 eval "$ac_cv_use_no_exceptions"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3930 echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
3932 else
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935 fi
3936
3937
3938 enablestring=
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3941 no_cache=0
3942 # Check whether --enable-permissive or --disable-permissive was given.
3943if test "${enable_permissive+set}" = set; then
3944 enableval="$enable_permissive"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3948 else
3949 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3950 fi
3951
3952else
3953
3954 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3962
3963fi;
3964
3965 eval "$ac_cv_use_permissive"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_PERMISSIVE" = yes; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
3976 fi
3977
3978
3979 enablestring=
3980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3981echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3982 no_cache=0
3983 # Check whether --enable-no_deps or --disable-no_deps was given.
3984if test "${enable_no_deps+set}" = set; then
3985 enableval="$enable_no_deps"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3989 else
3990 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3991 fi
3992
3993else
3994
3995 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4003
4004fi;
4005
4006 eval "$ac_cv_use_no_deps"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_NO_DEPS" = yes; then
4012 echo "$as_me:$LINENO: result: yes" >&5
4013echo "${ECHO_T}yes" >&6
4014 else
4015 echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
4017 fi
4018
4019
4020
4021 enablestring=
4022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4023echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4024 no_cache=0
4025 # Check whether --enable-compat22 or --disable-compat22 was given.
4026if test "${enable_compat22+set}" = set; then
4027 enableval="$enable_compat22"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4031 else
4032 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4045
4046fi;
4047
4048 eval "$ac_cv_use_compat22"
4049 if test "$no_cache" != 1; then
4050 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4051 fi
4052
4053 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4054 echo "$as_me:$LINENO: result: yes" >&5
4055echo "${ECHO_T}yes" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no" >&5
4058echo "${ECHO_T}no" >&6
4059 fi
4060
4061
4062 enablestring=disable
4063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4064echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4065 no_cache=0
4066 # Check whether --enable-compat24 or --disable-compat24 was given.
4067if test "${enable_compat24+set}" = set; then
4068 enableval="$enable_compat24"
4069
4070 if test "$enableval" = yes; then
4071 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4072 else
4073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4074 fi
4075
4076else
4077
4078 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4079 if test "x$LINE" != x ; then
4080 eval "DEFAULT_$LINE"
4081 else
4082 no_cache=1
4083 fi
4084
4085 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4086
4087fi;
4088
4089 eval "$ac_cv_use_compat24"
4090 if test "$no_cache" != 1; then
4091 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4092 fi
4093
4094 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4095 echo "$as_me:$LINENO: result: yes" >&5
4096echo "${ECHO_T}yes" >&6
4097 else
4098 echo "$as_me:$LINENO: result: no" >&5
4099echo "${ECHO_T}no" >&6
4100 fi
4101
4102
4103# Check whether --enable-rpath or --disable-rpath was given.
4104if test "${enable_rpath+set}" = set; then
4105 enableval="$enable_rpath"
4106 wxRPATH_DIR="$enableval"
4107fi;
4108
4109if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4110 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4111fi
4112
4113
4114
4115
4116 enablestring=
4117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4118echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4119 no_cache=0
4120 # Check whether --enable-intl or --disable-intl was given.
4121if test "${enable_intl+set}" = set; then
4122 enableval="$enable_intl"
4123
4124 if test "$enableval" = yes; then
4125 ac_cv_use_intl='wxUSE_INTL=yes'
4126 else
4127 ac_cv_use_intl='wxUSE_INTL=no'
4128 fi
4129
4130else
4131
4132 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4133 if test "x$LINE" != x ; then
4134 eval "DEFAULT_$LINE"
4135 else
4136 no_cache=1
4137 fi
4138
4139 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4140
4141fi;
4142
4143 eval "$ac_cv_use_intl"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_INTL" = yes; then
4149 echo "$as_me:$LINENO: result: yes" >&5
4150echo "${ECHO_T}yes" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153echo "${ECHO_T}no" >&6
4154 fi
4155
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-config or --disable-config was given.
4162if test "${enable_config+set}" = set; then
4163 enableval="$enable_config"
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_config='wxUSE_CONFIG=yes'
4167 else
4168 ac_cv_use_config='wxUSE_CONFIG=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4181
4182fi;
4183
4184 eval "$ac_cv_use_config"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_CONFIG" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
4197
4198
4199 enablestring=
4200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4201echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4202 no_cache=0
4203 # Check whether --enable-protocols or --disable-protocols was given.
4204if test "${enable_protocols+set}" = set; then
4205 enableval="$enable_protocols"
4206
4207 if test "$enableval" = yes; then
4208 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4209 else
4210 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4211 fi
4212
4213else
4214
4215 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4216 if test "x$LINE" != x ; then
4217 eval "DEFAULT_$LINE"
4218 else
4219 no_cache=1
4220 fi
4221
4222 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4223
4224fi;
4225
4226 eval "$ac_cv_use_protocols"
4227 if test "$no_cache" != 1; then
4228 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4229 fi
4230
4231 if test "$wxUSE_PROTOCOL" = yes; then
4232 echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237 fi
4238
4239
4240 enablestring=
4241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4242echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4243 no_cache=0
4244 # Check whether --enable-ftp or --disable-ftp was given.
4245if test "${enable_ftp+set}" = set; then
4246 enableval="$enable_ftp"
4247
4248 if test "$enableval" = yes; then
4249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4250 else
4251 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4252 fi
4253
4254else
4255
4256 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4264
4265fi;
4266
4267 eval "$ac_cv_use_ftp"
4268 if test "$no_cache" != 1; then
4269 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4270 fi
4271
4272 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4273 echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 enablestring=
4282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4283echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4284 no_cache=0
4285 # Check whether --enable-http or --disable-http was given.
4286if test "${enable_http+set}" = set; then
4287 enableval="$enable_http"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4291 else
4292 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4305
4306fi;
4307
4308 eval "$ac_cv_use_http"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316 else
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
4319 fi
4320
4321
4322 enablestring=
4323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4324echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4325 no_cache=0
4326 # Check whether --enable-fileproto or --disable-fileproto was given.
4327if test "${enable_fileproto+set}" = set; then
4328 enableval="$enable_fileproto"
4329
4330 if test "$enableval" = yes; then
4331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4332 else
4333 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4334 fi
4335
4336else
4337
4338 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4339 if test "x$LINE" != x ; then
4340 eval "DEFAULT_$LINE"
4341 else
4342 no_cache=1
4343 fi
4344
4345 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4346
4347fi;
4348
4349 eval "$ac_cv_use_fileproto"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4355 echo "$as_me:$LINENO: result: yes" >&5
4356echo "${ECHO_T}yes" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360 fi
4361
4362
4363 enablestring=
4364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4365echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4366 no_cache=0
4367 # Check whether --enable-sockets or --disable-sockets was given.
4368if test "${enable_sockets+set}" = set; then
4369 enableval="$enable_sockets"
4370
4371 if test "$enableval" = yes; then
4372 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4373 else
4374 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4375 fi
4376
4377else
4378
4379 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
4386 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4387
4388fi;
4389
4390 eval "$ac_cv_use_sockets"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_SOCKETS" = yes; then
4396 echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
4398 else
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
4401 fi
4402
4403
4404 enablestring=
4405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4406echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4407 no_cache=0
4408 # Check whether --enable-ole or --disable-ole was given.
4409if test "${enable_ole+set}" = set; then
4410 enableval="$enable_ole"
4411
4412 if test "$enableval" = yes; then
4413 ac_cv_use_ole='wxUSE_OLE=yes'
4414 else
4415 ac_cv_use_ole='wxUSE_OLE=no'
4416 fi
4417
4418else
4419
4420 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4428
4429fi;
4430
4431 eval "$ac_cv_use_ole"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_OLE" = yes; then
4437 echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442 fi
4443
4444
4445 enablestring=
4446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4447echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4448 no_cache=0
4449 # Check whether --enable-dataobj or --disable-dataobj was given.
4450if test "${enable_dataobj+set}" = set; then
4451 enableval="$enable_dataobj"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4455 else
4456 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4469
4470fi;
4471
4472 eval "$ac_cv_use_dataobj"
4473 if test "$no_cache" != 1; then
4474 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4475 fi
4476
4477 if test "$wxUSE_DATAOBJ" = yes; then
4478 echo "$as_me:$LINENO: result: yes" >&5
4479echo "${ECHO_T}yes" >&6
4480 else
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483 fi
4484
4485
4486
4487 enablestring=
4488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4489echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4490 no_cache=0
4491 # Check whether --enable-ipc or --disable-ipc was given.
4492if test "${enable_ipc+set}" = set; then
4493 enableval="$enable_ipc"
4494
4495 if test "$enableval" = yes; then
4496 ac_cv_use_ipc='wxUSE_IPC=yes'
4497 else
4498 ac_cv_use_ipc='wxUSE_IPC=no'
4499 fi
4500
4501else
4502
4503 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4504 if test "x$LINE" != x ; then
4505 eval "DEFAULT_$LINE"
4506 else
4507 no_cache=1
4508 fi
4509
4510 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4511
4512fi;
4513
4514 eval "$ac_cv_use_ipc"
4515 if test "$no_cache" != 1; then
4516 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4517 fi
4518
4519 if test "$wxUSE_IPC" = yes; then
4520 echo "$as_me:$LINENO: result: yes" >&5
4521echo "${ECHO_T}yes" >&6
4522 else
4523 echo "$as_me:$LINENO: result: no" >&5
4524echo "${ECHO_T}no" >&6
4525 fi
4526
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4534if test "${enable_apple_ieee+set}" = set; then
4535 enableval="$enable_apple_ieee"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4539 else
4540 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4553
4554fi;
4555
4556 eval "$ac_cv_use_apple_ieee"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_APPLE_IEEE" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4575if test "${enable_catch_segvs+set}" = set; then
4576 enableval="$enable_catch_segvs"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4580 else
4581 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4594
4595fi;
4596
4597 eval "$ac_cv_use_catch_segvs"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-cmdline or --disable-cmdline was given.
4616if test "${enable_cmdline+set}" = set; then
4617 enableval="$enable_cmdline"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4621 else
4622 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4635
4636fi;
4637
4638 eval "$ac_cv_use_cmdline"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-datetime or --disable-datetime was given.
4657if test "${enable_datetime+set}" = set; then
4658 enableval="$enable_datetime"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4662 else
4663 ac_cv_use_datetime='wxUSE_DATETIME=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4676
4677fi;
4678
4679 eval "$ac_cv_use_datetime"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_DATETIME" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-dialupman or --disable-dialupman was given.
4698if test "${enable_dialupman+set}" = set; then
4699 enableval="$enable_dialupman"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4703 else
4704 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4717
4718fi;
4719
4720 eval "$ac_cv_use_dialupman"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dynlib or --disable-dynlib was given.
4739if test "${enable_dynlib+set}" = set; then
4740 enableval="$enable_dynlib"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4744 else
4745 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4758
4759fi;
4760
4761 eval "$ac_cv_use_dynlib"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775 enablestring=
4776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4777echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4778 no_cache=0
4779 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4780if test "${enable_dynamicloader+set}" = set; then
4781 enableval="$enable_dynamicloader"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4785 else
4786 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4799
4800fi;
4801
4802 eval "$ac_cv_use_dynamicloader"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4808 echo "$as_me:$LINENO: result: yes" >&5
4809echo "${ECHO_T}yes" >&6
4810 else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813 fi
4814
4815
4816 enablestring=
4817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4818echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4819 no_cache=0
4820 # Check whether --enable-exceptions or --disable-exceptions was given.
4821if test "${enable_exceptions+set}" = set; then
4822 enableval="$enable_exceptions"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4826 else
4827 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4840
4841fi;
4842
4843 eval "$ac_cv_use_exceptions"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_EXCEPTIONS" = yes; then
4849 echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854 fi
4855
4856
4857 enablestring=
4858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4859echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4860 no_cache=0
4861 # Check whether --enable-ffile or --disable-ffile was given.
4862if test "${enable_ffile+set}" = set; then
4863 enableval="$enable_ffile"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_ffile='wxUSE_FFILE=yes'
4867 else
4868 ac_cv_use_ffile='wxUSE_FFILE=no'
4869 fi
4870
4871else
4872
4873 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4881
4882fi;
4883
4884 eval "$ac_cv_use_ffile"
4885 if test "$no_cache" != 1; then
4886 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4887 fi
4888
4889 if test "$wxUSE_FFILE" = yes; then
4890 echo "$as_me:$LINENO: result: yes" >&5
4891echo "${ECHO_T}yes" >&6
4892 else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895 fi
4896
4897
4898 enablestring=
4899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4900echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4901 no_cache=0
4902 # Check whether --enable-file or --disable-file was given.
4903if test "${enable_file+set}" = set; then
4904 enableval="$enable_file"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_file='wxUSE_FILE=yes'
4908 else
4909 ac_cv_use_file='wxUSE_FILE=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4922
4923fi;
4924
4925 eval "$ac_cv_use_file"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_FILE" = yes; then
4931 echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933 else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 enablestring=
4940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4941echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4942 no_cache=0
4943 # Check whether --enable-filesystem or --disable-filesystem was given.
4944if test "${enable_filesystem+set}" = set; then
4945 enableval="$enable_filesystem"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4949 else
4950 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4963
4964fi;
4965
4966 eval "$ac_cv_use_filesystem"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_FILESYSTEM" = yes; then
4972 echo "$as_me:$LINENO: result: yes" >&5
4973echo "${ECHO_T}yes" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977 fi
4978
4979
4980 enablestring=
4981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4982echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4983 no_cache=0
4984 # Check whether --enable-fontmap or --disable-fontmap was given.
4985if test "${enable_fontmap+set}" = set; then
4986 enableval="$enable_fontmap"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4990 else
4991 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5004
5005fi;
5006
5007 eval "$ac_cv_use_fontmap"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_FONTMAP" = yes; then
5013 echo "$as_me:$LINENO: result: yes" >&5
5014echo "${ECHO_T}yes" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018 fi
5019
5020
5021 enablestring=
5022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5023echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5024 no_cache=0
5025 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5026if test "${enable_fs_inet+set}" = set; then
5027 enableval="$enable_fs_inet"
5028
5029 if test "$enableval" = yes; then
5030 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5031 else
5032 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5033 fi
5034
5035else
5036
5037 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5045
5046fi;
5047
5048 eval "$ac_cv_use_fs_inet"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_FS_INET" = yes; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059 fi
5060
5061
5062 enablestring=
5063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5064echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5065 no_cache=0
5066 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5067if test "${enable_fs_zip+set}" = set; then
5068 enableval="$enable_fs_zip"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5072 else
5073 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5086
5087fi;
5088
5089 eval "$ac_cv_use_fs_zip"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_FS_ZIP" = yes; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096echo "${ECHO_T}yes" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100 fi
5101
5102
5103 enablestring=
5104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5105echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5106 no_cache=0
5107 # Check whether --enable-geometry or --disable-geometry was given.
5108if test "${enable_geometry+set}" = set; then
5109 enableval="$enable_geometry"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5113 else
5114 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5127
5128fi;
5129
5130 eval "$ac_cv_use_geometry"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_GEOMETRY" = yes; then
5136 echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138 else
5139 echo "$as_me:$LINENO: result: no" >&5
5140echo "${ECHO_T}no" >&6
5141 fi
5142
5143
5144 enablestring=
5145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5146echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5147 no_cache=0
5148 # Check whether --enable-log or --disable-log was given.
5149if test "${enable_log+set}" = set; then
5150 enableval="$enable_log"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_log='wxUSE_LOG=yes'
5154 else
5155 ac_cv_use_log='wxUSE_LOG=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5168
5169fi;
5170
5171 eval "$ac_cv_use_log"
5172 if test "$no_cache" != 1; then
5173 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5174 fi
5175
5176 if test "$wxUSE_LOG" = yes; then
5177 echo "$as_me:$LINENO: result: yes" >&5
5178echo "${ECHO_T}yes" >&6
5179 else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182 fi
5183
5184
5185 enablestring=
5186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5187echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5188 no_cache=0
5189 # Check whether --enable-longlong or --disable-longlong was given.
5190if test "${enable_longlong+set}" = set; then
5191 enableval="$enable_longlong"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5195 else
5196 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5209
5210fi;
5211
5212 eval "$ac_cv_use_longlong"
5213 if test "$no_cache" != 1; then
5214 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5215 fi
5216
5217 if test "$wxUSE_LONGLONG" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219echo "${ECHO_T}yes" >&6
5220 else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223 fi
5224
5225
5226 enablestring=
5227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5228echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5229 no_cache=0
5230 # Check whether --enable-mimetype or --disable-mimetype was given.
5231if test "${enable_mimetype+set}" = set; then
5232 enableval="$enable_mimetype"
5233
5234 if test "$enableval" = yes; then
5235 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5236 else
5237 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5238 fi
5239
5240else
5241
5242 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5243 if test "x$LINE" != x ; then
5244 eval "DEFAULT_$LINE"
5245 else
5246 no_cache=1
5247 fi
5248
5249 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5250
5251fi;
5252
5253 eval "$ac_cv_use_mimetype"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_MIMETYPE" = yes; then
5259 echo "$as_me:$LINENO: result: yes" >&5
5260echo "${ECHO_T}yes" >&6
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264 fi
5265
5266
5267 enablestring=
5268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5269echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5270 no_cache=0
5271 # Check whether --enable-mslu or --disable-mslu was given.
5272if test "${enable_mslu+set}" = set; then
5273 enableval="$enable_mslu"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5277 else
5278 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5279 fi
5280
5281else
5282
5283 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5291
5292fi;
5293
5294 eval "$ac_cv_use_mslu"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_UNICODE_MSLU" = yes; then
5300 echo "$as_me:$LINENO: result: yes" >&5
5301echo "${ECHO_T}yes" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305 fi
5306
5307
5308 enablestring=
5309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5310echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5311 no_cache=0
5312 # Check whether --enable-snglinst or --disable-snglinst was given.
5313if test "${enable_snglinst+set}" = set; then
5314 enableval="$enable_snglinst"
5315
5316 if test "$enableval" = yes; then
5317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5318 else
5319 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5320 fi
5321
5322else
5323
5324 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5325 if test "x$LINE" != x ; then
5326 eval "DEFAULT_$LINE"
5327 else
5328 no_cache=1
5329 fi
5330
5331 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5332
5333fi;
5334
5335 eval "$ac_cv_use_snglinst"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342echo "${ECHO_T}yes" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346 fi
5347
5348
5349 enablestring=
5350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5351echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5352 no_cache=0
5353 # Check whether --enable-streams or --disable-streams was given.
5354if test "${enable_streams+set}" = set; then
5355 enableval="$enable_streams"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_streams='wxUSE_STREAMS=yes'
5359 else
5360 ac_cv_use_streams='wxUSE_STREAMS=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5373
5374fi;
5375
5376 eval "$ac_cv_use_streams"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_STREAMS" = yes; then
5382 echo "$as_me:$LINENO: result: yes" >&5
5383echo "${ECHO_T}yes" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387 fi
5388
5389
5390 enablestring=
5391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5392echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5393 no_cache=0
5394 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5395if test "${enable_std_iostreams+set}" = set; then
5396 enableval="$enable_std_iostreams"
5397
5398 if test "$enableval" = yes; then
5399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5400 else
5401 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5402 fi
5403
5404else
5405
5406 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5407 if test "x$LINE" != x ; then
5408 eval "DEFAULT_$LINE"
5409 else
5410 no_cache=1
5411 fi
5412
5413 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5414
5415fi;
5416
5417 eval "$ac_cv_use_std_iostreams"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_STD_IOSTREAM" = yes; then
5423 echo "$as_me:$LINENO: result: yes" >&5
5424echo "${ECHO_T}yes" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428 fi
5429
5430
5431 enablestring=
5432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5433echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5434 no_cache=0
5435 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5436if test "${enable_stopwatch+set}" = set; then
5437 enableval="$enable_stopwatch"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5441 else
5442 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5443 fi
5444
5445else
5446
5447 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5455
5456fi;
5457
5458 eval "$ac_cv_use_stopwatch"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_STOPWATCH" = yes; then
5464 echo "$as_me:$LINENO: result: yes" >&5
5465echo "${ECHO_T}yes" >&6
5466 else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469 fi
5470
5471
5472 enablestring=
5473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5474echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5475 no_cache=0
5476 # Check whether --enable-system_options or --disable-system_options was given.
5477if test "${enable_system_options+set}" = set; then
5478 enableval="$enable_system_options"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5482 else
5483 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5484 fi
5485
5486else
5487
5488 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5496
5497fi;
5498
5499 eval "$ac_cv_use_system_options"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5505 echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507 else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510 fi
5511
5512
5513 enablestring=
5514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5515echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5516 no_cache=0
5517 # Check whether --enable-textbuf or --disable-textbuf was given.
5518if test "${enable_textbuf+set}" = set; then
5519 enableval="$enable_textbuf"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5523 else
5524 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5525 fi
5526
5527else
5528
5529 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5537
5538fi;
5539
5540 eval "$ac_cv_use_textbuf"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_TEXTBUFFER" = yes; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551 fi
5552
5553
5554 enablestring=
5555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5556echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5557 no_cache=0
5558 # Check whether --enable-textfile or --disable-textfile was given.
5559if test "${enable_textfile+set}" = set; then
5560 enableval="$enable_textfile"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5564 else
5565 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5566 fi
5567
5568else
5569
5570 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5578
5579fi;
5580
5581 eval "$ac_cv_use_textfile"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_TEXTFILE" = yes; then
5587 echo "$as_me:$LINENO: result: yes" >&5
5588echo "${ECHO_T}yes" >&6
5589 else
5590 echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592 fi
5593
5594
5595 enablestring=
5596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5597echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5598 no_cache=0
5599 # Check whether --enable-timer or --disable-timer was given.
5600if test "${enable_timer+set}" = set; then
5601 enableval="$enable_timer"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_timer='wxUSE_TIMER=yes'
5605 else
5606 ac_cv_use_timer='wxUSE_TIMER=no'
5607 fi
5608
5609else
5610
5611 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5619
5620fi;
5621
5622 eval "$ac_cv_use_timer"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_TIMER" = yes; then
5628 echo "$as_me:$LINENO: result: yes" >&5
5629echo "${ECHO_T}yes" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633 fi
5634
5635
5636 enablestring=
5637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5638echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5639 no_cache=0
5640 # Check whether --enable-unicode or --disable-unicode was given.
5641if test "${enable_unicode+set}" = set; then
5642 enableval="$enable_unicode"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5646 else
5647 ac_cv_use_unicode='wxUSE_UNICODE=no'
5648 fi
5649
5650else
5651
5652 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5660
5661fi;
5662
5663 eval "$ac_cv_use_unicode"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_UNICODE" = yes; then
5669 echo "$as_me:$LINENO: result: yes" >&5
5670echo "${ECHO_T}yes" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674 fi
5675
5676
5677 enablestring=
5678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5679echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5680 no_cache=0
5681 # Check whether --enable-sound or --disable-sound was given.
5682if test "${enable_sound+set}" = set; then
5683 enableval="$enable_sound"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_sound='wxUSE_SOUND=yes'
5687 else
5688 ac_cv_use_sound='wxUSE_SOUND=no'
5689 fi
5690
5691else
5692
5693 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5701
5702fi;
5703
5704 eval "$ac_cv_use_sound"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_SOUND" = yes; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711echo "${ECHO_T}yes" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715 fi
5716
5717
5718 enablestring=
5719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5720echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5721 no_cache=0
5722 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5723if test "${enable_wxprintfv+set}" = set; then
5724 enableval="$enable_wxprintfv"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5728 else
5729 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5742
5743fi;
5744
5745 eval "$ac_cv_use_wxprintfv"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752echo "${ECHO_T}yes" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756 fi
5757
5758
5759 enablestring=
5760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5761echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5762 no_cache=0
5763 # Check whether --enable-zipstream or --disable-zipstream was given.
5764if test "${enable_zipstream+set}" = set; then
5765 enableval="$enable_zipstream"
5766
5767 if test "$enableval" = yes; then
5768 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5769 else
5770 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5771 fi
5772
5773else
5774
5775 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5776 if test "x$LINE" != x ; then
5777 eval "DEFAULT_$LINE"
5778 else
5779 no_cache=1
5780 fi
5781
5782 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5783
5784fi;
5785
5786 eval "$ac_cv_use_zipstream"
5787 if test "$no_cache" != 1; then
5788 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5789 fi
5790
5791 if test "$wxUSE_ZIPSTREAM" = yes; then
5792 echo "$as_me:$LINENO: result: yes" >&5
5793echo "${ECHO_T}yes" >&6
5794 else
5795 echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797 fi
5798
5799
5800 enablestring=
5801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5802echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5803 no_cache=0
5804 # Check whether --enable-gzstream or --disable-gzstream was given.
5805if test "${enable_gzstream+set}" = set; then
5806 enableval="$enable_gzstream"
5807
5808 if test "$enableval" = yes; then
5809 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5810 else
5811 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5812 fi
5813
5814else
5815
5816 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 else
5820 no_cache=1
5821 fi
5822
5823 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5824
5825fi;
5826
5827 eval "$ac_cv_use_gzstream"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_GZSTREAM" = yes; then
5833 echo "$as_me:$LINENO: result: yes" >&5
5834echo "${ECHO_T}yes" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838 fi
5839
5840
5841
5842 enablestring=
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5845 no_cache=0
5846 # Check whether --enable-url or --disable-url was given.
5847if test "${enable_url+set}" = set; then
5848 enableval="$enable_url"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_url='wxUSE_URL=yes'
5852 else
5853 ac_cv_use_url='wxUSE_URL=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5866
5867fi;
5868
5869 eval "$ac_cv_use_url"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_URL" = yes; then
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880 fi
5881
5882
5883 enablestring=
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5886 no_cache=0
5887 # Check whether --enable-protocol or --disable-protocol was given.
5888if test "${enable_protocol+set}" = set; then
5889 enableval="$enable_protocol"
5890
5891 if test "$enableval" = yes; then
5892 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5893 else
5894 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5895 fi
5896
5897else
5898
5899 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5907
5908fi;
5909
5910 eval "$ac_cv_use_protocol"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_PROTOCOL" = yes; then
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924 enablestring=
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5927 no_cache=0
5928 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5929if test "${enable_protocol_http+set}" = set; then
5930 enableval="$enable_protocol_http"
5931
5932 if test "$enableval" = yes; then
5933 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5934 else
5935 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5936 fi
5937
5938else
5939
5940 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5948
5949fi;
5950
5951 eval "$ac_cv_use_protocol_http"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962 fi
5963
5964
5965 enablestring=
5966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5967echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5968 no_cache=0
5969 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5970if test "${enable_protocol_ftp+set}" = set; then
5971 enableval="$enable_protocol_ftp"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5975 else
5976 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5977 fi
5978
5979else
5980
5981 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5989
5990fi;
5991
5992 eval "$ac_cv_use_protocol_ftp"
5993 if test "$no_cache" != 1; then
5994 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5995 fi
5996
5997 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5998 echo "$as_me:$LINENO: result: yes" >&5
5999echo "${ECHO_T}yes" >&6
6000 else
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
6003 fi
6004
6005
6006 enablestring=
6007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6008echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6009 no_cache=0
6010 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6011if test "${enable_protocol_file+set}" = set; then
6012 enableval="$enable_protocol_file"
6013
6014 if test "$enableval" = yes; then
6015 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6016 else
6017 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6018 fi
6019
6020else
6021
6022 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
6029 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6030
6031fi;
6032
6033 eval "$ac_cv_use_protocol_file"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6039 echo "$as_me:$LINENO: result: yes" >&5
6040echo "${ECHO_T}yes" >&6
6041 else
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044 fi
6045
6046
6047
6048
6049
6050 enablestring=
6051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6052echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6053 no_cache=0
6054 # Check whether --enable-threads or --disable-threads was given.
6055if test "${enable_threads+set}" = set; then
6056 enableval="$enable_threads"
6057
6058 if test "$enableval" = yes; then
6059 ac_cv_use_threads='wxUSE_THREADS=yes'
6060 else
6061 ac_cv_use_threads='wxUSE_THREADS=no'
6062 fi
6063
6064else
6065
6066 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6067 if test "x$LINE" != x ; then
6068 eval "DEFAULT_$LINE"
6069 else
6070 no_cache=1
6071 fi
6072
6073 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6074
6075fi;
6076
6077 eval "$ac_cv_use_threads"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_THREADS" = yes; then
6083 echo "$as_me:$LINENO: result: yes" >&5
6084echo "${ECHO_T}yes" >&6
6085 else
6086 echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6
6088 fi
6089
6090
6091if test "$wxUSE_GUI" = "yes"; then
6092
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-docview or --disable-docview was given.
6100if test "${enable_docview+set}" = set; then
6101 enableval="$enable_docview"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6105 else
6106 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6119
6120fi;
6121
6122 eval "$ac_cv_use_docview"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-help or --disable-help was given.
6141if test "${enable_help+set}" = set; then
6142 enableval="$enable_help"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_help='wxUSE_HELP=yes'
6146 else
6147 ac_cv_use_help='wxUSE_HELP=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6160
6161fi;
6162
6163 eval "$ac_cv_use_help"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_HELP" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6182if test "${enable_mshtmlhelp+set}" = set; then
6183 enableval="$enable_mshtmlhelp"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6187 else
6188 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6201
6202fi;
6203
6204 eval "$ac_cv_use_mshtmlhelp"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_MS_HTML_HELP" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-html or --disable-html was given.
6223if test "${enable_html+set}" = set; then
6224 enableval="$enable_html"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_html='wxUSE_HTML=yes'
6228 else
6229 ac_cv_use_html='wxUSE_HTML=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6242
6243fi;
6244
6245 eval "$ac_cv_use_html"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_HTML" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6264if test "${enable_htmlhelp+set}" = set; then
6265 enableval="$enable_htmlhelp"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6269 else
6270 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6283
6284fi;
6285
6286 eval "$ac_cv_use_htmlhelp"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_WXHTML_HELP" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-constraints or --disable-constraints was given.
6305if test "${enable_constraints+set}" = set; then
6306 enableval="$enable_constraints"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6310 else
6311 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6324
6325fi;
6326
6327 eval "$ac_cv_use_constraints"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_CONSTRAINTS" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341 enablestring=
6342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6343echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6344 no_cache=0
6345 # Check whether --enable-printarch or --disable-printarch was given.
6346if test "${enable_printarch+set}" = set; then
6347 enableval="$enable_printarch"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6351 else
6352 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6365
6366fi;
6367
6368 eval "$ac_cv_use_printarch"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375echo "${ECHO_T}yes" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 fi
6380
6381
6382 enablestring=
6383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6384echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6385 no_cache=0
6386 # Check whether --enable-mdi or --disable-mdi was given.
6387if test "${enable_mdi+set}" = set; then
6388 enableval="$enable_mdi"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6392 else
6393 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6394 fi
6395
6396else
6397
6398 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6406
6407fi;
6408
6409 eval "$ac_cv_use_mdi"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6415 echo "$as_me:$LINENO: result: yes" >&5
6416echo "${ECHO_T}yes" >&6
6417 else
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420 fi
6421
6422
6423 enablestring=
6424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6425echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6426 no_cache=0
6427 # Check whether --enable-loggui or --disable-loggui was given.
6428if test "${enable_loggui+set}" = set; then
6429 enableval="$enable_loggui"
6430
6431 if test "$enableval" = yes; then
6432 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6433 else
6434 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6435 fi
6436
6437else
6438
6439 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6447
6448fi;
6449
6450 eval "$ac_cv_use_loggui"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6453 fi
6454
6455 if test "$wxUSE_LOGGUI" = yes; then
6456 echo "$as_me:$LINENO: result: yes" >&5
6457echo "${ECHO_T}yes" >&6
6458 else
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461 fi
6462
6463
6464 enablestring=
6465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6466echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6467 no_cache=0
6468 # Check whether --enable-logwin or --disable-logwin was given.
6469if test "${enable_logwin+set}" = set; then
6470 enableval="$enable_logwin"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6474 else
6475 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6476 fi
6477
6478else
6479
6480 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6488
6489fi;
6490
6491 eval "$ac_cv_use_logwin"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6494 fi
6495
6496 if test "$wxUSE_LOGWINDOW" = yes; then
6497 echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499 else
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
6502 fi
6503
6504
6505 enablestring=
6506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6507echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6508 no_cache=0
6509 # Check whether --enable-logdialog or --disable-logdialog was given.
6510if test "${enable_logdialog+set}" = set; then
6511 enableval="$enable_logdialog"
6512
6513 if test "$enableval" = yes; then
6514 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6515 else
6516 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6517 fi
6518
6519else
6520
6521 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6529
6530fi;
6531
6532 eval "$ac_cv_use_logdialog"
6533 if test "$no_cache" != 1; then
6534 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6535 fi
6536
6537 if test "$wxUSE_LOGDIALOG" = yes; then
6538 echo "$as_me:$LINENO: result: yes" >&5
6539echo "${ECHO_T}yes" >&6
6540 else
6541 echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543 fi
6544
6545
6546
6547 enablestring=
6548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6549echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6550 no_cache=0
6551 # Check whether --enable-postscript or --disable-postscript was given.
6552if test "${enable_postscript+set}" = set; then
6553 enableval="$enable_postscript"
6554
6555 if test "$enableval" = yes; then
6556 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6557 else
6558 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6559 fi
6560
6561else
6562
6563 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6564 if test "x$LINE" != x ; then
6565 eval "DEFAULT_$LINE"
6566 else
6567 no_cache=1
6568 fi
6569
6570 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6571
6572fi;
6573
6574 eval "$ac_cv_use_postscript"
6575 if test "$no_cache" != 1; then
6576 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6577 fi
6578
6579 if test "$wxUSE_POSTSCRIPT" = yes; then
6580 echo "$as_me:$LINENO: result: yes" >&5
6581echo "${ECHO_T}yes" >&6
6582 else
6583 echo "$as_me:$LINENO: result: no" >&5
6584echo "${ECHO_T}no" >&6
6585 fi
6586
6587
6588
6589
6590
6591 enablestring=
6592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6593echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6594 no_cache=0
6595 # Check whether --enable-prologio or --disable-prologio was given.
6596if test "${enable_prologio+set}" = set; then
6597 enableval="$enable_prologio"
6598
6599 if test "$enableval" = yes; then
6600 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6601 else
6602 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6603 fi
6604
6605else
6606
6607 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6608 if test "x$LINE" != x ; then
6609 eval "DEFAULT_$LINE"
6610 else
6611 no_cache=1
6612 fi
6613
6614 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6615
6616fi;
6617
6618 eval "$ac_cv_use_prologio"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_PROLOGIO" = yes; then
6624 echo "$as_me:$LINENO: result: yes" >&5
6625echo "${ECHO_T}yes" >&6
6626 else
6627 echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
6629 fi
6630
6631
6632 enablestring=
6633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6634echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6635 no_cache=0
6636 # Check whether --enable-resources or --disable-resources was given.
6637if test "${enable_resources+set}" = set; then
6638 enableval="$enable_resources"
6639
6640 if test "$enableval" = yes; then
6641 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6642 else
6643 ac_cv_use_resources='wxUSE_RESOURCES=no'
6644 fi
6645
6646else
6647
6648 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6649 if test "x$LINE" != x ; then
6650 eval "DEFAULT_$LINE"
6651 else
6652 no_cache=1
6653 fi
6654
6655 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6656
6657fi;
6658
6659 eval "$ac_cv_use_resources"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_RESOURCES" = yes; then
6665 echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6
6667 else
6668 echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6
6670 fi
6671
6672
6673
6674
6675 enablestring=
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6678 no_cache=0
6679 # Check whether --enable-clipboard or --disable-clipboard was given.
6680if test "${enable_clipboard+set}" = set; then
6681 enableval="$enable_clipboard"
6682
6683 if test "$enableval" = yes; then
6684 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6685 else
6686 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6687 fi
6688
6689else
6690
6691 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6699
6700fi;
6701
6702 eval "$ac_cv_use_clipboard"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_CLIPBOARD" = yes; then
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
6710 else
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
6713 fi
6714
6715
6716 enablestring=
6717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6718echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6719 no_cache=0
6720 # Check whether --enable-dnd or --disable-dnd was given.
6721if test "${enable_dnd+set}" = set; then
6722 enableval="$enable_dnd"
6723
6724 if test "$enableval" = yes; then
6725 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6726 else
6727 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6728 fi
6729
6730else
6731
6732 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6733 if test "x$LINE" != x ; then
6734 eval "DEFAULT_$LINE"
6735 else
6736 no_cache=1
6737 fi
6738
6739 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6740
6741fi;
6742
6743 eval "$ac_cv_use_dnd"
6744 if test "$no_cache" != 1; then
6745 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6746 fi
6747
6748 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6749 echo "$as_me:$LINENO: result: yes" >&5
6750echo "${ECHO_T}yes" >&6
6751 else
6752 echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6
6754 fi
6755
6756
6757 enablestring=
6758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6759echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6760 no_cache=0
6761 # Check whether --enable-metafile or --disable-metafile was given.
6762if test "${enable_metafile+set}" = set; then
6763 enableval="$enable_metafile"
6764
6765 if test "$enableval" = yes; then
6766 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6767 else
6768 ac_cv_use_metafile='wxUSE_METAFILE=no'
6769 fi
6770
6771else
6772
6773 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6774 if test "x$LINE" != x ; then
6775 eval "DEFAULT_$LINE"
6776 else
6777 no_cache=1
6778 fi
6779
6780 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6781
6782fi;
6783
6784 eval "$ac_cv_use_metafile"
6785 if test "$no_cache" != 1; then
6786 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6787 fi
6788
6789 if test "$wxUSE_METAFILE" = yes; then
6790 echo "$as_me:$LINENO: result: yes" >&5
6791echo "${ECHO_T}yes" >&6
6792 else
6793 echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
6795 fi
6796
6797
6798
6799
6800
6801 enablestring=
6802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6803echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6804 no_cache=0
6805 # Check whether --enable-controls or --disable-controls was given.
6806if test "${enable_controls+set}" = set; then
6807 enableval="$enable_controls"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6811 else
6812 ac_cv_use_controls='wxUSE_CONTROLS=no'
6813 fi
6814
6815else
6816
6817 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6825
6826fi;
6827
6828 eval "$ac_cv_use_controls"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6831 fi
6832
6833 if test "$wxUSE_CONTROLS" = yes; then
6834 echo "$as_me:$LINENO: result: yes" >&5
6835echo "${ECHO_T}yes" >&6
6836 else
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
6839 fi
6840
6841
6842if test "$wxUSE_CONTROLS" = "yes"; then
6843 DEFAULT_wxUSE_ACCEL=yes
6844 DEFAULT_wxUSE_BMPBUTTON=yes
6845 DEFAULT_wxUSE_BUTTON=yes
6846 DEFAULT_wxUSE_CALCTRL=no
6847 DEFAULT_wxUSE_CARET=yes
6848 DEFAULT_wxUSE_COMBOBOX=yes
6849 DEFAULT_wxUSE_CHECKBOX=yes
6850 DEFAULT_wxUSE_CHECKLISTBOX=yes
6851 DEFAULT_wxUSE_CHOICE=yes
6852 DEFAULT_wxUSE_GAUGE=yes
6853 DEFAULT_wxUSE_GRID=yes
6854 DEFAULT_wxUSE_IMAGLIST=yes
6855 DEFAULT_wxUSE_LISTBOOK=yes
6856 DEFAULT_wxUSE_LISTBOX=yes
6857 DEFAULT_wxUSE_LISTCTRL=yes
6858 DEFAULT_wxUSE_NOTEBOOK=yes
6859 DEFAULT_wxUSE_RADIOBOX=yes
6860 DEFAULT_wxUSE_RADIOBTN=yes
6861 DEFAULT_wxUSE_SASH=yes
6862 DEFAULT_wxUSE_SCROLLBAR=yes
6863 DEFAULT_wxUSE_SLIDER=yes
6864 DEFAULT_wxUSE_SPINBTN=yes
6865 DEFAULT_wxUSE_SPINCTRL=yes
6866 DEFAULT_wxUSE_SPLITTER=yes
6867 DEFAULT_wxUSE_STATBMP=yes
6868 DEFAULT_wxUSE_STATBOX=yes
6869 DEFAULT_wxUSE_STATLINE=yes
6870 DEFAULT_wxUSE_STATUSBAR=yes
6871 DEFAULT_wxUSE_TAB_DIALOG=yes
6872 DEFAULT_wxUSE_TOGGLEBTN=yes
6873 DEFAULT_wxUSE_TOOLBAR=yes
6874 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6875 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6876 DEFAULT_wxUSE_TOOLTIPS=yes
6877 DEFAULT_wxUSE_TREECTRL=yes
6878 DEFAULT_wxUSE_POPUPWIN=yes
6879 DEFAULT_wxUSE_TIPWINDOW=yes
6880elif test "$wxUSE_CONTROLS" = "no"; then
6881 DEFAULT_wxUSE_ACCEL=no
6882 DEFAULT_wxUSE_BMPBUTTON=no
6883 DEFAULT_wxUSE_BUTTON=no
6884 DEFAULT_wxUSE_CALCTRL=no
6885 DEFAULT_wxUSE_CARET=no
6886 DEFAULT_wxUSE_COMBOBOX=no
6887 DEFAULT_wxUSE_CHECKBOX=no
6888 DEFAULT_wxUSE_CHECKLISTBOX=no
6889 DEFAULT_wxUSE_CHOICE=no
6890 DEFAULT_wxUSE_GAUGE=no
6891 DEFAULT_wxUSE_GRID=no
6892 DEFAULT_wxUSE_IMAGLIST=no
6893 DEFAULT_wxUSE_LISTBOOK=no
6894 DEFAULT_wxUSE_LISTBOX=no
6895 DEFAULT_wxUSE_LISTCTRL=no
6896 DEFAULT_wxUSE_NOTEBOOK=no
6897 DEFAULT_wxUSE_RADIOBOX=no
6898 DEFAULT_wxUSE_RADIOBTN=no
6899 DEFAULT_wxUSE_SASH=no
6900 DEFAULT_wxUSE_SCROLLBAR=no
6901 DEFAULT_wxUSE_SLIDER=no
6902 DEFAULT_wxUSE_SPINBTN=no
6903 DEFAULT_wxUSE_SPINCTRL=no
6904 DEFAULT_wxUSE_SPLITTER=no
6905 DEFAULT_wxUSE_STATBMP=no
6906 DEFAULT_wxUSE_STATBOX=no
6907 DEFAULT_wxUSE_STATLINE=no
6908 DEFAULT_wxUSE_STATUSBAR=no
6909 DEFAULT_wxUSE_TAB_DIALOG=no
6910 DEFAULT_wxUSE_TOGGLEBTN=no
6911 DEFAULT_wxUSE_TOOLBAR=no
6912 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6913 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6914 DEFAULT_wxUSE_TOOLTIPS=no
6915 DEFAULT_wxUSE_TREECTRL=no
6916 DEFAULT_wxUSE_POPUPWIN=no
6917 DEFAULT_wxUSE_TIPWINDOW=no
6918fi
6919
6920## FIXME: This is a blatant hack
6921if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6922 wxUSE_PRINTING_ARCHITECTURE=no
6923 wxUSE_DRAG_AND_DROP=no
6924 # Generic notebook requires tab dialog
6925 DEFAULT_wxUSE_TABDIALOG=yes
6926 DEFAULT_wxUSE_SCROLLBAR=no
6927 DEFAULT_wxUSE_TOOLTIPS=no
6928 DEFAULT_wxUSE_DRAGIMAGE=no
6929fi
6930
6931
6932 enablestring=
6933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6934echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6935 no_cache=0
6936 # Check whether --enable-accel or --disable-accel was given.
6937if test "${enable_accel+set}" = set; then
6938 enableval="$enable_accel"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_accel='wxUSE_ACCEL=yes'
6942 else
6943 ac_cv_use_accel='wxUSE_ACCEL=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6956
6957fi;
6958
6959 eval "$ac_cv_use_accel"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_ACCEL" = yes; then
6965 echo "$as_me:$LINENO: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
6967 else
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970 fi
6971
6972
6973 enablestring=
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-button or --disable-button was given.
6978if test "${enable_button+set}" = set; then
6979 enableval="$enable_button"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_button='wxUSE_BUTTON=yes'
6983 else
6984 ac_cv_use_button='wxUSE_BUTTON=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6997
6998fi;
6999
7000 eval "$ac_cv_use_button"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_BUTTON" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7019if test "${enable_bmpbutton+set}" = set; then
7020 enableval="$enable_bmpbutton"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7024 else
7025 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7038
7039fi;
7040
7041 eval "$ac_cv_use_bmpbutton"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_BMPBUTTON" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
7055 enablestring=
7056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7057echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7058 no_cache=0
7059 # Check whether --enable-calendar or --disable-calendar was given.
7060if test "${enable_calendar+set}" = set; then
7061 enableval="$enable_calendar"
7062
7063 if test "$enableval" = yes; then
7064 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7065 else
7066 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7067 fi
7068
7069else
7070
7071 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7072 if test "x$LINE" != x ; then
7073 eval "DEFAULT_$LINE"
7074 else
7075 no_cache=1
7076 fi
7077
7078 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7079
7080fi;
7081
7082 eval "$ac_cv_use_calendar"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_CALCTRL" = yes; then
7088 echo "$as_me:$LINENO: result: yes" >&5
7089echo "${ECHO_T}yes" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093 fi
7094
7095
7096 enablestring=
7097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7098echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7099 no_cache=0
7100 # Check whether --enable-caret or --disable-caret was given.
7101if test "${enable_caret+set}" = set; then
7102 enableval="$enable_caret"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_caret='wxUSE_CARET=yes'
7106 else
7107 ac_cv_use_caret='wxUSE_CARET=no'
7108 fi
7109
7110else
7111
7112 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7120
7121fi;
7122
7123 eval "$ac_cv_use_caret"
7124 if test "$no_cache" != 1; then
7125 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7126 fi
7127
7128 if test "$wxUSE_CARET" = yes; then
7129 echo "$as_me:$LINENO: result: yes" >&5
7130echo "${ECHO_T}yes" >&6
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6
7134 fi
7135
7136
7137 enablestring=
7138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7139echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7140 no_cache=0
7141 # Check whether --enable-checkbox or --disable-checkbox was given.
7142if test "${enable_checkbox+set}" = set; then
7143 enableval="$enable_checkbox"
7144
7145 if test "$enableval" = yes; then
7146 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7147 else
7148 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7149 fi
7150
7151else
7152
7153 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7154 if test "x$LINE" != x ; then
7155 eval "DEFAULT_$LINE"
7156 else
7157 no_cache=1
7158 fi
7159
7160 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7161
7162fi;
7163
7164 eval "$ac_cv_use_checkbox"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_CHECKBOX" = yes; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171echo "${ECHO_T}yes" >&6
7172 else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175 fi
7176
7177
7178 enablestring=
7179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7180echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7181 no_cache=0
7182 # Check whether --enable-checklst or --disable-checklst was given.
7183if test "${enable_checklst+set}" = set; then
7184 enableval="$enable_checklst"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7188 else
7189 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7202
7203fi;
7204
7205 eval "$ac_cv_use_checklst"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_CHECKLST" = yes; then
7211 echo "$as_me:$LINENO: result: yes" >&5
7212echo "${ECHO_T}yes" >&6
7213 else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 fi
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-choice or --disable-choice was given.
7224if test "${enable_choice+set}" = set; then
7225 enableval="$enable_choice"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_choice='wxUSE_CHOICE=yes'
7229 else
7230 ac_cv_use_choice='wxUSE_CHOICE=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7243
7244fi;
7245
7246 eval "$ac_cv_use_choice"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_CHOICE" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260 enablestring=
7261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7262echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7263 no_cache=0
7264 # Check whether --enable-combobox or --disable-combobox was given.
7265if test "${enable_combobox+set}" = set; then
7266 enableval="$enable_combobox"
7267
7268 if test "$enableval" = yes; then
7269 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7270 else
7271 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7272 fi
7273
7274else
7275
7276 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7277 if test "x$LINE" != x ; then
7278 eval "DEFAULT_$LINE"
7279 else
7280 no_cache=1
7281 fi
7282
7283 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7284
7285fi;
7286
7287 eval "$ac_cv_use_combobox"
7288 if test "$no_cache" != 1; then
7289 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7290 fi
7291
7292 if test "$wxUSE_COMBOBOX" = yes; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294echo "${ECHO_T}yes" >&6
7295 else
7296 echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6
7298 fi
7299
7300
7301 enablestring=
7302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7303echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7304 no_cache=0
7305 # Check whether --enable-display or --disable-display was given.
7306if test "${enable_display+set}" = set; then
7307 enableval="$enable_display"
7308
7309 if test "$enableval" = yes; then
7310 ac_cv_use_display='wxUSE_DISPLAY=yes'
7311 else
7312 ac_cv_use_display='wxUSE_DISPLAY=no'
7313 fi
7314
7315else
7316
7317 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7318 if test "x$LINE" != x ; then
7319 eval "DEFAULT_$LINE"
7320 else
7321 no_cache=1
7322 fi
7323
7324 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7325
7326fi;
7327
7328 eval "$ac_cv_use_display"
7329 if test "$no_cache" != 1; then
7330 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7331 fi
7332
7333 if test "$wxUSE_DISPLAY" = yes; then
7334 echo "$as_me:$LINENO: result: yes" >&5
7335echo "${ECHO_T}yes" >&6
7336 else
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339 fi
7340
7341
7342 enablestring=
7343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7344echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7345 no_cache=0
7346 # Check whether --enable-gauge or --disable-gauge was given.
7347if test "${enable_gauge+set}" = set; then
7348 enableval="$enable_gauge"
7349
7350 if test "$enableval" = yes; then
7351 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7352 else
7353 ac_cv_use_gauge='wxUSE_GAUGE=no'
7354 fi
7355
7356else
7357
7358 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7359 if test "x$LINE" != x ; then
7360 eval "DEFAULT_$LINE"
7361 else
7362 no_cache=1
7363 fi
7364
7365 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7366
7367fi;
7368
7369 eval "$ac_cv_use_gauge"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_GAUGE" = yes; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376echo "${ECHO_T}yes" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380 fi
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-grid or --disable-grid was given.
7388if test "${enable_grid+set}" = set; then
7389 enableval="$enable_grid"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_grid='wxUSE_GRID=yes'
7393 else
7394 ac_cv_use_grid='wxUSE_GRID=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7407
7408fi;
7409
7410 eval "$ac_cv_use_grid"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_GRID" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-imaglist or --disable-imaglist was given.
7429if test "${enable_imaglist+set}" = set; then
7430 enableval="$enable_imaglist"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7434 else
7435 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7448
7449fi;
7450
7451 eval "$ac_cv_use_imaglist"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_IMAGLIST" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-listbook or --disable-listbook was given.
7470if test "${enable_listbook+set}" = set; then
7471 enableval="$enable_listbook"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7475 else
7476 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7489
7490fi;
7491
7492 eval "$ac_cv_use_listbook"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_LISTBOOK" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506 enablestring=
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-listbox or --disable-listbox was given.
7511if test "${enable_listbox+set}" = set; then
7512 enableval="$enable_listbox"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7516 else
7517 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7530
7531fi;
7532
7533 eval "$ac_cv_use_listbox"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_LISTBOX" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
7547 enablestring=
7548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7549echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7550 no_cache=0
7551 # Check whether --enable-listctrl or --disable-listctrl was given.
7552if test "${enable_listctrl+set}" = set; then
7553 enableval="$enable_listctrl"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7557 else
7558 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7571
7572fi;
7573
7574 eval "$ac_cv_use_listctrl"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_LISTCTRL" = yes; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581echo "${ECHO_T}yes" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585 fi
7586
7587
7588 enablestring=
7589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7590echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7591 no_cache=0
7592 # Check whether --enable-notebook or --disable-notebook was given.
7593if test "${enable_notebook+set}" = set; then
7594 enableval="$enable_notebook"
7595
7596 if test "$enableval" = yes; then
7597 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7598 else
7599 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7600 fi
7601
7602else
7603
7604 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7605 if test "x$LINE" != x ; then
7606 eval "DEFAULT_$LINE"
7607 else
7608 no_cache=1
7609 fi
7610
7611 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7612
7613fi;
7614
7615 eval "$ac_cv_use_notebook"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_NOTEBOOK" = yes; then
7621 echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626 fi
7627
7628
7629 enablestring=
7630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7631echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7632 no_cache=0
7633 # Check whether --enable-radiobox or --disable-radiobox was given.
7634if test "${enable_radiobox+set}" = set; then
7635 enableval="$enable_radiobox"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7639 else
7640 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7641 fi
7642
7643else
7644
7645 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7653
7654fi;
7655
7656 eval "$ac_cv_use_radiobox"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_RADIOBOX" = yes; then
7662 echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6
7664 else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667 fi
7668
7669
7670 enablestring=
7671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7672echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7673 no_cache=0
7674 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7675if test "${enable_radiobtn+set}" = set; then
7676 enableval="$enable_radiobtn"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7680 else
7681 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7682 fi
7683
7684else
7685
7686 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7694
7695fi;
7696
7697 eval "$ac_cv_use_radiobtn"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_RADIOBTN" = yes; then
7703 echo "$as_me:$LINENO: result: yes" >&5
7704echo "${ECHO_T}yes" >&6
7705 else
7706 echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6
7708 fi
7709
7710
7711 enablestring=
7712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7713echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7714 no_cache=0
7715 # Check whether --enable-sash or --disable-sash was given.
7716if test "${enable_sash+set}" = set; then
7717 enableval="$enable_sash"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_sash='wxUSE_SASH=yes'
7721 else
7722 ac_cv_use_sash='wxUSE_SASH=no'
7723 fi
7724
7725else
7726
7727 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7735
7736fi;
7737
7738 eval "$ac_cv_use_sash"
7739 if test "$no_cache" != 1; then
7740 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7741 fi
7742
7743 if test "$wxUSE_SASH" = yes; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749 fi
7750
7751
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7757if test "${enable_scrollbar+set}" = set; then
7758 enableval="$enable_scrollbar"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7762 else
7763 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7776
7777fi;
7778
7779 eval "$ac_cv_use_scrollbar"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_SCROLLBAR" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-slider or --disable-slider was given.
7798if test "${enable_slider+set}" = set; then
7799 enableval="$enable_slider"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_slider='wxUSE_SLIDER=yes'
7803 else
7804 ac_cv_use_slider='wxUSE_SLIDER=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7817
7818fi;
7819
7820 eval "$ac_cv_use_slider"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_SLIDER" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7839if test "${enable_spinbtn+set}" = set; then
7840 enableval="$enable_spinbtn"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7844 else
7845 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7858
7859fi;
7860
7861 eval "$ac_cv_use_spinbtn"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_SPINBTN" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875 enablestring=
7876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7877echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7878 no_cache=0
7879 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7880if test "${enable_spinctrl+set}" = set; then
7881 enableval="$enable_spinctrl"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7885 else
7886 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7899
7900fi;
7901
7902 eval "$ac_cv_use_spinctrl"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_SPINCTRL" = yes; then
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
7910 else
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913 fi
7914
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-splitter or --disable-splitter was given.
7921if test "${enable_splitter+set}" = set; then
7922 enableval="$enable_splitter"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7926 else
7927 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7940
7941fi;
7942
7943 eval "$ac_cv_use_splitter"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_SPLITTER" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-statbmp or --disable-statbmp was given.
7962if test "${enable_statbmp+set}" = set; then
7963 enableval="$enable_statbmp"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7967 else
7968 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7981
7982fi;
7983
7984 eval "$ac_cv_use_statbmp"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_STATBMP" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-statbox or --disable-statbox was given.
8003if test "${enable_statbox+set}" = set; then
8004 enableval="$enable_statbox"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8008 else
8009 ac_cv_use_statbox='wxUSE_STATBOX=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8022
8023fi;
8024
8025 eval "$ac_cv_use_statbox"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_STATBOX" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-statline or --disable-statline was given.
8044if test "${enable_statline+set}" = set; then
8045 enableval="$enable_statline"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_statline='wxUSE_STATLINE=yes'
8049 else
8050 ac_cv_use_statline='wxUSE_STATLINE=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8063
8064fi;
8065
8066 eval "$ac_cv_use_statline"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_STATLINE" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-stattext or --disable-stattext was given.
8085if test "${enable_stattext+set}" = set; then
8086 enableval="$enable_stattext"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8090 else
8091 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8104
8105fi;
8106
8107 eval "$ac_cv_use_stattext"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_STATTEXT" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-statusbar or --disable-statusbar was given.
8126if test "${enable_statusbar+set}" = set; then
8127 enableval="$enable_statusbar"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8131 else
8132 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8145
8146fi;
8147
8148 eval "$ac_cv_use_statusbar"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_STATUSBAR" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8167if test "${enable_tabdialog+set}" = set; then
8168 enableval="$enable_tabdialog"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8172 else
8173 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8186
8187fi;
8188
8189 eval "$ac_cv_use_tabdialog"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_TABDIALOG" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-textctrl or --disable-textctrl was given.
8208if test "${enable_textctrl+set}" = set; then
8209 enableval="$enable_textctrl"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8213 else
8214 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8227
8228fi;
8229
8230 eval "$ac_cv_use_textctrl"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_TEXTCTRL" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8249if test "${enable_togglebtn+set}" = set; then
8250 enableval="$enable_togglebtn"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8254 else
8255 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8268
8269fi;
8270
8271 eval "$ac_cv_use_togglebtn"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_TOGGLEBTN" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-toolbar or --disable-toolbar was given.
8290if test "${enable_toolbar+set}" = set; then
8291 enableval="$enable_toolbar"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8295 else
8296 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8309
8310fi;
8311
8312 eval "$ac_cv_use_toolbar"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_TOOLBAR" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8331if test "${enable_tbarnative+set}" = set; then
8332 enableval="$enable_tbarnative"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8336 else
8337 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8350
8351fi;
8352
8353 eval "$ac_cv_use_tbarnative"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8372if test "${enable_tbarsmpl+set}" = set; then
8373 enableval="$enable_tbarsmpl"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8377 else
8378 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8391
8392fi;
8393
8394 eval "$ac_cv_use_tbarsmpl"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-treectrl or --disable-treectrl was given.
8413if test "${enable_treectrl+set}" = set; then
8414 enableval="$enable_treectrl"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8418 else
8419 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8432
8433fi;
8434
8435 eval "$ac_cv_use_treectrl"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_TREECTRL" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
8449 enablestring=
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8452 no_cache=0
8453 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8454if test "${enable_tipwindow+set}" = set; then
8455 enableval="$enable_tipwindow"
8456
8457 if test "$enableval" = yes; then
8458 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8459 else
8460 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8461 fi
8462
8463else
8464
8465 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
8472 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8473
8474fi;
8475
8476 eval "$ac_cv_use_tipwindow"
8477 if test "$no_cache" != 1; then
8478 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8479 fi
8480
8481 if test "$wxUSE_TIPWINDOW" = yes; then
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
8490 enablestring=
8491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8492echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8493 no_cache=0
8494 # Check whether --enable-popupwin or --disable-popupwin was given.
8495if test "${enable_popupwin+set}" = set; then
8496 enableval="$enable_popupwin"
8497
8498 if test "$enableval" = yes; then
8499 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8500 else
8501 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8502 fi
8503
8504else
8505
8506 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8514
8515fi;
8516
8517 eval "$ac_cv_use_popupwin"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_POPUPWIN" = yes; then
8523 echo "$as_me:$LINENO: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
8525 else
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
8528 fi
8529
8530
8531
8532
8533 enablestring=
8534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8535echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8536 no_cache=0
8537 # Check whether --enable-commondlg or --disable-commondlg was given.
8538if test "${enable_commondlg+set}" = set; then
8539 enableval="$enable_commondlg"
8540
8541 if test "$enableval" = yes; then
8542 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8543 else
8544 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8545 fi
8546
8547else
8548
8549 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8550 if test "x$LINE" != x ; then
8551 eval "DEFAULT_$LINE"
8552 else
8553 no_cache=1
8554 fi
8555
8556 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8557
8558fi;
8559
8560 eval "$ac_cv_use_commondlg"
8561 if test "$no_cache" != 1; then
8562 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8563 fi
8564
8565 if test "$wxUSE_COMMONDLGS" = yes; then
8566 echo "$as_me:$LINENO: result: yes" >&5
8567echo "${ECHO_T}yes" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6
8571 fi
8572
8573
8574 enablestring=
8575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8576echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8577 no_cache=0
8578 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8579if test "${enable_choicedlg+set}" = set; then
8580 enableval="$enable_choicedlg"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8584 else
8585 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8598
8599fi;
8600
8601 eval "$ac_cv_use_choicedlg"
8602 if test "$no_cache" != 1; then
8603 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8604 fi
8605
8606 if test "$wxUSE_CHOICEDLG" = yes; then
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612 fi
8613
8614
8615 enablestring=
8616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8617echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8618 no_cache=0
8619 # Check whether --enable-coldlg or --disable-coldlg was given.
8620if test "${enable_coldlg+set}" = set; then
8621 enableval="$enable_coldlg"
8622
8623 if test "$enableval" = yes; then
8624 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8625 else
8626 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8627 fi
8628
8629else
8630
8631 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8632 if test "x$LINE" != x ; then
8633 eval "DEFAULT_$LINE"
8634 else
8635 no_cache=1
8636 fi
8637
8638 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8639
8640fi;
8641
8642 eval "$ac_cv_use_coldlg"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_COLOURDLG" = yes; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649echo "${ECHO_T}yes" >&6
8650 else
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
8653 fi
8654
8655
8656 enablestring=
8657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8658echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8659 no_cache=0
8660 # Check whether --enable-filedlg or --disable-filedlg was given.
8661if test "${enable_filedlg+set}" = set; then
8662 enableval="$enable_filedlg"
8663
8664 if test "$enableval" = yes; then
8665 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8666 else
8667 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8668 fi
8669
8670else
8671
8672 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8673 if test "x$LINE" != x ; then
8674 eval "DEFAULT_$LINE"
8675 else
8676 no_cache=1
8677 fi
8678
8679 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8680
8681fi;
8682
8683 eval "$ac_cv_use_filedlg"
8684 if test "$no_cache" != 1; then
8685 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8686 fi
8687
8688 if test "$wxUSE_FILEDLG" = yes; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690echo "${ECHO_T}yes" >&6
8691 else
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
8694 fi
8695
8696
8697 enablestring=
8698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8699echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8700 no_cache=0
8701 # Check whether --enable-finddlg or --disable-finddlg was given.
8702if test "${enable_finddlg+set}" = set; then
8703 enableval="$enable_finddlg"
8704
8705 if test "$enableval" = yes; then
8706 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8707 else
8708 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8709 fi
8710
8711else
8712
8713 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8714 if test "x$LINE" != x ; then
8715 eval "DEFAULT_$LINE"
8716 else
8717 no_cache=1
8718 fi
8719
8720 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8721
8722fi;
8723
8724 eval "$ac_cv_use_finddlg"
8725 if test "$no_cache" != 1; then
8726 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8727 fi
8728
8729 if test "$wxUSE_FINDREPLDLG" = yes; then
8730 echo "$as_me:$LINENO: result: yes" >&5
8731echo "${ECHO_T}yes" >&6
8732 else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735 fi
8736
8737
8738 enablestring=
8739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8740echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8741 no_cache=0
8742 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8743if test "${enable_fontdlg+set}" = set; then
8744 enableval="$enable_fontdlg"
8745
8746 if test "$enableval" = yes; then
8747 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8748 else
8749 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8750 fi
8751
8752else
8753
8754 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8755 if test "x$LINE" != x ; then
8756 eval "DEFAULT_$LINE"
8757 else
8758 no_cache=1
8759 fi
8760
8761 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8762
8763fi;
8764
8765 eval "$ac_cv_use_fontdlg"
8766 if test "$no_cache" != 1; then
8767 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8768 fi
8769
8770 if test "$wxUSE_FONTDLG" = yes; then
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776 fi
8777
8778
8779 enablestring=
8780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8781echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8782 no_cache=0
8783 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8784if test "${enable_dirdlg+set}" = set; then
8785 enableval="$enable_dirdlg"
8786
8787 if test "$enableval" = yes; then
8788 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8789 else
8790 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8791 fi
8792
8793else
8794
8795 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8796 if test "x$LINE" != x ; then
8797 eval "DEFAULT_$LINE"
8798 else
8799 no_cache=1
8800 fi
8801
8802 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8803
8804fi;
8805
8806 eval "$ac_cv_use_dirdlg"
8807 if test "$no_cache" != 1; then
8808 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8809 fi
8810
8811 if test "$wxUSE_DIRDLG" = yes; then
8812 echo "$as_me:$LINENO: result: yes" >&5
8813echo "${ECHO_T}yes" >&6
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
8817 fi
8818
8819
8820 enablestring=
8821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8822echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8823 no_cache=0
8824 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8825if test "${enable_msgdlg+set}" = set; then
8826 enableval="$enable_msgdlg"
8827
8828 if test "$enableval" = yes; then
8829 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8830 else
8831 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8832 fi
8833
8834else
8835
8836 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8837 if test "x$LINE" != x ; then
8838 eval "DEFAULT_$LINE"
8839 else
8840 no_cache=1
8841 fi
8842
8843 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8844
8845fi;
8846
8847 eval "$ac_cv_use_msgdlg"
8848 if test "$no_cache" != 1; then
8849 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8850 fi
8851
8852 if test "$wxUSE_MSGDLG" = yes; then
8853 echo "$as_me:$LINENO: result: yes" >&5
8854echo "${ECHO_T}yes" >&6
8855 else
8856 echo "$as_me:$LINENO: result: no" >&5
8857echo "${ECHO_T}no" >&6
8858 fi
8859
8860
8861 enablestring=
8862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8863echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8864 no_cache=0
8865 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8866if test "${enable_numberdlg+set}" = set; then
8867 enableval="$enable_numberdlg"
8868
8869 if test "$enableval" = yes; then
8870 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8871 else
8872 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8873 fi
8874
8875else
8876
8877 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8878 if test "x$LINE" != x ; then
8879 eval "DEFAULT_$LINE"
8880 else
8881 no_cache=1
8882 fi
8883
8884 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8885
8886fi;
8887
8888 eval "$ac_cv_use_numberdlg"
8889 if test "$no_cache" != 1; then
8890 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8891 fi
8892
8893 if test "$wxUSE_NUMBERDLG" = yes; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895echo "${ECHO_T}yes" >&6
8896 else
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
8899 fi
8900
8901
8902 enablestring=
8903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8904echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8905 no_cache=0
8906 # Check whether --enable-splash or --disable-splash was given.
8907if test "${enable_splash+set}" = set; then
8908 enableval="$enable_splash"
8909
8910 if test "$enableval" = yes; then
8911 ac_cv_use_splash='wxUSE_SPLASH=yes'
8912 else
8913 ac_cv_use_splash='wxUSE_SPLASH=no'
8914 fi
8915
8916else
8917
8918 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8919 if test "x$LINE" != x ; then
8920 eval "DEFAULT_$LINE"
8921 else
8922 no_cache=1
8923 fi
8924
8925 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8926
8927fi;
8928
8929 eval "$ac_cv_use_splash"
8930 if test "$no_cache" != 1; then
8931 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8932 fi
8933
8934 if test "$wxUSE_SPLASH" = yes; then
8935 echo "$as_me:$LINENO: result: yes" >&5
8936echo "${ECHO_T}yes" >&6
8937 else
8938 echo "$as_me:$LINENO: result: no" >&5
8939echo "${ECHO_T}no" >&6
8940 fi
8941
8942
8943 enablestring=
8944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8945echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8946 no_cache=0
8947 # Check whether --enable-textdlg or --disable-textdlg was given.
8948if test "${enable_textdlg+set}" = set; then
8949 enableval="$enable_textdlg"
8950
8951 if test "$enableval" = yes; then
8952 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8953 else
8954 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8955 fi
8956
8957else
8958
8959 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8960 if test "x$LINE" != x ; then
8961 eval "DEFAULT_$LINE"
8962 else
8963 no_cache=1
8964 fi
8965
8966 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8967
8968fi;
8969
8970 eval "$ac_cv_use_textdlg"
8971 if test "$no_cache" != 1; then
8972 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8973 fi
8974
8975 if test "$wxUSE_TEXTDLG" = yes; then
8976 echo "$as_me:$LINENO: result: yes" >&5
8977echo "${ECHO_T}yes" >&6
8978 else
8979 echo "$as_me:$LINENO: result: no" >&5
8980echo "${ECHO_T}no" >&6
8981 fi
8982
8983
8984 enablestring=
8985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8986echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8987 no_cache=0
8988 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8989if test "${enable_tipdlg+set}" = set; then
8990 enableval="$enable_tipdlg"
8991
8992 if test "$enableval" = yes; then
8993 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8994 else
8995 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8996 fi
8997
8998else
8999
9000 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9001 if test "x$LINE" != x ; then
9002 eval "DEFAULT_$LINE"
9003 else
9004 no_cache=1
9005 fi
9006
9007 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9008
9009fi;
9010
9011 eval "$ac_cv_use_tipdlg"
9012 if test "$no_cache" != 1; then
9013 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9014 fi
9015
9016 if test "$wxUSE_STARTUP_TIPS" = yes; then
9017 echo "$as_me:$LINENO: result: yes" >&5
9018echo "${ECHO_T}yes" >&6
9019 else
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022 fi
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9030if test "${enable_progressdlg+set}" = set; then
9031 enableval="$enable_progressdlg"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9035 else
9036 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9049
9050fi;
9051
9052 eval "$ac_cv_use_progressdlg"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_PROGRESSDLG" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066 enablestring=
9067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9068echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9069 no_cache=0
9070 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9071if test "${enable_wizarddlg+set}" = set; then
9072 enableval="$enable_wizarddlg"
9073
9074 if test "$enableval" = yes; then
9075 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9076 else
9077 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9078 fi
9079
9080else
9081
9082 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9083 if test "x$LINE" != x ; then
9084 eval "DEFAULT_$LINE"
9085 else
9086 no_cache=1
9087 fi
9088
9089 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9090
9091fi;
9092
9093 eval "$ac_cv_use_wizarddlg"
9094 if test "$no_cache" != 1; then
9095 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9096 fi
9097
9098 if test "$wxUSE_WIZARDDLG" = yes; then
9099 echo "$as_me:$LINENO: result: yes" >&5
9100echo "${ECHO_T}yes" >&6
9101 else
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
9104 fi
9105
9106
9107
9108
9109 enablestring=
9110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9111echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9112 no_cache=0
9113 # Check whether --enable-menus or --disable-menus was given.
9114if test "${enable_menus+set}" = set; then
9115 enableval="$enable_menus"
9116
9117 if test "$enableval" = yes; then
9118 ac_cv_use_menus='wxUSE_MENUS=yes'
9119 else
9120 ac_cv_use_menus='wxUSE_MENUS=no'
9121 fi
9122
9123else
9124
9125 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9126 if test "x$LINE" != x ; then
9127 eval "DEFAULT_$LINE"
9128 else
9129 no_cache=1
9130 fi
9131
9132 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9133
9134fi;
9135
9136 eval "$ac_cv_use_menus"
9137 if test "$no_cache" != 1; then
9138 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9139 fi
9140
9141 if test "$wxUSE_MENUS" = yes; then
9142 echo "$as_me:$LINENO: result: yes" >&5
9143echo "${ECHO_T}yes" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
9147 fi
9148
9149
9150 enablestring=
9151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9152echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9153 no_cache=0
9154 # Check whether --enable-miniframe or --disable-miniframe was given.
9155if test "${enable_miniframe+set}" = set; then
9156 enableval="$enable_miniframe"
9157
9158 if test "$enableval" = yes; then
9159 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9160 else
9161 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9162 fi
9163
9164else
9165
9166 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9167 if test "x$LINE" != x ; then
9168 eval "DEFAULT_$LINE"
9169 else
9170 no_cache=1
9171 fi
9172
9173 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9174
9175fi;
9176
9177 eval "$ac_cv_use_miniframe"
9178 if test "$no_cache" != 1; then
9179 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9180 fi
9181
9182 if test "$wxUSE_MINIFRAME" = yes; then
9183 echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
9188 fi
9189
9190
9191 enablestring=
9192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9193echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9194 no_cache=0
9195 # Check whether --enable-tooltips or --disable-tooltips was given.
9196if test "${enable_tooltips+set}" = set; then
9197 enableval="$enable_tooltips"
9198
9199 if test "$enableval" = yes; then
9200 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9201 else
9202 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9203 fi
9204
9205else
9206
9207 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9208 if test "x$LINE" != x ; then
9209 eval "DEFAULT_$LINE"
9210 else
9211 no_cache=1
9212 fi
9213
9214 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9215
9216fi;
9217
9218 eval "$ac_cv_use_tooltips"
9219 if test "$no_cache" != 1; then
9220 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9221 fi
9222
9223 if test "$wxUSE_TOOLTIPS" = yes; then
9224 echo "$as_me:$LINENO: result: yes" >&5
9225echo "${ECHO_T}yes" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
9229 fi
9230
9231
9232 enablestring=
9233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9234echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9235 no_cache=0
9236 # Check whether --enable-splines or --disable-splines was given.
9237if test "${enable_splines+set}" = set; then
9238 enableval="$enable_splines"
9239
9240 if test "$enableval" = yes; then
9241 ac_cv_use_splines='wxUSE_SPLINES=yes'
9242 else
9243 ac_cv_use_splines='wxUSE_SPLINES=no'
9244 fi
9245
9246else
9247
9248 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9249 if test "x$LINE" != x ; then
9250 eval "DEFAULT_$LINE"
9251 else
9252 no_cache=1
9253 fi
9254
9255 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9256
9257fi;
9258
9259 eval "$ac_cv_use_splines"
9260 if test "$no_cache" != 1; then
9261 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9262 fi
9263
9264 if test "$wxUSE_SPLINES" = yes; then
9265 echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6
9267 else
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270 fi
9271
9272
9273 enablestring=
9274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9275echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9276 no_cache=0
9277 # Check whether --enable-validators or --disable-validators was given.
9278if test "${enable_validators+set}" = set; then
9279 enableval="$enable_validators"
9280
9281 if test "$enableval" = yes; then
9282 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9283 else
9284 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9285 fi
9286
9287else
9288
9289 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9290 if test "x$LINE" != x ; then
9291 eval "DEFAULT_$LINE"
9292 else
9293 no_cache=1
9294 fi
9295
9296 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9297
9298fi;
9299
9300 eval "$ac_cv_use_validators"
9301 if test "$no_cache" != 1; then
9302 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9303 fi
9304
9305 if test "$wxUSE_VALIDATORS" = yes; then
9306 echo "$as_me:$LINENO: result: yes" >&5
9307echo "${ECHO_T}yes" >&6
9308 else
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311 fi
9312
9313
9314 enablestring=
9315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9316echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9317 no_cache=0
9318 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9319if test "${enable_busyinfo+set}" = set; then
9320 enableval="$enable_busyinfo"
9321
9322 if test "$enableval" = yes; then
9323 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9324 else
9325 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9326 fi
9327
9328else
9329
9330 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9331 if test "x$LINE" != x ; then
9332 eval "DEFAULT_$LINE"
9333 else
9334 no_cache=1
9335 fi
9336
9337 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9338
9339fi;
9340
9341 eval "$ac_cv_use_busyinfo"
9342 if test "$no_cache" != 1; then
9343 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9344 fi
9345
9346 if test "$wxUSE_BUSYINFO" = yes; then
9347 echo "$as_me:$LINENO: result: yes" >&5
9348echo "${ECHO_T}yes" >&6
9349 else
9350 echo "$as_me:$LINENO: result: no" >&5
9351echo "${ECHO_T}no" >&6
9352 fi
9353
9354
9355 enablestring=
9356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9357echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9358 no_cache=0
9359 # Check whether --enable-joystick or --disable-joystick was given.
9360if test "${enable_joystick+set}" = set; then
9361 enableval="$enable_joystick"
9362
9363 if test "$enableval" = yes; then
9364 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9365 else
9366 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9367 fi
9368
9369else
9370
9371 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9372 if test "x$LINE" != x ; then
9373 eval "DEFAULT_$LINE"
9374 else
9375 no_cache=1
9376 fi
9377
9378 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9379
9380fi;
9381
9382 eval "$ac_cv_use_joystick"
9383 if test "$no_cache" != 1; then
9384 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9385 fi
9386
9387 if test "$wxUSE_JOYSTICK" = yes; then
9388 echo "$as_me:$LINENO: result: yes" >&5
9389echo "${ECHO_T}yes" >&6
9390 else
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
9393 fi
9394
9395
9396 enablestring=
9397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9398echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9399 no_cache=0
9400 # Check whether --enable-metafile or --disable-metafile was given.
9401if test "${enable_metafile+set}" = set; then
9402 enableval="$enable_metafile"
9403
9404 if test "$enableval" = yes; then
9405 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9406 else
9407 ac_cv_use_metafile='wxUSE_METAFILE=no'
9408 fi
9409
9410else
9411
9412 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9413 if test "x$LINE" != x ; then
9414 eval "DEFAULT_$LINE"
9415 else
9416 no_cache=1
9417 fi
9418
9419 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9420
9421fi;
9422
9423 eval "$ac_cv_use_metafile"
9424 if test "$no_cache" != 1; then
9425 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9426 fi
9427
9428 if test "$wxUSE_METAFILE" = yes; then
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
9431 else
9432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434 fi
9435
9436
9437 enablestring=
9438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9439echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9440 no_cache=0
9441 # Check whether --enable-dragimage or --disable-dragimage was given.
9442if test "${enable_dragimage+set}" = set; then
9443 enableval="$enable_dragimage"
9444
9445 if test "$enableval" = yes; then
9446 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9447 else
9448 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9449 fi
9450
9451else
9452
9453 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9454 if test "x$LINE" != x ; then
9455 eval "DEFAULT_$LINE"
9456 else
9457 no_cache=1
9458 fi
9459
9460 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9461
9462fi;
9463
9464 eval "$ac_cv_use_dragimage"
9465 if test "$no_cache" != 1; then
9466 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9467 fi
9468
9469 if test "$wxUSE_DRAGIMAGE" = yes; then
9470 echo "$as_me:$LINENO: result: yes" >&5
9471echo "${ECHO_T}yes" >&6
9472 else
9473 echo "$as_me:$LINENO: result: no" >&5
9474echo "${ECHO_T}no" >&6
9475 fi
9476
9477
9478 enablestring=
9479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9480echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9481 no_cache=0
9482 # Check whether --enable-accessibility or --disable-accessibility was given.
9483if test "${enable_accessibility+set}" = set; then
9484 enableval="$enable_accessibility"
9485
9486 if test "$enableval" = yes; then
9487 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9488 else
9489 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9490 fi
9491
9492else
9493
9494 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9495 if test "x$LINE" != x ; then
9496 eval "DEFAULT_$LINE"
9497 else
9498 no_cache=1
9499 fi
9500
9501 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9502
9503fi;
9504
9505 eval "$ac_cv_use_accessibility"
9506 if test "$no_cache" != 1; then
9507 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9508 fi
9509
9510 if test "$wxUSE_ACCESSIBILITY" = yes; then
9511 echo "$as_me:$LINENO: result: yes" >&5
9512echo "${ECHO_T}yes" >&6
9513 else
9514 echo "$as_me:$LINENO: result: no" >&5
9515echo "${ECHO_T}no" >&6
9516 fi
9517
9518
9519
9520
9521 enablestring=
9522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9523echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9524 no_cache=0
9525 # Check whether --enable-palette or --disable-palette was given.
9526if test "${enable_palette+set}" = set; then
9527 enableval="$enable_palette"
9528
9529 if test "$enableval" = yes; then
9530 ac_cv_use_palette='wxUSE_PALETTE=yes'
9531 else
9532 ac_cv_use_palette='wxUSE_PALETTE=no'
9533 fi
9534
9535else
9536
9537 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9538 if test "x$LINE" != x ; then
9539 eval "DEFAULT_$LINE"
9540 else
9541 no_cache=1
9542 fi
9543
9544 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9545
9546fi;
9547
9548 eval "$ac_cv_use_palette"
9549 if test "$no_cache" != 1; then
9550 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9551 fi
9552
9553 if test "$wxUSE_PALETTE" = yes; then
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
9556 else
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559 fi
9560
9561
9562 enablestring=
9563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9564echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9565 no_cache=0
9566 # Check whether --enable-image or --disable-image was given.
9567if test "${enable_image+set}" = set; then
9568 enableval="$enable_image"
9569
9570 if test "$enableval" = yes; then
9571 ac_cv_use_image='wxUSE_IMAGE=yes'
9572 else
9573 ac_cv_use_image='wxUSE_IMAGE=no'
9574 fi
9575
9576else
9577
9578 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9579 if test "x$LINE" != x ; then
9580 eval "DEFAULT_$LINE"
9581 else
9582 no_cache=1
9583 fi
9584
9585 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9586
9587fi;
9588
9589 eval "$ac_cv_use_image"
9590 if test "$no_cache" != 1; then
9591 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9592 fi
9593
9594 if test "$wxUSE_IMAGE" = yes; then
9595 echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6
9597 else
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
9600 fi
9601
9602
9603 enablestring=
9604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9605echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9606 no_cache=0
9607 # Check whether --enable-gif or --disable-gif was given.
9608if test "${enable_gif+set}" = set; then
9609 enableval="$enable_gif"
9610
9611 if test "$enableval" = yes; then
9612 ac_cv_use_gif='wxUSE_GIF=yes'
9613 else
9614 ac_cv_use_gif='wxUSE_GIF=no'
9615 fi
9616
9617else
9618
9619 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9620 if test "x$LINE" != x ; then
9621 eval "DEFAULT_$LINE"
9622 else
9623 no_cache=1
9624 fi
9625
9626 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9627
9628fi;
9629
9630 eval "$ac_cv_use_gif"
9631 if test "$no_cache" != 1; then
9632 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9633 fi
9634
9635 if test "$wxUSE_GIF" = yes; then
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6
9638 else
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
9641 fi
9642
9643
9644 enablestring=
9645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9646echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9647 no_cache=0
9648 # Check whether --enable-pcx or --disable-pcx was given.
9649if test "${enable_pcx+set}" = set; then
9650 enableval="$enable_pcx"
9651
9652 if test "$enableval" = yes; then
9653 ac_cv_use_pcx='wxUSE_PCX=yes'
9654 else
9655 ac_cv_use_pcx='wxUSE_PCX=no'
9656 fi
9657
9658else
9659
9660 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9661 if test "x$LINE" != x ; then
9662 eval "DEFAULT_$LINE"
9663 else
9664 no_cache=1
9665 fi
9666
9667 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9668
9669fi;
9670
9671 eval "$ac_cv_use_pcx"
9672 if test "$no_cache" != 1; then
9673 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9674 fi
9675
9676 if test "$wxUSE_PCX" = yes; then
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
9679 else
9680 echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6
9682 fi
9683
9684
9685 enablestring=
9686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9687echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9688 no_cache=0
9689 # Check whether --enable-iff or --disable-iff was given.
9690if test "${enable_iff+set}" = set; then
9691 enableval="$enable_iff"
9692
9693 if test "$enableval" = yes; then
9694 ac_cv_use_iff='wxUSE_IFF=yes'
9695 else
9696 ac_cv_use_iff='wxUSE_IFF=no'
9697 fi
9698
9699else
9700
9701 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9702 if test "x$LINE" != x ; then
9703 eval "DEFAULT_$LINE"
9704 else
9705 no_cache=1
9706 fi
9707
9708 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9709
9710fi;
9711
9712 eval "$ac_cv_use_iff"
9713 if test "$no_cache" != 1; then
9714 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9715 fi
9716
9717 if test "$wxUSE_IFF" = yes; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6
9720 else
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723 fi
9724
9725
9726 enablestring=
9727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9728echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9729 no_cache=0
9730 # Check whether --enable-pnm or --disable-pnm was given.
9731if test "${enable_pnm+set}" = set; then
9732 enableval="$enable_pnm"
9733
9734 if test "$enableval" = yes; then
9735 ac_cv_use_pnm='wxUSE_PNM=yes'
9736 else
9737 ac_cv_use_pnm='wxUSE_PNM=no'
9738 fi
9739
9740else
9741
9742 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9743 if test "x$LINE" != x ; then
9744 eval "DEFAULT_$LINE"
9745 else
9746 no_cache=1
9747 fi
9748
9749 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9750
9751fi;
9752
9753 eval "$ac_cv_use_pnm"
9754 if test "$no_cache" != 1; then
9755 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9756 fi
9757
9758 if test "$wxUSE_PNM" = yes; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760echo "${ECHO_T}yes" >&6
9761 else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764 fi
9765
9766
9767 enablestring=
9768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9769echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9770 no_cache=0
9771 # Check whether --enable-xpm or --disable-xpm was given.
9772if test "${enable_xpm+set}" = set; then
9773 enableval="$enable_xpm"
9774
9775 if test "$enableval" = yes; then
9776 ac_cv_use_xpm='wxUSE_XPM=yes'
9777 else
9778 ac_cv_use_xpm='wxUSE_XPM=no'
9779 fi
9780
9781else
9782
9783 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9784 if test "x$LINE" != x ; then
9785 eval "DEFAULT_$LINE"
9786 else
9787 no_cache=1
9788 fi
9789
9790 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9791
9792fi;
9793
9794 eval "$ac_cv_use_xpm"
9795 if test "$no_cache" != 1; then
9796 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9797 fi
9798
9799 if test "$wxUSE_XPM" = yes; then
9800 echo "$as_me:$LINENO: result: yes" >&5
9801echo "${ECHO_T}yes" >&6
9802 else
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
9805 fi
9806
9807
9808 enablestring=
9809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9810echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9811 no_cache=0
9812 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9813if test "${enable_ico_cur+set}" = set; then
9814 enableval="$enable_ico_cur"
9815
9816 if test "$enableval" = yes; then
9817 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9818 else
9819 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9820 fi
9821
9822else
9823
9824 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9825 if test "x$LINE" != x ; then
9826 eval "DEFAULT_$LINE"
9827 else
9828 no_cache=1
9829 fi
9830
9831 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9832
9833fi;
9834
9835 eval "$ac_cv_use_ico_cur"
9836 if test "$no_cache" != 1; then
9837 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9838 fi
9839
9840 if test "$wxUSE_ICO_CUR" = yes; then
9841 echo "$as_me:$LINENO: result: yes" >&5
9842echo "${ECHO_T}yes" >&6
9843 else
9844 echo "$as_me:$LINENO: result: no" >&5
9845echo "${ECHO_T}no" >&6
9846 fi
9847
9848
9849fi
9850
9851
9852
9853 enablestring=
9854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9855echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9856 no_cache=0
9857 # Check whether --enable-official_build or --disable-official_build was given.
9858if test "${enable_official_build+set}" = set; then
9859 enableval="$enable_official_build"
9860
9861 if test "$enableval" = yes; then
9862 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9863 else
9864 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9865 fi
9866
9867else
9868
9869 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9870 if test "x$LINE" != x ; then
9871 eval "DEFAULT_$LINE"
9872 else
9873 no_cache=1
9874 fi
9875
9876 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9877
9878fi;
9879
9880 eval "$ac_cv_use_official_build"
9881 if test "$no_cache" != 1; then
9882 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9883 fi
9884
9885 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9886 echo "$as_me:$LINENO: result: yes" >&5
9887echo "${ECHO_T}yes" >&6
9888 else
9889 echo "$as_me:$LINENO: result: no" >&5
9890echo "${ECHO_T}no" >&6
9891 fi
9892
9893# Check whether --enable-vendor or --disable-vendor was given.
9894if test "${enable_vendor+set}" = set; then
9895 enableval="$enable_vendor"
9896 VENDOR="$enableval"
9897fi;
9898if test "x$VENDOR" = "x"; then
9899 VENDOR="custom"
9900fi
9901
9902case "${host}" in
9903 *-pc-os2_emx | *-pc-os2-emx )
9904 PATH_IFS=';'
a848cd7e
SC
9905 ;;
9906 *)
9907 PATH_IFS=':'
9908 ;;
9909esac
9910
9911
9912
9913 echo "saving argument cache $wx_arg_cache_file"
9914 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9915
9916
9917
9918echo "$as_me:$LINENO: checking for toolkit" >&5
9919echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9920
9921# In Wine, we need to default to MSW, not GTK or MOTIF
9922if test "$wxUSE_WINE" = "yes"; then
9923 DEFAULT_DEFAULT_wxUSE_GTK=0
9924 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9925 DEFAULT_DEFAULT_wxUSE_MSW=1
9926 wxUSE_SHARED=no
9927fi
9928
9929if test "$wxUSE_GUI" = "yes"; then
9930
9931 if test "$USE_BEOS" = 1; then
9932 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9933echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9934 { (exit 1); exit 1; }; }
9935 fi
9936
9937 if test "$TOOLKIT_GIVEN" = 1; then
9938 for toolkit in `echo $ALL_TOOLKITS`; do
9939 var=wxUSE_$toolkit
9940 eval "value=\$${var}"
9941 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9942 done
9943 else
9944 for toolkit in `echo $ALL_TOOLKITS`; do
9945 if test "$has_toolkit_in_cache" != 1; then
9946 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9947 else
9948 var=DEFAULT_wxUSE_$toolkit
9949 fi
9950 eval "wxUSE_$toolkit=\$${var}"
9951 done
9952 fi
9953
9954 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9955 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9956 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9957
9958 case "${host}" in
9959 *-pc-os2_emx | *-pc-os2-emx )
9960 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9961 esac
9962
9963 case "$NUM_TOOLKITS" in
9964 1)
9965 ;;
9966 0)
9967 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9968echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9969 { (exit 1); exit 1; }; }
9970 ;;
9971 *)
9972 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9973echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9974 { (exit 1); exit 1; }; }
9975 esac
9976
9977 for toolkit in `echo $ALL_TOOLKITS`; do
9978 var=wxUSE_$toolkit
9979 eval "value=\$${var}"
9980 if test "x$value" != x; then
9981 cache_var=CACHE_$toolkit
9982 eval "cache=\$${cache_var}"
9983 if test "$cache" = 1; then
9984 echo "$var=$value" >> ${wx_arg_cache_file}
9985 fi
9986 if test "$value" = 1; then
9987 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9988 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9989echo "${ECHO_T}$toolkit_echo" >&6
9990 fi
9991 fi
9992 done
9993else
9994 if test "x$host_alias" != "x"; then
9995 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9996echo "${ECHO_T}base ($host_alias hosted) only" >&6
9997 else
9998 echo "$as_me:$LINENO: result: base only" >&5
9999echo "${ECHO_T}base only" >&6
10000 fi
10001fi
10002
10003wants_win32=0
10004doesnt_want_win32=0
10005case "${host}" in
10006 *-*-cygwin*)
10007 if test "$wxUSE_MSW" = 1 ; then
10008 wants_win32=1
10009 else
10010 doesnt_want_win32=1
10011 fi
10012 ;;
10013 *-*-mingw*)
10014 wants_win32=1
10015 ;;
10016esac
10017
10018if test "$wxUSE_WINE" = "yes"; then
10019 wants_win32=1
10020 CC=winegcc
10021 CXX=wineg++
10022 RESCOMP=wrc
10023 LDFLAGS_GUI="-mwindows"
10024fi
10025
10026if test "$wants_win32" = 1 ; then
10027 USE_UNIX=0
10028 USE_WIN32=1
10029 cat >>confdefs.h <<\_ACEOF
10030#define __WIN32__ 1
10031_ACEOF
10032
10033 cat >>confdefs.h <<\_ACEOF
10034#define __WIN95__ 1
10035_ACEOF
10036
10037 cat >>confdefs.h <<\_ACEOF
10038#define __WINDOWS__ 1
10039_ACEOF
10040
10041 cat >>confdefs.h <<\_ACEOF
10042#define __GNUWIN32__ 1
10043_ACEOF
10044
10045 cat >>confdefs.h <<\_ACEOF
10046#define STRICT 1
10047_ACEOF
10048
10049 cat >>confdefs.h <<\_ACEOF
10050#define WINVER 0x0400
10051_ACEOF
10052
10053fi
10054if test "$doesnt_want_win32" = 1 ; then
10055 USE_UNIX=1
10056 USE_WIN32=0
10057fi
10058
10059if test "$USE_UNIX" = 1 ; then
10060 wxUSE_UNIX=yes
10061 cat >>confdefs.h <<\_ACEOF
10062#define __UNIX__ 1
10063_ACEOF
10064
10065fi
10066
10067
10068cat >confcache <<\_ACEOF
10069# This file is a shell script that caches the results of configure
10070# tests run on this system so they can be shared between configure
10071# scripts and configure runs, see configure's option --config-cache.
10072# It is not useful on other systems. If it contains results you don't
10073# want to keep, you may remove or edit it.
10074#
10075# config.status only pays attention to the cache file if you give it
10076# the --recheck option to rerun configure.
10077#
10078# `ac_cv_env_foo' variables (set or unset) will be overridden when
10079# loading this file, other *unset* `ac_cv_foo' will be assigned the
10080# following values.
10081
10082_ACEOF
10083
10084# The following way of writing the cache mishandles newlines in values,
10085# but we know of no workaround that is simple, portable, and efficient.
10086# So, don't put newlines in cache variables' values.
10087# Ultrix sh set writes to stderr and can't be redirected directly,
10088# and sets the high bit in the cache file unless we assign to the vars.
10089{
10090 (set) 2>&1 |
10091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10092 *ac_space=\ *)
10093 # `set' does not quote correctly, so add quotes (double-quote
10094 # substitution turns \\\\ into \\, and sed turns \\ into \).
10095 sed -n \
10096 "s/'/'\\\\''/g;
10097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10098 ;;
10099 *)
10100 # `set' quotes correctly as required by POSIX, so do not add quotes.
10101 sed -n \
10102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10103 ;;
10104 esac;
10105} |
10106 sed '
10107 t clear
10108 : clear
10109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10110 t end
10111 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10112 : end' >>confcache
10113if diff $cache_file confcache >/dev/null 2>&1; then :; else
10114 if test -w $cache_file; then
10115 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10116 cat confcache >$cache_file
10117 else
10118 echo "not updating unwritable cache $cache_file"
10119 fi
10120fi
10121rm -f confcache
10122
10123if test "$build" != "$host" ; then
10124 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10125 CC=$host_alias-gcc
10126 CXX=$host_alias-c++
10127 AR=$host_alias-ar
10128 RANLIB=$host_alias-ranlib
10129 DLLTOOL=$host_alias-dlltool
10130 RESCOMP=$host_alias-windres
10131 LD=$host_alias-ld
10132 NM=$host_alias-nm
10133 STRIP=$host_alias-strip
10134 else
10135 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10136echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10137 { (exit 1); exit 1; }; }
10138 fi
10139fi
10140
10141CFLAGS=${CFLAGS:=}
10142ac_ext=c
10143ac_cpp='$CPP $CPPFLAGS'
10144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146ac_compiler_gnu=$ac_cv_c_compiler_gnu
10147if test -n "$ac_tool_prefix"; then
10148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10149set dummy ${ac_tool_prefix}gcc; ac_word=$2
10150echo "$as_me:$LINENO: checking for $ac_word" >&5
10151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10152if test "${ac_cv_prog_CC+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 if test -n "$CC"; then
10156 ac_cv_prog_CC="$CC" # Let the user override the test.
10157else
10158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159for as_dir in $PATH
10160do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
10164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10168 fi
10169done
10170done
10171
10172fi
10173fi
10174CC=$ac_cv_prog_CC
10175if test -n "$CC"; then
10176 echo "$as_me:$LINENO: result: $CC" >&5
10177echo "${ECHO_T}$CC" >&6
10178else
10179 echo "$as_me:$LINENO: result: no" >&5
10180echo "${ECHO_T}no" >&6
10181fi
10182
10183fi
10184if test -z "$ac_cv_prog_CC"; then
10185 ac_ct_CC=$CC
10186 # Extract the first word of "gcc", so it can be a program name with args.
10187set dummy gcc; ac_word=$2
10188echo "$as_me:$LINENO: checking for $ac_word" >&5
10189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193 if test -n "$ac_ct_CC"; then
10194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10195else
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_ac_ct_CC="gcc"
10204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208done
10209
10210fi
10211fi
10212ac_ct_CC=$ac_cv_prog_ac_ct_CC
10213if test -n "$ac_ct_CC"; then
10214 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10215echo "${ECHO_T}$ac_ct_CC" >&6
10216else
10217 echo "$as_me:$LINENO: result: no" >&5
10218echo "${ECHO_T}no" >&6
10219fi
10220
10221 CC=$ac_ct_CC
10222else
10223 CC="$ac_cv_prog_CC"
10224fi
10225
10226if test -z "$CC"; then
10227 if test -n "$ac_tool_prefix"; then
10228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10229set dummy ${ac_tool_prefix}cc; ac_word=$2
10230echo "$as_me:$LINENO: checking for $ac_word" >&5
10231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10232if test "${ac_cv_prog_CC+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 if test -n "$CC"; then
10236 ac_cv_prog_CC="$CC" # Let the user override the test.
10237else
10238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239for as_dir in $PATH
10240do
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245 ac_cv_prog_CC="${ac_tool_prefix}cc"
10246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10248 fi
10249done
10250done
10251
10252fi
10253fi
10254CC=$ac_cv_prog_CC
10255if test -n "$CC"; then
10256 echo "$as_me:$LINENO: result: $CC" >&5
10257echo "${ECHO_T}$CC" >&6
10258else
10259 echo "$as_me:$LINENO: result: no" >&5
10260echo "${ECHO_T}no" >&6
10261fi
10262
10263fi
10264if test -z "$ac_cv_prog_CC"; then
10265 ac_ct_CC=$CC
10266 # Extract the first word of "cc", so it can be a program name with args.
10267set dummy cc; ac_word=$2
10268echo "$as_me:$LINENO: checking for $ac_word" >&5
10269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273 if test -n "$ac_ct_CC"; then
10274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_ac_ct_CC="cc"
10284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10286 fi
10287done
10288done
10289
10290fi
10291fi
10292ac_ct_CC=$ac_cv_prog_ac_ct_CC
10293if test -n "$ac_ct_CC"; then
10294 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10295echo "${ECHO_T}$ac_ct_CC" >&6
10296else
10297 echo "$as_me:$LINENO: result: no" >&5
10298echo "${ECHO_T}no" >&6
10299fi
10300
10301 CC=$ac_ct_CC
10302else
10303 CC="$ac_cv_prog_CC"
10304fi
10305
10306fi
10307if test -z "$CC"; then
10308 # Extract the first word of "cc", so it can be a program name with args.
10309set dummy cc; ac_word=$2
10310echo "$as_me:$LINENO: checking for $ac_word" >&5
10311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10312if test "${ac_cv_prog_CC+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314else
10315 if test -n "$CC"; then
10316 ac_cv_prog_CC="$CC" # Let the user override the test.
10317else
10318 ac_prog_rejected=no
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10327 ac_prog_rejected=yes
10328 continue
10329 fi
10330 ac_cv_prog_CC="cc"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335done
10336
10337if test $ac_prog_rejected = yes; then
10338 # We found a bogon in the path, so make sure we never use it.
10339 set dummy $ac_cv_prog_CC
10340 shift
10341 if test $# != 0; then
10342 # We chose a different compiler from the bogus one.
10343 # However, it has the same basename, so the bogon will be chosen
10344 # first if we set CC to just the basename; use the full file name.
10345 shift
10346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10347 fi
10348fi
10349fi
10350fi
10351CC=$ac_cv_prog_CC
10352if test -n "$CC"; then
10353 echo "$as_me:$LINENO: result: $CC" >&5
10354echo "${ECHO_T}$CC" >&6
10355else
10356 echo "$as_me:$LINENO: result: no" >&5
10357echo "${ECHO_T}no" >&6
10358fi
10359
10360fi
10361if test -z "$CC"; then
10362 if test -n "$ac_tool_prefix"; then
10363 for ac_prog in cl
10364 do
10365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10367echo "$as_me:$LINENO: checking for $ac_word" >&5
10368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10369if test "${ac_cv_prog_CC+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
10372 if test -n "$CC"; then
10373 ac_cv_prog_CC="$CC" # Let the user override the test.
10374else
10375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386done
10387done
10388
10389fi
10390fi
10391CC=$ac_cv_prog_CC
10392if test -n "$CC"; then
10393 echo "$as_me:$LINENO: result: $CC" >&5
10394echo "${ECHO_T}$CC" >&6
10395else
10396 echo "$as_me:$LINENO: result: no" >&5
10397echo "${ECHO_T}no" >&6
10398fi
10399
10400 test -n "$CC" && break
10401 done
10402fi
10403if test -z "$CC"; then
10404 ac_ct_CC=$CC
10405 for ac_prog in cl
10406do
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408set dummy $ac_prog; ac_word=$2
10409echo "$as_me:$LINENO: checking for $ac_word" >&5
10410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10411if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 if test -n "$ac_ct_CC"; then
10415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_prog_ac_ct_CC="$ac_prog"
10425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10427 fi
10428done
10429done
10430
10431fi
10432fi
10433ac_ct_CC=$ac_cv_prog_ac_ct_CC
10434if test -n "$ac_ct_CC"; then
10435 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10436echo "${ECHO_T}$ac_ct_CC" >&6
10437else
10438 echo "$as_me:$LINENO: result: no" >&5
10439echo "${ECHO_T}no" >&6
10440fi
10441
10442 test -n "$ac_ct_CC" && break
10443done
10444
10445 CC=$ac_ct_CC
10446fi
10447
10448fi
10449
10450
10451test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10452See \`config.log' for more details." >&5
10453echo "$as_me: error: no acceptable C compiler found in \$PATH
10454See \`config.log' for more details." >&2;}
10455 { (exit 1); exit 1; }; }
10456
10457# Provide some information about the compiler.
10458echo "$as_me:$LINENO:" \
10459 "checking for C compiler version" >&5
10460ac_compiler=`set X $ac_compile; echo $2`
10461{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10462 (eval $ac_compiler --version </dev/null >&5) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }
10466{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10467 (eval $ac_compiler -v </dev/null >&5) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }
10471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10472 (eval $ac_compiler -V </dev/null >&5) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }
10476
10477cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h. */
10479_ACEOF
10480cat confdefs.h >>conftest.$ac_ext
10481cat >>conftest.$ac_ext <<_ACEOF
10482/* end confdefs.h. */
10483
10484int
10485main ()
10486{
10487
10488 ;
10489 return 0;
10490}
10491_ACEOF
10492ac_clean_files_save=$ac_clean_files
10493ac_clean_files="$ac_clean_files a.out a.exe b.out"
10494# Try to create an executable without -o first, disregard a.out.
10495# It will help us diagnose broken compilers, and finding out an intuition
10496# of exeext.
10497echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10498echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10499ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10500if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10501 (eval $ac_link_default) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; then
10505 # Find the output, starting from the most likely. This scheme is
10506# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10507# resort.
10508
10509# Be careful to initialize this variable, since it used to be cached.
10510# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10511ac_cv_exeext=
10512# b.out is created by i960 compilers.
10513for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10514do
10515 test -f "$ac_file" || continue
10516 case $ac_file in
10517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10518 ;;
10519 conftest.$ac_ext )
10520 # This is the source file.
10521 ;;
10522 [ab].out )
10523 # We found the default executable, but exeext='' is most
10524 # certainly right.
10525 break;;
10526 *.* )
10527 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10528 # FIXME: I believe we export ac_cv_exeext for Libtool,
10529 # but it would be cool to find out if it's true. Does anybody
10530 # maintain Libtool? --akim.
10531 export ac_cv_exeext
10532 break;;
10533 * )
10534 break;;
10535 esac
10536done
10537else
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10542See \`config.log' for more details." >&5
10543echo "$as_me: error: C compiler cannot create executables
10544See \`config.log' for more details." >&2;}
10545 { (exit 77); exit 77; }; }
10546fi
10547
10548ac_exeext=$ac_cv_exeext
10549echo "$as_me:$LINENO: result: $ac_file" >&5
10550echo "${ECHO_T}$ac_file" >&6
10551
10552# Check the compiler produces executables we can run. If not, either
10553# the compiler is broken, or we cross compile.
10554echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10555echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10556# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10557# If not cross compiling, check that we can run a simple program.
10558if test "$cross_compiling" != yes; then
10559 if { ac_try='./$ac_file'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 cross_compiling=no
10566 else
10567 if test "$cross_compiling" = maybe; then
10568 cross_compiling=yes
10569 else
10570 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10571If you meant to cross compile, use \`--host'.
10572See \`config.log' for more details." >&5
10573echo "$as_me: error: cannot run C compiled programs.
10574If you meant to cross compile, use \`--host'.
10575See \`config.log' for more details." >&2;}
10576 { (exit 1); exit 1; }; }
10577 fi
10578 fi
10579fi
10580echo "$as_me:$LINENO: result: yes" >&5
10581echo "${ECHO_T}yes" >&6
10582
10583rm -f a.out a.exe conftest$ac_cv_exeext b.out
10584ac_clean_files=$ac_clean_files_save
10585# Check the compiler produces executables we can run. If not, either
10586# the compiler is broken, or we cross compile.
10587echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10588echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10589echo "$as_me:$LINENO: result: $cross_compiling" >&5
10590echo "${ECHO_T}$cross_compiling" >&6
10591
10592echo "$as_me:$LINENO: checking for suffix of executables" >&5
10593echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595 (eval $ac_link) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; then
10599 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10600# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10601# work properly (i.e., refer to `conftest.exe'), while it won't with
10602# `rm'.
10603for ac_file in conftest.exe conftest conftest.*; do
10604 test -f "$ac_file" || continue
10605 case $ac_file in
10606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10608 export ac_cv_exeext
10609 break;;
10610 * ) break;;
10611 esac
10612done
10613else
10614 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10615See \`config.log' for more details." >&5
10616echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10617See \`config.log' for more details." >&2;}
10618 { (exit 1); exit 1; }; }
10619fi
10620
10621rm -f conftest$ac_cv_exeext
10622echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10623echo "${ECHO_T}$ac_cv_exeext" >&6
10624
10625rm -f conftest.$ac_ext
10626EXEEXT=$ac_cv_exeext
10627ac_exeext=$EXEEXT
10628echo "$as_me:$LINENO: checking for suffix of object files" >&5
10629echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10630if test "${ac_cv_objext+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639
10640int
10641main ()
10642{
10643
10644 ;
10645 return 0;
10646}
10647_ACEOF
10648rm -f conftest.o conftest.obj
10649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10650 (eval $ac_compile) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; then
10654 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10655 case $ac_file in
10656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10658 break;;
10659 esac
10660done
10661else
10662 echo "$as_me: failed program was:" >&5
10663sed 's/^/| /' conftest.$ac_ext >&5
10664
10665{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10666See \`config.log' for more details." >&5
10667echo "$as_me: error: cannot compute suffix of object files: cannot compile
10668See \`config.log' for more details." >&2;}
10669 { (exit 1); exit 1; }; }
10670fi
10671
10672rm -f conftest.$ac_cv_objext conftest.$ac_ext
10673fi
10674echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10675echo "${ECHO_T}$ac_cv_objext" >&6
10676OBJEXT=$ac_cv_objext
10677ac_objext=$OBJEXT
10678echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10679echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10680if test "${ac_cv_c_compiler_gnu+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683 cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h. */
10689
10690int
10691main ()
10692{
10693#ifndef __GNUC__
10694 choke me
10695#endif
10696
10697 ;
10698 return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext
10702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703 (eval $ac_compile) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
01cb68df 10710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_compiler_gnu=yes
10723else
10724 echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727ac_compiler_gnu=no
10728fi
10729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10730ac_cv_c_compiler_gnu=$ac_compiler_gnu
10731
10732fi
10733echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10734echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10735GCC=`test $ac_compiler_gnu = yes && echo yes`
10736ac_test_CFLAGS=${CFLAGS+set}
10737ac_save_CFLAGS=$CFLAGS
10738CFLAGS="-g"
10739echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10740echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10741if test "${ac_cv_prog_cc_g+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744 cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h. */
10750
10751int
10752main ()
10753{
10754
10755 ;
10756 return 0;
10757}
10758_ACEOF
10759rm -f conftest.$ac_objext
10760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761 (eval $ac_compile) 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
01cb68df 10768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_prog_cc_g=yes
10781else
10782 echo "$as_me: failed program was:" >&5
10783sed 's/^/| /' conftest.$ac_ext >&5
10784
10785ac_cv_prog_cc_g=no
10786fi
10787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10788fi
10789echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10790echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10791if test "$ac_test_CFLAGS" = set; then
10792 CFLAGS=$ac_save_CFLAGS
10793elif test $ac_cv_prog_cc_g = yes; then
10794 if test "$GCC" = yes; then
10795 CFLAGS="-g -O2"
10796 else
10797 CFLAGS="-g"
10798 fi
10799else
10800 if test "$GCC" = yes; then
10801 CFLAGS="-O2"
10802 else
10803 CFLAGS=
10804 fi
10805fi
10806echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10807echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10808if test "${ac_cv_prog_cc_stdc+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 ac_cv_prog_cc_stdc=no
10812ac_save_CC=$CC
10813cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819#include <stdarg.h>
10820#include <stdio.h>
10821#include <sys/types.h>
10822#include <sys/stat.h>
10823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10824struct buf { int x; };
10825FILE * (*rcsopen) (struct buf *, struct stat *, int);
10826static char *e (p, i)
10827 char **p;
10828 int i;
10829{
10830 return p[i];
10831}
10832static char *f (char * (*g) (char **, int), char **p, ...)
10833{
10834 char *s;
10835 va_list v;
10836 va_start (v,p);
10837 s = g (p, va_arg (v,int));
10838 va_end (v);
10839 return s;
10840}
10841
10842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10843 function prototypes and stuff, but not '\xHH' hex character constants.
10844 These don't provoke an error unfortunately, instead are silently treated
10845 as 'x'. The following induces an error, until -std1 is added to get
10846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10847 array size at least. It's necessary to write '\x00'==0 to get something
10848 that's true only with -std1. */
10849int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10850
10851int test (int i, double x);
10852struct s1 {int (*f) (int a);};
10853struct s2 {int (*f) (double a);};
10854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10855int argc;
10856char **argv;
10857int
10858main ()
10859{
10860return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865# Don't try gcc -ansi; that turns off useful extensions and
10866# breaks some systems' header files.
10867# AIX -qlanglvl=ansi
10868# Ultrix and OSF/1 -std1
10869# HP-UX 10.20 and later -Ae
10870# HP-UX older versions -Aa -D_HPUX_SOURCE
10871# SVR4 -Xc -D__EXTENSIONS__
10872for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10873do
10874 CC="$ac_save_CC $ac_arg"
10875 rm -f conftest.$ac_objext
10876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877 (eval $ac_compile) 2>conftest.er1
10878 ac_status=$?
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
01cb68df 10884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_prog_cc_stdc=$ac_arg
10897break
10898else
10899 echo "$as_me: failed program was:" >&5
10900sed 's/^/| /' conftest.$ac_ext >&5
10901
10902fi
10903rm -f conftest.err conftest.$ac_objext
10904done
10905rm -f conftest.$ac_ext conftest.$ac_objext
10906CC=$ac_save_CC
10907
10908fi
10909
10910case "x$ac_cv_prog_cc_stdc" in
10911 x|xno)
10912 echo "$as_me:$LINENO: result: none needed" >&5
10913echo "${ECHO_T}none needed" >&6 ;;
10914 *)
10915 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10916echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10917 CC="$CC $ac_cv_prog_cc_stdc" ;;
10918esac
10919
10920# Some people use a C++ compiler to compile C. Since we use `exit',
10921# in C++ we need to declare it. In case someone uses the same compiler
10922# for both compiling C and C++ we need to have the C++ compiler decide
10923# the declaration of exit, since it's the most demanding environment.
10924cat >conftest.$ac_ext <<_ACEOF
10925#ifndef __cplusplus
10926 choke me
10927#endif
10928_ACEOF
10929rm -f conftest.$ac_objext
10930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
01cb68df 10938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest.$ac_objext'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 for ac_declaration in \
10951 '' \
10952 'extern "C" void std::exit (int) throw (); using std::exit;' \
10953 'extern "C" void std::exit (int); using std::exit;' \
10954 'extern "C" void exit (int) throw ();' \
10955 'extern "C" void exit (int);' \
10956 'void exit (int);'
10957do
10958 cat >conftest.$ac_ext <<_ACEOF
10959/* confdefs.h. */
10960_ACEOF
10961cat confdefs.h >>conftest.$ac_ext
10962cat >>conftest.$ac_ext <<_ACEOF
10963/* end confdefs.h. */
10964$ac_declaration
10965#include <stdlib.h>
10966int
10967main ()
10968{
10969exit (42);
10970 ;
10971 return 0;
10972}
10973_ACEOF
10974rm -f conftest.$ac_objext
10975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976 (eval $ac_compile) 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
01cb68df 10983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 :
10996else
10997 echo "$as_me: failed program was:" >&5
10998sed 's/^/| /' conftest.$ac_ext >&5
10999
11000continue
11001fi
11002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11003 cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009$ac_declaration
11010int
11011main ()
11012{
11013exit (42);
11014 ;
11015 return 0;
11016}
11017_ACEOF
11018rm -f conftest.$ac_objext
11019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
01cb68df 11027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest.$ac_objext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 break
11040else
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044fi
11045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046done
11047rm -f conftest*
11048if test -n "$ac_declaration"; then
11049 echo '#ifdef __cplusplus' >>confdefs.h
11050 echo $ac_declaration >>confdefs.h
11051 echo '#endif' >>confdefs.h
11052fi
11053
11054else
11055 echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058fi
11059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11060ac_ext=c
11061ac_cpp='$CPP $CPPFLAGS'
11062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064ac_compiler_gnu=$ac_cv_c_compiler_gnu
11065
11066
11067
11068ac_ext=c
11069ac_cpp='$CPP $CPPFLAGS'
11070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11074echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11075# On Suns, sometimes $CPP names a directory.
11076if test -n "$CPP" && test -d "$CPP"; then
11077 CPP=
11078fi
11079if test -z "$CPP"; then
11080 if test "${ac_cv_prog_CPP+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 # Double quotes because CPP needs to be expanded
11084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11085 do
11086 ac_preproc_ok=false
11087for ac_c_preproc_warn_flag in '' yes
11088do
11089 # Use a header file that comes with gcc, so configuring glibc
11090 # with a fresh cross-compiler works.
11091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 # <limits.h> exists even on freestanding compilers.
11093 # On the NeXT, cc -E runs the code through the compiler's parser,
11094 # not just through cpp. "Syntax error" is here to catch this case.
11095 cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101#ifdef __STDC__
11102# include <limits.h>
11103#else
11104# include <assert.h>
11105#endif
11106 Syntax error
11107_ACEOF
11108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } >/dev/null; then
11116 if test -s conftest.err; then
11117 ac_cpp_err=$ac_c_preproc_warn_flag
11118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11119 else
11120 ac_cpp_err=
11121 fi
11122else
11123 ac_cpp_err=yes
11124fi
11125if test -z "$ac_cpp_err"; then
11126 :
11127else
11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131 # Broken: fails on valid input.
11132continue
11133fi
11134rm -f conftest.err conftest.$ac_ext
11135
11136 # OK, works on sane cases. Now check whether non-existent headers
11137 # can be detected and how.
11138 cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */
11140_ACEOF
11141cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */
11144#include <ac_nonexistent.h>
11145_ACEOF
11146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } >/dev/null; then
11154 if test -s conftest.err; then
11155 ac_cpp_err=$ac_c_preproc_warn_flag
11156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11157 else
11158 ac_cpp_err=
11159 fi
11160else
11161 ac_cpp_err=yes
11162fi
11163if test -z "$ac_cpp_err"; then
11164 # Broken: success on invalid input.
11165continue
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 # Passes both tests.
11171ac_preproc_ok=:
11172break
11173fi
11174rm -f conftest.err conftest.$ac_ext
11175
11176done
11177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11178rm -f conftest.err conftest.$ac_ext
11179if $ac_preproc_ok; then
11180 break
11181fi
11182
11183 done
11184 ac_cv_prog_CPP=$CPP
11185
11186fi
11187 CPP=$ac_cv_prog_CPP
11188else
11189 ac_cv_prog_CPP=$CPP
11190fi
11191echo "$as_me:$LINENO: result: $CPP" >&5
11192echo "${ECHO_T}$CPP" >&6
11193ac_preproc_ok=false
11194for ac_c_preproc_warn_flag in '' yes
11195do
11196 # Use a header file that comes with gcc, so configuring glibc
11197 # with a fresh cross-compiler works.
11198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 # <limits.h> exists even on freestanding compilers.
11200 # On the NeXT, cc -E runs the code through the compiler's parser,
11201 # not just through cpp. "Syntax error" is here to catch this case.
11202 cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208#ifdef __STDC__
11209# include <limits.h>
11210#else
11211# include <assert.h>
11212#endif
11213 Syntax error
11214_ACEOF
11215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } >/dev/null; then
11223 if test -s conftest.err; then
11224 ac_cpp_err=$ac_c_preproc_warn_flag
11225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11226 else
11227 ac_cpp_err=
11228 fi
11229else
11230 ac_cpp_err=yes
11231fi
11232if test -z "$ac_cpp_err"; then
11233 :
11234else
11235 echo "$as_me: failed program was:" >&5
11236sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 # Broken: fails on valid input.
11239continue
11240fi
11241rm -f conftest.err conftest.$ac_ext
11242
11243 # OK, works on sane cases. Now check whether non-existent headers
11244 # can be detected and how.
11245 cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251#include <ac_nonexistent.h>
11252_ACEOF
11253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } >/dev/null; then
11261 if test -s conftest.err; then
11262 ac_cpp_err=$ac_c_preproc_warn_flag
11263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11264 else
11265 ac_cpp_err=
11266 fi
11267else
11268 ac_cpp_err=yes
11269fi
11270if test -z "$ac_cpp_err"; then
11271 # Broken: success on invalid input.
11272continue
11273else
11274 echo "$as_me: failed program was:" >&5
11275sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 # Passes both tests.
11278ac_preproc_ok=:
11279break
11280fi
11281rm -f conftest.err conftest.$ac_ext
11282
11283done
11284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11285rm -f conftest.err conftest.$ac_ext
11286if $ac_preproc_ok; then
11287 :
11288else
11289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11290See \`config.log' for more details." >&5
11291echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11292See \`config.log' for more details." >&2;}
11293 { (exit 1); exit 1; }; }
11294fi
11295
11296ac_ext=c
11297ac_cpp='$CPP $CPPFLAGS'
11298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302
11303echo "$as_me:$LINENO: checking for egrep" >&5
11304echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11305if test "${ac_cv_prog_egrep+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11309 then ac_cv_prog_egrep='grep -E'
11310 else ac_cv_prog_egrep='egrep'
11311 fi
11312fi
11313echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11314echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11315 EGREP=$ac_cv_prog_egrep
11316
11317
11318if test $ac_cv_c_compiler_gnu = yes; then
11319 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11320echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11321if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324 ac_pattern="Autoconf.*'x'"
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331#include <sgtty.h>
11332Autoconf TIOCGETP
11333_ACEOF
11334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11335 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11336 ac_cv_prog_gcc_traditional=yes
11337else
11338 ac_cv_prog_gcc_traditional=no
11339fi
11340rm -f conftest*
11341
11342
11343 if test $ac_cv_prog_gcc_traditional = no; then
11344 cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350#include <termio.h>
11351Autoconf TCGETA
11352_ACEOF
11353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11354 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11355 ac_cv_prog_gcc_traditional=yes
11356fi
11357rm -f conftest*
11358
11359 fi
11360fi
11361echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11362echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11363 if test $ac_cv_prog_gcc_traditional = yes; then
11364 CC="$CC -traditional"
11365 fi
11366fi
11367
11368
11369
11370
11371ac_ext=cc
11372ac_cpp='$CXXCPP $CPPFLAGS'
11373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11376
11377
11378CXXFLAGS=${CXXFLAGS:=}
11379ac_ext=cc
11380ac_cpp='$CXXCPP $CPPFLAGS'
11381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11384if test -n "$ac_tool_prefix"; then
11385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11386 do
11387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11389echo "$as_me:$LINENO: checking for $ac_word" >&5
11390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11391if test "${ac_cv_prog_CXX+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 if test -n "$CXX"; then
11395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408done
11409done
11410
11411fi
11412fi
11413CXX=$ac_cv_prog_CXX
11414if test -n "$CXX"; then
11415 echo "$as_me:$LINENO: result: $CXX" >&5
11416echo "${ECHO_T}$CXX" >&6
11417else
11418 echo "$as_me:$LINENO: result: no" >&5
11419echo "${ECHO_T}no" >&6
11420fi
11421
11422 test -n "$CXX" && break
11423 done
11424fi
11425if test -z "$CXX"; then
11426 ac_ct_CXX=$CXX
11427 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11428do
11429 # Extract the first word of "$ac_prog", so it can be a program name with args.
11430set dummy $ac_prog; ac_word=$2
11431echo "$as_me:$LINENO: checking for $ac_word" >&5
11432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 if test -n "$ac_ct_CXX"; then
11437 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_ac_ct_CXX="$ac_prog"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452
11453fi
11454fi
11455ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11456if test -n "$ac_ct_CXX"; then
11457 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11458echo "${ECHO_T}$ac_ct_CXX" >&6
11459else
11460 echo "$as_me:$LINENO: result: no" >&5
11461echo "${ECHO_T}no" >&6
11462fi
11463
11464 test -n "$ac_ct_CXX" && break
11465done
11466test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11467
11468 CXX=$ac_ct_CXX
11469fi
11470
11471
11472# Provide some information about the compiler.
11473echo "$as_me:$LINENO:" \
11474 "checking for C++ compiler version" >&5
11475ac_compiler=`set X $ac_compile; echo $2`
11476{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11477 (eval $ac_compiler --version </dev/null >&5) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }
11481{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11482 (eval $ac_compiler -v </dev/null >&5) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }
11486{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11487 (eval $ac_compiler -V </dev/null >&5) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }
11491
11492echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11493echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11494if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503
11504int
11505main ()
11506{
11507#ifndef __GNUC__
11508 choke me
11509#endif
11510
11511 ;
11512 return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext
11516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
01cb68df 11524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 ac_compiler_gnu=yes
11537else
11538 echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
11541ac_compiler_gnu=no
11542fi
11543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11544ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11545
11546fi
11547echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11548echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11549GXX=`test $ac_compiler_gnu = yes && echo yes`
11550ac_test_CXXFLAGS=${CXXFLAGS+set}
11551ac_save_CXXFLAGS=$CXXFLAGS
11552CXXFLAGS="-g"
11553echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11554echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11555if test "${ac_cv_prog_cxx_g+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564
11565int
11566main ()
11567{
11568
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
01cb68df 11582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
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'
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
11601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 \
11621 '' \
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. */
11634$ac_declaration
11635#include <stdlib.h>
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
11646 (eval $ac_compile) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
01cb68df 11653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 :
11666else
11667 echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670continue
11671fi
11672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11673 cat >conftest.$ac_ext <<_ACEOF
11674/* confdefs.h. */
11675_ACEOF
11676cat confdefs.h >>conftest.$ac_ext
11677cat >>conftest.$ac_ext <<_ACEOF
11678/* end confdefs.h. */
11679$ac_declaration
11680int
11681main ()
11682{
11683exit (42);
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
01cb68df 11697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 break
11710else
11711 echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
11714fi
11715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11716done
11717rm -f conftest*
11718if test -n "$ac_declaration"; then
11719 echo '#ifdef __cplusplus' >>confdefs.h
11720 echo $ac_declaration >>confdefs.h
11721 echo '#endif' >>confdefs.h
11722fi
11723
11724ac_ext=cc
11725ac_cpp='$CXXCPP $CPPFLAGS'
11726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11729
11730
11731ac_ext=c
11732ac_cpp='$CPP $CPPFLAGS'
11733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735ac_compiler_gnu=$ac_cv_c_compiler_gnu
11736
11737
11738echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11739echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11740GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11741if test "$GCC" = "yes" ; then
11742 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11743 sed -n '1,/End of search list\./p' | \
11744 grep '^ */usr/local/include$' 2>&1 /dev/null \
11745 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11746fi
11747echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11748echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11749
11750if test -n "$ac_tool_prefix"; then
11751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11752set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11753echo "$as_me:$LINENO: checking for $ac_word" >&5
11754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11755if test "${ac_cv_prog_RANLIB+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
11758 if test -n "$RANLIB"; then
11759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11760else
11761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762for as_dir in $PATH
11763do
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11771 fi
11772done
11773done
11774
11775fi
11776fi
11777RANLIB=$ac_cv_prog_RANLIB
11778if test -n "$RANLIB"; then
11779 echo "$as_me:$LINENO: result: $RANLIB" >&5
11780echo "${ECHO_T}$RANLIB" >&6
11781else
11782 echo "$as_me:$LINENO: result: no" >&5
11783echo "${ECHO_T}no" >&6
11784fi
11785
11786fi
11787if test -z "$ac_cv_prog_RANLIB"; then
11788 ac_ct_RANLIB=$RANLIB
11789 # Extract the first word of "ranlib", so it can be a program name with args.
11790set dummy ranlib; ac_word=$2
11791echo "$as_me:$LINENO: checking for $ac_word" >&5
11792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11793if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 if test -n "$ac_ct_RANLIB"; then
11797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11798else
11799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800for as_dir in $PATH
11801do
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806 ac_cv_prog_ac_ct_RANLIB="ranlib"
11807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11809 fi
11810done
11811done
11812
11813 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11814fi
11815fi
11816ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11817if test -n "$ac_ct_RANLIB"; then
11818 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11819echo "${ECHO_T}$ac_ct_RANLIB" >&6
11820else
11821 echo "$as_me:$LINENO: result: no" >&5
11822echo "${ECHO_T}no" >&6
11823fi
11824
11825 RANLIB=$ac_ct_RANLIB
11826else
11827 RANLIB="$ac_cv_prog_RANLIB"
11828fi
11829
11830
11831# Extract the first word of "ar", so it can be a program name with args.
11832set dummy ar; ac_word=$2
11833echo "$as_me:$LINENO: checking for $ac_word" >&5
11834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11835if test "${ac_cv_prog_AR+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837else
11838 if test -n "$AR"; then
11839 ac_cv_prog_AR="$AR" # Let the user override the test.
11840else
11841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
11843do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 ac_cv_prog_AR="ar"
11849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
11852done
11853done
11854
11855fi
11856fi
11857AR=$ac_cv_prog_AR
11858if test -n "$AR"; then
11859 echo "$as_me:$LINENO: result: $AR" >&5
11860echo "${ECHO_T}$AR" >&6
11861else
11862 echo "$as_me:$LINENO: result: no" >&5
11863echo "${ECHO_T}no" >&6
11864fi
11865
11866if test "x$AR" = "x" ; then
11867 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11868echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11869 { (exit 1); exit 1; }; }
11870fi
11871
11872# Find a good install program. We prefer a C program (faster),
11873# so one script is as good as another. But avoid the broken or
11874# incompatible versions:
11875# SysV /etc/install, /usr/sbin/install
11876# SunOS /usr/etc/install
11877# IRIX /sbin/install
11878# AIX /bin/install
11879# AmigaOS /C/install, which installs bootblocks on floppy discs
11880# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11881# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11882# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11883# OS/2's system install, which has a completely different semantic
11884# ./install, which can be erroneously created by make from ./install.sh.
11885echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11886echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11887if test -z "$INSTALL"; then
11888if test "${ac_cv_path_install+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 # Account for people who put trailing slashes in PATH elements.
11897case $as_dir/ in
11898 ./ | .// | /cC/* | \
11899 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11900 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11901 /usr/ucb/* ) ;;
11902 *)
11903 # OSF1 and SCO ODT 3.0 have their own names for install.
11904 # Don't use installbsd from OSF since it installs stuff as root
11905 # by default.
11906 for ac_prog in ginstall scoinst install; do
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11909 if test $ac_prog = install &&
11910 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11911 # AIX install. It has an incompatible calling convention.
11912 :
11913 elif test $ac_prog = install &&
11914 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11915 # program-specific install script used by HP pwplus--don't use.
11916 :
11917 else
11918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11919 break 3
11920 fi
11921 fi
11922 done
11923 done
11924 ;;
11925esac
11926done
11927
11928
11929fi
11930 if test "${ac_cv_path_install+set}" = set; then
11931 INSTALL=$ac_cv_path_install
11932 else
11933 # As a last resort, use the slow shell script. We don't cache a
11934 # path for INSTALL within a source directory, because that will
11935 # break other packages using the cache if that directory is
11936 # removed, or if the path is relative.
11937 INSTALL=$ac_install_sh
11938 fi
11939fi
11940echo "$as_me:$LINENO: result: $INSTALL" >&5
11941echo "${ECHO_T}$INSTALL" >&6
11942
11943# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11944# It thinks the first close brace ends the variable substitution.
11945test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11946
11947test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11948
11949test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11950
11951
11952case ${INSTALL} in
11953 /* ) # Absolute
11954 ;;
11955 ?:* ) # Drive letter, considered as absolute.
11956 ;;
11957 *)
11958 INSTALL=`pwd`/${INSTALL} ;;
11959esac
11960
11961case ${host} in
11962 *-hp-hpux* )
11963 INSTALL_DIR="mkdir"
11964 ;;
11965
11966 *) INSTALL_DIR="$INSTALL -d"
11967 ;;
11968esac
11969
11970
11971case "${host}" in
11972
11973 powerpc-*-darwin* )
11974 INSTALL_PROGRAM="cp -fp"
11975 INSTALL_DATA="cp -fp"
11976 ;;
11977 *)
11978 ;;
11979esac
11980
11981# Extract the first word of "strip", so it can be a program name with args.
11982set dummy strip; ac_word=$2
11983echo "$as_me:$LINENO: checking for $ac_word" >&5
11984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11985if test "${ac_cv_prog_STRIP+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988 if test -n "$STRIP"; then
11989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11998 ac_cv_prog_STRIP="strip"
11999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002done
12003done
12004
12005 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12006fi
12007fi
12008STRIP=$ac_cv_prog_STRIP
12009if test -n "$STRIP"; then
12010 echo "$as_me:$LINENO: result: $STRIP" >&5
12011echo "${ECHO_T}$STRIP" >&6
12012else
12013 echo "$as_me:$LINENO: result: no" >&5
12014echo "${ECHO_T}no" >&6
12015fi
12016
12017
12018echo "$as_me:$LINENO: checking if make is GNU make" >&5
12019echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12020if test "${wx_cv_prog_makeisgnu+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023
12024 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12025 egrep -s GNU > /dev/null); then
12026 wx_cv_prog_makeisgnu="yes"
12027 else
12028 wx_cv_prog_makeisgnu="no"
12029 fi
12030
12031fi
12032echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12033echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12034
12035if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12036 IF_GNU_MAKE=""
12037else
12038 IF_GNU_MAKE="#"
12039fi
12040
12041
12042
12043if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12044echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12045echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12046if test "${wx_cv_prog_makevpath+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049
12050cat - << EOF > confMake
12051check : file
12052 cp \$? \$@
12053 cp \$? final_file
12054EOF
12055
12056if test ! -d sub ; then
12057 mkdir sub
12058fi
12059echo dummy > sub/file
12060${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12061RESULT=$?
12062rm -f sub/file check final_file confMake
12063rmdir sub
12064if test "$RESULT" = 0; then
12065 wx_cv_prog_makevpath="yes"
12066else
12067 wx_cv_prog_makevpath="no"
12068fi
12069
12070fi
12071echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12072echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12073
12074if test "x$wx_cv_prog_makevpath" != "xyes"; then
12075{ { echo "$as_me:$LINENO: error:
12076You need a make-utility that is able to use the variable
12077VPATH correctly.
12078If your version of make does not support VPATH correctly,
12079please install GNU-make (possibly as gmake), and start
12080configure with the following command:
12081export MAKE=gmake; ./configure for sh-type shells
12082setenv MAKE gmake; ./configure for csh-type shells
12083Also please do remember to use gmake in this case every time
12084you are trying to compile.
12085" >&5
12086echo "$as_me: error:
12087You need a make-utility that is able to use the variable
12088VPATH correctly.
12089If your version of make does not support VPATH correctly,
12090please install GNU-make (possibly as gmake), and start
12091configure with the following command:
12092export MAKE=gmake; ./configure for sh-type shells
12093setenv MAKE gmake; ./configure for csh-type shells
12094Also please do remember to use gmake in this case every time
12095you are trying to compile.
12096" >&2;}
12097 { (exit 1); exit 1; }; }
12098fi fi
12099echo "$as_me:$LINENO: checking whether ln -s works" >&5
12100echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12101LN_S=$as_ln_s
12102if test "$LN_S" = "ln -s"; then
12103 echo "$as_me:$LINENO: result: yes" >&5
12104echo "${ECHO_T}yes" >&6
12105else
12106 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12107echo "${ECHO_T}no, using $LN_S" >&6
12108fi
12109
12110
12111
12112case "${host}" in
12113 *-pc-os2_emx | *-pc-os2-emx )
12114 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12115 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12116echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12117if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 ac_check_lib_save_LIBS=$LIBS
12121LIBS="-lcExt $LIBS"
12122cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128
12129/* Override any gcc2 internal prototype to avoid an error. */
12130#ifdef __cplusplus
12131extern "C"
12132#endif
12133/* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135char drand48 ();
12136int
12137main ()
12138{
12139drand48 ();
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext conftest$ac_exeext
12145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
01cb68df 12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_cExt_drand48=yes
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170ac_cv_lib_cExt_drand48=no
12171fi
12172rm -f conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174LIBS=$ac_check_lib_save_LIBS
12175fi
12176echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12177echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12178if test $ac_cv_lib_cExt_drand48 = yes; then
12179 LIBS="$LIBS -lcExt"
12180fi
12181
12182 else
12183 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12184 fi
12185 echo "$as_me:$LINENO: checking for gcc version" >&5
12186echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12187if test "${wx_cv_gccversion+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190
12191 cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197
12198int
12199main ()
12200{
12201
12202 #if (__GNUC__ < 3)
12203 #error old gcc
12204 #endif
12205
12206 ;
12207 return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
12211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12212 (eval $ac_compile) 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
01cb68df 12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238
12239int
12240main ()
12241{
12242
12243 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12244 #error intermediate gcc
12245 #endif
12246
12247 ;
12248 return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext
12252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
01cb68df 12260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest.$ac_objext'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272
12273 wx_cv_gccversion=Innotek
12274
12275else
12276 echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279
12280 wx_cv_gccversion=3
12281
12282
12283fi
12284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12285
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290
12291 wx_cv_gccversion=2
12292
12293
12294fi
12295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296
12297fi
12298echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12299echo "${ECHO_T}$wx_cv_gccversion" >&6
12300 if test "$wx_cv_gccversion" = "2"; then
12301 LIBS="$LIBS -lstdcpp"
12302 LDFLAGS="$LDFLAGS -Zsysv-signals"
12303 else
12304 if test "$wx_cv_gccversion" = "3"; then
12305 LIBS="$LIBS -lstdcxx"
12306 LDFLAGS="$LDFLAGS -Zsysv-signals"
12307 else
12308 LIBS="$LIBS -lstdc++"
12309 fi
12310 fi
12311 if test "$wxUSE_OMF" = "yes"; then
12312 LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12313 fi
12314 ;;
12315 *)
12316
12317
12318
12319 ac_ext=cc
12320ac_cpp='$CXXCPP $CPPFLAGS'
12321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12324
12325
12326
12327echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12328echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12329if test "${ac_cv_string_strcasecmp+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331else
12332
12333 cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
12339
12340 #include <string.h>
12341
12342int
12343main ()
12344{
12345
12346 strcasecmp("foo", "bar");
12347
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
01cb68df 12361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12373 ac_cv_string_strcasecmp=yes
12374else
12375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378ac_cv_string_strcasecmp=no
12379
12380fi
12381rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383
12384fi
12385echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12386echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12387
12388 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12389 cat >>confdefs.h <<\_ACEOF
12390#define HAVE_STRCASECMP_IN_STRING_H 1
12391_ACEOF
12392
12393 else
12394 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12395echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12396if test "${ac_cv_strings_strcasecmp+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398else
12399
12400 cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
12406
12407 #include <strings.h>
12408
12409int
12410main ()
12411{
12412
12413 strcasecmp("foo", "bar");
12414
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
01cb68df 12428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_strings_strcasecmp=yes
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445ac_cv_strings_strcasecmp=no
12446
12447fi
12448rm -f conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450
12451fi
12452echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12453echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12454
12455 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12456 cat >>confdefs.h <<\_ACEOF
12457#define HAVE_STRCASECMP_IN_STRINGS_H 1
12458_ACEOF
12459
12460 else
12461 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12462echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12463 { (exit 1); exit 1; }; }
12464 fi
12465 fi
12466
12467 ac_ext=c
12468ac_cpp='$CPP $CPPFLAGS'
12469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12471ac_compiler_gnu=$ac_cv_c_compiler_gnu
12472
12473 ;;
12474esac
12475
12476
12477echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12478echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12479if test "${ac_cv_header_stdc+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482 cat >conftest.$ac_ext <<_ACEOF
12483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
12488#include <stdlib.h>
12489#include <stdarg.h>
12490#include <string.h>
12491#include <float.h>
12492
12493int
12494main ()
12495{
12496
12497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext
12502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
01cb68df 12510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_header_stdc=yes
12523else
12524 echo "$as_me: failed program was:" >&5
12525sed 's/^/| /' conftest.$ac_ext >&5
12526
12527ac_cv_header_stdc=no
12528fi
12529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12530
12531if test $ac_cv_header_stdc = yes; then
12532 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12533 cat >conftest.$ac_ext <<_ACEOF
12534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539#include <string.h>
12540
12541_ACEOF
12542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12543 $EGREP "memchr" >/dev/null 2>&1; then
12544 :
12545else
12546 ac_cv_header_stdc=no
12547fi
12548rm -f conftest*
12549
12550fi
12551
12552if test $ac_cv_header_stdc = yes; then
12553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560#include <stdlib.h>
12561
12562_ACEOF
12563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12564 $EGREP "free" >/dev/null 2>&1; then
12565 :
12566else
12567 ac_cv_header_stdc=no
12568fi
12569rm -f conftest*
12570
12571fi
12572
12573if test $ac_cv_header_stdc = yes; then
12574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12575 if test "$cross_compiling" = yes; then
12576 :
12577else
12578 cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h. */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h. */
12584#include <ctype.h>
12585#if ((' ' & 0x0FF) == 0x020)
12586# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12587# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12588#else
12589# define ISLOWER(c) \
12590 (('a' <= (c) && (c) <= 'i') \
12591 || ('j' <= (c) && (c) <= 'r') \
12592 || ('s' <= (c) && (c) <= 'z'))
12593# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12594#endif
12595
12596#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12597int
12598main ()
12599{
12600 int i;
12601 for (i = 0; i < 256; i++)
12602 if (XOR (islower (i), ISLOWER (i))
12603 || toupper (i) != TOUPPER (i))
12604 exit(2);
12605 exit (0);
12606}
12607_ACEOF
12608rm -f conftest$ac_exeext
12609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610 (eval $ac_link) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 :
12620else
12621 echo "$as_me: program exited with status $ac_status" >&5
12622echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
12625( exit $ac_status )
12626ac_cv_header_stdc=no
12627fi
12628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12629fi
12630fi
12631fi
12632echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12633echo "${ECHO_T}$ac_cv_header_stdc" >&6
12634if test $ac_cv_header_stdc = yes; then
12635
12636cat >>confdefs.h <<\_ACEOF
12637#define STDC_HEADERS 1
12638_ACEOF
12639
12640fi
12641
12642# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12653 inttypes.h stdint.h unistd.h
12654do
12655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12656echo "$as_me:$LINENO: checking for $ac_header" >&5
12657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12658if eval "test \"\${$as_ac_Header+set}\" = set"; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
12661 cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667$ac_includes_default
12668
12669#include <$ac_header>
12670_ACEOF
12671rm -f conftest.$ac_objext
12672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
01cb68df 12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 eval "$as_ac_Header=yes"
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697eval "$as_ac_Header=no"
12698fi
12699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12700fi
12701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12703if test `eval echo '${'$as_ac_Header'}'` = yes; then
12704 cat >>confdefs.h <<_ACEOF
12705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12706_ACEOF
12707
12708fi
12709
12710done
12711
12712
12713
12714for ac_header in stdlib.h
12715do
12716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12717if eval "test \"\${$as_ac_Header+set}\" = set"; then
12718 echo "$as_me:$LINENO: checking for $ac_header" >&5
12719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12720if eval "test \"\${$as_ac_Header+set}\" = set"; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722fi
12723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12725else
12726 # Is the header compilable?
12727echo "$as_me:$LINENO: checking $ac_header usability" >&5
12728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12729cat >conftest.$ac_ext <<_ACEOF
12730/* confdefs.h. */
12731_ACEOF
12732cat confdefs.h >>conftest.$ac_ext
12733cat >>conftest.$ac_ext <<_ACEOF
12734/* end confdefs.h. */
12735$ac_includes_default
12736#include <$ac_header>
12737_ACEOF
12738rm -f conftest.$ac_objext
12739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12740 (eval $ac_compile) 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
01cb68df 12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; } &&
12753 { ac_try='test -s conftest.$ac_objext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_header_compiler=yes
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764ac_header_compiler=no
12765fi
12766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12768echo "${ECHO_T}$ac_header_compiler" >&6
12769
12770# Is the header present?
12771echo "$as_me:$LINENO: checking $ac_header presence" >&5
12772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12773cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779#include <$ac_header>
12780_ACEOF
12781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } >/dev/null; then
12789 if test -s conftest.err; then
12790 ac_cpp_err=$ac_c_preproc_warn_flag
12791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12792 else
12793 ac_cpp_err=
12794 fi
12795else
12796 ac_cpp_err=yes
12797fi
12798if test -z "$ac_cpp_err"; then
12799 ac_header_preproc=yes
12800else
12801 echo "$as_me: failed program was:" >&5
12802sed 's/^/| /' conftest.$ac_ext >&5
12803
12804 ac_header_preproc=no
12805fi
12806rm -f conftest.err conftest.$ac_ext
12807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12808echo "${ECHO_T}$ac_header_preproc" >&6
12809
12810# So? What about this header?
12811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12812 yes:no: )
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12817 ac_header_preproc=yes
12818 ;;
12819 no:yes:* )
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12832 (
12833 cat <<\_ASBOX
12834## ----------------------------------------- ##
12835## Report this to wx-dev@lists.wxwindows.org ##
12836## ----------------------------------------- ##
12837_ASBOX
12838 ) |
12839 sed "s/^/$as_me: WARNING: /" >&2
12840 ;;
12841esac
12842echo "$as_me:$LINENO: checking for $ac_header" >&5
12843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12844if eval "test \"\${$as_ac_Header+set}\" = set"; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847 eval "$as_ac_Header=\$ac_header_preproc"
12848fi
12849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12851
12852fi
12853if test `eval echo '${'$as_ac_Header'}'` = yes; then
12854 cat >>confdefs.h <<_ACEOF
12855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12856_ACEOF
12857
12858fi
12859
12860done
12861
12862
12863for ac_header in malloc.h
12864do
12865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867 echo "$as_me:$LINENO: checking for $ac_header" >&5
12868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12869if eval "test \"\${$as_ac_Header+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871fi
12872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12874else
12875 # Is the header compilable?
12876echo "$as_me:$LINENO: checking $ac_header usability" >&5
12877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12878cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884$ac_includes_default
12885#include <$ac_header>
12886_ACEOF
12887rm -f conftest.$ac_objext
12888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
01cb68df 12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_header_compiler=yes
12909else
12910 echo "$as_me: failed program was:" >&5
12911sed 's/^/| /' conftest.$ac_ext >&5
12912
12913ac_header_compiler=no
12914fi
12915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12917echo "${ECHO_T}$ac_header_compiler" >&6
12918
12919# Is the header present?
12920echo "$as_me:$LINENO: checking $ac_header presence" >&5
12921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12922cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h. */
12928#include <$ac_header>
12929_ACEOF
12930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } >/dev/null; then
12938 if test -s conftest.err; then
12939 ac_cpp_err=$ac_c_preproc_warn_flag
12940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12941 else
12942 ac_cpp_err=
12943 fi
12944else
12945 ac_cpp_err=yes
12946fi
12947if test -z "$ac_cpp_err"; then
12948 ac_header_preproc=yes
12949else
12950 echo "$as_me: failed program was:" >&5
12951sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 ac_header_preproc=no
12954fi
12955rm -f conftest.err conftest.$ac_ext
12956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12957echo "${ECHO_T}$ac_header_preproc" >&6
12958
12959# So? What about this header?
12960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12961 yes:no: )
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12966 ac_header_preproc=yes
12967 ;;
12968 no:yes:* )
12969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12981 (
12982 cat <<\_ASBOX
12983## ----------------------------------------- ##
12984## Report this to wx-dev@lists.wxwindows.org ##
12985## ----------------------------------------- ##
12986_ASBOX
12987 ) |
12988 sed "s/^/$as_me: WARNING: /" >&2
12989 ;;
12990esac
12991echo "$as_me:$LINENO: checking for $ac_header" >&5
12992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12993if eval "test \"\${$as_ac_Header+set}\" = set"; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12995else
12996 eval "$as_ac_Header=\$ac_header_preproc"
12997fi
12998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13000
13001fi
13002if test `eval echo '${'$as_ac_Header'}'` = yes; then
13003 cat >>confdefs.h <<_ACEOF
13004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13005_ACEOF
13006
13007fi
13008
13009done
13010
13011
13012for ac_header in unistd.h
13013do
13014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13015if eval "test \"\${$as_ac_Header+set}\" = set"; then
13016 echo "$as_me:$LINENO: checking for $ac_header" >&5
13017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13018if eval "test \"\${$as_ac_Header+set}\" = set"; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020fi
13021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13023else
13024 # Is the header compilable?
13025echo "$as_me:$LINENO: checking $ac_header usability" >&5
13026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13027cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033$ac_includes_default
13034#include <$ac_header>
13035_ACEOF
13036rm -f conftest.$ac_objext
13037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
01cb68df 13045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; } &&
13051 { ac_try='test -s conftest.$ac_objext'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_header_compiler=yes
13058else
13059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062ac_header_compiler=no
13063fi
13064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13066echo "${ECHO_T}$ac_header_compiler" >&6
13067
13068# Is the header present?
13069echo "$as_me:$LINENO: checking $ac_header presence" >&5
13070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13071cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077#include <$ac_header>
13078_ACEOF
13079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13081 ac_status=$?
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } >/dev/null; then
13087 if test -s conftest.err; then
13088 ac_cpp_err=$ac_c_preproc_warn_flag
13089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13090 else
13091 ac_cpp_err=
13092 fi
13093else
13094 ac_cpp_err=yes
13095fi
13096if test -z "$ac_cpp_err"; then
13097 ac_header_preproc=yes
13098else
13099 echo "$as_me: failed program was:" >&5
13100sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 ac_header_preproc=no
13103fi
13104rm -f conftest.err conftest.$ac_ext
13105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13106echo "${ECHO_T}$ac_header_preproc" >&6
13107
13108# So? What about this header?
13109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13110 yes:no: )
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13114echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13115 ac_header_preproc=yes
13116 ;;
13117 no:yes:* )
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13121echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13123echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13125echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13129echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13130 (
13131 cat <<\_ASBOX
13132## ----------------------------------------- ##
13133## Report this to wx-dev@lists.wxwindows.org ##
13134## ----------------------------------------- ##
13135_ASBOX
13136 ) |
13137 sed "s/^/$as_me: WARNING: /" >&2
13138 ;;
13139esac
13140echo "$as_me:$LINENO: checking for $ac_header" >&5
13141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13142if eval "test \"\${$as_ac_Header+set}\" = set"; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144else
13145 eval "$as_ac_Header=\$ac_header_preproc"
13146fi
13147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13149
13150fi
13151if test `eval echo '${'$as_ac_Header'}'` = yes; then
13152 cat >>confdefs.h <<_ACEOF
13153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13154_ACEOF
13155
13156fi
13157
13158done
13159
13160
13161for ac_header in wchar.h
13162do
13163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13164if eval "test \"\${$as_ac_Header+set}\" = set"; then
13165 echo "$as_me:$LINENO: checking for $ac_header" >&5
13166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13167if eval "test \"\${$as_ac_Header+set}\" = set"; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169fi
13170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13172else
13173 # Is the header compilable?
13174echo "$as_me:$LINENO: checking $ac_header usability" >&5
13175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13176cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182$ac_includes_default
13183#include <$ac_header>
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
01cb68df 13194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 ac_header_compiler=yes
13207else
13208 echo "$as_me: failed program was:" >&5
13209sed 's/^/| /' conftest.$ac_ext >&5
13210
13211ac_header_compiler=no
13212fi
13213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13215echo "${ECHO_T}$ac_header_compiler" >&6
13216
13217# Is the header present?
13218echo "$as_me:$LINENO: checking $ac_header presence" >&5
13219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13220cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226#include <$ac_header>
13227_ACEOF
13228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev/null; then
13236 if test -s conftest.err; then
13237 ac_cpp_err=$ac_c_preproc_warn_flag
13238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13239 else
13240 ac_cpp_err=
13241 fi
13242else
13243 ac_cpp_err=yes
13244fi
13245if test -z "$ac_cpp_err"; then
13246 ac_header_preproc=yes
13247else
13248 echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 ac_header_preproc=no
13252fi
13253rm -f conftest.err conftest.$ac_ext
13254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13255echo "${ECHO_T}$ac_header_preproc" >&6
13256
13257# So? What about this header?
13258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13259 yes:no: )
13260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13264 ac_header_preproc=yes
13265 ;;
13266 no:yes:* )
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13279 (
13280 cat <<\_ASBOX
13281## ----------------------------------------- ##
13282## Report this to wx-dev@lists.wxwindows.org ##
13283## ----------------------------------------- ##
13284_ASBOX
13285 ) |
13286 sed "s/^/$as_me: WARNING: /" >&2
13287 ;;
13288esac
13289echo "$as_me:$LINENO: checking for $ac_header" >&5
13290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13291if eval "test \"\${$as_ac_Header+set}\" = set"; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293else
13294 eval "$as_ac_Header=\$ac_header_preproc"
13295fi
13296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13298
13299fi
13300if test `eval echo '${'$as_ac_Header'}'` = yes; then
13301 cat >>confdefs.h <<_ACEOF
13302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13303_ACEOF
13304
13305fi
13306
13307done
13308
13309
13310if test "$ac_cv_header_wchar_h" != "yes"; then
13311
13312for ac_header in wcstr.h
13313do
13314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13315if eval "test \"\${$as_ac_Header+set}\" = set"; then
13316 echo "$as_me:$LINENO: checking for $ac_header" >&5
13317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13318if eval "test \"\${$as_ac_Header+set}\" = set"; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13320fi
13321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13323else
13324 # Is the header compilable?
13325echo "$as_me:$LINENO: checking $ac_header usability" >&5
13326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13327cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
13333$ac_includes_default
13334#include <$ac_header>
13335_ACEOF
13336rm -f conftest.$ac_objext
13337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338 (eval $ac_compile) 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
01cb68df 13345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_header_compiler=yes
13358else
13359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362ac_header_compiler=no
13363fi
13364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13366echo "${ECHO_T}$ac_header_compiler" >&6
13367
13368# Is the header present?
13369echo "$as_me:$LINENO: checking $ac_header presence" >&5
13370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377#include <$ac_header>
13378_ACEOF
13379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } >/dev/null; then
13387 if test -s conftest.err; then
13388 ac_cpp_err=$ac_c_preproc_warn_flag
13389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13390 else
13391 ac_cpp_err=
13392 fi
13393else
13394 ac_cpp_err=yes
13395fi
13396if test -z "$ac_cpp_err"; then
13397 ac_header_preproc=yes
13398else
13399 echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_header_preproc=no
13403fi
13404rm -f conftest.err conftest.$ac_ext
13405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13406echo "${ECHO_T}$ac_header_preproc" >&6
13407
13408# So? What about this header?
13409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13410 yes:no: )
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13414echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13415 ac_header_preproc=yes
13416 ;;
13417 no:yes:* )
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13423echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13425echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13429echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13430 (
13431 cat <<\_ASBOX
13432## ----------------------------------------- ##
13433## Report this to wx-dev@lists.wxwindows.org ##
13434## ----------------------------------------- ##
13435_ASBOX
13436 ) |
13437 sed "s/^/$as_me: WARNING: /" >&2
13438 ;;
13439esac
13440echo "$as_me:$LINENO: checking for $ac_header" >&5
13441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13442if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 eval "$as_ac_Header=\$ac_header_preproc"
13446fi
13447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449
13450fi
13451if test `eval echo '${'$as_ac_Header'}'` = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13454_ACEOF
13455
13456fi
13457
13458done
13459
13460fi
13461
13462
13463for ac_header in fnmatch.h
13464do
13465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13466if eval "test \"\${$as_ac_Header+set}\" = set"; then
13467 echo "$as_me:$LINENO: checking for $ac_header" >&5
13468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13469if eval "test \"\${$as_ac_Header+set}\" = set"; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471fi
13472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13474else
13475 # Is the header compilable?
13476echo "$as_me:$LINENO: checking $ac_header usability" >&5
13477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13478cat >conftest.$ac_ext <<_ACEOF
13479/* confdefs.h. */
13480_ACEOF
13481cat confdefs.h >>conftest.$ac_ext
13482cat >>conftest.$ac_ext <<_ACEOF
13483/* end confdefs.h. */
13484$ac_includes_default
13485#include <$ac_header>
13486_ACEOF
13487rm -f conftest.$ac_objext
13488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
01cb68df 13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest.$ac_objext'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_header_compiler=yes
13509else
13510 echo "$as_me: failed program was:" >&5
13511sed 's/^/| /' conftest.$ac_ext >&5
13512
13513ac_header_compiler=no
13514fi
13515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517echo "${ECHO_T}$ac_header_compiler" >&6
13518
13519# Is the header present?
13520echo "$as_me:$LINENO: checking $ac_header presence" >&5
13521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13522cat >conftest.$ac_ext <<_ACEOF
13523/* confdefs.h. */
13524_ACEOF
13525cat confdefs.h >>conftest.$ac_ext
13526cat >>conftest.$ac_ext <<_ACEOF
13527/* end confdefs.h. */
13528#include <$ac_header>
13529_ACEOF
13530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } >/dev/null; then
13538 if test -s conftest.err; then
13539 ac_cpp_err=$ac_c_preproc_warn_flag
13540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13541 else
13542 ac_cpp_err=
13543 fi
13544else
13545 ac_cpp_err=yes
13546fi
13547if test -z "$ac_cpp_err"; then
13548 ac_header_preproc=yes
13549else
13550 echo "$as_me: failed program was:" >&5
13551sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_header_preproc=no
13554fi
13555rm -f conftest.err conftest.$ac_ext
13556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13557echo "${ECHO_T}$ac_header_preproc" >&6
13558
13559# So? What about this header?
13560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13561 yes:no: )
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13566 ac_header_preproc=yes
13567 ;;
13568 no:yes:* )
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13581 (
13582 cat <<\_ASBOX
13583## ----------------------------------------- ##
13584## Report this to wx-dev@lists.wxwindows.org ##
13585## ----------------------------------------- ##
13586_ASBOX
13587 ) |
13588 sed "s/^/$as_me: WARNING: /" >&2
13589 ;;
13590esac
13591echo "$as_me:$LINENO: checking for $ac_header" >&5
13592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13593if eval "test \"\${$as_ac_Header+set}\" = set"; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595else
13596 eval "$as_ac_Header=\$ac_header_preproc"
13597fi
13598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13600
13601fi
13602if test `eval echo '${'$as_ac_Header'}'` = yes; then
13603 cat >>confdefs.h <<_ACEOF
13604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13605_ACEOF
13606
13607fi
13608
13609done
13610
13611
13612if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13613
13614for ac_func in fnmatch
13615do
13616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13617echo "$as_me:$LINENO: checking for $ac_func" >&5
13618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13619if eval "test \"\${$as_ac_var+set}\" = set"; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13630#define $ac_func innocuous_$ac_func
13631
13632/* System header to define __stub macros and hopefully few prototypes,
13633 which can conflict with char $ac_func (); below.
13634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13635 <limits.h> exists even on freestanding compilers. */
13636
13637#ifdef __STDC__
13638# include <limits.h>
13639#else
13640# include <assert.h>
13641#endif
13642
13643#undef $ac_func
13644
13645/* Override any gcc2 internal prototype to avoid an error. */
13646#ifdef __cplusplus
13647extern "C"
13648{
13649#endif
13650/* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13652char $ac_func ();
13653/* The GNU C library defines this for functions which it implements
13654 to always fail with ENOSYS. Some functions are actually named
13655 something starting with __ and the normal name is an alias. */
13656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13657choke me
13658#else
13659char (*f) () = $ac_func;
13660#endif
13661#ifdef __cplusplus
13662}
13663#endif
13664
13665int
13666main ()
13667{
13668return f != $ac_func;
13669 ;
13670 return 0;
13671}
13672_ACEOF
13673rm -f conftest.$ac_objext conftest$ac_exeext
13674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675 (eval $ac_link) 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
01cb68df 13682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest$ac_exeext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 eval "$as_ac_var=yes"
13695else
13696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699eval "$as_ac_var=no"
13700fi
13701rm -f conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13703fi
13704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13706if test `eval echo '${'$as_ac_var'}'` = yes; then
13707 cat >>confdefs.h <<_ACEOF
13708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13709_ACEOF
13710
13711fi
13712done
13713
13714fi
13715
13716
13717for ac_header in langinfo.h
13718do
13719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13720if eval "test \"\${$as_ac_Header+set}\" = set"; then
13721 echo "$as_me:$LINENO: checking for $ac_header" >&5
13722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13723if eval "test \"\${$as_ac_Header+set}\" = set"; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725fi
13726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13728else
13729 # Is the header compilable?
13730echo "$as_me:$LINENO: checking $ac_header usability" >&5
13731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13732cat >conftest.$ac_ext <<_ACEOF
13733/* confdefs.h. */
13734_ACEOF
13735cat confdefs.h >>conftest.$ac_ext
13736cat >>conftest.$ac_ext <<_ACEOF
13737/* end confdefs.h. */
13738$ac_includes_default
13739#include <$ac_header>
13740_ACEOF
13741rm -f conftest.$ac_objext
13742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
01cb68df 13750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest.$ac_objext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_header_compiler=yes
13763else
13764 echo "$as_me: failed program was:" >&5
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
13767ac_header_compiler=no
13768fi
13769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13771echo "${ECHO_T}$ac_header_compiler" >&6
13772
13773# Is the header present?
13774echo "$as_me:$LINENO: checking $ac_header presence" >&5
13775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13776cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782#include <$ac_header>
13783_ACEOF
13784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } >/dev/null; then
13792 if test -s conftest.err; then
13793 ac_cpp_err=$ac_c_preproc_warn_flag
13794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13795 else
13796 ac_cpp_err=
13797 fi
13798else
13799 ac_cpp_err=yes
13800fi
13801if test -z "$ac_cpp_err"; then
13802 ac_header_preproc=yes
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_header_preproc=no
13808fi
13809rm -f conftest.err conftest.$ac_ext
13810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13811echo "${ECHO_T}$ac_header_preproc" >&6
13812
13813# So? What about this header?
13814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13815 yes:no: )
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13820 ac_header_preproc=yes
13821 ;;
13822 no:yes:* )
13823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13830echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13835 (
13836 cat <<\_ASBOX
13837## ----------------------------------------- ##
13838## Report this to wx-dev@lists.wxwindows.org ##
13839## ----------------------------------------- ##
13840_ASBOX
13841 ) |
13842 sed "s/^/$as_me: WARNING: /" >&2
13843 ;;
13844esac
13845echo "$as_me:$LINENO: checking for $ac_header" >&5
13846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13847if eval "test \"\${$as_ac_Header+set}\" = set"; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850 eval "$as_ac_Header=\$ac_header_preproc"
13851fi
13852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13854
13855fi
13856if test `eval echo '${'$as_ac_Header'}'` = yes; then
13857 cat >>confdefs.h <<_ACEOF
13858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13859_ACEOF
13860
13861fi
13862
13863done
13864
13865
13866case "${host}" in
13867 *-pc-os2_emx | *-pc-os2-emx )
13868 if test $ac_cv_header_langinfo_h = "yes"; then
13869 LIBS="$LIBS -lintl"
13870 fi
13871 ;;
13872esac
13873
13874if test "$wxUSE_GUI" = "yes"; then
13875 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13876
13877for ac_header in X11/Xlib.h
13878do
13879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13880if eval "test \"\${$as_ac_Header+set}\" = set"; then
13881 echo "$as_me:$LINENO: checking for $ac_header" >&5
13882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13883if eval "test \"\${$as_ac_Header+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885fi
13886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13888else
13889 # Is the header compilable?
13890echo "$as_me:$LINENO: checking $ac_header usability" >&5
13891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13892cat >conftest.$ac_ext <<_ACEOF
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898$ac_includes_default
13899#include <$ac_header>
13900_ACEOF
13901rm -f conftest.$ac_objext
13902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903 (eval $ac_compile) 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
01cb68df 13910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_header_compiler=yes
13923else
13924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927ac_header_compiler=no
13928fi
13929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13931echo "${ECHO_T}$ac_header_compiler" >&6
13932
13933# Is the header present?
13934echo "$as_me:$LINENO: checking $ac_header presence" >&5
13935echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13936cat >conftest.$ac_ext <<_ACEOF
13937/* confdefs.h. */
13938_ACEOF
13939cat confdefs.h >>conftest.$ac_ext
13940cat >>conftest.$ac_ext <<_ACEOF
13941/* end confdefs.h. */
13942#include <$ac_header>
13943_ACEOF
13944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } >/dev/null; then
13952 if test -s conftest.err; then
13953 ac_cpp_err=$ac_c_preproc_warn_flag
13954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13955 else
13956 ac_cpp_err=
13957 fi
13958else
13959 ac_cpp_err=yes
13960fi
13961if test -z "$ac_cpp_err"; then
13962 ac_header_preproc=yes
13963else
13964 echo "$as_me: failed program was:" >&5
13965sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 ac_header_preproc=no
13968fi
13969rm -f conftest.err conftest.$ac_ext
13970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971echo "${ECHO_T}$ac_header_preproc" >&6
13972
13973# So? What about this header?
13974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13975 yes:no: )
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc=yes
13981 ;;
13982 no:yes:* )
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13986echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13990echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13995 (
13996 cat <<\_ASBOX
13997## ----------------------------------------- ##
13998## Report this to wx-dev@lists.wxwindows.org ##
13999## ----------------------------------------- ##
14000_ASBOX
14001 ) |
14002 sed "s/^/$as_me: WARNING: /" >&2
14003 ;;
14004esac
14005echo "$as_me:$LINENO: checking for $ac_header" >&5
14006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010 eval "$as_ac_Header=\$ac_header_preproc"
14011fi
14012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014
14015fi
14016if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019_ACEOF
14020
14021fi
14022
14023done
14024
14025
14026for ac_header in X11/XKBlib.h
14027do
14028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029echo "$as_me:$LINENO: checking for $ac_header" >&5
14030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 cat >conftest.$ac_ext <<_ACEOF
14035/* confdefs.h. */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h. */
14040
14041 #if HAVE_X11_XLIB_H
14042 #include <X11/Xlib.h>
14043 #endif
14044
14045
14046#include <$ac_header>
14047_ACEOF
14048rm -f conftest.$ac_objext
14049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
01cb68df 14057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest.$ac_objext'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 eval "$as_ac_Header=yes"
14070else
14071 echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074eval "$as_ac_Header=no"
14075fi
14076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14077fi
14078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14080if test `eval echo '${'$as_ac_Header'}'` = yes; then
14081 cat >>confdefs.h <<_ACEOF
14082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14083_ACEOF
14084
14085fi
14086
14087done
14088
14089 fi
14090fi
14091
14092
14093echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14094echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14095if test "${ac_cv_c_const+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097else
14098 cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
14103/* end confdefs.h. */
14104
14105int
14106main ()
14107{
14108/* FIXME: Include the comments suggested by Paul. */
14109#ifndef __cplusplus
14110 /* Ultrix mips cc rejects this. */
14111 typedef int charset[2];
14112 const charset x;
14113 /* SunOS 4.1.1 cc rejects this. */
14114 char const *const *ccp;
14115 char **p;
14116 /* NEC SVR4.0.2 mips cc rejects this. */
14117 struct point {int x, y;};
14118 static struct point const zero = {0,0};
14119 /* AIX XL C 1.02.0.0 rejects this.
14120 It does not let you subtract one const X* pointer from another in
14121 an arm of an if-expression whose if-part is not a constant
14122 expression */
14123 const char *g = "string";
14124 ccp = &g + (g ? g-g : 0);
14125 /* HPUX 7.0 cc rejects these. */
14126 ++ccp;
14127 p = (char**) ccp;
14128 ccp = (char const *const *) p;
14129 { /* SCO 3.2v4 cc rejects this. */
14130 char *t;
14131 char const *s = 0 ? (char *) 0 : (char const *) 0;
14132
14133 *t++ = 0;
14134 }
14135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14136 int x[] = {25, 17};
14137 const int *foo = &x[0];
14138 ++foo;
14139 }
14140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14141 typedef const int *iptr;
14142 iptr p = 0;
14143 ++p;
14144 }
14145 { /* AIX XL C 1.02.0.0 rejects this saying
14146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14147 struct s { int j; const int *ap[3]; };
14148 struct s *b; b->j = 5;
14149 }
14150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14151 const int foo = 10;
14152 }
14153#endif
14154
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
01cb68df 14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_c_const=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_cv_c_const=no
14186fi
14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188fi
14189echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14190echo "${ECHO_T}$ac_cv_c_const" >&6
14191if test $ac_cv_c_const = no; then
14192
14193cat >>confdefs.h <<\_ACEOF
14194#define const
14195_ACEOF
14196
14197fi
14198
14199echo "$as_me:$LINENO: checking for inline" >&5
14200echo $ECHO_N "checking for inline... $ECHO_C" >&6
14201if test "${ac_cv_c_inline+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204 ac_cv_c_inline=no
14205for ac_kw in inline __inline__ __inline; do
14206 cat >conftest.$ac_ext <<_ACEOF
14207/* confdefs.h. */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h. */
14212#ifndef __cplusplus
14213typedef int foo_t;
14214static $ac_kw foo_t static_foo () {return 0; }
14215$ac_kw foo_t foo () {return 0; }
14216#endif
14217
14218_ACEOF
14219rm -f conftest.$ac_objext
14220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221 (eval $ac_compile) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
01cb68df 14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest.$ac_objext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_c_inline=$ac_kw; break
14241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245fi
14246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14247done
14248
14249fi
14250echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14251echo "${ECHO_T}$ac_cv_c_inline" >&6
14252
14253
14254case $ac_cv_c_inline in
14255 inline | yes) ;;
14256 *)
14257 case $ac_cv_c_inline in
14258 no) ac_val=;;
14259 *) ac_val=$ac_cv_c_inline;;
14260 esac
14261 cat >>confdefs.h <<_ACEOF
14262#ifndef __cplusplus
14263#define inline $ac_val
14264#endif
14265_ACEOF
14266 ;;
14267esac
14268
14269
14270echo "$as_me:$LINENO: checking for char" >&5
14271echo $ECHO_N "checking for char... $ECHO_C" >&6
14272if test "${ac_cv_type_char+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 cat >conftest.$ac_ext <<_ACEOF
14276/* confdefs.h. */
14277_ACEOF
14278cat confdefs.h >>conftest.$ac_ext
14279cat >>conftest.$ac_ext <<_ACEOF
14280/* end confdefs.h. */
14281$ac_includes_default
14282int
14283main ()
14284{
14285if ((char *) 0)
14286 return 0;
14287if (sizeof (char))
14288 return 0;
14289 ;
14290 return 0;
14291}
14292_ACEOF
14293rm -f conftest.$ac_objext
14294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14295 (eval $ac_compile) 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
01cb68df 14302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_type_char=yes
14315else
14316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
14319ac_cv_type_char=no
14320fi
14321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322fi
14323echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14324echo "${ECHO_T}$ac_cv_type_char" >&6
14325
14326echo "$as_me:$LINENO: checking size of char" >&5
14327echo $ECHO_N "checking size of char... $ECHO_C" >&6
14328if test "${ac_cv_sizeof_char+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330else
14331 if test "$ac_cv_type_char" = yes; then
14332 # The cast to unsigned long works around a bug in the HP C Compiler
14333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14335 # This bug is HP SR number 8606223364.
14336 if test "$cross_compiling" = yes; then
14337 # Depending upon the size, compute the lo and hi bounds.
14338cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
14344$ac_includes_default
14345int
14346main ()
14347{
14348static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14349test_array [0] = 0
14350
14351 ;
14352 return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext
14356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
01cb68df 14364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_lo=0 ac_mid=0
14377 while :; do
14378 cat >conftest.$ac_ext <<_ACEOF
14379/* confdefs.h. */
14380_ACEOF
14381cat confdefs.h >>conftest.$ac_ext
14382cat >>conftest.$ac_ext <<_ACEOF
14383/* end confdefs.h. */
14384$ac_includes_default
14385int
14386main ()
14387{
14388static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14389test_array [0] = 0
14390
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397 (eval $ac_compile) 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
01cb68df 14404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_hi=$ac_mid; break
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
14421ac_lo=`expr $ac_mid + 1`
14422 if test $ac_lo -le $ac_mid; then
14423 ac_lo= ac_hi=
14424 break
14425 fi
14426 ac_mid=`expr 2 '*' $ac_mid + 1`
14427fi
14428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 done
14430else
14431 echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
14433
14434cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h. */
14440$ac_includes_default
14441int
14442main ()
14443{
14444static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14445test_array [0] = 0
14446
14447 ;
14448 return 0;
14449}
14450_ACEOF
14451rm -f conftest.$ac_objext
14452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
01cb68df 14460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_hi=-1 ac_mid=-1
14473 while :; do
14474 cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
14480$ac_includes_default
14481int
14482main ()
14483{
14484static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14485test_array [0] = 0
14486
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491rm -f conftest.$ac_objext
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
01cb68df 14500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_lo=$ac_mid; break
14513else
14514 echo "$as_me: failed program was:" >&5
14515sed 's/^/| /' conftest.$ac_ext >&5
14516
14517ac_hi=`expr '(' $ac_mid ')' - 1`
14518 if test $ac_mid -le $ac_hi; then
14519 ac_lo= ac_hi=
14520 break
14521 fi
14522 ac_mid=`expr 2 '*' $ac_mid`
14523fi
14524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14525 done
14526else
14527 echo "$as_me: failed program was:" >&5
14528sed 's/^/| /' conftest.$ac_ext >&5
14529
14530ac_lo= ac_hi=
14531fi
14532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14533fi
14534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14535# Binary search between lo and hi bounds.
14536while test "x$ac_lo" != "x$ac_hi"; do
14537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14538 cat >conftest.$ac_ext <<_ACEOF
14539/* confdefs.h. */
14540_ACEOF
14541cat confdefs.h >>conftest.$ac_ext
14542cat >>conftest.$ac_ext <<_ACEOF
14543/* end confdefs.h. */
14544$ac_includes_default
14545int
14546main ()
14547{
14548static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14549test_array [0] = 0
14550
14551 ;
14552 return 0;
14553}
14554_ACEOF
14555rm -f conftest.$ac_objext
14556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } &&
01cb68df 14564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest.$ac_objext'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14573 ac_status=$?
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 ac_hi=$ac_mid
14577else
14578 echo "$as_me: failed program was:" >&5
14579sed 's/^/| /' conftest.$ac_ext >&5
14580
14581ac_lo=`expr '(' $ac_mid ')' + 1`
14582fi
14583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584done
14585case $ac_lo in
14586?*) ac_cv_sizeof_char=$ac_lo;;
14587'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14588See \`config.log' for more details." >&5
14589echo "$as_me: error: cannot compute sizeof (char), 77
14590See \`config.log' for more details." >&2;}
14591 { (exit 1); exit 1; }; } ;;
14592esac
14593else
14594 if test "$cross_compiling" = yes; then
14595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14596See \`config.log' for more details." >&5
14597echo "$as_me: error: cannot run test program while cross compiling
14598See \`config.log' for more details." >&2;}
14599 { (exit 1); exit 1; }; }
14600else
14601 cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607$ac_includes_default
14608long longval () { return (long) (sizeof (char)); }
14609unsigned long ulongval () { return (long) (sizeof (char)); }
14610#include <stdio.h>
14611#include <stdlib.h>
14612int
14613main ()
14614{
14615
14616 FILE *f = fopen ("conftest.val", "w");
14617 if (! f)
14618 exit (1);
14619 if (((long) (sizeof (char))) < 0)
14620 {
14621 long i = longval ();
14622 if (i != ((long) (sizeof (char))))
14623 exit (1);
14624 fprintf (f, "%ld\n", i);
14625 }
14626 else
14627 {
14628 unsigned long i = ulongval ();
14629 if (i != ((long) (sizeof (char))))
14630 exit (1);
14631 fprintf (f, "%lu\n", i);
14632 }
14633 exit (ferror (f) || fclose (f) != 0);
14634
14635 ;
14636 return 0;
14637}
14638_ACEOF
14639rm -f conftest$ac_exeext
14640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_cv_sizeof_char=`cat conftest.val`
14651else
14652 echo "$as_me: program exited with status $ac_status" >&5
14653echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656( exit $ac_status )
14657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14658See \`config.log' for more details." >&5
14659echo "$as_me: error: cannot compute sizeof (char), 77
14660See \`config.log' for more details." >&2;}
14661 { (exit 1); exit 1; }; }
14662fi
14663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14664fi
14665fi
14666rm -f conftest.val
14667else
14668 ac_cv_sizeof_char=0
14669fi
14670fi
14671echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14672echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14673cat >>confdefs.h <<_ACEOF
14674#define SIZEOF_CHAR $ac_cv_sizeof_char
14675_ACEOF
14676
14677
14678echo "$as_me:$LINENO: checking for short" >&5
14679echo $ECHO_N "checking for short... $ECHO_C" >&6
14680if test "${ac_cv_type_short+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689$ac_includes_default
14690int
14691main ()
14692{
14693if ((short *) 0)
14694 return 0;
14695if (sizeof (short))
14696 return 0;
14697 ;
14698 return 0;
14699}
14700_ACEOF
14701rm -f conftest.$ac_objext
14702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
01cb68df 14710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_type_short=yes
14723else
14724 echo "$as_me: failed program was:" >&5
14725sed 's/^/| /' conftest.$ac_ext >&5
14726
14727ac_cv_type_short=no
14728fi
14729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14730fi
14731echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14732echo "${ECHO_T}$ac_cv_type_short" >&6
14733
14734echo "$as_me:$LINENO: checking size of short" >&5
14735echo $ECHO_N "checking size of short... $ECHO_C" >&6
14736if test "${ac_cv_sizeof_short+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14738else
14739 if test "$ac_cv_type_short" = yes; then
14740 # The cast to unsigned long works around a bug in the HP C Compiler
14741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14743 # This bug is HP SR number 8606223364.
14744 if test "$cross_compiling" = yes; then
14745 # Depending upon the size, compute the lo and hi bounds.
14746cat >conftest.$ac_ext <<_ACEOF
14747/* confdefs.h. */
14748_ACEOF
14749cat confdefs.h >>conftest.$ac_ext
14750cat >>conftest.$ac_ext <<_ACEOF
14751/* end confdefs.h. */
14752$ac_includes_default
14753int
14754main ()
14755{
14756static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14757test_array [0] = 0
14758
14759 ;
14760 return 0;
14761}
14762_ACEOF
14763rm -f conftest.$ac_objext
14764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
01cb68df 14772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_lo=0 ac_mid=0
14785 while :; do
14786 cat >conftest.$ac_ext <<_ACEOF
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
14792$ac_includes_default
14793int
14794main ()
14795{
14796static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14797test_array [0] = 0
14798
14799 ;
14800 return 0;
14801}
14802_ACEOF
14803rm -f conftest.$ac_objext
14804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
01cb68df 14812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest.$ac_objext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_hi=$ac_mid; break
14825else
14826 echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829ac_lo=`expr $ac_mid + 1`
14830 if test $ac_lo -le $ac_mid; then
14831 ac_lo= ac_hi=
14832 break
14833 fi
14834 ac_mid=`expr 2 '*' $ac_mid + 1`
14835fi
14836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14837 done
14838else
14839 echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
14841
14842cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
14849int
14850main ()
14851{
14852static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14853test_array [0] = 0
14854
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext
14860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861 (eval $ac_compile) 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
01cb68df 14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_hi=-1 ac_mid=-1
14881 while :; do
14882 cat >conftest.$ac_ext <<_ACEOF
14883/* confdefs.h. */
14884_ACEOF
14885cat confdefs.h >>conftest.$ac_ext
14886cat >>conftest.$ac_ext <<_ACEOF
14887/* end confdefs.h. */
14888$ac_includes_default
14889int
14890main ()
14891{
14892static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14893test_array [0] = 0
14894
14895 ;
14896 return 0;
14897}
14898_ACEOF
14899rm -f conftest.$ac_objext
14900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14901 (eval $ac_compile) 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
01cb68df 14908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_lo=$ac_mid; break
14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925ac_hi=`expr '(' $ac_mid ')' - 1`
14926 if test $ac_mid -le $ac_hi; then
14927 ac_lo= ac_hi=
14928 break
14929 fi
14930 ac_mid=`expr 2 '*' $ac_mid`
14931fi
14932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14933 done
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938ac_lo= ac_hi=
14939fi
14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14941fi
14942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14943# Binary search between lo and hi bounds.
14944while test "x$ac_lo" != "x$ac_hi"; do
14945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952$ac_includes_default
14953int
14954main ()
14955{
14956static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14957test_array [0] = 0
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963rm -f conftest.$ac_objext
14964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
01cb68df 14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_hi=$ac_mid
14985else
14986 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989ac_lo=`expr '(' $ac_mid ')' + 1`
14990fi
14991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14992done
14993case $ac_lo in
14994?*) ac_cv_sizeof_short=$ac_lo;;
14995'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14996See \`config.log' for more details." >&5
14997echo "$as_me: error: cannot compute sizeof (short), 77
14998See \`config.log' for more details." >&2;}
14999 { (exit 1); exit 1; }; } ;;
15000esac
15001else
15002 if test "$cross_compiling" = yes; then
15003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15004See \`config.log' for more details." >&5
15005echo "$as_me: error: cannot run test program while cross compiling
15006See \`config.log' for more details." >&2;}
15007 { (exit 1); exit 1; }; }
15008else
15009 cat >conftest.$ac_ext <<_ACEOF
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016long longval () { return (long) (sizeof (short)); }
15017unsigned long ulongval () { return (long) (sizeof (short)); }
15018#include <stdio.h>
15019#include <stdlib.h>
15020int
15021main ()
15022{
15023
15024 FILE *f = fopen ("conftest.val", "w");
15025 if (! f)
15026 exit (1);
15027 if (((long) (sizeof (short))) < 0)
15028 {
15029 long i = longval ();
15030 if (i != ((long) (sizeof (short))))
15031 exit (1);
15032 fprintf (f, "%ld\n", i);
15033 }
15034 else
15035 {
15036 unsigned long i = ulongval ();
15037 if (i != ((long) (sizeof (short))))
15038 exit (1);
15039 fprintf (f, "%lu\n", i);
15040 }
15041 exit (ferror (f) || fclose (f) != 0);
15042
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047rm -f conftest$ac_exeext
15048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15049 (eval $ac_link) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_cv_sizeof_short=`cat conftest.val`
15059else
15060 echo "$as_me: program exited with status $ac_status" >&5
15061echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064( exit $ac_status )
15065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15066See \`config.log' for more details." >&5
15067echo "$as_me: error: cannot compute sizeof (short), 77
15068See \`config.log' for more details." >&2;}
15069 { (exit 1); exit 1; }; }
15070fi
15071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15072fi
15073fi
15074rm -f conftest.val
15075else
15076 ac_cv_sizeof_short=0
15077fi
15078fi
15079echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15080echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15081cat >>confdefs.h <<_ACEOF
15082#define SIZEOF_SHORT $ac_cv_sizeof_short
15083_ACEOF
15084
15085
15086echo "$as_me:$LINENO: checking for void *" >&5
15087echo $ECHO_N "checking for void *... $ECHO_C" >&6
15088if test "${ac_cv_type_void_p+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090else
15091 cat >conftest.$ac_ext <<_ACEOF
15092/* confdefs.h. */
15093_ACEOF
15094cat confdefs.h >>conftest.$ac_ext
15095cat >>conftest.$ac_ext <<_ACEOF
15096/* end confdefs.h. */
15097$ac_includes_default
15098int
15099main ()
15100{
15101if ((void * *) 0)
15102 return 0;
15103if (sizeof (void *))
15104 return 0;
15105 ;
15106 return 0;
15107}
15108_ACEOF
15109rm -f conftest.$ac_objext
15110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
01cb68df 15118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_type_void_p=yes
15131else
15132 echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135ac_cv_type_void_p=no
15136fi
15137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15138fi
15139echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15140echo "${ECHO_T}$ac_cv_type_void_p" >&6
15141
15142echo "$as_me:$LINENO: checking size of void *" >&5
15143echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15144if test "${ac_cv_sizeof_void_p+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146else
15147 if test "$ac_cv_type_void_p" = yes; then
15148 # The cast to unsigned long works around a bug in the HP C Compiler
15149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15151 # This bug is HP SR number 8606223364.
15152 if test "$cross_compiling" = yes; then
15153 # Depending upon the size, compute the lo and hi bounds.
15154cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160$ac_includes_default
15161int
15162main ()
15163{
15164static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15165test_array [0] = 0
15166
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
01cb68df 15180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest.$ac_objext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_lo=0 ac_mid=0
15193 while :; do
15194 cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
15199/* end confdefs.h. */
15200$ac_includes_default
15201int
15202main ()
15203{
15204static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15205test_array [0] = 0
15206
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213 (eval $ac_compile) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
01cb68df 15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_hi=$ac_mid; break
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_lo=`expr $ac_mid + 1`
15238 if test $ac_lo -le $ac_mid; then
15239 ac_lo= ac_hi=
15240 break
15241 fi
15242 ac_mid=`expr 2 '*' $ac_mid + 1`
15243fi
15244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 done
15246else
15247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256$ac_includes_default
15257int
15258main ()
15259{
15260static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15261test_array [0] = 0
15262
15263 ;
15264 return 0;
15265}
15266_ACEOF
15267rm -f conftest.$ac_objext
15268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } &&
01cb68df 15276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; } &&
15282 { ac_try='test -s conftest.$ac_objext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_hi=-1 ac_mid=-1
15289 while :; do
15290 cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296$ac_includes_default
15297int
15298main ()
15299{
15300static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15301test_array [0] = 0
15302
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307rm -f conftest.$ac_objext
15308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309 (eval $ac_compile) 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
01cb68df 15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest.$ac_objext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_lo=$ac_mid; break
15329else
15330 echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333ac_hi=`expr '(' $ac_mid ')' - 1`
15334 if test $ac_mid -le $ac_hi; then
15335 ac_lo= ac_hi=
15336 break
15337 fi
15338 ac_mid=`expr 2 '*' $ac_mid`
15339fi
15340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15341 done
15342else
15343 echo "$as_me: failed program was:" >&5
15344sed 's/^/| /' conftest.$ac_ext >&5
15345
15346ac_lo= ac_hi=
15347fi
15348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15349fi
15350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15351# Binary search between lo and hi bounds.
15352while test "x$ac_lo" != "x$ac_hi"; do
15353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360$ac_includes_default
15361int
15362main ()
15363{
15364static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15365test_array [0] = 0
15366
15367 ;
15368 return 0;
15369}
15370_ACEOF
15371rm -f conftest.$ac_objext
15372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
01cb68df 15380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_hi=$ac_mid
15393else
15394 echo "$as_me: failed program was:" >&5
15395sed 's/^/| /' conftest.$ac_ext >&5
15396
15397ac_lo=`expr '(' $ac_mid ')' + 1`
15398fi
15399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400done
15401case $ac_lo in
15402?*) ac_cv_sizeof_void_p=$ac_lo;;
15403'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15404See \`config.log' for more details." >&5
15405echo "$as_me: error: cannot compute sizeof (void *), 77
15406See \`config.log' for more details." >&2;}
15407 { (exit 1); exit 1; }; } ;;
15408esac
15409else
15410 if test "$cross_compiling" = yes; then
15411 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15412See \`config.log' for more details." >&5
15413echo "$as_me: error: cannot run test program while cross compiling
15414See \`config.log' for more details." >&2;}
15415 { (exit 1); exit 1; }; }
15416else
15417 cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
15423$ac_includes_default
15424long longval () { return (long) (sizeof (void *)); }
15425unsigned long ulongval () { return (long) (sizeof (void *)); }
15426#include <stdio.h>
15427#include <stdlib.h>
15428int
15429main ()
15430{
15431
15432 FILE *f = fopen ("conftest.val", "w");
15433 if (! f)
15434 exit (1);
15435 if (((long) (sizeof (void *))) < 0)
15436 {
15437 long i = longval ();
15438 if (i != ((long) (sizeof (void *))))
15439 exit (1);
15440 fprintf (f, "%ld\n", i);
15441 }
15442 else
15443 {
15444 unsigned long i = ulongval ();
15445 if (i != ((long) (sizeof (void *))))
15446 exit (1);
15447 fprintf (f, "%lu\n", i);
15448 }
15449 exit (ferror (f) || fclose (f) != 0);
15450
15451 ;
15452 return 0;
15453}
15454_ACEOF
15455rm -f conftest$ac_exeext
15456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_cv_sizeof_void_p=`cat conftest.val`
15467else
15468 echo "$as_me: program exited with status $ac_status" >&5
15469echo "$as_me: failed program was:" >&5
15470sed 's/^/| /' conftest.$ac_ext >&5
15471
15472( exit $ac_status )
15473{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15474See \`config.log' for more details." >&5
15475echo "$as_me: error: cannot compute sizeof (void *), 77
15476See \`config.log' for more details." >&2;}
15477 { (exit 1); exit 1; }; }
15478fi
15479rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15480fi
15481fi
15482rm -f conftest.val
15483else
15484 ac_cv_sizeof_void_p=0
15485fi
15486fi
15487echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15488echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15489cat >>confdefs.h <<_ACEOF
15490#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15491_ACEOF
15492
15493
15494echo "$as_me:$LINENO: checking for int" >&5
15495echo $ECHO_N "checking for int... $ECHO_C" >&6
15496if test "${ac_cv_type_int+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498else
15499 cat >conftest.$ac_ext <<_ACEOF
15500/* confdefs.h. */
15501_ACEOF
15502cat confdefs.h >>conftest.$ac_ext
15503cat >>conftest.$ac_ext <<_ACEOF
15504/* end confdefs.h. */
15505$ac_includes_default
15506int
15507main ()
15508{
15509if ((int *) 0)
15510 return 0;
15511if (sizeof (int))
15512 return 0;
15513 ;
15514 return 0;
15515}
15516_ACEOF
15517rm -f conftest.$ac_objext
15518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15519 (eval $ac_compile) 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
01cb68df 15526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_type_int=yes
15539else
15540 echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
15543ac_cv_type_int=no
15544fi
15545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546fi
15547echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15548echo "${ECHO_T}$ac_cv_type_int" >&6
15549
15550echo "$as_me:$LINENO: checking size of int" >&5
15551echo $ECHO_N "checking size of int... $ECHO_C" >&6
15552if test "${ac_cv_sizeof_int+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554else
15555 if test "$ac_cv_type_int" = yes; then
15556 # The cast to unsigned long works around a bug in the HP C Compiler
15557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15559 # This bug is HP SR number 8606223364.
15560 if test "$cross_compiling" = yes; then
15561 # Depending upon the size, compute the lo and hi bounds.
15562cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569int
15570main ()
15571{
15572static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15573test_array [0] = 0
15574
15575 ;
15576 return 0;
15577}
15578_ACEOF
15579rm -f conftest.$ac_objext
15580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15581 (eval $ac_compile) 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
01cb68df 15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_lo=0 ac_mid=0
15601 while :; do
15602 cat >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))) <= $ac_mid)];
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
15621 (eval $ac_compile) 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
01cb68df 15628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15640 ac_hi=$ac_mid; break
15641else
15642 echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645ac_lo=`expr $ac_mid + 1`
15646 if test $ac_lo -le $ac_mid; then
15647 ac_lo= ac_hi=
15648 break
15649 fi
15650 ac_mid=`expr 2 '*' $ac_mid + 1`
15651fi
15652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15653 done
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665int
15666main ()
15667{
15668static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15669test_array [0] = 0
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest.$ac_objext
15676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677 (eval $ac_compile) 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
01cb68df 15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_hi=-1 ac_mid=-1
15697 while :; do
15698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705int
15706main ()
15707{
15708static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15709test_array [0] = 0
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
01cb68df 15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_lo=$ac_mid; break
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741ac_hi=`expr '(' $ac_mid ')' - 1`
15742 if test $ac_mid -le $ac_hi; then
15743 ac_lo= ac_hi=
15744 break
15745 fi
15746 ac_mid=`expr 2 '*' $ac_mid`
15747fi
15748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749 done
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754ac_lo= ac_hi=
15755fi
15756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15757fi
15758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759# Binary search between lo and hi bounds.
15760while test "x$ac_lo" != "x$ac_hi"; do
15761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15762 cat >conftest.$ac_ext <<_ACEOF
15763/* confdefs.h. */
15764_ACEOF
15765cat confdefs.h >>conftest.$ac_ext
15766cat >>conftest.$ac_ext <<_ACEOF
15767/* end confdefs.h. */
15768$ac_includes_default
15769int
15770main ()
15771{
15772static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15773test_array [0] = 0
15774
15775 ;
15776 return 0;
15777}
15778_ACEOF
15779rm -f conftest.$ac_objext
15780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781 (eval $ac_compile) 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
01cb68df 15788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_hi=$ac_mid
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805ac_lo=`expr '(' $ac_mid ')' + 1`
15806fi
15807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15808done
15809case $ac_lo in
15810?*) ac_cv_sizeof_int=$ac_lo;;
15811'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15812See \`config.log' for more details." >&5
15813echo "$as_me: error: cannot compute sizeof (int), 77
15814See \`config.log' for more details." >&2;}
15815 { (exit 1); exit 1; }; } ;;
15816esac
15817else
15818 if test "$cross_compiling" = yes; then
15819 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15820See \`config.log' for more details." >&5
15821echo "$as_me: error: cannot run test program while cross compiling
15822See \`config.log' for more details." >&2;}
15823 { (exit 1); exit 1; }; }
15824else
15825 cat >conftest.$ac_ext <<_ACEOF
15826/* confdefs.h. */
15827_ACEOF
15828cat confdefs.h >>conftest.$ac_ext
15829cat >>conftest.$ac_ext <<_ACEOF
15830/* end confdefs.h. */
15831$ac_includes_default
15832long longval () { return (long) (sizeof (int)); }
15833unsigned long ulongval () { return (long) (sizeof (int)); }
15834#include <stdio.h>
15835#include <stdlib.h>
15836int
15837main ()
15838{
15839
15840 FILE *f = fopen ("conftest.val", "w");
15841 if (! f)
15842 exit (1);
15843 if (((long) (sizeof (int))) < 0)
15844 {
15845 long i = longval ();
15846 if (i != ((long) (sizeof (int))))
15847 exit (1);
15848 fprintf (f, "%ld\n", i);
15849 }
15850 else
15851 {
15852 unsigned long i = ulongval ();
15853 if (i != ((long) (sizeof (int))))
15854 exit (1);
15855 fprintf (f, "%lu\n", i);
15856 }
15857 exit (ferror (f) || fclose (f) != 0);
15858
15859 ;
15860 return 0;
15861}
15862_ACEOF
15863rm -f conftest$ac_exeext
15864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865 (eval $ac_link) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_cv_sizeof_int=`cat conftest.val`
15875else
15876 echo "$as_me: program exited with status $ac_status" >&5
15877echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880( exit $ac_status )
15881{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15882See \`config.log' for more details." >&5
15883echo "$as_me: error: cannot compute sizeof (int), 77
15884See \`config.log' for more details." >&2;}
15885 { (exit 1); exit 1; }; }
15886fi
15887rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15888fi
15889fi
15890rm -f conftest.val
15891else
15892 ac_cv_sizeof_int=0
15893fi
15894fi
15895echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15896echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15897cat >>confdefs.h <<_ACEOF
15898#define SIZEOF_INT $ac_cv_sizeof_int
15899_ACEOF
15900
15901
15902echo "$as_me:$LINENO: checking for long" >&5
15903echo $ECHO_N "checking for long... $ECHO_C" >&6
15904if test "${ac_cv_type_long+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15906else
15907 cat >conftest.$ac_ext <<_ACEOF
15908/* confdefs.h. */
15909_ACEOF
15910cat confdefs.h >>conftest.$ac_ext
15911cat >>conftest.$ac_ext <<_ACEOF
15912/* end confdefs.h. */
15913$ac_includes_default
15914int
15915main ()
15916{
15917if ((long *) 0)
15918 return 0;
15919if (sizeof (long))
15920 return 0;
15921 ;
15922 return 0;
15923}
15924_ACEOF
15925rm -f conftest.$ac_objext
15926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15927 (eval $ac_compile) 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
01cb68df 15934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_cv_type_long=yes
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951ac_cv_type_long=no
15952fi
15953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15954fi
15955echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15956echo "${ECHO_T}$ac_cv_type_long" >&6
15957
15958echo "$as_me:$LINENO: checking size of long" >&5
15959echo $ECHO_N "checking size of long... $ECHO_C" >&6
15960if test "${ac_cv_sizeof_long+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962else
15963 if test "$ac_cv_type_long" = yes; then
15964 # The cast to unsigned long works around a bug in the HP C Compiler
15965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15967 # This bug is HP SR number 8606223364.
15968 if test "$cross_compiling" = yes; then
15969 # Depending upon the size, compute the lo and hi bounds.
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977int
15978main ()
15979{
15980static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15981test_array [0] = 0
15982
15983 ;
15984 return 0;
15985}
15986_ACEOF
15987rm -f conftest.$ac_objext
15988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989 (eval $ac_compile) 2>conftest.er1
15990 ac_status=$?
15991 grep -v '^ *+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
01cb68df 15996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest.$ac_objext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_lo=0 ac_mid=0
16009 while :; do
16010 cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h. */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h. */
16016$ac_includes_default
16017int
16018main ()
16019{
16020static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16021test_array [0] = 0
16022
16023 ;
16024 return 0;
16025}
16026_ACEOF
16027rm -f conftest.$ac_objext
16028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>conftest.er1
16030 ac_status=$?
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
01cb68df 16036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_hi=$ac_mid; break
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
16053ac_lo=`expr $ac_mid + 1`
16054 if test $ac_lo -le $ac_mid; then
16055 ac_lo= ac_hi=
16056 break
16057 fi
16058 ac_mid=`expr 2 '*' $ac_mid + 1`
16059fi
16060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16061 done
16062else
16063 echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072$ac_includes_default
16073int
16074main ()
16075{
16076static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16077test_array [0] = 0
16078
16079 ;
16080 return 0;
16081}
16082_ACEOF
16083rm -f conftest.$ac_objext
16084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
01cb68df 16092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_hi=-1 ac_mid=-1
16105 while :; do
16106 cat >conftest.$ac_ext <<_ACEOF
16107/* confdefs.h. */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h. */
16112$ac_includes_default
16113int
16114main ()
16115{
16116static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16117test_array [0] = 0
16118
16119 ;
16120 return 0;
16121}
16122_ACEOF
16123rm -f conftest.$ac_objext
16124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125 (eval $ac_compile) 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
01cb68df 16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_lo=$ac_mid; break
16145else
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149ac_hi=`expr '(' $ac_mid ')' - 1`
16150 if test $ac_mid -le $ac_hi; then
16151 ac_lo= ac_hi=
16152 break
16153 fi
16154 ac_mid=`expr 2 '*' $ac_mid`
16155fi
16156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16157 done
16158else
16159 echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162ac_lo= ac_hi=
16163fi
16164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16165fi
16166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16167# Binary search between lo and hi bounds.
16168while test "x$ac_lo" != "x$ac_hi"; do
16169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16170 cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176$ac_includes_default
16177int
16178main ()
16179{
16180static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16181test_array [0] = 0
16182
16183 ;
16184 return 0;
16185}
16186_ACEOF
16187rm -f conftest.$ac_objext
16188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
01cb68df 16196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try='test -s conftest.$ac_objext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 ac_hi=$ac_mid
16209else
16210 echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212
16213ac_lo=`expr '(' $ac_mid ')' + 1`
16214fi
16215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16216done
16217case $ac_lo in
16218?*) ac_cv_sizeof_long=$ac_lo;;
16219'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16220See \`config.log' for more details." >&5
16221echo "$as_me: error: cannot compute sizeof (long), 77
16222See \`config.log' for more details." >&2;}
16223 { (exit 1); exit 1; }; } ;;
16224esac
16225else
16226 if test "$cross_compiling" = yes; then
16227 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16228See \`config.log' for more details." >&5
16229echo "$as_me: error: cannot run test program while cross compiling
16230See \`config.log' for more details." >&2;}
16231 { (exit 1); exit 1; }; }
16232else
16233 cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h. */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h. */
16239$ac_includes_default
16240long longval () { return (long) (sizeof (long)); }
16241unsigned long ulongval () { return (long) (sizeof (long)); }
16242#include <stdio.h>
16243#include <stdlib.h>
16244int
16245main ()
16246{
16247
16248 FILE *f = fopen ("conftest.val", "w");
16249 if (! f)
16250 exit (1);
16251 if (((long) (sizeof (long))) < 0)
16252 {
16253 long i = longval ();
16254 if (i != ((long) (sizeof (long))))
16255 exit (1);
16256 fprintf (f, "%ld\n", i);
16257 }
16258 else
16259 {
16260 unsigned long i = ulongval ();
16261 if (i != ((long) (sizeof (long))))
16262 exit (1);
16263 fprintf (f, "%lu\n", i);
16264 }
16265 exit (ferror (f) || fclose (f) != 0);
16266
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271rm -f conftest$ac_exeext
16272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282 ac_cv_sizeof_long=`cat conftest.val`
16283else
16284 echo "$as_me: program exited with status $ac_status" >&5
16285echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288( exit $ac_status )
16289{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16290See \`config.log' for more details." >&5
16291echo "$as_me: error: cannot compute sizeof (long), 77
16292See \`config.log' for more details." >&2;}
16293 { (exit 1); exit 1; }; }
16294fi
16295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16296fi
16297fi
16298rm -f conftest.val
16299else
16300 ac_cv_sizeof_long=0
16301fi
16302fi
16303echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16304echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16305cat >>confdefs.h <<_ACEOF
16306#define SIZEOF_LONG $ac_cv_sizeof_long
16307_ACEOF
16308
16309
16310echo "$as_me:$LINENO: checking for size_t" >&5
16311echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16312if test "${ac_cv_type_size_t+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314else
16315 cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h. */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h. */
16321$ac_includes_default
16322int
16323main ()
16324{
16325if ((size_t *) 0)
16326 return 0;
16327if (sizeof (size_t))
16328 return 0;
16329 ;
16330 return 0;
16331}
16332_ACEOF
16333rm -f conftest.$ac_objext
16334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16335 (eval $ac_compile) 2>conftest.er1
16336 ac_status=$?
16337 grep -v '^ *+' conftest.er1 >conftest.err
16338 rm -f conftest.er1
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
01cb68df 16342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_type_size_t=yes
16355else
16356 echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359ac_cv_type_size_t=no
16360fi
16361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16362fi
16363echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16364echo "${ECHO_T}$ac_cv_type_size_t" >&6
16365
16366echo "$as_me:$LINENO: checking size of size_t" >&5
16367echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16368if test "${ac_cv_sizeof_size_t+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371 if test "$ac_cv_type_size_t" = yes; then
16372 # The cast to unsigned long works around a bug in the HP C Compiler
16373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16375 # This bug is HP SR number 8606223364.
16376 if test "$cross_compiling" = yes; then
16377 # Depending upon the size, compute the lo and hi bounds.
16378cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384$ac_includes_default
16385int
16386main ()
16387{
16388static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16389test_array [0] = 0
16390
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext
16396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397 (eval $ac_compile) 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
01cb68df 16404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_lo=0 ac_mid=0
16417 while :; do
16418 cat >conftest.$ac_ext <<_ACEOF
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424$ac_includes_default
16425int
16426main ()
16427{
16428static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16429test_array [0] = 0
16430
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435rm -f conftest.$ac_objext
16436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16437 (eval $ac_compile) 2>conftest.er1
16438 ac_status=$?
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
01cb68df 16444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest.$ac_objext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_hi=$ac_mid; break
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461ac_lo=`expr $ac_mid + 1`
16462 if test $ac_lo -le $ac_mid; then
16463 ac_lo= ac_hi=
16464 break
16465 fi
16466 ac_mid=`expr 2 '*' $ac_mid + 1`
16467fi
16468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16469 done
16470else
16471 echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
16474cat >conftest.$ac_ext <<_ACEOF
16475/* confdefs.h. */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h. */
16480$ac_includes_default
16481int
16482main ()
16483{
16484static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16485test_array [0] = 0
16486
16487 ;
16488 return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext
16492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16493 (eval $ac_compile) 2>conftest.er1
16494 ac_status=$?
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
01cb68df 16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_hi=-1 ac_mid=-1
16513 while :; do
16514 cat >conftest.$ac_ext <<_ACEOF
16515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
16520$ac_includes_default
16521int
16522main ()
16523{
16524static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16525test_array [0] = 0
16526
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16533 (eval $ac_compile) 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
01cb68df 16540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest.$ac_objext'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_lo=$ac_mid; break
16553else
16554 echo "$as_me: failed program was:" >&5
16555sed 's/^/| /' conftest.$ac_ext >&5
16556
16557ac_hi=`expr '(' $ac_mid ')' - 1`
16558 if test $ac_mid -le $ac_hi; then
16559 ac_lo= ac_hi=
16560 break
16561 fi
16562 ac_mid=`expr 2 '*' $ac_mid`
16563fi
16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 done
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570ac_lo= ac_hi=
16571fi
16572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16573fi
16574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16575# Binary search between lo and hi bounds.
16576while test "x$ac_lo" != "x$ac_hi"; do
16577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16578 cat >conftest.$ac_ext <<_ACEOF
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
16584$ac_includes_default
16585int
16586main ()
16587{
16588static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16589test_array [0] = 0
16590
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16597 (eval $ac_compile) 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
01cb68df 16604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_hi=$ac_mid
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621ac_lo=`expr '(' $ac_mid ')' + 1`
16622fi
16623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16624done
16625case $ac_lo in
16626?*) ac_cv_sizeof_size_t=$ac_lo;;
16627'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16628See \`config.log' for more details." >&5
16629echo "$as_me: error: cannot compute sizeof (size_t), 77
16630See \`config.log' for more details." >&2;}
16631 { (exit 1); exit 1; }; } ;;
16632esac
16633else
16634 if test "$cross_compiling" = yes; then
16635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16636See \`config.log' for more details." >&5
16637echo "$as_me: error: cannot run test program while cross compiling
16638See \`config.log' for more details." >&2;}
16639 { (exit 1); exit 1; }; }
16640else
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647$ac_includes_default
16648long longval () { return (long) (sizeof (size_t)); }
16649unsigned long ulongval () { return (long) (sizeof (size_t)); }
16650#include <stdio.h>
16651#include <stdlib.h>
16652int
16653main ()
16654{
16655
16656 FILE *f = fopen ("conftest.val", "w");
16657 if (! f)
16658 exit (1);
16659 if (((long) (sizeof (size_t))) < 0)
16660 {
16661 long i = longval ();
16662 if (i != ((long) (sizeof (size_t))))
16663 exit (1);
16664 fprintf (f, "%ld\n", i);
16665 }
16666 else
16667 {
16668 unsigned long i = ulongval ();
16669 if (i != ((long) (sizeof (size_t))))
16670 exit (1);
16671 fprintf (f, "%lu\n", i);
16672 }
16673 exit (ferror (f) || fclose (f) != 0);
16674
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest$ac_exeext
16680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16681 (eval $ac_link) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_cv_sizeof_size_t=`cat conftest.val`
16691else
16692 echo "$as_me: program exited with status $ac_status" >&5
16693echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696( exit $ac_status )
16697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16698See \`config.log' for more details." >&5
16699echo "$as_me: error: cannot compute sizeof (size_t), 77
16700See \`config.log' for more details." >&2;}
16701 { (exit 1); exit 1; }; }
16702fi
16703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16704fi
16705fi
16706rm -f conftest.val
16707else
16708 ac_cv_sizeof_size_t=0
16709fi
16710fi
16711echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16712echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16713cat >>confdefs.h <<_ACEOF
16714#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16715_ACEOF
16716
16717
16718
16719case "${host}" in
16720 arm-*-linux* )
16721 echo "$as_me:$LINENO: checking for long long" >&5
16722echo $ECHO_N "checking for long long... $ECHO_C" >&6
16723if test "${ac_cv_type_long_long+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725else
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733int
16734main ()
16735{
16736if ((long long *) 0)
16737 return 0;
16738if (sizeof (long long))
16739 return 0;
16740 ;
16741 return 0;
16742}
16743_ACEOF
16744rm -f conftest.$ac_objext
16745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16746 (eval $ac_compile) 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
01cb68df 16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_cv_type_long_long=yes
16766else
16767 echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770ac_cv_type_long_long=no
16771fi
16772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16773fi
16774echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16775echo "${ECHO_T}$ac_cv_type_long_long" >&6
16776
16777echo "$as_me:$LINENO: checking size of long long" >&5
16778echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16779if test "${ac_cv_sizeof_long_long+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781else
16782 if test "$ac_cv_type_long_long" = yes; then
16783 # The cast to unsigned long works around a bug in the HP C Compiler
16784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16786 # This bug is HP SR number 8606223364.
16787 if test "$cross_compiling" = yes; then
16788 # Depending upon the size, compute the lo and hi bounds.
16789cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795$ac_includes_default
16796int
16797main ()
16798{
16799static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16800test_array [0] = 0
16801
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext
16807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
01cb68df 16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest.$ac_objext'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_lo=0 ac_mid=0
16828 while :; do
16829 cat >conftest.$ac_ext <<_ACEOF
16830/* confdefs.h. */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h. */
16835$ac_includes_default
16836int
16837main ()
16838{
16839static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16840test_array [0] = 0
16841
16842 ;
16843 return 0;
16844}
16845_ACEOF
16846rm -f conftest.$ac_objext
16847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
01cb68df 16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_hi=$ac_mid; break
16868else
16869 echo "$as_me: failed program was:" >&5
16870sed 's/^/| /' conftest.$ac_ext >&5
16871
16872ac_lo=`expr $ac_mid + 1`
16873 if test $ac_lo -le $ac_mid; then
16874 ac_lo= ac_hi=
16875 break
16876 fi
16877 ac_mid=`expr 2 '*' $ac_mid + 1`
16878fi
16879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16880 done
16881else
16882 echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885cat >conftest.$ac_ext <<_ACEOF
16886/* confdefs.h. */
16887_ACEOF
16888cat confdefs.h >>conftest.$ac_ext
16889cat >>conftest.$ac_ext <<_ACEOF
16890/* end confdefs.h. */
16891$ac_includes_default
16892int
16893main ()
16894{
16895static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16896test_array [0] = 0
16897
16898 ;
16899 return 0;
16900}
16901_ACEOF
16902rm -f conftest.$ac_objext
16903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904 (eval $ac_compile) 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
01cb68df 16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest.$ac_objext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_hi=-1 ac_mid=-1
16924 while :; do
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931$ac_includes_default
16932int
16933main ()
16934{
16935static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16936test_array [0] = 0
16937
16938 ;
16939 return 0;
16940}
16941_ACEOF
16942rm -f conftest.$ac_objext
16943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944 (eval $ac_compile) 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
01cb68df 16951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest.$ac_objext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_lo=$ac_mid; break
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968ac_hi=`expr '(' $ac_mid ')' - 1`
16969 if test $ac_mid -le $ac_hi; then
16970 ac_lo= ac_hi=
16971 break
16972 fi
16973 ac_mid=`expr 2 '*' $ac_mid`
16974fi
16975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16976 done
16977else
16978 echo "$as_me: failed program was:" >&5
16979sed 's/^/| /' conftest.$ac_ext >&5
16980
16981ac_lo= ac_hi=
16982fi
16983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16984fi
16985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16986# Binary search between lo and hi bounds.
16987while test "x$ac_lo" != "x$ac_hi"; do
16988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16989 cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995$ac_includes_default
16996int
16997main ()
16998{
16999static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17000test_array [0] = 0
17001
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008 (eval $ac_compile) 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
01cb68df 17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_hi=$ac_mid
17028else
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032ac_lo=`expr '(' $ac_mid ')' + 1`
17033fi
17034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17035done
17036case $ac_lo in
17037?*) ac_cv_sizeof_long_long=$ac_lo;;
17038'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17039See \`config.log' for more details." >&5
17040echo "$as_me: error: cannot compute sizeof (long long), 77
17041See \`config.log' for more details." >&2;}
17042 { (exit 1); exit 1; }; } ;;
17043esac
17044else
17045 if test "$cross_compiling" = yes; then
17046 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17047See \`config.log' for more details." >&5
17048echo "$as_me: error: cannot run test program while cross compiling
17049See \`config.log' for more details." >&2;}
17050 { (exit 1); exit 1; }; }
17051else
17052 cat >conftest.$ac_ext <<_ACEOF
17053/* confdefs.h. */
17054_ACEOF
17055cat confdefs.h >>conftest.$ac_ext
17056cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h. */
17058$ac_includes_default
17059long longval () { return (long) (sizeof (long long)); }
17060unsigned long ulongval () { return (long) (sizeof (long long)); }
17061#include <stdio.h>
17062#include <stdlib.h>
17063int
17064main ()
17065{
17066
17067 FILE *f = fopen ("conftest.val", "w");
17068 if (! f)
17069 exit (1);
17070 if (((long) (sizeof (long long))) < 0)
17071 {
17072 long i = longval ();
17073 if (i != ((long) (sizeof (long long))))
17074 exit (1);
17075 fprintf (f, "%ld\n", i);
17076 }
17077 else
17078 {
17079 unsigned long i = ulongval ();
17080 if (i != ((long) (sizeof (long long))))
17081 exit (1);
17082 fprintf (f, "%lu\n", i);
17083 }
17084 exit (ferror (f) || fclose (f) != 0);
17085
17086 ;
17087 return 0;
17088}
17089_ACEOF
17090rm -f conftest$ac_exeext
17091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_cv_sizeof_long_long=`cat conftest.val`
17102else
17103 echo "$as_me: program exited with status $ac_status" >&5
17104echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107( exit $ac_status )
17108{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17109See \`config.log' for more details." >&5
17110echo "$as_me: error: cannot compute sizeof (long long), 77
17111See \`config.log' for more details." >&2;}
17112 { (exit 1); exit 1; }; }
17113fi
17114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17115fi
17116fi
17117rm -f conftest.val
17118else
17119 ac_cv_sizeof_long_long=0
17120fi
17121fi
17122echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17123echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17124cat >>confdefs.h <<_ACEOF
17125#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17126_ACEOF
17127
17128
17129 ;;
17130 *-hp-hpux* )
17131 echo "$as_me:$LINENO: checking for long long" >&5
17132echo $ECHO_N "checking for long long... $ECHO_C" >&6
17133if test "${ac_cv_type_long_long+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136 cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
17142$ac_includes_default
17143int
17144main ()
17145{
17146if ((long long *) 0)
17147 return 0;
17148if (sizeof (long long))
17149 return 0;
17150 ;
17151 return 0;
17152}
17153_ACEOF
17154rm -f conftest.$ac_objext
17155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156 (eval $ac_compile) 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
01cb68df 17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest.$ac_objext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_type_long_long=yes
17176else
17177 echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
17180ac_cv_type_long_long=no
17181fi
17182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17183fi
17184echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17185echo "${ECHO_T}$ac_cv_type_long_long" >&6
17186
17187echo "$as_me:$LINENO: checking size of long long" >&5
17188echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17189if test "${ac_cv_sizeof_long_long+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192 if test "$ac_cv_type_long_long" = yes; then
17193 # The cast to unsigned long works around a bug in the HP C Compiler
17194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17196 # This bug is HP SR number 8606223364.
17197 if test "$cross_compiling" = yes; then
17198 # Depending upon the size, compute the lo and hi bounds.
17199cat >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{
17209static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17210test_array [0] = 0
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest.$ac_objext
17217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17218 (eval $ac_compile) 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
01cb68df 17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest.$ac_objext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_lo=0 ac_mid=0
17238 while :; do
17239 cat >conftest.$ac_ext <<_ACEOF
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245$ac_includes_default
17246int
17247main ()
17248{
17249static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17250test_array [0] = 0
17251
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext
17257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
01cb68df 17265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_hi=$ac_mid; break
17278else
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282ac_lo=`expr $ac_mid + 1`
17283 if test $ac_lo -le $ac_mid; then
17284 ac_lo= ac_hi=
17285 break
17286 fi
17287 ac_mid=`expr 2 '*' $ac_mid + 1`
17288fi
17289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17290 done
17291else
17292 echo "$as_me: failed program was:" >&5
17293sed 's/^/| /' conftest.$ac_ext >&5
17294
17295cat >conftest.$ac_ext <<_ACEOF
17296/* confdefs.h. */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h. */
17301$ac_includes_default
17302int
17303main ()
17304{
17305static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17306test_array [0] = 0
17307
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312rm -f conftest.$ac_objext
17313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17314 (eval $ac_compile) 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
01cb68df 17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_hi=-1 ac_mid=-1
17334 while :; do
17335 cat >conftest.$ac_ext <<_ACEOF
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
17341$ac_includes_default
17342int
17343main ()
17344{
17345static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17346test_array [0] = 0
17347
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
01cb68df 17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest.$ac_objext'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_lo=$ac_mid; break
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378ac_hi=`expr '(' $ac_mid ')' - 1`
17379 if test $ac_mid -le $ac_hi; then
17380 ac_lo= ac_hi=
17381 break
17382 fi
17383 ac_mid=`expr 2 '*' $ac_mid`
17384fi
17385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17386 done
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391ac_lo= ac_hi=
17392fi
17393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17394fi
17395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17396# Binary search between lo and hi bounds.
17397while test "x$ac_lo" != "x$ac_hi"; do
17398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17399 cat >conftest.$ac_ext <<_ACEOF
17400/* confdefs.h. */
17401_ACEOF
17402cat confdefs.h >>conftest.$ac_ext
17403cat >>conftest.$ac_ext <<_ACEOF
17404/* end confdefs.h. */
17405$ac_includes_default
17406int
17407main ()
17408{
17409static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17410test_array [0] = 0
17411
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416rm -f conftest.$ac_objext
17417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
01cb68df 17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_hi=$ac_mid
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442ac_lo=`expr '(' $ac_mid ')' + 1`
17443fi
17444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17445done
17446case $ac_lo in
17447?*) ac_cv_sizeof_long_long=$ac_lo;;
17448'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17449See \`config.log' for more details." >&5
17450echo "$as_me: error: cannot compute sizeof (long long), 77
17451See \`config.log' for more details." >&2;}
17452 { (exit 1); exit 1; }; } ;;
17453esac
17454else
17455 if test "$cross_compiling" = yes; then
17456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17457See \`config.log' for more details." >&5
17458echo "$as_me: error: cannot run test program while cross compiling
17459See \`config.log' for more details." >&2;}
17460 { (exit 1); exit 1; }; }
17461else
17462 cat >conftest.$ac_ext <<_ACEOF
17463/* confdefs.h. */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
17467/* end confdefs.h. */
17468$ac_includes_default
17469long longval () { return (long) (sizeof (long long)); }
17470unsigned long ulongval () { return (long) (sizeof (long long)); }
17471#include <stdio.h>
17472#include <stdlib.h>
17473int
17474main ()
17475{
17476
17477 FILE *f = fopen ("conftest.val", "w");
17478 if (! f)
17479 exit (1);
17480 if (((long) (sizeof (long long))) < 0)
17481 {
17482 long i = longval ();
17483 if (i != ((long) (sizeof (long long))))
17484 exit (1);
17485 fprintf (f, "%ld\n", i);
17486 }
17487 else
17488 {
17489 unsigned long i = ulongval ();
17490 if (i != ((long) (sizeof (long long))))
17491 exit (1);
17492 fprintf (f, "%lu\n", i);
17493 }
17494 exit (ferror (f) || fclose (f) != 0);
17495
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest$ac_exeext
17501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17502 (eval $ac_link) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_sizeof_long_long=`cat conftest.val`
17512else
17513 echo "$as_me: program exited with status $ac_status" >&5
17514echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517( exit $ac_status )
17518{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17519See \`config.log' for more details." >&5
17520echo "$as_me: error: cannot compute sizeof (long long), 77
17521See \`config.log' for more details." >&2;}
17522 { (exit 1); exit 1; }; }
17523fi
17524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17525fi
17526fi
17527rm -f conftest.val
17528else
17529 ac_cv_sizeof_long_long=0
17530fi
17531fi
17532echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17533echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17534cat >>confdefs.h <<_ACEOF
17535#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17536_ACEOF
17537
17538
17539 if test "$ac_cv_sizeof_long_long" != "0"; then
17540 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17541 fi
17542 ;;
17543 * )
17544 echo "$as_me:$LINENO: checking for long long" >&5
17545echo $ECHO_N "checking for long long... $ECHO_C" >&6
17546if test "${ac_cv_type_long_long+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548else
17549 cat >conftest.$ac_ext <<_ACEOF
17550/* confdefs.h. */
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
17555$ac_includes_default
17556int
17557main ()
17558{
17559if ((long long *) 0)
17560 return 0;
17561if (sizeof (long long))
17562 return 0;
17563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext
17568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
01cb68df 17576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest.$ac_objext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_type_long_long=yes
17589else
17590 echo "$as_me: failed program was:" >&5
17591sed 's/^/| /' conftest.$ac_ext >&5
17592
17593ac_cv_type_long_long=no
17594fi
17595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17596fi
17597echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17598echo "${ECHO_T}$ac_cv_type_long_long" >&6
17599
17600echo "$as_me:$LINENO: checking size of long long" >&5
17601echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17602if test "${ac_cv_sizeof_long_long+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604else
17605 if test "$ac_cv_type_long_long" = yes; then
17606 # The cast to unsigned long works around a bug in the HP C Compiler
17607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17609 # This bug is HP SR number 8606223364.
17610 if test "$cross_compiling" = yes; then
17611 # Depending upon the size, compute the lo and hi bounds.
17612cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
17618$ac_includes_default
17619int
17620main ()
17621{
17622static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17623test_array [0] = 0
17624
17625 ;
17626 return 0;
17627}
17628_ACEOF
17629rm -f conftest.$ac_objext
17630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
01cb68df 17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } &&
17644 { ac_try='test -s conftest.$ac_objext'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 ac_lo=0 ac_mid=0
17651 while :; do
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658$ac_includes_default
17659int
17660main ()
17661{
17662static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17663test_array [0] = 0
17664
17665 ;
17666 return 0;
17667}
17668_ACEOF
17669rm -f conftest.$ac_objext
17670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17671 (eval $ac_compile) 2>conftest.er1
17672 ac_status=$?
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
01cb68df 17678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_hi=$ac_mid; break
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695ac_lo=`expr $ac_mid + 1`
17696 if test $ac_lo -le $ac_mid; then
17697 ac_lo= ac_hi=
17698 break
17699 fi
17700 ac_mid=`expr 2 '*' $ac_mid + 1`
17701fi
17702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17703 done
17704else
17705 echo "$as_me: failed program was:" >&5
17706sed 's/^/| /' conftest.$ac_ext >&5
17707
17708cat >conftest.$ac_ext <<_ACEOF
17709/* confdefs.h. */
17710_ACEOF
17711cat confdefs.h >>conftest.$ac_ext
17712cat >>conftest.$ac_ext <<_ACEOF
17713/* end confdefs.h. */
17714$ac_includes_default
17715int
17716main ()
17717{
17718static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17719test_array [0] = 0
17720
17721 ;
17722 return 0;
17723}
17724_ACEOF
17725rm -f conftest.$ac_objext
17726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
01cb68df 17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest.$ac_objext'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_hi=-1 ac_mid=-1
17747 while :; do
17748 cat >conftest.$ac_ext <<_ACEOF
17749/* confdefs.h. */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h. */
17754$ac_includes_default
17755int
17756main ()
17757{
17758static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17759test_array [0] = 0
17760
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765rm -f conftest.$ac_objext
17766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17767 (eval $ac_compile) 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
01cb68df 17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_lo=$ac_mid; break
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791ac_hi=`expr '(' $ac_mid ')' - 1`
17792 if test $ac_mid -le $ac_hi; then
17793 ac_lo= ac_hi=
17794 break
17795 fi
17796 ac_mid=`expr 2 '*' $ac_mid`
17797fi
17798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17799 done
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804ac_lo= ac_hi=
17805fi
17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17807fi
17808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17809# Binary search between lo and hi bounds.
17810while test "x$ac_lo" != "x$ac_hi"; do
17811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17812 cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818$ac_includes_default
17819int
17820main ()
17821{
17822static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17823test_array [0] = 0
17824
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext
17830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
01cb68df 17838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest.$ac_objext'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_hi=$ac_mid
17851else
17852 echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
17855ac_lo=`expr '(' $ac_mid ')' + 1`
17856fi
17857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17858done
17859case $ac_lo in
17860?*) ac_cv_sizeof_long_long=$ac_lo;;
17861'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17862See \`config.log' for more details." >&5
17863echo "$as_me: error: cannot compute sizeof (long long), 77
17864See \`config.log' for more details." >&2;}
17865 { (exit 1); exit 1; }; } ;;
17866esac
17867else
17868 if test "$cross_compiling" = yes; then
17869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17870See \`config.log' for more details." >&5
17871echo "$as_me: error: cannot run test program while cross compiling
17872See \`config.log' for more details." >&2;}
17873 { (exit 1); exit 1; }; }
17874else
17875 cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */
17881$ac_includes_default
17882long longval () { return (long) (sizeof (long long)); }
17883unsigned long ulongval () { return (long) (sizeof (long long)); }
17884#include <stdio.h>
17885#include <stdlib.h>
17886int
17887main ()
17888{
17889
17890 FILE *f = fopen ("conftest.val", "w");
17891 if (! f)
17892 exit (1);
17893 if (((long) (sizeof (long long))) < 0)
17894 {
17895 long i = longval ();
17896 if (i != ((long) (sizeof (long long))))
17897 exit (1);
17898 fprintf (f, "%ld\n", i);
17899 }
17900 else
17901 {
17902 unsigned long i = ulongval ();
17903 if (i != ((long) (sizeof (long long))))
17904 exit (1);
17905 fprintf (f, "%lu\n", i);
17906 }
17907 exit (ferror (f) || fclose (f) != 0);
17908
17909 ;
17910 return 0;
17911}
17912_ACEOF
17913rm -f conftest$ac_exeext
17914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915 (eval $ac_link) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_sizeof_long_long=`cat conftest.val`
17925else
17926 echo "$as_me: program exited with status $ac_status" >&5
17927echo "$as_me: failed program was:" >&5
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930( exit $ac_status )
17931{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17932See \`config.log' for more details." >&5
17933echo "$as_me: error: cannot compute sizeof (long long), 77
17934See \`config.log' for more details." >&2;}
17935 { (exit 1); exit 1; }; }
17936fi
17937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17938fi
17939fi
17940rm -f conftest.val
17941else
17942 ac_cv_sizeof_long_long=0
17943fi
17944fi
17945echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17946echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17947cat >>confdefs.h <<_ACEOF
17948#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17949_ACEOF
17950
17951
17952esac
17953
17954echo "$as_me:$LINENO: checking size of wchar_t" >&5
17955echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17956if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958else
17959
17960 if test "$cross_compiling" = yes; then
17961
17962 case "${host}" in
17963 *-pc-msdosdjgpp )
17964 wx_cv_sizeof_wchar_t=0
17965 ;;
17966 * )
17967 wx_cv_sizeof_wchar_t=4
17968 ;;
17969 esac
17970
17971
17972else
17973 cat >conftest.$ac_ext <<_ACEOF
17974/* confdefs.h. */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h. */
17979
17980 /* DJGPP only has fake wchar_t: */
17981 #ifdef __DJGPP__
17982 # error "fake wchar_t"
17983 #endif
17984 #ifdef HAVE_WCHAR_H
17985 # ifdef __CYGWIN__
17986 # include <stddef.h>
17987 # endif
17988 # include <wchar.h>
17989 #endif
17990 #ifdef HAVE_STDLIB_H
17991 # include <stdlib.h>
17992 #endif
17993 #include <stdio.h>
17994 int main()
17995 {
17996 FILE *f=fopen("conftestval", "w");
17997 if (!f) exit(1);
17998 fprintf(f, "%i", sizeof(wchar_t));
17999 exit(0);
18000 }
18001
18002_ACEOF
18003rm -f conftest$ac_exeext
18004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18005 (eval $ac_link) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 wx_cv_sizeof_wchar_t=`cat conftestval`
18015else
18016 echo "$as_me: program exited with status $ac_status" >&5
18017echo "$as_me: failed program was:" >&5
18018sed 's/^/| /' conftest.$ac_ext >&5
18019
18020( exit $ac_status )
18021wx_cv_sizeof_wchar_t=0
18022fi
18023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18024fi
18025
18026fi
18027echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18028echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18029
18030cat >>confdefs.h <<_ACEOF
18031#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18032_ACEOF
18033
18034
18035# Check whether --enable-largefile or --disable-largefile was given.
18036if test "${enable_largefile+set}" = set; then
18037 enableval="$enable_largefile"
18038
18039fi;
18040if test "$enable_largefile" != no; then
18041 wx_largefile=no
18042
18043 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18044echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18045if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047else
18048
18049 cat >conftest.$ac_ext <<_ACEOF
18050/* confdefs.h. */
18051_ACEOF
18052cat confdefs.h >>conftest.$ac_ext
18053cat >>conftest.$ac_ext <<_ACEOF
18054/* end confdefs.h. */
18055#define _FILE_OFFSET_BITS 64
18056 #include <sys/types.h>
18057int
18058main ()
18059{
18060typedef struct {
18061 unsigned int field: sizeof(off_t) == 8;
18062} wxlf;
18063
18064 ;
18065 return 0;
18066}
18067_ACEOF
18068rm -f conftest.$ac_objext
18069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18070 (eval $ac_compile) 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
01cb68df 18077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_sys_file_offset_bits=64
18090else
18091 echo "$as_me: failed program was:" >&5
18092sed 's/^/| /' conftest.$ac_ext >&5
18093
18094ac_cv_sys_file_offset_bits=no
18095fi
18096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18097
18098
18099fi
18100echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18101echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18102
18103 if test "$ac_cv_sys_file_offset_bits" != no; then
18104 wx_largefile=yes
18105 cat >>confdefs.h <<_ACEOF
18106#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18107_ACEOF
18108
18109 fi
18110
18111 if test "x$wx_largefile" != "xyes"; then
18112
18113 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18114echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18115if test "${ac_cv_sys_large_files+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118
18119 cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h. */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h. */
18125#define _LARGE_FILES 1
18126 #include <sys/types.h>
18127int
18128main ()
18129{
18130typedef struct {
18131 unsigned int field: sizeof(off_t) == 8;
18132} wxlf;
18133
18134 ;
18135 return 0;
18136}
18137_ACEOF
18138rm -f conftest.$ac_objext
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
01cb68df 18147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18150 ac_status=$?
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; } &&
18153 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18159 ac_cv_sys_large_files=1
18160else
18161 echo "$as_me: failed program was:" >&5
18162sed 's/^/| /' conftest.$ac_ext >&5
18163
18164ac_cv_sys_large_files=no
18165fi
18166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18167
18168
18169fi
18170echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18171echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18172
18173 if test "$ac_cv_sys_large_files" != no; then
18174 wx_largefile=yes
18175 cat >>confdefs.h <<_ACEOF
18176#define _LARGE_FILES $ac_cv_sys_large_files
18177_ACEOF
18178
18179 fi
18180
18181 fi
18182
18183 echo "$as_me:$LINENO: checking if large file support is available" >&5
18184echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18185 if test "x$wx_largefile" = "xyes"; then
18186 cat >>confdefs.h <<\_ACEOF
18187#define HAVE_LARGEFILE_SUPPORT 1
18188_ACEOF
18189
18190 fi
18191 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18192echo "${ECHO_T}$wx_largefile" >&6
18193fi
18194
18195
18196if test "x$wx_largefile" = "xyes"; then
18197 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18198 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18199 else
18200 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18201 fi
18202 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18203fi
18204
18205echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18206echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18207if test "${ac_cv_c_bigendian+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210 ac_cv_c_bigendian=unknown
18211# See if sys/param.h defines the BYTE_ORDER macro.
18212cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h. */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h. */
18218#include <sys/types.h>
18219#include <sys/param.h>
18220int
18221main ()
18222{
18223
18224#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18225 bogus endian macros
18226#endif
18227 ;
18228 return 0;
18229}
18230_ACEOF
18231rm -f conftest.$ac_objext
18232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18233 (eval $ac_compile) 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
01cb68df 18240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest.$ac_objext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 # It does; now see whether it defined to BIG_ENDIAN or not.
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259#include <sys/types.h>
18260#include <sys/param.h>
18261int
18262main ()
18263{
18264
18265#if BYTE_ORDER != BIG_ENDIAN
18266 not big endian
18267#endif
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext
18273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274 (eval $ac_compile) 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
01cb68df 18281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_cv_c_bigendian=yes
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298ac_cv_c_bigendian=no
18299fi
18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18301else
18302 echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305fi
18306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18307if test $ac_cv_c_bigendian = unknown; then
18308if test "$cross_compiling" = yes; then
18309 ac_cv_c_bigendian=unknown
18310else
18311 cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
18317main () {
18318 /* Are we little or big endian? From Harbison&Steele. */
18319 union
18320 {
18321 long l;
18322 char c[sizeof (long)];
18323 } u;
18324 u.l = 1;
18325 exit (u.c[sizeof (long) - 1] == 1);
18326}
18327_ACEOF
18328rm -f conftest$ac_exeext
18329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_c_bigendian=no
18340else
18341 echo "$as_me: program exited with status $ac_status" >&5
18342echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345( exit $ac_status )
18346ac_cv_c_bigendian=yes
18347fi
18348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18349fi
18350fi
18351fi
18352echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18353echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18354if test $ac_cv_c_bigendian = unknown; then
18355 { 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
18356echo "$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;}
18357fi
18358if test $ac_cv_c_bigendian = yes; then
18359 cat >>confdefs.h <<\_ACEOF
18360#define WORDS_BIGENDIAN 1
18361_ACEOF
18362
18363fi
18364
18365
18366ac_ext=cc
18367ac_cpp='$CXXCPP $CPPFLAGS'
18368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18371echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18372echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18373if test -z "$CXXCPP"; then
18374 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376else
18377 # Double quotes because CXXCPP needs to be expanded
18378 for CXXCPP in "$CXX -E" "/lib/cpp"
18379 do
18380 ac_preproc_ok=false
18381for ac_cxx_preproc_warn_flag in '' yes
18382do
18383 # Use a header file that comes with gcc, so configuring glibc
18384 # with a fresh cross-compiler works.
18385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18386 # <limits.h> exists even on freestanding compilers.
18387 # On the NeXT, cc -E runs the code through the compiler's parser,
18388 # not just through cpp. "Syntax error" is here to catch this case.
18389 cat >conftest.$ac_ext <<_ACEOF
18390/* confdefs.h. */
18391_ACEOF
18392cat confdefs.h >>conftest.$ac_ext
18393cat >>conftest.$ac_ext <<_ACEOF
18394/* end confdefs.h. */
18395#ifdef __STDC__
18396# include <limits.h>
18397#else
18398# include <assert.h>
18399#endif
18400 Syntax error
18401_ACEOF
18402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } >/dev/null; then
18410 if test -s conftest.err; then
18411 ac_cpp_err=$ac_cxx_preproc_warn_flag
18412 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18413 else
18414 ac_cpp_err=
18415 fi
18416else
18417 ac_cpp_err=yes
18418fi
18419if test -z "$ac_cpp_err"; then
18420 :
18421else
18422 echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425 # Broken: fails on valid input.
18426continue
18427fi
18428rm -f conftest.err conftest.$ac_ext
18429
18430 # OK, works on sane cases. Now check whether non-existent headers
18431 # can be detected and how.
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438#include <ac_nonexistent.h>
18439_ACEOF
18440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } >/dev/null; then
18448 if test -s conftest.err; then
18449 ac_cpp_err=$ac_cxx_preproc_warn_flag
18450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18451 else
18452 ac_cpp_err=
18453 fi
18454else
18455 ac_cpp_err=yes
18456fi
18457if test -z "$ac_cpp_err"; then
18458 # Broken: success on invalid input.
18459continue
18460else
18461 echo "$as_me: failed program was:" >&5
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 # Passes both tests.
18465ac_preproc_ok=:
18466break
18467fi
18468rm -f conftest.err conftest.$ac_ext
18469
18470done
18471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18472rm -f conftest.err conftest.$ac_ext
18473if $ac_preproc_ok; then
18474 break
18475fi
18476
18477 done
18478 ac_cv_prog_CXXCPP=$CXXCPP
18479
18480fi
18481 CXXCPP=$ac_cv_prog_CXXCPP
18482else
18483 ac_cv_prog_CXXCPP=$CXXCPP
18484fi
18485echo "$as_me:$LINENO: result: $CXXCPP" >&5
18486echo "${ECHO_T}$CXXCPP" >&6
18487ac_preproc_ok=false
18488for ac_cxx_preproc_warn_flag in '' yes
18489do
18490 # Use a header file that comes with gcc, so configuring glibc
18491 # with a fresh cross-compiler works.
18492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493 # <limits.h> exists even on freestanding compilers.
18494 # On the NeXT, cc -E runs the code through the compiler's parser,
18495 # not just through cpp. "Syntax error" is here to catch this case.
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502#ifdef __STDC__
18503# include <limits.h>
18504#else
18505# include <assert.h>
18506#endif
18507 Syntax error
18508_ACEOF
18509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18511 ac_status=$?
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } >/dev/null; then
18517 if test -s conftest.err; then
18518 ac_cpp_err=$ac_cxx_preproc_warn_flag
18519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18520 else
18521 ac_cpp_err=
18522 fi
18523else
18524 ac_cpp_err=yes
18525fi
18526if test -z "$ac_cpp_err"; then
18527 :
18528else
18529 echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 # Broken: fails on valid input.
18533continue
18534fi
18535rm -f conftest.err conftest.$ac_ext
18536
18537 # OK, works on sane cases. Now check whether non-existent headers
18538 # can be detected and how.
18539 cat >conftest.$ac_ext <<_ACEOF
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545#include <ac_nonexistent.h>
18546_ACEOF
18547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } >/dev/null; then
18555 if test -s conftest.err; then
18556 ac_cpp_err=$ac_cxx_preproc_warn_flag
18557 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18558 else
18559 ac_cpp_err=
18560 fi
18561else
18562 ac_cpp_err=yes
18563fi
18564if test -z "$ac_cpp_err"; then
18565 # Broken: success on invalid input.
18566continue
18567else
18568 echo "$as_me: failed program was:" >&5
18569sed 's/^/| /' conftest.$ac_ext >&5
18570
18571 # Passes both tests.
18572ac_preproc_ok=:
18573break
18574fi
18575rm -f conftest.err conftest.$ac_ext
18576
18577done
18578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18579rm -f conftest.err conftest.$ac_ext
18580if $ac_preproc_ok; then
18581 :
18582else
18583 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18584See \`config.log' for more details." >&5
18585echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18586See \`config.log' for more details." >&2;}
18587 { (exit 1); exit 1; }; }
18588fi
18589
18590ac_ext=cc
18591ac_cpp='$CXXCPP $CPPFLAGS'
18592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18595
18596
18597
3fd9c298
DE
18598 if test "$cross_compiling" = "yes"; then
18599 cat >>confdefs.h <<\_ACEOF
18600#define wxUSE_IOSTREAMH 1
18601_ACEOF
18602
18603 else
a848cd7e
SC
18604
18605
18606 ac_ext=cc
18607ac_cpp='$CXXCPP $CPPFLAGS'
18608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18611
18612
18613
18614for ac_header in iostream
18615do
18616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18617if eval "test \"\${$as_ac_Header+set}\" = set"; then
18618 echo "$as_me:$LINENO: checking for $ac_header" >&5
18619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18620if eval "test \"\${$as_ac_Header+set}\" = set"; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622fi
18623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18625else
18626 # Is the header compilable?
18627echo "$as_me:$LINENO: checking $ac_header usability" >&5
18628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18629cat >conftest.$ac_ext <<_ACEOF
18630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
18635$ac_includes_default
18636#include <$ac_header>
18637_ACEOF
18638rm -f conftest.$ac_objext
18639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18640 (eval $ac_compile) 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
01cb68df 18647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest.$ac_objext'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_header_compiler=yes
18660else
18661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664ac_header_compiler=no
18665fi
18666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18668echo "${ECHO_T}$ac_header_compiler" >&6
18669
18670# Is the header present?
18671echo "$as_me:$LINENO: checking $ac_header presence" >&5
18672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18673cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679#include <$ac_header>
18680_ACEOF
18681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } >/dev/null; then
18689 if test -s conftest.err; then
18690 ac_cpp_err=$ac_cxx_preproc_warn_flag
18691 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18692 else
18693 ac_cpp_err=
18694 fi
18695else
18696 ac_cpp_err=yes
18697fi
18698if test -z "$ac_cpp_err"; then
18699 ac_header_preproc=yes
18700else
18701 echo "$as_me: failed program was:" >&5
18702sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 ac_header_preproc=no
18705fi
18706rm -f conftest.err conftest.$ac_ext
18707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18708echo "${ECHO_T}$ac_header_preproc" >&6
18709
18710# So? What about this header?
18711case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18712 yes:no: )
18713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18717 ac_header_preproc=yes
18718 ;;
18719 no:yes:* )
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18732 (
18733 cat <<\_ASBOX
18734## ----------------------------------------- ##
18735## Report this to wx-dev@lists.wxwindows.org ##
18736## ----------------------------------------- ##
18737_ASBOX
18738 ) |
18739 sed "s/^/$as_me: WARNING: /" >&2
18740 ;;
18741esac
18742echo "$as_me:$LINENO: checking for $ac_header" >&5
18743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18744if eval "test \"\${$as_ac_Header+set}\" = set"; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746else
18747 eval "$as_ac_Header=\$ac_header_preproc"
18748fi
18749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18751
18752fi
18753if test `eval echo '${'$as_ac_Header'}'` = yes; then
18754 cat >>confdefs.h <<_ACEOF
18755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18756_ACEOF
18757
18758fi
18759
18760done
18761
18762
18763 if test "$ac_cv_header_iostream" = "yes" ; then
18764 :
18765 else
18766 cat >>confdefs.h <<\_ACEOF
18767#define wxUSE_IOSTREAMH 1
18768_ACEOF
18769
18770 fi
18771
18772 ac_ext=c
18773ac_cpp='$CPP $CPPFLAGS'
18774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18776ac_compiler_gnu=$ac_cv_c_compiler_gnu
18777
3fd9c298 18778 fi
a848cd7e
SC
18779
18780
18781
18782 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18783echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18784if test "${wx_cv_cpp_bool+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786else
18787
18788
18789
18790 ac_ext=cc
18791ac_cpp='$CXXCPP $CPPFLAGS'
18792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18795
18796
18797 cat >conftest.$ac_ext <<_ACEOF
18798/* confdefs.h. */
18799_ACEOF
18800cat confdefs.h >>conftest.$ac_ext
18801cat >>conftest.$ac_ext <<_ACEOF
18802/* end confdefs.h. */
18803
18804
18805int
18806main ()
18807{
18808
18809 bool b = true;
18810
18811 return 0;
18812
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext
18818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18819 (eval $ac_compile) 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
01cb68df 18826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838
18839 wx_cv_cpp_bool=yes
18840
18841else
18842 echo "$as_me: failed program was:" >&5
18843sed 's/^/| /' conftest.$ac_ext >&5
18844
18845
18846 wx_cv_cpp_bool=no
18847
18848
18849fi
18850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18851
18852 ac_ext=c
18853ac_cpp='$CPP $CPPFLAGS'
18854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856ac_compiler_gnu=$ac_cv_c_compiler_gnu
18857
18858
18859fi
18860echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18861echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18862
18863 if test "$wx_cv_cpp_bool" = "yes"; then
18864 cat >>confdefs.h <<\_ACEOF
18865#define HAVE_BOOL 1
18866_ACEOF
18867
18868 fi
18869
18870
18871
18872 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18873echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18874if test "${wx_cv_explicit+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876else
18877
18878
18879
18880 ac_ext=cc
18881ac_cpp='$CXXCPP $CPPFLAGS'
18882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18885
18886
18887 cat >conftest.$ac_ext <<_ACEOF
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
18893
18894 class Foo { public: explicit Foo(int) {} };
18895
18896int
18897main ()
18898{
18899
18900 return 0;
18901
18902 ;
18903 return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext
18907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
01cb68df 18915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18924 ac_status=$?
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; }; then
18927
18928 cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934
18935 class Foo { public: explicit Foo(int) {} };
18936 static void TakeFoo(const Foo& foo) { }
18937
18938int
18939main ()
18940{
18941
18942 TakeFoo(17);
18943 return 0;
18944
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949rm -f conftest.$ac_objext
18950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>conftest.er1
18952 ac_status=$?
18953 grep -v '^ *+' conftest.er1 >conftest.err
18954 rm -f conftest.er1
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
01cb68df 18958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 wx_cv_explicit=no
18971else
18972 echo "$as_me: failed program was:" >&5
18973sed 's/^/| /' conftest.$ac_ext >&5
18974
18975wx_cv_explicit=yes
18976
18977fi
18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18979
18980else
18981 echo "$as_me: failed program was:" >&5
18982sed 's/^/| /' conftest.$ac_ext >&5
18983
18984wx_cv_explicit=no
18985
18986fi
18987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18988
18989 ac_ext=c
18990ac_cpp='$CPP $CPPFLAGS'
18991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18993ac_compiler_gnu=$ac_cv_c_compiler_gnu
18994
18995
18996fi
18997echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18998echo "${ECHO_T}$wx_cv_explicit" >&6
18999
19000 if test "$wx_cv_explicit" = "yes"; then
19001 cat >>confdefs.h <<\_ACEOF
19002#define HAVE_EXPLICIT 1
19003_ACEOF
19004
19005 fi
19006
19007
19008echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19009echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19010if test "${ac_cv_cxx_const_cast+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013
19014
19015 ac_ext=cc
19016ac_cpp='$CXXCPP $CPPFLAGS'
19017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19020
19021 cat >conftest.$ac_ext <<_ACEOF
19022/* confdefs.h. */
19023_ACEOF
19024cat confdefs.h >>conftest.$ac_ext
19025cat >>conftest.$ac_ext <<_ACEOF
19026/* end confdefs.h. */
19027
19028int
19029main ()
19030{
19031int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19032 ;
19033 return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038 (eval $ac_compile) 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
01cb68df 19045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_cxx_const_cast=yes
19058else
19059 echo "$as_me: failed program was:" >&5
19060sed 's/^/| /' conftest.$ac_ext >&5
19061
19062ac_cv_cxx_const_cast=no
19063fi
19064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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: $ac_cv_cxx_const_cast" >&5
19074echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19075if test "$ac_cv_cxx_const_cast" = yes; then
19076
19077cat >>confdefs.h <<\_ACEOF
19078#define HAVE_CONST_CAST
19079_ACEOF
19080
19081fi
19082
19083echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19084echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19085if test "${ac_cv_cxx_static_cast+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087else
19088
19089
19090 ac_ext=cc
19091ac_cpp='$CXXCPP $CPPFLAGS'
19092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19095
19096 cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
19102#include <typeinfo>
19103class Base { public : Base () {} virtual void f () = 0; };
19104class Derived : public Base { public : Derived () {} virtual void f () {} };
19105int g (Derived&) { return 0; }
19106int
19107main ()
19108{
19109
19110Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19111 ;
19112 return 0;
19113}
19114_ACEOF
19115rm -f conftest.$ac_objext
19116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19117 (eval $ac_compile) 2>conftest.er1
19118 ac_status=$?
19119 grep -v '^ *+' conftest.er1 >conftest.err
19120 rm -f conftest.er1
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
01cb68df 19124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest.$ac_objext'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; }; then
19136 ac_cv_cxx_static_cast=yes
19137else
19138 echo "$as_me: failed program was:" >&5
19139sed 's/^/| /' conftest.$ac_ext >&5
19140
19141ac_cv_cxx_static_cast=no
19142fi
19143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19144 ac_ext=c
19145ac_cpp='$CPP $CPPFLAGS'
19146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148ac_compiler_gnu=$ac_cv_c_compiler_gnu
19149
19150
19151fi
19152echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19153echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19154if test "$ac_cv_cxx_static_cast" = yes; then
19155
19156cat >>confdefs.h <<\_ACEOF
19157#define HAVE_STATIC_CAST
19158_ACEOF
19159
19160fi
19161
19162
19163if test "$wxUSE_STL" = "yes"; then
19164 ac_ext=cc
19165ac_cpp='$CXXCPP $CPPFLAGS'
19166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19169
19170
19171 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19172echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
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 <string>
19180 #include <functional>
19181 #include <algorithm>
19182 #include <vector>
19183 #include <list>
19184int
19185main ()
19186{
19187std::vector<int> moo;
19188 std::list<int> foo;
19189 std::vector<int>::iterator it =
19190 std::find_if(moo.begin(), moo.end(),
19191 std::bind2nd(std::less<int>(), 3));
19192 ;
19193 return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
01cb68df 19205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 echo "$as_me:$LINENO: result: yes" >&5
19218echo "${ECHO_T}yes" >&6
19219else
19220 echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223echo "$as_me:$LINENO: result: no" >&5
19224echo "${ECHO_T}no" >&6
19225 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19226echo "$as_me: error: Basic STL functionality missing" >&2;}
19227 { (exit 1); exit 1; }; }
19228fi
19229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230
19231 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19232echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19233 cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
19239#include <string>
19240int
19241main ()
19242{
19243std::wstring foo;
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext
19249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250 (eval $ac_compile) 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
01cb68df 19257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 echo "$as_me:$LINENO: result: yes" >&5
19270echo "${ECHO_T}yes" >&6
19271 cat >>confdefs.h <<\_ACEOF
19272#define HAVE_STD_WSTRING 1
19273_ACEOF
19274
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279echo "$as_me:$LINENO: result: no" >&5
19280echo "${ECHO_T}no" >&6
19281fi
19282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19283
19284 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19285echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292#include <string>
19293int
19294main ()
19295{
19296std::string foo, bar;
19297 foo.compare(bar);
19298 foo.compare(1, 1, bar);
19299 foo.compare(1, 1, bar, 1, 1);
19300 foo.compare("");
19301 foo.compare(1, 1, "");
19302 foo.compare(1, 1, "", 2);
19303 ;
19304 return 0;
19305}
19306_ACEOF
19307rm -f conftest.$ac_objext
19308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19309 (eval $ac_compile) 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
01cb68df 19316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 echo "$as_me:$LINENO: result: yes" >&5
19329echo "${ECHO_T}yes" >&6
19330 cat >>confdefs.h <<\_ACEOF
19331#define HAVE_STD_STRING_COMPARE 1
19332_ACEOF
19333
19334else
19335 echo "$as_me: failed program was:" >&5
19336sed 's/^/| /' conftest.$ac_ext >&5
19337
19338echo "$as_me:$LINENO: result: no" >&5
19339echo "${ECHO_T}no" >&6
19340fi
19341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19342
19343 ac_ext=c
19344ac_cpp='$CPP $CPPFLAGS'
19345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347ac_compiler_gnu=$ac_cv_c_compiler_gnu
19348
19349fi
19350
19351
19352SEARCH_INCLUDE="\
19353 /usr/local/include \
19354 \
19355 /usr/Motif-2.1/include \
19356 /usr/Motif-1.2/include \
19357 /usr/include/Motif1.2 \
19358 /opt/xpm/include/X11 \
19359 /opt/GBxpm/include/ \
19360 /opt/GBxpm/X11/include/ \
19361 \
19362 /usr/dt/include \
19363 /usr/openwin/include \
19364 \
19365 /usr/include/Xm \
19366 \
19367 /usr/X11R6/include \
19368 /usr/X11R6.4/include \
19369 /usr/X11R5/include \
19370 /usr/X11R4/include \
19371 \
19372 /usr/include/X11R6 \
19373 /usr/include/X11R5 \
19374 /usr/include/X11R4 \
19375 \
19376 /usr/local/X11R6/include \
19377 /usr/local/X11R5/include \
19378 /usr/local/X11R4/include \
19379 \
19380 /usr/local/include/X11R6 \
19381 /usr/local/include/X11R5 \
19382 /usr/local/include/X11R4 \
19383 \
19384 /usr/X11/include \
19385 /usr/include/X11 \
19386 /usr/local/X11/include \
19387 /usr/local/include/X11 \
19388 \
19389 /usr/X386/include \
19390 /usr/x386/include \
19391 /usr/XFree86/include/X11 \
19392 \
19393 X:/XFree86/include \
19394 X:/XFree86/include/X11 \
19395 \
19396 /usr/include/gtk \
19397 /usr/local/include/gtk \
19398 /usr/include/glib \
19399 /usr/local/include/glib \
19400 \
19401 /usr/include/qt \
19402 /usr/local/include/qt \
19403 \
19404 /usr/local/arm/3.3.2/include \
19405 \
19406 /usr/include/windows \
19407 /usr/include/wine \
19408 /usr/local/include/wine \
19409 \
19410 /usr/unsupported/include \
19411 /usr/athena/include \
19412 /usr/local/x11r5/include \
19413 /usr/lpp/Xamples/include \
19414 \
19415 /usr/openwin/share/include"
19416
19417SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19418
19419
19420cat >confcache <<\_ACEOF
19421# This file is a shell script that caches the results of configure
19422# tests run on this system so they can be shared between configure
19423# scripts and configure runs, see configure's option --config-cache.
19424# It is not useful on other systems. If it contains results you don't
19425# want to keep, you may remove or edit it.
19426#
19427# config.status only pays attention to the cache file if you give it
19428# the --recheck option to rerun configure.
19429#
19430# `ac_cv_env_foo' variables (set or unset) will be overridden when
19431# loading this file, other *unset* `ac_cv_foo' will be assigned the
19432# following values.
19433
19434_ACEOF
19435
19436# The following way of writing the cache mishandles newlines in values,
19437# but we know of no workaround that is simple, portable, and efficient.
19438# So, don't put newlines in cache variables' values.
19439# Ultrix sh set writes to stderr and can't be redirected directly,
19440# and sets the high bit in the cache file unless we assign to the vars.
19441{
19442 (set) 2>&1 |
19443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19444 *ac_space=\ *)
19445 # `set' does not quote correctly, so add quotes (double-quote
19446 # substitution turns \\\\ into \\, and sed turns \\ into \).
19447 sed -n \
19448 "s/'/'\\\\''/g;
19449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19450 ;;
19451 *)
19452 # `set' quotes correctly as required by POSIX, so do not add quotes.
19453 sed -n \
19454 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19455 ;;
19456 esac;
19457} |
19458 sed '
19459 t clear
19460 : clear
19461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19462 t end
19463 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19464 : end' >>confcache
19465if diff $cache_file confcache >/dev/null 2>&1; then :; else
19466 if test -w $cache_file; then
19467 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19468 cat confcache >$cache_file
19469 else
19470 echo "not updating unwritable cache $cache_file"
19471 fi
19472fi
19473rm -f confcache
19474
19475if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19476 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19477echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19478if test "${wx_cv_lib_glibc21+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480else
19481
19482 cat >conftest.$ac_ext <<_ACEOF
19483/* confdefs.h. */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
19487/* end confdefs.h. */
19488#include <features.h>
19489int
19490main ()
19491{
19492
19493 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19494 #error not glibc2.1
19495 #endif
19496
19497 ;
19498 return 0;
19499}
19500_ACEOF
19501rm -f conftest.$ac_objext
19502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503 (eval $ac_compile) 2>conftest.er1
19504 ac_status=$?
19505 grep -v '^ *+' conftest.er1 >conftest.err
19506 rm -f conftest.er1
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
01cb68df 19510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest.$ac_objext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522
19523 wx_cv_lib_glibc21=yes
19524
19525else
19526 echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529
19530 wx_cv_lib_glibc21=no
19531
19532
19533fi
19534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19535
19536fi
19537echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19538echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19539 if test "$wx_cv_lib_glibc21" = "yes"; then
19540 cat >>confdefs.h <<\_ACEOF
19541#define wxHAVE_GLIBC2 1
19542_ACEOF
19543
19544 fi
19545fi
19546
19547if test "x$wx_cv_lib_glibc21" = "xyes"; then
19548 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19549 cat >>confdefs.h <<\_ACEOF
19550#define _GNU_SOURCE 1
19551_ACEOF
19552
19553 fi
19554fi
19555
19556
19557
19558if test "$wxUSE_REGEX" != "no"; then
19559 cat >>confdefs.h <<\_ACEOF
19560#define wxUSE_REGEX 1
19561_ACEOF
19562
19563
19564 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19565 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19566echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19567 wxUSE_REGEX=builtin
19568 fi
19569
19570 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19571 if test "${ac_cv_header_regex_h+set}" = set; then
19572 echo "$as_me:$LINENO: checking for regex.h" >&5
19573echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19574if test "${ac_cv_header_regex_h+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576fi
19577echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19578echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19579else
19580 # Is the header compilable?
19581echo "$as_me:$LINENO: checking regex.h usability" >&5
19582echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19583cat >conftest.$ac_ext <<_ACEOF
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589$ac_includes_default
19590#include <regex.h>
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
01cb68df 19601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_header_compiler=yes
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618ac_header_compiler=no
19619fi
19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622echo "${ECHO_T}$ac_header_compiler" >&6
19623
19624# Is the header present?
19625echo "$as_me:$LINENO: checking regex.h presence" >&5
19626echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19627cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633#include <regex.h>
19634_ACEOF
19635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null; then
19643 if test -s conftest.err; then
19644 ac_cpp_err=$ac_c_preproc_warn_flag
19645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19646 else
19647 ac_cpp_err=
19648 fi
19649else
19650 ac_cpp_err=yes
19651fi
19652if test -z "$ac_cpp_err"; then
19653 ac_header_preproc=yes
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_header_preproc=no
19659fi
19660rm -f conftest.err conftest.$ac_ext
19661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662echo "${ECHO_T}$ac_header_preproc" >&6
19663
19664# So? What about this header?
19665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19666 yes:no: )
19667 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19668echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19670echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19671 ac_header_preproc=yes
19672 ;;
19673 no:yes:* )
19674 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19675echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19677echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19679echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19681echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19682 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19683echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19685echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19686 (
19687 cat <<\_ASBOX
19688## ----------------------------------------- ##
19689## Report this to wx-dev@lists.wxwindows.org ##
19690## ----------------------------------------- ##
19691_ASBOX
19692 ) |
19693 sed "s/^/$as_me: WARNING: /" >&2
19694 ;;
19695esac
19696echo "$as_me:$LINENO: checking for regex.h" >&5
19697echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19698if test "${ac_cv_header_regex_h+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19700else
19701 ac_cv_header_regex_h=$ac_header_preproc
19702fi
19703echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19704echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19705
19706fi
19707if test $ac_cv_header_regex_h = yes; then
19708
19709for ac_func in regcomp
19710do
19711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712echo "$as_me:$LINENO: checking for $ac_func" >&5
19713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19714if eval "test \"\${$as_ac_var+set}\" = set"; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716else
19717 cat >conftest.$ac_ext <<_ACEOF
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
19723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725#define $ac_func innocuous_$ac_func
19726
19727/* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char $ac_func (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19731
19732#ifdef __STDC__
19733# include <limits.h>
19734#else
19735# include <assert.h>
19736#endif
19737
19738#undef $ac_func
19739
19740/* Override any gcc2 internal prototype to avoid an error. */
19741#ifdef __cplusplus
19742extern "C"
19743{
19744#endif
19745/* We use char because int might match the return type of a gcc2
19746 builtin and then its argument prototype would still apply. */
19747char $ac_func ();
19748/* The GNU C library defines this for functions which it implements
19749 to always fail with ENOSYS. Some functions are actually named
19750 something starting with __ and the normal name is an alias. */
19751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19752choke me
19753#else
19754char (*f) () = $ac_func;
19755#endif
19756#ifdef __cplusplus
19757}
19758#endif
19759
19760int
19761main ()
19762{
19763return f != $ac_func;
19764 ;
19765 return 0;
19766}
19767_ACEOF
19768rm -f conftest.$ac_objext conftest$ac_exeext
19769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19770 (eval $ac_link) 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
01cb68df 19777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest$ac_exeext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 eval "$as_ac_var=yes"
19790else
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794eval "$as_ac_var=no"
19795fi
19796rm -f conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19798fi
19799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19801if test `eval echo '${'$as_ac_var'}'` = yes; then
19802 cat >>confdefs.h <<_ACEOF
19803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19804_ACEOF
19805
19806fi
19807done
19808
19809fi
19810
19811
19812
19813 if test "x$ac_cv_func_regcomp" != "xyes"; then
19814 if test "$wxUSE_REGEX" = "sys" ; then
19815 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19816echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19817 { (exit 1); exit 1; }; }
19818 else
19819 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19820echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19821 wxUSE_REGEX=builtin
19822 fi
19823 else
19824 wxUSE_REGEX=sys
19825 cat >>confdefs.h <<\_ACEOF
19826#define WX_NO_REGEX_ADVANCED 1
19827_ACEOF
19828
19829 fi
19830 fi
19831fi
19832
19833
19834ZLIB_LINK=
19835if test "$wxUSE_ZLIB" != "no" ; then
19836 cat >>confdefs.h <<\_ACEOF
19837#define wxUSE_ZLIB 1
19838_ACEOF
19839
19840
19841 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19842 if test "$USE_DARWIN" = 1; then
19843 system_zlib_h_ok="yes"
19844 else
19845 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19846echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19847if test "${ac_cv_header_zlib_h+set}" = set; then
19848 echo $ECHO_N "(cached) $ECHO_C" >&6
19849else
19850 if test "$cross_compiling" = yes; then
19851 unset ac_cv_header_zlib_h
19852
19853else
19854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860
19861 #include <zlib.h>
19862 #include <stdio.h>
19863
19864 int main()
19865 {
19866 FILE *f=fopen("conftestval", "w");
19867 if (!f) exit(1);
19868 fprintf(f, "%s",
19869 ZLIB_VERSION[0] == '1' &&
19870 (ZLIB_VERSION[2] > '1' ||
19871 (ZLIB_VERSION[2] == '1' &&
19872 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19873 exit(0);
19874 }
19875
19876_ACEOF
19877rm -f conftest$ac_exeext
19878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879 (eval $ac_link) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_cv_header_zlib_h=`cat conftestval`
19889else
19890 echo "$as_me: program exited with status $ac_status" >&5
19891echo "$as_me: failed program was:" >&5
19892sed 's/^/| /' conftest.$ac_ext >&5
19893
19894( exit $ac_status )
19895ac_cv_header_zlib_h=no
19896fi
19897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19898fi
19899
19900fi
19901echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19902echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19903 if test "${ac_cv_header_zlib_h+set}" = set; then
19904 echo "$as_me:$LINENO: checking for zlib.h" >&5
19905echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19906if test "${ac_cv_header_zlib_h+set}" = set; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908fi
19909echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19910echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19911else
19912 # Is the header compilable?
19913echo "$as_me:$LINENO: checking zlib.h usability" >&5
19914echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19915cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921$ac_includes_default
19922#include <zlib.h>
19923_ACEOF
19924rm -f conftest.$ac_objext
19925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
01cb68df 19933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; } &&
19939 { ac_try='test -s conftest.$ac_objext'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; }; then
19945 ac_header_compiler=yes
19946else
19947 echo "$as_me: failed program was:" >&5
19948sed 's/^/| /' conftest.$ac_ext >&5
19949
19950ac_header_compiler=no
19951fi
19952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19954echo "${ECHO_T}$ac_header_compiler" >&6
19955
19956# Is the header present?
19957echo "$as_me:$LINENO: checking zlib.h presence" >&5
19958echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19959cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965#include <zlib.h>
19966_ACEOF
19967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } >/dev/null; then
19975 if test -s conftest.err; then
19976 ac_cpp_err=$ac_c_preproc_warn_flag
19977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19978 else
19979 ac_cpp_err=
19980 fi
19981else
19982 ac_cpp_err=yes
19983fi
19984if test -z "$ac_cpp_err"; then
19985 ac_header_preproc=yes
19986else
19987 echo "$as_me: failed program was:" >&5
19988sed 's/^/| /' conftest.$ac_ext >&5
19989
19990 ac_header_preproc=no
19991fi
19992rm -f conftest.err conftest.$ac_ext
19993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19994echo "${ECHO_T}$ac_header_preproc" >&6
19995
19996# So? What about this header?
19997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19998 yes:no: )
19999 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20000echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20002echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20003 ac_header_preproc=yes
20004 ;;
20005 no:yes:* )
20006 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20007echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20009echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20011echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20013echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20015echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20017echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20018 (
20019 cat <<\_ASBOX
20020## ----------------------------------------- ##
20021## Report this to wx-dev@lists.wxwindows.org ##
20022## ----------------------------------------- ##
20023_ASBOX
20024 ) |
20025 sed "s/^/$as_me: WARNING: /" >&2
20026 ;;
20027esac
20028echo "$as_me:$LINENO: checking for zlib.h" >&5
20029echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20030if test "${ac_cv_header_zlib_h+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032else
20033 ac_cv_header_zlib_h=$ac_header_preproc
20034fi
20035echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20036echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20037
20038fi
20039
20040
20041
20042 system_zlib_h_ok=$ac_cv_header_zlib_h
20043 fi
20044
20045 if test "$system_zlib_h_ok" = "yes"; then
20046 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20047echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20048if test "${ac_cv_lib_z_deflate+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20050else
20051 ac_check_lib_save_LIBS=$LIBS
20052LIBS="-lz $LIBS"
20053cat >conftest.$ac_ext <<_ACEOF
20054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
20059
20060/* Override any gcc2 internal prototype to avoid an error. */
20061#ifdef __cplusplus
20062extern "C"
20063#endif
20064/* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20066char deflate ();
20067int
20068main ()
20069{
20070deflate ();
20071 ;
20072 return 0;
20073}
20074_ACEOF
20075rm -f conftest.$ac_objext conftest$ac_exeext
20076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20077 (eval $ac_link) 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
01cb68df 20084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest$ac_exeext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_cv_lib_z_deflate=yes
20097else
20098 echo "$as_me: failed program was:" >&5
20099sed 's/^/| /' conftest.$ac_ext >&5
20100
20101ac_cv_lib_z_deflate=no
20102fi
20103rm -f conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105LIBS=$ac_check_lib_save_LIBS
20106fi
20107echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20108echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20109if test $ac_cv_lib_z_deflate = yes; then
20110 ZLIB_LINK=" -lz"
20111fi
20112
20113 fi
20114
20115 if test "x$ZLIB_LINK" = "x" ; then
20116 if test "$wxUSE_ZLIB" = "sys" ; then
20117 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20118echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20119 { (exit 1); exit 1; }; }
20120 else
20121 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20122echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20123 wxUSE_ZLIB=builtin
20124 fi
20125 else
20126 wxUSE_ZLIB=sys
20127 fi
20128 fi
20129fi
20130
20131
20132PNG_LINK=
20133if test "$wxUSE_LIBPNG" != "no" ; then
20134 cat >>confdefs.h <<\_ACEOF
20135#define wxUSE_LIBPNG 1
20136_ACEOF
20137
20138
20139 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20140 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20141echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20142 wxUSE_LIBPNG=sys
20143 fi
20144
20145 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20146 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20147echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20148 wxUSE_LIBPNG=builtin
20149 fi
20150
20151 if test "$wxUSE_MGL" != 1 ; then
20152 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20153 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20154echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20155if test "${ac_cv_header_png_h+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158 if test "$cross_compiling" = yes; then
20159 unset ac_cv_header_png_h
20160
20161else
20162 cat >conftest.$ac_ext <<_ACEOF
20163/* confdefs.h. */
20164_ACEOF
20165cat confdefs.h >>conftest.$ac_ext
20166cat >>conftest.$ac_ext <<_ACEOF
20167/* end confdefs.h. */
20168
20169 #include <png.h>
20170 #include <stdio.h>
20171
20172 int main()
20173 {
20174 FILE *f=fopen("conftestval", "w");
20175 if (!f) exit(1);
20176 fprintf(f, "%s",
20177 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20178 exit(0);
20179 }
20180
20181_ACEOF
20182rm -f conftest$ac_exeext
20183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20184 (eval $ac_link) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20193 ac_cv_header_png_h=`cat conftestval`
20194else
20195 echo "$as_me: program exited with status $ac_status" >&5
20196echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199( exit $ac_status )
20200ac_cv_header_png_h=no
20201fi
20202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20203fi
20204
20205fi
20206echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20207echo "${ECHO_T}$ac_cv_header_png_h" >&6
20208 if test "${ac_cv_header_png_h+set}" = set; then
20209 echo "$as_me:$LINENO: checking for png.h" >&5
20210echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20211if test "${ac_cv_header_png_h+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213fi
20214echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20215echo "${ECHO_T}$ac_cv_header_png_h" >&6
20216else
20217 # Is the header compilable?
20218echo "$as_me:$LINENO: checking png.h usability" >&5
20219echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20220cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h. */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h. */
20226$ac_includes_default
20227#include <png.h>
20228_ACEOF
20229rm -f conftest.$ac_objext
20230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20231 (eval $ac_compile) 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
01cb68df 20238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_header_compiler=yes
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255ac_header_compiler=no
20256fi
20257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20259echo "${ECHO_T}$ac_header_compiler" >&6
20260
20261# Is the header present?
20262echo "$as_me:$LINENO: checking png.h presence" >&5
20263echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20264cat >conftest.$ac_ext <<_ACEOF
20265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
20270#include <png.h>
20271_ACEOF
20272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } >/dev/null; then
20280 if test -s conftest.err; then
20281 ac_cpp_err=$ac_c_preproc_warn_flag
20282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20283 else
20284 ac_cpp_err=
20285 fi
20286else
20287 ac_cpp_err=yes
20288fi
20289if test -z "$ac_cpp_err"; then
20290 ac_header_preproc=yes
20291else
20292 echo "$as_me: failed program was:" >&5
20293sed 's/^/| /' conftest.$ac_ext >&5
20294
20295 ac_header_preproc=no
20296fi
20297rm -f conftest.err conftest.$ac_ext
20298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20299echo "${ECHO_T}$ac_header_preproc" >&6
20300
20301# So? What about this header?
20302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20303 yes:no: )
20304 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20305echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20307echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20308 ac_header_preproc=yes
20309 ;;
20310 no:yes:* )
20311 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20312echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20314echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20316echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20318echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20320echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20321 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20322echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20323 (
20324 cat <<\_ASBOX
20325## ----------------------------------------- ##
20326## Report this to wx-dev@lists.wxwindows.org ##
20327## ----------------------------------------- ##
20328_ASBOX
20329 ) |
20330 sed "s/^/$as_me: WARNING: /" >&2
20331 ;;
20332esac
20333echo "$as_me:$LINENO: checking for png.h" >&5
20334echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20335if test "${ac_cv_header_png_h+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337else
20338 ac_cv_header_png_h=$ac_header_preproc
20339fi
20340echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20341echo "${ECHO_T}$ac_cv_header_png_h" >&6
20342
20343fi
20344
20345
20346
20347 if test "$ac_cv_header_png_h" = "yes"; then
20348 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20349echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20350if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353 ac_check_lib_save_LIBS=$LIBS
20354LIBS="-lpng -lz -lm $LIBS"
20355cat >conftest.$ac_ext <<_ACEOF
20356/* confdefs.h. */
20357_ACEOF
20358cat confdefs.h >>conftest.$ac_ext
20359cat >>conftest.$ac_ext <<_ACEOF
20360/* end confdefs.h. */
20361
20362/* Override any gcc2 internal prototype to avoid an error. */
20363#ifdef __cplusplus
20364extern "C"
20365#endif
20366/* We use char because int might match the return type of a gcc2
20367 builtin and then its argument prototype would still apply. */
20368char png_check_sig ();
20369int
20370main ()
20371{
20372png_check_sig ();
20373 ;
20374 return 0;
20375}
20376_ACEOF
20377rm -f conftest.$ac_objext conftest$ac_exeext
20378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379 (eval $ac_link) 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
01cb68df 20386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_cv_lib_png_png_check_sig=yes
20399else
20400 echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
20403ac_cv_lib_png_png_check_sig=no
20404fi
20405rm -f conftest.err conftest.$ac_objext \
20406 conftest$ac_exeext conftest.$ac_ext
20407LIBS=$ac_check_lib_save_LIBS
20408fi
20409echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20410echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20411if test $ac_cv_lib_png_png_check_sig = yes; then
20412 PNG_LINK=" -lpng -lz"
20413fi
20414
20415 fi
20416
20417 if test "x$PNG_LINK" = "x" ; then
20418 if test "$wxUSE_LIBPNG" = "sys" ; then
20419 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20420echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20421 { (exit 1); exit 1; }; }
20422 else
20423 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20424echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20425 wxUSE_LIBPNG=builtin
20426 fi
20427 else
20428 wxUSE_LIBPNG=sys
20429 fi
20430 fi
20431 fi
20432
20433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20434fi
20435
20436
20437JPEG_LINK=
20438if test "$wxUSE_LIBJPEG" != "no" ; then
20439 cat >>confdefs.h <<\_ACEOF
20440#define wxUSE_LIBJPEG 1
20441_ACEOF
20442
20443
20444 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20445 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20446echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20447 wxUSE_LIBJPEG=sys
20448 fi
20449
20450 if test "$wxUSE_MGL" != 1 ; then
20451 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20452 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20453echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20454 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20456else
20457 cat >conftest.$ac_ext <<_ACEOF
20458/* confdefs.h. */
20459_ACEOF
20460cat confdefs.h >>conftest.$ac_ext
20461cat >>conftest.$ac_ext <<_ACEOF
20462/* end confdefs.h. */
20463
20464 #undef HAVE_STDLIB_H
20465 #include <stdio.h>
20466 #include <jpeglib.h>
20467
20468int
20469main ()
20470{
20471
20472
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
01cb68df 20486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_header_jpeglib_h=yes
20499else
20500 echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503ac_cv_header_jpeglib_h=no
20504
20505fi
20506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507
20508fi
20509
20510 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20511echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20512
20513 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20514 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20515echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20516if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20518else
20519 ac_check_lib_save_LIBS=$LIBS
20520LIBS="-ljpeg $LIBS"
20521cat >conftest.$ac_ext <<_ACEOF
20522/* confdefs.h. */
20523_ACEOF
20524cat confdefs.h >>conftest.$ac_ext
20525cat >>conftest.$ac_ext <<_ACEOF
20526/* end confdefs.h. */
20527
20528/* Override any gcc2 internal prototype to avoid an error. */
20529#ifdef __cplusplus
20530extern "C"
20531#endif
20532/* We use char because int might match the return type of a gcc2
20533 builtin and then its argument prototype would still apply. */
20534char jpeg_read_header ();
20535int
20536main ()
20537{
20538jpeg_read_header ();
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext conftest$ac_exeext
20544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545 (eval $ac_link) 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
01cb68df 20552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest$ac_exeext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_lib_jpeg_jpeg_read_header=yes
20565else
20566 echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569ac_cv_lib_jpeg_jpeg_read_header=no
20570fi
20571rm -f conftest.err conftest.$ac_objext \
20572 conftest$ac_exeext conftest.$ac_ext
20573LIBS=$ac_check_lib_save_LIBS
20574fi
20575echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20576echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20577if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20578 JPEG_LINK=" -ljpeg"
20579fi
20580
20581 fi
20582
20583 if test "x$JPEG_LINK" = "x" ; then
20584 if test "$wxUSE_LIBJPEG" = "sys" ; then
20585 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20586echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20587 { (exit 1); exit 1; }; }
20588 else
20589 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20590echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20591 wxUSE_LIBJPEG=builtin
20592 fi
20593 else
20594 wxUSE_LIBJPEG=sys
20595 fi
20596 fi
20597 fi
20598fi
20599
20600
20601TIFF_LINK=
20602TIFF_PREREQ_LINKS=-lm
20603if test "$wxUSE_LIBTIFF" != "no" ; then
20604 cat >>confdefs.h <<\_ACEOF
20605#define wxUSE_LIBTIFF 1
20606_ACEOF
20607
20608
20609 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20610 if test "$wxUSE_LIBJPEG" = "sys"; then
20611 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20612 fi
20613 if test "$wxUSE_ZLIB" = "sys"; then
20614 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20615 fi
20616 if test "${ac_cv_header_tiffio_h+set}" = set; then
20617 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20618echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20619if test "${ac_cv_header_tiffio_h+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621fi
20622echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20623echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20624else
20625 # Is the header compilable?
20626echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20627echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20628cat >conftest.$ac_ext <<_ACEOF
20629/* confdefs.h. */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
20633/* end confdefs.h. */
20634$ac_includes_default
20635#include <tiffio.h>
20636_ACEOF
20637rm -f conftest.$ac_objext
20638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
01cb68df 20646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_header_compiler=yes
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663ac_header_compiler=no
20664fi
20665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667echo "${ECHO_T}$ac_header_compiler" >&6
20668
20669# Is the header present?
20670echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20671echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20672cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678#include <tiffio.h>
20679_ACEOF
20680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev/null; then
20688 if test -s conftest.err; then
20689 ac_cpp_err=$ac_c_preproc_warn_flag
20690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20691 else
20692 ac_cpp_err=
20693 fi
20694else
20695 ac_cpp_err=yes
20696fi
20697if test -z "$ac_cpp_err"; then
20698 ac_header_preproc=yes
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 ac_header_preproc=no
20704fi
20705rm -f conftest.err conftest.$ac_ext
20706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707echo "${ECHO_T}$ac_header_preproc" >&6
20708
20709# So? What about this header?
20710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20711 yes:no: )
20712 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20713echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20715echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc=yes
20717 ;;
20718 no:yes:* )
20719 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20720echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20722echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20724echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20726echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20728echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20730echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20731 (
20732 cat <<\_ASBOX
20733## ----------------------------------------- ##
20734## Report this to wx-dev@lists.wxwindows.org ##
20735## ----------------------------------------- ##
20736_ASBOX
20737 ) |
20738 sed "s/^/$as_me: WARNING: /" >&2
20739 ;;
20740esac
20741echo "$as_me:$LINENO: checking for tiffio.h" >&5
20742echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20743if test "${ac_cv_header_tiffio_h+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745else
20746 ac_cv_header_tiffio_h=$ac_header_preproc
20747fi
20748echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20749echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20750
20751fi
20752if test $ac_cv_header_tiffio_h = yes; then
20753
20754 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20755echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20756if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20758else
20759 ac_check_lib_save_LIBS=$LIBS
20760LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20761cat >conftest.$ac_ext <<_ACEOF
20762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
20766/* end confdefs.h. */
20767
20768/* Override any gcc2 internal prototype to avoid an error. */
20769#ifdef __cplusplus
20770extern "C"
20771#endif
20772/* We use char because int might match the return type of a gcc2
20773 builtin and then its argument prototype would still apply. */
20774char TIFFError ();
20775int
20776main ()
20777{
20778TIFFError ();
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783rm -f conftest.$ac_objext conftest$ac_exeext
20784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>conftest.er1
20786 ac_status=$?
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
01cb68df 20792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest$ac_exeext'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_cv_lib_tiff_TIFFError=yes
20805else
20806 echo "$as_me: failed program was:" >&5
20807sed 's/^/| /' conftest.$ac_ext >&5
20808
20809ac_cv_lib_tiff_TIFFError=no
20810fi
20811rm -f conftest.err conftest.$ac_objext \
20812 conftest$ac_exeext conftest.$ac_ext
20813LIBS=$ac_check_lib_save_LIBS
20814fi
20815echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20816echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20817if test $ac_cv_lib_tiff_TIFFError = yes; then
20818 TIFF_LINK=" -ltiff"
20819fi
20820
20821
20822
20823fi
20824
20825
20826
20827 if test "x$TIFF_LINK" = "x" ; then
20828 if test "$wxUSE_LIBTIFF" = "sys" ; then
20829 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20830echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20831 { (exit 1); exit 1; }; }
20832 else
20833 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20834echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20835 wxUSE_LIBTIFF=builtin
20836 fi
20837 else
20838 wxUSE_LIBTIFF=sys
20839 fi
20840 fi
20841fi
20842
20843
20844if test "$wxUSE_EXPAT" != "no"; then
20845 wxUSE_XML=yes
20846 cat >>confdefs.h <<\_ACEOF
20847#define wxUSE_EXPAT 1
20848_ACEOF
20849
20850 cat >>confdefs.h <<\_ACEOF
20851#define wxUSE_XML 1
20852_ACEOF
20853
20854
20855 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20856 if test "${ac_cv_header_expat_h+set}" = set; then
20857 echo "$as_me:$LINENO: checking for expat.h" >&5
20858echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20859if test "${ac_cv_header_expat_h+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861fi
20862echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20863echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20864else
20865 # Is the header compilable?
20866echo "$as_me:$LINENO: checking expat.h usability" >&5
20867echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20868cat >conftest.$ac_ext <<_ACEOF
20869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
20874$ac_includes_default
20875#include <expat.h>
20876_ACEOF
20877rm -f conftest.$ac_objext
20878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
01cb68df 20886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest.$ac_objext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 ac_header_compiler=yes
20899else
20900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
20903ac_header_compiler=no
20904fi
20905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20907echo "${ECHO_T}$ac_header_compiler" >&6
20908
20909# Is the header present?
20910echo "$as_me:$LINENO: checking expat.h presence" >&5
20911echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20912cat >conftest.$ac_ext <<_ACEOF
20913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
20918#include <expat.h>
20919_ACEOF
20920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } >/dev/null; then
20928 if test -s conftest.err; then
20929 ac_cpp_err=$ac_c_preproc_warn_flag
20930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20931 else
20932 ac_cpp_err=
20933 fi
20934else
20935 ac_cpp_err=yes
20936fi
20937if test -z "$ac_cpp_err"; then
20938 ac_header_preproc=yes
20939else
20940 echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
20943 ac_header_preproc=no
20944fi
20945rm -f conftest.err conftest.$ac_ext
20946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20947echo "${ECHO_T}$ac_header_preproc" >&6
20948
20949# So? What about this header?
20950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20951 yes:no: )
20952 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20953echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20955echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20956 ac_header_preproc=yes
20957 ;;
20958 no:yes:* )
20959 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20960echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20961 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20962echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20964echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20965 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20966echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20968echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20970echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20971 (
20972 cat <<\_ASBOX
20973## ----------------------------------------- ##
20974## Report this to wx-dev@lists.wxwindows.org ##
20975## ----------------------------------------- ##
20976_ASBOX
20977 ) |
20978 sed "s/^/$as_me: WARNING: /" >&2
20979 ;;
20980esac
20981echo "$as_me:$LINENO: checking for expat.h" >&5
20982echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20983if test "${ac_cv_header_expat_h+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985else
20986 ac_cv_header_expat_h=$ac_header_preproc
20987fi
20988echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20989echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20990
20991fi
20992if test $ac_cv_header_expat_h = yes; then
20993 found_expat_h=1
20994fi
20995
20996
20997 if test "x$found_expat_h" = "x1"; then
20998 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20999echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21000if test "${wx_cv_expat_is_not_broken+set}" = set; then
21001 echo $ECHO_N "(cached) $ECHO_C" >&6
21002else
21003
21004
21005
21006 ac_ext=cc
21007ac_cpp='$CXXCPP $CPPFLAGS'
21008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21011
21012 cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018#include <expat.h>
21019int
21020main ()
21021{
21022
21023 ;
21024 return 0;
21025}
21026_ACEOF
21027rm -f conftest.$ac_objext
21028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21029 (eval $ac_compile) 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
01cb68df 21036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; } &&
21042 { ac_try='test -s conftest.$ac_objext'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 wx_cv_expat_is_not_broken=yes
21049else
21050 echo "$as_me: failed program was:" >&5
21051sed 's/^/| /' conftest.$ac_ext >&5
21052
21053wx_cv_expat_is_not_broken=no
21054
21055fi
21056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21057 ac_ext=c
21058ac_cpp='$CPP $CPPFLAGS'
21059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063
21064
21065fi
21066echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21067echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21068 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21069 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21070echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21071if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073else
21074 ac_check_lib_save_LIBS=$LIBS
21075LIBS="-lexpat $LIBS"
21076cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082
21083/* Override any gcc2 internal prototype to avoid an error. */
21084#ifdef __cplusplus
21085extern "C"
21086#endif
21087/* We use char because int might match the return type of a gcc2
21088 builtin and then its argument prototype would still apply. */
21089char XML_ParserCreate ();
21090int
21091main ()
21092{
21093XML_ParserCreate ();
21094 ;
21095 return 0;
21096}
21097_ACEOF
21098rm -f conftest.$ac_objext conftest$ac_exeext
21099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100 (eval $ac_link) 2>conftest.er1
21101 ac_status=$?
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
01cb68df 21107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_cv_lib_expat_XML_ParserCreate=yes
21120else
21121 echo "$as_me: failed program was:" >&5
21122sed 's/^/| /' conftest.$ac_ext >&5
21123
21124ac_cv_lib_expat_XML_ParserCreate=no
21125fi
21126rm -f conftest.err conftest.$ac_objext \
21127 conftest$ac_exeext conftest.$ac_ext
21128LIBS=$ac_check_lib_save_LIBS
21129fi
21130echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21131echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21132if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21133 EXPAT_LINK=" -lexpat"
21134fi
21135
21136 fi
21137 fi
21138 if test "x$EXPAT_LINK" = "x" ; then
21139 if test "$wxUSE_EXPAT" = "sys" ; then
21140 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21141echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21142 { (exit 1); exit 1; }; }
21143 else
21144 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21145echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21146 wxUSE_EXPAT=builtin
21147 fi
21148 else
21149 wxUSE_EXPAT=sys
21150 fi
21151 fi
21152 if test "$wxUSE_EXPAT" = "builtin" ; then
21153
21154
21155subdirs="$subdirs src/expat"
21156
21157 fi
21158fi
21159
21160
21161
21162if test "$wxUSE_LIBMSPACK" != "no"; then
21163
21164 if test "${ac_cv_header_mspack_h+set}" = set; then
21165 echo "$as_me:$LINENO: checking for mspack.h" >&5
21166echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21167if test "${ac_cv_header_mspack_h+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169fi
21170echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21171echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21172else
21173 # Is the header compilable?
21174echo "$as_me:$LINENO: checking mspack.h usability" >&5
21175echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21176cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
21182$ac_includes_default
21183#include <mspack.h>
21184_ACEOF
21185rm -f conftest.$ac_objext
21186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21187 (eval $ac_compile) 2>conftest.er1
21188 ac_status=$?
21189 grep -v '^ *+' conftest.er1 >conftest.err
21190 rm -f conftest.er1
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
01cb68df 21194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try='test -s conftest.$ac_objext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 ac_header_compiler=yes
21207else
21208 echo "$as_me: failed program was:" >&5
21209sed 's/^/| /' conftest.$ac_ext >&5
21210
21211ac_header_compiler=no
21212fi
21213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21215echo "${ECHO_T}$ac_header_compiler" >&6
21216
21217# Is the header present?
21218echo "$as_me:$LINENO: checking mspack.h presence" >&5
21219echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21220cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
21226#include <mspack.h>
21227_ACEOF
21228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } >/dev/null; then
21236 if test -s conftest.err; then
21237 ac_cpp_err=$ac_c_preproc_warn_flag
21238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21239 else
21240 ac_cpp_err=
21241 fi
21242else
21243 ac_cpp_err=yes
21244fi
21245if test -z "$ac_cpp_err"; then
21246 ac_header_preproc=yes
21247else
21248 echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 ac_header_preproc=no
21252fi
21253rm -f conftest.err conftest.$ac_ext
21254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21255echo "${ECHO_T}$ac_header_preproc" >&6
21256
21257# So? What about this header?
21258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21259 yes:no: )
21260 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21261echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21263echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21264 ac_header_preproc=yes
21265 ;;
21266 no:yes:* )
21267 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21268echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21270echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21272echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21274echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21276echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21278echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21279 (
21280 cat <<\_ASBOX
21281## ----------------------------------------- ##
21282## Report this to wx-dev@lists.wxwindows.org ##
21283## ----------------------------------------- ##
21284_ASBOX
21285 ) |
21286 sed "s/^/$as_me: WARNING: /" >&2
21287 ;;
21288esac
21289echo "$as_me:$LINENO: checking for mspack.h" >&5
21290echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21291if test "${ac_cv_header_mspack_h+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21293else
21294 ac_cv_header_mspack_h=$ac_header_preproc
21295fi
21296echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21297echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21298
21299fi
21300if test $ac_cv_header_mspack_h = yes; then
21301 found_mspack_h=1
21302fi
21303
21304
21305 if test "x$found_mspack_h" = "x1"; then
21306 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21307echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21308if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310else
21311 ac_check_lib_save_LIBS=$LIBS
21312LIBS="-lmspack $LIBS"
21313cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
21319
21320/* Override any gcc2 internal prototype to avoid an error. */
21321#ifdef __cplusplus
21322extern "C"
21323#endif
21324/* We use char because int might match the return type of a gcc2
21325 builtin and then its argument prototype would still apply. */
21326char mspack_create_chm_decompressor ();
21327int
21328main ()
21329{
21330mspack_create_chm_decompressor ();
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext conftest$ac_exeext
21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
01cb68df 21344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21357else
21358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21362fi
21363rm -f conftest.err conftest.$ac_objext \
21364 conftest$ac_exeext conftest.$ac_ext
21365LIBS=$ac_check_lib_save_LIBS
21366fi
21367echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21368echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21369if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21370 MSPACK_LINK=" -lmspack"
21371fi
21372
21373 fi
21374 if test "x$MSPACK_LINK" = "x" ; then
21375 wxUSE_LIBMSPACK=no
21376 else
21377 cat >>confdefs.h <<\_ACEOF
21378#define wxUSE_LIBMSPACK 1
21379_ACEOF
21380
21381 fi
21382fi
21383
21384
21385
21386AFMINSTALL=
21387WIN32INSTALL=
21388
21389TOOLKIT=
21390TOOLKIT_INCLUDE=
21391WIDGET_SET=
21392
21393if test "$USE_WIN32" = 1 ; then
21394
21395for ac_header in w32api.h
21396do
21397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21398if eval "test \"\${$as_ac_Header+set}\" = set"; then
21399 echo "$as_me:$LINENO: checking for $ac_header" >&5
21400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21401if eval "test \"\${$as_ac_Header+set}\" = set"; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21403fi
21404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21406else
21407 # Is the header compilable?
21408echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21410cat >conftest.$ac_ext <<_ACEOF
21411/* confdefs.h. */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h. */
21416$ac_includes_default
21417#include <$ac_header>
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21421 (eval $ac_compile) 2>conftest.er1
21422 ac_status=$?
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } &&
01cb68df 21428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; } &&
21434 { ac_try='test -s conftest.$ac_objext'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ac_header_compiler=yes
21441else
21442 echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
21445ac_header_compiler=no
21446fi
21447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21449echo "${ECHO_T}$ac_header_compiler" >&6
21450
21451# Is the header present?
21452echo "$as_me:$LINENO: checking $ac_header presence" >&5
21453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21454cat >conftest.$ac_ext <<_ACEOF
21455/* confdefs.h. */
21456_ACEOF
21457cat confdefs.h >>conftest.$ac_ext
21458cat >>conftest.$ac_ext <<_ACEOF
21459/* end confdefs.h. */
21460#include <$ac_header>
21461_ACEOF
21462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } >/dev/null; then
21470 if test -s conftest.err; then
21471 ac_cpp_err=$ac_c_preproc_warn_flag
21472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21473 else
21474 ac_cpp_err=
21475 fi
21476else
21477 ac_cpp_err=yes
21478fi
21479if test -z "$ac_cpp_err"; then
21480 ac_header_preproc=yes
21481else
21482 echo "$as_me: failed program was:" >&5
21483sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ac_header_preproc=no
21486fi
21487rm -f conftest.err conftest.$ac_ext
21488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21489echo "${ECHO_T}$ac_header_preproc" >&6
21490
21491# So? What about this header?
21492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21493 yes:no: )
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21498 ac_header_preproc=yes
21499 ;;
21500 no:yes:* )
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21513 (
21514 cat <<\_ASBOX
21515## ----------------------------------------- ##
21516## Report this to wx-dev@lists.wxwindows.org ##
21517## ----------------------------------------- ##
21518_ASBOX
21519 ) |
21520 sed "s/^/$as_me: WARNING: /" >&2
21521 ;;
21522esac
21523echo "$as_me:$LINENO: checking for $ac_header" >&5
21524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21525if eval "test \"\${$as_ac_Header+set}\" = set"; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527else
21528 eval "$as_ac_Header=\$ac_header_preproc"
21529fi
21530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21532
21533fi
21534if test `eval echo '${'$as_ac_Header'}'` = yes; then
21535 cat >>confdefs.h <<_ACEOF
21536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21537_ACEOF
21538
21539fi
21540
21541done
21542
21543 if test "${ac_cv_header_windows_h+set}" = set; then
21544 echo "$as_me:$LINENO: checking for windows.h" >&5
21545echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21546if test "${ac_cv_header_windows_h+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548fi
21549echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21550echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21551else
21552 # Is the header compilable?
21553echo "$as_me:$LINENO: checking windows.h usability" >&5
21554echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21555cat >conftest.$ac_ext <<_ACEOF
21556/* confdefs.h. */
21557_ACEOF
21558cat confdefs.h >>conftest.$ac_ext
21559cat >>conftest.$ac_ext <<_ACEOF
21560/* end confdefs.h. */
21561$ac_includes_default
21562#include <windows.h>
21563_ACEOF
21564rm -f conftest.$ac_objext
21565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566 (eval $ac_compile) 2>conftest.er1
21567 ac_status=$?
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
01cb68df 21573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_header_compiler=yes
21586else
21587 echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590ac_header_compiler=no
21591fi
21592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21594echo "${ECHO_T}$ac_header_compiler" >&6
21595
21596# Is the header present?
21597echo "$as_me:$LINENO: checking windows.h presence" >&5
21598echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21599cat >conftest.$ac_ext <<_ACEOF
21600/* confdefs.h. */
21601_ACEOF
21602cat confdefs.h >>conftest.$ac_ext
21603cat >>conftest.$ac_ext <<_ACEOF
21604/* end confdefs.h. */
21605#include <windows.h>
21606_ACEOF
21607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } >/dev/null; then
21615 if test -s conftest.err; then
21616 ac_cpp_err=$ac_c_preproc_warn_flag
21617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21618 else
21619 ac_cpp_err=
21620 fi
21621else
21622 ac_cpp_err=yes
21623fi
21624if test -z "$ac_cpp_err"; then
21625 ac_header_preproc=yes
21626else
21627 echo "$as_me: failed program was:" >&5
21628sed 's/^/| /' conftest.$ac_ext >&5
21629
21630 ac_header_preproc=no
21631fi
21632rm -f conftest.err conftest.$ac_ext
21633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21634echo "${ECHO_T}$ac_header_preproc" >&6
21635
21636# So? What about this header?
21637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21638 yes:no: )
21639 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21640echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21642echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21643 ac_header_preproc=yes
21644 ;;
21645 no:yes:* )
21646 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21647echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21648 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21649echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21651echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21653echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21654 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21655echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21657echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21658 (
21659 cat <<\_ASBOX
21660## ----------------------------------------- ##
21661## Report this to wx-dev@lists.wxwindows.org ##
21662## ----------------------------------------- ##
21663_ASBOX
21664 ) |
21665 sed "s/^/$as_me: WARNING: /" >&2
21666 ;;
21667esac
21668echo "$as_me:$LINENO: checking for windows.h" >&5
21669echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21670if test "${ac_cv_header_windows_h+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21672else
21673 ac_cv_header_windows_h=$ac_header_preproc
21674fi
21675echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21676echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21677
21678fi
21679if test $ac_cv_header_windows_h = yes; then
21680 :
21681else
21682
21683 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21684echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21685 { (exit 1); exit 1; }; }
21686
21687fi
21688
21689
21690
21691 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21692
21693 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21694 LIBS="$LIBS -loleacc"
21695 fi
21696
21697 case "${host}" in
21698 *-*-cygwin* )
21699 LIBS="$LIBS -lkernel32 -luser32"
21700 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21701 esac
21702
21703 if test "$wxUSE_ODBC" = "sys" ; then
21704 wxUSE_ODBC = "yes"
21705 fi
21706 if test "$wxUSE_ODBC" = "yes" ; then
21707 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21708 cat >>confdefs.h <<\_ACEOF
21709#define wxUSE_ODBC 1
21710_ACEOF
21711
21712 fi
21713
21714 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21715 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21716
21717 WIN32INSTALL=win32install
21718fi
21719
21720if test "$wxUSE_GUI" = "yes"; then
21721 USE_GUI=1
21722
21723 GUI_TK_LIBRARY=
21724
21725 WXGTK12=
21726 WXGTK127=
21727 WXGTK20=
21728 WXGPE=
21729
21730 if test "$wxUSE_MSW" = 1 ; then
21731 TOOLKIT=MSW
21732 GUIDIST=MSW_DIST
21733
21734 case "${host}" in
21735 *-*-mingw32* )
21736 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21737 esac
21738 fi
21739
21740 if test "$wxUSE_GTK" = 1; then
21741 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21742echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21743
21744 gtk_version_cached=1
21745 if test "${wx_cv_lib_gtk+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748
21749 gtk_version_cached=0
21750 echo "$as_me:$LINENO: result: " >&5
21751echo "${ECHO_T}" >&6
21752
21753 GTK_MODULES=
21754 if test "$wxUSE_THREADS" = "yes"; then
21755 GTK_MODULES=gthread
21756 fi
21757
21758 wx_cv_lib_gtk=
21759 if test "x$wxUSE_GTK2" = "xyes"; then
21760 # Check whether --enable-gtktest or --disable-gtktest was given.
21761if test "${enable_gtktest+set}" = set; then
21762 enableval="$enable_gtktest"
21763
21764else
21765 enable_gtktest=yes
21766fi;
21767
21768 pkg_config_args=gtk+-2.0
21769 for module in . $GTK_MODULES
21770 do
21771 case "$module" in
21772 gthread)
21773 pkg_config_args="$pkg_config_args gthread-2.0"
21774 ;;
21775 esac
21776 done
21777
21778 no_gtk=""
21779
21780 # Extract the first word of "pkg-config", so it can be a program name with args.
21781set dummy pkg-config; ac_word=$2
21782echo "$as_me:$LINENO: checking for $ac_word" >&5
21783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21784if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21786else
21787 case $PKG_CONFIG in
21788 [\\/]* | ?:[\\/]*)
21789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21790 ;;
21791 *)
21792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21793for as_dir in $PATH
21794do
21795 IFS=$as_save_IFS
21796 test -z "$as_dir" && as_dir=.
21797 for ac_exec_ext in '' $ac_executable_extensions; do
21798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21801 break 2
21802 fi
21803done
21804done
21805
21806 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21807 ;;
21808esac
21809fi
21810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21811
21812if test -n "$PKG_CONFIG"; then
21813 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21814echo "${ECHO_T}$PKG_CONFIG" >&6
21815else
21816 echo "$as_me:$LINENO: result: no" >&5
21817echo "${ECHO_T}no" >&6
21818fi
21819
21820
21821 if test x$PKG_CONFIG != xno ; then
21822 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21823 :
21824 else
3fd9c298 21825 echo *** pkg-config too old; version 0.7 or better required.
a848cd7e
SC
21826 no_gtk=yes
21827 PKG_CONFIG=no
21828 fi
21829 else
21830 no_gtk=yes
21831 fi
21832
21833 min_gtk_version=2.0.0
21834 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21835echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21836
21837 if test x$PKG_CONFIG != xno ; then
21838 ## don't try to run the test against uninstalled libtool libs
21839 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21840 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21841 enable_gtktest=no
21842 fi
21843
21844 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21845 :
21846 else
21847 no_gtk=yes
21848 fi
21849 fi
21850
21851 if test x"$no_gtk" = x ; then
21852 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21853 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21854 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21855 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21856 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21857 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21858 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21859 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21860 if test "x$enable_gtktest" = "xyes" ; then
21861 ac_save_CFLAGS="$CFLAGS"
21862 ac_save_LIBS="$LIBS"
21863 CFLAGS="$CFLAGS $GTK_CFLAGS"
21864 LIBS="$GTK_LIBS $LIBS"
21865 rm -f conf.gtktest
21866 if test "$cross_compiling" = yes; then
21867 echo $ac_n "cross compiling; assumed OK... $ac_c"
21868else
21869 cat >conftest.$ac_ext <<_ACEOF
21870/* confdefs.h. */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h. */
21875
21876#include <gtk/gtk.h>
21877#include <stdio.h>
21878#include <stdlib.h>
21879
21880int
21881main ()
21882{
21883 int major, minor, micro;
21884 char *tmp_version;
21885
21886 system ("touch conf.gtktest");
21887
21888 /* HP/UX 9 (%@#!) writes to sscanf strings */
21889 tmp_version = g_strdup("$min_gtk_version");
21890 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21891 printf("%s, bad version string\n", "$min_gtk_version");
21892 exit(1);
21893 }
21894
21895 if ((gtk_major_version != $gtk_config_major_version) ||
21896 (gtk_minor_version != $gtk_config_minor_version) ||
21897 (gtk_micro_version != $gtk_config_micro_version))
21898 {
21899 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21900 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21901 gtk_major_version, gtk_minor_version, gtk_micro_version);
21902 printf ("*** was found! If pkg-config was correct, then it is best\n");
21903 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21904 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21905 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21906 printf("*** required on your system.\n");
21907 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21908 printf("*** to point to the correct configuration files\n");
21909 }
21910 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21911 (gtk_minor_version != GTK_MINOR_VERSION) ||
21912 (gtk_micro_version != GTK_MICRO_VERSION))
21913 {
21914 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21915 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21916 printf("*** library (version %d.%d.%d)\n",
21917 gtk_major_version, gtk_minor_version, gtk_micro_version);
21918 }
21919 else
21920 {
21921 if ((gtk_major_version > major) ||
21922 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21923 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21924 {
21925 return 0;
21926 }
21927 else
21928 {
21929 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21930 gtk_major_version, gtk_minor_version, gtk_micro_version);
21931 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21932 major, minor, micro);
21933 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21934 printf("***\n");
21935 printf("*** If you have already installed a sufficiently new version, this error\n");
21936 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21937 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21938 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21939 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21940 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21941 printf("*** so that the correct libraries are found at run-time))\n");
21942 }
21943 }
21944 return 1;
21945}
21946
21947_ACEOF
21948rm -f conftest$ac_exeext
21949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21950 (eval $ac_link) 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; }; then
21959 :
21960else
21961 echo "$as_me: program exited with status $ac_status" >&5
21962echo "$as_me: failed program was:" >&5
21963sed 's/^/| /' conftest.$ac_ext >&5
21964
21965( exit $ac_status )
21966no_gtk=yes
21967fi
21968rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21969fi
21970 CFLAGS="$ac_save_CFLAGS"
21971 LIBS="$ac_save_LIBS"
21972 fi
21973 fi
21974 if test "x$no_gtk" = x ; then
21975 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21976echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21977 wx_cv_lib_gtk=2.0
21978 else
21979 echo "$as_me:$LINENO: result: no" >&5
21980echo "${ECHO_T}no" >&6
21981 if test "$PKG_CONFIG" = "no" ; then
21982 echo "*** A new enough version of pkg-config was not found."
21983 echo "*** See http://pkgconfig.sourceforge.net"
21984 else
21985 if test -f conf.gtktest ; then
21986 :
21987 else
21988 echo "*** Could not run GTK+ test program, checking why..."
21989 ac_save_CFLAGS="$CFLAGS"
21990 ac_save_LIBS="$LIBS"
21991 CFLAGS="$CFLAGS $GTK_CFLAGS"
21992 LIBS="$LIBS $GTK_LIBS"
21993 cat >conftest.$ac_ext <<_ACEOF
21994/* confdefs.h. */
21995_ACEOF
21996cat confdefs.h >>conftest.$ac_ext
21997cat >>conftest.$ac_ext <<_ACEOF
21998/* end confdefs.h. */
21999
22000#include <gtk/gtk.h>
22001#include <stdio.h>
22002
22003int
22004main ()
22005{
22006 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22007 ;
22008 return 0;
22009}
22010_ACEOF
22011rm -f conftest.$ac_objext conftest$ac_exeext
22012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013 (eval $ac_link) 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
01cb68df 22020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
22021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022 (eval $ac_try) 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 echo "*** The test program compiled, but did not run. This usually means"
22033 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22034 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22035 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22036 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22037 echo "*** is required on your system"
22038 echo "***"
22039 echo "*** If you have an old version installed, it is best to remove it, although"
22040 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22041else
22042 echo "$as_me: failed program was:" >&5
22043sed 's/^/| /' conftest.$ac_ext >&5
22044
22045 echo "*** The test program failed to compile or link. See the file config.log for the"
22046 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22047fi
22048rm -f conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22050 CFLAGS="$ac_save_CFLAGS"
22051 LIBS="$ac_save_LIBS"
22052 fi
22053 fi
22054 GTK_CFLAGS=""
22055 GTK_LIBS=""
22056 :
22057 fi
22058
22059
22060 rm -f conf.gtktest
22061
22062 else
22063
22064# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22065if test "${with_gtk_prefix+set}" = set; then
22066 withval="$with_gtk_prefix"
22067 gtk_config_prefix="$withval"
22068else
22069 gtk_config_prefix=""
22070fi;
22071
22072# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22073if test "${with_gtk_exec_prefix+set}" = set; then
22074 withval="$with_gtk_exec_prefix"
22075 gtk_config_exec_prefix="$withval"
22076else
22077 gtk_config_exec_prefix=""
22078fi;
22079# Check whether --enable-gtktest or --disable-gtktest was given.
22080if test "${enable_gtktest+set}" = set; then
22081 enableval="$enable_gtktest"
22082
22083else
22084 enable_gtktest=yes
22085fi;
22086
22087 for module in . $GTK_MODULES
22088 do
22089 case "$module" in
22090 gthread)
22091 gtk_config_args="$gtk_config_args gthread"
22092 ;;
22093 esac
22094 done
22095
22096 if test x$gtk_config_exec_prefix != x ; then
22097 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22098 if test x${GTK_CONFIG+set} != xset ; then
22099 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22100 fi
22101 fi
22102 if test x$gtk_config_prefix != x ; then
22103 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22104 if test x${GTK_CONFIG+set} != xset ; then
22105 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22106 fi
22107 fi
22108
22109 # Extract the first word of "gtk-config", so it can be a program name with args.
22110set dummy gtk-config; ac_word=$2
22111echo "$as_me:$LINENO: checking for $ac_word" >&5
22112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22113if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22115else
22116 case $GTK_CONFIG in
22117 [\\/]* | ?:[\\/]*)
22118 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22119 ;;
22120 *)
22121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22122for as_dir in $PATH
22123do
22124 IFS=$as_save_IFS
22125 test -z "$as_dir" && as_dir=.
22126 for ac_exec_ext in '' $ac_executable_extensions; do
22127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22128 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22130 break 2
22131 fi
22132done
22133done
22134
22135 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22136 ;;
22137esac
22138fi
22139GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22140
22141if test -n "$GTK_CONFIG"; then
22142 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22143echo "${ECHO_T}$GTK_CONFIG" >&6
22144else
22145 echo "$as_me:$LINENO: result: no" >&5
22146echo "${ECHO_T}no" >&6
22147fi
22148
22149 min_gtk_version=1.2.7
22150 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22151echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22152 no_gtk=""
22153 if test "$GTK_CONFIG" = "no" ; then
22154 no_gtk=yes
22155 else
22156 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22157 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22158 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22160 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22162 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22163 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22164 if test "x$enable_gtktest" = "xyes" ; then
22165 ac_save_CFLAGS="$CFLAGS"
22166 ac_save_LIBS="$LIBS"
22167 CFLAGS="$CFLAGS $GTK_CFLAGS"
22168 LIBS="$GTK_LIBS $LIBS"
22169 rm -f conf.gtktest
22170 if test "$cross_compiling" = yes; then
22171 echo $ac_n "cross compiling; assumed OK... $ac_c"
22172else
22173 cat >conftest.$ac_ext <<_ACEOF
22174/* confdefs.h. */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h. */
22179
22180#include <gtk/gtk.h>
22181#include <stdio.h>
22182#include <stdlib.h>
22183
22184int
22185main ()
22186{
22187 int major, minor, micro;
22188 char *tmp_version;
22189
22190 system ("touch conf.gtktest");
22191
22192 /* HP/UX 9 (%@#!) writes to sscanf strings */
22193 tmp_version = g_strdup("$min_gtk_version");
22194 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22195 printf("%s, bad version string\n", "$min_gtk_version");
22196 exit(1);
22197 }
22198
22199 if ((gtk_major_version != $gtk_config_major_version) ||
22200 (gtk_minor_version != $gtk_config_minor_version) ||
22201 (gtk_micro_version != $gtk_config_micro_version))
22202 {
22203 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22204 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22205 gtk_major_version, gtk_minor_version, gtk_micro_version);
22206 printf ("*** was found! If gtk-config was correct, then it is best\n");
22207 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22208 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22209 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22210 printf("*** required on your system.\n");
22211 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22212 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22213 printf("*** before re-running configure\n");
22214 }
22215#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22216 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22217 (gtk_minor_version != GTK_MINOR_VERSION) ||
22218 (gtk_micro_version != GTK_MICRO_VERSION))
22219 {
22220 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22221 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22222 printf("*** library (version %d.%d.%d)\n",
22223 gtk_major_version, gtk_minor_version, gtk_micro_version);
22224 }
22225#endif /* defined (GTK_MAJOR_VERSION) ... */
22226 else
22227 {
22228 if ((gtk_major_version > major) ||
22229 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22230 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22231 {
22232 return 0;
22233 }
22234 else
22235 {
22236 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22237 gtk_major_version, gtk_minor_version, gtk_micro_version);
22238 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22239 major, minor, micro);
22240 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22241 printf("***\n");
22242 printf("*** If you have already installed a sufficiently new version, this error\n");
22243 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22244 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22245 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22246 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22247 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22248 printf("*** so that the correct libraries are found at run-time))\n");
22249 }
22250 }
22251 return 1;
22252}
22253
22254_ACEOF
22255rm -f conftest$ac_exeext
22256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22257 (eval $ac_link) 2>&5
22258 ac_status=$?
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; }; then
22266 :
22267else
22268 echo "$as_me: program exited with status $ac_status" >&5
22269echo "$as_me: failed program was:" >&5
22270sed 's/^/| /' conftest.$ac_ext >&5
22271
22272( exit $ac_status )
22273no_gtk=yes
22274fi
22275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22276fi
22277 CFLAGS="$ac_save_CFLAGS"
22278 LIBS="$ac_save_LIBS"
22279 fi
22280 fi
22281 if test "x$no_gtk" = x ; then
22282 echo "$as_me:$LINENO: result: yes" >&5
22283echo "${ECHO_T}yes" >&6
22284 wx_cv_lib_gtk=1.2.7
22285 else
22286 echo "$as_me:$LINENO: result: no" >&5
22287echo "${ECHO_T}no" >&6
22288 if test "$GTK_CONFIG" = "no" ; then
22289 echo "*** The gtk-config script installed by GTK could not be found"
22290 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22291 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22292 echo "*** full path to gtk-config."
22293 else
22294 if test -f conf.gtktest ; then
22295 :
22296 else
22297 echo "*** Could not run GTK test program, checking why..."
22298 CFLAGS="$CFLAGS $GTK_CFLAGS"
22299 LIBS="$LIBS $GTK_LIBS"
22300 cat >conftest.$ac_ext <<_ACEOF
22301/* confdefs.h. */
22302_ACEOF
22303cat confdefs.h >>conftest.$ac_ext
22304cat >>conftest.$ac_ext <<_ACEOF
22305/* end confdefs.h. */
22306
22307#include <gtk/gtk.h>
22308#include <stdio.h>
22309
22310int
22311main ()
22312{
22313 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22314 ;
22315 return 0;
22316}
22317_ACEOF
22318rm -f conftest.$ac_objext conftest$ac_exeext
22319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
01cb68df 22327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest$ac_exeext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 echo "*** The test program compiled, but did not run. This usually means"
22340 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22341 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22342 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22343 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22344 echo "*** is required on your system"
22345 echo "***"
22346 echo "*** If you have an old version installed, it is best to remove it, although"
22347 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22348 echo "***"
22349 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22350 echo "*** came with the system with the command"
22351 echo "***"
22352 echo "*** rpm --erase --nodeps gtk gtk-devel"
22353else
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 echo "*** The test program failed to compile or link. See the file config.log for the"
22358 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22359 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22360 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22361fi
22362rm -f conftest.err conftest.$ac_objext \
22363 conftest$ac_exeext conftest.$ac_ext
22364 CFLAGS="$ac_save_CFLAGS"
22365 LIBS="$ac_save_LIBS"
22366 fi
22367 fi
22368 GTK_CFLAGS=""
22369 GTK_LIBS=""
22370 :
22371 fi
22372
22373
22374 rm -f conf.gtktest
22375
22376
22377 if test -z "$wx_cv_lib_gtk"; then
22378
22379# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22380if test "${with_gtk_prefix+set}" = set; then
22381 withval="$with_gtk_prefix"
22382 gtk_config_prefix="$withval"
22383else
22384 gtk_config_prefix=""
22385fi;
22386
22387# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22388if test "${with_gtk_exec_prefix+set}" = set; then
22389 withval="$with_gtk_exec_prefix"
22390 gtk_config_exec_prefix="$withval"
22391else
22392 gtk_config_exec_prefix=""
22393fi;
22394# Check whether --enable-gtktest or --disable-gtktest was given.
22395if test "${enable_gtktest+set}" = set; then
22396 enableval="$enable_gtktest"
22397
22398else
22399 enable_gtktest=yes
22400fi;
22401
22402 for module in . $GTK_MODULES
22403 do
22404 case "$module" in
22405 gthread)
22406 gtk_config_args="$gtk_config_args gthread"
22407 ;;
22408 esac
22409 done
22410
22411 if test x$gtk_config_exec_prefix != x ; then
22412 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22413 if test x${GTK_CONFIG+set} != xset ; then
22414 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22415 fi
22416 fi
22417 if test x$gtk_config_prefix != x ; then
22418 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22419 if test x${GTK_CONFIG+set} != xset ; then
22420 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22421 fi
22422 fi
22423
22424 # Extract the first word of "gtk-config", so it can be a program name with args.
22425set dummy gtk-config; ac_word=$2
22426echo "$as_me:$LINENO: checking for $ac_word" >&5
22427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22428if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430else
22431 case $GTK_CONFIG in
22432 [\\/]* | ?:[\\/]*)
22433 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22434 ;;
22435 *)
22436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22437for as_dir in $PATH
22438do
22439 IFS=$as_save_IFS
22440 test -z "$as_dir" && as_dir=.
22441 for ac_exec_ext in '' $ac_executable_extensions; do
22442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22443 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22445 break 2
22446 fi
22447done
22448done
22449
22450 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22451 ;;
22452esac
22453fi
22454GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22455
22456if test -n "$GTK_CONFIG"; then
22457 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22458echo "${ECHO_T}$GTK_CONFIG" >&6
22459else
22460 echo "$as_me:$LINENO: result: no" >&5
22461echo "${ECHO_T}no" >&6
22462fi
22463
22464 min_gtk_version=1.2.3
22465 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22466echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22467 no_gtk=""
22468 if test "$GTK_CONFIG" = "no" ; then
22469 no_gtk=yes
22470 else
22471 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22472 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22473 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22474 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22475 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22477 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22479 if test "x$enable_gtktest" = "xyes" ; then
22480 ac_save_CFLAGS="$CFLAGS"
22481 ac_save_LIBS="$LIBS"
22482 CFLAGS="$CFLAGS $GTK_CFLAGS"
22483 LIBS="$GTK_LIBS $LIBS"
22484 rm -f conf.gtktest
22485 if test "$cross_compiling" = yes; then
22486 echo $ac_n "cross compiling; assumed OK... $ac_c"
22487else
22488 cat >conftest.$ac_ext <<_ACEOF
22489/* confdefs.h. */
22490_ACEOF
22491cat confdefs.h >>conftest.$ac_ext
22492cat >>conftest.$ac_ext <<_ACEOF
22493/* end confdefs.h. */
22494
22495#include <gtk/gtk.h>
22496#include <stdio.h>
22497#include <stdlib.h>
22498
22499int
22500main ()
22501{
22502 int major, minor, micro;
22503 char *tmp_version;
22504
22505 system ("touch conf.gtktest");
22506
22507 /* HP/UX 9 (%@#!) writes to sscanf strings */
22508 tmp_version = g_strdup("$min_gtk_version");
22509 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22510 printf("%s, bad version string\n", "$min_gtk_version");
22511 exit(1);
22512 }
22513
22514 if ((gtk_major_version != $gtk_config_major_version) ||
22515 (gtk_minor_version != $gtk_config_minor_version) ||
22516 (gtk_micro_version != $gtk_config_micro_version))
22517 {
22518 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22519 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22520 gtk_major_version, gtk_minor_version, gtk_micro_version);
22521 printf ("*** was found! If gtk-config was correct, then it is best\n");
22522 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22523 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22524 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22525 printf("*** required on your system.\n");
22526 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22527 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22528 printf("*** before re-running configure\n");
22529 }
22530#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22531 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22532 (gtk_minor_version != GTK_MINOR_VERSION) ||
22533 (gtk_micro_version != GTK_MICRO_VERSION))
22534 {
22535 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22536 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22537 printf("*** library (version %d.%d.%d)\n",
22538 gtk_major_version, gtk_minor_version, gtk_micro_version);
22539 }
22540#endif /* defined (GTK_MAJOR_VERSION) ... */
22541 else
22542 {
22543 if ((gtk_major_version > major) ||
22544 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22545 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22546 {
22547 return 0;
22548 }
22549 else
22550 {
22551 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22552 gtk_major_version, gtk_minor_version, gtk_micro_version);
22553 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22554 major, minor, micro);
22555 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22556 printf("***\n");
22557 printf("*** If you have already installed a sufficiently new version, this error\n");
22558 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22559 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22560 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22561 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22562 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22563 printf("*** so that the correct libraries are found at run-time))\n");
22564 }
22565 }
22566 return 1;
22567}
22568
22569_ACEOF
22570rm -f conftest$ac_exeext
22571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22572 (eval $ac_link) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22581 :
22582else
22583 echo "$as_me: program exited with status $ac_status" >&5
22584echo "$as_me: failed program was:" >&5
22585sed 's/^/| /' conftest.$ac_ext >&5
22586
22587( exit $ac_status )
22588no_gtk=yes
22589fi
22590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22591fi
22592 CFLAGS="$ac_save_CFLAGS"
22593 LIBS="$ac_save_LIBS"
22594 fi
22595 fi
22596 if test "x$no_gtk" = x ; then
22597 echo "$as_me:$LINENO: result: yes" >&5
22598echo "${ECHO_T}yes" >&6
22599 wx_cv_lib_gtk=1.2.3
22600 else
22601 echo "$as_me:$LINENO: result: no" >&5
22602echo "${ECHO_T}no" >&6
22603 if test "$GTK_CONFIG" = "no" ; then
22604 echo "*** The gtk-config script installed by GTK could not be found"
22605 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22606 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22607 echo "*** full path to gtk-config."
22608 else
22609 if test -f conf.gtktest ; then
22610 :
22611 else
22612 echo "*** Could not run GTK test program, checking why..."
22613 CFLAGS="$CFLAGS $GTK_CFLAGS"
22614 LIBS="$LIBS $GTK_LIBS"
22615 cat >conftest.$ac_ext <<_ACEOF
22616/* confdefs.h. */
22617_ACEOF
22618cat confdefs.h >>conftest.$ac_ext
22619cat >>conftest.$ac_ext <<_ACEOF
22620/* end confdefs.h. */
22621
22622#include <gtk/gtk.h>
22623#include <stdio.h>
22624
22625int
22626main ()
22627{
22628 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22629 ;
22630 return 0;
22631}
22632_ACEOF
22633rm -f conftest.$ac_objext conftest$ac_exeext
22634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22635 (eval $ac_link) 2>conftest.er1
22636 ac_status=$?
22637 grep -v '^ *+' conftest.er1 >conftest.err
22638 rm -f conftest.er1
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } &&
01cb68df 22642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; } &&
22648 { ac_try='test -s conftest$ac_exeext'
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }; then
22654 echo "*** The test program compiled, but did not run. This usually means"
22655 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22656 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22657 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22658 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22659 echo "*** is required on your system"
22660 echo "***"
22661 echo "*** If you have an old version installed, it is best to remove it, although"
22662 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22663 echo "***"
22664 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22665 echo "*** came with the system with the command"
22666 echo "***"
22667 echo "*** rpm --erase --nodeps gtk gtk-devel"
22668else
22669 echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 echo "*** The test program failed to compile or link. See the file config.log for the"
22673 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22674 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22675 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22676fi
22677rm -f conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22679 CFLAGS="$ac_save_CFLAGS"
22680 LIBS="$ac_save_LIBS"
22681 fi
22682 fi
22683 GTK_CFLAGS=""
22684 GTK_LIBS=""
22685 :
22686 fi
22687
22688
22689 rm -f conf.gtktest
22690
22691 fi
22692 fi
22693
22694 if test -z "$wx_cv_lib_gtk"; then
22695 wx_cv_lib_gtk=none
22696 else
22697 wx_cv_cflags_gtk=$GTK_CFLAGS
22698 wx_cv_libs_gtk=$GTK_LIBS
22699 fi
22700
22701
22702fi
22703
22704
22705 if test "$gtk_version_cached" = 1; then
22706 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22707echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22708 fi
22709
22710 case "$wx_cv_lib_gtk" in
22711 2.0) WXGTK20=1
22712 TOOLKIT_VERSION=2
22713 ;;
22714 1.2.7) WXGTK127=1
22715 WXGTK12=1
22716 ;;
22717 1.2.3) WXGTK12=1
22718 ;;
22719 *) { { echo "$as_me:$LINENO: error:
22720Please check that gtk-config is in path, the directory
22721where GTK+ libraries are installed (returned by
22722'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22723equivalent variable and GTK+ is version 1.2.3 or above.
22724 " >&5
22725echo "$as_me: error:
22726Please check that gtk-config is in path, the directory
22727where GTK+ libraries are installed (returned by
22728'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22729equivalent variable and GTK+ is version 1.2.3 or above.
22730 " >&2;}
22731 { (exit 1); exit 1; }; }
22732 ;;
22733 esac
22734
22735 if test "$WXGTK20" = 1; then
22736 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22737
22738 succeeded=no
22739
22740 if test -z "$PKG_CONFIG"; then
22741 # Extract the first word of "pkg-config", so it can be a program name with args.
22742set dummy pkg-config; ac_word=$2
22743echo "$as_me:$LINENO: checking for $ac_word" >&5
22744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22745if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748 case $PKG_CONFIG in
22749 [\\/]* | ?:[\\/]*)
22750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22751 ;;
22752 *)
22753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22754for as_dir in $PATH
22755do
22756 IFS=$as_save_IFS
22757 test -z "$as_dir" && as_dir=.
22758 for ac_exec_ext in '' $ac_executable_extensions; do
22759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22762 break 2
22763 fi
22764done
22765done
22766
22767 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22768 ;;
22769esac
22770fi
22771PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22772
22773if test -n "$PKG_CONFIG"; then
22774 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22775echo "${ECHO_T}$PKG_CONFIG" >&6
22776else
22777 echo "$as_me:$LINENO: result: no" >&5
22778echo "${ECHO_T}no" >&6
22779fi
22780
22781 fi
22782
22783 if test "$PKG_CONFIG" = "no" ; then
22784 echo "*** The pkg-config script could not be found. Make sure it is"
22785 echo "*** in your path, or set the PKG_CONFIG environment variable"
22786 echo "*** to the full path to pkg-config."
22787 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22788 else
22789 PKG_CONFIG_MIN_VERSION=0.9.0
22790 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22791 echo "$as_me:$LINENO: checking for pangoft2" >&5
22792echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22793
22794 if $PKG_CONFIG --exists "pangoft2" ; then
22795 echo "$as_me:$LINENO: result: yes" >&5
22796echo "${ECHO_T}yes" >&6
22797 succeeded=yes
22798
22799 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22800echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22801 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22802 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22803echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22804
22805 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22806echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22807 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22808 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22809echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22810 else
22811 PANGOFT2_CFLAGS=""
22812 PANGOFT2_LIBS=""
22813 ## If we have a custom action on failure, don't print errors, but
22814 ## do set a variable so people can do so.
22815 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22816
22817 fi
22818
22819
22820
22821 else
22822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22824 fi
22825 fi
22826
22827 if test $succeeded = yes; then
22828
22829 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22830 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22831
22832 else
22833
22834 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22835echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22836 wxUSE_PRINTING_ARCHITECTURE="no"
22837
22838
22839 fi
22840
22841 fi
22842 else
22843 if test "$wxUSE_UNICODE" = "yes"; then
22844 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22845echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22846 wxUSE_UNICODE=no
22847 fi
22848 fi
22849
22850 if test "$USE_DARWIN" != 1; then
22851
22852for ac_func in poll
22853do
22854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22855echo "$as_me:$LINENO: checking for $ac_func" >&5
22856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22857if eval "test \"\${$as_ac_var+set}\" = set"; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22859else
22860 cat >conftest.$ac_ext <<_ACEOF
22861/* confdefs.h. */
22862_ACEOF
22863cat confdefs.h >>conftest.$ac_ext
22864cat >>conftest.$ac_ext <<_ACEOF
22865/* end confdefs.h. */
22866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22868#define $ac_func innocuous_$ac_func
22869
22870/* System header to define __stub macros and hopefully few prototypes,
22871 which can conflict with char $ac_func (); below.
22872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22873 <limits.h> exists even on freestanding compilers. */
22874
22875#ifdef __STDC__
22876# include <limits.h>
22877#else
22878# include <assert.h>
22879#endif
22880
22881#undef $ac_func
22882
22883/* Override any gcc2 internal prototype to avoid an error. */
22884#ifdef __cplusplus
22885extern "C"
22886{
22887#endif
22888/* We use char because int might match the return type of a gcc2
22889 builtin and then its argument prototype would still apply. */
22890char $ac_func ();
22891/* The GNU C library defines this for functions which it implements
22892 to always fail with ENOSYS. Some functions are actually named
22893 something starting with __ and the normal name is an alias. */
22894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22895choke me
22896#else
22897char (*f) () = $ac_func;
22898#endif
22899#ifdef __cplusplus
22900}
22901#endif
22902
22903int
22904main ()
22905{
22906return f != $ac_func;
22907 ;
22908 return 0;
22909}
22910_ACEOF
22911rm -f conftest.$ac_objext conftest$ac_exeext
22912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22913 (eval $ac_link) 2>conftest.er1
22914 ac_status=$?
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
01cb68df 22920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 { ac_try='test -s conftest$ac_exeext'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }; then
22932 eval "$as_ac_var=yes"
22933else
22934 echo "$as_me: failed program was:" >&5
22935sed 's/^/| /' conftest.$ac_ext >&5
22936
22937eval "$as_ac_var=no"
22938fi
22939rm -f conftest.err conftest.$ac_objext \
22940 conftest$ac_exeext conftest.$ac_ext
22941fi
22942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22944if test `eval echo '${'$as_ac_var'}'` = yes; then
22945 cat >>confdefs.h <<_ACEOF
22946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22947_ACEOF
22948
22949fi
22950done
22951
22952 fi
22953
22954 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
22955 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
22956
22957 AFMINSTALL=afminstall
22958 TOOLKIT=GTK
22959 GUIDIST=GTK_DIST
22960
22961 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22962echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22963if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965else
22966 ac_check_lib_save_LIBS=$LIBS
22967LIBS="-lgdk $LIBS"
22968cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
22974
22975/* Override any gcc2 internal prototype to avoid an error. */
22976#ifdef __cplusplus
22977extern "C"
22978#endif
22979/* We use char because int might match the return type of a gcc2
22980 builtin and then its argument prototype would still apply. */
22981char gdk_im_open ();
22982int
22983main ()
22984{
22985gdk_im_open ();
22986 ;
22987 return 0;
22988}
22989_ACEOF
22990rm -f conftest.$ac_objext conftest$ac_exeext
22991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22992 (eval $ac_link) 2>conftest.er1
22993 ac_status=$?
22994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
01cb68df 22999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest$ac_exeext'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 ac_cv_lib_gdk_gdk_im_open=yes
23012else
23013 echo "$as_me: failed program was:" >&5
23014sed 's/^/| /' conftest.$ac_ext >&5
23015
23016ac_cv_lib_gdk_gdk_im_open=no
23017fi
23018rm -f conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23020LIBS=$ac_check_lib_save_LIBS
23021fi
23022echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23023echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23024if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23025 cat >>confdefs.h <<\_ACEOF
23026#define HAVE_XIM 1
23027_ACEOF
23028
23029fi
23030
23031
23032
23033 if test "$wxUSE_GPE" = "yes"; then
23034 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23035echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23036
23037ac_find_libraries=
23038for ac_dir in $SEARCH_LIB /usr/lib;
23039 do
23040 for ac_extension in a so sl dylib; do
23041 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23042 ac_find_libraries=$ac_dir
23043 break 2
23044 fi
23045 done
23046 done
23047
23048 if test "$ac_find_libraries" != "" ; then
23049
23050 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23051 result=$?
23052 if test $result = 0; then
23053 ac_path_to_link=""
23054 else
23055 ac_path_to_link=" -L$ac_find_libraries"
23056 fi
23057
23058 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23059 WXGPE=1
23060 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23061echo "${ECHO_T}found at $ac_find_libraries" >&6
23062 else
23063 echo "$as_me:$LINENO: result: not found" >&5
23064echo "${ECHO_T}not found" >&6
23065 fi
23066
23067 fi
23068 fi
23069
23070 if test "$wxUSE_MGL" = 1; then
23071 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23072echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23073 if test "x$MGL_ROOT" = x ; then
23074 echo "$as_me:$LINENO: result: not found" >&5
23075echo "${ECHO_T}not found" >&6
23076 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23077echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23078 { (exit 1); exit 1; }; }
23079 else
23080 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23081echo "${ECHO_T}$MGL_ROOT" >&6
23082 fi
23083
23084 echo "$as_me:$LINENO: checking for libmgl location" >&5
23085echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23086 case "${host}" in
23087 *-*-linux* )
23088 if test "x$wxUSE_SHARED" = xyes ; then
23089 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23090 else
23091 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23092 fi
23093 ;;
23094 *-pc-msdosdjgpp )
23095 mgl_os_candidates="dos32/dj2"
23096 ;;
23097 *)
23098 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23099echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23100 { (exit 1); exit 1; }; }
23101 esac
23102
23103 mgl_lib_type=""
23104 mgl_os=""
23105
23106 for mgl_os_i in $mgl_os_candidates ; do
23107 if test "x$mgl_os" = x ; then
23108 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23109 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23110 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23111 mgl_lib_type=debug
23112 mgl_os=$mgl_os_i
23113 fi
23114 fi
23115 if test "x$mgl_lib_type" = x ; then
23116 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23117 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23118 mgl_lib_type=release
23119 mgl_os=$mgl_os_i
23120 fi
23121 fi
23122 fi
23123 done
23124
23125 if test "x$mgl_os" = x ; then
23126 echo "$as_me:$LINENO: result: not found" >&5
23127echo "${ECHO_T}not found" >&6
23128 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23129echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23130 { (exit 1); exit 1; }; }
23131 fi
23132 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23133echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23134
23135 wxUSE_UNIVERSAL="yes"
23136
23137 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23138 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23139
23140 AFMINSTALL=afminstall
23141 TOOLKIT=MGL
23142 GUIDIST=MGL_DIST
23143 fi
23144
23145 if test "$wxUSE_MICROWIN" = 1; then
23146 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23147echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23148 if test "x$MICROWINDOWS" = x ; then
23149 echo "$as_me:$LINENO: result: not found" >&5
23150echo "${ECHO_T}not found" >&6
23151 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23152echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23153 { (exit 1); exit 1; }; }
23154 else
23155 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23156echo "${ECHO_T}$MICROWINDOWS" >&6
23157 fi
23158
23159 if test -f $MICROWINDOWS/lib/libmwin.a; then
23160 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23161echo "${ECHO_T}MicroWindows' libraries found." >&6
23162 else
23163 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23164echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23165 { (exit 1); exit 1; }; }
23166 fi
23167
23168 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23169 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23170
23171 wxUSE_UNIVERSAL="yes"
23172
23173 AFMINSTALL=afminstall
23174 TOOLKIT=MICROWIN
23175 GUIDIST=MICROWIN_DIST
23176
23177 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23178 fi
23179
23180 if test "$wxUSE_X11" = 1; then
23181 echo "$as_me:$LINENO: checking for X" >&5
23182echo $ECHO_N "checking for X... $ECHO_C" >&6
23183
23184
23185# Check whether --with-x or --without-x was given.
23186if test "${with_x+set}" = set; then
23187 withval="$with_x"
23188
23189fi;
23190# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23191if test "x$with_x" = xno; then
23192 # The user explicitly disabled X.
23193 have_x=disabled
23194else
23195 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23196 # Both variables are already set.
23197 have_x=yes
23198 else
23199 if test "${ac_cv_have_x+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23201else
23202 # One or both of the vars are not set, and there is no cached value.
23203ac_x_includes=no ac_x_libraries=no
23204rm -fr conftest.dir
23205if mkdir conftest.dir; then
23206 cd conftest.dir
23207 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23208 cat >Imakefile <<'_ACEOF'
23209acfindx:
23210 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23211_ACEOF
23212 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23214 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23215 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23216 for ac_extension in a so sl; do
23217 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23218 test -f $ac_im_libdir/libX11.$ac_extension; then
23219 ac_im_usrlibdir=$ac_im_libdir; break
23220 fi
23221 done
23222 # Screen out bogus values from the imake configuration. They are
23223 # bogus both because they are the default anyway, and because
23224 # using them would break gcc on systems where it needs fixed includes.
23225 case $ac_im_incroot in
23226 /usr/include) ;;
23227 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23228 esac
23229 case $ac_im_usrlibdir in
23230 /usr/lib | /lib) ;;
23231 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23232 esac
23233 fi
23234 cd ..
23235 rm -fr conftest.dir
23236fi
23237
23238# Standard set of common directories for X headers.
23239# Check X11 before X11Rn because it is often a symlink to the current release.
23240ac_x_header_dirs='
23241/usr/X11/include
23242/usr/X11R6/include
23243/usr/X11R5/include
23244/usr/X11R4/include
23245
23246/usr/include/X11
23247/usr/include/X11R6
23248/usr/include/X11R5
23249/usr/include/X11R4
23250
23251/usr/local/X11/include
23252/usr/local/X11R6/include
23253/usr/local/X11R5/include
23254/usr/local/X11R4/include
23255
23256/usr/local/include/X11
23257/usr/local/include/X11R6
23258/usr/local/include/X11R5
23259/usr/local/include/X11R4
23260
23261/usr/X386/include
23262/usr/x386/include
23263/usr/XFree86/include/X11
23264
23265/usr/include
23266/usr/local/include
23267/usr/unsupported/include
23268/usr/athena/include
23269/usr/local/x11r5/include
23270/usr/lpp/Xamples/include
23271
23272/usr/openwin/include
23273/usr/openwin/share/include'
23274
23275if test "$ac_x_includes" = no; then
23276 # Guess where to find include files, by looking for Intrinsic.h.
23277 # First, try using that file with no special directory specified.
23278 cat >conftest.$ac_ext <<_ACEOF
23279/* confdefs.h. */
23280_ACEOF
23281cat confdefs.h >>conftest.$ac_ext
23282cat >>conftest.$ac_ext <<_ACEOF
23283/* end confdefs.h. */
23284#include <X11/Intrinsic.h>
23285_ACEOF
23286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23288 ac_status=$?
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } >/dev/null; then
23294 if test -s conftest.err; then
23295 ac_cpp_err=$ac_c_preproc_warn_flag
23296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23297 else
23298 ac_cpp_err=
23299 fi
23300else
23301 ac_cpp_err=yes
23302fi
23303if test -z "$ac_cpp_err"; then
23304 # We can compile using X headers with no special include directory.
23305ac_x_includes=
23306else
23307 echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 for ac_dir in $ac_x_header_dirs; do
23311 if test -r "$ac_dir/X11/Intrinsic.h"; then
23312 ac_x_includes=$ac_dir
23313 break
23314 fi
23315done
23316fi
23317rm -f conftest.err conftest.$ac_ext
23318fi # $ac_x_includes = no
23319
23320if test "$ac_x_libraries" = no; then
23321 # Check for the libraries.
23322 # See if we find them without any special options.
23323 # Don't add to $LIBS permanently.
23324 ac_save_LIBS=$LIBS
23325 LIBS="-lXt $LIBS"
23326 cat >conftest.$ac_ext <<_ACEOF
23327/* confdefs.h. */
23328_ACEOF
23329cat confdefs.h >>conftest.$ac_ext
23330cat >>conftest.$ac_ext <<_ACEOF
23331/* end confdefs.h. */
23332#include <X11/Intrinsic.h>
23333int
23334main ()
23335{
23336XtMalloc (0)
23337 ;
23338 return 0;
23339}
23340_ACEOF
23341rm -f conftest.$ac_objext conftest$ac_exeext
23342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>conftest.er1
23344 ac_status=$?
23345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
01cb68df 23350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; } &&
23356 { ac_try='test -s conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 LIBS=$ac_save_LIBS
23363# We can link X programs with no special library path.
23364ac_x_libraries=
23365else
23366 echo "$as_me: failed program was:" >&5
23367sed 's/^/| /' conftest.$ac_ext >&5
23368
23369LIBS=$ac_save_LIBS
23370for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23371do
23372 # Don't even attempt the hair of trying to link an X program!
23373 for ac_extension in a so sl; do
23374 if test -r $ac_dir/libXt.$ac_extension; then
23375 ac_x_libraries=$ac_dir
23376 break 2
23377 fi
23378 done
23379done
23380fi
23381rm -f conftest.err conftest.$ac_objext \
23382 conftest$ac_exeext conftest.$ac_ext
23383fi # $ac_x_libraries = no
23384
23385if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23386 # Didn't find X anywhere. Cache the known absence of X.
23387 ac_cv_have_x="have_x=no"
23388else
23389 # Record where we found X for the cache.
23390 ac_cv_have_x="have_x=yes \
23391 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23392fi
23393fi
23394
23395 fi
23396 eval "$ac_cv_have_x"
23397fi # $with_x != no
23398
23399if test "$have_x" != yes; then
23400 echo "$as_me:$LINENO: result: $have_x" >&5
23401echo "${ECHO_T}$have_x" >&6
23402 no_x=yes
23403else
23404 # If each of the values was on the command line, it overrides each guess.
23405 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23406 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23407 # Update the cache value to reflect the command line values.
23408 ac_cv_have_x="have_x=yes \
23409 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23410 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23411echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23412fi
23413
23414if test "$no_x" = yes; then
23415 # Not all programs may use this symbol, but it does not hurt to define it.
23416
23417cat >>confdefs.h <<\_ACEOF
23418#define X_DISPLAY_MISSING 1
23419_ACEOF
23420
23421 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23422else
23423 if test -n "$x_includes"; then
23424 X_CFLAGS="$X_CFLAGS -I$x_includes"
23425 fi
23426
23427 # It would also be nice to do this for all -L options, not just this one.
23428 if test -n "$x_libraries"; then
23429 X_LIBS="$X_LIBS -L$x_libraries"
23430 # For Solaris; some versions of Sun CC require a space after -R and
23431 # others require no space. Words are not sufficient . . . .
23432 case `(uname -sr) 2>/dev/null` in
23433 "SunOS 5"*)
23434 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23435echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23436 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23437 cat >conftest.$ac_ext <<_ACEOF
23438/* confdefs.h. */
23439_ACEOF
23440cat confdefs.h >>conftest.$ac_ext
23441cat >>conftest.$ac_ext <<_ACEOF
23442/* end confdefs.h. */
23443
23444int
23445main ()
23446{
23447
23448 ;
23449 return 0;
23450}
23451_ACEOF
23452rm -f conftest.$ac_objext conftest$ac_exeext
23453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454 (eval $ac_link) 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
01cb68df 23461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; } &&
23467 { ac_try='test -s conftest$ac_exeext'
23468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469 (eval $ac_try) 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473 ac_R_nospace=yes
23474else
23475 echo "$as_me: failed program was:" >&5
23476sed 's/^/| /' conftest.$ac_ext >&5
23477
23478ac_R_nospace=no
23479fi
23480rm -f conftest.err conftest.$ac_objext \
23481 conftest$ac_exeext conftest.$ac_ext
23482 if test $ac_R_nospace = yes; then
23483 echo "$as_me:$LINENO: result: no" >&5
23484echo "${ECHO_T}no" >&6
23485 X_LIBS="$X_LIBS -R$x_libraries"
23486 else
23487 LIBS="$ac_xsave_LIBS -R $x_libraries"
23488 cat >conftest.$ac_ext <<_ACEOF
23489/* confdefs.h. */
23490_ACEOF
23491cat confdefs.h >>conftest.$ac_ext
23492cat >>conftest.$ac_ext <<_ACEOF
23493/* end confdefs.h. */
23494
23495int
23496main ()
23497{
23498
23499 ;
23500 return 0;
23501}
23502_ACEOF
23503rm -f conftest.$ac_objext conftest$ac_exeext
23504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23505 (eval $ac_link) 2>conftest.er1
23506 ac_status=$?
23507 grep -v '^ *+' conftest.er1 >conftest.err
23508 rm -f conftest.er1
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } &&
01cb68df 23512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest$ac_exeext'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 ac_R_space=yes
23525else
23526 echo "$as_me: failed program was:" >&5
23527sed 's/^/| /' conftest.$ac_ext >&5
23528
23529ac_R_space=no
23530fi
23531rm -f conftest.err conftest.$ac_objext \
23532 conftest$ac_exeext conftest.$ac_ext
23533 if test $ac_R_space = yes; then
23534 echo "$as_me:$LINENO: result: yes" >&5
23535echo "${ECHO_T}yes" >&6
23536 X_LIBS="$X_LIBS -R $x_libraries"
23537 else
23538 echo "$as_me:$LINENO: result: neither works" >&5
23539echo "${ECHO_T}neither works" >&6
23540 fi
23541 fi
23542 LIBS=$ac_xsave_LIBS
23543 esac
23544 fi
23545
23546 # Check for system-dependent libraries X programs must link with.
23547 # Do this before checking for the system-independent R6 libraries
23548 # (-lICE), since we may need -lsocket or whatever for X linking.
23549
23550 if test "$ISC" = yes; then
23551 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23552 else
23553 # Martyn Johnson says this is needed for Ultrix, if the X
23554 # libraries were built with DECnet support. And Karl Berry says
23555 # the Alpha needs dnet_stub (dnet does not exist).
23556 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23557 cat >conftest.$ac_ext <<_ACEOF
23558/* confdefs.h. */
23559_ACEOF
23560cat confdefs.h >>conftest.$ac_ext
23561cat >>conftest.$ac_ext <<_ACEOF
23562/* end confdefs.h. */
23563
23564/* Override any gcc2 internal prototype to avoid an error. */
23565#ifdef __cplusplus
23566extern "C"
23567#endif
23568/* We use char because int might match the return type of a gcc2
23569 builtin and then its argument prototype would still apply. */
23570char XOpenDisplay ();
23571int
23572main ()
23573{
23574XOpenDisplay ();
23575 ;
23576 return 0;
23577}
23578_ACEOF
23579rm -f conftest.$ac_objext conftest$ac_exeext
23580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23581 (eval $ac_link) 2>conftest.er1
23582 ac_status=$?
23583 grep -v '^ *+' conftest.er1 >conftest.err
23584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } &&
01cb68df 23588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; } &&
23594 { ac_try='test -s conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 :
23601else
23602 echo "$as_me: failed program was:" >&5
23603sed 's/^/| /' conftest.$ac_ext >&5
23604
23605echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23606echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23607if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23608 echo $ECHO_N "(cached) $ECHO_C" >&6
23609else
23610 ac_check_lib_save_LIBS=$LIBS
23611LIBS="-ldnet $LIBS"
23612cat >conftest.$ac_ext <<_ACEOF
23613/* confdefs.h. */
23614_ACEOF
23615cat confdefs.h >>conftest.$ac_ext
23616cat >>conftest.$ac_ext <<_ACEOF
23617/* end confdefs.h. */
23618
23619/* Override any gcc2 internal prototype to avoid an error. */
23620#ifdef __cplusplus
23621extern "C"
23622#endif
23623/* We use char because int might match the return type of a gcc2
23624 builtin and then its argument prototype would still apply. */
23625char dnet_ntoa ();
23626int
23627main ()
23628{
23629dnet_ntoa ();
23630 ;
23631 return 0;
23632}
23633_ACEOF
23634rm -f conftest.$ac_objext conftest$ac_exeext
23635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23636 (eval $ac_link) 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } &&
01cb68df 23643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; } &&
23649 { ac_try='test -s conftest$ac_exeext'
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23652 ac_status=$?
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; }; then
23655 ac_cv_lib_dnet_dnet_ntoa=yes
23656else
23657 echo "$as_me: failed program was:" >&5
23658sed 's/^/| /' conftest.$ac_ext >&5
23659
23660ac_cv_lib_dnet_dnet_ntoa=no
23661fi
23662rm -f conftest.err conftest.$ac_objext \
23663 conftest$ac_exeext conftest.$ac_ext
23664LIBS=$ac_check_lib_save_LIBS
23665fi
23666echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23667echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23668if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23669 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23670fi
23671
23672 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23673 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23674echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23675if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23677else
23678 ac_check_lib_save_LIBS=$LIBS
23679LIBS="-ldnet_stub $LIBS"
23680cat >conftest.$ac_ext <<_ACEOF
23681/* confdefs.h. */
23682_ACEOF
23683cat confdefs.h >>conftest.$ac_ext
23684cat >>conftest.$ac_ext <<_ACEOF
23685/* end confdefs.h. */
23686
23687/* Override any gcc2 internal prototype to avoid an error. */
23688#ifdef __cplusplus
23689extern "C"
23690#endif
23691/* We use char because int might match the return type of a gcc2
23692 builtin and then its argument prototype would still apply. */
23693char dnet_ntoa ();
23694int
23695main ()
23696{
23697dnet_ntoa ();
23698 ;
23699 return 0;
23700}
23701_ACEOF
23702rm -f conftest.$ac_objext conftest$ac_exeext
23703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704 (eval $ac_link) 2>conftest.er1
23705 ac_status=$?
23706 grep -v '^ *+' conftest.er1 >conftest.err
23707 rm -f conftest.er1
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } &&
01cb68df 23711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; } &&
23717 { ac_try='test -s conftest$ac_exeext'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23720 ac_status=$?
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; }; then
23723 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23724else
23725 echo "$as_me: failed program was:" >&5
23726sed 's/^/| /' conftest.$ac_ext >&5
23727
23728ac_cv_lib_dnet_stub_dnet_ntoa=no
23729fi
23730rm -f conftest.err conftest.$ac_objext \
23731 conftest$ac_exeext conftest.$ac_ext
23732LIBS=$ac_check_lib_save_LIBS
23733fi
23734echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23735echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23736if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23737 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23738fi
23739
23740 fi
23741fi
23742rm -f conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext conftest.$ac_ext
23744 LIBS="$ac_xsave_LIBS"
23745
23746 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23747 # to get the SysV transport functions.
23748 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23749 # needs -lnsl.
23750 # The nsl library prevents programs from opening the X display
23751 # on Irix 5.2, according to T.E. Dickey.
23752 # The functions gethostbyname, getservbyname, and inet_addr are
23753 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23754 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23755echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23756if test "${ac_cv_func_gethostbyname+set}" = set; then
23757 echo $ECHO_N "(cached) $ECHO_C" >&6
23758else
23759 cat >conftest.$ac_ext <<_ACEOF
23760/* confdefs.h. */
23761_ACEOF
23762cat confdefs.h >>conftest.$ac_ext
23763cat >>conftest.$ac_ext <<_ACEOF
23764/* end confdefs.h. */
23765/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23767#define gethostbyname innocuous_gethostbyname
23768
23769/* System header to define __stub macros and hopefully few prototypes,
23770 which can conflict with char gethostbyname (); below.
23771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23772 <limits.h> exists even on freestanding compilers. */
23773
23774#ifdef __STDC__
23775# include <limits.h>
23776#else
23777# include <assert.h>
23778#endif
23779
23780#undef gethostbyname
23781
23782/* Override any gcc2 internal prototype to avoid an error. */
23783#ifdef __cplusplus
23784extern "C"
23785{
23786#endif
23787/* We use char because int might match the return type of a gcc2
23788 builtin and then its argument prototype would still apply. */
23789char gethostbyname ();
23790/* The GNU C library defines this for functions which it implements
23791 to always fail with ENOSYS. Some functions are actually named
23792 something starting with __ and the normal name is an alias. */
23793#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23794choke me
23795#else
23796char (*f) () = gethostbyname;
23797#endif
23798#ifdef __cplusplus
23799}
23800#endif
23801
23802int
23803main ()
23804{
23805return f != gethostbyname;
23806 ;
23807 return 0;
23808}
23809_ACEOF
23810rm -f conftest.$ac_objext conftest$ac_exeext
23811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23812 (eval $ac_link) 2>conftest.er1
23813 ac_status=$?
23814 grep -v '^ *+' conftest.er1 >conftest.err
23815 rm -f conftest.er1
23816 cat conftest.err >&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } &&
01cb68df 23819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23822 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; } &&
23825 { ac_try='test -s conftest$ac_exeext'
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; }; then
23831 ac_cv_func_gethostbyname=yes
23832else
23833 echo "$as_me: failed program was:" >&5
23834sed 's/^/| /' conftest.$ac_ext >&5
23835
23836ac_cv_func_gethostbyname=no
23837fi
23838rm -f conftest.err conftest.$ac_objext \
23839 conftest$ac_exeext conftest.$ac_ext
23840fi
23841echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23842echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23843
23844 if test $ac_cv_func_gethostbyname = no; then
23845 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23846echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23847if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23848 echo $ECHO_N "(cached) $ECHO_C" >&6
23849else
23850 ac_check_lib_save_LIBS=$LIBS
23851LIBS="-lnsl $LIBS"
23852cat >conftest.$ac_ext <<_ACEOF
23853/* confdefs.h. */
23854_ACEOF
23855cat confdefs.h >>conftest.$ac_ext
23856cat >>conftest.$ac_ext <<_ACEOF
23857/* end confdefs.h. */
23858
23859/* Override any gcc2 internal prototype to avoid an error. */
23860#ifdef __cplusplus
23861extern "C"
23862#endif
23863/* We use char because int might match the return type of a gcc2
23864 builtin and then its argument prototype would still apply. */
23865char gethostbyname ();
23866int
23867main ()
23868{
23869gethostbyname ();
23870 ;
23871 return 0;
23872}
23873_ACEOF
23874rm -f conftest.$ac_objext conftest$ac_exeext
23875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23876 (eval $ac_link) 2>conftest.er1
23877 ac_status=$?
23878 grep -v '^ *+' conftest.er1 >conftest.err
23879 rm -f conftest.er1
23880 cat conftest.err >&5
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); } &&
01cb68df 23883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885 (eval $ac_try) 2>&5
23886 ac_status=$?
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); }; } &&
23889 { ac_try='test -s conftest$ac_exeext'
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23892 ac_status=$?
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; }; then
23895 ac_cv_lib_nsl_gethostbyname=yes
23896else
23897 echo "$as_me: failed program was:" >&5
23898sed 's/^/| /' conftest.$ac_ext >&5
23899
23900ac_cv_lib_nsl_gethostbyname=no
23901fi
23902rm -f conftest.err conftest.$ac_objext \
23903 conftest$ac_exeext conftest.$ac_ext
23904LIBS=$ac_check_lib_save_LIBS
23905fi
23906echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23907echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23908if test $ac_cv_lib_nsl_gethostbyname = yes; then
23909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23910fi
23911
23912 if test $ac_cv_lib_nsl_gethostbyname = no; then
23913 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23914echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23915if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23916 echo $ECHO_N "(cached) $ECHO_C" >&6
23917else
23918 ac_check_lib_save_LIBS=$LIBS
23919LIBS="-lbsd $LIBS"
23920cat >conftest.$ac_ext <<_ACEOF
23921/* confdefs.h. */
23922_ACEOF
23923cat confdefs.h >>conftest.$ac_ext
23924cat >>conftest.$ac_ext <<_ACEOF
23925/* end confdefs.h. */
23926
23927/* Override any gcc2 internal prototype to avoid an error. */
23928#ifdef __cplusplus
23929extern "C"
23930#endif
23931/* We use char because int might match the return type of a gcc2
23932 builtin and then its argument prototype would still apply. */
23933char gethostbyname ();
23934int
23935main ()
23936{
23937gethostbyname ();
23938 ;
23939 return 0;
23940}
23941_ACEOF
23942rm -f conftest.$ac_objext conftest$ac_exeext
23943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23944 (eval $ac_link) 2>conftest.er1
23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } &&
01cb68df 23951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } &&
23957 { ac_try='test -s conftest$ac_exeext'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; }; then
23963 ac_cv_lib_bsd_gethostbyname=yes
23964else
23965 echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
23968ac_cv_lib_bsd_gethostbyname=no
23969fi
23970rm -f conftest.err conftest.$ac_objext \
23971 conftest$ac_exeext conftest.$ac_ext
23972LIBS=$ac_check_lib_save_LIBS
23973fi
23974echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23975echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23976if test $ac_cv_lib_bsd_gethostbyname = yes; then
23977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23978fi
23979
23980 fi
23981 fi
23982
23983 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23984 # socket/setsockopt and other routines are undefined under SCO ODT
23985 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23986 # on later versions), says Simon Leinen: it contains gethostby*
23987 # variants that don't use the name server (or something). -lsocket
23988 # must be given before -lnsl if both are needed. We assume that
23989 # if connect needs -lnsl, so does gethostbyname.
23990 echo "$as_me:$LINENO: checking for connect" >&5
23991echo $ECHO_N "checking for connect... $ECHO_C" >&6
23992if test "${ac_cv_func_connect+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23994else
23995 cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
24001/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24003#define connect innocuous_connect
24004
24005/* System header to define __stub macros and hopefully few prototypes,
24006 which can conflict with char connect (); below.
24007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24008 <limits.h> exists even on freestanding compilers. */
24009
24010#ifdef __STDC__
24011# include <limits.h>
24012#else
24013# include <assert.h>
24014#endif
24015
24016#undef connect
24017
24018/* Override any gcc2 internal prototype to avoid an error. */
24019#ifdef __cplusplus
24020extern "C"
24021{
24022#endif
24023/* We use char because int might match the return type of a gcc2
24024 builtin and then its argument prototype would still apply. */
24025char connect ();
24026/* The GNU C library defines this for functions which it implements
24027 to always fail with ENOSYS. Some functions are actually named
24028 something starting with __ and the normal name is an alias. */
24029#if defined (__stub_connect) || defined (__stub___connect)
24030choke me
24031#else
24032char (*f) () = connect;
24033#endif
24034#ifdef __cplusplus
24035}
24036#endif
24037
24038int
24039main ()
24040{
24041return f != connect;
24042 ;
24043 return 0;
24044}
24045_ACEOF
24046rm -f conftest.$ac_objext conftest$ac_exeext
24047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24048 (eval $ac_link) 2>conftest.er1
24049 ac_status=$?
24050 grep -v '^ *+' conftest.er1 >conftest.err
24051 rm -f conftest.er1
24052 cat conftest.err >&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } &&
01cb68df 24055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; } &&
24061 { ac_try='test -s conftest$ac_exeext'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24067 ac_cv_func_connect=yes
24068else
24069 echo "$as_me: failed program was:" >&5
24070sed 's/^/| /' conftest.$ac_ext >&5
24071
24072ac_cv_func_connect=no
24073fi
24074rm -f conftest.err conftest.$ac_objext \
24075 conftest$ac_exeext conftest.$ac_ext
24076fi
24077echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24078echo "${ECHO_T}$ac_cv_func_connect" >&6
24079
24080 if test $ac_cv_func_connect = no; then
24081 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24082echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24083if test "${ac_cv_lib_socket_connect+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085else
24086 ac_check_lib_save_LIBS=$LIBS
24087LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24088cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
24094
24095/* Override any gcc2 internal prototype to avoid an error. */
24096#ifdef __cplusplus
24097extern "C"
24098#endif
24099/* We use char because int might match the return type of a gcc2
24100 builtin and then its argument prototype would still apply. */
24101char connect ();
24102int
24103main ()
24104{
24105connect ();
24106 ;
24107 return 0;
24108}
24109_ACEOF
24110rm -f conftest.$ac_objext conftest$ac_exeext
24111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24112 (eval $ac_link) 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } &&
01cb68df 24119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; } &&
24125 { ac_try='test -s conftest$ac_exeext'
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24128 ac_status=$?
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; }; then
24131 ac_cv_lib_socket_connect=yes
24132else
24133 echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136ac_cv_lib_socket_connect=no
24137fi
24138rm -f conftest.err conftest.$ac_objext \
24139 conftest$ac_exeext conftest.$ac_ext
24140LIBS=$ac_check_lib_save_LIBS
24141fi
24142echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24143echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24144if test $ac_cv_lib_socket_connect = yes; then
24145 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24146fi
24147
24148 fi
24149
24150 # Guillermo Gomez says -lposix is necessary on A/UX.
24151 echo "$as_me:$LINENO: checking for remove" >&5
24152echo $ECHO_N "checking for remove... $ECHO_C" >&6
24153if test "${ac_cv_func_remove+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156 cat >conftest.$ac_ext <<_ACEOF
24157/* confdefs.h. */
24158_ACEOF
24159cat confdefs.h >>conftest.$ac_ext
24160cat >>conftest.$ac_ext <<_ACEOF
24161/* end confdefs.h. */
24162/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24164#define remove innocuous_remove
24165
24166/* System header to define __stub macros and hopefully few prototypes,
24167 which can conflict with char remove (); below.
24168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24169 <limits.h> exists even on freestanding compilers. */
24170
24171#ifdef __STDC__
24172# include <limits.h>
24173#else
24174# include <assert.h>
24175#endif
24176
24177#undef remove
24178
24179/* Override any gcc2 internal prototype to avoid an error. */
24180#ifdef __cplusplus
24181extern "C"
24182{
24183#endif
24184/* We use char because int might match the return type of a gcc2
24185 builtin and then its argument prototype would still apply. */
24186char remove ();
24187/* The GNU C library defines this for functions which it implements
24188 to always fail with ENOSYS. Some functions are actually named
24189 something starting with __ and the normal name is an alias. */
24190#if defined (__stub_remove) || defined (__stub___remove)
24191choke me
24192#else
24193char (*f) () = remove;
24194#endif
24195#ifdef __cplusplus
24196}
24197#endif
24198
24199int
24200main ()
24201{
24202return f != remove;
24203 ;
24204 return 0;
24205}
24206_ACEOF
24207rm -f conftest.$ac_objext conftest$ac_exeext
24208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>conftest.er1
24210 ac_status=$?
24211 grep -v '^ *+' conftest.er1 >conftest.err
24212 rm -f conftest.er1
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
01cb68df 24216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; } &&
24222 { ac_try='test -s conftest$ac_exeext'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24225 ac_status=$?
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; }; then
24228 ac_cv_func_remove=yes
24229else
24230 echo "$as_me: failed program was:" >&5
24231sed 's/^/| /' conftest.$ac_ext >&5
24232
24233ac_cv_func_remove=no
24234fi
24235rm -f conftest.err conftest.$ac_objext \
24236 conftest$ac_exeext conftest.$ac_ext
24237fi
24238echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24239echo "${ECHO_T}$ac_cv_func_remove" >&6
24240
24241 if test $ac_cv_func_remove = no; then
24242 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24243echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24244if test "${ac_cv_lib_posix_remove+set}" = set; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24246else
24247 ac_check_lib_save_LIBS=$LIBS
24248LIBS="-lposix $LIBS"
24249cat >conftest.$ac_ext <<_ACEOF
24250/* confdefs.h. */
24251_ACEOF
24252cat confdefs.h >>conftest.$ac_ext
24253cat >>conftest.$ac_ext <<_ACEOF
24254/* end confdefs.h. */
24255
24256/* Override any gcc2 internal prototype to avoid an error. */
24257#ifdef __cplusplus
24258extern "C"
24259#endif
24260/* We use char because int might match the return type of a gcc2
24261 builtin and then its argument prototype would still apply. */
24262char remove ();
24263int
24264main ()
24265{
24266remove ();
24267 ;
24268 return 0;
24269}
24270_ACEOF
24271rm -f conftest.$ac_objext conftest$ac_exeext
24272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24273 (eval $ac_link) 2>conftest.er1
24274 ac_status=$?
24275 grep -v '^ *+' conftest.er1 >conftest.err
24276 rm -f conftest.er1
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } &&
01cb68df 24280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282 (eval $ac_try) 2>&5
24283 ac_status=$?
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); }; } &&
24286 { ac_try='test -s conftest$ac_exeext'
24287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); }; }; then
24292 ac_cv_lib_posix_remove=yes
24293else
24294 echo "$as_me: failed program was:" >&5
24295sed 's/^/| /' conftest.$ac_ext >&5
24296
24297ac_cv_lib_posix_remove=no
24298fi
24299rm -f conftest.err conftest.$ac_objext \
24300 conftest$ac_exeext conftest.$ac_ext
24301LIBS=$ac_check_lib_save_LIBS
24302fi
24303echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24304echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24305if test $ac_cv_lib_posix_remove = yes; then
24306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24307fi
24308
24309 fi
24310
24311 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24312 echo "$as_me:$LINENO: checking for shmat" >&5
24313echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24314if test "${ac_cv_func_shmat+set}" = set; then
24315 echo $ECHO_N "(cached) $ECHO_C" >&6
24316else
24317 cat >conftest.$ac_ext <<_ACEOF
24318/* confdefs.h. */
24319_ACEOF
24320cat confdefs.h >>conftest.$ac_ext
24321cat >>conftest.$ac_ext <<_ACEOF
24322/* end confdefs.h. */
24323/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24325#define shmat innocuous_shmat
24326
24327/* System header to define __stub macros and hopefully few prototypes,
24328 which can conflict with char shmat (); below.
24329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24330 <limits.h> exists even on freestanding compilers. */
24331
24332#ifdef __STDC__
24333# include <limits.h>
24334#else
24335# include <assert.h>
24336#endif
24337
24338#undef shmat
24339
24340/* Override any gcc2 internal prototype to avoid an error. */
24341#ifdef __cplusplus
24342extern "C"
24343{
24344#endif
24345/* We use char because int might match the return type of a gcc2
24346 builtin and then its argument prototype would still apply. */
24347char shmat ();
24348/* The GNU C library defines this for functions which it implements
24349 to always fail with ENOSYS. Some functions are actually named
24350 something starting with __ and the normal name is an alias. */
24351#if defined (__stub_shmat) || defined (__stub___shmat)
24352choke me
24353#else
24354char (*f) () = shmat;
24355#endif
24356#ifdef __cplusplus
24357}
24358#endif
24359
24360int
24361main ()
24362{
24363return f != shmat;
24364 ;
24365 return 0;
24366}
24367_ACEOF
24368rm -f conftest.$ac_objext conftest$ac_exeext
24369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24370 (eval $ac_link) 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } &&
01cb68df 24377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; } &&
24383 { ac_try='test -s conftest$ac_exeext'
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 ac_cv_func_shmat=yes
24390else
24391 echo "$as_me: failed program was:" >&5
24392sed 's/^/| /' conftest.$ac_ext >&5
24393
24394ac_cv_func_shmat=no
24395fi
24396rm -f conftest.err conftest.$ac_objext \
24397 conftest$ac_exeext conftest.$ac_ext
24398fi
24399echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24400echo "${ECHO_T}$ac_cv_func_shmat" >&6
24401
24402 if test $ac_cv_func_shmat = no; then
24403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24404echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24405if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24406 echo $ECHO_N "(cached) $ECHO_C" >&6
24407else
24408 ac_check_lib_save_LIBS=$LIBS
24409LIBS="-lipc $LIBS"
24410cat >conftest.$ac_ext <<_ACEOF
24411/* confdefs.h. */
24412_ACEOF
24413cat confdefs.h >>conftest.$ac_ext
24414cat >>conftest.$ac_ext <<_ACEOF
24415/* end confdefs.h. */
24416
24417/* Override any gcc2 internal prototype to avoid an error. */
24418#ifdef __cplusplus
24419extern "C"
24420#endif
24421/* We use char because int might match the return type of a gcc2
24422 builtin and then its argument prototype would still apply. */
24423char shmat ();
24424int
24425main ()
24426{
24427shmat ();
24428 ;
24429 return 0;
24430}
24431_ACEOF
24432rm -f conftest.$ac_objext conftest$ac_exeext
24433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24434 (eval $ac_link) 2>conftest.er1
24435 ac_status=$?
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
01cb68df 24441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; } &&
24447 { ac_try='test -s conftest$ac_exeext'
24448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449 (eval $ac_try) 2>&5
24450 ac_status=$?
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); }; }; then
24453 ac_cv_lib_ipc_shmat=yes
24454else
24455 echo "$as_me: failed program was:" >&5
24456sed 's/^/| /' conftest.$ac_ext >&5
24457
24458ac_cv_lib_ipc_shmat=no
24459fi
24460rm -f conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
24462LIBS=$ac_check_lib_save_LIBS
24463fi
24464echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24465echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24466if test $ac_cv_lib_ipc_shmat = yes; then
24467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24468fi
24469
24470 fi
24471 fi
24472
24473 # Check for libraries that X11R6 Xt/Xaw programs need.
24474 ac_save_LDFLAGS=$LDFLAGS
24475 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24476 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24477 # check for ICE first), but we must link in the order -lSM -lICE or
24478 # we get undefined symbols. So assume we have SM if we have ICE.
24479 # These have to be linked with before -lX11, unlike the other
24480 # libraries we check for below, so use a different variable.
24481 # John Interrante, Karl Berry
24482 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24483echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24484if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24486else
24487 ac_check_lib_save_LIBS=$LIBS
24488LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24489cat >conftest.$ac_ext <<_ACEOF
24490/* confdefs.h. */
24491_ACEOF
24492cat confdefs.h >>conftest.$ac_ext
24493cat >>conftest.$ac_ext <<_ACEOF
24494/* end confdefs.h. */
24495
24496/* Override any gcc2 internal prototype to avoid an error. */
24497#ifdef __cplusplus
24498extern "C"
24499#endif
24500/* We use char because int might match the return type of a gcc2
24501 builtin and then its argument prototype would still apply. */
24502char IceConnectionNumber ();
24503int
24504main ()
24505{
24506IceConnectionNumber ();
24507 ;
24508 return 0;
24509}
24510_ACEOF
24511rm -f conftest.$ac_objext conftest$ac_exeext
24512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24513 (eval $ac_link) 2>conftest.er1
24514 ac_status=$?
24515 grep -v '^ *+' conftest.er1 >conftest.err
24516 rm -f conftest.er1
24517 cat conftest.err >&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); } &&
01cb68df 24520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24523 ac_status=$?
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; } &&
24526 { ac_try='test -s conftest$ac_exeext'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24532 ac_cv_lib_ICE_IceConnectionNumber=yes
24533else
24534 echo "$as_me: failed program was:" >&5
24535sed 's/^/| /' conftest.$ac_ext >&5
24536
24537ac_cv_lib_ICE_IceConnectionNumber=no
24538fi
24539rm -f conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24541LIBS=$ac_check_lib_save_LIBS
24542fi
24543echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24544echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24545if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24546 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24547fi
24548
24549 LDFLAGS=$ac_save_LDFLAGS
24550
24551fi
24552
24553
24554 if test "$no_x" = "yes"; then
24555 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24556echo "$as_me: error: X11 not found" >&2;}
24557 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24558 fi
24559
24560 GUI_TK_LIBRARY="$X_LIBS"
24561 TOOLKIT_INCLUDE="$X_CFLAGS"
24562 AFMINSTALL=afminstall
24563 COMPILED_X_PROGRAM=0
24564
24565 if test "$wxUSE_NANOX" = "yes"; then
24566 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24567echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24568 if test "x$MICROWIN" = x ; then
24569 echo "$as_me:$LINENO: result: not found" >&5
24570echo "${ECHO_T}not found" >&6
24571 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24572echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24573 { (exit 1); exit 1; }; }
24574 else
24575 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24576echo "${ECHO_T}$MICROWIN" >&6
24577 cat >>confdefs.h <<\_ACEOF
24578#define wxUSE_NANOX 1
24579_ACEOF
24580
24581 fi
24582 fi
24583
24584 if test "$wxUSE_UNICODE" = "yes"; then
24585
24586 succeeded=no
24587
24588 if test -z "$PKG_CONFIG"; then
24589 # Extract the first word of "pkg-config", so it can be a program name with args.
24590set dummy pkg-config; ac_word=$2
24591echo "$as_me:$LINENO: checking for $ac_word" >&5
24592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24593if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24595else
24596 case $PKG_CONFIG in
24597 [\\/]* | ?:[\\/]*)
24598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24599 ;;
24600 *)
24601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24602for as_dir in $PATH
24603do
24604 IFS=$as_save_IFS
24605 test -z "$as_dir" && as_dir=.
24606 for ac_exec_ext in '' $ac_executable_extensions; do
24607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24610 break 2
24611 fi
24612done
24613done
24614
24615 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24616 ;;
24617esac
24618fi
24619PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24620
24621if test -n "$PKG_CONFIG"; then
24622 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24623echo "${ECHO_T}$PKG_CONFIG" >&6
24624else
24625 echo "$as_me:$LINENO: result: no" >&5
24626echo "${ECHO_T}no" >&6
24627fi
24628
24629 fi
24630
24631 if test "$PKG_CONFIG" = "no" ; then
24632 echo "*** The pkg-config script could not be found. Make sure it is"
24633 echo "*** in your path, or set the PKG_CONFIG environment variable"
24634 echo "*** to the full path to pkg-config."
24635 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24636 else
24637 PKG_CONFIG_MIN_VERSION=0.9.0
24638 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24639 echo "$as_me:$LINENO: checking for pangox" >&5
24640echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24641
24642 if $PKG_CONFIG --exists "pangox" ; then
24643 echo "$as_me:$LINENO: result: yes" >&5
24644echo "${ECHO_T}yes" >&6
24645 succeeded=yes
24646
24647 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24648echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24649 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24650 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24651echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24652
24653 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24654echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24655 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24656 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24657echo "${ECHO_T}$PANGOX_LIBS" >&6
24658 else
24659 PANGOX_CFLAGS=""
24660 PANGOX_LIBS=""
24661 ## If we have a custom action on failure, don't print errors, but
24662 ## do set a variable so people can do so.
24663 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24664
24665 fi
24666
24667
24668
24669 else
24670 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24671 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24672 fi
24673 fi
24674
24675 if test $succeeded = yes; then
24676
24677 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24678 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24679
24680 else
24681
24682 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24683echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24684 { (exit 1); exit 1; }; }
24685
24686
24687 fi
24688
24689
24690 succeeded=no
24691
24692 if test -z "$PKG_CONFIG"; then
24693 # Extract the first word of "pkg-config", so it can be a program name with args.
24694set dummy pkg-config; ac_word=$2
24695echo "$as_me:$LINENO: checking for $ac_word" >&5
24696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24697if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24699else
24700 case $PKG_CONFIG in
24701 [\\/]* | ?:[\\/]*)
24702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24703 ;;
24704 *)
24705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24706for as_dir in $PATH
24707do
24708 IFS=$as_save_IFS
24709 test -z "$as_dir" && as_dir=.
24710 for ac_exec_ext in '' $ac_executable_extensions; do
24711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24714 break 2
24715 fi
24716done
24717done
24718
24719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24720 ;;
24721esac
24722fi
24723PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24724
24725if test -n "$PKG_CONFIG"; then
24726 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24727echo "${ECHO_T}$PKG_CONFIG" >&6
24728else
24729 echo "$as_me:$LINENO: result: no" >&5
24730echo "${ECHO_T}no" >&6
24731fi
24732
24733 fi
24734
24735 if test "$PKG_CONFIG" = "no" ; then
24736 echo "*** The pkg-config script could not be found. Make sure it is"
24737 echo "*** in your path, or set the PKG_CONFIG environment variable"
24738 echo "*** to the full path to pkg-config."
24739 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24740 else
24741 PKG_CONFIG_MIN_VERSION=0.9.0
24742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24743 echo "$as_me:$LINENO: checking for pangoft2" >&5
24744echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24745
24746 if $PKG_CONFIG --exists "pangoft2" ; then
24747 echo "$as_me:$LINENO: result: yes" >&5
24748echo "${ECHO_T}yes" >&6
24749 succeeded=yes
24750
24751 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24752echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24753 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24754 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24755echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24756
24757 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24758echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24759 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24760 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24761echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24762 else
24763 PANGOFT2_CFLAGS=""
24764 PANGOFT2_LIBS=""
24765 ## If we have a custom action on failure, don't print errors, but
24766 ## do set a variable so people can do so.
24767 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24768
24769 fi
24770
24771
24772
24773 else
24774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24776 fi
24777 fi
24778
24779 if test $succeeded = yes; then
24780
24781 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24782 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24783
24784 else
24785
24786 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24787echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24788 wxUSE_PRINTING_ARCHITECTURE="no"
24789
24790
24791 fi
24792
24793
24794 succeeded=no
24795
24796 if test -z "$PKG_CONFIG"; then
24797 # Extract the first word of "pkg-config", so it can be a program name with args.
24798set dummy pkg-config; ac_word=$2
24799echo "$as_me:$LINENO: checking for $ac_word" >&5
24800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24801if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24802 echo $ECHO_N "(cached) $ECHO_C" >&6
24803else
24804 case $PKG_CONFIG in
24805 [\\/]* | ?:[\\/]*)
24806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24807 ;;
24808 *)
24809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24810for as_dir in $PATH
24811do
24812 IFS=$as_save_IFS
24813 test -z "$as_dir" && as_dir=.
24814 for ac_exec_ext in '' $ac_executable_extensions; do
24815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24816 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24818 break 2
24819 fi
24820done
24821done
24822
24823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24824 ;;
24825esac
24826fi
24827PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24828
24829if test -n "$PKG_CONFIG"; then
24830 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24831echo "${ECHO_T}$PKG_CONFIG" >&6
24832else
24833 echo "$as_me:$LINENO: result: no" >&5
24834echo "${ECHO_T}no" >&6
24835fi
24836
24837 fi
24838
24839 if test "$PKG_CONFIG" = "no" ; then
24840 echo "*** The pkg-config script could not be found. Make sure it is"
24841 echo "*** in your path, or set the PKG_CONFIG environment variable"
24842 echo "*** to the full path to pkg-config."
24843 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24844 else
24845 PKG_CONFIG_MIN_VERSION=0.9.0
24846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24847 echo "$as_me:$LINENO: checking for pangoxft" >&5
24848echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24849
24850 if $PKG_CONFIG --exists "pangoxft" ; then
24851 echo "$as_me:$LINENO: result: yes" >&5
24852echo "${ECHO_T}yes" >&6
24853 succeeded=yes
24854
24855 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24856echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24857 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24858 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24859echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24860
24861 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24862echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24863 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24864 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24865echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24866 else
24867 PANGOXFT_CFLAGS=""
24868 PANGOXFT_LIBS=""
24869 ## If we have a custom action on failure, don't print errors, but
24870 ## do set a variable so people can do so.
24871 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24872
24873 fi
24874
24875
24876
24877 else
24878 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24879 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24880 fi
24881 fi
24882
24883 if test $succeeded = yes; then
24884
24885 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24887
24888 else
24889
24890 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24891echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24892
24893
24894 fi
24895
24896 fi
24897
24898 wxUSE_UNIVERSAL="yes"
24899
24900 if test "$wxUSE_NANOX" = "yes"; then
24901 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24902 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"
24903 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24904 else
24905 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24906 fi
24907
24908 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24909 TOOLKIT=X11
24910 GUIDIST=X11_DIST
24911 fi
24912
24913 if test "$wxUSE_MOTIF" = 1; then
24914 if test "$no_x" = yes; then
24915 # Not all programs may use this symbol, but it does not hurt to define it.
24916
24917cat >>confdefs.h <<\_ACEOF
24918#define X_DISPLAY_MISSING 1
24919_ACEOF
24920
24921 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24922else
24923 if test -n "$x_includes"; then
24924 X_CFLAGS="$X_CFLAGS -I$x_includes"
24925 fi
24926
24927 # It would also be nice to do this for all -L options, not just this one.
24928 if test -n "$x_libraries"; then
24929 X_LIBS="$X_LIBS -L$x_libraries"
24930 # For Solaris; some versions of Sun CC require a space after -R and
24931 # others require no space. Words are not sufficient . . . .
24932 case `(uname -sr) 2>/dev/null` in
24933 "SunOS 5"*)
24934 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24935echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24936 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24937 cat >conftest.$ac_ext <<_ACEOF
24938/* confdefs.h. */
24939_ACEOF
24940cat confdefs.h >>conftest.$ac_ext
24941cat >>conftest.$ac_ext <<_ACEOF
24942/* end confdefs.h. */
24943
24944int
24945main ()
24946{
24947
24948 ;
24949 return 0;
24950}
24951_ACEOF
24952rm -f conftest.$ac_objext conftest$ac_exeext
24953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24954 (eval $ac_link) 2>conftest.er1
24955 ac_status=$?
24956 grep -v '^ *+' conftest.er1 >conftest.err
24957 rm -f conftest.er1
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } &&
01cb68df 24961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest$ac_exeext'
24968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969 (eval $ac_try) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 ac_R_nospace=yes
24974else
24975 echo "$as_me: failed program was:" >&5
24976sed 's/^/| /' conftest.$ac_ext >&5
24977
24978ac_R_nospace=no
24979fi
24980rm -f conftest.err conftest.$ac_objext \
24981 conftest$ac_exeext conftest.$ac_ext
24982 if test $ac_R_nospace = yes; then
24983 echo "$as_me:$LINENO: result: no" >&5
24984echo "${ECHO_T}no" >&6
24985 X_LIBS="$X_LIBS -R$x_libraries"
24986 else
24987 LIBS="$ac_xsave_LIBS -R $x_libraries"
24988 cat >conftest.$ac_ext <<_ACEOF
24989/* confdefs.h. */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h. */
24994
24995int
24996main ()
24997{
24998
24999 ;
25000 return 0;
25001}
25002_ACEOF
25003rm -f conftest.$ac_objext conftest$ac_exeext
25004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25005 (eval $ac_link) 2>conftest.er1
25006 ac_status=$?
25007 grep -v '^ *+' conftest.er1 >conftest.err
25008 rm -f conftest.er1
25009 cat conftest.err >&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } &&
01cb68df 25012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_R_space=yes
25025else
25026 echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
25028
25029ac_R_space=no
25030fi
25031rm -f conftest.err conftest.$ac_objext \
25032 conftest$ac_exeext conftest.$ac_ext
25033 if test $ac_R_space = yes; then
25034 echo "$as_me:$LINENO: result: yes" >&5
25035echo "${ECHO_T}yes" >&6
25036 X_LIBS="$X_LIBS -R $x_libraries"
25037 else
25038 echo "$as_me:$LINENO: result: neither works" >&5
25039echo "${ECHO_T}neither works" >&6
25040 fi
25041 fi
25042 LIBS=$ac_xsave_LIBS
25043 esac
25044 fi
25045
25046 # Check for system-dependent libraries X programs must link with.
25047 # Do this before checking for the system-independent R6 libraries
25048 # (-lICE), since we may need -lsocket or whatever for X linking.
25049
25050 if test "$ISC" = yes; then
25051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25052 else
25053 # Martyn Johnson says this is needed for Ultrix, if the X
25054 # libraries were built with DECnet support. And Karl Berry says
25055 # the Alpha needs dnet_stub (dnet does not exist).
25056 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25057 cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064/* Override any gcc2 internal prototype to avoid an error. */
25065#ifdef __cplusplus
25066extern "C"
25067#endif
25068/* We use char because int might match the return type of a gcc2
25069 builtin and then its argument prototype would still apply. */
25070char XOpenDisplay ();
25071int
25072main ()
25073{
25074XOpenDisplay ();
25075 ;
25076 return 0;
25077}
25078_ACEOF
25079rm -f conftest.$ac_objext conftest$ac_exeext
25080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25081 (eval $ac_link) 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } &&
01cb68df 25088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; } &&
25094 { ac_try='test -s conftest$ac_exeext'
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
25100 :
25101else
25102 echo "$as_me: failed program was:" >&5
25103sed 's/^/| /' conftest.$ac_ext >&5
25104
25105echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25106echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25107if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25108 echo $ECHO_N "(cached) $ECHO_C" >&6
25109else
25110 ac_check_lib_save_LIBS=$LIBS
25111LIBS="-ldnet $LIBS"
25112cat >conftest.$ac_ext <<_ACEOF
25113/* confdefs.h. */
25114_ACEOF
25115cat confdefs.h >>conftest.$ac_ext
25116cat >>conftest.$ac_ext <<_ACEOF
25117/* end confdefs.h. */
25118
25119/* Override any gcc2 internal prototype to avoid an error. */
25120#ifdef __cplusplus
25121extern "C"
25122#endif
25123/* We use char because int might match the return type of a gcc2
25124 builtin and then its argument prototype would still apply. */
25125char dnet_ntoa ();
25126int
25127main ()
25128{
25129dnet_ntoa ();
25130 ;
25131 return 0;
25132}
25133_ACEOF
25134rm -f conftest.$ac_objext conftest$ac_exeext
25135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25136 (eval $ac_link) 2>conftest.er1
25137 ac_status=$?
25138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
01cb68df 25143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; } &&
25149 { ac_try='test -s conftest$ac_exeext'
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; }; then
25155 ac_cv_lib_dnet_dnet_ntoa=yes
25156else
25157 echo "$as_me: failed program was:" >&5
25158sed 's/^/| /' conftest.$ac_ext >&5
25159
25160ac_cv_lib_dnet_dnet_ntoa=no
25161fi
25162rm -f conftest.err conftest.$ac_objext \
25163 conftest$ac_exeext conftest.$ac_ext
25164LIBS=$ac_check_lib_save_LIBS
25165fi
25166echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25167echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25168if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25169 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25170fi
25171
25172 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25173 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25174echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25175if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25177else
25178 ac_check_lib_save_LIBS=$LIBS
25179LIBS="-ldnet_stub $LIBS"
25180cat >conftest.$ac_ext <<_ACEOF
25181/* confdefs.h. */
25182_ACEOF
25183cat confdefs.h >>conftest.$ac_ext
25184cat >>conftest.$ac_ext <<_ACEOF
25185/* end confdefs.h. */
25186
25187/* Override any gcc2 internal prototype to avoid an error. */
25188#ifdef __cplusplus
25189extern "C"
25190#endif
25191/* We use char because int might match the return type of a gcc2
25192 builtin and then its argument prototype would still apply. */
25193char dnet_ntoa ();
25194int
25195main ()
25196{
25197dnet_ntoa ();
25198 ;
25199 return 0;
25200}
25201_ACEOF
25202rm -f conftest.$ac_objext conftest$ac_exeext
25203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25204 (eval $ac_link) 2>conftest.er1
25205 ac_status=$?
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } &&
01cb68df 25211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; } &&
25217 { ac_try='test -s conftest$ac_exeext'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25224else
25225 echo "$as_me: failed program was:" >&5
25226sed 's/^/| /' conftest.$ac_ext >&5
25227
25228ac_cv_lib_dnet_stub_dnet_ntoa=no
25229fi
25230rm -f conftest.err conftest.$ac_objext \
25231 conftest$ac_exeext conftest.$ac_ext
25232LIBS=$ac_check_lib_save_LIBS
25233fi
25234echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25235echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25236if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25238fi
25239
25240 fi
25241fi
25242rm -f conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
25244 LIBS="$ac_xsave_LIBS"
25245
25246 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25247 # to get the SysV transport functions.
25248 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25249 # needs -lnsl.
25250 # The nsl library prevents programs from opening the X display
25251 # on Irix 5.2, according to T.E. Dickey.
25252 # The functions gethostbyname, getservbyname, and inet_addr are
25253 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25254 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25255echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25256if test "${ac_cv_func_gethostbyname+set}" = set; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
25258else
25259 cat >conftest.$ac_ext <<_ACEOF
25260/* confdefs.h. */
25261_ACEOF
25262cat confdefs.h >>conftest.$ac_ext
25263cat >>conftest.$ac_ext <<_ACEOF
25264/* end confdefs.h. */
25265/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25267#define gethostbyname innocuous_gethostbyname
25268
25269/* System header to define __stub macros and hopefully few prototypes,
25270 which can conflict with char gethostbyname (); below.
25271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25272 <limits.h> exists even on freestanding compilers. */
25273
25274#ifdef __STDC__
25275# include <limits.h>
25276#else
25277# include <assert.h>
25278#endif
25279
25280#undef gethostbyname
25281
25282/* Override any gcc2 internal prototype to avoid an error. */
25283#ifdef __cplusplus
25284extern "C"
25285{
25286#endif
25287/* We use char because int might match the return type of a gcc2
25288 builtin and then its argument prototype would still apply. */
25289char gethostbyname ();
25290/* The GNU C library defines this for functions which it implements
25291 to always fail with ENOSYS. Some functions are actually named
25292 something starting with __ and the normal name is an alias. */
25293#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25294choke me
25295#else
25296char (*f) () = gethostbyname;
25297#endif
25298#ifdef __cplusplus
25299}
25300#endif
25301
25302int
25303main ()
25304{
25305return f != gethostbyname;
25306 ;
25307 return 0;
25308}
25309_ACEOF
25310rm -f conftest.$ac_objext conftest$ac_exeext
25311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25312 (eval $ac_link) 2>conftest.er1
25313 ac_status=$?
25314 grep -v '^ *+' conftest.er1 >conftest.err
25315 rm -f conftest.er1
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } &&
01cb68df 25319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); }; } &&
25325 { ac_try='test -s conftest$ac_exeext'
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; }; then
25331 ac_cv_func_gethostbyname=yes
25332else
25333 echo "$as_me: failed program was:" >&5
25334sed 's/^/| /' conftest.$ac_ext >&5
25335
25336ac_cv_func_gethostbyname=no
25337fi
25338rm -f conftest.err conftest.$ac_objext \
25339 conftest$ac_exeext conftest.$ac_ext
25340fi
25341echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25342echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25343
25344 if test $ac_cv_func_gethostbyname = no; then
25345 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25346echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25347if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25349else
25350 ac_check_lib_save_LIBS=$LIBS
25351LIBS="-lnsl $LIBS"
25352cat >conftest.$ac_ext <<_ACEOF
25353/* confdefs.h. */
25354_ACEOF
25355cat confdefs.h >>conftest.$ac_ext
25356cat >>conftest.$ac_ext <<_ACEOF
25357/* end confdefs.h. */
25358
25359/* Override any gcc2 internal prototype to avoid an error. */
25360#ifdef __cplusplus
25361extern "C"
25362#endif
25363/* We use char because int might match the return type of a gcc2
25364 builtin and then its argument prototype would still apply. */
25365char gethostbyname ();
25366int
25367main ()
25368{
25369gethostbyname ();
25370 ;
25371 return 0;
25372}
25373_ACEOF
25374rm -f conftest.$ac_objext conftest$ac_exeext
25375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25376 (eval $ac_link) 2>conftest.er1
25377 ac_status=$?
25378 grep -v '^ *+' conftest.er1 >conftest.err
25379 rm -f conftest.er1
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
01cb68df 25383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; } &&
25389 { ac_try='test -s conftest$ac_exeext'
25390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; }; then
25395 ac_cv_lib_nsl_gethostbyname=yes
25396else
25397 echo "$as_me: failed program was:" >&5
25398sed 's/^/| /' conftest.$ac_ext >&5
25399
25400ac_cv_lib_nsl_gethostbyname=no
25401fi
25402rm -f conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
25404LIBS=$ac_check_lib_save_LIBS
25405fi
25406echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25407echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25408if test $ac_cv_lib_nsl_gethostbyname = yes; then
25409 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25410fi
25411
25412 if test $ac_cv_lib_nsl_gethostbyname = no; then
25413 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25414echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25415if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25416 echo $ECHO_N "(cached) $ECHO_C" >&6
25417else
25418 ac_check_lib_save_LIBS=$LIBS
25419LIBS="-lbsd $LIBS"
25420cat >conftest.$ac_ext <<_ACEOF
25421/* confdefs.h. */
25422_ACEOF
25423cat confdefs.h >>conftest.$ac_ext
25424cat >>conftest.$ac_ext <<_ACEOF
25425/* end confdefs.h. */
25426
25427/* Override any gcc2 internal prototype to avoid an error. */
25428#ifdef __cplusplus
25429extern "C"
25430#endif
25431/* We use char because int might match the return type of a gcc2
25432 builtin and then its argument prototype would still apply. */
25433char gethostbyname ();
25434int
25435main ()
25436{
25437gethostbyname ();
25438 ;
25439 return 0;
25440}
25441_ACEOF
25442rm -f conftest.$ac_objext conftest$ac_exeext
25443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25444 (eval $ac_link) 2>conftest.er1
25445 ac_status=$?
25446 grep -v '^ *+' conftest.er1 >conftest.err
25447 rm -f conftest.er1
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
01cb68df 25451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; } &&
25457 { ac_try='test -s conftest$ac_exeext'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_cv_lib_bsd_gethostbyname=yes
25464else
25465 echo "$as_me: failed program was:" >&5
25466sed 's/^/| /' conftest.$ac_ext >&5
25467
25468ac_cv_lib_bsd_gethostbyname=no
25469fi
25470rm -f conftest.err conftest.$ac_objext \
25471 conftest$ac_exeext conftest.$ac_ext
25472LIBS=$ac_check_lib_save_LIBS
25473fi
25474echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25475echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25476if test $ac_cv_lib_bsd_gethostbyname = yes; then
25477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25478fi
25479
25480 fi
25481 fi
25482
25483 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25484 # socket/setsockopt and other routines are undefined under SCO ODT
25485 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25486 # on later versions), says Simon Leinen: it contains gethostby*
25487 # variants that don't use the name server (or something). -lsocket
25488 # must be given before -lnsl if both are needed. We assume that
25489 # if connect needs -lnsl, so does gethostbyname.
25490 echo "$as_me:$LINENO: checking for connect" >&5
25491echo $ECHO_N "checking for connect... $ECHO_C" >&6
25492if test "${ac_cv_func_connect+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25494else
25495 cat >conftest.$ac_ext <<_ACEOF
25496/* confdefs.h. */
25497_ACEOF
25498cat confdefs.h >>conftest.$ac_ext
25499cat >>conftest.$ac_ext <<_ACEOF
25500/* end confdefs.h. */
25501/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25503#define connect innocuous_connect
25504
25505/* System header to define __stub macros and hopefully few prototypes,
25506 which can conflict with char connect (); below.
25507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25508 <limits.h> exists even on freestanding compilers. */
25509
25510#ifdef __STDC__
25511# include <limits.h>
25512#else
25513# include <assert.h>
25514#endif
25515
25516#undef connect
25517
25518/* Override any gcc2 internal prototype to avoid an error. */
25519#ifdef __cplusplus
25520extern "C"
25521{
25522#endif
25523/* We use char because int might match the return type of a gcc2
25524 builtin and then its argument prototype would still apply. */
25525char connect ();
25526/* The GNU C library defines this for functions which it implements
25527 to always fail with ENOSYS. Some functions are actually named
25528 something starting with __ and the normal name is an alias. */
25529#if defined (__stub_connect) || defined (__stub___connect)
25530choke me
25531#else
25532char (*f) () = connect;
25533#endif
25534#ifdef __cplusplus
25535}
25536#endif
25537
25538int
25539main ()
25540{
25541return f != connect;
25542 ;
25543 return 0;
25544}
25545_ACEOF
25546rm -f conftest.$ac_objext conftest$ac_exeext
25547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25548 (eval $ac_link) 2>conftest.er1
25549 ac_status=$?
25550 grep -v '^ *+' conftest.er1 >conftest.err
25551 rm -f conftest.er1
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } &&
01cb68df 25555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; } &&
25561 { ac_try='test -s conftest$ac_exeext'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
25567 ac_cv_func_connect=yes
25568else
25569 echo "$as_me: failed program was:" >&5
25570sed 's/^/| /' conftest.$ac_ext >&5
25571
25572ac_cv_func_connect=no
25573fi
25574rm -f conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
25576fi
25577echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25578echo "${ECHO_T}$ac_cv_func_connect" >&6
25579
25580 if test $ac_cv_func_connect = no; then
25581 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25582echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25583if test "${ac_cv_lib_socket_connect+set}" = set; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
25585else
25586 ac_check_lib_save_LIBS=$LIBS
25587LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25588cat >conftest.$ac_ext <<_ACEOF
25589/* confdefs.h. */
25590_ACEOF
25591cat confdefs.h >>conftest.$ac_ext
25592cat >>conftest.$ac_ext <<_ACEOF
25593/* end confdefs.h. */
25594
25595/* Override any gcc2 internal prototype to avoid an error. */
25596#ifdef __cplusplus
25597extern "C"
25598#endif
25599/* We use char because int might match the return type of a gcc2
25600 builtin and then its argument prototype would still apply. */
25601char connect ();
25602int
25603main ()
25604{
25605connect ();
25606 ;
25607 return 0;
25608}
25609_ACEOF
25610rm -f conftest.$ac_objext conftest$ac_exeext
25611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25612 (eval $ac_link) 2>conftest.er1
25613 ac_status=$?
25614 grep -v '^ *+' conftest.er1 >conftest.err
25615 rm -f conftest.er1
25616 cat conftest.err >&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } &&
01cb68df 25619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25621 (eval $ac_try) 2>&5
25622 ac_status=$?
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); }; } &&
25625 { ac_try='test -s conftest$ac_exeext'
25626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); }; }; then
25631 ac_cv_lib_socket_connect=yes
25632else
25633 echo "$as_me: failed program was:" >&5
25634sed 's/^/| /' conftest.$ac_ext >&5
25635
25636ac_cv_lib_socket_connect=no
25637fi
25638rm -f conftest.err conftest.$ac_objext \
25639 conftest$ac_exeext conftest.$ac_ext
25640LIBS=$ac_check_lib_save_LIBS
25641fi
25642echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25643echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25644if test $ac_cv_lib_socket_connect = yes; then
25645 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25646fi
25647
25648 fi
25649
25650 # Guillermo Gomez says -lposix is necessary on A/UX.
25651 echo "$as_me:$LINENO: checking for remove" >&5
25652echo $ECHO_N "checking for remove... $ECHO_C" >&6
25653if test "${ac_cv_func_remove+set}" = set; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25655else
25656 cat >conftest.$ac_ext <<_ACEOF
25657/* confdefs.h. */
25658_ACEOF
25659cat confdefs.h >>conftest.$ac_ext
25660cat >>conftest.$ac_ext <<_ACEOF
25661/* end confdefs.h. */
25662/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25664#define remove innocuous_remove
25665
25666/* System header to define __stub macros and hopefully few prototypes,
25667 which can conflict with char remove (); below.
25668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25669 <limits.h> exists even on freestanding compilers. */
25670
25671#ifdef __STDC__
25672# include <limits.h>
25673#else
25674# include <assert.h>
25675#endif
25676
25677#undef remove
25678
25679/* Override any gcc2 internal prototype to avoid an error. */
25680#ifdef __cplusplus
25681extern "C"
25682{
25683#endif
25684/* We use char because int might match the return type of a gcc2
25685 builtin and then its argument prototype would still apply. */
25686char remove ();
25687/* The GNU C library defines this for functions which it implements
25688 to always fail with ENOSYS. Some functions are actually named
25689 something starting with __ and the normal name is an alias. */
25690#if defined (__stub_remove) || defined (__stub___remove)
25691choke me
25692#else
25693char (*f) () = remove;
25694#endif
25695#ifdef __cplusplus
25696}
25697#endif
25698
25699int
25700main ()
25701{
25702return f != remove;
25703 ;
25704 return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext conftest$ac_exeext
25708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709 (eval $ac_link) 2>conftest.er1
25710 ac_status=$?
25711 grep -v '^ *+' conftest.er1 >conftest.err
25712 rm -f conftest.er1
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } &&
01cb68df 25716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest$ac_exeext'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25725 ac_status=$?
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 ac_cv_func_remove=yes
25729else
25730 echo "$as_me: failed program was:" >&5
25731sed 's/^/| /' conftest.$ac_ext >&5
25732
25733ac_cv_func_remove=no
25734fi
25735rm -f conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
25737fi
25738echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25739echo "${ECHO_T}$ac_cv_func_remove" >&6
25740
25741 if test $ac_cv_func_remove = no; then
25742 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25743echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25744if test "${ac_cv_lib_posix_remove+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25746else
25747 ac_check_lib_save_LIBS=$LIBS
25748LIBS="-lposix $LIBS"
25749cat >conftest.$ac_ext <<_ACEOF
25750/* confdefs.h. */
25751_ACEOF
25752cat confdefs.h >>conftest.$ac_ext
25753cat >>conftest.$ac_ext <<_ACEOF
25754/* end confdefs.h. */
25755
25756/* Override any gcc2 internal prototype to avoid an error. */
25757#ifdef __cplusplus
25758extern "C"
25759#endif
25760/* We use char because int might match the return type of a gcc2
25761 builtin and then its argument prototype would still apply. */
25762char remove ();
25763int
25764main ()
25765{
25766remove ();
25767 ;
25768 return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext conftest$ac_exeext
25772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25773 (eval $ac_link) 2>conftest.er1
25774 ac_status=$?
25775 grep -v '^ *+' conftest.er1 >conftest.err
25776 rm -f conftest.er1
25777 cat conftest.err >&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } &&
01cb68df 25780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest$ac_exeext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 ac_cv_lib_posix_remove=yes
25793else
25794 echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797ac_cv_lib_posix_remove=no
25798fi
25799rm -f conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25801LIBS=$ac_check_lib_save_LIBS
25802fi
25803echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25804echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25805if test $ac_cv_lib_posix_remove = yes; then
25806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25807fi
25808
25809 fi
25810
25811 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25812 echo "$as_me:$LINENO: checking for shmat" >&5
25813echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25814if test "${ac_cv_func_shmat+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25816else
25817 cat >conftest.$ac_ext <<_ACEOF
25818/* confdefs.h. */
25819_ACEOF
25820cat confdefs.h >>conftest.$ac_ext
25821cat >>conftest.$ac_ext <<_ACEOF
25822/* end confdefs.h. */
25823/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25825#define shmat innocuous_shmat
25826
25827/* System header to define __stub macros and hopefully few prototypes,
25828 which can conflict with char shmat (); below.
25829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25830 <limits.h> exists even on freestanding compilers. */
25831
25832#ifdef __STDC__
25833# include <limits.h>
25834#else
25835# include <assert.h>
25836#endif
25837
25838#undef shmat
25839
25840/* Override any gcc2 internal prototype to avoid an error. */
25841#ifdef __cplusplus
25842extern "C"
25843{
25844#endif
25845/* We use char because int might match the return type of a gcc2
25846 builtin and then its argument prototype would still apply. */
25847char shmat ();
25848/* The GNU C library defines this for functions which it implements
25849 to always fail with ENOSYS. Some functions are actually named
25850 something starting with __ and the normal name is an alias. */
25851#if defined (__stub_shmat) || defined (__stub___shmat)
25852choke me
25853#else
25854char (*f) () = shmat;
25855#endif
25856#ifdef __cplusplus
25857}
25858#endif
25859
25860int
25861main ()
25862{
25863return f != shmat;
25864 ;
25865 return 0;
25866}
25867_ACEOF
25868rm -f conftest.$ac_objext conftest$ac_exeext
25869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25870 (eval $ac_link) 2>conftest.er1
25871 ac_status=$?
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } &&
01cb68df 25877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } &&
25883 { ac_try='test -s conftest$ac_exeext'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; }; then
25889 ac_cv_func_shmat=yes
25890else
25891 echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
25894ac_cv_func_shmat=no
25895fi
25896rm -f conftest.err conftest.$ac_objext \
25897 conftest$ac_exeext conftest.$ac_ext
25898fi
25899echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25900echo "${ECHO_T}$ac_cv_func_shmat" >&6
25901
25902 if test $ac_cv_func_shmat = no; then
25903 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25904echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25905if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25907else
25908 ac_check_lib_save_LIBS=$LIBS
25909LIBS="-lipc $LIBS"
25910cat >conftest.$ac_ext <<_ACEOF
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
25916
25917/* Override any gcc2 internal prototype to avoid an error. */
25918#ifdef __cplusplus
25919extern "C"
25920#endif
25921/* We use char because int might match the return type of a gcc2
25922 builtin and then its argument prototype would still apply. */
25923char shmat ();
25924int
25925main ()
25926{
25927shmat ();
25928 ;
25929 return 0;
25930}
25931_ACEOF
25932rm -f conftest.$ac_objext conftest$ac_exeext
25933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25934 (eval $ac_link) 2>conftest.er1
25935 ac_status=$?
25936 grep -v '^ *+' conftest.er1 >conftest.err
25937 rm -f conftest.er1
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } &&
01cb68df 25941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; } &&
25947 { ac_try='test -s conftest$ac_exeext'
25948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_cv_lib_ipc_shmat=yes
25954else
25955 echo "$as_me: failed program was:" >&5
25956sed 's/^/| /' conftest.$ac_ext >&5
25957
25958ac_cv_lib_ipc_shmat=no
25959fi
25960rm -f conftest.err conftest.$ac_objext \
25961 conftest$ac_exeext conftest.$ac_ext
25962LIBS=$ac_check_lib_save_LIBS
25963fi
25964echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25965echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25966if test $ac_cv_lib_ipc_shmat = yes; then
25967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25968fi
25969
25970 fi
25971 fi
25972
25973 # Check for libraries that X11R6 Xt/Xaw programs need.
25974 ac_save_LDFLAGS=$LDFLAGS
25975 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25976 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25977 # check for ICE first), but we must link in the order -lSM -lICE or
25978 # we get undefined symbols. So assume we have SM if we have ICE.
25979 # These have to be linked with before -lX11, unlike the other
25980 # libraries we check for below, so use a different variable.
25981 # John Interrante, Karl Berry
25982 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25983echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25984if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25986else
25987 ac_check_lib_save_LIBS=$LIBS
25988LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25989cat >conftest.$ac_ext <<_ACEOF
25990/* confdefs.h. */
25991_ACEOF
25992cat confdefs.h >>conftest.$ac_ext
25993cat >>conftest.$ac_ext <<_ACEOF
25994/* end confdefs.h. */
25995
25996/* Override any gcc2 internal prototype to avoid an error. */
25997#ifdef __cplusplus
25998extern "C"
25999#endif
26000/* We use char because int might match the return type of a gcc2
26001 builtin and then its argument prototype would still apply. */
26002char IceConnectionNumber ();
26003int
26004main ()
26005{
26006IceConnectionNumber ();
26007 ;
26008 return 0;
26009}
26010_ACEOF
26011rm -f conftest.$ac_objext conftest$ac_exeext
26012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26013 (eval $ac_link) 2>conftest.er1
26014 ac_status=$?
26015 grep -v '^ *+' conftest.er1 >conftest.err
26016 rm -f conftest.er1
26017 cat conftest.err >&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } &&
01cb68df 26020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; } &&
26026 { ac_try='test -s conftest$ac_exeext'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26032 ac_cv_lib_ICE_IceConnectionNumber=yes
26033else
26034 echo "$as_me: failed program was:" >&5
26035sed 's/^/| /' conftest.$ac_ext >&5
26036
26037ac_cv_lib_ICE_IceConnectionNumber=no
26038fi
26039rm -f conftest.err conftest.$ac_objext \
26040 conftest$ac_exeext conftest.$ac_ext
26041LIBS=$ac_check_lib_save_LIBS
26042fi
26043echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26044echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26045if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26046 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26047fi
26048
26049 LDFLAGS=$ac_save_LDFLAGS
26050
26051fi
26052
26053
26054 if test "$no_x" = "yes"; then
26055 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26056echo "$as_me: error: X11 not found" >&2;}
26057 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26058 fi
26059
26060 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26061 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26062 AFMINSTALL=afminstall
26063 COMPILED_X_PROGRAM=0
26064
26065 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26066echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26067
26068ac_find_includes=
26069for ac_dir in $SEARCH_INCLUDE /usr/include;
26070 do
26071 if test -f "$ac_dir/Xm/Xm.h"; then
26072 ac_find_includes=$ac_dir
26073 break
26074 fi
26075 done
26076
26077 if test "$ac_find_includes" != "" ; then
26078 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26079echo "${ECHO_T}found in $ac_find_includes" >&6
26080
26081 if test "x$ac_find_includes" = "x/usr/include"; then
26082 ac_path_to_include=""
26083 else
26084 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26085 result=$?
26086 if test $result = 0; then
26087 ac_path_to_include=""
26088 else
26089 ac_path_to_include=" -I$ac_find_includes"
26090 fi
26091 fi
26092
26093 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26094 else
26095 cat >conftest.$ac_ext <<_ACEOF
26096/* confdefs.h. */
26097_ACEOF
26098cat confdefs.h >>conftest.$ac_ext
26099cat >>conftest.$ac_ext <<_ACEOF
26100/* end confdefs.h. */
26101
26102 #include <Xm/Xm.h>
26103
26104int
26105main ()
26106{
26107
26108 int version;
26109 version = xmUseVersion;
26110
26111 ;
26112 return 0;
26113}
26114_ACEOF
26115rm -f conftest.$ac_objext
26116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117 (eval $ac_compile) 2>conftest.er1
26118 ac_status=$?
26119 grep -v '^ *+' conftest.er1 >conftest.err
26120 rm -f conftest.er1
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
01cb68df 26124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126 (eval $ac_try) 2>&5
26127 ac_status=$?
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); }; } &&
26130 { ac_try='test -s conftest.$ac_objext'
26131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26132 (eval $ac_try) 2>&5
26133 ac_status=$?
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); }; }; then
26136
26137 echo "$as_me:$LINENO: result: found in default search path" >&5
26138echo "${ECHO_T}found in default search path" >&6
26139 COMPILED_X_PROGRAM=1
26140
26141else
26142 echo "$as_me: failed program was:" >&5
26143sed 's/^/| /' conftest.$ac_ext >&5
26144
26145
26146 echo "$as_me:$LINENO: result: no" >&5
26147echo "${ECHO_T}no" >&6
26148 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26149echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26150 { (exit 1); exit 1; }; }
26151
26152
26153fi
26154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26155 fi
26156
26157 if test "$COMPILED_X_PROGRAM" = 0; then
26158 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26159echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26160
26161ac_find_libraries=
26162for ac_dir in $SEARCH_LIB /usr/lib;
26163 do
26164 for ac_extension in a so sl dylib; do
26165 if test -f "$ac_dir/libXm.$ac_extension"; then
26166 ac_find_libraries=$ac_dir
26167 break 2
26168 fi
26169 done
26170 done
26171
26172 if test "$ac_find_libraries" != "" ; then
26173 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26174echo "${ECHO_T}found at $ac_find_libraries" >&6
26175
26176
26177 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26178 result=$?
26179 if test $result = 0; then
26180 ac_path_to_link=""
26181 else
26182 ac_path_to_link=" -L$ac_find_libraries"
26183 fi
26184
26185 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26186 else
26187 save_CFLAGS=$CFLAGS
26188 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26189
26190 cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h. */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h. */
26196
26197 #include <Xm/Xm.h>
26198
26199int
26200main ()
26201{
26202
26203 int version;
26204 version = xmUseVersion;
26205
26206 ;
26207 return 0;
26208}
26209_ACEOF
26210rm -f conftest.$ac_objext
26211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26212 (eval $ac_compile) 2>conftest.er1
26213 ac_status=$?
26214 grep -v '^ *+' conftest.er1 >conftest.err
26215 rm -f conftest.er1
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } &&
01cb68df 26219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; } &&
26225 { ac_try='test -s conftest.$ac_objext'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; }; then
26231
26232 echo "$as_me:$LINENO: result: found in default search path" >&5
26233echo "${ECHO_T}found in default search path" >&6
26234 COMPILED_X_PROGRAM=1
26235
26236else
26237 echo "$as_me: failed program was:" >&5
26238sed 's/^/| /' conftest.$ac_ext >&5
26239
26240
26241 echo "$as_me:$LINENO: result: no" >&5
26242echo "${ECHO_T}no" >&6
26243 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26244echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26245 { (exit 1); exit 1; }; }
26246
26247
26248fi
26249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26250
26251 CFLAGS=$save_CFLAGS
26252 fi
26253 fi
26254
26255 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26256echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26257 libp_link=""
26258 libsm_ice_link=""
26259 libs_found=0
26260 for libp in "" " -lXp"; do
26261 if test "$libs_found" = "0"; then
26262 for libsm_ice in "" " -lSM -lICE"; do
26263 if test "$libs_found" = "0"; then
26264 save_LIBS="$LIBS"
26265 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26266 save_CFLAGS=$CFLAGS
26267 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26268
26269 cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275
26276 #include <Xm/Xm.h>
26277 #include <Xm/List.h>
26278
26279int
26280main ()
26281{
26282
26283 XmString string = NULL;
26284 Widget w = NULL;
26285 int position = 0;
26286 XmListAddItem(w, string, position);
26287
26288 ;
26289 return 0;
26290}
26291_ACEOF
26292rm -f conftest.$ac_objext conftest$ac_exeext
26293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26294 (eval $ac_link) 2>conftest.er1
26295 ac_status=$?
26296 grep -v '^ *+' conftest.er1 >conftest.err
26297 rm -f conftest.er1
26298 cat conftest.err >&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } &&
01cb68df 26301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; } &&
26307 { ac_try='test -s conftest$ac_exeext'
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; }; then
26313
26314 libp_link="$libp"
26315 libsm_ice_link="$libsm_ice"
26316 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26317echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26318 libs_found=1
26319
26320else
26321 echo "$as_me: failed program was:" >&5
26322sed 's/^/| /' conftest.$ac_ext >&5
26323
26324
26325
26326fi
26327rm -f conftest.err conftest.$ac_objext \
26328 conftest$ac_exeext conftest.$ac_ext
26329
26330 LIBS="$save_LIBS"
26331 CFLAGS=$save_CFLAGS
26332 fi
26333 done
26334 fi
26335 done
26336
26337 if test "$libs_found" = "0"; then
26338 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26339echo "${ECHO_T}can't find the right libraries" >&6
26340 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26341echo "$as_me: error: can't link a simple motif program" >&2;}
26342 { (exit 1); exit 1; }; }
26343 fi
26344
26345 save_CFLAGS=$CFLAGS
26346 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26347 echo "$as_me:$LINENO: checking for Motif 2" >&5
26348echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26349 cat >conftest.$ac_ext <<_ACEOF
26350/* confdefs.h. */
26351_ACEOF
26352cat confdefs.h >>conftest.$ac_ext
26353cat >>conftest.$ac_ext <<_ACEOF
26354/* end confdefs.h. */
26355
26356 #include <Xm/Xm.h>
26357
26358int
26359main ()
26360{
26361
26362 #if XmVersion < 2000
26363 #error "Not Motif 2"
26364 #endif
26365
26366 ;
26367 return 0;
26368}
26369_ACEOF
26370rm -f conftest.$ac_objext
26371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26372 (eval $ac_compile) 2>conftest.er1
26373 ac_status=$?
26374 grep -v '^ *+' conftest.er1 >conftest.err
26375 rm -f conftest.er1
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } &&
01cb68df 26379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); }; } &&
26385 { ac_try='test -s conftest.$ac_objext'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391
26392 cat >>confdefs.h <<\_ACEOF
26393#define __WXMOTIF20__ 1
26394_ACEOF
26395
26396 echo "$as_me:$LINENO: result: found" >&5
26397echo "${ECHO_T}found" >&6
26398
26399else
26400 echo "$as_me: failed program was:" >&5
26401sed 's/^/| /' conftest.$ac_ext >&5
26402
26403
26404 cat >>confdefs.h <<\_ACEOF
26405#define __WXMOTIF20__ 0
26406_ACEOF
26407
26408 echo "$as_me:$LINENO: result: not found" >&5
26409echo "${ECHO_T}not found" >&6
26410
26411fi
26412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26413 CFLAGS=$save_CFLAGS
26414
26415 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26416 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26417 TOOLKIT=MOTIF
26418 GUIDIST=MOTIF_DIST
26419 fi
26420
26421 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26422 if test "$wxUSE_LIBXPM" = "sys"; then
26423 echo "$as_me:$LINENO: checking for Xpm library" >&5
26424echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26425
26426ac_find_libraries=
26427for ac_dir in $SEARCH_LIB /usr/lib;
26428 do
26429 for ac_extension in a so sl dylib; do
26430 if test -f "$ac_dir/libXpm.$ac_extension"; then
26431 ac_find_libraries=$ac_dir
26432 break 2
26433 fi
26434 done
26435 done
26436
26437 if test "$ac_find_libraries" != "" ; then
26438
26439 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26440 result=$?
26441 if test $result = 0; then
26442 ac_path_to_link=""
26443 else
26444 ac_path_to_link=" -L$ac_find_libraries"
26445 fi
26446
26447 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26448 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26449echo "${ECHO_T}found at $ac_find_libraries" >&6
26450
26451 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26452echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26453if test "${wx_cv_x11_xpm_h+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26455else
26456
26457 save_CFLAGS=$CFLAGS
26458 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26459
26460 cat >conftest.$ac_ext <<_ACEOF
26461/* confdefs.h. */
26462_ACEOF
26463cat confdefs.h >>conftest.$ac_ext
26464cat >>conftest.$ac_ext <<_ACEOF
26465/* end confdefs.h. */
26466
26467 #include <X11/xpm.h>
26468
26469int
26470main ()
26471{
26472
26473 int version;
26474 version = XpmLibraryVersion();
26475
26476 ;
26477 return 0;
26478}
26479_ACEOF
26480rm -f conftest.$ac_objext
26481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26482 (eval $ac_compile) 2>conftest.er1
26483 ac_status=$?
26484 grep -v '^ *+' conftest.er1 >conftest.err
26485 rm -f conftest.er1
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } &&
01cb68df 26489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26492 ac_status=$?
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest.$ac_objext'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; }; then
26501 wx_cv_x11_xpm_h=yes
26502else
26503 echo "$as_me: failed program was:" >&5
26504sed 's/^/| /' conftest.$ac_ext >&5
26505
26506wx_cv_x11_xpm_h=no
26507
26508fi
26509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26510
26511 CFLAGS=$save_CFLAGS
26512
26513
26514fi
26515echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26516echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26517
26518 if test $wx_cv_x11_xpm_h = "yes"; then
26519 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26520 cat >>confdefs.h <<\_ACEOF
26521#define wxHAVE_LIB_XPM 1
26522_ACEOF
26523
26524 else
26525 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26526echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26527 fi
26528 fi
26529
26530 fi
26531
26532 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26533echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26534if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26536else
26537 ac_check_lib_save_LIBS=$LIBS
26538LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26539cat >conftest.$ac_ext <<_ACEOF
26540/* confdefs.h. */
26541_ACEOF
26542cat confdefs.h >>conftest.$ac_ext
26543cat >>conftest.$ac_ext <<_ACEOF
26544/* end confdefs.h. */
26545
26546/* Override any gcc2 internal prototype to avoid an error. */
26547#ifdef __cplusplus
26548extern "C"
26549#endif
26550/* We use char because int might match the return type of a gcc2
26551 builtin and then its argument prototype would still apply. */
26552char XShapeQueryExtension ();
26553int
26554main ()
26555{
26556XShapeQueryExtension ();
26557 ;
26558 return 0;
26559}
26560_ACEOF
26561rm -f conftest.$ac_objext conftest$ac_exeext
26562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26563 (eval $ac_link) 2>conftest.er1
26564 ac_status=$?
26565 grep -v '^ *+' conftest.er1 >conftest.err
26566 rm -f conftest.er1
26567 cat conftest.err >&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } &&
01cb68df 26570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; } &&
26576 { ac_try='test -s conftest$ac_exeext'
26577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26578 (eval $ac_try) 2>&5
26579 ac_status=$?
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); }; }; then
26582 ac_cv_lib_Xext_XShapeQueryExtension=yes
26583else
26584 echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587ac_cv_lib_Xext_XShapeQueryExtension=no
26588fi
26589rm -f conftest.err conftest.$ac_objext \
26590 conftest$ac_exeext conftest.$ac_ext
26591LIBS=$ac_check_lib_save_LIBS
26592fi
26593echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26594echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26595if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26596
26597 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26598 wxHAVE_XEXT_LIB=1
26599
26600fi
26601
26602
26603 if test "$wxHAVE_XEXT_LIB" = 1; then
26604 save_CFLAGS="$CFLAGS"
26605 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26606
26607 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26608echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26609 cat >conftest.$ac_ext <<_ACEOF
26610/* confdefs.h. */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h. */
26615
26616 #include <X11/Xlib.h>
26617 #include <X11/extensions/shape.h>
26618
26619int
26620main ()
26621{
26622
26623 int dummy1, dummy2;
26624 XShapeQueryExtension((Display*)NULL,
26625 (int*)NULL, (int*)NULL);
26626
26627 ;
26628 return 0;
26629}
26630_ACEOF
26631rm -f conftest.$ac_objext
26632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26633 (eval $ac_compile) 2>conftest.er1
26634 ac_status=$?
26635 grep -v '^ *+' conftest.er1 >conftest.err
26636 rm -f conftest.er1
26637 cat conftest.err >&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); } &&
01cb68df 26640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; } &&
26646 { ac_try='test -s conftest.$ac_objext'
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652
26653 cat >>confdefs.h <<\_ACEOF
26654#define HAVE_XSHAPE 1
26655_ACEOF
26656
26657 echo "$as_me:$LINENO: result: found" >&5
26658echo "${ECHO_T}found" >&6
26659
26660else
26661 echo "$as_me: failed program was:" >&5
26662sed 's/^/| /' conftest.$ac_ext >&5
26663
26664
26665 echo "$as_me:$LINENO: result: not found" >&5
26666echo "${ECHO_T}not found" >&6
26667
26668fi
26669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26670 CFLAGS="$save_CFLAGS"
26671
26672 fi
26673 fi
26674
26675 if test "$wxUSE_MAC" = 1; then
26676 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26677echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26678 if test "$GCC" = yes; then
26679 echo "$as_me:$LINENO: result: gcc" >&5
26680echo "${ECHO_T}gcc" >&6
26681 CPPFLAGS_PASCAL="-fpascal-strings"
26682 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26683 echo "$as_me:$LINENO: result: xlc" >&5
26684echo "${ECHO_T}xlc" >&6
26685 CPPFLAGS_PASCAL="-qmacpstr"
26686 else
26687 echo "$as_me:$LINENO: result: none" >&5
26688echo "${ECHO_T}none" >&6
26689 fi
26690
26691 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26692
26693 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26694 TOOLKIT=MAC
26695 GUIDIST=MACX_DIST
26696 WXBASEPORT="_carbon"
26697 fi
26698
26699 if test "$wxUSE_COCOA" = 1; then
26700 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26701 TOOLKIT=COCOA
26702 GUIDIST=COCOA_DIST
26703 fi
26704
26705 if test "$wxUSE_PM" = 1; then
26706 TOOLKIT=PM
26707 GUIDIST=GTK_DIST
26708 fi
26709
26710 if test "$TOOLKIT" = "PM" ; then
26711 TOOLKIT_DIR="os2"
26712 else
26713 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26714 fi
26715
26716 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26717
26718 if test "$wxUSE_UNIVERSAL" = "yes"; then
26719 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26720
26721 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26722 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26723
26724 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26725 if test "$wxUSE_X11" = 1; then
26726 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26727 else
26728 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26729 fi
26730 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26731 WIDGET_SET=univ
26732 else
26733 ALL_OBJECTS="\$(GUIOBJS)"
26734 ALL_SOURCES="\$(ALL_SOURCES)"
26735 ALL_HEADERS="\$(ALL_HEADERS)"
26736 fi
26737
26738 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26739
26740 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26741 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26742 fi
26743
26744 if test "$wxUSE_HTML" = "yes"; then
26745 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26746 fi
26747
26748 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26749 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26750 fi
26751 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26752 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26753 fi
26754 if test "$wxUSE_LIBPNG" = "builtin" ; then
26755 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26756 fi
26757
26758 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26759 DISTDIR="wx\$(TOOLKIT)"
26760else
26761 USE_GUI=0
26762
26763 TOOLKIT_DIR="base"
26764
26765 if test "$USE_WIN32" = 1 ; then
26766 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26767 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26768
26769 TOOLKIT="MSW"
26770 else
26771 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26772 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26773 fi
26774
26775 ALL_SOURCES="\$(ALL_SOURCES)"
26776 ALL_HEADERS="\$(ALL_HEADERS)"
26777
26778 PORT_FILES="\${top_srcdir}/src/files.lst"
26779
26780 GUIDIST="BASE_DIST"
26781 DISTDIR="wxBase"
26782fi
26783
26784
26785
26786
26787IODBC_C_SRC=""
26788
26789
26790if test "$TOOLKIT" != "MSW" ; then
26791
26792 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26793
26794 if test "${ac_cv_header_sql_h+set}" = set; then
26795 echo "$as_me:$LINENO: checking for sql.h" >&5
26796echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26797if test "${ac_cv_header_sql_h+set}" = set; then
26798 echo $ECHO_N "(cached) $ECHO_C" >&6
26799fi
26800echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26801echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26802else
26803 # Is the header compilable?
26804echo "$as_me:$LINENO: checking sql.h usability" >&5
26805echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26806cat >conftest.$ac_ext <<_ACEOF
26807/* confdefs.h. */
26808_ACEOF
26809cat confdefs.h >>conftest.$ac_ext
26810cat >>conftest.$ac_ext <<_ACEOF
26811/* end confdefs.h. */
26812$ac_includes_default
26813#include <sql.h>
26814_ACEOF
26815rm -f conftest.$ac_objext
26816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26817 (eval $ac_compile) 2>conftest.er1
26818 ac_status=$?
26819 grep -v '^ *+' conftest.er1 >conftest.err
26820 rm -f conftest.er1
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
01cb68df 26824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; } &&
26830 { ac_try='test -s conftest.$ac_objext'
26831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832 (eval $ac_try) 2>&5
26833 ac_status=$?
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; }; then
26836 ac_header_compiler=yes
26837else
26838 echo "$as_me: failed program was:" >&5
26839sed 's/^/| /' conftest.$ac_ext >&5
26840
26841ac_header_compiler=no
26842fi
26843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26845echo "${ECHO_T}$ac_header_compiler" >&6
26846
26847# Is the header present?
26848echo "$as_me:$LINENO: checking sql.h presence" >&5
26849echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26850cat >conftest.$ac_ext <<_ACEOF
26851/* confdefs.h. */
26852_ACEOF
26853cat confdefs.h >>conftest.$ac_ext
26854cat >>conftest.$ac_ext <<_ACEOF
26855/* end confdefs.h. */
26856#include <sql.h>
26857_ACEOF
26858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26860 ac_status=$?
26861 grep -v '^ *+' conftest.er1 >conftest.err
26862 rm -f conftest.er1
26863 cat conftest.err >&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); } >/dev/null; then
26866 if test -s conftest.err; then
26867 ac_cpp_err=$ac_c_preproc_warn_flag
26868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26869 else
26870 ac_cpp_err=
26871 fi
26872else
26873 ac_cpp_err=yes
26874fi
26875if test -z "$ac_cpp_err"; then
26876 ac_header_preproc=yes
26877else
26878 echo "$as_me: failed program was:" >&5
26879sed 's/^/| /' conftest.$ac_ext >&5
26880
26881 ac_header_preproc=no
26882fi
26883rm -f conftest.err conftest.$ac_ext
26884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26885echo "${ECHO_T}$ac_header_preproc" >&6
26886
26887# So? What about this header?
26888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26889 yes:no: )
26890 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26891echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26892 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26893echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26894 ac_header_preproc=yes
26895 ;;
26896 no:yes:* )
26897 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26898echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26899 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26900echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26901 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26902echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26903 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26904echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26906echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26908echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26909 (
26910 cat <<\_ASBOX
26911## ----------------------------------------- ##
26912## Report this to wx-dev@lists.wxwindows.org ##
26913## ----------------------------------------- ##
26914_ASBOX
26915 ) |
26916 sed "s/^/$as_me: WARNING: /" >&2
26917 ;;
26918esac
26919echo "$as_me:$LINENO: checking for sql.h" >&5
26920echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26921if test "${ac_cv_header_sql_h+set}" = set; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26923else
26924 ac_cv_header_sql_h=$ac_header_preproc
26925fi
26926echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26927echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26928
26929fi
26930if test $ac_cv_header_sql_h = yes; then
26931 found_sql_h=1
26932fi
26933
26934
26935 if test "x$found_sql_h" = "x1" ; then
26936 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26937echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26938if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26939 echo $ECHO_N "(cached) $ECHO_C" >&6
26940else
26941 ac_check_lib_save_LIBS=$LIBS
26942LIBS="-liodbc $LIBS"
26943cat >conftest.$ac_ext <<_ACEOF
26944/* confdefs.h. */
26945_ACEOF
26946cat confdefs.h >>conftest.$ac_ext
26947cat >>conftest.$ac_ext <<_ACEOF
26948/* end confdefs.h. */
26949
26950/* Override any gcc2 internal prototype to avoid an error. */
26951#ifdef __cplusplus
26952extern "C"
26953#endif
26954/* We use char because int might match the return type of a gcc2
26955 builtin and then its argument prototype would still apply. */
26956char SQLAllocEnv ();
26957int
26958main ()
26959{
26960SQLAllocEnv ();
26961 ;
26962 return 0;
26963}
26964_ACEOF
26965rm -f conftest.$ac_objext conftest$ac_exeext
26966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26967 (eval $ac_link) 2>conftest.er1
26968 ac_status=$?
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
01cb68df 26974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26977 ac_status=$?
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; } &&
26980 { ac_try='test -s conftest$ac_exeext'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; }; then
26986 ac_cv_lib_iodbc_SQLAllocEnv=yes
26987else
26988 echo "$as_me: failed program was:" >&5
26989sed 's/^/| /' conftest.$ac_ext >&5
26990
26991ac_cv_lib_iodbc_SQLAllocEnv=no
26992fi
26993rm -f conftest.err conftest.$ac_objext \
26994 conftest$ac_exeext conftest.$ac_ext
26995LIBS=$ac_check_lib_save_LIBS
26996fi
26997echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26998echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26999if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27000 ODBC_LINK=" -liodbc"
27001else
27002
27003 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27004echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27005if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27007else
27008 ac_check_lib_save_LIBS=$LIBS
27009LIBS="-lunixodbc $LIBS"
27010cat >conftest.$ac_ext <<_ACEOF
27011/* confdefs.h. */
27012_ACEOF
27013cat confdefs.h >>conftest.$ac_ext
27014cat >>conftest.$ac_ext <<_ACEOF
27015/* end confdefs.h. */
27016
27017/* Override any gcc2 internal prototype to avoid an error. */
27018#ifdef __cplusplus
27019extern "C"
27020#endif
27021/* We use char because int might match the return type of a gcc2
27022 builtin and then its argument prototype would still apply. */
27023char SQLAllocEnv ();
27024int
27025main ()
27026{
27027SQLAllocEnv ();
27028 ;
27029 return 0;
27030}
27031_ACEOF
27032rm -f conftest.$ac_objext conftest$ac_exeext
27033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034 (eval $ac_link) 2>conftest.er1
27035 ac_status=$?
27036 grep -v '^ *+' conftest.er1 >conftest.err
27037 rm -f conftest.er1
27038 cat conftest.err >&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } &&
01cb68df 27041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } &&
27047 { ac_try='test -s conftest$ac_exeext'
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; }; then
27053 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27054else
27055 echo "$as_me: failed program was:" >&5
27056sed 's/^/| /' conftest.$ac_ext >&5
27057
27058ac_cv_lib_unixodbc_SQLAllocEnv=no
27059fi
27060rm -f conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
27062LIBS=$ac_check_lib_save_LIBS
27063fi
27064echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27065echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27066if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27067 ODBC_LINK=" -lunixodbc"
27068else
27069
27070 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27071echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27072if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27073 echo $ECHO_N "(cached) $ECHO_C" >&6
27074else
27075 ac_check_lib_save_LIBS=$LIBS
27076LIBS="-lodbc $LIBS"
27077cat >conftest.$ac_ext <<_ACEOF
27078/* confdefs.h. */
27079_ACEOF
27080cat confdefs.h >>conftest.$ac_ext
27081cat >>conftest.$ac_ext <<_ACEOF
27082/* end confdefs.h. */
27083
27084/* Override any gcc2 internal prototype to avoid an error. */
27085#ifdef __cplusplus
27086extern "C"
27087#endif
27088/* We use char because int might match the return type of a gcc2
27089 builtin and then its argument prototype would still apply. */
27090char SQLAllocEnv ();
27091int
27092main ()
27093{
27094SQLAllocEnv ();
27095 ;
27096 return 0;
27097}
27098_ACEOF
27099rm -f conftest.$ac_objext conftest$ac_exeext
27100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27101 (eval $ac_link) 2>conftest.er1
27102 ac_status=$?
27103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } &&
01cb68df 27108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110 (eval $ac_try) 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; }; then
27120 ac_cv_lib_odbc_SQLAllocEnv=yes
27121else
27122 echo "$as_me: failed program was:" >&5
27123sed 's/^/| /' conftest.$ac_ext >&5
27124
27125ac_cv_lib_odbc_SQLAllocEnv=no
27126fi
27127rm -f conftest.err conftest.$ac_objext \
27128 conftest$ac_exeext conftest.$ac_ext
27129LIBS=$ac_check_lib_save_LIBS
27130fi
27131echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27132echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27133if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27134 ODBC_LINK=" -lodbc"
27135fi
27136
27137
27138fi
27139
27140
27141fi
27142
27143 fi
27144 if test "x$ODBC_LINK" = "x" ; then
27145 if test "$wxUSE_ODBC" = "sys" ; then
27146 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27147echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27148 { (exit 1); exit 1; }; }
27149 else
27150 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27151echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27152 wxUSE_ODBC=builtin
27153 fi
27154 else
27155 wxUSE_ODBC=sys
27156 fi
27157 fi
27158 if test "$wxUSE_ODBC" != "no" ; then
27159 cat >>confdefs.h <<\_ACEOF
27160#define wxUSE_ODBC 1
27161_ACEOF
27162
27163 if test "$wxUSE_ODBC" = "builtin" ; then
27164 cat >>confdefs.h <<\_ACEOF
27165#define wxUSE_BUILTIN_IODBC 1
27166_ACEOF
27167
27168 fi
27169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27170
27171 WXODBCFLAG="-D_IODBC_"
27172 fi
27173fi
27174
27175if test "$wxUSE_REGEX" = "builtin" ; then
27176 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27177fi
27178if test "$wxUSE_ZLIB" = "builtin" ; then
27179 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27180fi
27181
01cb68df 27182
a848cd7e
SC
27183if test "$wxUSE_DISPLAY" = "yes"; then
27184 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27185 echo "$as_me:$LINENO: checking for Xinerama" >&5
27186echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27187
27188ac_find_libraries=
27189for ac_dir in $SEARCH_LIB /usr/lib;
27190 do
27191 for ac_extension in a so sl dylib; do
27192 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27193 ac_find_libraries=$ac_dir
27194 break 2
27195 fi
27196 done
27197 done
27198
27199 if test "$ac_find_libraries" != "" ; then
27200
27201 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27202 result=$?
27203 if test $result = 0; then
27204 ac_path_to_link=""
27205 else
27206 ac_path_to_link=" -L$ac_find_libraries"
27207 fi
27208
27209 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27210 LDFLAGS="$LDFLAGS $ac_path_to_link"
27211 fi
27212 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27213 echo "$as_me:$LINENO: result: yes" >&5
27214echo "${ECHO_T}yes" >&6
27215
27216 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27217echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27218
27219ac_find_libraries=
27220for ac_dir in $SEARCH_LIB /usr/lib;
27221 do
27222 for ac_extension in a so sl dylib; do
27223 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27224 ac_find_libraries=$ac_dir
27225 break 2
27226 fi
27227 done
27228 done
27229
27230 if test "$ac_find_libraries" != "" ; then
27231 echo "$as_me:$LINENO: result: yes" >&5
27232echo "${ECHO_T}yes" >&6
27233
27234for ac_header in X11/extensions/xf86vmode.h
27235do
27236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27237echo "$as_me:$LINENO: checking for $ac_header" >&5
27238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27239if eval "test \"\${$as_ac_Header+set}\" = set"; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27241else
27242 cat >conftest.$ac_ext <<_ACEOF
27243/* confdefs.h. */
27244_ACEOF
27245cat confdefs.h >>conftest.$ac_ext
27246cat >>conftest.$ac_ext <<_ACEOF
27247/* end confdefs.h. */
27248
27249 #if HAVE_X11_XLIB_H
27250 #include <X11/Xlib.h>
27251 #endif
27252
27253
27254#include <$ac_header>
27255_ACEOF
27256rm -f conftest.$ac_objext
27257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27258 (eval $ac_compile) 2>conftest.er1
27259 ac_status=$?
27260 grep -v '^ *+' conftest.er1 >conftest.err
27261 rm -f conftest.er1
27262 cat conftest.err >&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } &&
01cb68df 27265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27267 (eval $ac_try) 2>&5
27268 ac_status=$?
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); }; } &&
27271 { ac_try='test -s conftest.$ac_objext'
27272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273 (eval $ac_try) 2>&5
27274 ac_status=$?
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
27277 eval "$as_ac_Header=yes"
27278else
27279 echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282eval "$as_ac_Header=no"
27283fi
27284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27285fi
27286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27288if test `eval echo '${'$as_ac_Header'}'` = yes; then
27289 cat >>confdefs.h <<_ACEOF
27290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27291_ACEOF
27292
27293 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27294
27295fi
27296
27297done
27298
27299 else
27300 echo "$as_me:$LINENO: result: no" >&5
27301echo "${ECHO_T}no" >&6
27302 fi
27303
27304 else
27305 echo "$as_me:$LINENO: result: no" >&5
27306echo "${ECHO_T}no" >&6
27307 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27308echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27309 wxUSE_DISPLAY="no"
27310 fi
01cb68df
RG
27311 elif test "$wxUSE_MSW" = 1; then
27312
27313
27314for ac_header in multimon.h ddraw.h
27315do
27316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27317if eval "test \"\${$as_ac_Header+set}\" = set"; then
27318 echo "$as_me:$LINENO: checking for $ac_header" >&5
27319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27320if eval "test \"\${$as_ac_Header+set}\" = set"; then
27321 echo $ECHO_N "(cached) $ECHO_C" >&6
27322fi
27323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27325else
27326 # Is the header compilable?
27327echo "$as_me:$LINENO: checking $ac_header usability" >&5
27328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27329cat >conftest.$ac_ext <<_ACEOF
27330/* confdefs.h. */
27331_ACEOF
27332cat confdefs.h >>conftest.$ac_ext
27333cat >>conftest.$ac_ext <<_ACEOF
27334/* end confdefs.h. */
27335$ac_includes_default
27336#include <$ac_header>
27337_ACEOF
27338rm -f conftest.$ac_objext
27339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27340 (eval $ac_compile) 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } &&
27347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; } &&
27353 { ac_try='test -s conftest.$ac_objext'
27354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355 (eval $ac_try) 2>&5
27356 ac_status=$?
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 ac_header_compiler=yes
27360else
27361 echo "$as_me: failed program was:" >&5
27362sed 's/^/| /' conftest.$ac_ext >&5
27363
27364ac_header_compiler=no
27365fi
27366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27368echo "${ECHO_T}$ac_header_compiler" >&6
27369
27370# Is the header present?
27371echo "$as_me:$LINENO: checking $ac_header presence" >&5
27372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27373cat >conftest.$ac_ext <<_ACEOF
27374/* confdefs.h. */
27375_ACEOF
27376cat confdefs.h >>conftest.$ac_ext
27377cat >>conftest.$ac_ext <<_ACEOF
27378/* end confdefs.h. */
27379#include <$ac_header>
27380_ACEOF
27381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27383 ac_status=$?
27384 grep -v '^ *+' conftest.er1 >conftest.err
27385 rm -f conftest.er1
27386 cat conftest.err >&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } >/dev/null; then
27389 if test -s conftest.err; then
27390 ac_cpp_err=$ac_c_preproc_warn_flag
27391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27392 else
27393 ac_cpp_err=
27394 fi
27395else
27396 ac_cpp_err=yes
27397fi
27398if test -z "$ac_cpp_err"; then
27399 ac_header_preproc=yes
27400else
27401 echo "$as_me: failed program was:" >&5
27402sed 's/^/| /' conftest.$ac_ext >&5
27403
27404 ac_header_preproc=no
27405fi
27406rm -f conftest.err conftest.$ac_ext
27407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27408echo "${ECHO_T}$ac_header_preproc" >&6
27409
27410# So? What about this header?
27411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27412 yes:no: )
27413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27417 ac_header_preproc=yes
27418 ;;
27419 no:yes:* )
27420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27432 (
27433 cat <<\_ASBOX
27434## ----------------------------------------- ##
27435## Report this to wx-dev@lists.wxwindows.org ##
27436## ----------------------------------------- ##
27437_ASBOX
27438 ) |
27439 sed "s/^/$as_me: WARNING: /" >&2
27440 ;;
27441esac
27442echo "$as_me:$LINENO: checking for $ac_header" >&5
27443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27444if eval "test \"\${$as_ac_Header+set}\" = set"; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27446else
27447 eval "$as_ac_Header=\$ac_header_preproc"
27448fi
27449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27451
27452fi
27453if test `eval echo '${'$as_ac_Header'}'` = yes; then
27454 cat >>confdefs.h <<_ACEOF
27455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27456_ACEOF
27457
27458else
27459
27460 wxUSE_DISPLAY="no"
27461 { echo "$as_me:$LINENO: WARNING: \"*** ddraw.h or multimon.h not found; disabling wxDisplay\"" >&5
27462echo "$as_me: WARNING: \"*** ddraw.h or multimon.h not found; disabling wxDisplay\"" >&2;}
27463
27464fi
27465
27466done
27467
a848cd7e
SC
27468 fi
27469fi
27470
27471
27472USE_OPENGL=0
27473if test "$wxUSE_OPENGL" = "yes"; then
27474 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27475 OPENGL_LIBS="-framework OpenGL -framework AGL"
27476 elif test "$wxUSE_MSW" = 1; then
27477 OPENGL_LIBS="-lopengl32 -lglu32"
27478 else
27479
27480
27481ac_find_includes=
27482for ac_dir in $SEARCH_INCLUDE /usr/include;
27483 do
27484 if test -f "$ac_dir/GL/gl.h"; then
27485 ac_find_includes=$ac_dir
27486 break
27487 fi
27488 done
27489
27490 if test "$ac_find_includes" != "" ; then
27491 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27492echo "${ECHO_T}found in $ac_find_includes" >&6
27493
27494 if test "x$ac_find_includes" = "x/usr/include"; then
27495 ac_path_to_include=""
27496 else
27497 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27498 result=$?
27499 if test $result = 0; then
27500 ac_path_to_include=""
27501 else
27502 ac_path_to_include=" -I$ac_find_includes"
27503 fi
27504 fi
27505
27506 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27507 fi
27508
27509 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27510 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27511echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27512if test "${ac_cv_header_GL_gl_h+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27514fi
27515echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27516echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27517else
27518 # Is the header compilable?
27519echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27520echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27521cat >conftest.$ac_ext <<_ACEOF
27522/* confdefs.h. */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h. */
27527$ac_includes_default
27528#include <GL/gl.h>
27529_ACEOF
27530rm -f conftest.$ac_objext
27531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27532 (eval $ac_compile) 2>conftest.er1
27533 ac_status=$?
27534 grep -v '^ *+' conftest.er1 >conftest.err
27535 rm -f conftest.er1
27536 cat conftest.err >&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } &&
01cb68df 27539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541 (eval $ac_try) 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; } &&
27545 { ac_try='test -s conftest.$ac_objext'
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27551 ac_header_compiler=yes
27552else
27553 echo "$as_me: failed program was:" >&5
27554sed 's/^/| /' conftest.$ac_ext >&5
27555
27556ac_header_compiler=no
27557fi
27558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27560echo "${ECHO_T}$ac_header_compiler" >&6
27561
27562# Is the header present?
27563echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27564echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27565cat >conftest.$ac_ext <<_ACEOF
27566/* confdefs.h. */
27567_ACEOF
27568cat confdefs.h >>conftest.$ac_ext
27569cat >>conftest.$ac_ext <<_ACEOF
27570/* end confdefs.h. */
27571#include <GL/gl.h>
27572_ACEOF
27573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27575 ac_status=$?
27576 grep -v '^ *+' conftest.er1 >conftest.err
27577 rm -f conftest.er1
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } >/dev/null; then
27581 if test -s conftest.err; then
27582 ac_cpp_err=$ac_c_preproc_warn_flag
27583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27584 else
27585 ac_cpp_err=
27586 fi
27587else
27588 ac_cpp_err=yes
27589fi
27590if test -z "$ac_cpp_err"; then
27591 ac_header_preproc=yes
27592else
27593 echo "$as_me: failed program was:" >&5
27594sed 's/^/| /' conftest.$ac_ext >&5
27595
27596 ac_header_preproc=no
27597fi
27598rm -f conftest.err conftest.$ac_ext
27599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27600echo "${ECHO_T}$ac_header_preproc" >&6
27601
27602# So? What about this header?
27603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27604 yes:no: )
27605 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27606echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27607 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27608echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27609 ac_header_preproc=yes
27610 ;;
27611 no:yes:* )
27612 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27613echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27614 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27615echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27616 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27617echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27618 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27619echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27620 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27621echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27622 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27623echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27624 (
27625 cat <<\_ASBOX
27626## ----------------------------------------- ##
27627## Report this to wx-dev@lists.wxwindows.org ##
27628## ----------------------------------------- ##
27629_ASBOX
27630 ) |
27631 sed "s/^/$as_me: WARNING: /" >&2
27632 ;;
27633esac
27634echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27635echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27636if test "${ac_cv_header_GL_gl_h+set}" = set; then
27637 echo $ECHO_N "(cached) $ECHO_C" >&6
27638else
27639 ac_cv_header_GL_gl_h=$ac_header_preproc
27640fi
27641echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27642echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27643
27644fi
27645if test $ac_cv_header_GL_gl_h = yes; then
27646
27647 found_gl=0
27648
27649 echo "$as_me:$LINENO: checking for -lGL" >&5
27650echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27651
27652ac_find_libraries=
27653for ac_dir in $SEARCH_LIB /usr/lib;
27654 do
27655 for ac_extension in a so sl dylib; do
27656 if test -f "$ac_dir/libGL.$ac_extension"; then
27657 ac_find_libraries=$ac_dir
27658 break 2
27659 fi
27660 done
27661 done
27662
27663 if test "$ac_find_libraries" != "" ; then
27664
27665 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27666 result=$?
27667 if test $result = 0; then
27668 ac_path_to_link=""
27669 else
27670 ac_path_to_link=" -L$ac_find_libraries"
27671 fi
27672
27673 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27674 LDFLAGS_GL="$ac_path_to_link"
27675 fi
27676
27677
27678ac_find_libraries=
27679for ac_dir in $SEARCH_LIB /usr/lib;
27680 do
27681 for ac_extension in a so sl dylib; do
27682 if test -f "$ac_dir/libGLU.$ac_extension"; then
27683 ac_find_libraries=$ac_dir
27684 break 2
27685 fi
27686 done
27687 done
27688
27689 if test "$ac_find_libraries" != "" ; then
27690
27691 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27692 result=$?
27693 if test $result = 0; then
27694 ac_path_to_link=""
27695 else
27696 ac_path_to_link=" -L$ac_find_libraries"
27697 fi
27698
27699 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27700 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27701 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27702 fi
27703
27704 found_gl=1
27705 OPENGL_LIBS="-lGL -lGLU"
27706 echo "$as_me:$LINENO: result: yes" >&5
27707echo "${ECHO_T}yes" >&6
27708 fi
27709 fi
27710
27711 if test "$found_gl" != 1; then
27712 echo "$as_me:$LINENO: result: no" >&5
27713echo "${ECHO_T}no" >&6
27714 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27715echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27716
27717ac_find_libraries=
27718for ac_dir in $SEARCH_LIB /usr/lib;
27719 do
27720 for ac_extension in a so sl dylib; do
27721 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27722 ac_find_libraries=$ac_dir
27723 break 2
27724 fi
27725 done
27726 done
27727
27728 if test "$ac_find_libraries" != "" ; then
27729
27730 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27731 result=$?
27732 if test $result = 0; then
27733 ac_path_to_link=""
27734 else
27735 ac_path_to_link=" -L$ac_find_libraries"
27736 fi
27737
27738 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27739 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27740 echo "$as_me:$LINENO: result: yes" >&5
27741echo "${ECHO_T}yes" >&6
27742 else
27743 echo "$as_me:$LINENO: result: no" >&5
27744echo "${ECHO_T}no" >&6
27745 fi
27746 fi
27747
27748fi
27749
27750
27751
27752 if test "x$OPENGL_LIBS" = "x"; then
27753 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27754echo "$as_me: error: OpenGL libraries not available" >&2;}
27755 { (exit 1); exit 1; }; }
27756 fi
27757 fi
27758
27759 if test "$wxUSE_OPENGL" = "yes"; then
27760 USE_OPENGL=1
27761 cat >>confdefs.h <<\_ACEOF
27762#define wxUSE_OPENGL 1
27763_ACEOF
27764
27765 cat >>confdefs.h <<\_ACEOF
27766#define wxUSE_GLCANVAS 1
27767_ACEOF
27768
27769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27770 fi
27771fi
27772
27773if test -z "$TOOLKIT_VPATH" ; then
27774 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27775fi
27776
27777if test -n "$TOOLKIT" ; then
27778 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27779fi
27780
27781UNICODE=0
27782lib_unicode_suffix=
27783if test "$wxUSE_UNICODE" = "yes"; then
27784 lib_unicode_suffix=u
27785 UNICODE=1
27786fi
27787
27788lib_debug_suffix=
27789DEBUG_FLAG=0
27790if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27791 lib_debug_suffix=d
27792 DEBUG_FLAG=1
27793fi
27794
27795DEBUG_INFO=0
27796if test "$wxUSE_DEBUG_INFO" = "yes"; then
27797 DEBUG_INFO=1
27798fi
27799
27800WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27801
27802TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27803TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27804
27805if test "$cross_compiling" = "yes"; then
27806 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27807 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27808 HOST_SUFFIX="-${host_alias}"
27809fi
27810
27811WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27812WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27813WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27814WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27815
27816WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27817WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27818
27819WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27820WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27821WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27822WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27823
27824case "${host}" in
27825 *-*-cygwin* | *-*-mingw32* )
27826 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27827 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27828 ;;
27829
27830 *-*-darwin* )
27831
27832 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27833 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27834
27835 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27836 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27837 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27838 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27839
27840 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27841 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27842 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27843 fi
27844 ;;
27845esac
27846
27847WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27848WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27849
27850WXCONFIG_LIBS="-l${WX_LIBRARY}"
27851WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27852
27853if test "$wxUSE_OPENGL" = "yes"; then
27854 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27855 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27856fi
27857
27858
27859
27860if test "$wxUSE_SHARED" = "yes"; then
27861 case "${host}" in
27862 *-pc-msdosdjgpp )
27863 wxUSE_SHARED=no
27864 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27865echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27866 ;;
27867 esac
27868fi
27869
27870SHARED=0
27871if test "$wxUSE_SHARED" = "yes"; then
27872 SHARED=1
27873
27874
27875 found_versioning=no
27876
27877
27878 if test $found_versioning = no ; then
27879 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27880echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27881if test "${wx_cv_version_script+set}" = set; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27883else
27884
27885 echo "VER_1 { *; };" >conftest.sym
27886 echo "int main() { return 0; }" >conftest.cpp
27887
27888 if { ac_try='
27889 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27890 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892 (eval $ac_try) 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; } ; then
27896 if test -s conftest.stderr ; then
27897 wx_cv_version_script=no
27898 else
27899 wx_cv_version_script=yes
27900 fi
27901 else
27902 wx_cv_version_script=no
27903 fi
27904 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27905
27906fi
27907echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27908echo "${ECHO_T}$wx_cv_version_script" >&6
27909 if test $wx_cv_version_script = yes ; then
27910 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27911 fi
27912 fi
27913
27914
27915 case "${host}" in
27916 *-*-linux* | *-*-gnu* )
27917 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27918 ;;
27919
27920 *-*-solaris2* )
27921 if test "$GCC" = yes ; then
27922 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27923
27924 saveLdflags="$LDFLAGS"
27925 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27926 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27927echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27928 cat >conftest.$ac_ext <<_ACEOF
27929/* confdefs.h. */
27930_ACEOF
27931cat confdefs.h >>conftest.$ac_ext
27932cat >>conftest.$ac_ext <<_ACEOF
27933/* end confdefs.h. */
27934
27935int
27936main ()
27937{
27938
27939 ;
27940 return 0;
27941}
27942_ACEOF
27943rm -f conftest.$ac_objext conftest$ac_exeext
27944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27945 (eval $ac_link) 2>conftest.er1
27946 ac_status=$?
27947 grep -v '^ *+' conftest.er1 >conftest.err
27948 rm -f conftest.er1
27949 cat conftest.err >&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); } &&
01cb68df 27952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest$ac_exeext'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964
27965 echo "$as_me:$LINENO: result: yes" >&5
27966echo "${ECHO_T}yes" >&6
27967 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27968
27969else
27970 echo "$as_me: failed program was:" >&5
27971sed 's/^/| /' conftest.$ac_ext >&5
27972
27973
27974 echo "$as_me:$LINENO: result: no" >&5
27975echo "${ECHO_T}no" >&6
27976 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27977echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27978 LDFLAGS="$saveLdflags -Wl,-R,/"
27979 cat >conftest.$ac_ext <<_ACEOF
27980/* confdefs.h. */
27981_ACEOF
27982cat confdefs.h >>conftest.$ac_ext
27983cat >>conftest.$ac_ext <<_ACEOF
27984/* end confdefs.h. */
27985
27986int
27987main ()
27988{
27989
27990 ;
27991 return 0;
27992}
27993_ACEOF
27994rm -f conftest.$ac_objext conftest$ac_exeext
27995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27996 (eval $ac_link) 2>conftest.er1
27997 ac_status=$?
27998 grep -v '^ *+' conftest.er1 >conftest.err
27999 rm -f conftest.er1
28000 cat conftest.err >&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); } &&
01cb68df 28003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; } &&
28009 { ac_try='test -s conftest$ac_exeext'
28010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28011 (eval $ac_try) 2>&5
28012 ac_status=$?
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); }; }; then
28015
28016 echo "$as_me:$LINENO: result: yes" >&5
28017echo "${ECHO_T}yes" >&6
28018 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28019else
28020 echo "$as_me: failed program was:" >&5
28021sed 's/^/| /' conftest.$ac_ext >&5
28022
28023
28024 echo "$as_me:$LINENO: result: no" >&5
28025echo "${ECHO_T}no" >&6
28026
28027fi
28028rm -f conftest.err conftest.$ac_objext \
28029 conftest$ac_exeext conftest.$ac_ext
28030
28031fi
28032rm -f conftest.err conftest.$ac_objext \
28033 conftest$ac_exeext conftest.$ac_ext
28034 LDFLAGS="$saveLdflags"
28035 else
28036 SHARED_LD="${CXX} -G -o"
28037 PIC_FLAG="-KPIC"
28038 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28039 fi
28040 ;;
28041
28042 powerpc-*-darwin* )
28043 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28044 cat <<EOF >change-install-names
28045#!/bin/sh
28046libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28047inst_cmd="install_name_tool "
28048for i in \${libnames} ; do
28049 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28050done
28051\${inst_cmd} \${3}
28052EOF
28053 chmod +x change-install-names
28054 ;;
28055
28056 *-*-cygwin* | *-*-mingw32* )
28057 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28058 ;;
28059
28060 esac
28061
28062 if test "x$WX_TARGET_LIBRARY" = "x"; then
28063 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28064 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28065 fi
28066
28067 WX_TARGET_LIBRARY_TYPE="so"
28068 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28069fi
28070
28071if test "$wxUSE_SHARED" = "no"; then
28072
28073 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28074 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28075 fi
28076
28077 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28078 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28079 fi
28080
28081 if test "$wxUSE_OPENGL" = "yes"; then
28082 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28083 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28084 else
28085 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28086 fi
28087
28088 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28089 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28090
28091 WX_TARGET_LIBRARY_TYPE="a"
28092 INSTALL_LIBRARY='$(INSTALL_DATA)'
28093
28094 STATIC_FLAG="yes"
28095else
28096 STATIC_FLAG="no"
28097fi
28098
28099if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28100 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28101 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28102 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28103
28104 # Extract the first word of "Rez", so it can be a program name with args.
28105set dummy Rez; ac_word=$2
28106echo "$as_me:$LINENO: checking for $ac_word" >&5
28107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28108if test "${ac_cv_prog_RESCOMP+set}" = set; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
28110else
28111 if test -n "$RESCOMP"; then
28112 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28113else
28114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28115for as_dir in $PATH
28116do
28117 IFS=$as_save_IFS
28118 test -z "$as_dir" && as_dir=.
28119 for ac_exec_ext in '' $ac_executable_extensions; do
28120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28121 ac_cv_prog_RESCOMP="Rez"
28122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28123 break 2
28124 fi
28125done
28126done
28127
28128 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28129fi
28130fi
28131RESCOMP=$ac_cv_prog_RESCOMP
28132if test -n "$RESCOMP"; then
28133 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28134echo "${ECHO_T}$RESCOMP" >&6
28135else
28136 echo "$as_me:$LINENO: result: no" >&5
28137echo "${ECHO_T}no" >&6
28138fi
28139
28140 # Extract the first word of "DeRez", so it can be a program name with args.
28141set dummy DeRez; ac_word=$2
28142echo "$as_me:$LINENO: checking for $ac_word" >&5
28143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28144if test "${ac_cv_prog_DEREZ+set}" = set; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28146else
28147 if test -n "$DEREZ"; then
28148 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28149else
28150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28151for as_dir in $PATH
28152do
28153 IFS=$as_save_IFS
28154 test -z "$as_dir" && as_dir=.
28155 for ac_exec_ext in '' $ac_executable_extensions; do
28156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28157 ac_cv_prog_DEREZ="DeRez"
28158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28159 break 2
28160 fi
28161done
28162done
28163
28164 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28165fi
28166fi
28167DEREZ=$ac_cv_prog_DEREZ
28168if test -n "$DEREZ"; then
28169 echo "$as_me:$LINENO: result: $DEREZ" >&5
28170echo "${ECHO_T}$DEREZ" >&6
28171else
28172 echo "$as_me:$LINENO: result: no" >&5
28173echo "${ECHO_T}no" >&6
28174fi
28175
28176 # Extract the first word of "SetFile", so it can be a program name with args.
28177set dummy SetFile; ac_word=$2
28178echo "$as_me:$LINENO: checking for $ac_word" >&5
28179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28180if test "${ac_cv_prog_SETFILE+set}" = set; then
28181 echo $ECHO_N "(cached) $ECHO_C" >&6
28182else
28183 if test -n "$SETFILE"; then
28184 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28185else
28186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28187for as_dir in $PATH
28188do
28189 IFS=$as_save_IFS
28190 test -z "$as_dir" && as_dir=.
28191 for ac_exec_ext in '' $ac_executable_extensions; do
28192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28193 ac_cv_prog_SETFILE="SetFile"
28194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28195 break 2
28196 fi
28197done
28198done
28199
28200 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28201fi
28202fi
28203SETFILE=$ac_cv_prog_SETFILE
28204if test -n "$SETFILE"; then
28205 echo "$as_me:$LINENO: result: $SETFILE" >&5
28206echo "${ECHO_T}$SETFILE" >&6
28207else
28208 echo "$as_me:$LINENO: result: no" >&5
28209echo "${ECHO_T}no" >&6
28210fi
28211
28212
28213 MACSETFILE="\$(SETFILE)"
28214
28215 if test "$wxUSE_MAC" = 1; then
28216 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28217
28218 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28219 else
28220 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28221 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28222 fi
28223else
28224 MACSETFILE="@#"
28225 MACRESWXCONFIG="#"
28226
28227 if test "$wxUSE_PM" = 1; then
28228 MACRESCOMP="emxbind -ep"
28229 else
28230 MACRESCOMP="@#"
28231 fi
28232fi
28233
28234
28235
28236echo "$as_me:$LINENO: checking for mode_t" >&5
28237echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28238if test "${ac_cv_type_mode_t+set}" = set; then
28239 echo $ECHO_N "(cached) $ECHO_C" >&6
28240else
28241 cat >conftest.$ac_ext <<_ACEOF
28242/* confdefs.h. */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h. */
28247$ac_includes_default
28248int
28249main ()
28250{
28251if ((mode_t *) 0)
28252 return 0;
28253if (sizeof (mode_t))
28254 return 0;
28255 ;
28256 return 0;
28257}
28258_ACEOF
28259rm -f conftest.$ac_objext
28260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28261 (eval $ac_compile) 2>conftest.er1
28262 ac_status=$?
28263 grep -v '^ *+' conftest.er1 >conftest.err
28264 rm -f conftest.er1
28265 cat conftest.err >&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); } &&
01cb68df 28268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; } &&
28274 { ac_try='test -s conftest.$ac_objext'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 ac_cv_type_mode_t=yes
28281else
28282 echo "$as_me: failed program was:" >&5
28283sed 's/^/| /' conftest.$ac_ext >&5
28284
28285ac_cv_type_mode_t=no
28286fi
28287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28288fi
28289echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28290echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28291if test $ac_cv_type_mode_t = yes; then
28292 :
28293else
28294
28295cat >>confdefs.h <<_ACEOF
28296#define mode_t int
28297_ACEOF
28298
28299fi
28300
28301echo "$as_me:$LINENO: checking for off_t" >&5
28302echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28303if test "${ac_cv_type_off_t+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28305else
28306 cat >conftest.$ac_ext <<_ACEOF
28307/* confdefs.h. */
28308_ACEOF
28309cat confdefs.h >>conftest.$ac_ext
28310cat >>conftest.$ac_ext <<_ACEOF
28311/* end confdefs.h. */
28312$ac_includes_default
28313int
28314main ()
28315{
28316if ((off_t *) 0)
28317 return 0;
28318if (sizeof (off_t))
28319 return 0;
28320 ;
28321 return 0;
28322}
28323_ACEOF
28324rm -f conftest.$ac_objext
28325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28326 (eval $ac_compile) 2>conftest.er1
28327 ac_status=$?
28328 grep -v '^ *+' conftest.er1 >conftest.err
28329 rm -f conftest.er1
28330 cat conftest.err >&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
01cb68df 28333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 (eval $ac_try) 2>&5
28336 ac_status=$?
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; } &&
28339 { ac_try='test -s conftest.$ac_objext'
28340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341 (eval $ac_try) 2>&5
28342 ac_status=$?
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); }; }; then
28345 ac_cv_type_off_t=yes
28346else
28347 echo "$as_me: failed program was:" >&5
28348sed 's/^/| /' conftest.$ac_ext >&5
28349
28350ac_cv_type_off_t=no
28351fi
28352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28353fi
28354echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28355echo "${ECHO_T}$ac_cv_type_off_t" >&6
28356if test $ac_cv_type_off_t = yes; then
28357 :
28358else
28359
28360cat >>confdefs.h <<_ACEOF
28361#define off_t long
28362_ACEOF
28363
28364fi
28365
28366echo "$as_me:$LINENO: checking for pid_t" >&5
28367echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28368if test "${ac_cv_type_pid_t+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28370else
28371 cat >conftest.$ac_ext <<_ACEOF
28372/* confdefs.h. */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h. */
28377$ac_includes_default
28378int
28379main ()
28380{
28381if ((pid_t *) 0)
28382 return 0;
28383if (sizeof (pid_t))
28384 return 0;
28385 ;
28386 return 0;
28387}
28388_ACEOF
28389rm -f conftest.$ac_objext
28390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28391 (eval $ac_compile) 2>conftest.er1
28392 ac_status=$?
28393 grep -v '^ *+' conftest.er1 >conftest.err
28394 rm -f conftest.er1
28395 cat conftest.err >&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } &&
01cb68df 28398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28400 (eval $ac_try) 2>&5
28401 ac_status=$?
28402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); }; } &&
28404 { ac_try='test -s conftest.$ac_objext'
28405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28406 (eval $ac_try) 2>&5
28407 ac_status=$?
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; }; then
28410 ac_cv_type_pid_t=yes
28411else
28412 echo "$as_me: failed program was:" >&5
28413sed 's/^/| /' conftest.$ac_ext >&5
28414
28415ac_cv_type_pid_t=no
28416fi
28417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28418fi
28419echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28420echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28421if test $ac_cv_type_pid_t = yes; then
28422 :
28423else
28424
28425cat >>confdefs.h <<_ACEOF
28426#define pid_t int
28427_ACEOF
28428
28429fi
28430
28431echo "$as_me:$LINENO: checking for size_t" >&5
28432echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28433if test "${ac_cv_type_size_t+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h. */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h. */
28442$ac_includes_default
28443int
28444main ()
28445{
28446if ((size_t *) 0)
28447 return 0;
28448if (sizeof (size_t))
28449 return 0;
28450 ;
28451 return 0;
28452}
28453_ACEOF
28454rm -f conftest.$ac_objext
28455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28456 (eval $ac_compile) 2>conftest.er1
28457 ac_status=$?
28458 grep -v '^ *+' conftest.er1 >conftest.err
28459 rm -f conftest.er1
28460 cat conftest.err >&5
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); } &&
01cb68df 28463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28465 (eval $ac_try) 2>&5
28466 ac_status=$?
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); }; } &&
28469 { ac_try='test -s conftest.$ac_objext'
28470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471 (eval $ac_try) 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; }; then
28475 ac_cv_type_size_t=yes
28476else
28477 echo "$as_me: failed program was:" >&5
28478sed 's/^/| /' conftest.$ac_ext >&5
28479
28480ac_cv_type_size_t=no
28481fi
28482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28483fi
28484echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28485echo "${ECHO_T}$ac_cv_type_size_t" >&6
28486if test $ac_cv_type_size_t = yes; then
28487 :
28488else
28489
28490cat >>confdefs.h <<_ACEOF
28491#define size_t unsigned
28492_ACEOF
28493
28494fi
28495
28496echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28497echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28498if test "${ac_cv_type_uid_t+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500else
28501 cat >conftest.$ac_ext <<_ACEOF
28502/* confdefs.h. */
28503_ACEOF
28504cat confdefs.h >>conftest.$ac_ext
28505cat >>conftest.$ac_ext <<_ACEOF
28506/* end confdefs.h. */
28507#include <sys/types.h>
28508
28509_ACEOF
28510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28511 $EGREP "uid_t" >/dev/null 2>&1; then
28512 ac_cv_type_uid_t=yes
28513else
28514 ac_cv_type_uid_t=no
28515fi
28516rm -f conftest*
28517
28518fi
28519echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28520echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28521if test $ac_cv_type_uid_t = no; then
28522
28523cat >>confdefs.h <<\_ACEOF
28524#define uid_t int
28525_ACEOF
28526
28527
28528cat >>confdefs.h <<\_ACEOF
28529#define gid_t int
28530_ACEOF
28531
28532fi
28533
28534
28535
28536
28537ac_ext=cc
28538ac_cpp='$CXXCPP $CPPFLAGS'
28539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28542
28543echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28544echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28545if test "${wx_cv_size_t_is_uint+set}" = set; then
28546 echo $ECHO_N "(cached) $ECHO_C" >&6
28547else
28548
28549 cat >conftest.$ac_ext <<_ACEOF
28550/* confdefs.h. */
28551_ACEOF
28552cat confdefs.h >>conftest.$ac_ext
28553cat >>conftest.$ac_ext <<_ACEOF
28554/* end confdefs.h. */
28555#include <stddef.h>
28556int
28557main ()
28558{
28559
28560 return 0; }
28561
28562 struct Foo { void foo(size_t); void foo(unsigned int); };
28563
28564 int bar() {
28565
28566 ;
28567 return 0;
28568}
28569_ACEOF
28570rm -f conftest.$ac_objext
28571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28572 (eval $ac_compile) 2>conftest.er1
28573 ac_status=$?
28574 grep -v '^ *+' conftest.er1 >conftest.err
28575 rm -f conftest.er1
28576 cat conftest.err >&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } &&
01cb68df 28579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest.$ac_objext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 wx_cv_size_t_is_uint=no
28592else
28593 echo "$as_me: failed program was:" >&5
28594sed 's/^/| /' conftest.$ac_ext >&5
28595
28596wx_cv_size_t_is_uint=yes
28597
28598fi
28599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28600
28601
28602fi
28603echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28604echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28605
28606if test "$wx_cv_size_t_is_uint" = "yes"; then
28607 cat >>confdefs.h <<\_ACEOF
28608#define wxSIZE_T_IS_UINT 1
28609_ACEOF
28610
28611else
28612 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28613echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28614if test "${wx_cv_size_t_is_ulong+set}" = set; then
28615 echo $ECHO_N "(cached) $ECHO_C" >&6
28616else
28617 cat >conftest.$ac_ext <<_ACEOF
28618/* confdefs.h. */
28619_ACEOF
28620cat confdefs.h >>conftest.$ac_ext
28621cat >>conftest.$ac_ext <<_ACEOF
28622/* end confdefs.h. */
28623#include <stddef.h>
28624int
28625main ()
28626{
28627
28628 return 0; }
28629
28630 struct Foo { void foo(size_t); void foo(unsigned long); };
28631
28632 int bar() {
28633
28634 ;
28635 return 0;
28636}
28637_ACEOF
28638rm -f conftest.$ac_objext
28639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28640 (eval $ac_compile) 2>conftest.er1
28641 ac_status=$?
28642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
01cb68df 28647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; } &&
28653 { ac_try='test -s conftest.$ac_objext'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; }; then
28659 wx_cv_size_t_is_ulong=no
28660else
28661 echo "$as_me: failed program was:" >&5
28662sed 's/^/| /' conftest.$ac_ext >&5
28663
28664wx_cv_size_t_is_ulong=yes
28665
28666fi
28667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28668
28669fi
28670echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28671echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28672
28673 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28674 cat >>confdefs.h <<\_ACEOF
28675#define wxSIZE_T_IS_ULONG 1
28676_ACEOF
28677
28678 fi
28679fi
28680
28681ac_ext=c
28682ac_cpp='$CPP $CPPFLAGS'
28683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28685ac_compiler_gnu=$ac_cv_c_compiler_gnu
28686
28687
28688
28689echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28690echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28691if test "${wx_cv_struct_pw_gecos+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28693else
28694
28695 cat >conftest.$ac_ext <<_ACEOF
28696/* confdefs.h. */
28697_ACEOF
28698cat confdefs.h >>conftest.$ac_ext
28699cat >>conftest.$ac_ext <<_ACEOF
28700/* end confdefs.h. */
28701#include <pwd.h>
28702int
28703main ()
28704{
28705
28706 char *p;
28707 struct passwd *pw;
28708 p = pw->pw_gecos;
28709
28710 ;
28711 return 0;
28712}
28713_ACEOF
28714rm -f conftest.$ac_objext
28715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28716 (eval $ac_compile) 2>conftest.er1
28717 ac_status=$?
28718 grep -v '^ *+' conftest.er1 >conftest.err
28719 rm -f conftest.er1
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } &&
01cb68df 28723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725 (eval $ac_try) 2>&5
28726 ac_status=$?
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); }; } &&
28729 { ac_try='test -s conftest.$ac_objext'
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
28736 wx_cv_struct_pw_gecos=yes
28737
28738else
28739 echo "$as_me: failed program was:" >&5
28740sed 's/^/| /' conftest.$ac_ext >&5
28741
28742
28743 wx_cv_struct_pw_gecos=no
28744
28745
28746fi
28747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28748
28749
28750fi
28751echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28752echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28753
28754if test "$wx_cv_struct_pw_gecos" = "yes"; then
28755 cat >>confdefs.h <<\_ACEOF
28756#define HAVE_PW_GECOS 1
28757_ACEOF
28758
28759fi
28760
28761
28762if test "$wx_cv_sizeof_wchar_t" != "0"; then
28763 cat >>confdefs.h <<\_ACEOF
28764#define wxUSE_WCHAR_T 1
28765_ACEOF
28766
28767
28768 WCSLEN_FOUND=0
28769 WCHAR_LINK=
28770
28771for ac_func in wcslen
28772do
28773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28774echo "$as_me:$LINENO: checking for $ac_func" >&5
28775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28776if eval "test \"\${$as_ac_var+set}\" = set"; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28778else
28779 cat >conftest.$ac_ext <<_ACEOF
28780/* confdefs.h. */
28781_ACEOF
28782cat confdefs.h >>conftest.$ac_ext
28783cat >>conftest.$ac_ext <<_ACEOF
28784/* end confdefs.h. */
28785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28787#define $ac_func innocuous_$ac_func
28788
28789/* System header to define __stub macros and hopefully few prototypes,
28790 which can conflict with char $ac_func (); below.
28791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28792 <limits.h> exists even on freestanding compilers. */
28793
28794#ifdef __STDC__
28795# include <limits.h>
28796#else
28797# include <assert.h>
28798#endif
28799
28800#undef $ac_func
28801
28802/* Override any gcc2 internal prototype to avoid an error. */
28803#ifdef __cplusplus
28804extern "C"
28805{
28806#endif
28807/* We use char because int might match the return type of a gcc2
28808 builtin and then its argument prototype would still apply. */
28809char $ac_func ();
28810/* The GNU C library defines this for functions which it implements
28811 to always fail with ENOSYS. Some functions are actually named
28812 something starting with __ and the normal name is an alias. */
28813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28814choke me
28815#else
28816char (*f) () = $ac_func;
28817#endif
28818#ifdef __cplusplus
28819}
28820#endif
28821
28822int
28823main ()
28824{
28825return f != $ac_func;
28826 ;
28827 return 0;
28828}
28829_ACEOF
28830rm -f conftest.$ac_objext conftest$ac_exeext
28831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28832 (eval $ac_link) 2>conftest.er1
28833 ac_status=$?
28834 grep -v '^ *+' conftest.er1 >conftest.err
28835 rm -f conftest.er1
28836 cat conftest.err >&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } &&
01cb68df 28839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841 (eval $ac_try) 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; } &&
28845 { ac_try='test -s conftest$ac_exeext'
28846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847 (eval $ac_try) 2>&5
28848 ac_status=$?
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
28851 eval "$as_ac_var=yes"
28852else
28853 echo "$as_me: failed program was:" >&5
28854sed 's/^/| /' conftest.$ac_ext >&5
28855
28856eval "$as_ac_var=no"
28857fi
28858rm -f conftest.err conftest.$ac_objext \
28859 conftest$ac_exeext conftest.$ac_ext
28860fi
28861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28863if test `eval echo '${'$as_ac_var'}'` = yes; then
28864 cat >>confdefs.h <<_ACEOF
28865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28866_ACEOF
28867 WCSLEN_FOUND=1
28868fi
28869done
28870
28871
28872 if test "$WCSLEN_FOUND" = 0; then
28873 if test "$TOOLKIT" = "MSW"; then
28874 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28875echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28876if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28878else
28879 ac_check_lib_save_LIBS=$LIBS
28880LIBS="-lmsvcrt $LIBS"
28881cat >conftest.$ac_ext <<_ACEOF
28882/* confdefs.h. */
28883_ACEOF
28884cat confdefs.h >>conftest.$ac_ext
28885cat >>conftest.$ac_ext <<_ACEOF
28886/* end confdefs.h. */
28887
28888/* Override any gcc2 internal prototype to avoid an error. */
28889#ifdef __cplusplus
28890extern "C"
28891#endif
28892/* We use char because int might match the return type of a gcc2
28893 builtin and then its argument prototype would still apply. */
28894char wcslen ();
28895int
28896main ()
28897{
28898wcslen ();
28899 ;
28900 return 0;
28901}
28902_ACEOF
28903rm -f conftest.$ac_objext conftest$ac_exeext
28904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28905 (eval $ac_link) 2>conftest.er1
28906 ac_status=$?
28907 grep -v '^ *+' conftest.er1 >conftest.err
28908 rm -f conftest.er1
28909 cat conftest.err >&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); } &&
01cb68df 28912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); }; } &&
28918 { ac_try='test -s conftest$ac_exeext'
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; }; then
28924 ac_cv_lib_msvcrt_wcslen=yes
28925else
28926 echo "$as_me: failed program was:" >&5
28927sed 's/^/| /' conftest.$ac_ext >&5
28928
28929ac_cv_lib_msvcrt_wcslen=no
28930fi
28931rm -f conftest.err conftest.$ac_objext \
28932 conftest$ac_exeext conftest.$ac_ext
28933LIBS=$ac_check_lib_save_LIBS
28934fi
28935echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28936echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28937if test $ac_cv_lib_msvcrt_wcslen = yes; then
28938 WCHAR_OK=1
28939fi
28940
28941 else
28942 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28943echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28944if test "${ac_cv_lib_w_wcslen+set}" = set; then
28945 echo $ECHO_N "(cached) $ECHO_C" >&6
28946else
28947 ac_check_lib_save_LIBS=$LIBS
28948LIBS="-lw $LIBS"
28949cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955
28956/* Override any gcc2 internal prototype to avoid an error. */
28957#ifdef __cplusplus
28958extern "C"
28959#endif
28960/* We use char because int might match the return type of a gcc2
28961 builtin and then its argument prototype would still apply. */
28962char wcslen ();
28963int
28964main ()
28965{
28966wcslen ();
28967 ;
28968 return 0;
28969}
28970_ACEOF
28971rm -f conftest.$ac_objext conftest$ac_exeext
28972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28973 (eval $ac_link) 2>conftest.er1
28974 ac_status=$?
28975 grep -v '^ *+' conftest.er1 >conftest.err
28976 rm -f conftest.er1
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } &&
01cb68df 28980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; } &&
28986 { ac_try='test -s conftest$ac_exeext'
28987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; }; then
28992 ac_cv_lib_w_wcslen=yes
28993else
28994 echo "$as_me: failed program was:" >&5
28995sed 's/^/| /' conftest.$ac_ext >&5
28996
28997ac_cv_lib_w_wcslen=no
28998fi
28999rm -f conftest.err conftest.$ac_objext \
29000 conftest$ac_exeext conftest.$ac_ext
29001LIBS=$ac_check_lib_save_LIBS
29002fi
29003echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29004echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29005if test $ac_cv_lib_w_wcslen = yes; then
29006
29007 WCHAR_LINK=" -lw"
29008 WCSLEN_FOUND=1
29009
29010fi
29011
29012 fi
29013 fi
29014
29015 if test "$WCSLEN_FOUND" = 1; then
29016 cat >>confdefs.h <<\_ACEOF
29017#define HAVE_WCSLEN 1
29018_ACEOF
29019
29020 fi
29021
473276a9
VS
29022 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29023 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29024 fi
29025
a848cd7e
SC
29026
29027for ac_func in wcsrtombs
29028do
29029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29030echo "$as_me:$LINENO: checking for $ac_func" >&5
29031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29032if eval "test \"\${$as_ac_var+set}\" = set"; then
29033 echo $ECHO_N "(cached) $ECHO_C" >&6
29034else
29035 cat >conftest.$ac_ext <<_ACEOF
29036/* confdefs.h. */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h. */
29041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29043#define $ac_func innocuous_$ac_func
29044
29045/* System header to define __stub macros and hopefully few prototypes,
29046 which can conflict with char $ac_func (); below.
29047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29048 <limits.h> exists even on freestanding compilers. */
29049
29050#ifdef __STDC__
29051# include <limits.h>
29052#else
29053# include <assert.h>
29054#endif
29055
29056#undef $ac_func
29057
29058/* Override any gcc2 internal prototype to avoid an error. */
29059#ifdef __cplusplus
29060extern "C"
29061{
29062#endif
29063/* We use char because int might match the return type of a gcc2
29064 builtin and then its argument prototype would still apply. */
29065char $ac_func ();
29066/* The GNU C library defines this for functions which it implements
29067 to always fail with ENOSYS. Some functions are actually named
29068 something starting with __ and the normal name is an alias. */
29069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29070choke me
29071#else
29072char (*f) () = $ac_func;
29073#endif
29074#ifdef __cplusplus
29075}
29076#endif
29077
29078int
29079main ()
29080{
29081return f != $ac_func;
29082 ;
29083 return 0;
29084}
29085_ACEOF
29086rm -f conftest.$ac_objext conftest$ac_exeext
29087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29088 (eval $ac_link) 2>conftest.er1
29089 ac_status=$?
29090 grep -v '^ *+' conftest.er1 >conftest.err
29091 rm -f conftest.er1
29092 cat conftest.err >&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
01cb68df 29095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest$ac_exeext'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 eval "$as_ac_var=yes"
29108else
29109 echo "$as_me: failed program was:" >&5
29110sed 's/^/| /' conftest.$ac_ext >&5
29111
29112eval "$as_ac_var=no"
29113fi
29114rm -f conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
29116fi
29117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29119if test `eval echo '${'$as_ac_var'}'` = yes; then
29120 cat >>confdefs.h <<_ACEOF
29121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29122_ACEOF
29123
29124fi
29125done
29126
29127else
29128 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29129echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29130fi
29131
29132
29133
29134ac_ext=cc
29135ac_cpp='$CXXCPP $CPPFLAGS'
29136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29139
29140
29141
29142for ac_func in vsnprintf
29143do
29144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29145echo "$as_me:$LINENO: checking for $ac_func" >&5
29146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29147if eval "test \"\${$as_ac_var+set}\" = set"; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149else
29150 cat >conftest.$ac_ext <<_ACEOF
29151/* confdefs.h. */
29152_ACEOF
29153cat confdefs.h >>conftest.$ac_ext
29154cat >>conftest.$ac_ext <<_ACEOF
29155/* end confdefs.h. */
29156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29158#define $ac_func innocuous_$ac_func
29159
29160/* System header to define __stub macros and hopefully few prototypes,
29161 which can conflict with char $ac_func (); below.
29162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29163 <limits.h> exists even on freestanding compilers. */
29164
29165#ifdef __STDC__
29166# include <limits.h>
29167#else
29168# include <assert.h>
29169#endif
29170
29171#undef $ac_func
29172
29173/* Override any gcc2 internal prototype to avoid an error. */
29174#ifdef __cplusplus
29175extern "C"
29176{
29177#endif
29178/* We use char because int might match the return type of a gcc2
29179 builtin and then its argument prototype would still apply. */
29180char $ac_func ();
29181/* The GNU C library defines this for functions which it implements
29182 to always fail with ENOSYS. Some functions are actually named
29183 something starting with __ and the normal name is an alias. */
29184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29185choke me
29186#else
29187char (*f) () = $ac_func;
29188#endif
29189#ifdef __cplusplus
29190}
29191#endif
29192
29193int
29194main ()
29195{
29196return f != $ac_func;
29197 ;
29198 return 0;
29199}
29200_ACEOF
29201rm -f conftest.$ac_objext conftest$ac_exeext
29202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29203 (eval $ac_link) 2>conftest.er1
29204 ac_status=$?
29205 grep -v '^ *+' conftest.er1 >conftest.err
29206 rm -f conftest.er1
29207 cat conftest.err >&5
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); } &&
01cb68df 29210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212 (eval $ac_try) 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; } &&
29216 { ac_try='test -s conftest$ac_exeext'
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29219 ac_status=$?
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; }; then
29222 eval "$as_ac_var=yes"
29223else
29224 echo "$as_me: failed program was:" >&5
29225sed 's/^/| /' conftest.$ac_ext >&5
29226
29227eval "$as_ac_var=no"
29228fi
29229rm -f conftest.err conftest.$ac_objext \
29230 conftest$ac_exeext conftest.$ac_ext
29231fi
29232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29233echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29234if test `eval echo '${'$as_ac_var'}'` = yes; then
29235 cat >>confdefs.h <<_ACEOF
29236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29237_ACEOF
29238
29239fi
29240done
29241
29242
29243if test "$ac_cv_func_vsnprintf" = "yes"; then
29244 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29245echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29246if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248else
29249
29250 cat >conftest.$ac_ext <<_ACEOF
29251/* confdefs.h. */
29252_ACEOF
29253cat confdefs.h >>conftest.$ac_ext
29254cat >>conftest.$ac_ext <<_ACEOF
29255/* end confdefs.h. */
29256
29257 #include <stdio.h>
29258 #include <stdarg.h>
29259
29260int
29261main ()
29262{
29263
29264 char *buf;
29265 va_list ap;
29266 vsnprintf(buf, 10u, "%s", ap);
29267
29268 ;
29269 return 0;
29270}
29271_ACEOF
29272rm -f conftest.$ac_objext
29273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29274 (eval $ac_compile) 2>conftest.er1
29275 ac_status=$?
29276 grep -v '^ *+' conftest.er1 >conftest.err
29277 rm -f conftest.er1
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } &&
01cb68df 29281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29283 (eval $ac_try) 2>&5
29284 ac_status=$?
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); }; } &&
29287 { ac_try='test -s conftest.$ac_objext'
29288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); }; }; then
29293 wx_cv_func_vsnprintf_decl=yes
29294else
29295 echo "$as_me: failed program was:" >&5
29296sed 's/^/| /' conftest.$ac_ext >&5
29297
29298wx_cv_func_vsnprintf_decl=no
29299
29300fi
29301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29302
29303
29304fi
29305echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29306echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29307
29308 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29309 cat >>confdefs.h <<\_ACEOF
29310#define HAVE_VSNPRINTF_DECL 1
29311_ACEOF
29312
29313 fi
29314fi
29315
29316if test "$wxUSE_UNICODE" = yes; then
29317
29318
29319
29320for ac_func in fputwc wprintf vswprintf
29321do
29322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29323echo "$as_me:$LINENO: checking for $ac_func" >&5
29324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29325if eval "test \"\${$as_ac_var+set}\" = set"; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29327else
29328 cat >conftest.$ac_ext <<_ACEOF
29329/* confdefs.h. */
29330_ACEOF
29331cat confdefs.h >>conftest.$ac_ext
29332cat >>conftest.$ac_ext <<_ACEOF
29333/* end confdefs.h. */
29334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29336#define $ac_func innocuous_$ac_func
29337
29338/* System header to define __stub macros and hopefully few prototypes,
29339 which can conflict with char $ac_func (); below.
29340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29341 <limits.h> exists even on freestanding compilers. */
29342
29343#ifdef __STDC__
29344# include <limits.h>
29345#else
29346# include <assert.h>
29347#endif
29348
29349#undef $ac_func
29350
29351/* Override any gcc2 internal prototype to avoid an error. */
29352#ifdef __cplusplus
29353extern "C"
29354{
29355#endif
29356/* We use char because int might match the return type of a gcc2
29357 builtin and then its argument prototype would still apply. */
29358char $ac_func ();
29359/* The GNU C library defines this for functions which it implements
29360 to always fail with ENOSYS. Some functions are actually named
29361 something starting with __ and the normal name is an alias. */
29362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29363choke me
29364#else
29365char (*f) () = $ac_func;
29366#endif
29367#ifdef __cplusplus
29368}
29369#endif
29370
29371int
29372main ()
29373{
29374return f != $ac_func;
29375 ;
29376 return 0;
29377}
29378_ACEOF
29379rm -f conftest.$ac_objext conftest$ac_exeext
29380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29381 (eval $ac_link) 2>conftest.er1
29382 ac_status=$?
29383 grep -v '^ *+' conftest.er1 >conftest.err
29384 rm -f conftest.er1
29385 cat conftest.err >&5
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); } &&
01cb68df 29388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29390 (eval $ac_try) 2>&5
29391 ac_status=$?
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); }; } &&
29394 { ac_try='test -s conftest$ac_exeext'
29395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396 (eval $ac_try) 2>&5
29397 ac_status=$?
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; }; then
29400 eval "$as_ac_var=yes"
29401else
29402 echo "$as_me: failed program was:" >&5
29403sed 's/^/| /' conftest.$ac_ext >&5
29404
29405eval "$as_ac_var=no"
29406fi
29407rm -f conftest.err conftest.$ac_objext \
29408 conftest$ac_exeext conftest.$ac_ext
29409fi
29410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29412if test `eval echo '${'$as_ac_var'}'` = yes; then
29413 cat >>confdefs.h <<_ACEOF
29414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29415_ACEOF
29416
29417fi
29418done
29419
29420
29421 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29422echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29423 cat >conftest.$ac_ext <<_ACEOF
29424/* confdefs.h. */
29425_ACEOF
29426cat confdefs.h >>conftest.$ac_ext
29427cat >>conftest.$ac_ext <<_ACEOF
29428/* end confdefs.h. */
29429#include <wchar.h>
29430int
29431main ()
29432{
29433&_vsnwprintf;
29434 ;
29435 return 0;
29436}
29437_ACEOF
29438rm -f conftest.$ac_objext
29439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29440 (eval $ac_compile) 2>conftest.er1
29441 ac_status=$?
29442 grep -v '^ *+' conftest.er1 >conftest.err
29443 rm -f conftest.er1
29444 cat conftest.err >&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
01cb68df 29447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29449 (eval $ac_try) 2>&5
29450 ac_status=$?
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); }; } &&
29453 { ac_try='test -s conftest.$ac_objext'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29456 ac_status=$?
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; }; then
29459 echo "$as_me:$LINENO: result: yes" >&5
29460echo "${ECHO_T}yes" >&6
29461 cat >>confdefs.h <<\_ACEOF
29462#define HAVE__VSNWPRINTF 1
29463_ACEOF
29464
29465else
29466 echo "$as_me: failed program was:" >&5
29467sed 's/^/| /' conftest.$ac_ext >&5
29468
29469echo "$as_me:$LINENO: result: no" >&5
29470echo "${ECHO_T}no" >&6
29471fi
29472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29473fi
29474
29475ac_ext=c
29476ac_cpp='$CPP $CPPFLAGS'
29477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29479ac_compiler_gnu=$ac_cv_c_compiler_gnu
29480
29481
29482
29483
29484if test "$TOOLKIT" != "MSW"; then
29485
29486
29487
29488
29489ac_ext=cc
29490ac_cpp='$CXXCPP $CPPFLAGS'
29491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29494
29495
29496
29497
29498# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29499if test "${with_libiconv_prefix+set}" = set; then
29500 withval="$with_libiconv_prefix"
29501
29502 for dir in `echo "$withval" | tr : ' '`; do
29503 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29504 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29505 done
29506
29507fi;
29508
29509 echo "$as_me:$LINENO: checking for iconv" >&5
29510echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29511if test "${am_cv_func_iconv+set}" = set; then
29512 echo $ECHO_N "(cached) $ECHO_C" >&6
29513else
29514
29515 am_cv_func_iconv="no, consider installing GNU libiconv"
29516 am_cv_lib_iconv=no
29517 cat >conftest.$ac_ext <<_ACEOF
29518/* confdefs.h. */
29519_ACEOF
29520cat confdefs.h >>conftest.$ac_ext
29521cat >>conftest.$ac_ext <<_ACEOF
29522/* end confdefs.h. */
29523#include <stdlib.h>
29524#include <iconv.h>
29525int
29526main ()
29527{
29528iconv_t cd = iconv_open("","");
29529 iconv(cd,NULL,NULL,NULL,NULL);
29530 iconv_close(cd);
29531 ;
29532 return 0;
29533}
29534_ACEOF
29535rm -f conftest.$ac_objext conftest$ac_exeext
29536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29537 (eval $ac_link) 2>conftest.er1
29538 ac_status=$?
29539 grep -v '^ *+' conftest.er1 >conftest.err
29540 rm -f conftest.er1
29541 cat conftest.err >&5
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); } &&
01cb68df 29544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29547 ac_status=$?
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; } &&
29550 { ac_try='test -s conftest$ac_exeext'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; }; then
29556 am_cv_func_iconv=yes
29557else
29558 echo "$as_me: failed program was:" >&5
29559sed 's/^/| /' conftest.$ac_ext >&5
29560
29561fi
29562rm -f conftest.err conftest.$ac_objext \
29563 conftest$ac_exeext conftest.$ac_ext
29564 if test "$am_cv_func_iconv" != yes; then
29565 am_save_LIBS="$LIBS"
29566 LIBS="$LIBS -liconv"
29567 cat >conftest.$ac_ext <<_ACEOF
29568/* confdefs.h. */
29569_ACEOF
29570cat confdefs.h >>conftest.$ac_ext
29571cat >>conftest.$ac_ext <<_ACEOF
29572/* end confdefs.h. */
29573#include <stdlib.h>
29574#include <iconv.h>
29575int
29576main ()
29577{
29578iconv_t cd = iconv_open("","");
29579 iconv(cd,NULL,NULL,NULL,NULL);
29580 iconv_close(cd);
29581 ;
29582 return 0;
29583}
29584_ACEOF
29585rm -f conftest.$ac_objext conftest$ac_exeext
29586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29587 (eval $ac_link) 2>conftest.er1
29588 ac_status=$?
29589 grep -v '^ *+' conftest.er1 >conftest.err
29590 rm -f conftest.er1
29591 cat conftest.err >&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); } &&
01cb68df 29594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29596 (eval $ac_try) 2>&5
29597 ac_status=$?
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; } &&
29600 { ac_try='test -s conftest$ac_exeext'
29601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29602 (eval $ac_try) 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; }; then
29606 am_cv_lib_iconv=yes
29607 am_cv_func_iconv=yes
29608else
29609 echo "$as_me: failed program was:" >&5
29610sed 's/^/| /' conftest.$ac_ext >&5
29611
29612fi
29613rm -f conftest.err conftest.$ac_objext \
29614 conftest$ac_exeext conftest.$ac_ext
29615 LIBS="$am_save_LIBS"
29616 fi
29617
29618fi
29619echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29620echo "${ECHO_T}$am_cv_func_iconv" >&6
29621 if test "$am_cv_func_iconv" = yes; then
29622
29623cat >>confdefs.h <<\_ACEOF
29624#define HAVE_ICONV 1
29625_ACEOF
29626
29627 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29628echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29629if test "${wx_cv_func_iconv_const+set}" = set; then
29630 echo $ECHO_N "(cached) $ECHO_C" >&6
29631else
29632 cat >conftest.$ac_ext <<_ACEOF
29633/* confdefs.h. */
29634_ACEOF
29635cat confdefs.h >>conftest.$ac_ext
29636cat >>conftest.$ac_ext <<_ACEOF
29637/* end confdefs.h. */
29638
29639#include <stdlib.h>
29640#include <iconv.h>
29641extern
29642#ifdef __cplusplus
29643"C"
29644#endif
29645#if defined(__STDC__) || defined(__cplusplus)
29646size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29647#else
29648size_t iconv();
29649#endif
29650
29651int
29652main ()
29653{
29654
29655 ;
29656 return 0;
29657}
29658_ACEOF
29659rm -f conftest.$ac_objext
29660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29661 (eval $ac_compile) 2>conftest.er1
29662 ac_status=$?
29663 grep -v '^ *+' conftest.er1 >conftest.err
29664 rm -f conftest.er1
29665 cat conftest.err >&5
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); } &&
01cb68df 29668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest.$ac_objext'
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; }; then
29680 wx_cv_func_iconv_const="no"
29681else
29682 echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
29685wx_cv_func_iconv_const="yes"
29686
29687fi
29688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29689
29690fi
29691echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29692echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29693
29694 iconv_const=
29695 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29696 iconv_const="const"
29697 fi
29698
29699
29700cat >>confdefs.h <<_ACEOF
29701#define ICONV_CONST $iconv_const
29702_ACEOF
29703
29704 fi
29705 LIBICONV=
29706 if test "$am_cv_lib_iconv" = yes; then
29707 LIBICONV="-liconv"
29708 fi
29709
29710
29711LIBS="$LIBICONV $LIBS"
29712ac_ext=c
29713ac_cpp='$CPP $CPPFLAGS'
29714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29716ac_compiler_gnu=$ac_cv_c_compiler_gnu
29717
29718
29719if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29720
29721for ac_func in sigaction
29722do
29723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29724echo "$as_me:$LINENO: checking for $ac_func" >&5
29725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29726if eval "test \"\${$as_ac_var+set}\" = set"; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728else
29729 cat >conftest.$ac_ext <<_ACEOF
29730/* confdefs.h. */
29731_ACEOF
29732cat confdefs.h >>conftest.$ac_ext
29733cat >>conftest.$ac_ext <<_ACEOF
29734/* end confdefs.h. */
29735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29737#define $ac_func innocuous_$ac_func
29738
29739/* System header to define __stub macros and hopefully few prototypes,
29740 which can conflict with char $ac_func (); below.
29741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29742 <limits.h> exists even on freestanding compilers. */
29743
29744#ifdef __STDC__
29745# include <limits.h>
29746#else
29747# include <assert.h>
29748#endif
29749
29750#undef $ac_func
29751
29752/* Override any gcc2 internal prototype to avoid an error. */
29753#ifdef __cplusplus
29754extern "C"
29755{
29756#endif
29757/* We use char because int might match the return type of a gcc2
29758 builtin and then its argument prototype would still apply. */
29759char $ac_func ();
29760/* The GNU C library defines this for functions which it implements
29761 to always fail with ENOSYS. Some functions are actually named
29762 something starting with __ and the normal name is an alias. */
29763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29764choke me
29765#else
29766char (*f) () = $ac_func;
29767#endif
29768#ifdef __cplusplus
29769}
29770#endif
29771
29772int
29773main ()
29774{
29775return f != $ac_func;
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext conftest$ac_exeext
29781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29782 (eval $ac_link) 2>conftest.er1
29783 ac_status=$?
29784 grep -v '^ *+' conftest.er1 >conftest.err
29785 rm -f conftest.er1
29786 cat conftest.err >&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } &&
01cb68df 29789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; } &&
29795 { ac_try='test -s conftest$ac_exeext'
29796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797 (eval $ac_try) 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801 eval "$as_ac_var=yes"
29802else
29803 echo "$as_me: failed program was:" >&5
29804sed 's/^/| /' conftest.$ac_ext >&5
29805
29806eval "$as_ac_var=no"
29807fi
29808rm -f conftest.err conftest.$ac_objext \
29809 conftest$ac_exeext conftest.$ac_ext
29810fi
29811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29813if test `eval echo '${'$as_ac_var'}'` = yes; then
29814 cat >>confdefs.h <<_ACEOF
29815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29816_ACEOF
29817
29818fi
29819done
29820
29821
29822 if test "$ac_cv_func_sigaction" = "no"; then
29823 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29824echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29825 wxUSE_ON_FATAL_EXCEPTION=no
29826 fi
29827
29828 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29829
29830
29831 ac_ext=cc
29832ac_cpp='$CXXCPP $CPPFLAGS'
29833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29836
29837
29838 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29839echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29840if test "${wx_cv_type_sa_handler+set}" = set; then
29841 echo $ECHO_N "(cached) $ECHO_C" >&6
29842else
29843
29844 cat >conftest.$ac_ext <<_ACEOF
29845/* confdefs.h. */
29846_ACEOF
29847cat confdefs.h >>conftest.$ac_ext
29848cat >>conftest.$ac_ext <<_ACEOF
29849/* end confdefs.h. */
29850#include <signal.h>
29851int
29852main ()
29853{
29854
29855 extern void testSigHandler(int);
29856
29857 struct sigaction sa;
29858 sa.sa_handler = testSigHandler;
29859
29860 ;
29861 return 0;
29862}
29863_ACEOF
29864rm -f conftest.$ac_objext
29865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29866 (eval $ac_compile) 2>conftest.er1
29867 ac_status=$?
29868 grep -v '^ *+' conftest.er1 >conftest.err
29869 rm -f conftest.er1
29870 cat conftest.err >&5
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); } &&
01cb68df 29873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29875 (eval $ac_try) 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest.$ac_objext'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }; then
29885
29886 wx_cv_type_sa_handler=int
29887
29888else
29889 echo "$as_me: failed program was:" >&5
29890sed 's/^/| /' conftest.$ac_ext >&5
29891
29892
29893 wx_cv_type_sa_handler=void
29894
29895fi
29896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29897
29898fi
29899echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29900echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29901
29902 ac_ext=c
29903ac_cpp='$CPP $CPPFLAGS'
29904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29906ac_compiler_gnu=$ac_cv_c_compiler_gnu
29907
29908
29909 cat >>confdefs.h <<_ACEOF
29910#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29911_ACEOF
29912
29913 fi
29914fi
29915
29916
29917
29918for ac_func in mkstemp mktemp
29919do
29920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29921echo "$as_me:$LINENO: checking for $ac_func" >&5
29922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29923if eval "test \"\${$as_ac_var+set}\" = set"; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
29926 cat >conftest.$ac_ext <<_ACEOF
29927/* confdefs.h. */
29928_ACEOF
29929cat confdefs.h >>conftest.$ac_ext
29930cat >>conftest.$ac_ext <<_ACEOF
29931/* end confdefs.h. */
29932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29934#define $ac_func innocuous_$ac_func
29935
29936/* System header to define __stub macros and hopefully few prototypes,
29937 which can conflict with char $ac_func (); below.
29938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29939 <limits.h> exists even on freestanding compilers. */
29940
29941#ifdef __STDC__
29942# include <limits.h>
29943#else
29944# include <assert.h>
29945#endif
29946
29947#undef $ac_func
29948
29949/* Override any gcc2 internal prototype to avoid an error. */
29950#ifdef __cplusplus
29951extern "C"
29952{
29953#endif
29954/* We use char because int might match the return type of a gcc2
29955 builtin and then its argument prototype would still apply. */
29956char $ac_func ();
29957/* The GNU C library defines this for functions which it implements
29958 to always fail with ENOSYS. Some functions are actually named
29959 something starting with __ and the normal name is an alias. */
29960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29961choke me
29962#else
29963char (*f) () = $ac_func;
29964#endif
29965#ifdef __cplusplus
29966}
29967#endif
29968
29969int
29970main ()
29971{
29972return f != $ac_func;
29973 ;
29974 return 0;
29975}
29976_ACEOF
29977rm -f conftest.$ac_objext conftest$ac_exeext
29978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29979 (eval $ac_link) 2>conftest.er1
29980 ac_status=$?
29981 grep -v '^ *+' conftest.er1 >conftest.err
29982 rm -f conftest.er1
29983 cat conftest.err >&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } &&
01cb68df 29986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; } &&
29992 { ac_try='test -s conftest$ac_exeext'
29993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29994 (eval $ac_try) 2>&5
29995 ac_status=$?
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); }; }; then
29998 eval "$as_ac_var=yes"
29999else
30000 echo "$as_me: failed program was:" >&5
30001sed 's/^/| /' conftest.$ac_ext >&5
30002
30003eval "$as_ac_var=no"
30004fi
30005rm -f conftest.err conftest.$ac_objext \
30006 conftest$ac_exeext conftest.$ac_ext
30007fi
30008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30010if test `eval echo '${'$as_ac_var'}'` = yes; then
30011 cat >>confdefs.h <<_ACEOF
30012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30013_ACEOF
30014 break
30015fi
30016done
30017
30018
30019echo "$as_me:$LINENO: checking for statfs" >&5
30020echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30021if test "${wx_cv_func_statfs+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30023else
30024 cat >conftest.$ac_ext <<_ACEOF
30025/* confdefs.h. */
30026_ACEOF
30027cat confdefs.h >>conftest.$ac_ext
30028cat >>conftest.$ac_ext <<_ACEOF
30029/* end confdefs.h. */
30030
30031 #if defined(__BSD__)
30032 #include <sys/param.h>
30033 #include <sys/mount.h>
30034 #else
30035 #include <sys/vfs.h>
30036 #endif
30037
30038int
30039main ()
30040{
30041
30042 long l;
30043 struct statfs fs;
30044 statfs("/", &fs);
30045 l = fs.f_bsize;
30046 l += fs.f_blocks;
30047 l += fs.f_bavail;
30048
30049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest.$ac_objext
30054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30055 (eval $ac_compile) 2>conftest.er1
30056 ac_status=$?
30057 grep -v '^ *+' conftest.er1 >conftest.err
30058 rm -f conftest.er1
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
01cb68df 30062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30064 (eval $ac_try) 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='test -s conftest.$ac_objext'
30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074
30075 wx_cv_func_statfs=yes
30076
30077else
30078 echo "$as_me: failed program was:" >&5
30079sed 's/^/| /' conftest.$ac_ext >&5
30080
30081
30082 wx_cv_func_statfs=no
30083
30084
30085fi
30086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30087
30088fi
30089echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30090echo "${ECHO_T}$wx_cv_func_statfs" >&6
30091
30092if test "$wx_cv_func_statfs" = "yes"; then
30093 wx_cv_type_statvfs_t="struct statfs"
30094 cat >>confdefs.h <<\_ACEOF
30095#define HAVE_STATFS 1
30096_ACEOF
30097
30098else
30099 echo "$as_me:$LINENO: checking for statvfs" >&5
30100echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30101if test "${wx_cv_func_statvfs+set}" = set; then
30102 echo $ECHO_N "(cached) $ECHO_C" >&6
30103else
30104 cat >conftest.$ac_ext <<_ACEOF
30105/* confdefs.h. */
30106_ACEOF
30107cat confdefs.h >>conftest.$ac_ext
30108cat >>conftest.$ac_ext <<_ACEOF
30109/* end confdefs.h. */
30110
30111 #include <stddef.h>
30112 #include <sys/statvfs.h>
30113
30114int
30115main ()
30116{
30117
30118 statvfs("/", NULL);
30119
30120 ;
30121 return 0;
30122}
30123_ACEOF
30124rm -f conftest.$ac_objext
30125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30126 (eval $ac_compile) 2>conftest.er1
30127 ac_status=$?
30128 grep -v '^ *+' conftest.er1 >conftest.err
30129 rm -f conftest.er1
30130 cat conftest.err >&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); } &&
01cb68df 30133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; } &&
30139 { ac_try='test -s conftest.$ac_objext'
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 wx_cv_func_statvfs=yes
30146else
30147 echo "$as_me: failed program was:" >&5
30148sed 's/^/| /' conftest.$ac_ext >&5
30149
30150wx_cv_func_statvfs=no
30151
30152fi
30153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30154
30155fi
30156echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30157echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30158
30159 if test "$wx_cv_func_statvfs" = "yes"; then
30160
30161
30162 ac_ext=cc
30163ac_cpp='$CXXCPP $CPPFLAGS'
30164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30167
30168
30169 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30170echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30171if test "${wx_cv_type_statvfs_t+set}" = set; then
30172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173else
30174 cat >conftest.$ac_ext <<_ACEOF
30175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
30180
30181 #include <sys/statvfs.h>
30182
30183int
30184main ()
30185{
30186
30187 long l;
30188 statvfs_t fs;
30189 statvfs("/", &fs);
30190 l = fs.f_bsize;
30191 l += fs.f_blocks;
30192 l += fs.f_bavail;
30193
30194 ;
30195 return 0;
30196}
30197_ACEOF
30198rm -f conftest.$ac_objext
30199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30200 (eval $ac_compile) 2>conftest.er1
30201 ac_status=$?
30202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } &&
01cb68df 30207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30209 (eval $ac_try) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); }; } &&
30213 { ac_try='test -s conftest.$ac_objext'
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30216 ac_status=$?
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; }; then
30219 wx_cv_type_statvfs_t=statvfs_t
30220else
30221 echo "$as_me: failed program was:" >&5
30222sed 's/^/| /' conftest.$ac_ext >&5
30223
30224
30225 cat >conftest.$ac_ext <<_ACEOF
30226/* confdefs.h. */
30227_ACEOF
30228cat confdefs.h >>conftest.$ac_ext
30229cat >>conftest.$ac_ext <<_ACEOF
30230/* end confdefs.h. */
30231
30232 #include <sys/statvfs.h>
30233
30234int
30235main ()
30236{
30237
30238 long l;
30239 struct statvfs fs;
30240 statvfs("/", &fs);
30241 l = fs.f_bsize;
30242 l += fs.f_blocks;
30243 l += fs.f_bavail;
30244
30245 ;
30246 return 0;
30247}
30248_ACEOF
30249rm -f conftest.$ac_objext
30250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30251 (eval $ac_compile) 2>conftest.er1
30252 ac_status=$?
30253 grep -v '^ *+' conftest.er1 >conftest.err
30254 rm -f conftest.er1
30255 cat conftest.err >&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); } &&
01cb68df 30258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260 (eval $ac_try) 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; } &&
30264 { ac_try='test -s conftest.$ac_objext'
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; }; then
30270 wx_cv_type_statvfs_t="struct statvfs"
30271else
30272 echo "$as_me: failed program was:" >&5
30273sed 's/^/| /' conftest.$ac_ext >&5
30274
30275wx_cv_type_statvfs_t="unknown"
30276
30277fi
30278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30279
30280
30281fi
30282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30283
30284fi
30285echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30286echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30287
30288 ac_ext=c
30289ac_cpp='$CPP $CPPFLAGS'
30290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30292ac_compiler_gnu=$ac_cv_c_compiler_gnu
30293
30294
30295 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30296 cat >>confdefs.h <<\_ACEOF
30297#define HAVE_STATVFS 1
30298_ACEOF
30299
30300 fi
30301 else
30302 wx_cv_type_statvfs_t="unknown"
30303 fi
30304fi
30305
30306if test "$wx_cv_type_statvfs_t" != "unknown"; then
30307 cat >>confdefs.h <<_ACEOF
30308#define WX_STATFS_T $wx_cv_type_statvfs_t
30309_ACEOF
30310
30311else
30312 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30313echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30314fi
30315
30316if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30317
30318
30319for ac_func in fcntl flock
30320do
30321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30322echo "$as_me:$LINENO: checking for $ac_func" >&5
30323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30324if eval "test \"\${$as_ac_var+set}\" = set"; then
30325 echo $ECHO_N "(cached) $ECHO_C" >&6
30326else
30327 cat >conftest.$ac_ext <<_ACEOF
30328/* confdefs.h. */
30329_ACEOF
30330cat confdefs.h >>conftest.$ac_ext
30331cat >>conftest.$ac_ext <<_ACEOF
30332/* end confdefs.h. */
30333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30335#define $ac_func innocuous_$ac_func
30336
30337/* System header to define __stub macros and hopefully few prototypes,
30338 which can conflict with char $ac_func (); below.
30339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30340 <limits.h> exists even on freestanding compilers. */
30341
30342#ifdef __STDC__
30343# include <limits.h>
30344#else
30345# include <assert.h>
30346#endif
30347
30348#undef $ac_func
30349
30350/* Override any gcc2 internal prototype to avoid an error. */
30351#ifdef __cplusplus
30352extern "C"
30353{
30354#endif
30355/* We use char because int might match the return type of a gcc2
30356 builtin and then its argument prototype would still apply. */
30357char $ac_func ();
30358/* The GNU C library defines this for functions which it implements
30359 to always fail with ENOSYS. Some functions are actually named
30360 something starting with __ and the normal name is an alias. */
30361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30362choke me
30363#else
30364char (*f) () = $ac_func;
30365#endif
30366#ifdef __cplusplus
30367}
30368#endif
30369
30370int
30371main ()
30372{
30373return f != $ac_func;
30374 ;
30375 return 0;
30376}
30377_ACEOF
30378rm -f conftest.$ac_objext conftest$ac_exeext
30379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30380 (eval $ac_link) 2>conftest.er1
30381 ac_status=$?
30382 grep -v '^ *+' conftest.er1 >conftest.err
30383 rm -f conftest.er1
30384 cat conftest.err >&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } &&
01cb68df 30387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 (eval $ac_try) 2>&5
30390 ac_status=$?
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; } &&
30393 { ac_try='test -s conftest$ac_exeext'
30394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395 (eval $ac_try) 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; }; then
30399 eval "$as_ac_var=yes"
30400else
30401 echo "$as_me: failed program was:" >&5
30402sed 's/^/| /' conftest.$ac_ext >&5
30403
30404eval "$as_ac_var=no"
30405fi
30406rm -f conftest.err conftest.$ac_objext \
30407 conftest$ac_exeext conftest.$ac_ext
30408fi
30409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30410echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30411if test `eval echo '${'$as_ac_var'}'` = yes; then
30412 cat >>confdefs.h <<_ACEOF
30413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30414_ACEOF
30415 break
30416fi
30417done
30418
30419
30420 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30421 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30422echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30423 wxUSE_SNGLINST_CHECKER=no
30424 fi
30425fi
30426
30427
30428for ac_func in timegm
30429do
30430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431echo "$as_me:$LINENO: checking for $ac_func" >&5
30432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30433if eval "test \"\${$as_ac_var+set}\" = set"; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
30442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30444#define $ac_func innocuous_$ac_func
30445
30446/* System header to define __stub macros and hopefully few prototypes,
30447 which can conflict with char $ac_func (); below.
30448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30449 <limits.h> exists even on freestanding compilers. */
30450
30451#ifdef __STDC__
30452# include <limits.h>
30453#else
30454# include <assert.h>
30455#endif
30456
30457#undef $ac_func
30458
30459/* Override any gcc2 internal prototype to avoid an error. */
30460#ifdef __cplusplus
30461extern "C"
30462{
30463#endif
30464/* We use char because int might match the return type of a gcc2
30465 builtin and then its argument prototype would still apply. */
30466char $ac_func ();
30467/* The GNU C library defines this for functions which it implements
30468 to always fail with ENOSYS. Some functions are actually named
30469 something starting with __ and the normal name is an alias. */
30470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30471choke me
30472#else
30473char (*f) () = $ac_func;
30474#endif
30475#ifdef __cplusplus
30476}
30477#endif
30478
30479int
30480main ()
30481{
30482return f != $ac_func;
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489 (eval $ac_link) 2>conftest.er1
30490 ac_status=$?
30491 grep -v '^ *+' conftest.er1 >conftest.err
30492 rm -f conftest.er1
30493 cat conftest.err >&5
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
01cb68df 30496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; } &&
30502 { ac_try='test -s conftest$ac_exeext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 eval "$as_ac_var=yes"
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
30513eval "$as_ac_var=no"
30514fi
30515rm -f conftest.err conftest.$ac_objext \
30516 conftest$ac_exeext conftest.$ac_ext
30517fi
30518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30520if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30523_ACEOF
30524
30525fi
30526done
30527
30528
30529
30530
30531for ac_func in putenv setenv
30532do
30533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30534echo "$as_me:$LINENO: checking for $ac_func" >&5
30535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30536if eval "test \"\${$as_ac_var+set}\" = set"; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30538else
30539 cat >conftest.$ac_ext <<_ACEOF
30540/* confdefs.h. */
30541_ACEOF
30542cat confdefs.h >>conftest.$ac_ext
30543cat >>conftest.$ac_ext <<_ACEOF
30544/* end confdefs.h. */
30545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30547#define $ac_func innocuous_$ac_func
30548
30549/* System header to define __stub macros and hopefully few prototypes,
30550 which can conflict with char $ac_func (); below.
30551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30552 <limits.h> exists even on freestanding compilers. */
30553
30554#ifdef __STDC__
30555# include <limits.h>
30556#else
30557# include <assert.h>
30558#endif
30559
30560#undef $ac_func
30561
30562/* Override any gcc2 internal prototype to avoid an error. */
30563#ifdef __cplusplus
30564extern "C"
30565{
30566#endif
30567/* We use char because int might match the return type of a gcc2
30568 builtin and then its argument prototype would still apply. */
30569char $ac_func ();
30570/* The GNU C library defines this for functions which it implements
30571 to always fail with ENOSYS. Some functions are actually named
30572 something starting with __ and the normal name is an alias. */
30573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30574choke me
30575#else
30576char (*f) () = $ac_func;
30577#endif
30578#ifdef __cplusplus
30579}
30580#endif
30581
30582int
30583main ()
30584{
30585return f != $ac_func;
30586 ;
30587 return 0;
30588}
30589_ACEOF
30590rm -f conftest.$ac_objext conftest$ac_exeext
30591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30592 (eval $ac_link) 2>conftest.er1
30593 ac_status=$?
30594 grep -v '^ *+' conftest.er1 >conftest.err
30595 rm -f conftest.er1
30596 cat conftest.err >&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); } &&
01cb68df 30599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601 (eval $ac_try) 2>&5
30602 ac_status=$?
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; } &&
30605 { ac_try='test -s conftest$ac_exeext'
30606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30607 (eval $ac_try) 2>&5
30608 ac_status=$?
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); }; }; then
30611 eval "$as_ac_var=yes"
30612else
30613 echo "$as_me: failed program was:" >&5
30614sed 's/^/| /' conftest.$ac_ext >&5
30615
30616eval "$as_ac_var=no"
30617fi
30618rm -f conftest.err conftest.$ac_objext \
30619 conftest$ac_exeext conftest.$ac_ext
30620fi
30621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30623if test `eval echo '${'$as_ac_var'}'` = yes; then
30624 cat >>confdefs.h <<_ACEOF
30625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30626_ACEOF
30627 break
30628fi
30629done
30630
30631
30632HAVE_SOME_SLEEP_FUNC=0
30633if test "$USE_BEOS" = 1; then
30634 cat >>confdefs.h <<\_ACEOF
30635#define HAVE_SLEEP 1
30636_ACEOF
30637
30638 HAVE_SOME_SLEEP_FUNC=1
30639fi
30640
30641if test "$USE_DARWIN" = 1; then
30642 cat >>confdefs.h <<\_ACEOF
30643#define HAVE_USLEEP 1
30644_ACEOF
30645
30646 HAVE_SOME_SLEEP_FUNC=1
30647fi
30648
30649if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30650 POSIX4_LINK=
30651
30652for ac_func in nanosleep
30653do
30654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30655echo "$as_me:$LINENO: checking for $ac_func" >&5
30656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30657if eval "test \"\${$as_ac_var+set}\" = set"; then
30658 echo $ECHO_N "(cached) $ECHO_C" >&6
30659else
30660 cat >conftest.$ac_ext <<_ACEOF
30661/* confdefs.h. */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h. */
30666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30668#define $ac_func innocuous_$ac_func
30669
30670/* System header to define __stub macros and hopefully few prototypes,
30671 which can conflict with char $ac_func (); below.
30672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30673 <limits.h> exists even on freestanding compilers. */
30674
30675#ifdef __STDC__
30676# include <limits.h>
30677#else
30678# include <assert.h>
30679#endif
30680
30681#undef $ac_func
30682
30683/* Override any gcc2 internal prototype to avoid an error. */
30684#ifdef __cplusplus
30685extern "C"
30686{
30687#endif
30688/* We use char because int might match the return type of a gcc2
30689 builtin and then its argument prototype would still apply. */
30690char $ac_func ();
30691/* The GNU C library defines this for functions which it implements
30692 to always fail with ENOSYS. Some functions are actually named
30693 something starting with __ and the normal name is an alias. */
30694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30695choke me
30696#else
30697char (*f) () = $ac_func;
30698#endif
30699#ifdef __cplusplus
30700}
30701#endif
30702
30703int
30704main ()
30705{
30706return f != $ac_func;
30707 ;
30708 return 0;
30709}
30710_ACEOF
30711rm -f conftest.$ac_objext conftest$ac_exeext
30712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30713 (eval $ac_link) 2>conftest.er1
30714 ac_status=$?
30715 grep -v '^ *+' conftest.er1 >conftest.err
30716 rm -f conftest.er1
30717 cat conftest.err >&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); } &&
01cb68df 30720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30722 (eval $ac_try) 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; } &&
30726 { ac_try='test -s conftest$ac_exeext'
30727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30728 (eval $ac_try) 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; }; then
30732 eval "$as_ac_var=yes"
30733else
30734 echo "$as_me: failed program was:" >&5
30735sed 's/^/| /' conftest.$ac_ext >&5
30736
30737eval "$as_ac_var=no"
30738fi
30739rm -f conftest.err conftest.$ac_objext \
30740 conftest$ac_exeext conftest.$ac_ext
30741fi
30742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30744if test `eval echo '${'$as_ac_var'}'` = yes; then
30745 cat >>confdefs.h <<_ACEOF
30746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30747_ACEOF
30748 cat >>confdefs.h <<\_ACEOF
30749#define HAVE_NANOSLEEP 1
30750_ACEOF
30751
30752else
30753
30754 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30755echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30756if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30757 echo $ECHO_N "(cached) $ECHO_C" >&6
30758else
30759 ac_check_lib_save_LIBS=$LIBS
30760LIBS="-lposix4 $LIBS"
30761cat >conftest.$ac_ext <<_ACEOF
30762/* confdefs.h. */
30763_ACEOF
30764cat confdefs.h >>conftest.$ac_ext
30765cat >>conftest.$ac_ext <<_ACEOF
30766/* end confdefs.h. */
30767
30768/* Override any gcc2 internal prototype to avoid an error. */
30769#ifdef __cplusplus
30770extern "C"
30771#endif
30772/* We use char because int might match the return type of a gcc2
30773 builtin and then its argument prototype would still apply. */
30774char nanosleep ();
30775int
30776main ()
30777{
30778nanosleep ();
30779 ;
30780 return 0;
30781}
30782_ACEOF
30783rm -f conftest.$ac_objext conftest$ac_exeext
30784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30785 (eval $ac_link) 2>conftest.er1
30786 ac_status=$?
30787 grep -v '^ *+' conftest.er1 >conftest.err
30788 rm -f conftest.er1
30789 cat conftest.err >&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); } &&
01cb68df 30792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30794 (eval $ac_try) 2>&5
30795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); }; } &&
30798 { ac_try='test -s conftest$ac_exeext'
30799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 (eval $ac_try) 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 ac_cv_lib_posix4_nanosleep=yes
30805else
30806 echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
30809ac_cv_lib_posix4_nanosleep=no
30810fi
30811rm -f conftest.err conftest.$ac_objext \
30812 conftest$ac_exeext conftest.$ac_ext
30813LIBS=$ac_check_lib_save_LIBS
30814fi
30815echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30816echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30817if test $ac_cv_lib_posix4_nanosleep = yes; then
30818
30819 cat >>confdefs.h <<\_ACEOF
30820#define HAVE_NANOSLEEP 1
30821_ACEOF
30822
30823 POSIX4_LINK=" -lposix4"
30824
30825else
30826
30827
30828for ac_func in usleep
30829do
30830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30831echo "$as_me:$LINENO: checking for $ac_func" >&5
30832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30833if eval "test \"\${$as_ac_var+set}\" = set"; then
30834 echo $ECHO_N "(cached) $ECHO_C" >&6
30835else
30836 cat >conftest.$ac_ext <<_ACEOF
30837/* confdefs.h. */
30838_ACEOF
30839cat confdefs.h >>conftest.$ac_ext
30840cat >>conftest.$ac_ext <<_ACEOF
30841/* end confdefs.h. */
30842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30844#define $ac_func innocuous_$ac_func
30845
30846/* System header to define __stub macros and hopefully few prototypes,
30847 which can conflict with char $ac_func (); below.
30848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30849 <limits.h> exists even on freestanding compilers. */
30850
30851#ifdef __STDC__
30852# include <limits.h>
30853#else
30854# include <assert.h>
30855#endif
30856
30857#undef $ac_func
30858
30859/* Override any gcc2 internal prototype to avoid an error. */
30860#ifdef __cplusplus
30861extern "C"
30862{
30863#endif
30864/* We use char because int might match the return type of a gcc2
30865 builtin and then its argument prototype would still apply. */
30866char $ac_func ();
30867/* The GNU C library defines this for functions which it implements
30868 to always fail with ENOSYS. Some functions are actually named
30869 something starting with __ and the normal name is an alias. */
30870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30871choke me
30872#else
30873char (*f) () = $ac_func;
30874#endif
30875#ifdef __cplusplus
30876}
30877#endif
30878
30879int
30880main ()
30881{
30882return f != $ac_func;
30883 ;
30884 return 0;
30885}
30886_ACEOF
30887rm -f conftest.$ac_objext conftest$ac_exeext
30888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30889 (eval $ac_link) 2>conftest.er1
30890 ac_status=$?
30891 grep -v '^ *+' conftest.er1 >conftest.err
30892 rm -f conftest.er1
30893 cat conftest.err >&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } &&
01cb68df 30896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30898 (eval $ac_try) 2>&5
30899 ac_status=$?
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); }; } &&
30902 { ac_try='test -s conftest$ac_exeext'
30903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30904 (eval $ac_try) 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; }; then
30908 eval "$as_ac_var=yes"
30909else
30910 echo "$as_me: failed program was:" >&5
30911sed 's/^/| /' conftest.$ac_ext >&5
30912
30913eval "$as_ac_var=no"
30914fi
30915rm -f conftest.err conftest.$ac_objext \
30916 conftest$ac_exeext conftest.$ac_ext
30917fi
30918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30919echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30920if test `eval echo '${'$as_ac_var'}'` = yes; then
30921 cat >>confdefs.h <<_ACEOF
30922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30923_ACEOF
30924 cat >>confdefs.h <<\_ACEOF
30925#define HAVE_USLEEP 1
30926_ACEOF
30927
30928else
30929 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30930echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30931
30932fi
30933done
30934
30935
30936
30937fi
30938
30939
30940
30941fi
30942done
30943
30944fi
30945
30946
30947
30948for ac_func in uname gethostname
30949do
30950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30951echo "$as_me:$LINENO: checking for $ac_func" >&5
30952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30953if eval "test \"\${$as_ac_var+set}\" = set"; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30955else
30956 cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
30962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30964#define $ac_func innocuous_$ac_func
30965
30966/* System header to define __stub macros and hopefully few prototypes,
30967 which can conflict with char $ac_func (); below.
30968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969 <limits.h> exists even on freestanding compilers. */
30970
30971#ifdef __STDC__
30972# include <limits.h>
30973#else
30974# include <assert.h>
30975#endif
30976
30977#undef $ac_func
30978
30979/* Override any gcc2 internal prototype to avoid an error. */
30980#ifdef __cplusplus
30981extern "C"
30982{
30983#endif
30984/* We use char because int might match the return type of a gcc2
30985 builtin and then its argument prototype would still apply. */
30986char $ac_func ();
30987/* The GNU C library defines this for functions which it implements
30988 to always fail with ENOSYS. Some functions are actually named
30989 something starting with __ and the normal name is an alias. */
30990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30991choke me
30992#else
30993char (*f) () = $ac_func;
30994#endif
30995#ifdef __cplusplus
30996}
30997#endif
30998
30999int
31000main ()
31001{
31002return f != $ac_func;
31003 ;
31004 return 0;
31005}
31006_ACEOF
31007rm -f conftest.$ac_objext conftest$ac_exeext
31008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31009 (eval $ac_link) 2>conftest.er1
31010 ac_status=$?
31011 grep -v '^ *+' conftest.er1 >conftest.err
31012 rm -f conftest.er1
31013 cat conftest.err >&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); } &&
01cb68df 31016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31018 (eval $ac_try) 2>&5
31019 ac_status=$?
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); }; } &&
31022 { ac_try='test -s conftest$ac_exeext'
31023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); }; }; then
31028 eval "$as_ac_var=yes"
31029else
31030 echo "$as_me: failed program was:" >&5
31031sed 's/^/| /' conftest.$ac_ext >&5
31032
31033eval "$as_ac_var=no"
31034fi
31035rm -f conftest.err conftest.$ac_objext \
31036 conftest$ac_exeext conftest.$ac_ext
31037fi
31038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31040if test `eval echo '${'$as_ac_var'}'` = yes; then
31041 cat >>confdefs.h <<_ACEOF
31042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31043_ACEOF
31044 break
31045fi
31046done
31047
31048
31049
31050
31051ac_ext=cc
31052ac_cpp='$CXXCPP $CPPFLAGS'
31053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31056
31057
31058
31059for ac_func in strtok_r
31060do
31061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31062echo "$as_me:$LINENO: checking for $ac_func" >&5
31063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31064if eval "test \"\${$as_ac_var+set}\" = set"; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
31067 cat >conftest.$ac_ext <<_ACEOF
31068/* confdefs.h. */
31069_ACEOF
31070cat confdefs.h >>conftest.$ac_ext
31071cat >>conftest.$ac_ext <<_ACEOF
31072/* end confdefs.h. */
31073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075#define $ac_func innocuous_$ac_func
31076
31077/* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31081
31082#ifdef __STDC__
31083# include <limits.h>
31084#else
31085# include <assert.h>
31086#endif
31087
31088#undef $ac_func
31089
31090/* Override any gcc2 internal prototype to avoid an error. */
31091#ifdef __cplusplus
31092extern "C"
31093{
31094#endif
31095/* We use char because int might match the return type of a gcc2
31096 builtin and then its argument prototype would still apply. */
31097char $ac_func ();
31098/* The GNU C library defines this for functions which it implements
31099 to always fail with ENOSYS. Some functions are actually named
31100 something starting with __ and the normal name is an alias. */
31101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31102choke me
31103#else
31104char (*f) () = $ac_func;
31105#endif
31106#ifdef __cplusplus
31107}
31108#endif
31109
31110int
31111main ()
31112{
31113return f != $ac_func;
31114 ;
31115 return 0;
31116}
31117_ACEOF
31118rm -f conftest.$ac_objext conftest$ac_exeext
31119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31120 (eval $ac_link) 2>conftest.er1
31121 ac_status=$?
31122 grep -v '^ *+' conftest.er1 >conftest.err
31123 rm -f conftest.er1
31124 cat conftest.err >&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); } &&
01cb68df 31127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31129 (eval $ac_try) 2>&5
31130 ac_status=$?
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); }; } &&
31133 { ac_try='test -s conftest$ac_exeext'
31134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31135 (eval $ac_try) 2>&5
31136 ac_status=$?
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); }; }; then
31139 eval "$as_ac_var=yes"
31140else
31141 echo "$as_me: failed program was:" >&5
31142sed 's/^/| /' conftest.$ac_ext >&5
31143
31144eval "$as_ac_var=no"
31145fi
31146rm -f conftest.err conftest.$ac_objext \
31147 conftest$ac_exeext conftest.$ac_ext
31148fi
31149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31151if test `eval echo '${'$as_ac_var'}'` = yes; then
31152 cat >>confdefs.h <<_ACEOF
31153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31154_ACEOF
31155
31156fi
31157done
31158
31159
31160ac_ext=c
31161ac_cpp='$CPP $CPPFLAGS'
31162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31164ac_compiler_gnu=$ac_cv_c_compiler_gnu
31165
31166
31167INET_LINK=
31168
31169for ac_func in inet_addr
31170do
31171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31172echo "$as_me:$LINENO: checking for $ac_func" >&5
31173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31174if eval "test \"\${$as_ac_var+set}\" = set"; then
31175 echo $ECHO_N "(cached) $ECHO_C" >&6
31176else
31177 cat >conftest.$ac_ext <<_ACEOF
31178/* confdefs.h. */
31179_ACEOF
31180cat confdefs.h >>conftest.$ac_ext
31181cat >>conftest.$ac_ext <<_ACEOF
31182/* end confdefs.h. */
31183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31185#define $ac_func innocuous_$ac_func
31186
31187/* System header to define __stub macros and hopefully few prototypes,
31188 which can conflict with char $ac_func (); below.
31189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31190 <limits.h> exists even on freestanding compilers. */
31191
31192#ifdef __STDC__
31193# include <limits.h>
31194#else
31195# include <assert.h>
31196#endif
31197
31198#undef $ac_func
31199
31200/* Override any gcc2 internal prototype to avoid an error. */
31201#ifdef __cplusplus
31202extern "C"
31203{
31204#endif
31205/* We use char because int might match the return type of a gcc2
31206 builtin and then its argument prototype would still apply. */
31207char $ac_func ();
31208/* The GNU C library defines this for functions which it implements
31209 to always fail with ENOSYS. Some functions are actually named
31210 something starting with __ and the normal name is an alias. */
31211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31212choke me
31213#else
31214char (*f) () = $ac_func;
31215#endif
31216#ifdef __cplusplus
31217}
31218#endif
31219
31220int
31221main ()
31222{
31223return f != $ac_func;
31224 ;
31225 return 0;
31226}
31227_ACEOF
31228rm -f conftest.$ac_objext conftest$ac_exeext
31229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31230 (eval $ac_link) 2>conftest.er1
31231 ac_status=$?
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
01cb68df 31237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31239 (eval $ac_try) 2>&5
31240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; } &&
31243 { ac_try='test -s conftest$ac_exeext'
31244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31245 (eval $ac_try) 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; }; then
31249 eval "$as_ac_var=yes"
31250else
31251 echo "$as_me: failed program was:" >&5
31252sed 's/^/| /' conftest.$ac_ext >&5
31253
31254eval "$as_ac_var=no"
31255fi
31256rm -f conftest.err conftest.$ac_objext \
31257 conftest$ac_exeext conftest.$ac_ext
31258fi
31259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31261if test `eval echo '${'$as_ac_var'}'` = yes; then
31262 cat >>confdefs.h <<_ACEOF
31263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31264_ACEOF
31265 cat >>confdefs.h <<\_ACEOF
31266#define HAVE_INET_ADDR 1
31267_ACEOF
31268
31269else
31270
31271 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31272echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31273if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
31276 ac_check_lib_save_LIBS=$LIBS
31277LIBS="-lnsl $LIBS"
31278cat >conftest.$ac_ext <<_ACEOF
31279/* confdefs.h. */
31280_ACEOF
31281cat confdefs.h >>conftest.$ac_ext
31282cat >>conftest.$ac_ext <<_ACEOF
31283/* end confdefs.h. */
31284
31285/* Override any gcc2 internal prototype to avoid an error. */
31286#ifdef __cplusplus
31287extern "C"
31288#endif
31289/* We use char because int might match the return type of a gcc2
31290 builtin and then its argument prototype would still apply. */
31291char inet_addr ();
31292int
31293main ()
31294{
31295inet_addr ();
31296 ;
31297 return 0;
31298}
31299_ACEOF
31300rm -f conftest.$ac_objext conftest$ac_exeext
31301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31302 (eval $ac_link) 2>conftest.er1
31303 ac_status=$?
31304 grep -v '^ *+' conftest.er1 >conftest.err
31305 rm -f conftest.er1
31306 cat conftest.err >&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); } &&
01cb68df 31309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31311 (eval $ac_try) 2>&5
31312 ac_status=$?
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; } &&
31315 { ac_try='test -s conftest$ac_exeext'
31316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317 (eval $ac_try) 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; }; then
31321 ac_cv_lib_nsl_inet_addr=yes
31322else
31323 echo "$as_me: failed program was:" >&5
31324sed 's/^/| /' conftest.$ac_ext >&5
31325
31326ac_cv_lib_nsl_inet_addr=no
31327fi
31328rm -f conftest.err conftest.$ac_objext \
31329 conftest$ac_exeext conftest.$ac_ext
31330LIBS=$ac_check_lib_save_LIBS
31331fi
31332echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31333echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31334if test $ac_cv_lib_nsl_inet_addr = yes; then
31335 INET_LINK="nsl"
31336else
31337
31338 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31339echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31340if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31341 echo $ECHO_N "(cached) $ECHO_C" >&6
31342else
31343 ac_check_lib_save_LIBS=$LIBS
31344LIBS="-lresolv $LIBS"
31345cat >conftest.$ac_ext <<_ACEOF
31346/* confdefs.h. */
31347_ACEOF
31348cat confdefs.h >>conftest.$ac_ext
31349cat >>conftest.$ac_ext <<_ACEOF
31350/* end confdefs.h. */
31351
31352/* Override any gcc2 internal prototype to avoid an error. */
31353#ifdef __cplusplus
31354extern "C"
31355#endif
31356/* We use char because int might match the return type of a gcc2
31357 builtin and then its argument prototype would still apply. */
31358char inet_addr ();
31359int
31360main ()
31361{
31362inet_addr ();
31363 ;
31364 return 0;
31365}
31366_ACEOF
31367rm -f conftest.$ac_objext conftest$ac_exeext
31368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31369 (eval $ac_link) 2>conftest.er1
31370 ac_status=$?
31371 grep -v '^ *+' conftest.er1 >conftest.err
31372 rm -f conftest.er1
31373 cat conftest.err >&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
01cb68df 31376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31378 (eval $ac_try) 2>&5
31379 ac_status=$?
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; } &&
31382 { ac_try='test -s conftest$ac_exeext'
31383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384 (eval $ac_try) 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); }; }; then
31388 ac_cv_lib_resolv_inet_addr=yes
31389else
31390 echo "$as_me: failed program was:" >&5
31391sed 's/^/| /' conftest.$ac_ext >&5
31392
31393ac_cv_lib_resolv_inet_addr=no
31394fi
31395rm -f conftest.err conftest.$ac_objext \
31396 conftest$ac_exeext conftest.$ac_ext
31397LIBS=$ac_check_lib_save_LIBS
31398fi
31399echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31400echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31401if test $ac_cv_lib_resolv_inet_addr = yes; then
31402 INET_LINK="resolv"
31403else
31404
31405 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31406echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31407if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31408 echo $ECHO_N "(cached) $ECHO_C" >&6
31409else
31410 ac_check_lib_save_LIBS=$LIBS
31411LIBS="-lsocket $LIBS"
31412cat >conftest.$ac_ext <<_ACEOF
31413/* confdefs.h. */
31414_ACEOF
31415cat confdefs.h >>conftest.$ac_ext
31416cat >>conftest.$ac_ext <<_ACEOF
31417/* end confdefs.h. */
31418
31419/* Override any gcc2 internal prototype to avoid an error. */
31420#ifdef __cplusplus
31421extern "C"
31422#endif
31423/* We use char because int might match the return type of a gcc2
31424 builtin and then its argument prototype would still apply. */
31425char inet_addr ();
31426int
31427main ()
31428{
31429inet_addr ();
31430 ;
31431 return 0;
31432}
31433_ACEOF
31434rm -f conftest.$ac_objext conftest$ac_exeext
31435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31436 (eval $ac_link) 2>conftest.er1
31437 ac_status=$?
31438 grep -v '^ *+' conftest.er1 >conftest.err
31439 rm -f conftest.er1
31440 cat conftest.err >&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } &&
01cb68df 31443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31445 (eval $ac_try) 2>&5
31446 ac_status=$?
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); }; } &&
31449 { ac_try='test -s conftest$ac_exeext'
31450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31451 (eval $ac_try) 2>&5
31452 ac_status=$?
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); }; }; then
31455 ac_cv_lib_socket_inet_addr=yes
31456else
31457 echo "$as_me: failed program was:" >&5
31458sed 's/^/| /' conftest.$ac_ext >&5
31459
31460ac_cv_lib_socket_inet_addr=no
31461fi
31462rm -f conftest.err conftest.$ac_objext \
31463 conftest$ac_exeext conftest.$ac_ext
31464LIBS=$ac_check_lib_save_LIBS
31465fi
31466echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31467echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31468if test $ac_cv_lib_socket_inet_addr = yes; then
31469 INET_LINK="socket"
31470
31471fi
31472
31473
31474
31475fi
31476
31477
31478
31479fi
31480
31481
31482
31483fi
31484done
31485
31486
31487
31488for ac_func in inet_aton
31489do
31490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31491echo "$as_me:$LINENO: checking for $ac_func" >&5
31492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31493if eval "test \"\${$as_ac_var+set}\" = set"; then
31494 echo $ECHO_N "(cached) $ECHO_C" >&6
31495else
31496 cat >conftest.$ac_ext <<_ACEOF
31497/* confdefs.h. */
31498_ACEOF
31499cat confdefs.h >>conftest.$ac_ext
31500cat >>conftest.$ac_ext <<_ACEOF
31501/* end confdefs.h. */
31502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31504#define $ac_func innocuous_$ac_func
31505
31506/* System header to define __stub macros and hopefully few prototypes,
31507 which can conflict with char $ac_func (); below.
31508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31509 <limits.h> exists even on freestanding compilers. */
31510
31511#ifdef __STDC__
31512# include <limits.h>
31513#else
31514# include <assert.h>
31515#endif
31516
31517#undef $ac_func
31518
31519/* Override any gcc2 internal prototype to avoid an error. */
31520#ifdef __cplusplus
31521extern "C"
31522{
31523#endif
31524/* We use char because int might match the return type of a gcc2
31525 builtin and then its argument prototype would still apply. */
31526char $ac_func ();
31527/* The GNU C library defines this for functions which it implements
31528 to always fail with ENOSYS. Some functions are actually named
31529 something starting with __ and the normal name is an alias. */
31530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31531choke me
31532#else
31533char (*f) () = $ac_func;
31534#endif
31535#ifdef __cplusplus
31536}
31537#endif
31538
31539int
31540main ()
31541{
31542return f != $ac_func;
31543 ;
31544 return 0;
31545}
31546_ACEOF
31547rm -f conftest.$ac_objext conftest$ac_exeext
31548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31549 (eval $ac_link) 2>conftest.er1
31550 ac_status=$?
31551 grep -v '^ *+' conftest.er1 >conftest.err
31552 rm -f conftest.er1
31553 cat conftest.err >&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } &&
01cb68df 31556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
31559 ac_status=$?
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; } &&
31562 { ac_try='test -s conftest$ac_exeext'
31563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
31568 eval "$as_ac_var=yes"
31569else
31570 echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
31573eval "$as_ac_var=no"
31574fi
31575rm -f conftest.err conftest.$ac_objext \
31576 conftest$ac_exeext conftest.$ac_ext
31577fi
31578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31580if test `eval echo '${'$as_ac_var'}'` = yes; then
31581 cat >>confdefs.h <<_ACEOF
31582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31583_ACEOF
31584 cat >>confdefs.h <<\_ACEOF
31585#define HAVE_INET_ATON 1
31586_ACEOF
31587
31588else
31589
31590 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31591echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31592echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31593if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31594 echo $ECHO_N "(cached) $ECHO_C" >&6
31595else
31596 ac_check_lib_save_LIBS=$LIBS
31597LIBS="-l$INET_LINK $LIBS"
31598cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h. */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h. */
31604
31605/* Override any gcc2 internal prototype to avoid an error. */
31606#ifdef __cplusplus
31607extern "C"
31608#endif
31609/* We use char because int might match the return type of a gcc2
31610 builtin and then its argument prototype would still apply. */
31611char inet_aton ();
31612int
31613main ()
31614{
31615inet_aton ();
31616 ;
31617 return 0;
31618}
31619_ACEOF
31620rm -f conftest.$ac_objext conftest$ac_exeext
31621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31622 (eval $ac_link) 2>conftest.er1
31623 ac_status=$?
31624 grep -v '^ *+' conftest.er1 >conftest.err
31625 rm -f conftest.er1
31626 cat conftest.err >&5
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); } &&
01cb68df 31629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31631 (eval $ac_try) 2>&5
31632 ac_status=$?
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; } &&
31635 { ac_try='test -s conftest$ac_exeext'
31636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637 (eval $ac_try) 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 eval "$as_ac_Lib=yes"
31642else
31643 echo "$as_me: failed program was:" >&5
31644sed 's/^/| /' conftest.$ac_ext >&5
31645
31646eval "$as_ac_Lib=no"
31647fi
31648rm -f conftest.err conftest.$ac_objext \
31649 conftest$ac_exeext conftest.$ac_ext
31650LIBS=$ac_check_lib_save_LIBS
31651fi
31652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31653echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31654if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31655 cat >>confdefs.h <<\_ACEOF
31656#define HAVE_INET_ATON 1
31657_ACEOF
31658
31659fi
31660
31661
31662fi
31663done
31664
31665
31666if test "x$INET_LINK" != "x"; then
31667 cat >>confdefs.h <<\_ACEOF
31668#define HAVE_INET_ADDR 1
31669_ACEOF
31670
31671 INET_LINK=" -l$INET_LINK"
31672fi
31673
31674fi
31675
31676
31677
31678EXTRALIBS_ESD=
31679echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31680echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31681if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31682 echo $ECHO_N "(cached) $ECHO_C" >&6
31683else
31684 ac_check_lib_save_LIBS=$LIBS
31685LIBS="-lesd $LIBS"
31686cat >conftest.$ac_ext <<_ACEOF
31687/* confdefs.h. */
31688_ACEOF
31689cat confdefs.h >>conftest.$ac_ext
31690cat >>conftest.$ac_ext <<_ACEOF
31691/* end confdefs.h. */
31692
31693/* Override any gcc2 internal prototype to avoid an error. */
31694#ifdef __cplusplus
31695extern "C"
31696#endif
31697/* We use char because int might match the return type of a gcc2
31698 builtin and then its argument prototype would still apply. */
31699char esd_close ();
31700int
31701main ()
31702{
31703esd_close ();
31704 ;
31705 return 0;
31706}
31707_ACEOF
31708rm -f conftest.$ac_objext conftest$ac_exeext
31709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31710 (eval $ac_link) 2>conftest.er1
31711 ac_status=$?
31712 grep -v '^ *+' conftest.er1 >conftest.err
31713 rm -f conftest.er1
31714 cat conftest.err >&5
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); } &&
01cb68df 31717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; } &&
31723 { ac_try='test -s conftest$ac_exeext'
31724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31725 (eval $ac_try) 2>&5
31726 ac_status=$?
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); }; }; then
31729 ac_cv_lib_esd_esd_close=yes
31730else
31731 echo "$as_me: failed program was:" >&5
31732sed 's/^/| /' conftest.$ac_ext >&5
31733
31734ac_cv_lib_esd_esd_close=no
31735fi
31736rm -f conftest.err conftest.$ac_objext \
31737 conftest$ac_exeext conftest.$ac_ext
31738LIBS=$ac_check_lib_save_LIBS
31739fi
31740echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31741echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31742if test $ac_cv_lib_esd_esd_close = yes; then
31743
31744
31745for ac_header in esd.h
31746do
31747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31748if eval "test \"\${$as_ac_Header+set}\" = set"; then
31749 echo "$as_me:$LINENO: checking for $ac_header" >&5
31750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31751if eval "test \"\${$as_ac_Header+set}\" = set"; then
31752 echo $ECHO_N "(cached) $ECHO_C" >&6
31753fi
31754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31756else
31757 # Is the header compilable?
31758echo "$as_me:$LINENO: checking $ac_header usability" >&5
31759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31760cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
31766$ac_includes_default
31767#include <$ac_header>
31768_ACEOF
31769rm -f conftest.$ac_objext
31770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31771 (eval $ac_compile) 2>conftest.er1
31772 ac_status=$?
31773 grep -v '^ *+' conftest.er1 >conftest.err
31774 rm -f conftest.er1
31775 cat conftest.err >&5
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); } &&
01cb68df 31778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; } &&
31784 { ac_try='test -s conftest.$ac_objext'
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 ac_header_compiler=yes
31791else
31792 echo "$as_me: failed program was:" >&5
31793sed 's/^/| /' conftest.$ac_ext >&5
31794
31795ac_header_compiler=no
31796fi
31797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31799echo "${ECHO_T}$ac_header_compiler" >&6
31800
31801# Is the header present?
31802echo "$as_me:$LINENO: checking $ac_header presence" >&5
31803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31804cat >conftest.$ac_ext <<_ACEOF
31805/* confdefs.h. */
31806_ACEOF
31807cat confdefs.h >>conftest.$ac_ext
31808cat >>conftest.$ac_ext <<_ACEOF
31809/* end confdefs.h. */
31810#include <$ac_header>
31811_ACEOF
31812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31814 ac_status=$?
31815 grep -v '^ *+' conftest.er1 >conftest.err
31816 rm -f conftest.er1
31817 cat conftest.err >&5
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } >/dev/null; then
31820 if test -s conftest.err; then
31821 ac_cpp_err=$ac_c_preproc_warn_flag
31822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31823 else
31824 ac_cpp_err=
31825 fi
31826else
31827 ac_cpp_err=yes
31828fi
31829if test -z "$ac_cpp_err"; then
31830 ac_header_preproc=yes
31831else
31832 echo "$as_me: failed program was:" >&5
31833sed 's/^/| /' conftest.$ac_ext >&5
31834
31835 ac_header_preproc=no
31836fi
31837rm -f conftest.err conftest.$ac_ext
31838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31839echo "${ECHO_T}$ac_header_preproc" >&6
31840
31841# So? What about this header?
31842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31843 yes:no: )
31844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31848 ac_header_preproc=yes
31849 ;;
31850 no:yes:* )
31851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31863 (
31864 cat <<\_ASBOX
31865## ----------------------------------------- ##
31866## Report this to wx-dev@lists.wxwindows.org ##
31867## ----------------------------------------- ##
31868_ASBOX
31869 ) |
31870 sed "s/^/$as_me: WARNING: /" >&2
31871 ;;
31872esac
31873echo "$as_me:$LINENO: checking for $ac_header" >&5
31874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31875if eval "test \"\${$as_ac_Header+set}\" = set"; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877else
31878 eval "$as_ac_Header=\$ac_header_preproc"
31879fi
31880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31882
31883fi
31884if test `eval echo '${'$as_ac_Header'}'` = yes; then
31885 cat >>confdefs.h <<_ACEOF
31886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31887_ACEOF
31888
31889 EXTRALIBS_ESD="-lesd"
31890
31891fi
31892
31893done
31894
31895
31896fi
31897
31898
31899
31900echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31901echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31902cat >conftest.$ac_ext <<_ACEOF
31903/* confdefs.h. */
31904_ACEOF
31905cat confdefs.h >>conftest.$ac_ext
31906cat >>conftest.$ac_ext <<_ACEOF
31907/* end confdefs.h. */
31908#ifdef __linux__
31909 #include <linux/cdrom.h>
31910 #else
31911 /* For Solaris */
31912 #include <sys/cdio.h>
31913 #endif
31914
31915int
31916main ()
31917{
31918struct cdrom_tocentry entry, old_entry;
31919 ;
31920 return 0;
31921}
31922_ACEOF
31923rm -f conftest.$ac_objext
31924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31925 (eval $ac_compile) 2>conftest.er1
31926 ac_status=$?
31927 grep -v '^ *+' conftest.er1 >conftest.err
31928 rm -f conftest.er1
31929 cat conftest.err >&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } &&
01cb68df 31932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
31933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31934 (eval $ac_try) 2>&5
31935 ac_status=$?
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); }; } &&
31938 { ac_try='test -s conftest.$ac_objext'
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; }; then
31944 echo "$as_me:$LINENO: result: yes" >&5
31945echo "${ECHO_T}yes" >&6
31946 cat >>confdefs.h <<\_ACEOF
31947#define HAVE_KNOWN_CDROM_INTERFACE 1
31948_ACEOF
31949
31950else
31951 echo "$as_me: failed program was:" >&5
31952sed 's/^/| /' conftest.$ac_ext >&5
31953
31954echo "$as_me:$LINENO: result: no" >&5
31955echo "${ECHO_T}no" >&6
31956fi
31957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31958
31959
31960cat >confcache <<\_ACEOF
31961# This file is a shell script that caches the results of configure
31962# tests run on this system so they can be shared between configure
31963# scripts and configure runs, see configure's option --config-cache.
31964# It is not useful on other systems. If it contains results you don't
31965# want to keep, you may remove or edit it.
31966#
31967# config.status only pays attention to the cache file if you give it
31968# the --recheck option to rerun configure.
31969#
31970# `ac_cv_env_foo' variables (set or unset) will be overridden when
31971# loading this file, other *unset* `ac_cv_foo' will be assigned the
31972# following values.
31973
31974_ACEOF
31975
31976# The following way of writing the cache mishandles newlines in values,
31977# but we know of no workaround that is simple, portable, and efficient.
31978# So, don't put newlines in cache variables' values.
31979# Ultrix sh set writes to stderr and can't be redirected directly,
31980# and sets the high bit in the cache file unless we assign to the vars.
31981{
31982 (set) 2>&1 |
31983 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31984 *ac_space=\ *)
31985 # `set' does not quote correctly, so add quotes (double-quote
31986 # substitution turns \\\\ into \\, and sed turns \\ into \).
31987 sed -n \
31988 "s/'/'\\\\''/g;
31989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31990 ;;
31991 *)
31992 # `set' quotes correctly as required by POSIX, so do not add quotes.
31993 sed -n \
31994 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31995 ;;
31996 esac;
31997} |
31998 sed '
31999 t clear
32000 : clear
32001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32002 t end
32003 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32004 : end' >>confcache
32005if diff $cache_file confcache >/dev/null 2>&1; then :; else
32006 if test -w $cache_file; then
32007 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32008 cat confcache >$cache_file
32009 else
32010 echo "not updating unwritable cache $cache_file"
32011 fi
32012fi
32013rm -f confcache
32014
32015
32016CPP_MT_FLAG=
32017if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32018
32019
32020 THREADS_LINK=
32021 THREADS_CFLAGS=
32022
32023 if test "$wxUSE_THREADS" = "yes" ; then
32024 if test "$USE_BEOS" = 1; then
32025 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32026echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32027 wxUSE_THREADS="no"
32028 fi
32029 fi
32030
32031 if test "$wxUSE_THREADS" = "yes" ; then
32032
32033
32034 THREAD_OPTS="-pthread"
32035 case "${host}" in
32036 *-*-solaris2* | *-*-sunos4* )
32037 if test "x$GCC" = "xyes"; then
32038 THREAD_OPTS="-pthreads $THREAD_OPTS"
32039 else
32040 THREAD_OPTS="-mt $THREAD_OPTS"
32041 fi
32042 ;;
32043 *-*-freebsd*)
32044 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32045 ;;
32046 *-*-darwin* | *-*-cygwin* )
32047 THREAD_OPTS=""
32048 ;;
32049 *-*-aix*)
32050 THREAD_OPTS="pthreads"
32051 ;;
32052 *-hp-hpux* )
32053 if test "x$GCC" != "xyes"; then
32054 THREAD_OPTS=""
32055 fi
32056 ;;
32057
32058 *-*-irix* )
32059 if test "x$GCC" = "xyes"; then
32060 THREAD_OPTS=""
32061 fi
32062 ;;
32063
32064 *-*-*UnixWare*)
32065 if test "x$GCC" != "xyes"; then
32066 THREAD_OPTS="-Ethread"
32067 fi
32068 ;;
32069 esac
32070
32071 THREAD_OPTS="$THREAD_OPTS pthread none"
32072
32073 THREADS_OK=no
32074 for flag in $THREAD_OPTS; do
32075 case $flag in
32076 none)
32077 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32078echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32079 ;;
32080
32081 -*)
32082 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32083echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32084 THREADS_CFLAGS="$flag"
32085 ;;
32086
32087 *)
32088 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32089echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32090 THREADS_LINK="-l$flag"
32091 ;;
32092 esac
32093
32094 save_LIBS="$LIBS"
32095 save_CFLAGS="$CFLAGS"
32096 LIBS="$THREADS_LINK $LIBS"
32097 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32098
32099 cat >conftest.$ac_ext <<_ACEOF
32100/* confdefs.h. */
32101_ACEOF
32102cat confdefs.h >>conftest.$ac_ext
32103cat >>conftest.$ac_ext <<_ACEOF
32104/* end confdefs.h. */
32105#include <pthread.h>
32106int
32107main ()
32108{
32109pthread_create(0,0,0,0);
32110 ;
32111 return 0;
32112}
32113_ACEOF
32114rm -f conftest.$ac_objext conftest$ac_exeext
32115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32116 (eval $ac_link) 2>conftest.er1
32117 ac_status=$?
32118 grep -v '^ *+' conftest.er1 >conftest.err
32119 rm -f conftest.er1
32120 cat conftest.err >&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); } &&
01cb68df 32123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32126 ac_status=$?
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; } &&
32129 { ac_try='test -s conftest$ac_exeext'
32130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32131 (eval $ac_try) 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
32135 THREADS_OK=yes
32136else
32137 echo "$as_me: failed program was:" >&5
32138sed 's/^/| /' conftest.$ac_ext >&5
32139
32140fi
32141rm -f conftest.err conftest.$ac_objext \
32142 conftest$ac_exeext conftest.$ac_ext
32143
32144 LIBS="$save_LIBS"
32145 CFLAGS="$save_CFLAGS"
32146
32147 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32148echo "${ECHO_T}$THREADS_OK" >&6
32149 if test "x$THREADS_OK" = "xyes"; then
32150 break;
32151 fi
32152
32153 THREADS_LINK=""
32154 THREADS_CFLAGS=""
32155 done
32156
32157 if test "x$THREADS_OK" != "xyes"; then
32158 wxUSE_THREADS=no
32159 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32160echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32161 else
32162 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32163 LIBS="$THREADS_LINK $LIBS"
32164
32165 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32166echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32167 flag=no
32168 case "${host}" in
32169 *-aix*)
32170 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32171 flag="-D_THREAD_SAFE"
32172 ;;
32173 *-freebsd*)
32174 flag="-D_THREAD_SAFE"
32175 ;;
32176 *-hp-hpux* )
32177 flag="-D_REENTRANT"
32178 if test "x$GCC" != "xyes"; then
32179 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32180
32181 LIBS="$LIBS -lcma"
a848cd7e
SC
32182 fi
32183 ;;
32184 *solaris* | alpha*-osf*)
32185 flag="-D_REENTRANT"
32186 ;;
32187 esac
32188 echo "$as_me:$LINENO: result: ${flag}" >&5
32189echo "${ECHO_T}${flag}" >&6
32190 if test "x$flag" != xno; then
32191 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32192 fi
32193
32194 if test "x$THREADS_CFLAGS" != "x"; then
32195 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32196 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32197 fi
32198 fi
32199 fi
32200
32201 if test "$wxUSE_THREADS" = "yes" ; then
32202
32203for ac_func in thr_setconcurrency
32204do
32205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32206echo "$as_me:$LINENO: checking for $ac_func" >&5
32207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32208if eval "test \"\${$as_ac_var+set}\" = set"; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
32210else
32211 cat >conftest.$ac_ext <<_ACEOF
32212/* confdefs.h. */
32213_ACEOF
32214cat confdefs.h >>conftest.$ac_ext
32215cat >>conftest.$ac_ext <<_ACEOF
32216/* end confdefs.h. */
32217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32219#define $ac_func innocuous_$ac_func
32220
32221/* System header to define __stub macros and hopefully few prototypes,
32222 which can conflict with char $ac_func (); below.
32223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32224 <limits.h> exists even on freestanding compilers. */
32225
32226#ifdef __STDC__
32227# include <limits.h>
32228#else
32229# include <assert.h>
32230#endif
32231
32232#undef $ac_func
32233
32234/* Override any gcc2 internal prototype to avoid an error. */
32235#ifdef __cplusplus
32236extern "C"
32237{
32238#endif
32239/* We use char because int might match the return type of a gcc2
32240 builtin and then its argument prototype would still apply. */
32241char $ac_func ();
32242/* The GNU C library defines this for functions which it implements
32243 to always fail with ENOSYS. Some functions are actually named
32244 something starting with __ and the normal name is an alias. */
32245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32246choke me
32247#else
32248char (*f) () = $ac_func;
32249#endif
32250#ifdef __cplusplus
32251}
32252#endif
32253
32254int
32255main ()
32256{
32257return f != $ac_func;
32258 ;
32259 return 0;
32260}
32261_ACEOF
32262rm -f conftest.$ac_objext conftest$ac_exeext
32263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32264 (eval $ac_link) 2>conftest.er1
32265 ac_status=$?
32266 grep -v '^ *+' conftest.er1 >conftest.err
32267 rm -f conftest.er1
32268 cat conftest.err >&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); } &&
01cb68df 32271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273 (eval $ac_try) 2>&5
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; } &&
32277 { ac_try='test -s conftest$ac_exeext'
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
32283 eval "$as_ac_var=yes"
32284else
32285 echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
32288eval "$as_ac_var=no"
32289fi
32290rm -f conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
32292fi
32293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32295if test `eval echo '${'$as_ac_var'}'` = yes; then
32296 cat >>confdefs.h <<_ACEOF
32297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32298_ACEOF
32299
32300fi
32301done
32302
32303
32304
32305for ac_header in sched.h
32306do
32307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32308if eval "test \"\${$as_ac_Header+set}\" = set"; then
32309 echo "$as_me:$LINENO: checking for $ac_header" >&5
32310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32311if eval "test \"\${$as_ac_Header+set}\" = set"; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32313fi
32314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32316else
32317 # Is the header compilable?
32318echo "$as_me:$LINENO: checking $ac_header usability" >&5
32319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32320cat >conftest.$ac_ext <<_ACEOF
32321/* confdefs.h. */
32322_ACEOF
32323cat confdefs.h >>conftest.$ac_ext
32324cat >>conftest.$ac_ext <<_ACEOF
32325/* end confdefs.h. */
32326$ac_includes_default
32327#include <$ac_header>
32328_ACEOF
32329rm -f conftest.$ac_objext
32330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32331 (eval $ac_compile) 2>conftest.er1
32332 ac_status=$?
32333 grep -v '^ *+' conftest.er1 >conftest.err
32334 rm -f conftest.er1
32335 cat conftest.err >&5
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); } &&
01cb68df 32338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340 (eval $ac_try) 2>&5
32341 ac_status=$?
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); }; } &&
32344 { ac_try='test -s conftest.$ac_objext'
32345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32346 (eval $ac_try) 2>&5
32347 ac_status=$?
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); }; }; then
32350 ac_header_compiler=yes
32351else
32352 echo "$as_me: failed program was:" >&5
32353sed 's/^/| /' conftest.$ac_ext >&5
32354
32355ac_header_compiler=no
32356fi
32357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32359echo "${ECHO_T}$ac_header_compiler" >&6
32360
32361# Is the header present?
32362echo "$as_me:$LINENO: checking $ac_header presence" >&5
32363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32364cat >conftest.$ac_ext <<_ACEOF
32365/* confdefs.h. */
32366_ACEOF
32367cat confdefs.h >>conftest.$ac_ext
32368cat >>conftest.$ac_ext <<_ACEOF
32369/* end confdefs.h. */
32370#include <$ac_header>
32371_ACEOF
32372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32374 ac_status=$?
32375 grep -v '^ *+' conftest.er1 >conftest.err
32376 rm -f conftest.er1
32377 cat conftest.err >&5
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); } >/dev/null; then
32380 if test -s conftest.err; then
32381 ac_cpp_err=$ac_c_preproc_warn_flag
32382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32383 else
32384 ac_cpp_err=
32385 fi
32386else
32387 ac_cpp_err=yes
32388fi
32389if test -z "$ac_cpp_err"; then
32390 ac_header_preproc=yes
32391else
32392 echo "$as_me: failed program was:" >&5
32393sed 's/^/| /' conftest.$ac_ext >&5
32394
32395 ac_header_preproc=no
32396fi
32397rm -f conftest.err conftest.$ac_ext
32398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32399echo "${ECHO_T}$ac_header_preproc" >&6
32400
32401# So? What about this header?
32402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32403 yes:no: )
32404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32408 ac_header_preproc=yes
32409 ;;
32410 no:yes:* )
32411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32423 (
32424 cat <<\_ASBOX
32425## ----------------------------------------- ##
32426## Report this to wx-dev@lists.wxwindows.org ##
32427## ----------------------------------------- ##
32428_ASBOX
32429 ) |
32430 sed "s/^/$as_me: WARNING: /" >&2
32431 ;;
32432esac
32433echo "$as_me:$LINENO: checking for $ac_header" >&5
32434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32435if eval "test \"\${$as_ac_Header+set}\" = set"; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32437else
32438 eval "$as_ac_Header=\$ac_header_preproc"
32439fi
32440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32442
32443fi
32444if test `eval echo '${'$as_ac_Header'}'` = yes; then
32445 cat >>confdefs.h <<_ACEOF
32446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32447_ACEOF
32448
32449fi
32450
32451done
32452
32453 if test "$ac_cv_header_sched_h" = "yes"; then
32454 echo "$as_me:$LINENO: checking for sched_yield" >&5
32455echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32456if test "${ac_cv_func_sched_yield+set}" = set; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32458else
32459 cat >conftest.$ac_ext <<_ACEOF
32460/* confdefs.h. */
32461_ACEOF
32462cat confdefs.h >>conftest.$ac_ext
32463cat >>conftest.$ac_ext <<_ACEOF
32464/* end confdefs.h. */
32465/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32467#define sched_yield innocuous_sched_yield
32468
32469/* System header to define __stub macros and hopefully few prototypes,
32470 which can conflict with char sched_yield (); below.
32471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32472 <limits.h> exists even on freestanding compilers. */
32473
32474#ifdef __STDC__
32475# include <limits.h>
32476#else
32477# include <assert.h>
32478#endif
32479
32480#undef sched_yield
32481
32482/* Override any gcc2 internal prototype to avoid an error. */
32483#ifdef __cplusplus
32484extern "C"
32485{
32486#endif
32487/* We use char because int might match the return type of a gcc2
32488 builtin and then its argument prototype would still apply. */
32489char sched_yield ();
32490/* The GNU C library defines this for functions which it implements
32491 to always fail with ENOSYS. Some functions are actually named
32492 something starting with __ and the normal name is an alias. */
32493#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32494choke me
32495#else
32496char (*f) () = sched_yield;
32497#endif
32498#ifdef __cplusplus
32499}
32500#endif
32501
32502int
32503main ()
32504{
32505return f != sched_yield;
32506 ;
32507 return 0;
32508}
32509_ACEOF
32510rm -f conftest.$ac_objext conftest$ac_exeext
32511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32512 (eval $ac_link) 2>conftest.er1
32513 ac_status=$?
32514 grep -v '^ *+' conftest.er1 >conftest.err
32515 rm -f conftest.er1
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } &&
01cb68df 32519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32521 (eval $ac_try) 2>&5
32522 ac_status=$?
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); }; } &&
32525 { ac_try='test -s conftest$ac_exeext'
32526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32527 (eval $ac_try) 2>&5
32528 ac_status=$?
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; }; then
32531 ac_cv_func_sched_yield=yes
32532else
32533 echo "$as_me: failed program was:" >&5
32534sed 's/^/| /' conftest.$ac_ext >&5
32535
32536ac_cv_func_sched_yield=no
32537fi
32538rm -f conftest.err conftest.$ac_objext \
32539 conftest$ac_exeext conftest.$ac_ext
32540fi
32541echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32542echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32543if test $ac_cv_func_sched_yield = yes; then
32544 cat >>confdefs.h <<\_ACEOF
32545#define HAVE_SCHED_YIELD 1
32546_ACEOF
32547
32548else
32549
32550 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32551echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32552if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32553 echo $ECHO_N "(cached) $ECHO_C" >&6
32554else
32555 ac_check_lib_save_LIBS=$LIBS
32556LIBS="-lposix4 $LIBS"
32557cat >conftest.$ac_ext <<_ACEOF
32558/* confdefs.h. */
32559_ACEOF
32560cat confdefs.h >>conftest.$ac_ext
32561cat >>conftest.$ac_ext <<_ACEOF
32562/* end confdefs.h. */
32563
32564/* Override any gcc2 internal prototype to avoid an error. */
32565#ifdef __cplusplus
32566extern "C"
32567#endif
32568/* We use char because int might match the return type of a gcc2
32569 builtin and then its argument prototype would still apply. */
32570char sched_yield ();
32571int
32572main ()
32573{
32574sched_yield ();
32575 ;
32576 return 0;
32577}
32578_ACEOF
32579rm -f conftest.$ac_objext conftest$ac_exeext
32580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32581 (eval $ac_link) 2>conftest.er1
32582 ac_status=$?
32583 grep -v '^ *+' conftest.er1 >conftest.err
32584 rm -f conftest.er1
32585 cat conftest.err >&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
01cb68df 32588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; } &&
32594 { ac_try='test -s conftest$ac_exeext'
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; }; then
32600 ac_cv_lib_posix4_sched_yield=yes
32601else
32602 echo "$as_me: failed program was:" >&5
32603sed 's/^/| /' conftest.$ac_ext >&5
32604
32605ac_cv_lib_posix4_sched_yield=no
32606fi
32607rm -f conftest.err conftest.$ac_objext \
32608 conftest$ac_exeext conftest.$ac_ext
32609LIBS=$ac_check_lib_save_LIBS
32610fi
32611echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32612echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32613if test $ac_cv_lib_posix4_sched_yield = yes; then
32614 cat >>confdefs.h <<\_ACEOF
32615#define HAVE_SCHED_YIELD 1
32616_ACEOF
32617 POSIX4_LINK=" -lposix4"
32618else
32619 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32620echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32621
32622fi
32623
32624
32625
32626fi
32627
32628 fi
32629
32630 HAVE_PRIOR_FUNCS=0
32631 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32632echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32633if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32635else
32636 cat >conftest.$ac_ext <<_ACEOF
32637/* confdefs.h. */
32638_ACEOF
32639cat confdefs.h >>conftest.$ac_ext
32640cat >>conftest.$ac_ext <<_ACEOF
32641/* end confdefs.h. */
32642/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32644#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32645
32646/* System header to define __stub macros and hopefully few prototypes,
32647 which can conflict with char pthread_attr_getschedpolicy (); below.
32648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32649 <limits.h> exists even on freestanding compilers. */
32650
32651#ifdef __STDC__
32652# include <limits.h>
32653#else
32654# include <assert.h>
32655#endif
32656
32657#undef pthread_attr_getschedpolicy
32658
32659/* Override any gcc2 internal prototype to avoid an error. */
32660#ifdef __cplusplus
32661extern "C"
32662{
32663#endif
32664/* We use char because int might match the return type of a gcc2
32665 builtin and then its argument prototype would still apply. */
32666char pthread_attr_getschedpolicy ();
32667/* The GNU C library defines this for functions which it implements
32668 to always fail with ENOSYS. Some functions are actually named
32669 something starting with __ and the normal name is an alias. */
32670#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32671choke me
32672#else
32673char (*f) () = pthread_attr_getschedpolicy;
32674#endif
32675#ifdef __cplusplus
32676}
32677#endif
32678
32679int
32680main ()
32681{
32682return f != pthread_attr_getschedpolicy;
32683 ;
32684 return 0;
32685}
32686_ACEOF
32687rm -f conftest.$ac_objext conftest$ac_exeext
32688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32689 (eval $ac_link) 2>conftest.er1
32690 ac_status=$?
32691 grep -v '^ *+' conftest.er1 >conftest.err
32692 rm -f conftest.er1
32693 cat conftest.err >&5
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } &&
01cb68df 32696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32698 (eval $ac_try) 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest$ac_exeext'
32703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704 (eval $ac_try) 2>&5
32705 ac_status=$?
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); }; }; then
32708 ac_cv_func_pthread_attr_getschedpolicy=yes
32709else
32710 echo "$as_me: failed program was:" >&5
32711sed 's/^/| /' conftest.$ac_ext >&5
32712
32713ac_cv_func_pthread_attr_getschedpolicy=no
32714fi
32715rm -f conftest.err conftest.$ac_objext \
32716 conftest$ac_exeext conftest.$ac_ext
32717fi
32718echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32719echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32720if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32721 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32722echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32723if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
32726 cat >conftest.$ac_ext <<_ACEOF
32727/* confdefs.h. */
32728_ACEOF
32729cat confdefs.h >>conftest.$ac_ext
32730cat >>conftest.$ac_ext <<_ACEOF
32731/* end confdefs.h. */
32732/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32734#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32735
32736/* System header to define __stub macros and hopefully few prototypes,
32737 which can conflict with char pthread_attr_setschedparam (); below.
32738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32739 <limits.h> exists even on freestanding compilers. */
32740
32741#ifdef __STDC__
32742# include <limits.h>
32743#else
32744# include <assert.h>
32745#endif
32746
32747#undef pthread_attr_setschedparam
32748
32749/* Override any gcc2 internal prototype to avoid an error. */
32750#ifdef __cplusplus
32751extern "C"
32752{
32753#endif
32754/* We use char because int might match the return type of a gcc2
32755 builtin and then its argument prototype would still apply. */
32756char pthread_attr_setschedparam ();
32757/* The GNU C library defines this for functions which it implements
32758 to always fail with ENOSYS. Some functions are actually named
32759 something starting with __ and the normal name is an alias. */
32760#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32761choke me
32762#else
32763char (*f) () = pthread_attr_setschedparam;
32764#endif
32765#ifdef __cplusplus
32766}
32767#endif
32768
32769int
32770main ()
32771{
32772return f != pthread_attr_setschedparam;
32773 ;
32774 return 0;
32775}
32776_ACEOF
32777rm -f conftest.$ac_objext conftest$ac_exeext
32778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32779 (eval $ac_link) 2>conftest.er1
32780 ac_status=$?
32781 grep -v '^ *+' conftest.er1 >conftest.err
32782 rm -f conftest.er1
32783 cat conftest.err >&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); } &&
01cb68df 32786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32788 (eval $ac_try) 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; } &&
32792 { ac_try='test -s conftest$ac_exeext'
32793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32794 (eval $ac_try) 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; }; then
32798 ac_cv_func_pthread_attr_setschedparam=yes
32799else
32800 echo "$as_me: failed program was:" >&5
32801sed 's/^/| /' conftest.$ac_ext >&5
32802
32803ac_cv_func_pthread_attr_setschedparam=no
32804fi
32805rm -f conftest.err conftest.$ac_objext \
32806 conftest$ac_exeext conftest.$ac_ext
32807fi
32808echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32809echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32810if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32811 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32812echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32813if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32814 echo $ECHO_N "(cached) $ECHO_C" >&6
32815else
32816 cat >conftest.$ac_ext <<_ACEOF
32817/* confdefs.h. */
32818_ACEOF
32819cat confdefs.h >>conftest.$ac_ext
32820cat >>conftest.$ac_ext <<_ACEOF
32821/* end confdefs.h. */
32822/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32824#define sched_get_priority_max innocuous_sched_get_priority_max
32825
32826/* System header to define __stub macros and hopefully few prototypes,
32827 which can conflict with char sched_get_priority_max (); below.
32828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32829 <limits.h> exists even on freestanding compilers. */
32830
32831#ifdef __STDC__
32832# include <limits.h>
32833#else
32834# include <assert.h>
32835#endif
32836
32837#undef sched_get_priority_max
32838
32839/* Override any gcc2 internal prototype to avoid an error. */
32840#ifdef __cplusplus
32841extern "C"
32842{
32843#endif
32844/* We use char because int might match the return type of a gcc2
32845 builtin and then its argument prototype would still apply. */
32846char sched_get_priority_max ();
32847/* The GNU C library defines this for functions which it implements
32848 to always fail with ENOSYS. Some functions are actually named
32849 something starting with __ and the normal name is an alias. */
32850#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32851choke me
32852#else
32853char (*f) () = sched_get_priority_max;
32854#endif
32855#ifdef __cplusplus
32856}
32857#endif
32858
32859int
32860main ()
32861{
32862return f != sched_get_priority_max;
32863 ;
32864 return 0;
32865}
32866_ACEOF
32867rm -f conftest.$ac_objext conftest$ac_exeext
32868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32869 (eval $ac_link) 2>conftest.er1
32870 ac_status=$?
32871 grep -v '^ *+' conftest.er1 >conftest.err
32872 rm -f conftest.er1
32873 cat conftest.err >&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); } &&
01cb68df 32876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32878 (eval $ac_try) 2>&5
32879 ac_status=$?
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881 (exit $ac_status); }; } &&
32882 { ac_try='test -s conftest$ac_exeext'
32883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32884 (eval $ac_try) 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
32888 ac_cv_func_sched_get_priority_max=yes
32889else
32890 echo "$as_me: failed program was:" >&5
32891sed 's/^/| /' conftest.$ac_ext >&5
32892
32893ac_cv_func_sched_get_priority_max=no
32894fi
32895rm -f conftest.err conftest.$ac_objext \
32896 conftest$ac_exeext conftest.$ac_ext
32897fi
32898echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32899echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32900if test $ac_cv_func_sched_get_priority_max = yes; then
32901 HAVE_PRIOR_FUNCS=1
32902else
32903 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32904echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32905if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32906 echo $ECHO_N "(cached) $ECHO_C" >&6
32907else
32908 ac_check_lib_save_LIBS=$LIBS
32909LIBS="-lposix4 $LIBS"
32910cat >conftest.$ac_ext <<_ACEOF
32911/* confdefs.h. */
32912_ACEOF
32913cat confdefs.h >>conftest.$ac_ext
32914cat >>conftest.$ac_ext <<_ACEOF
32915/* end confdefs.h. */
32916
32917/* Override any gcc2 internal prototype to avoid an error. */
32918#ifdef __cplusplus
32919extern "C"
32920#endif
32921/* We use char because int might match the return type of a gcc2
32922 builtin and then its argument prototype would still apply. */
32923char sched_get_priority_max ();
32924int
32925main ()
32926{
32927sched_get_priority_max ();
32928 ;
32929 return 0;
32930}
32931_ACEOF
32932rm -f conftest.$ac_objext conftest$ac_exeext
32933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32934 (eval $ac_link) 2>conftest.er1
32935 ac_status=$?
32936 grep -v '^ *+' conftest.er1 >conftest.err
32937 rm -f conftest.er1
32938 cat conftest.err >&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
01cb68df 32941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; } &&
32947 { ac_try='test -s conftest$ac_exeext'
32948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949 (eval $ac_try) 2>&5
32950 ac_status=$?
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); }; }; then
32953 ac_cv_lib_posix4_sched_get_priority_max=yes
32954else
32955 echo "$as_me: failed program was:" >&5
32956sed 's/^/| /' conftest.$ac_ext >&5
32957
32958ac_cv_lib_posix4_sched_get_priority_max=no
32959fi
32960rm -f conftest.err conftest.$ac_objext \
32961 conftest$ac_exeext conftest.$ac_ext
32962LIBS=$ac_check_lib_save_LIBS
32963fi
32964echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32965echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32966if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32967
32968 HAVE_PRIOR_FUNCS=1
32969 POSIX4_LINK=" -lposix4"
32970
32971fi
32972
32973
32974fi
32975
32976
32977fi
32978
32979
32980fi
32981
32982
32983 if test "$HAVE_PRIOR_FUNCS" = 1; then
32984 cat >>confdefs.h <<\_ACEOF
32985#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32986_ACEOF
32987
32988 else
32989 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32990echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32991 fi
32992
32993 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32994echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32995if test "${ac_cv_func_pthread_cancel+set}" = set; then
32996 echo $ECHO_N "(cached) $ECHO_C" >&6
32997else
32998 cat >conftest.$ac_ext <<_ACEOF
32999/* confdefs.h. */
33000_ACEOF
33001cat confdefs.h >>conftest.$ac_ext
33002cat >>conftest.$ac_ext <<_ACEOF
33003/* end confdefs.h. */
33004/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33006#define pthread_cancel innocuous_pthread_cancel
33007
33008/* System header to define __stub macros and hopefully few prototypes,
33009 which can conflict with char pthread_cancel (); below.
33010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33011 <limits.h> exists even on freestanding compilers. */
33012
33013#ifdef __STDC__
33014# include <limits.h>
33015#else
33016# include <assert.h>
33017#endif
33018
33019#undef pthread_cancel
33020
33021/* Override any gcc2 internal prototype to avoid an error. */
33022#ifdef __cplusplus
33023extern "C"
33024{
33025#endif
33026/* We use char because int might match the return type of a gcc2
33027 builtin and then its argument prototype would still apply. */
33028char pthread_cancel ();
33029/* The GNU C library defines this for functions which it implements
33030 to always fail with ENOSYS. Some functions are actually named
33031 something starting with __ and the normal name is an alias. */
33032#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33033choke me
33034#else
33035char (*f) () = pthread_cancel;
33036#endif
33037#ifdef __cplusplus
33038}
33039#endif
33040
33041int
33042main ()
33043{
33044return f != pthread_cancel;
33045 ;
33046 return 0;
33047}
33048_ACEOF
33049rm -f conftest.$ac_objext conftest$ac_exeext
33050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33051 (eval $ac_link) 2>conftest.er1
33052 ac_status=$?
33053 grep -v '^ *+' conftest.er1 >conftest.err
33054 rm -f conftest.er1
33055 cat conftest.err >&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } &&
01cb68df 33058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest$ac_exeext'
33065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33066 (eval $ac_try) 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; }; then
33070 ac_cv_func_pthread_cancel=yes
33071else
33072 echo "$as_me: failed program was:" >&5
33073sed 's/^/| /' conftest.$ac_ext >&5
33074
33075ac_cv_func_pthread_cancel=no
33076fi
33077rm -f conftest.err conftest.$ac_objext \
33078 conftest$ac_exeext conftest.$ac_ext
33079fi
33080echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33081echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33082if test $ac_cv_func_pthread_cancel = yes; then
33083 cat >>confdefs.h <<\_ACEOF
33084#define HAVE_PTHREAD_CANCEL 1
33085_ACEOF
33086
33087else
33088 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33089echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33090fi
33091
33092
33093
33094
33095 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33096echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33097if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33098 echo $ECHO_N "(cached) $ECHO_C" >&6
33099else
33100
33101 cat >conftest.$ac_ext <<_ACEOF
33102/* confdefs.h. */
33103_ACEOF
33104cat confdefs.h >>conftest.$ac_ext
33105cat >>conftest.$ac_ext <<_ACEOF
33106/* end confdefs.h. */
33107#include <pthread.h>
33108int
33109main ()
33110{
33111
33112 pthread_mutexattr_t attr;
33113 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33114
33115 ;
33116 return 0;
33117}
33118_ACEOF
33119rm -f conftest.$ac_objext
33120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33121 (eval $ac_compile) 2>conftest.er1
33122 ac_status=$?
33123 grep -v '^ *+' conftest.er1 >conftest.err
33124 rm -f conftest.er1
33125 cat conftest.err >&5
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); } &&
01cb68df 33128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33130 (eval $ac_try) 2>&5
33131 ac_status=$?
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); }; } &&
33134 { ac_try='test -s conftest.$ac_objext'
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; }; then
33140
33141 wx_cv_type_pthread_mutexattr_t=yes
33142
33143else
33144 echo "$as_me: failed program was:" >&5
33145sed 's/^/| /' conftest.$ac_ext >&5
33146
33147
33148 wx_cv_type_pthread_mutexattr_t=no
33149
33150
33151fi
33152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33153
33154fi
33155echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33156echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33157
33158 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33159 cat >>confdefs.h <<\_ACEOF
33160#define HAVE_PTHREAD_MUTEXATTR_T 1
33161_ACEOF
33162
33163 else
33164 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33165echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33166if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33167 echo $ECHO_N "(cached) $ECHO_C" >&6
33168else
33169
33170 cat >conftest.$ac_ext <<_ACEOF
33171/* confdefs.h. */
33172_ACEOF
33173cat confdefs.h >>conftest.$ac_ext
33174cat >>conftest.$ac_ext <<_ACEOF
33175/* end confdefs.h. */
33176#include <pthread.h>
33177int
33178main ()
33179{
33180
33181 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33182
33183 ;
33184 return 0;
33185}
33186_ACEOF
33187rm -f conftest.$ac_objext
33188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33189 (eval $ac_compile) 2>conftest.er1
33190 ac_status=$?
33191 grep -v '^ *+' conftest.er1 >conftest.err
33192 rm -f conftest.er1
33193 cat conftest.err >&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); } &&
01cb68df 33196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33198 (eval $ac_try) 2>&5
33199 ac_status=$?
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); }; } &&
33202 { ac_try='test -s conftest.$ac_objext'
33203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204 (eval $ac_try) 2>&5
33205 ac_status=$?
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; }; then
33208
33209 wx_cv_type_pthread_rec_mutex_init=yes
33210
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215
33216 wx_cv_type_pthread_rec_mutex_init=no
33217
33218
33219fi
33220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33221
33222fi
33223echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33224echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33225 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33226 cat >>confdefs.h <<\_ACEOF
33227#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33228_ACEOF
33229
33230 else
33231 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33232echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33233 fi
33234 fi
33235 fi
33236
33237else
33238 if test "$wxUSE_THREADS" = "yes" ; then
33239 case "${host}" in
33240 *-*-mingw32* )
33241 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33242echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33243if test "${wx_cv_cflags_mthread+set}" = set; then
33244 echo $ECHO_N "(cached) $ECHO_C" >&6
33245else
33246
33247 CFLAGS_OLD="$CFLAGS"
33248 CFLAGS="$CFLAGS -mthreads"
33249 cat >conftest.$ac_ext <<_ACEOF
33250/* confdefs.h. */
33251_ACEOF
33252cat confdefs.h >>conftest.$ac_ext
33253cat >>conftest.$ac_ext <<_ACEOF
33254/* end confdefs.h. */
33255
33256int
33257main ()
33258{
33259
33260 ;
33261 return 0;
33262}
33263_ACEOF
33264rm -f conftest.$ac_objext
33265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33266 (eval $ac_compile) 2>conftest.er1
33267 ac_status=$?
33268 grep -v '^ *+' conftest.er1 >conftest.err
33269 rm -f conftest.er1
33270 cat conftest.err >&5
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); } &&
01cb68df 33273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; } &&
33279 { ac_try='test -s conftest.$ac_objext'
33280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281 (eval $ac_try) 2>&5
33282 ac_status=$?
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); }; }; then
33285 wx_cv_cflags_mthread=yes
33286else
33287 echo "$as_me: failed program was:" >&5
33288sed 's/^/| /' conftest.$ac_ext >&5
33289
33290wx_cv_cflags_mthread=no
33291
33292fi
33293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33294
33295
33296fi
33297echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33298echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33299
33300 if test "$wx_cv_cflags_mthread" = "yes"; then
33301 CXXFLAGS="$CXXFLAGS -mthreads"
33302 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33303 LDFLAGS="$LDFLAGS -mthreads"
33304 else
33305 CFLAGS="$CFLAGS_OLD"
33306 fi
33307 ;;
33308 *-pc-os2*emx )
33309 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33310 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33311 LDFLAGS="$LDFLAGS -Zmt"
33312 ;;
33313 esac
33314 fi
33315fi
33316
33317if test "$wxUSE_THREADS" = "yes"; then
33318 cat >>confdefs.h <<\_ACEOF
33319#define wxUSE_THREADS 1
33320_ACEOF
33321
33322
33323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33324else
33325 if test "$ac_cv_func_strtok_r" = "yes"; then
33326 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33327echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33328 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33329 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33330 echo "$as_me:$LINENO: result: yes" >&5
33331echo "${ECHO_T}yes" >&6
33332 else
33333 echo "$as_me:$LINENO: result: no" >&5
33334echo "${ECHO_T}no" >&6
33335 fi
33336 fi
33337fi
33338
33339if test "$WXGTK20" = 1 ; then
33340 cat >>confdefs.h <<_ACEOF
33341#define __WXGTK20__ $WXGTK20
33342_ACEOF
33343
33344 WXGTK12=1
33345fi
33346
33347if test "$WXGTK12" = 1 ; then
33348 cat >>confdefs.h <<_ACEOF
33349#define __WXGTK12__ $WXGTK12
33350_ACEOF
33351
33352fi
33353
33354if test "$WXGTK127" = 1 ; then
33355 cat >>confdefs.h <<_ACEOF
33356#define __WXGTK127__ $WXGTK127
33357_ACEOF
33358
33359fi
33360
33361if test "$WXGPE" = 1 ; then
33362 cat >>confdefs.h <<_ACEOF
33363#define __WXGPE__ $WXGPE
33364_ACEOF
33365
33366fi
33367
33368WXDEBUG=
33369
33370if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33371 WXDEBUG="-g"
33372 wxUSE_OPTIMISE=no
33373fi
33374
33375if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33376 wxUSE_DEBUG_INFO=yes
33377 WXDEBUG="-ggdb"
33378fi
33379
33380if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33381 cat >>confdefs.h <<\_ACEOF
33382#define WXDEBUG 1
33383_ACEOF
33384
33385 WXDEBUG_DEFINE="-D__WXDEBUG__"
33386else
33387 if test "$wxUSE_GTK" = 1 ; then
33388 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33389 fi
33390fi
33391
33392if test "$wxUSE_MEM_TRACING" = "yes" ; then
33393 cat >>confdefs.h <<\_ACEOF
33394#define wxUSE_MEMORY_TRACING 1
33395_ACEOF
33396
33397 cat >>confdefs.h <<\_ACEOF
33398#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33399_ACEOF
33400
33401 cat >>confdefs.h <<\_ACEOF
33402#define wxUSE_DEBUG_NEW_ALWAYS 1
33403_ACEOF
33404
33405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33406fi
33407
33408if test "$wxUSE_DMALLOC" = "yes" ; then
33409 DMALLOC_LIBS="-ldmalloc"
33410fi
33411
33412PROFILE=
33413if test "$wxUSE_PROFILE" = "yes" ; then
33414 PROFILE=" -pg"
33415fi
33416
33417CODE_GEN_FLAGS=
33418CODE_GEN_FLAGS_CXX=
33419if test "$GCC" = "yes" ; then
33420 if test "$wxUSE_NO_RTTI" = "yes" ; then
33421 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33422 fi
33423 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33424 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33425 fi
33426 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33427 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33428 fi
33429
33430 case "${host}" in
33431 powerpc*-*-aix* )
33432 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33433 ;;
33434 *-hppa* )
33435 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33436 ;;
33437 esac
33438fi
33439
33440OPTIMISE=
33441if test "$wxUSE_OPTIMISE" = "no" ; then
33442 if test "$GCC" = yes ; then
33443 OPTIMISE="-O0"
33444 fi
33445else
33446 if test "$GCC" = yes ; then
33447 OPTIMISE="-O2"
33448
33449 case "${host}" in
33450 i586-*-*|i686-*-* )
33451 OPTIMISE="${OPTIMISE} "
33452 ;;
33453 esac
33454 else
33455 OPTIMISE="-O"
33456 fi
33457fi
33458
33459
33460if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33461 cat >>confdefs.h <<\_ACEOF
33462#define WXWIN_COMPATIBILITY_2_2 1
33463_ACEOF
33464
33465
33466 WXWIN_COMPATIBILITY_2_4="yes"
33467fi
33468
33469if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33470 cat >>confdefs.h <<\_ACEOF
33471#define WXWIN_COMPATIBILITY_2_4 1
33472_ACEOF
33473
33474fi
33475
33476
33477if test "$wxUSE_GUI" = "yes"; then
33478 cat >>confdefs.h <<\_ACEOF
33479#define wxUSE_GUI 1
33480_ACEOF
33481
33482
33483 else
33484 cat >>confdefs.h <<\_ACEOF
33485#define wxUSE_NOGUI 1
33486_ACEOF
33487
33488fi
33489
33490
33491if test "$wxUSE_UNIX" = "yes"; then
33492 cat >>confdefs.h <<\_ACEOF
33493#define wxUSE_UNIX 1
33494_ACEOF
33495
33496fi
33497
33498
33499if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33500
33501 HAVE_DL_FUNCS=0
33502 HAVE_SHL_FUNCS=0
33503 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33504 if test "$USE_DARWIN" = 1; then
33505 HAVE_DL_FUNCS=1
33506 else
33507
33508for ac_func in dlopen
33509do
33510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33511echo "$as_me:$LINENO: checking for $ac_func" >&5
33512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33513if eval "test \"\${$as_ac_var+set}\" = set"; then
33514 echo $ECHO_N "(cached) $ECHO_C" >&6
33515else
33516 cat >conftest.$ac_ext <<_ACEOF
33517/* confdefs.h. */
33518_ACEOF
33519cat confdefs.h >>conftest.$ac_ext
33520cat >>conftest.$ac_ext <<_ACEOF
33521/* end confdefs.h. */
33522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33524#define $ac_func innocuous_$ac_func
33525
33526/* System header to define __stub macros and hopefully few prototypes,
33527 which can conflict with char $ac_func (); below.
33528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33529 <limits.h> exists even on freestanding compilers. */
33530
33531#ifdef __STDC__
33532# include <limits.h>
33533#else
33534# include <assert.h>
33535#endif
33536
33537#undef $ac_func
33538
33539/* Override any gcc2 internal prototype to avoid an error. */
33540#ifdef __cplusplus
33541extern "C"
33542{
33543#endif
33544/* We use char because int might match the return type of a gcc2
33545 builtin and then its argument prototype would still apply. */
33546char $ac_func ();
33547/* The GNU C library defines this for functions which it implements
33548 to always fail with ENOSYS. Some functions are actually named
33549 something starting with __ and the normal name is an alias. */
33550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33551choke me
33552#else
33553char (*f) () = $ac_func;
33554#endif
33555#ifdef __cplusplus
33556}
33557#endif
33558
33559int
33560main ()
33561{
33562return f != $ac_func;
33563 ;
33564 return 0;
33565}
33566_ACEOF
33567rm -f conftest.$ac_objext conftest$ac_exeext
33568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33569 (eval $ac_link) 2>conftest.er1
33570 ac_status=$?
33571 grep -v '^ *+' conftest.er1 >conftest.err
33572 rm -f conftest.er1
33573 cat conftest.err >&5
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); } &&
01cb68df 33576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33578 (eval $ac_try) 2>&5
33579 ac_status=$?
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; } &&
33582 { ac_try='test -s conftest$ac_exeext'
33583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33584 (eval $ac_try) 2>&5
33585 ac_status=$?
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; }; then
33588 eval "$as_ac_var=yes"
33589else
33590 echo "$as_me: failed program was:" >&5
33591sed 's/^/| /' conftest.$ac_ext >&5
33592
33593eval "$as_ac_var=no"
33594fi
33595rm -f conftest.err conftest.$ac_objext \
33596 conftest$ac_exeext conftest.$ac_ext
33597fi
33598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33600if test `eval echo '${'$as_ac_var'}'` = yes; then
33601 cat >>confdefs.h <<_ACEOF
33602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33603_ACEOF
33604
33605 cat >>confdefs.h <<\_ACEOF
33606#define HAVE_DLOPEN 1
33607_ACEOF
33608
33609 HAVE_DL_FUNCS=1
33610
33611else
33612
33613 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33614echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33615if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33617else
33618 ac_check_lib_save_LIBS=$LIBS
33619LIBS="-ldl $LIBS"
33620cat >conftest.$ac_ext <<_ACEOF
33621/* confdefs.h. */
33622_ACEOF
33623cat confdefs.h >>conftest.$ac_ext
33624cat >>conftest.$ac_ext <<_ACEOF
33625/* end confdefs.h. */
33626
33627/* Override any gcc2 internal prototype to avoid an error. */
33628#ifdef __cplusplus
33629extern "C"
33630#endif
33631/* We use char because int might match the return type of a gcc2
33632 builtin and then its argument prototype would still apply. */
33633char dlopen ();
33634int
33635main ()
33636{
33637dlopen ();
33638 ;
33639 return 0;
33640}
33641_ACEOF
33642rm -f conftest.$ac_objext conftest$ac_exeext
33643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33644 (eval $ac_link) 2>conftest.er1
33645 ac_status=$?
33646 grep -v '^ *+' conftest.er1 >conftest.err
33647 rm -f conftest.er1
33648 cat conftest.err >&5
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); } &&
01cb68df 33651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33653 (eval $ac_try) 2>&5
33654 ac_status=$?
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; } &&
33657 { ac_try='test -s conftest$ac_exeext'
33658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; }; then
33663 ac_cv_lib_dl_dlopen=yes
33664else
33665 echo "$as_me: failed program was:" >&5
33666sed 's/^/| /' conftest.$ac_ext >&5
33667
33668ac_cv_lib_dl_dlopen=no
33669fi
33670rm -f conftest.err conftest.$ac_objext \
33671 conftest$ac_exeext conftest.$ac_ext
33672LIBS=$ac_check_lib_save_LIBS
33673fi
33674echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33675echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33676if test $ac_cv_lib_dl_dlopen = yes; then
33677
33678 cat >>confdefs.h <<\_ACEOF
33679#define HAVE_DLOPEN 1
33680_ACEOF
33681
33682 HAVE_DL_FUNCS=1
33683 DL_LINK=" -ldl$DL_LINK"
33684
33685else
33686
33687
33688for ac_func in shl_load
33689do
33690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33691echo "$as_me:$LINENO: checking for $ac_func" >&5
33692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33693if eval "test \"\${$as_ac_var+set}\" = set"; then
33694 echo $ECHO_N "(cached) $ECHO_C" >&6
33695else
33696 cat >conftest.$ac_ext <<_ACEOF
33697/* confdefs.h. */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h. */
33702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33704#define $ac_func innocuous_$ac_func
33705
33706/* System header to define __stub macros and hopefully few prototypes,
33707 which can conflict with char $ac_func (); below.
33708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33709 <limits.h> exists even on freestanding compilers. */
33710
33711#ifdef __STDC__
33712# include <limits.h>
33713#else
33714# include <assert.h>
33715#endif
33716
33717#undef $ac_func
33718
33719/* Override any gcc2 internal prototype to avoid an error. */
33720#ifdef __cplusplus
33721extern "C"
33722{
33723#endif
33724/* We use char because int might match the return type of a gcc2
33725 builtin and then its argument prototype would still apply. */
33726char $ac_func ();
33727/* The GNU C library defines this for functions which it implements
33728 to always fail with ENOSYS. Some functions are actually named
33729 something starting with __ and the normal name is an alias. */
33730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33731choke me
33732#else
33733char (*f) () = $ac_func;
33734#endif
33735#ifdef __cplusplus
33736}
33737#endif
33738
33739int
33740main ()
33741{
33742return f != $ac_func;
33743 ;
33744 return 0;
33745}
33746_ACEOF
33747rm -f conftest.$ac_objext conftest$ac_exeext
33748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33749 (eval $ac_link) 2>conftest.er1
33750 ac_status=$?
33751 grep -v '^ *+' conftest.er1 >conftest.err
33752 rm -f conftest.er1
33753 cat conftest.err >&5
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); } &&
01cb68df 33756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33758 (eval $ac_try) 2>&5
33759 ac_status=$?
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); }; } &&
33762 { ac_try='test -s conftest$ac_exeext'
33763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33764 (eval $ac_try) 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
33768 eval "$as_ac_var=yes"
33769else
33770 echo "$as_me: failed program was:" >&5
33771sed 's/^/| /' conftest.$ac_ext >&5
33772
33773eval "$as_ac_var=no"
33774fi
33775rm -f conftest.err conftest.$ac_objext \
33776 conftest$ac_exeext conftest.$ac_ext
33777fi
33778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33779echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33780if test `eval echo '${'$as_ac_var'}'` = yes; then
33781 cat >>confdefs.h <<_ACEOF
33782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33783_ACEOF
33784
33785 cat >>confdefs.h <<\_ACEOF
33786#define HAVE_SHL_LOAD 1
33787_ACEOF
33788
33789 HAVE_SHL_FUNCS=1
33790
33791else
33792
33793 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33794echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33795if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33797else
33798 ac_check_lib_save_LIBS=$LIBS
33799LIBS="-lshl_load $LIBS"
33800cat >conftest.$ac_ext <<_ACEOF
33801/* confdefs.h. */
33802_ACEOF
33803cat confdefs.h >>conftest.$ac_ext
33804cat >>conftest.$ac_ext <<_ACEOF
33805/* end confdefs.h. */
33806
33807/* Override any gcc2 internal prototype to avoid an error. */
33808#ifdef __cplusplus
33809extern "C"
33810#endif
33811/* We use char because int might match the return type of a gcc2
33812 builtin and then its argument prototype would still apply. */
33813char dld ();
33814int
33815main ()
33816{
33817dld ();
33818 ;
33819 return 0;
33820}
33821_ACEOF
33822rm -f conftest.$ac_objext conftest$ac_exeext
33823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33824 (eval $ac_link) 2>conftest.er1
33825 ac_status=$?
33826 grep -v '^ *+' conftest.er1 >conftest.err
33827 rm -f conftest.er1
33828 cat conftest.err >&5
33829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33830 (exit $ac_status); } &&
01cb68df 33831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33833 (eval $ac_try) 2>&5
33834 ac_status=$?
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); }; } &&
33837 { ac_try='test -s conftest$ac_exeext'
33838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839 (eval $ac_try) 2>&5
33840 ac_status=$?
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; }; then
33843 ac_cv_lib_shl_load_dld=yes
33844else
33845 echo "$as_me: failed program was:" >&5
33846sed 's/^/| /' conftest.$ac_ext >&5
33847
33848ac_cv_lib_shl_load_dld=no
33849fi
33850rm -f conftest.err conftest.$ac_objext \
33851 conftest$ac_exeext conftest.$ac_ext
33852LIBS=$ac_check_lib_save_LIBS
33853fi
33854echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33855echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33856if test $ac_cv_lib_shl_load_dld = yes; then
33857
33858 HAVE_SHL_FUNCS=1
33859 DL_LINK=" -ldld$DL_LINK"
33860
33861fi
33862
33863
33864fi
33865done
33866
33867
33868fi
33869
33870
33871fi
33872done
33873
33874
33875 if test "$HAVE_DL_FUNCS" = 1; then
33876
33877for ac_func in dlerror
33878do
33879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33880echo "$as_me:$LINENO: checking for $ac_func" >&5
33881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33882if eval "test \"\${$as_ac_var+set}\" = set"; then
33883 echo $ECHO_N "(cached) $ECHO_C" >&6
33884else
33885 cat >conftest.$ac_ext <<_ACEOF
33886/* confdefs.h. */
33887_ACEOF
33888cat confdefs.h >>conftest.$ac_ext
33889cat >>conftest.$ac_ext <<_ACEOF
33890/* end confdefs.h. */
33891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33893#define $ac_func innocuous_$ac_func
33894
33895/* System header to define __stub macros and hopefully few prototypes,
33896 which can conflict with char $ac_func (); below.
33897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33898 <limits.h> exists even on freestanding compilers. */
33899
33900#ifdef __STDC__
33901# include <limits.h>
33902#else
33903# include <assert.h>
33904#endif
33905
33906#undef $ac_func
33907
33908/* Override any gcc2 internal prototype to avoid an error. */
33909#ifdef __cplusplus
33910extern "C"
33911{
33912#endif
33913/* We use char because int might match the return type of a gcc2
33914 builtin and then its argument prototype would still apply. */
33915char $ac_func ();
33916/* The GNU C library defines this for functions which it implements
33917 to always fail with ENOSYS. Some functions are actually named
33918 something starting with __ and the normal name is an alias. */
33919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33920choke me
33921#else
33922char (*f) () = $ac_func;
33923#endif
33924#ifdef __cplusplus
33925}
33926#endif
33927
33928int
33929main ()
33930{
33931return f != $ac_func;
33932 ;
33933 return 0;
33934}
33935_ACEOF
33936rm -f conftest.$ac_objext conftest$ac_exeext
33937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33938 (eval $ac_link) 2>conftest.er1
33939 ac_status=$?
33940 grep -v '^ *+' conftest.er1 >conftest.err
33941 rm -f conftest.er1
33942 cat conftest.err >&5
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); } &&
01cb68df 33945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33948 ac_status=$?
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; } &&
33951 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33957 eval "$as_ac_var=yes"
33958else
33959 echo "$as_me: failed program was:" >&5
33960sed 's/^/| /' conftest.$ac_ext >&5
33961
33962eval "$as_ac_var=no"
33963fi
33964rm -f conftest.err conftest.$ac_objext \
33965 conftest$ac_exeext conftest.$ac_ext
33966fi
33967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33969if test `eval echo '${'$as_ac_var'}'` = yes; then
33970 cat >>confdefs.h <<_ACEOF
33971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33972_ACEOF
33973 cat >>confdefs.h <<\_ACEOF
33974#define HAVE_DLERROR 1
33975_ACEOF
33976
33977else
33978
33979 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33980echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33981if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33983else
33984 ac_check_lib_save_LIBS=$LIBS
33985LIBS="-ldl $LIBS"
33986cat >conftest.$ac_ext <<_ACEOF
33987/* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992
33993/* Override any gcc2 internal prototype to avoid an error. */
33994#ifdef __cplusplus
33995extern "C"
33996#endif
33997/* We use char because int might match the return type of a gcc2
33998 builtin and then its argument prototype would still apply. */
33999char dlerror ();
34000int
34001main ()
34002{
34003dlerror ();
34004 ;
34005 return 0;
34006}
34007_ACEOF
34008rm -f conftest.$ac_objext conftest$ac_exeext
34009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34010 (eval $ac_link) 2>conftest.er1
34011 ac_status=$?
34012 grep -v '^ *+' conftest.er1 >conftest.err
34013 rm -f conftest.er1
34014 cat conftest.err >&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
01cb68df 34017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; } &&
34023 { ac_try='test -s conftest$ac_exeext'
34024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 (eval $ac_try) 2>&5
34026 ac_status=$?
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; }; then
34029 ac_cv_lib_dl_dlerror=yes
34030else
34031 echo "$as_me: failed program was:" >&5
34032sed 's/^/| /' conftest.$ac_ext >&5
34033
34034ac_cv_lib_dl_dlerror=no
34035fi
34036rm -f conftest.err conftest.$ac_objext \
34037 conftest$ac_exeext conftest.$ac_ext
34038LIBS=$ac_check_lib_save_LIBS
34039fi
34040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34041echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34042if test $ac_cv_lib_dl_dlerror = yes; then
34043 cat >>confdefs.h <<\_ACEOF
34044#define HAVE_DLERROR 1
34045_ACEOF
34046
34047fi
34048
34049
34050
34051fi
34052done
34053
34054 fi
34055 fi
34056
34057 if test "$HAVE_DL_FUNCS" = 0; then
34058 if test "$HAVE_SHL_FUNCS" = 0; then
34059 if test "$USE_UNIX" = 1; then
34060 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34061echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34062 wxUSE_DYNAMIC_LOADER=no
34063 wxUSE_DYNLIB_CLASS=no
34064 else
34065 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34066echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34067 fi
34068 fi
34069 fi
34070 fi
34071fi
34072
34073if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34074 cat >>confdefs.h <<\_ACEOF
34075#define wxUSE_DYNAMIC_LOADER 1
34076_ACEOF
34077
34078fi
34079if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34080 cat >>confdefs.h <<\_ACEOF
34081#define wxUSE_DYNLIB_CLASS 1
34082_ACEOF
34083
34084fi
34085
34086
34087
34088if test "$wxUSE_PLUGINS" = "yes" ; then
34089 if test "$wxUSE_SHARED" = "no" ; then
34090 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34091echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34092 wxUSE_PLUGINS=no
34093 fi
34094 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34095 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34096echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34097 wxUSE_PLUGINS=no
34098 fi
34099 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34100 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34101echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34102 wxUSE_PLUGINS=no
34103 fi
34104 if test "$wxUSE_PLUGINS" = "yes" ; then
34105 cat >>confdefs.h <<\_ACEOF
34106#define wxUSE_PLUGINS 1
34107_ACEOF
34108
34109 fi
34110fi
34111
34112
34113if test "$wxUSE_STL" = "yes"; then
34114 cat >>confdefs.h <<\_ACEOF
34115#define wxUSE_STL 1
34116_ACEOF
34117
34118fi
34119
34120if test "$wxUSE_APPLE_IEEE" = "yes"; then
34121 cat >>confdefs.h <<\_ACEOF
34122#define wxUSE_APPLE_IEEE 1
34123_ACEOF
34124
34125fi
34126
34127if test "$wxUSE_TIMER" = "yes"; then
34128 cat >>confdefs.h <<\_ACEOF
34129#define wxUSE_TIMER 1
34130_ACEOF
34131
34132fi
34133
34134WITH_PLUGIN_SDL=0
34135if test "$wxUSE_SOUND" = "yes"; then
34136 if test "$USE_UNIX" = "1" ; then
34137
34138for ac_header in sys/soundcard.h
34139do
34140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34141if eval "test \"\${$as_ac_Header+set}\" = set"; then
34142 echo "$as_me:$LINENO: checking for $ac_header" >&5
34143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34144if eval "test \"\${$as_ac_Header+set}\" = set"; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
34146fi
34147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34149else
34150 # Is the header compilable?
34151echo "$as_me:$LINENO: checking $ac_header usability" >&5
34152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34153cat >conftest.$ac_ext <<_ACEOF
34154/* confdefs.h. */
34155_ACEOF
34156cat confdefs.h >>conftest.$ac_ext
34157cat >>conftest.$ac_ext <<_ACEOF
34158/* end confdefs.h. */
34159$ac_includes_default
34160#include <$ac_header>
34161_ACEOF
34162rm -f conftest.$ac_objext
34163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34164 (eval $ac_compile) 2>conftest.er1
34165 ac_status=$?
34166 grep -v '^ *+' conftest.er1 >conftest.err
34167 rm -f conftest.er1
34168 cat conftest.err >&5
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); } &&
01cb68df 34171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
34172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34173 (eval $ac_try) 2>&5
34174 ac_status=$?
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); }; } &&
34177 { ac_try='test -s conftest.$ac_objext'
34178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34179 (eval $ac_try) 2>&5
34180 ac_status=$?
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; }; then
34183 ac_header_compiler=yes
34184else
34185 echo "$as_me: failed program was:" >&5
34186sed 's/^/| /' conftest.$ac_ext >&5
34187
34188ac_header_compiler=no
34189fi
34190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34192echo "${ECHO_T}$ac_header_compiler" >&6
34193
34194# Is the header present?
34195echo "$as_me:$LINENO: checking $ac_header presence" >&5
34196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34197cat >conftest.$ac_ext <<_ACEOF
34198/* confdefs.h. */
34199_ACEOF
34200cat confdefs.h >>conftest.$ac_ext
34201cat >>conftest.$ac_ext <<_ACEOF
34202/* end confdefs.h. */
34203#include <$ac_header>
34204_ACEOF
34205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34207 ac_status=$?
34208 grep -v '^ *+' conftest.er1 >conftest.err
34209 rm -f conftest.er1
34210 cat conftest.err >&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } >/dev/null; then
34213 if test -s conftest.err; then
34214 ac_cpp_err=$ac_c_preproc_warn_flag
34215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34216 else
34217 ac_cpp_err=
34218 fi
34219else
34220 ac_cpp_err=yes
34221fi
34222if test -z "$ac_cpp_err"; then
34223 ac_header_preproc=yes
34224else
34225 echo "$as_me: failed program was:" >&5
34226sed 's/^/| /' conftest.$ac_ext >&5
34227
34228 ac_header_preproc=no
34229fi
34230rm -f conftest.err conftest.$ac_ext
34231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34232echo "${ECHO_T}$ac_header_preproc" >&6
34233
34234# So? What about this header?
34235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34236 yes:no: )
34237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34241 ac_header_preproc=yes
34242 ;;
34243 no:yes:* )
34244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34256 (
34257 cat <<\_ASBOX
34258## ----------------------------------------- ##
34259## Report this to wx-dev@lists.wxwindows.org ##
34260## ----------------------------------------- ##
34261_ASBOX
34262 ) |
34263 sed "s/^/$as_me: WARNING: /" >&2
34264 ;;
34265esac
34266echo "$as_me:$LINENO: checking for $ac_header" >&5
34267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34268if eval "test \"\${$as_ac_Header+set}\" = set"; then
34269 echo $ECHO_N "(cached) $ECHO_C" >&6
34270else
34271 eval "$as_ac_Header=\$ac_header_preproc"
34272fi
34273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34275
34276fi
34277if test `eval echo '${'$as_ac_Header'}'` = yes; then
34278 cat >>confdefs.h <<_ACEOF
34279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34280_ACEOF
34281
34282fi
34283
34284done
34285
34286
34287 if test "$wxUSE_LIBSDL" != "no"; then
34288
34289# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34290if test "${with_sdl_prefix+set}" = set; then
34291 withval="$with_sdl_prefix"
34292 sdl_prefix="$withval"
34293else
34294 sdl_prefix=""
34295fi;
34296
34297# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34298if test "${with_sdl_exec_prefix+set}" = set; then
34299 withval="$with_sdl_exec_prefix"
34300 sdl_exec_prefix="$withval"
34301else
34302 sdl_exec_prefix=""
34303fi;
34304# Check whether --enable-sdltest or --disable-sdltest was given.
34305if test "${enable_sdltest+set}" = set; then
34306 enableval="$enable_sdltest"
34307
34308else
34309 enable_sdltest=yes
34310fi;
34311
34312 if test x$sdl_exec_prefix != x ; then
34313 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34314 if test x${SDL_CONFIG+set} != xset ; then
34315 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34316 fi
34317 fi
34318 if test x$sdl_prefix != x ; then
34319 sdl_args="$sdl_args --prefix=$sdl_prefix"
34320 if test x${SDL_CONFIG+set} != xset ; then
34321 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34322 fi
34323 fi
34324
34325
34326 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34327 # Extract the first word of "sdl-config", so it can be a program name with args.
34328set dummy sdl-config; ac_word=$2
34329echo "$as_me:$LINENO: checking for $ac_word" >&5
34330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34331if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34333else
34334 case $SDL_CONFIG in
34335 [\\/]* | ?:[\\/]*)
34336 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34337 ;;
34338 *)
34339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34340for as_dir in $PATH
34341do
34342 IFS=$as_save_IFS
34343 test -z "$as_dir" && as_dir=.
34344 for ac_exec_ext in '' $ac_executable_extensions; do
34345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34346 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34348 break 2
34349 fi
34350done
34351done
34352
34353 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34354 ;;
34355esac
34356fi
34357SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34358
34359if test -n "$SDL_CONFIG"; then
34360 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34361echo "${ECHO_T}$SDL_CONFIG" >&6
34362else
34363 echo "$as_me:$LINENO: result: no" >&5
34364echo "${ECHO_T}no" >&6
34365fi
34366
34367 min_sdl_version=1.2.0
34368 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34369echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34370 no_sdl=""
34371 if test "$SDL_CONFIG" = "no" ; then
34372 no_sdl=yes
34373 else
34374 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34375 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34376
34377 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34379 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34381 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34383 if test "x$enable_sdltest" = "xyes" ; then
34384 ac_save_CFLAGS="$CFLAGS"
34385 ac_save_LIBS="$LIBS"
34386 CFLAGS="$CFLAGS $SDL_CFLAGS"
34387 LIBS="$LIBS $SDL_LIBS"
34388 rm -f conf.sdltest
34389 if test "$cross_compiling" = yes; then
34390 echo $ac_n "cross compiling; assumed OK... $ac_c"
34391else
34392 cat >conftest.$ac_ext <<_ACEOF
34393/* confdefs.h. */
34394_ACEOF
34395cat confdefs.h >>conftest.$ac_ext
34396cat >>conftest.$ac_ext <<_ACEOF
34397/* end confdefs.h. */
34398
34399#include <stdio.h>
34400#include <stdlib.h>
34401#include <string.h>
34402#include "SDL.h"
34403
34404char*
34405my_strdup (char *str)
34406{
34407 char *new_str;
34408
34409 if (str)
34410 {
34411 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34412 strcpy (new_str, str);
34413 }
34414 else
34415 new_str = NULL;
34416
34417 return new_str;
34418}
34419
34420int main (int argc, char *argv[])
34421{
34422 int major, minor, micro;
34423 char *tmp_version;
34424
34425 /* This hangs on some systems (?)
34426 system ("touch conf.sdltest");
34427 */
34428 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34429
34430 /* HP/UX 9 (%@#!) writes to sscanf strings */
34431 tmp_version = my_strdup("$min_sdl_version");
34432 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34433 printf("%s, bad version string\n", "$min_sdl_version");
34434 exit(1);
34435 }
34436
34437 if (($sdl_major_version > major) ||
34438 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34439 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34440 {
34441 return 0;
34442 }
34443 else
34444 {
34445 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34446 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34447 printf("*** best to upgrade to the required version.\n");
34448 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34449 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34450 printf("*** config.cache before re-running configure\n");
34451 return 1;
34452 }
34453}
34454
34455
34456_ACEOF
34457rm -f conftest$ac_exeext
34458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34459 (eval $ac_link) 2>&5
34460 ac_status=$?
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464 (eval $ac_try) 2>&5
34465 ac_status=$?
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); }; }; then
34468 :
34469else
34470 echo "$as_me: program exited with status $ac_status" >&5
34471echo "$as_me: failed program was:" >&5
34472sed 's/^/| /' conftest.$ac_ext >&5
34473
34474( exit $ac_status )
34475no_sdl=yes
34476fi
34477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34478fi
34479 CFLAGS="$ac_save_CFLAGS"
34480 LIBS="$ac_save_LIBS"
34481 fi
34482 fi
34483 if test "x$no_sdl" = x ; then
34484 echo "$as_me:$LINENO: result: yes" >&5
34485echo "${ECHO_T}yes" >&6
34486
34487 EXTRALIBS_SDL="$SDL_LIBS"
34488 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34489 cat >>confdefs.h <<\_ACEOF
34490#define wxUSE_LIBSDL 1
34491_ACEOF
34492
34493
34494 else
34495 echo "$as_me:$LINENO: result: no" >&5
34496echo "${ECHO_T}no" >&6
34497 if test "$SDL_CONFIG" = "no" ; then
34498 echo "*** The sdl-config script installed by SDL could not be found"
34499 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34500 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34501 echo "*** full path to sdl-config."
34502 else
34503 if test -f conf.sdltest ; then
34504 :
34505 else
34506 echo "*** Could not run SDL test program, checking why..."
34507 CFLAGS="$CFLAGS $SDL_CFLAGS"
34508 LIBS="$LIBS $SDL_LIBS"
34509 cat >conftest.$ac_ext <<_ACEOF
34510/* confdefs.h. */
34511_ACEOF
34512cat confdefs.h >>conftest.$ac_ext
34513cat >>conftest.$ac_ext <<_ACEOF
34514/* end confdefs.h. */
34515
34516#include <stdio.h>
34517#include "SDL.h"
34518
34519int main(int argc, char *argv[])
34520{ return 0; }
34521#undef main
34522#define main K_and_R_C_main
34523
34524int
34525main ()
34526{
34527 return 0;
34528 ;
34529 return 0;
34530}
34531_ACEOF
34532rm -f conftest.$ac_objext conftest$ac_exeext
34533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34534 (eval $ac_link) 2>conftest.er1
34535 ac_status=$?
34536 grep -v '^ *+' conftest.er1 >conftest.err
34537 rm -f conftest.er1
34538 cat conftest.err >&5
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); } &&
01cb68df 34541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
34542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34543 (eval $ac_try) 2>&5
34544 ac_status=$?
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); }; } &&
34547 { ac_try='test -s conftest$ac_exeext'
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34550 ac_status=$?
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; }; then
34553 echo "*** The test program compiled, but did not run. This usually means"
34554 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34555 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34558 echo "*** is required on your system"
34559 echo "***"
34560 echo "*** If you have an old version installed, it is best to remove it, although"
34561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34562else
34563 echo "$as_me: failed program was:" >&5
34564sed 's/^/| /' conftest.$ac_ext >&5
34565
34566 echo "*** The test program failed to compile or link. See the file config.log for the"
34567 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34568 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34569 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34570fi
34571rm -f conftest.err conftest.$ac_objext \
34572 conftest$ac_exeext conftest.$ac_ext
34573 CFLAGS="$ac_save_CFLAGS"
34574 LIBS="$ac_save_LIBS"
34575 fi
34576 fi
34577 SDL_CFLAGS=""
34578 SDL_LIBS=""
34579 wxUSE_LIBSDL="no"
34580 fi
34581
34582
34583 rm -f conf.sdltest
34584
34585 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34586 WITH_PLUGIN_SDL=1
34587 fi
34588 fi
34589 fi
34590
34591 cat >>confdefs.h <<\_ACEOF
34592#define wxUSE_SOUND 1
34593_ACEOF
34594
34595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34596fi
34597
34598if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34599 cat >>confdefs.h <<\_ACEOF
34600#define wxUSE_CMDLINE_PARSER 1
34601_ACEOF
34602
34603fi
34604
34605if test "$wxUSE_STOPWATCH" = "yes"; then
34606 cat >>confdefs.h <<\_ACEOF
34607#define wxUSE_STOPWATCH 1
34608_ACEOF
34609
34610fi
34611
34612if test "$wxUSE_DATETIME" = "yes"; then
34613 cat >>confdefs.h <<\_ACEOF
34614#define wxUSE_DATETIME 1
34615_ACEOF
34616
34617fi
34618
34619if test "$wxUSE_FILE" = "yes"; then
34620 cat >>confdefs.h <<\_ACEOF
34621#define wxUSE_FILE 1
34622_ACEOF
34623
34624fi
34625
34626if test "$wxUSE_FFILE" = "yes"; then
34627 cat >>confdefs.h <<\_ACEOF
34628#define wxUSE_FFILE 1
34629_ACEOF
34630
34631fi
34632
34633if test "$wxUSE_FILESYSTEM" = "yes"; then
34634 cat >>confdefs.h <<\_ACEOF
34635#define wxUSE_FILESYSTEM 1
34636_ACEOF
34637
34638fi
34639
34640if test "$wxUSE_FS_ZIP" = "yes"; then
34641 cat >>confdefs.h <<\_ACEOF
34642#define wxUSE_FS_ZIP 1
34643_ACEOF
34644
34645fi
34646
34647if test "$wxUSE_ZIPSTREAM" = "yes"; then
34648 cat >>confdefs.h <<\_ACEOF
34649#define wxUSE_ZIPSTREAM 1
34650_ACEOF
34651
34652fi
34653
34654if test "$wxUSE_GZSTREAM" = "yes"; then
34655 cat >>confdefs.h <<\_ACEOF
34656#define wxUSE_GZSTREAM 1
34657_ACEOF
34658
34659fi
34660
34661if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34662 cat >>confdefs.h <<\_ACEOF
34663#define wxUSE_ON_FATAL_EXCEPTION 1
34664_ACEOF
34665
34666fi
34667
34668if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34669 cat >>confdefs.h <<\_ACEOF
34670#define wxUSE_SNGLINST_CHECKER 1
34671_ACEOF
34672
34673fi
34674
34675if test "$wxUSE_BUSYINFO" = "yes"; then
34676 cat >>confdefs.h <<\_ACEOF
34677#define wxUSE_BUSYINFO 1
34678_ACEOF
34679
34680fi
34681
34682if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34683 cat >>confdefs.h <<\_ACEOF
34684#define wxUSE_STD_IOSTREAM 1
34685_ACEOF
34686
34687fi
34688
34689if test "$wxUSE_TEXTBUFFER" = "yes"; then
34690 cat >>confdefs.h <<\_ACEOF
34691#define wxUSE_TEXTBUFFER 1
34692_ACEOF
34693
34694fi
34695
34696if test "$wxUSE_TEXTFILE" = "yes"; then
34697 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34698 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34699echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34700 else
34701 cat >>confdefs.h <<\_ACEOF
34702#define wxUSE_TEXTFILE 1
34703_ACEOF
34704
34705 fi
34706fi
34707
34708if test "$wxUSE_CONFIG" = "yes" ; then
34709 if test "$wxUSE_TEXTFILE" != "yes"; then
34710 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34711echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34712 else
34713 cat >>confdefs.h <<\_ACEOF
34714#define wxUSE_CONFIG 1
34715_ACEOF
34716
34717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34718 fi
34719fi
34720
34721if test "$wxUSE_INTL" = "yes" ; then
34722 if test "$wxUSE_FILE" != "yes"; then
34723 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34724echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34725 else
34726 cat >>confdefs.h <<\_ACEOF
34727#define wxUSE_INTL 1
34728_ACEOF
34729
34730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34731 GUIDIST="$GUIDIST INTL_DIST"
34732 fi
34733fi
34734
34735if test "$wxUSE_LOG" = "yes"; then
34736 cat >>confdefs.h <<\_ACEOF
34737#define wxUSE_LOG 1
34738_ACEOF
34739
34740
34741 if test "$wxUSE_LOGGUI" = "yes"; then
34742 cat >>confdefs.h <<\_ACEOF
34743#define wxUSE_LOGGUI 1
34744_ACEOF
34745
34746 fi
34747
34748 if test "$wxUSE_LOGWINDOW" = "yes"; then
34749 cat >>confdefs.h <<\_ACEOF
34750#define wxUSE_LOGWINDOW 1
34751_ACEOF
34752
34753 fi
34754
34755 if test "$wxUSE_LOGDIALOG" = "yes"; then
34756 cat >>confdefs.h <<\_ACEOF
34757#define wxUSE_LOG_DIALOG 1
34758_ACEOF
34759
34760 fi
34761fi
34762
34763if test "$wxUSE_LONGLONG" = "yes"; then
34764 cat >>confdefs.h <<\_ACEOF
34765#define wxUSE_LONGLONG 1
34766_ACEOF
34767
34768fi
34769
34770if test "$wxUSE_GEOMETRY" = "yes"; then
34771 cat >>confdefs.h <<\_ACEOF
34772#define wxUSE_GEOMETRY 1
34773_ACEOF
34774
34775fi
34776
34777if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34778 cat >>confdefs.h <<\_ACEOF
34779#define wxUSE_DIALUP_MANAGER 1
34780_ACEOF
34781
34782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34783fi
34784
34785if test "$wxUSE_STREAMS" = "yes" ; then
34786 cat >>confdefs.h <<\_ACEOF
34787#define wxUSE_STREAMS 1
34788_ACEOF
34789
34790fi
34791
34792
34793if test "$wxUSE_DATETIME" = "yes"; then
34794
34795for ac_func in strptime
34796do
34797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34798echo "$as_me:$LINENO: checking for $ac_func" >&5
34799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34800if eval "test \"\${$as_ac_var+set}\" = set"; then
34801 echo $ECHO_N "(cached) $ECHO_C" >&6
34802else
34803 cat >conftest.$ac_ext <<_ACEOF
34804/* confdefs.h. */
34805_ACEOF
34806cat confdefs.h >>conftest.$ac_ext
34807cat >>conftest.$ac_ext <<_ACEOF
34808/* end confdefs.h. */
34809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34811#define $ac_func innocuous_$ac_func
34812
34813/* System header to define __stub macros and hopefully few prototypes,
34814 which can conflict with char $ac_func (); below.
34815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34816 <limits.h> exists even on freestanding compilers. */
34817
34818#ifdef __STDC__
34819# include <limits.h>
34820#else
34821# include <assert.h>
34822#endif
34823
34824#undef $ac_func
34825
34826/* Override any gcc2 internal prototype to avoid an error. */
34827#ifdef __cplusplus
34828extern "C"
34829{
34830#endif
34831/* We use char because int might match the return type of a gcc2
34832 builtin and then its argument prototype would still apply. */
34833char $ac_func ();
34834/* The GNU C library defines this for functions which it implements
34835 to always fail with ENOSYS. Some functions are actually named
34836 something starting with __ and the normal name is an alias. */
34837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34838choke me
34839#else
34840char (*f) () = $ac_func;
34841#endif
34842#ifdef __cplusplus
34843}
34844#endif
34845
34846int
34847main ()
34848{
34849return f != $ac_func;
34850 ;
34851 return 0;
34852}
34853_ACEOF
34854rm -f conftest.$ac_objext conftest$ac_exeext
34855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34856 (eval $ac_link) 2>conftest.er1
34857 ac_status=$?
34858 grep -v '^ *+' conftest.er1 >conftest.err
34859 rm -f conftest.er1
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } &&
01cb68df 34863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
34864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34865 (eval $ac_try) 2>&5
34866 ac_status=$?
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); }; } &&
34869 { ac_try='test -s conftest$ac_exeext'
34870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871 (eval $ac_try) 2>&5
34872 ac_status=$?
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); }; }; then
34875 eval "$as_ac_var=yes"
34876else
34877 echo "$as_me: failed program was:" >&5
34878sed 's/^/| /' conftest.$ac_ext >&5
34879
34880eval "$as_ac_var=no"
34881fi
34882rm -f conftest.err conftest.$ac_objext \
34883 conftest$ac_exeext conftest.$ac_ext
34884fi
34885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34887if test `eval echo '${'$as_ac_var'}'` = yes; then
34888 cat >>confdefs.h <<_ACEOF
34889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34890_ACEOF
34891
34892fi
34893done
34894
34895
34896 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34897echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34898if test "${wx_cv_var_timezone+set}" = set; then
34899 echo $ECHO_N "(cached) $ECHO_C" >&6
34900else
34901
34902 cat >conftest.$ac_ext <<_ACEOF
34903/* confdefs.h. */
34904_ACEOF
34905cat confdefs.h >>conftest.$ac_ext
34906cat >>conftest.$ac_ext <<_ACEOF
34907/* end confdefs.h. */
34908
34909 #include <time.h>
34910
34911int
34912main ()
34913{
34914
34915 int tz;
34916 tz = timezone;
34917
34918 ;
34919 return 0;
34920}
34921_ACEOF
34922rm -f conftest.$ac_objext
34923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34924 (eval $ac_compile) 2>conftest.er1
34925 ac_status=$?
34926 grep -v '^ *+' conftest.er1 >conftest.err
34927 rm -f conftest.er1
34928 cat conftest.err >&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); } &&
01cb68df 34931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
34932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933 (eval $ac_try) 2>&5
34934 ac_status=$?
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); }; } &&
34937 { ac_try='test -s conftest.$ac_objext'
34938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939 (eval $ac_try) 2>&5
34940 ac_status=$?
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34943
34944 wx_cv_var_timezone=timezone
34945
34946else
34947 echo "$as_me: failed program was:" >&5
34948sed 's/^/| /' conftest.$ac_ext >&5
34949
34950
34951 cat >conftest.$ac_ext <<_ACEOF
34952/* confdefs.h. */
34953_ACEOF
34954cat confdefs.h >>conftest.$ac_ext
34955cat >>conftest.$ac_ext <<_ACEOF
34956/* end confdefs.h. */
34957
34958 #include <time.h>
34959
34960int
34961main ()
34962{
34963
34964 int tz;
34965 tz = _timezone;
34966
34967 ;
34968 return 0;
34969}
34970_ACEOF
34971rm -f conftest.$ac_objext
34972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34973 (eval $ac_compile) 2>conftest.er1
34974 ac_status=$?
34975 grep -v '^ *+' conftest.er1 >conftest.err
34976 rm -f conftest.er1
34977 cat conftest.err >&5
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); } &&
01cb68df 34980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
34981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34982 (eval $ac_try) 2>&5
34983 ac_status=$?
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); }; } &&
34986 { ac_try='test -s conftest.$ac_objext'
34987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34988 (eval $ac_try) 2>&5
34989 ac_status=$?
34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991 (exit $ac_status); }; }; then
34992
34993 wx_cv_var_timezone=_timezone
34994
34995else
34996 echo "$as_me: failed program was:" >&5
34997sed 's/^/| /' conftest.$ac_ext >&5
34998
34999
35000 cat >conftest.$ac_ext <<_ACEOF
35001/* confdefs.h. */
35002_ACEOF
35003cat confdefs.h >>conftest.$ac_ext
35004cat >>conftest.$ac_ext <<_ACEOF
35005/* end confdefs.h. */
35006
35007 #include <time.h>
35008
35009int
35010main ()
35011{
35012
35013 int tz;
35014 tz = __timezone;
35015
35016 ;
35017 return 0;
35018}
35019_ACEOF
35020rm -f conftest.$ac_objext
35021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35022 (eval $ac_compile) 2>conftest.er1
35023 ac_status=$?
35024 grep -v '^ *+' conftest.er1 >conftest.err
35025 rm -f conftest.er1
35026 cat conftest.err >&5
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); } &&
01cb68df 35029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031 (eval $ac_try) 2>&5
35032 ac_status=$?
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; } &&
35035 { ac_try='test -s conftest.$ac_objext'
35036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037 (eval $ac_try) 2>&5
35038 ac_status=$?
35039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); }; }; then
35041
35042 wx_cv_var_timezone=__timezone
35043
35044else
35045 echo "$as_me: failed program was:" >&5
35046sed 's/^/| /' conftest.$ac_ext >&5
35047
35048
35049 if test "$USE_DOS" = 0 ; then
35050 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35051echo "$as_me: WARNING: no timezone variable" >&2;}
35052 fi
35053
35054
35055fi
35056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35057
35058
35059fi
35060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35061
35062
35063fi
35064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35065
35066
35067fi
35068echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35069echo "${ECHO_T}$wx_cv_var_timezone" >&6
35070
35071 if test "x$wx_cv_var_timezone" != x ; then
35072 cat >>confdefs.h <<_ACEOF
35073#define WX_TIMEZONE $wx_cv_var_timezone
35074_ACEOF
35075
35076 fi
35077
35078
35079for ac_func in localtime
35080do
35081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35082echo "$as_me:$LINENO: checking for $ac_func" >&5
35083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35084if eval "test \"\${$as_ac_var+set}\" = set"; then
35085 echo $ECHO_N "(cached) $ECHO_C" >&6
35086else
35087 cat >conftest.$ac_ext <<_ACEOF
35088/* confdefs.h. */
35089_ACEOF
35090cat confdefs.h >>conftest.$ac_ext
35091cat >>conftest.$ac_ext <<_ACEOF
35092/* end confdefs.h. */
35093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35095#define $ac_func innocuous_$ac_func
35096
35097/* System header to define __stub macros and hopefully few prototypes,
35098 which can conflict with char $ac_func (); below.
35099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35100 <limits.h> exists even on freestanding compilers. */
35101
35102#ifdef __STDC__
35103# include <limits.h>
35104#else
35105# include <assert.h>
35106#endif
35107
35108#undef $ac_func
35109
35110/* Override any gcc2 internal prototype to avoid an error. */
35111#ifdef __cplusplus
35112extern "C"
35113{
35114#endif
35115/* We use char because int might match the return type of a gcc2
35116 builtin and then its argument prototype would still apply. */
35117char $ac_func ();
35118/* The GNU C library defines this for functions which it implements
35119 to always fail with ENOSYS. Some functions are actually named
35120 something starting with __ and the normal name is an alias. */
35121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35122choke me
35123#else
35124char (*f) () = $ac_func;
35125#endif
35126#ifdef __cplusplus
35127}
35128#endif
35129
35130int
35131main ()
35132{
35133return f != $ac_func;
35134 ;
35135 return 0;
35136}
35137_ACEOF
35138rm -f conftest.$ac_objext conftest$ac_exeext
35139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35140 (eval $ac_link) 2>conftest.er1
35141 ac_status=$?
35142 grep -v '^ *+' conftest.er1 >conftest.err
35143 rm -f conftest.er1
35144 cat conftest.err >&5
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); } &&
01cb68df 35147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149 (eval $ac_try) 2>&5
35150 ac_status=$?
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); }; } &&
35153 { ac_try='test -s conftest$ac_exeext'
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35156 ac_status=$?
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; }; then
35159 eval "$as_ac_var=yes"
35160else
35161 echo "$as_me: failed program was:" >&5
35162sed 's/^/| /' conftest.$ac_ext >&5
35163
35164eval "$as_ac_var=no"
35165fi
35166rm -f conftest.err conftest.$ac_objext \
35167 conftest$ac_exeext conftest.$ac_ext
35168fi
35169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35171if test `eval echo '${'$as_ac_var'}'` = yes; then
35172 cat >>confdefs.h <<_ACEOF
35173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35174_ACEOF
35175
35176fi
35177done
35178
35179
35180 if test "$ac_cv_func_localtime" = "yes"; then
35181 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35182echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35183if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35184 echo $ECHO_N "(cached) $ECHO_C" >&6
35185else
35186
35187 cat >conftest.$ac_ext <<_ACEOF
35188/* confdefs.h. */
35189_ACEOF
35190cat confdefs.h >>conftest.$ac_ext
35191cat >>conftest.$ac_ext <<_ACEOF
35192/* end confdefs.h. */
35193
35194 #include <time.h>
35195
35196int
35197main ()
35198{
35199
35200 struct tm tm;
35201 tm.tm_gmtoff++;
35202
35203 ;
35204 return 0;
35205}
35206_ACEOF
35207rm -f conftest.$ac_objext
35208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35209 (eval $ac_compile) 2>conftest.er1
35210 ac_status=$?
35211 grep -v '^ *+' conftest.er1 >conftest.err
35212 rm -f conftest.er1
35213 cat conftest.err >&5
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); } &&
01cb68df 35216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218 (eval $ac_try) 2>&5
35219 ac_status=$?
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; } &&
35222 { ac_try='test -s conftest.$ac_objext'
35223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35224 (eval $ac_try) 2>&5
35225 ac_status=$?
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); }; }; then
35228
35229 wx_cv_struct_tm_has_gmtoff=yes
35230
35231else
35232 echo "$as_me: failed program was:" >&5
35233sed 's/^/| /' conftest.$ac_ext >&5
35234
35235wx_cv_struct_tm_has_gmtoff=no
35236
35237fi
35238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35239
35240fi
35241echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35242echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35243 fi
35244
35245 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35246 cat >>confdefs.h <<\_ACEOF
35247#define WX_GMTOFF_IN_TM 1
35248_ACEOF
35249
35250 fi
35251
35252
35253
35254for ac_func in gettimeofday ftime
35255do
35256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35257echo "$as_me:$LINENO: checking for $ac_func" >&5
35258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35259if eval "test \"\${$as_ac_var+set}\" = set"; then
35260 echo $ECHO_N "(cached) $ECHO_C" >&6
35261else
35262 cat >conftest.$ac_ext <<_ACEOF
35263/* confdefs.h. */
35264_ACEOF
35265cat confdefs.h >>conftest.$ac_ext
35266cat >>conftest.$ac_ext <<_ACEOF
35267/* end confdefs.h. */
35268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35270#define $ac_func innocuous_$ac_func
35271
35272/* System header to define __stub macros and hopefully few prototypes,
35273 which can conflict with char $ac_func (); below.
35274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35275 <limits.h> exists even on freestanding compilers. */
35276
35277#ifdef __STDC__
35278# include <limits.h>
35279#else
35280# include <assert.h>
35281#endif
35282
35283#undef $ac_func
35284
35285/* Override any gcc2 internal prototype to avoid an error. */
35286#ifdef __cplusplus
35287extern "C"
35288{
35289#endif
35290/* We use char because int might match the return type of a gcc2
35291 builtin and then its argument prototype would still apply. */
35292char $ac_func ();
35293/* The GNU C library defines this for functions which it implements
35294 to always fail with ENOSYS. Some functions are actually named
35295 something starting with __ and the normal name is an alias. */
35296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35297choke me
35298#else
35299char (*f) () = $ac_func;
35300#endif
35301#ifdef __cplusplus
35302}
35303#endif
35304
35305int
35306main ()
35307{
35308return f != $ac_func;
35309 ;
35310 return 0;
35311}
35312_ACEOF
35313rm -f conftest.$ac_objext conftest$ac_exeext
35314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35315 (eval $ac_link) 2>conftest.er1
35316 ac_status=$?
35317 grep -v '^ *+' conftest.er1 >conftest.err
35318 rm -f conftest.er1
35319 cat conftest.err >&5
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); } &&
01cb68df 35322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324 (eval $ac_try) 2>&5
35325 ac_status=$?
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); }; } &&
35328 { ac_try='test -s conftest$ac_exeext'
35329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35330 (eval $ac_try) 2>&5
35331 ac_status=$?
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); }; }; then
35334 eval "$as_ac_var=yes"
35335else
35336 echo "$as_me: failed program was:" >&5
35337sed 's/^/| /' conftest.$ac_ext >&5
35338
35339eval "$as_ac_var=no"
35340fi
35341rm -f conftest.err conftest.$ac_objext \
35342 conftest$ac_exeext conftest.$ac_ext
35343fi
35344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35346if test `eval echo '${'$as_ac_var'}'` = yes; then
35347 cat >>confdefs.h <<_ACEOF
35348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35349_ACEOF
35350 break
35351fi
35352done
35353
35354
35355 if test "$ac_cv_func_gettimeofday" = "yes"; then
35356 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35357echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35358if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35359 echo $ECHO_N "(cached) $ECHO_C" >&6
35360else
35361
35362
35363
35364 ac_ext=cc
35365ac_cpp='$CXXCPP $CPPFLAGS'
35366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35369
35370
35371 cat >conftest.$ac_ext <<_ACEOF
35372/* confdefs.h. */
35373_ACEOF
35374cat confdefs.h >>conftest.$ac_ext
35375cat >>conftest.$ac_ext <<_ACEOF
35376/* end confdefs.h. */
35377
35378 #include <sys/time.h>
35379 #include <unistd.h>
35380
35381int
35382main ()
35383{
35384
35385 struct timeval tv;
35386 gettimeofday(&tv, NULL);
35387
35388 ;
35389 return 0;
35390}
35391_ACEOF
35392rm -f conftest.$ac_objext
35393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35394 (eval $ac_compile) 2>conftest.er1
35395 ac_status=$?
35396 grep -v '^ *+' conftest.er1 >conftest.err
35397 rm -f conftest.er1
35398 cat conftest.err >&5
35399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); } &&
01cb68df 35401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35403 (eval $ac_try) 2>&5
35404 ac_status=$?
35405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406 (exit $ac_status); }; } &&
35407 { ac_try='test -s conftest.$ac_objext'
35408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35409 (eval $ac_try) 2>&5
35410 ac_status=$?
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); }; }; then
35413 wx_cv_func_gettimeofday_has_2_args=yes
35414else
35415 echo "$as_me: failed program was:" >&5
35416sed 's/^/| /' conftest.$ac_ext >&5
35417
35418cat >conftest.$ac_ext <<_ACEOF
35419/* confdefs.h. */
35420_ACEOF
35421cat confdefs.h >>conftest.$ac_ext
35422cat >>conftest.$ac_ext <<_ACEOF
35423/* end confdefs.h. */
35424
35425 #include <sys/time.h>
35426 #include <unistd.h>
35427
35428int
35429main ()
35430{
35431
35432 struct timeval tv;
35433 gettimeofday(&tv);
35434
35435 ;
35436 return 0;
35437}
35438_ACEOF
35439rm -f conftest.$ac_objext
35440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35441 (eval $ac_compile) 2>conftest.er1
35442 ac_status=$?
35443 grep -v '^ *+' conftest.er1 >conftest.err
35444 rm -f conftest.er1
35445 cat conftest.err >&5
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); } &&
01cb68df 35448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35450 (eval $ac_try) 2>&5
35451 ac_status=$?
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); }; } &&
35454 { ac_try='test -s conftest.$ac_objext'
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35457 ac_status=$?
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; }; then
35460 wx_cv_func_gettimeofday_has_2_args=no
35461else
35462 echo "$as_me: failed program was:" >&5
35463sed 's/^/| /' conftest.$ac_ext >&5
35464
35465
35466 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35467echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35468 wx_cv_func_gettimeofday_has_2_args=unknown
35469
35470
35471fi
35472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35473
35474fi
35475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35476 ac_ext=c
35477ac_cpp='$CPP $CPPFLAGS'
35478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35480ac_compiler_gnu=$ac_cv_c_compiler_gnu
35481
35482
35483fi
35484echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35485echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35486
35487 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35488 cat >>confdefs.h <<\_ACEOF
35489#define WX_GETTIMEOFDAY_NO_TZ 1
35490_ACEOF
35491
35492 fi
35493 fi
35494
35495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35496fi
35497
35498
35499if test "$wxUSE_SOCKETS" = "yes"; then
35500 if test "$wxUSE_MGL" = "1"; then
35501 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35502echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35503 wxUSE_SOCKETS="no"
35504 fi
35505fi
35506
35507if test "$wxUSE_SOCKETS" = "yes"; then
35508 if test "$TOOLKIT" != "MSW"; then
35509 echo "$as_me:$LINENO: checking for socket" >&5
35510echo $ECHO_N "checking for socket... $ECHO_C" >&6
35511if test "${ac_cv_func_socket+set}" = set; then
35512 echo $ECHO_N "(cached) $ECHO_C" >&6
35513else
35514 cat >conftest.$ac_ext <<_ACEOF
35515/* confdefs.h. */
35516_ACEOF
35517cat confdefs.h >>conftest.$ac_ext
35518cat >>conftest.$ac_ext <<_ACEOF
35519/* end confdefs.h. */
35520/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35522#define socket innocuous_socket
35523
35524/* System header to define __stub macros and hopefully few prototypes,
35525 which can conflict with char socket (); below.
35526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35527 <limits.h> exists even on freestanding compilers. */
35528
35529#ifdef __STDC__
35530# include <limits.h>
35531#else
35532# include <assert.h>
35533#endif
35534
35535#undef socket
35536
35537/* Override any gcc2 internal prototype to avoid an error. */
35538#ifdef __cplusplus
35539extern "C"
35540{
35541#endif
35542/* We use char because int might match the return type of a gcc2
35543 builtin and then its argument prototype would still apply. */
35544char socket ();
35545/* The GNU C library defines this for functions which it implements
35546 to always fail with ENOSYS. Some functions are actually named
35547 something starting with __ and the normal name is an alias. */
35548#if defined (__stub_socket) || defined (__stub___socket)
35549choke me
35550#else
35551char (*f) () = socket;
35552#endif
35553#ifdef __cplusplus
35554}
35555#endif
35556
35557int
35558main ()
35559{
35560return f != socket;
35561 ;
35562 return 0;
35563}
35564_ACEOF
35565rm -f conftest.$ac_objext conftest$ac_exeext
35566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35567 (eval $ac_link) 2>conftest.er1
35568 ac_status=$?
35569 grep -v '^ *+' conftest.er1 >conftest.err
35570 rm -f conftest.er1
35571 cat conftest.err >&5
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); } &&
01cb68df 35574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35576 (eval $ac_try) 2>&5
35577 ac_status=$?
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); }; } &&
35580 { ac_try='test -s conftest$ac_exeext'
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35583 ac_status=$?
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; }; then
35586 ac_cv_func_socket=yes
35587else
35588 echo "$as_me: failed program was:" >&5
35589sed 's/^/| /' conftest.$ac_ext >&5
35590
35591ac_cv_func_socket=no
35592fi
35593rm -f conftest.err conftest.$ac_objext \
35594 conftest$ac_exeext conftest.$ac_ext
35595fi
35596echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35597echo "${ECHO_T}$ac_cv_func_socket" >&6
35598if test $ac_cv_func_socket = yes; then
35599 :
35600else
35601
35602 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35603echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35604if test "${ac_cv_lib_socket_socket+set}" = set; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35606else
35607 ac_check_lib_save_LIBS=$LIBS
35608LIBS="-lsocket $LIBS"
35609cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h. */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h. */
35615
35616/* Override any gcc2 internal prototype to avoid an error. */
35617#ifdef __cplusplus
35618extern "C"
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char socket ();
35623int
35624main ()
35625{
35626socket ();
35627 ;
35628 return 0;
35629}
35630_ACEOF
35631rm -f conftest.$ac_objext conftest$ac_exeext
35632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35633 (eval $ac_link) 2>conftest.er1
35634 ac_status=$?
35635 grep -v '^ *+' conftest.er1 >conftest.err
35636 rm -f conftest.er1
35637 cat conftest.err >&5
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); } &&
01cb68df 35640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; } &&
35646 { ac_try='test -s conftest$ac_exeext'
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; }; then
35652 ac_cv_lib_socket_socket=yes
35653else
35654 echo "$as_me: failed program was:" >&5
35655sed 's/^/| /' conftest.$ac_ext >&5
35656
35657ac_cv_lib_socket_socket=no
35658fi
35659rm -f conftest.err conftest.$ac_objext \
35660 conftest$ac_exeext conftest.$ac_ext
35661LIBS=$ac_check_lib_save_LIBS
35662fi
35663echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35664echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35665if test $ac_cv_lib_socket_socket = yes; then
35666 if test "$INET_LINK" != " -lsocket"; then
35667 INET_LINK="$INET_LINK -lsocket"
35668 fi
35669else
35670
35671 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35672echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35673 wxUSE_SOCKETS=no
35674
35675
35676fi
35677
35678
35679
35680fi
35681
35682 fi
35683fi
35684
35685if test "$wxUSE_SOCKETS" = "yes" ; then
35686 if test "$TOOLKIT" != "MSW"; then
35687 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35688echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35689if test "${wx_cv_type_getsockname3+set}" = set; then
35690 echo $ECHO_N "(cached) $ECHO_C" >&6
35691else
35692
35693 cat >conftest.$ac_ext <<_ACEOF
35694/* confdefs.h. */
35695_ACEOF
35696cat confdefs.h >>conftest.$ac_ext
35697cat >>conftest.$ac_ext <<_ACEOF
35698/* end confdefs.h. */
35699
35700 #include <sys/types.h>
35701 #include <sys/socket.h>
35702
35703int
35704main ()
35705{
35706
35707 socklen_t len;
35708 getsockname(0, 0, &len);
35709
35710 ;
35711 return 0;
35712}
35713_ACEOF
35714rm -f conftest.$ac_objext
35715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35716 (eval $ac_compile) 2>conftest.er1
35717 ac_status=$?
35718 grep -v '^ *+' conftest.er1 >conftest.err
35719 rm -f conftest.er1
35720 cat conftest.err >&5
35721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35722 (exit $ac_status); } &&
01cb68df 35723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35725 (eval $ac_try) 2>&5
35726 ac_status=$?
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); }; } &&
35729 { ac_try='test -s conftest.$ac_objext'
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35732 ac_status=$?
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; }; then
35735 wx_cv_type_getsockname3=socklen_t
35736else
35737 echo "$as_me: failed program was:" >&5
35738sed 's/^/| /' conftest.$ac_ext >&5
35739
35740
35741 CFLAGS_OLD="$CFLAGS"
35742 if test "$GCC" = yes ; then
35743 CFLAGS="$CFLAGS -Werror"
35744 fi
35745
35746 cat >conftest.$ac_ext <<_ACEOF
35747/* confdefs.h. */
35748_ACEOF
35749cat confdefs.h >>conftest.$ac_ext
35750cat >>conftest.$ac_ext <<_ACEOF
35751/* end confdefs.h. */
35752
35753 #include <sys/types.h>
35754 #include <sys/socket.h>
35755
35756int
35757main ()
35758{
35759
35760 size_t len;
35761 getsockname(0, 0, &len);
35762
35763 ;
35764 return 0;
35765}
35766_ACEOF
35767rm -f conftest.$ac_objext
35768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35769 (eval $ac_compile) 2>conftest.er1
35770 ac_status=$?
35771 grep -v '^ *+' conftest.er1 >conftest.err
35772 rm -f conftest.er1
35773 cat conftest.err >&5
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); } &&
01cb68df 35776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35779 ac_status=$?
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } &&
35782 { ac_try='test -s conftest.$ac_objext'
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; }; then
35788 wx_cv_type_getsockname3=size_t
35789else
35790 echo "$as_me: failed program was:" >&5
35791sed 's/^/| /' conftest.$ac_ext >&5
35792
35793cat >conftest.$ac_ext <<_ACEOF
35794/* confdefs.h. */
35795_ACEOF
35796cat confdefs.h >>conftest.$ac_ext
35797cat >>conftest.$ac_ext <<_ACEOF
35798/* end confdefs.h. */
35799
35800 #include <sys/types.h>
35801 #include <sys/socket.h>
35802
35803int
35804main ()
35805{
35806
35807 int len;
35808 getsockname(0, 0, &len);
35809
35810 ;
35811 return 0;
35812}
35813_ACEOF
35814rm -f conftest.$ac_objext
35815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35816 (eval $ac_compile) 2>conftest.er1
35817 ac_status=$?
35818 grep -v '^ *+' conftest.er1 >conftest.err
35819 rm -f conftest.er1
35820 cat conftest.err >&5
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); } &&
01cb68df 35823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35826 ac_status=$?
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; } &&
35829 { ac_try='test -s conftest.$ac_objext'
35830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35831 (eval $ac_try) 2>&5
35832 ac_status=$?
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); }; }; then
35835 wx_cv_type_getsockname3=int
35836else
35837 echo "$as_me: failed program was:" >&5
35838sed 's/^/| /' conftest.$ac_ext >&5
35839
35840wx_cv_type_getsockname3=unknown
35841
35842fi
35843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35844
35845fi
35846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35847
35848 CFLAGS="$CFLAGS_OLD"
35849
35850
35851fi
35852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35853
35854fi
35855echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35856echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35857
35858 if test "$wx_cv_type_getsockname3" = "unknown"; then
35859 wxUSE_SOCKETS=no
35860 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35861echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35862 else
35863 cat >>confdefs.h <<_ACEOF
35864#define SOCKLEN_T $wx_cv_type_getsockname3
35865_ACEOF
35866
35867 fi
35868 fi
35869fi
35870
35871if test "$wxUSE_SOCKETS" = "yes" ; then
35872 cat >>confdefs.h <<\_ACEOF
35873#define wxUSE_SOCKETS 1
35874_ACEOF
35875
35876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35877fi
35878
35879if test "$wxUSE_PROTOCOL" = "yes"; then
35880 if test "$wxUSE_SOCKETS" != "yes"; then
35881 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35882echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35883 wxUSE_PROTOCOL=no
35884 fi
35885fi
35886
35887if test "$wxUSE_PROTOCOL" = "yes"; then
35888 cat >>confdefs.h <<\_ACEOF
35889#define wxUSE_PROTOCOL 1
35890_ACEOF
35891
35892
35893 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35894 cat >>confdefs.h <<\_ACEOF
35895#define wxUSE_PROTOCOL_HTTP 1
35896_ACEOF
35897
35898 fi
35899 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35900 cat >>confdefs.h <<\_ACEOF
35901#define wxUSE_PROTOCOL_FTP 1
35902_ACEOF
35903
35904 fi
35905 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35906 cat >>confdefs.h <<\_ACEOF
35907#define wxUSE_PROTOCOL_FILE 1
35908_ACEOF
35909
35910 fi
35911else
35912 if test "$wxUSE_FS_INET" = "yes"; then
35913 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35914echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35915 wxUSE_FS_INET="no"
35916 fi
35917fi
35918
35919if test "$wxUSE_URL" = "yes"; then
35920 if test "$wxUSE_PROTOCOL" != "yes"; then
35921 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35922echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35923 wxUSE_URL=no
35924 fi
35925 if test "$wxUSE_URL" = "yes"; then
35926 cat >>confdefs.h <<\_ACEOF
35927#define wxUSE_URL 1
35928_ACEOF
35929
35930 fi
35931fi
35932
35933if test "$wxUSE_FS_INET" = "yes"; then
35934 cat >>confdefs.h <<\_ACEOF
35935#define wxUSE_FS_INET 1
35936_ACEOF
35937
35938fi
35939
35940
35941if test "$wxUSE_GUI" = "yes"; then
35942
35943 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35944 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35945echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35946 wxUSE_JOYSTICK=no
35947 fi
35948
35949 if test "$TOOLKIT" != "MSW"; then
35950 if test "$wxUSE_JOYSTICK" = "yes"; then
35951
35952for ac_header in linux/joystick.h
35953do
35954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35955if eval "test \"\${$as_ac_Header+set}\" = set"; then
35956 echo "$as_me:$LINENO: checking for $ac_header" >&5
35957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35958if eval "test \"\${$as_ac_Header+set}\" = set"; then
35959 echo $ECHO_N "(cached) $ECHO_C" >&6
35960fi
35961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35963else
35964 # Is the header compilable?
35965echo "$as_me:$LINENO: checking $ac_header usability" >&5
35966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35967cat >conftest.$ac_ext <<_ACEOF
35968/* confdefs.h. */
35969_ACEOF
35970cat confdefs.h >>conftest.$ac_ext
35971cat >>conftest.$ac_ext <<_ACEOF
35972/* end confdefs.h. */
35973$ac_includes_default
35974#include <$ac_header>
35975_ACEOF
35976rm -f conftest.$ac_objext
35977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978 (eval $ac_compile) 2>conftest.er1
35979 ac_status=$?
35980 grep -v '^ *+' conftest.er1 >conftest.err
35981 rm -f conftest.er1
35982 cat conftest.err >&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
01cb68df 35985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
35986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987 (eval $ac_try) 2>&5
35988 ac_status=$?
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); }; } &&
35991 { ac_try='test -s conftest.$ac_objext'
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; }; then
35997 ac_header_compiler=yes
35998else
35999 echo "$as_me: failed program was:" >&5
36000sed 's/^/| /' conftest.$ac_ext >&5
36001
36002ac_header_compiler=no
36003fi
36004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36006echo "${ECHO_T}$ac_header_compiler" >&6
36007
36008# Is the header present?
36009echo "$as_me:$LINENO: checking $ac_header presence" >&5
36010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36011cat >conftest.$ac_ext <<_ACEOF
36012/* confdefs.h. */
36013_ACEOF
36014cat confdefs.h >>conftest.$ac_ext
36015cat >>conftest.$ac_ext <<_ACEOF
36016/* end confdefs.h. */
36017#include <$ac_header>
36018_ACEOF
36019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36021 ac_status=$?
36022 grep -v '^ *+' conftest.er1 >conftest.err
36023 rm -f conftest.er1
36024 cat conftest.err >&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); } >/dev/null; then
36027 if test -s conftest.err; then
36028 ac_cpp_err=$ac_c_preproc_warn_flag
36029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36030 else
36031 ac_cpp_err=
36032 fi
36033else
36034 ac_cpp_err=yes
36035fi
36036if test -z "$ac_cpp_err"; then
36037 ac_header_preproc=yes
36038else
36039 echo "$as_me: failed program was:" >&5
36040sed 's/^/| /' conftest.$ac_ext >&5
36041
36042 ac_header_preproc=no
36043fi
36044rm -f conftest.err conftest.$ac_ext
36045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36046echo "${ECHO_T}$ac_header_preproc" >&6
36047
36048# So? What about this header?
36049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36050 yes:no: )
36051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36055 ac_header_preproc=yes
36056 ;;
36057 no:yes:* )
36058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36070 (
36071 cat <<\_ASBOX
36072## ----------------------------------------- ##
36073## Report this to wx-dev@lists.wxwindows.org ##
36074## ----------------------------------------- ##
36075_ASBOX
36076 ) |
36077 sed "s/^/$as_me: WARNING: /" >&2
36078 ;;
36079esac
36080echo "$as_me:$LINENO: checking for $ac_header" >&5
36081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36082if eval "test \"\${$as_ac_Header+set}\" = set"; then
36083 echo $ECHO_N "(cached) $ECHO_C" >&6
36084else
36085 eval "$as_ac_Header=\$ac_header_preproc"
36086fi
36087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36089
36090fi
36091if test `eval echo '${'$as_ac_Header'}'` = yes; then
36092 cat >>confdefs.h <<_ACEOF
36093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36094_ACEOF
36095
36096fi
36097
36098done
36099
36100 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36101 wxUSE_JOYSTICK=no
36102 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36103echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36104 fi
36105 fi
36106 fi
36107
36108 if test "$wxUSE_JOYSTICK" = "yes"; then
36109 cat >>confdefs.h <<\_ACEOF
36110#define wxUSE_JOYSTICK 1
36111_ACEOF
36112
36113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36114 fi
36115fi
36116
36117
36118
36119if test "$wxUSE_FONTMAP" = "yes" ; then
36120 cat >>confdefs.h <<\_ACEOF
36121#define wxUSE_FONTMAP 1
36122_ACEOF
36123
36124fi
36125
36126if test "$wxUSE_UNICODE" = "yes" ; then
36127 cat >>confdefs.h <<\_ACEOF
36128#define wxUSE_UNICODE 1
36129_ACEOF
36130
36131
36132 if test "$USE_WIN32" != 1; then
36133 wxUSE_UNICODE_MSLU=no
36134 fi
36135
36136 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36137 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36138echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36139if test "${ac_cv_lib_unicows_main+set}" = set; then
36140 echo $ECHO_N "(cached) $ECHO_C" >&6
36141else
36142 ac_check_lib_save_LIBS=$LIBS
36143LIBS="-lunicows $LIBS"
36144cat >conftest.$ac_ext <<_ACEOF
36145/* confdefs.h. */
36146_ACEOF
36147cat confdefs.h >>conftest.$ac_ext
36148cat >>conftest.$ac_ext <<_ACEOF
36149/* end confdefs.h. */
36150
36151
36152int
36153main ()
36154{
36155main ();
36156 ;
36157 return 0;
36158}
36159_ACEOF
36160rm -f conftest.$ac_objext conftest$ac_exeext
36161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36162 (eval $ac_link) 2>conftest.er1
36163 ac_status=$?
36164 grep -v '^ *+' conftest.er1 >conftest.err
36165 rm -f conftest.er1
36166 cat conftest.err >&5
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); } &&
01cb68df 36169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
36170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36171 (eval $ac_try) 2>&5
36172 ac_status=$?
36173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174 (exit $ac_status); }; } &&
36175 { ac_try='test -s conftest$ac_exeext'
36176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36177 (eval $ac_try) 2>&5
36178 ac_status=$?
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); }; }; then
36181 ac_cv_lib_unicows_main=yes
36182else
36183 echo "$as_me: failed program was:" >&5
36184sed 's/^/| /' conftest.$ac_ext >&5
36185
36186ac_cv_lib_unicows_main=no
36187fi
36188rm -f conftest.err conftest.$ac_objext \
36189 conftest$ac_exeext conftest.$ac_ext
36190LIBS=$ac_check_lib_save_LIBS
36191fi
36192echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36193echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36194if test $ac_cv_lib_unicows_main = yes; then
36195
36196 cat >>confdefs.h <<\_ACEOF
36197#define wxUSE_UNICODE_MSLU 1
36198_ACEOF
36199
36200
36201else
36202
36203 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36204 Applications will only run on Windows NT/2000/XP!" >&5
36205echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36206 Applications will only run on Windows NT/2000/XP!" >&2;}
36207 wxUSE_UNICODE_MSLU=no
36208
36209fi
36210
36211 fi
36212fi
36213
36214if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36215 cat >>confdefs.h <<\_ACEOF
36216#define wxUSE_EXPERIMENTAL_PRINTF 1
36217_ACEOF
36218
36219fi
36220
36221
36222if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36223 cat >>confdefs.h <<\_ACEOF
36224#define wxUSE_POSTSCRIPT 1
36225_ACEOF
36226
36227fi
36228
36229cat >>confdefs.h <<\_ACEOF
36230#define wxUSE_AFM_FOR_POSTSCRIPT 1
36231_ACEOF
36232
36233
36234cat >>confdefs.h <<\_ACEOF
36235#define wxUSE_NORMALIZED_PS_FONTS 1
36236_ACEOF
36237
36238
36239
36240if test "$wxUSE_CONSTRAINTS" = "yes"; then
36241 cat >>confdefs.h <<\_ACEOF
36242#define wxUSE_CONSTRAINTS 1
36243_ACEOF
36244
36245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36246fi
36247
36248if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36249 cat >>confdefs.h <<\_ACEOF
36250#define wxUSE_MDI_ARCHITECTURE 1
36251_ACEOF
36252
36253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36254fi
36255
36256if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36257 cat >>confdefs.h <<\_ACEOF
36258#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36259_ACEOF
36260
36261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36262 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36264 fi
36265fi
36266
36267if test "$wxUSE_HELP" = "yes"; then
36268 cat >>confdefs.h <<\_ACEOF
36269#define wxUSE_HELP 1
36270_ACEOF
36271
36272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36273
36274 if test "$wxUSE_MSW" = 1; then
36275 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36276 cat >>confdefs.h <<\_ACEOF
36277#define wxUSE_MS_HTML_HELP 1
36278_ACEOF
36279
36280 fi
36281 fi
36282
36283 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36284 if test "$wxUSE_HTML" = "yes"; then
36285 cat >>confdefs.h <<\_ACEOF
36286#define wxUSE_WXHTML_HELP 1
36287_ACEOF
36288
36289 else
36290 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36291echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36292 wxUSE_WXHTML_HELP=no
36293 fi
36294 fi
36295fi
36296
36297if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36298 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36299 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36300echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36301 else
36302 cat >>confdefs.h <<\_ACEOF
36303#define wxUSE_PRINTING_ARCHITECTURE 1
36304_ACEOF
36305
36306 fi
36307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36308fi
36309
36310if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36311 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36312echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36313 { (exit 1); exit 1; }; }
36314fi
36315
36316
36317if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36318 -o "$wxUSE_CLIPBOARD" = "yes" \
36319 -o "$wxUSE_OLE" = "yes" \
36320 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36321
36322for ac_header in ole2.h
36323do
36324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36325if eval "test \"\${$as_ac_Header+set}\" = set"; then
36326 echo "$as_me:$LINENO: checking for $ac_header" >&5
36327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36328if eval "test \"\${$as_ac_Header+set}\" = set"; then
36329 echo $ECHO_N "(cached) $ECHO_C" >&6
36330fi
36331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36333else
36334 # Is the header compilable?
36335echo "$as_me:$LINENO: checking $ac_header usability" >&5
36336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36337cat >conftest.$ac_ext <<_ACEOF
36338/* confdefs.h. */
36339_ACEOF
36340cat confdefs.h >>conftest.$ac_ext
36341cat >>conftest.$ac_ext <<_ACEOF
36342/* end confdefs.h. */
36343$ac_includes_default
36344#include <$ac_header>
36345_ACEOF
36346rm -f conftest.$ac_objext
36347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36348 (eval $ac_compile) 2>conftest.er1
36349 ac_status=$?
36350 grep -v '^ *+' conftest.er1 >conftest.err
36351 rm -f conftest.er1
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } &&
01cb68df 36355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
36356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36357 (eval $ac_try) 2>&5
36358 ac_status=$?
36359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360 (exit $ac_status); }; } &&
36361 { ac_try='test -s conftest.$ac_objext'
36362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36363 (eval $ac_try) 2>&5
36364 ac_status=$?
36365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366 (exit $ac_status); }; }; then
36367 ac_header_compiler=yes
36368else
36369 echo "$as_me: failed program was:" >&5
36370sed 's/^/| /' conftest.$ac_ext >&5
36371
36372ac_header_compiler=no
36373fi
36374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36376echo "${ECHO_T}$ac_header_compiler" >&6
36377
36378# Is the header present?
36379echo "$as_me:$LINENO: checking $ac_header presence" >&5
36380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36381cat >conftest.$ac_ext <<_ACEOF
36382/* confdefs.h. */
36383_ACEOF
36384cat confdefs.h >>conftest.$ac_ext
36385cat >>conftest.$ac_ext <<_ACEOF
36386/* end confdefs.h. */
36387#include <$ac_header>
36388_ACEOF
36389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36391 ac_status=$?
36392 grep -v '^ *+' conftest.er1 >conftest.err
36393 rm -f conftest.er1
36394 cat conftest.err >&5
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); } >/dev/null; then
36397 if test -s conftest.err; then
36398 ac_cpp_err=$ac_c_preproc_warn_flag
36399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36400 else
36401 ac_cpp_err=
36402 fi
36403else
36404 ac_cpp_err=yes
36405fi
36406if test -z "$ac_cpp_err"; then
36407 ac_header_preproc=yes
36408else
36409 echo "$as_me: failed program was:" >&5
36410sed 's/^/| /' conftest.$ac_ext >&5
36411
36412 ac_header_preproc=no
36413fi
36414rm -f conftest.err conftest.$ac_ext
36415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36416echo "${ECHO_T}$ac_header_preproc" >&6
36417
36418# So? What about this header?
36419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36420 yes:no: )
36421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36425 ac_header_preproc=yes
36426 ;;
36427 no:yes:* )
36428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36440 (
36441 cat <<\_ASBOX
36442## ----------------------------------------- ##
36443## Report this to wx-dev@lists.wxwindows.org ##
36444## ----------------------------------------- ##
36445_ASBOX
36446 ) |
36447 sed "s/^/$as_me: WARNING: /" >&2
36448 ;;
36449esac
36450echo "$as_me:$LINENO: checking for $ac_header" >&5
36451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36452if eval "test \"\${$as_ac_Header+set}\" = set"; then
36453 echo $ECHO_N "(cached) $ECHO_C" >&6
36454else
36455 eval "$as_ac_Header=\$ac_header_preproc"
36456fi
36457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36459
36460fi
36461if test `eval echo '${'$as_ac_Header'}'` = yes; then
36462 cat >>confdefs.h <<_ACEOF
36463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36464_ACEOF
36465
36466fi
36467
36468done
36469
36470
36471 if test "$ac_cv_header_ole2_h" = "yes" ; then
36472 if test "$GCC" = yes ; then
36473
36474
36475 ac_ext=cc
36476ac_cpp='$CXXCPP $CPPFLAGS'
36477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36480
36481
36482 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36483echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36484 cat >conftest.$ac_ext <<_ACEOF
36485/* confdefs.h. */
36486_ACEOF
36487cat confdefs.h >>conftest.$ac_ext
36488cat >>conftest.$ac_ext <<_ACEOF
36489/* end confdefs.h. */
36490#include <windows.h>
36491 #include <ole2.h>
36492int
36493main ()
36494{
36495
36496 ;
36497 return 0;
36498}
36499_ACEOF
36500rm -f conftest.$ac_objext
36501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36502 (eval $ac_compile) 2>conftest.er1
36503 ac_status=$?
36504 grep -v '^ *+' conftest.er1 >conftest.err
36505 rm -f conftest.er1
36506 cat conftest.err >&5
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); } &&
01cb68df 36509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
36510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511 (eval $ac_try) 2>&5
36512 ac_status=$?
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; } &&
36515 { ac_try='test -s conftest.$ac_objext'
36516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517 (eval $ac_try) 2>&5
36518 ac_status=$?
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); }; }; then
36521 echo "$as_me:$LINENO: result: no" >&5
36522echo "${ECHO_T}no" >&6
36523else
36524 echo "$as_me: failed program was:" >&5
36525sed 's/^/| /' conftest.$ac_ext >&5
36526
36527echo "$as_me:$LINENO: result: yes" >&5
36528echo "${ECHO_T}yes" >&6
36529 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36530fi
36531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36532 ac_ext=c
36533ac_cpp='$CPP $CPPFLAGS'
36534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36536ac_compiler_gnu=$ac_cv_c_compiler_gnu
36537
36538 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36539 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36540 if test "$wxUSE_OLE" = "yes" ; then
36541 cat >>confdefs.h <<\_ACEOF
36542#define wxUSE_OLE 1
36543_ACEOF
36544
36545 fi
36546 fi
36547
36548 if test "$wxUSE_DATAOBJ" = "yes" ; then
36549 cat >>confdefs.h <<\_ACEOF
36550#define wxUSE_DATAOBJ 1
36551_ACEOF
36552
36553 fi
36554 else
36555 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36556echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36557
36558 wxUSE_CLIPBOARD=no
36559 wxUSE_DRAG_AND_DROP=no
36560 wxUSE_DATAOBJ=no
36561 wxUSE_OLE=no
36562 fi
36563
36564 if test "$wxUSE_METAFILE" = "yes"; then
36565 cat >>confdefs.h <<\_ACEOF
36566#define wxUSE_METAFILE 1
36567_ACEOF
36568
36569
36570 cat >>confdefs.h <<\_ACEOF
36571#define wxUSE_ENH_METAFILE 1
36572_ACEOF
36573
36574 fi
36575fi
36576
36577if test "$wxUSE_IPC" = "yes"; then
36578 if test "$wxUSE_SOCKETS" != "yes"; then
36579 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36580echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36581 fi
36582
36583 cat >>confdefs.h <<\_ACEOF
36584#define wxUSE_IPC 1
36585_ACEOF
36586
36587fi
36588
36589if test "$wxUSE_CLIPBOARD" = "yes"; then
36590 if test "$wxUSE_MGL" = 1; then
36591 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36592echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36593 wxUSE_CLIPBOARD=no
36594 fi
36595
36596 if test "$wxUSE_CLIPBOARD" = "yes"; then
36597 cat >>confdefs.h <<\_ACEOF
36598#define wxUSE_CLIPBOARD 1
36599_ACEOF
36600
36601
36602 cat >>confdefs.h <<\_ACEOF
36603#define wxUSE_DATAOBJ 1
36604_ACEOF
36605
36606 fi
36607fi
36608
36609if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36610 if test "$wxUSE_GTK" = 1; then
36611 if test "$WXGTK12" != 1; then
36612 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36613echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36614 wxUSE_DRAG_AND_DROP=no
36615 fi
36616 fi
36617
36618 if test "$wxUSE_MOTIF" = 1; then
36619 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36620echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36621 wxUSE_DRAG_AND_DROP=no
36622 fi
36623
36624 if test "$wxUSE_X11" = 1; then
36625 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36626echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36627 wxUSE_DRAG_AND_DROP=no
36628 fi
36629
36630 if test "$wxUSE_MGL" = 1; then
36631 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36632echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36633 wxUSE_DRAG_AND_DROP=no
36634 fi
36635
36636 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36637 cat >>confdefs.h <<\_ACEOF
36638#define wxUSE_DRAG_AND_DROP 1
36639_ACEOF
36640
36641 fi
36642
36643fi
36644
36645if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36647fi
36648
36649if test "$wxUSE_SPLINES" = "yes" ; then
36650 cat >>confdefs.h <<\_ACEOF
36651#define wxUSE_SPLINES 1
36652_ACEOF
36653
36654fi
36655
36656
36657USES_CONTROLS=0
36658if test "$wxUSE_CONTROLS" = "yes"; then
36659 USES_CONTROLS=1
36660fi
36661
36662if test "$wxUSE_ACCEL" = "yes"; then
36663 cat >>confdefs.h <<\_ACEOF
36664#define wxUSE_ACCEL 1
36665_ACEOF
36666
36667 USES_CONTROLS=1
36668fi
36669
36670if test "$wxUSE_BUTTON" = "yes"; then
36671 cat >>confdefs.h <<\_ACEOF
36672#define wxUSE_BUTTON 1
36673_ACEOF
36674
36675 USES_CONTROLS=1
36676fi
36677
36678if test "$wxUSE_BMPBUTTON" = "yes"; then
36679 cat >>confdefs.h <<\_ACEOF
36680#define wxUSE_BMPBUTTON 1
36681_ACEOF
36682
36683 USES_CONTROLS=1
36684fi
36685
36686if test "$wxUSE_CALCTRL" = "yes"; then
36687 cat >>confdefs.h <<\_ACEOF
36688#define wxUSE_CALENDARCTRL 1
36689_ACEOF
36690
36691 USES_CONTROLS=1
36692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36693fi
36694
36695if test "$wxUSE_CARET" = "yes"; then
36696 cat >>confdefs.h <<\_ACEOF
36697#define wxUSE_CARET 1
36698_ACEOF
36699
36700 USES_CONTROLS=1
36701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36702fi
36703
36704if test "$wxUSE_COMBOBOX" = "yes"; then
36705 cat >>confdefs.h <<\_ACEOF
36706#define wxUSE_COMBOBOX 1
36707_ACEOF
36708
36709 USES_CONTROLS=1
36710fi
36711
36712if test "$wxUSE_CHOICE" = "yes"; then
36713 cat >>confdefs.h <<\_ACEOF
36714#define wxUSE_CHOICE 1
36715_ACEOF
36716
36717 USES_CONTROLS=1
36718fi
36719
36720if test "$wxUSE_CHECKBOX" = "yes"; then
36721 cat >>confdefs.h <<\_ACEOF
36722#define wxUSE_CHECKBOX 1
36723_ACEOF
36724
36725 USES_CONTROLS=1
36726fi
36727
36728if test "$wxUSE_CHECKLST" = "yes"; then
36729 cat >>confdefs.h <<\_ACEOF
36730#define wxUSE_CHECKLISTBOX 1
36731_ACEOF
36732
36733 USES_CONTROLS=1
36734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36735fi
36736
36737if test "$wxUSE_DISPLAY" = "yes"; then
36738 cat >>confdefs.h <<\_ACEOF
36739#define wxUSE_DISPLAY 1
36740_ACEOF
36741
36742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36743fi
36744
36745if test "$wxUSE_GAUGE" = "yes"; then
36746 cat >>confdefs.h <<\_ACEOF
36747#define wxUSE_GAUGE 1
36748_ACEOF
36749
36750 USES_CONTROLS=1
36751fi
36752
36753if test "$wxUSE_GRID" = "yes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755#define wxUSE_GRID 1
36756_ACEOF
36757
36758 USES_CONTROLS=1
36759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36760fi
36761
36762if test "$wxUSE_IMAGLIST" = "yes"; then
36763 cat >>confdefs.h <<\_ACEOF
36764#define wxUSE_IMAGLIST 1
36765_ACEOF
36766
36767fi
36768
36769if test "$wxUSE_LISTBOOK" = "yes"; then
36770 cat >>confdefs.h <<\_ACEOF
36771#define wxUSE_LISTBOOK 1
36772_ACEOF
36773
36774 USES_CONTROLS=1
36775fi
36776
36777if test "$wxUSE_LISTBOX" = "yes"; then
36778 cat >>confdefs.h <<\_ACEOF
36779#define wxUSE_LISTBOX 1
36780_ACEOF
36781
36782 USES_CONTROLS=1
36783fi
36784
36785if test "$wxUSE_LISTCTRL" = "yes"; then
36786 if test "$wxUSE_IMAGLIST" = "yes"; then
36787 cat >>confdefs.h <<\_ACEOF
36788#define wxUSE_LISTCTRL 1
36789_ACEOF
36790
36791 USES_CONTROLS=1
36792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36793 else
36794 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36795echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36796 fi
36797fi
36798
36799if test "$wxUSE_NOTEBOOK" = "yes"; then
36800 cat >>confdefs.h <<\_ACEOF
36801#define wxUSE_NOTEBOOK 1
36802_ACEOF
36803
36804 USES_CONTROLS=1
36805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36806fi
36807
36808
36809if test "$wxUSE_RADIOBOX" = "yes"; then
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_RADIOBOX 1
36812_ACEOF
36813
36814 USES_CONTROLS=1
36815fi
36816
36817if test "$wxUSE_RADIOBTN" = "yes"; then
36818 cat >>confdefs.h <<\_ACEOF
36819#define wxUSE_RADIOBTN 1
36820_ACEOF
36821
36822 USES_CONTROLS=1
36823fi
36824
36825if test "$wxUSE_SASH" = "yes"; then
36826 cat >>confdefs.h <<\_ACEOF
36827#define wxUSE_SASH 1
36828_ACEOF
36829
36830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36831fi
36832
36833if test "$wxUSE_SCROLLBAR" = "yes"; then
36834 cat >>confdefs.h <<\_ACEOF
36835#define wxUSE_SCROLLBAR 1
36836_ACEOF
36837
36838 USES_CONTROLS=1
36839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36840fi
36841
36842if test "$wxUSE_SLIDER" = "yes"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_SLIDER 1
36845_ACEOF
36846
36847 USES_CONTROLS=1
36848fi
36849
36850if test "$wxUSE_SPINBTN" = "yes"; then
36851 cat >>confdefs.h <<\_ACEOF
36852#define wxUSE_SPINBTN 1
36853_ACEOF
36854
36855 USES_CONTROLS=1
36856fi
36857
36858if test "$wxUSE_SPINCTRL" = "yes"; then
36859 cat >>confdefs.h <<\_ACEOF
36860#define wxUSE_SPINCTRL 1
36861_ACEOF
36862
36863 USES_CONTROLS=1
36864fi
36865
36866if test "$wxUSE_SPLITTER" = "yes"; then
36867 cat >>confdefs.h <<\_ACEOF
36868#define wxUSE_SPLITTER 1
36869_ACEOF
36870
36871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36872fi
36873
36874if test "$wxUSE_STATBMP" = "yes"; then
36875 cat >>confdefs.h <<\_ACEOF
36876#define wxUSE_STATBMP 1
36877_ACEOF
36878
36879 USES_CONTROLS=1
36880fi
36881
36882if test "$wxUSE_STATBOX" = "yes"; then
36883 cat >>confdefs.h <<\_ACEOF
36884#define wxUSE_STATBOX 1
36885_ACEOF
36886
36887 USES_CONTROLS=1
36888fi
36889
36890if test "$wxUSE_STATTEXT" = "yes"; then
36891 cat >>confdefs.h <<\_ACEOF
36892#define wxUSE_STATTEXT 1
36893_ACEOF
36894
36895 USES_CONTROLS=1
36896fi
36897
36898if test "$wxUSE_STATLINE" = "yes"; then
36899 cat >>confdefs.h <<\_ACEOF
36900#define wxUSE_STATLINE 1
36901_ACEOF
36902
36903 USES_CONTROLS=1
36904fi
36905
36906if test "$wxUSE_STATUSBAR" = "yes"; then
36907 cat >>confdefs.h <<\_ACEOF
36908#define wxUSE_STATUSBAR 1
36909_ACEOF
36910
36911 USES_CONTROLS=1
36912
36913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36914fi
36915
36916if test "$wxUSE_TABDIALOG" = "yes"; then
36917 cat >>confdefs.h <<\_ACEOF
36918#define wxUSE_TAB_DIALOG 1
36919_ACEOF
36920
36921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36922fi
36923
36924if test "$wxUSE_TEXTCTRL" = "yes"; then
36925 cat >>confdefs.h <<\_ACEOF
36926#define wxUSE_TEXTCTRL 1
36927_ACEOF
36928
36929 USES_CONTROLS=1
36930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36931fi
36932
36933if test "$wxUSE_TOGGLEBTN" = "yes"; then
36934 if test "$wxUSE_COCOA" = 1 ; then
36935 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36936echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36937 wxUSE_TOGGLEBTN=no
36938 fi
36939 if test "$wxUSE_UNIVERSAL" = "yes"; then
36940 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36941echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36942 wxUSE_TOGGLEBTN=no
36943 fi
36944
36945 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36946 cat >>confdefs.h <<\_ACEOF
36947#define wxUSE_TOGGLEBTN 1
36948_ACEOF
36949
36950 USES_CONTROLS=1
36951 fi
36952fi
36953
36954if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36955 cat >>confdefs.h <<\_ACEOF
36956#define wxUSE_TOOLBAR_SIMPLE 1
36957_ACEOF
36958
36959 wxUSE_TOOLBAR="yes"
36960 USES_CONTROLS=1
36961fi
36962
36963if test "$wxUSE_TOOLBAR" = "yes"; then
36964 cat >>confdefs.h <<\_ACEOF
36965#define wxUSE_TOOLBAR 1
36966_ACEOF
36967
36968 USES_CONTROLS=1
36969
36970 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36971 wxUSE_TOOLBAR_NATIVE="yes"
36972 fi
36973
36974 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36975 cat >>confdefs.h <<\_ACEOF
36976#define wxUSE_TOOLBAR_NATIVE 1
36977_ACEOF
36978
36979 USES_CONTROLS=1
36980 fi
36981
36982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36983fi
36984
36985if test "$wxUSE_TOOLTIPS" = "yes"; then
36986 if test "$wxUSE_MOTIF" = 1; then
36987 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36988echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36989 else
36990 if test "$wxUSE_UNIVERSAL" = "yes"; then
36991 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36992echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36993 else
36994 cat >>confdefs.h <<\_ACEOF
36995#define wxUSE_TOOLTIPS 1
36996_ACEOF
36997
36998 fi
36999 fi
37000fi
37001
37002if test "$wxUSE_TREECTRL" = "yes"; then
37003 if test "$wxUSE_IMAGLIST" = "yes"; then
37004 cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_TREECTRL 1
37006_ACEOF
37007
37008 USES_CONTROLS=1
37009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37010 else
37011 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37012echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37013 fi
37014fi
37015
37016if test "$wxUSE_POPUPWIN" = "yes"; then
37017 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37018 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37019echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37020 else
37021 if test "$wxUSE_PM" = 1; then
37022 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37023echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37024 else
37025 cat >>confdefs.h <<\_ACEOF
37026#define wxUSE_POPUPWIN 1
37027_ACEOF
37028
37029
37030 USES_CONTROLS=1
37031 fi
37032 fi
37033fi
37034
37035if test "$wxUSE_TIPWINDOW" = "yes"; then
37036 if test "$wxUSE_PM" = 1; then
37037 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37038echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37039 else
37040 cat >>confdefs.h <<\_ACEOF
37041#define wxUSE_TIPWINDOW 1
37042_ACEOF
37043
37044 fi
37045fi
37046
37047if test "$USES_CONTROLS" = 1; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_CONTROLS 1
37050_ACEOF
37051
37052fi
37053
37054
37055if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37056 cat >>confdefs.h <<\_ACEOF
37057#define wxUSE_ACCESSIBILITY 1
37058_ACEOF
37059
37060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37061fi
37062
37063if test "$wxUSE_DRAGIMAGE" = "yes"; then
37064 cat >>confdefs.h <<\_ACEOF
37065#define wxUSE_DRAGIMAGE 1
37066_ACEOF
37067
37068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37069fi
37070
37071if test "$wxUSE_EXCEPTIONS" = "yes"; then
37072 cat >>confdefs.h <<\_ACEOF
37073#define wxUSE_EXCEPTIONS 1
37074_ACEOF
37075
37076fi
37077
37078USE_HTML=0
37079if test "$wxUSE_HTML" = "yes"; then
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_HTML 1
37082_ACEOF
37083
37084 USE_HTML=1
37085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37086fi
37087
37088if test "$wxUSE_MENUS" = "yes"; then
37089 cat >>confdefs.h <<\_ACEOF
37090#define wxUSE_MENUS 1
37091_ACEOF
37092
37093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37094fi
37095
37096if test "$wxUSE_METAFILE" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098#define wxUSE_METAFILE 1
37099_ACEOF
37100
37101fi
37102
37103if test "$wxUSE_MIMETYPE" = "yes"; then
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_MIMETYPE 1
37106_ACEOF
37107
37108fi
37109
37110if test "$wxUSE_MINIFRAME" = "yes"; then
37111 cat >>confdefs.h <<\_ACEOF
37112#define wxUSE_MINIFRAME 1
37113_ACEOF
37114
37115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37116fi
37117
37118if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37119 cat >>confdefs.h <<\_ACEOF
37120#define wxUSE_SYSTEM_OPTIONS 1
37121_ACEOF
37122
37123 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37124 "$TOOLKIT" = "MOTIF"; then
37125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37126 fi
37127fi
37128
37129
37130if test "$wxUSE_VALIDATORS" = "yes"; then
37131 cat >>confdefs.h <<\_ACEOF
37132#define wxUSE_VALIDATORS 1
37133_ACEOF
37134
37135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37136fi
37137
37138if test "$wxUSE_PALETTE" = "yes" ; then
37139 cat >>confdefs.h <<\_ACEOF
37140#define wxUSE_PALETTE 1
37141_ACEOF
37142
37143fi
37144
37145if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37146 LIBS=" -lunicows $LIBS"
37147fi
37148
37149
37150if test "$wxUSE_IMAGE" = "yes" ; then
37151 cat >>confdefs.h <<\_ACEOF
37152#define wxUSE_IMAGE 1
37153_ACEOF
37154
37155
37156 if test "$wxUSE_GIF" = "yes" ; then
37157 cat >>confdefs.h <<\_ACEOF
37158#define wxUSE_GIF 1
37159_ACEOF
37160
37161 fi
37162
37163 if test "$wxUSE_PCX" = "yes" ; then
37164 cat >>confdefs.h <<\_ACEOF
37165#define wxUSE_PCX 1
37166_ACEOF
37167
37168 fi
37169
37170 if test "$wxUSE_IFF" = "yes" ; then
37171 cat >>confdefs.h <<\_ACEOF
37172#define wxUSE_IFF 1
37173_ACEOF
37174
37175 fi
37176
37177 if test "$wxUSE_PNM" = "yes" ; then
37178 cat >>confdefs.h <<\_ACEOF
37179#define wxUSE_PNM 1
37180_ACEOF
37181
37182 fi
37183
37184 if test "$wxUSE_XPM" = "yes" ; then
37185 cat >>confdefs.h <<\_ACEOF
37186#define wxUSE_XPM 1
37187_ACEOF
37188
37189 fi
37190
37191 if test "$wxUSE_ICO_CUR" = "yes" ; then
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_ICO_CUR 1
37194_ACEOF
37195
37196 fi
37197fi
37198
37199
37200if test "$wxUSE_CHOICEDLG" = "yes"; then
37201 cat >>confdefs.h <<\_ACEOF
37202#define wxUSE_CHOICEDLG 1
37203_ACEOF
37204
37205fi
37206
37207if test "$wxUSE_COLOURDLG" = "yes"; then
37208 cat >>confdefs.h <<\_ACEOF
37209#define wxUSE_COLOURDLG 1
37210_ACEOF
37211
37212fi
37213
37214if test "$wxUSE_FILEDLG" = "yes"; then
37215 cat >>confdefs.h <<\_ACEOF
37216#define wxUSE_FILEDLG 1
37217_ACEOF
37218
37219fi
37220
37221if test "$wxUSE_FINDREPLDLG" = "yes"; then
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxUSE_FINDREPLDLG 1
37224_ACEOF
37225
37226fi
37227
37228if test "$wxUSE_FONTDLG" = "yes"; then
37229 cat >>confdefs.h <<\_ACEOF
37230#define wxUSE_FONTDLG 1
37231_ACEOF
37232
37233fi
37234
37235if test "$wxUSE_DIRDLG" = "yes"; then
37236 if test "$wxUSE_TREECTRL" != "yes"; then
37237 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37238echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37239 else
37240 cat >>confdefs.h <<\_ACEOF
37241#define wxUSE_DIRDLG 1
37242_ACEOF
37243
37244 fi
37245fi
37246
37247if test "$wxUSE_MSGDLG" = "yes"; then
37248 cat >>confdefs.h <<\_ACEOF
37249#define wxUSE_MSGDLG 1
37250_ACEOF
37251
37252fi
37253
37254if test "$wxUSE_NUMBERDLG" = "yes"; then
37255 cat >>confdefs.h <<\_ACEOF
37256#define wxUSE_NUMBERDLG 1
37257_ACEOF
37258
37259fi
37260
37261if test "$wxUSE_PROGRESSDLG" = "yes"; then
37262 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37263 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37264echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37265 else
37266 cat >>confdefs.h <<\_ACEOF
37267#define wxUSE_PROGRESSDLG 1
37268_ACEOF
37269
37270 fi
37271fi
37272
37273if test "$wxUSE_SPLASH" = "yes"; then
37274 cat >>confdefs.h <<\_ACEOF
37275#define wxUSE_SPLASH 1
37276_ACEOF
37277
37278fi
37279
37280if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37281 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37282 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37283echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37284 else
37285 cat >>confdefs.h <<\_ACEOF
37286#define wxUSE_STARTUP_TIPS 1
37287_ACEOF
37288
37289 fi
37290fi
37291
37292if test "$wxUSE_TEXTDLG" = "yes"; then
37293 cat >>confdefs.h <<\_ACEOF
37294#define wxUSE_TEXTDLG 1
37295_ACEOF
37296
37297fi
37298
37299if test "$wxUSE_WIZARDDLG" = "yes"; then
37300 cat >>confdefs.h <<\_ACEOF
37301#define wxUSE_WIZARDDLG 1
37302_ACEOF
37303
37304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37305fi
37306
37307
37308if test "$cross_compiling" = "yes"; then
37309 OSINFO="\"$host\""
37310else
37311 OSINFO=`uname -s -r -m`
37312 OSINFO="\"$OSINFO\""
37313fi
37314
37315cat >>confdefs.h <<_ACEOF
37316#define WXWIN_OS_DESCRIPTION $OSINFO
37317_ACEOF
37318
37319
37320
37321if test "x$prefix" != "xNONE"; then
37322 wxPREFIX=$prefix
37323else
37324 wxPREFIX=$ac_default_prefix
37325fi
37326
37327cat >>confdefs.h <<_ACEOF
37328#define wxINSTALL_PREFIX "$wxPREFIX"
37329_ACEOF
37330
37331
37332top_builddir_wxconfig=`pwd`
37333
37334
37335
37336CORE_BASE_LIBS="net base"
37337CORE_GUI_LIBS="adv core"
37338
37339if test "$wxUSE_XML" = "yes" ; then
37340 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37341fi
37342if test "$wxUSE_ODBC" != "no" ; then
37343 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37344 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37345fi
37346if test "$wxUSE_HTML" = "yes" ; then
37347 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37348fi
37349
37350if test "$wxUSE_GUI" != "yes"; then
37351 CORE_GUI_LIBS=""
37352fi
37353
37354
37355
37356
37357
37358
37359
37360
37361if test "$wxUSE_MAC" = 1 ; then
37362 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37363fi
37364if test "$wxUSE_COCOA" = 1 ; then
37365 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37366fi
37367
37368
37369LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37370
37371have_cos=0
37372have_floor=0
37373
37374for ac_func in cos
37375do
37376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37377echo "$as_me:$LINENO: checking for $ac_func" >&5
37378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37379if eval "test \"\${$as_ac_var+set}\" = set"; then
37380 echo $ECHO_N "(cached) $ECHO_C" >&6
37381else
37382 cat >conftest.$ac_ext <<_ACEOF
37383/* confdefs.h. */
37384_ACEOF
37385cat confdefs.h >>conftest.$ac_ext
37386cat >>conftest.$ac_ext <<_ACEOF
37387/* end confdefs.h. */
37388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37390#define $ac_func innocuous_$ac_func
37391
37392/* System header to define __stub macros and hopefully few prototypes,
37393 which can conflict with char $ac_func (); below.
37394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37395 <limits.h> exists even on freestanding compilers. */
37396
37397#ifdef __STDC__
37398# include <limits.h>
37399#else
37400# include <assert.h>
37401#endif
37402
37403#undef $ac_func
37404
37405/* Override any gcc2 internal prototype to avoid an error. */
37406#ifdef __cplusplus
37407extern "C"
37408{
37409#endif
37410/* We use char because int might match the return type of a gcc2
37411 builtin and then its argument prototype would still apply. */
37412char $ac_func ();
37413/* The GNU C library defines this for functions which it implements
37414 to always fail with ENOSYS. Some functions are actually named
37415 something starting with __ and the normal name is an alias. */
37416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37417choke me
37418#else
37419char (*f) () = $ac_func;
37420#endif
37421#ifdef __cplusplus
37422}
37423#endif
37424
37425int
37426main ()
37427{
37428return f != $ac_func;
37429 ;
37430 return 0;
37431}
37432_ACEOF
37433rm -f conftest.$ac_objext conftest$ac_exeext
37434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37435 (eval $ac_link) 2>conftest.er1
37436 ac_status=$?
37437 grep -v '^ *+' conftest.er1 >conftest.err
37438 rm -f conftest.er1
37439 cat conftest.err >&5
37440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37441 (exit $ac_status); } &&
01cb68df 37442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
37443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37444 (eval $ac_try) 2>&5
37445 ac_status=$?
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); }; } &&
37448 { ac_try='test -s conftest$ac_exeext'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37451 ac_status=$?
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; }; then
37454 eval "$as_ac_var=yes"
37455else
37456 echo "$as_me: failed program was:" >&5
37457sed 's/^/| /' conftest.$ac_ext >&5
37458
37459eval "$as_ac_var=no"
37460fi
37461rm -f conftest.err conftest.$ac_objext \
37462 conftest$ac_exeext conftest.$ac_ext
37463fi
37464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37466if test `eval echo '${'$as_ac_var'}'` = yes; then
37467 cat >>confdefs.h <<_ACEOF
37468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37469_ACEOF
37470 have_cos=1
37471fi
37472done
37473
37474
37475for ac_func in floor
37476do
37477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37478echo "$as_me:$LINENO: checking for $ac_func" >&5
37479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37480if eval "test \"\${$as_ac_var+set}\" = set"; then
37481 echo $ECHO_N "(cached) $ECHO_C" >&6
37482else
37483 cat >conftest.$ac_ext <<_ACEOF
37484/* confdefs.h. */
37485_ACEOF
37486cat confdefs.h >>conftest.$ac_ext
37487cat >>conftest.$ac_ext <<_ACEOF
37488/* end confdefs.h. */
37489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37491#define $ac_func innocuous_$ac_func
37492
37493/* System header to define __stub macros and hopefully few prototypes,
37494 which can conflict with char $ac_func (); below.
37495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37496 <limits.h> exists even on freestanding compilers. */
37497
37498#ifdef __STDC__
37499# include <limits.h>
37500#else
37501# include <assert.h>
37502#endif
37503
37504#undef $ac_func
37505
37506/* Override any gcc2 internal prototype to avoid an error. */
37507#ifdef __cplusplus
37508extern "C"
37509{
37510#endif
37511/* We use char because int might match the return type of a gcc2
37512 builtin and then its argument prototype would still apply. */
37513char $ac_func ();
37514/* The GNU C library defines this for functions which it implements
37515 to always fail with ENOSYS. Some functions are actually named
37516 something starting with __ and the normal name is an alias. */
37517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37518choke me
37519#else
37520char (*f) () = $ac_func;
37521#endif
37522#ifdef __cplusplus
37523}
37524#endif
37525
37526int
37527main ()
37528{
37529return f != $ac_func;
37530 ;
37531 return 0;
37532}
37533_ACEOF
37534rm -f conftest.$ac_objext conftest$ac_exeext
37535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37536 (eval $ac_link) 2>conftest.er1
37537 ac_status=$?
37538 grep -v '^ *+' conftest.er1 >conftest.err
37539 rm -f conftest.er1
37540 cat conftest.err >&5
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); } &&
01cb68df 37543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
37544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545 (eval $ac_try) 2>&5
37546 ac_status=$?
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); }; } &&
37549 { ac_try='test -s conftest$ac_exeext'
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37552 ac_status=$?
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37555 eval "$as_ac_var=yes"
37556else
37557 echo "$as_me: failed program was:" >&5
37558sed 's/^/| /' conftest.$ac_ext >&5
37559
37560eval "$as_ac_var=no"
37561fi
37562rm -f conftest.err conftest.$ac_objext \
37563 conftest$ac_exeext conftest.$ac_ext
37564fi
37565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37567if test `eval echo '${'$as_ac_var'}'` = yes; then
37568 cat >>confdefs.h <<_ACEOF
37569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37570_ACEOF
37571 have_floor=1
37572fi
37573done
37574
37575echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37576echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37577if test "$have_cos" = 1 -a "$have_floor" = 1; then
37578 echo "$as_me:$LINENO: result: yes" >&5
37579echo "${ECHO_T}yes" >&6
37580else
37581 echo "$as_me:$LINENO: result: no" >&5
37582echo "${ECHO_T}no" >&6
37583 LIBS="$LIBS -lm"
37584 # use different functions to avoid configure caching
37585 have_sin=0
37586 have_ceil=0
37587
37588for ac_func in sin
37589do
37590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37591echo "$as_me:$LINENO: checking for $ac_func" >&5
37592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37593if eval "test \"\${$as_ac_var+set}\" = set"; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37595else
37596 cat >conftest.$ac_ext <<_ACEOF
37597/* confdefs.h. */
37598_ACEOF
37599cat confdefs.h >>conftest.$ac_ext
37600cat >>conftest.$ac_ext <<_ACEOF
37601/* end confdefs.h. */
37602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37604#define $ac_func innocuous_$ac_func
37605
37606/* System header to define __stub macros and hopefully few prototypes,
37607 which can conflict with char $ac_func (); below.
37608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37609 <limits.h> exists even on freestanding compilers. */
37610
37611#ifdef __STDC__
37612# include <limits.h>
37613#else
37614# include <assert.h>
37615#endif
37616
37617#undef $ac_func
37618
37619/* Override any gcc2 internal prototype to avoid an error. */
37620#ifdef __cplusplus
37621extern "C"
37622{
37623#endif
37624/* We use char because int might match the return type of a gcc2
37625 builtin and then its argument prototype would still apply. */
37626char $ac_func ();
37627/* The GNU C library defines this for functions which it implements
37628 to always fail with ENOSYS. Some functions are actually named
37629 something starting with __ and the normal name is an alias. */
37630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37631choke me
37632#else
37633char (*f) () = $ac_func;
37634#endif
37635#ifdef __cplusplus
37636}
37637#endif
37638
37639int
37640main ()
37641{
37642return f != $ac_func;
37643 ;
37644 return 0;
37645}
37646_ACEOF
37647rm -f conftest.$ac_objext conftest$ac_exeext
37648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37649 (eval $ac_link) 2>conftest.er1
37650 ac_status=$?
37651 grep -v '^ *+' conftest.er1 >conftest.err
37652 rm -f conftest.er1
37653 cat conftest.err >&5
37654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); } &&
01cb68df 37656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
37657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37658 (eval $ac_try) 2>&5
37659 ac_status=$?
37660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661 (exit $ac_status); }; } &&
37662 { ac_try='test -s conftest$ac_exeext'
37663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37664 (eval $ac_try) 2>&5
37665 ac_status=$?
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); }; }; then
37668 eval "$as_ac_var=yes"
37669else
37670 echo "$as_me: failed program was:" >&5
37671sed 's/^/| /' conftest.$ac_ext >&5
37672
37673eval "$as_ac_var=no"
37674fi
37675rm -f conftest.err conftest.$ac_objext \
37676 conftest$ac_exeext conftest.$ac_ext
37677fi
37678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37680if test `eval echo '${'$as_ac_var'}'` = yes; then
37681 cat >>confdefs.h <<_ACEOF
37682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37683_ACEOF
37684 have_sin=1
37685fi
37686done
37687
37688
37689for ac_func in ceil
37690do
37691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37692echo "$as_me:$LINENO: checking for $ac_func" >&5
37693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37694if eval "test \"\${$as_ac_var+set}\" = set"; then
37695 echo $ECHO_N "(cached) $ECHO_C" >&6
37696else
37697 cat >conftest.$ac_ext <<_ACEOF
37698/* confdefs.h. */
37699_ACEOF
37700cat confdefs.h >>conftest.$ac_ext
37701cat >>conftest.$ac_ext <<_ACEOF
37702/* end confdefs.h. */
37703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37705#define $ac_func innocuous_$ac_func
37706
37707/* System header to define __stub macros and hopefully few prototypes,
37708 which can conflict with char $ac_func (); below.
37709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37710 <limits.h> exists even on freestanding compilers. */
37711
37712#ifdef __STDC__
37713# include <limits.h>
37714#else
37715# include <assert.h>
37716#endif
37717
37718#undef $ac_func
37719
37720/* Override any gcc2 internal prototype to avoid an error. */
37721#ifdef __cplusplus
37722extern "C"
37723{
37724#endif
37725/* We use char because int might match the return type of a gcc2
37726 builtin and then its argument prototype would still apply. */
37727char $ac_func ();
37728/* The GNU C library defines this for functions which it implements
37729 to always fail with ENOSYS. Some functions are actually named
37730 something starting with __ and the normal name is an alias. */
37731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37732choke me
37733#else
37734char (*f) () = $ac_func;
37735#endif
37736#ifdef __cplusplus
37737}
37738#endif
37739
37740int
37741main ()
37742{
37743return f != $ac_func;
37744 ;
37745 return 0;
37746}
37747_ACEOF
37748rm -f conftest.$ac_objext conftest$ac_exeext
37749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37750 (eval $ac_link) 2>conftest.er1
37751 ac_status=$?
37752 grep -v '^ *+' conftest.er1 >conftest.err
37753 rm -f conftest.er1
37754 cat conftest.err >&5
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } &&
01cb68df 37757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37760 ac_status=$?
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; } &&
37763 { ac_try='test -s conftest$ac_exeext'
37764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765 (eval $ac_try) 2>&5
37766 ac_status=$?
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); }; }; then
37769 eval "$as_ac_var=yes"
37770else
37771 echo "$as_me: failed program was:" >&5
37772sed 's/^/| /' conftest.$ac_ext >&5
37773
37774eval "$as_ac_var=no"
37775fi
37776rm -f conftest.err conftest.$ac_objext \
37777 conftest$ac_exeext conftest.$ac_ext
37778fi
37779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37780echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37781if test `eval echo '${'$as_ac_var'}'` = yes; then
37782 cat >>confdefs.h <<_ACEOF
37783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37784_ACEOF
37785 have_ceil=1
37786fi
37787done
37788
37789 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37790echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37791 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37792 echo "$as_me:$LINENO: result: yes" >&5
37793echo "${ECHO_T}yes" >&6
37794 else
37795 echo "$as_me:$LINENO: result: no" >&5
37796echo "${ECHO_T}no" >&6
37797 # not sure we should warn the user, crash, etc.
37798 fi
37799fi
37800
37801if test "$wxUSE_GUI" = "yes"; then
37802
37803
37804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37805 drawing dynamic erase event exec font image \
37806 minimal propsize rotate shaped widgets render"
37807
37808 if test "$wxUSE_MONOLITHIC" != "yes"; then
37809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37810 fi
37811else
37812 SAMPLES_SUBDIRS="console"
37813fi
37814
37815
37816INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37817-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37818
37819if test "$GXX" = yes ; then
37820 CXXWARNINGS="-Wall"
37821 fi
37822
37823EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37824
37825CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37826CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37827CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37828
37829
37830LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37831EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37832EXTRALIBS_XML="$EXPAT_LINK"
37833EXTRALIBS_HTML="$MSPACK_LINK"
37834EXTRALIBS_ODBC="$ODBC_LINK"
37835if test "$wxUSE_GUI" = "yes"; then
37836 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37837fi
37838if test "$wxUSE_OPENGL" = "yes"; then
37839 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37840fi
37841
37842LDFLAGS="$LDFLAGS $PROFILE"
37843
37844if test "$wxUSE_GTK" = 1; then
37845 WXCONFIG_INCLUDE=
37846else
37847 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37848fi
37849
37850WXCONFIG_EXTRALIBS="$LIBS"
37851
37852if test "$wxUSE_REGEX" = "builtin" ; then
37853 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37854fi
37855if test "$wxUSE_EXPAT" = "builtin" ; then
37856 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37857fi
37858if test "$wxUSE_ODBC" = "builtin" ; then
37859 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37860fi
37861if test "$wxUSE_LIBTIFF" = "builtin" ; then
37862 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37863fi
37864if test "$wxUSE_LIBJPEG" = "builtin" ; then
37865 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37866fi
37867if test "$wxUSE_LIBPNG" = "builtin" ; then
37868 wxconfig_3rdparty="$wxconfig_3rdparty png"
37869fi
37870if test "$wxUSE_ZLIB" = "builtin" ; then
37871 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37872fi
37873if test "$wxUSE_ODBC" = "builtin" ; then
37874 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37875fi
37876
37877for i in $wxconfig_3rdparty ; do
37878 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37879done
37880
37881
37882if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37883 WXUNIV=1
37884else
37885 WXUNIV=0
37886fi
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896if test $wxUSE_MONOLITHIC = "yes" ; then
37897 MONOLITHIC=1
37898else
37899 MONOLITHIC=0
37900fi
37901
37902if test $wxUSE_PLUGINS = "yes" ; then
37903 USE_PLUGINS=1
37904else
37905 USE_PLUGINS=0
37906fi
37907
37908if test $wxUSE_ODBC != "no" ; then
37909 USE_ODBC=1
37910else
37911 USE_ODBC=0
37912fi
37913
37914if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37915 OFFICIAL_BUILD=1
37916else
37917 OFFICIAL_BUILD=0
37918fi
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950 if test "x$BAKEFILE_HOST" = "x"; then
37951 BAKEFILE_HOST="${host}"
37952 fi
37953
37954 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37955
37956 if test -n "$ac_tool_prefix"; then
37957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37958set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37959echo "$as_me:$LINENO: checking for $ac_word" >&5
37960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37961if test "${ac_cv_prog_RANLIB+set}" = set; then
37962 echo $ECHO_N "(cached) $ECHO_C" >&6
37963else
37964 if test -n "$RANLIB"; then
37965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37966else
37967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37968for as_dir in $PATH
37969do
37970 IFS=$as_save_IFS
37971 test -z "$as_dir" && as_dir=.
37972 for ac_exec_ext in '' $ac_executable_extensions; do
37973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37976 break 2
37977 fi
37978done
37979done
37980
37981fi
37982fi
37983RANLIB=$ac_cv_prog_RANLIB
37984if test -n "$RANLIB"; then
37985 echo "$as_me:$LINENO: result: $RANLIB" >&5
37986echo "${ECHO_T}$RANLIB" >&6
37987else
37988 echo "$as_me:$LINENO: result: no" >&5
37989echo "${ECHO_T}no" >&6
37990fi
37991
37992fi
37993if test -z "$ac_cv_prog_RANLIB"; then
37994 ac_ct_RANLIB=$RANLIB
37995 # Extract the first word of "ranlib", so it can be a program name with args.
37996set dummy ranlib; ac_word=$2
37997echo "$as_me:$LINENO: checking for $ac_word" >&5
37998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38000 echo $ECHO_N "(cached) $ECHO_C" >&6
38001else
38002 if test -n "$ac_ct_RANLIB"; then
38003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38004else
38005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38006for as_dir in $PATH
38007do
38008 IFS=$as_save_IFS
38009 test -z "$as_dir" && as_dir=.
38010 for ac_exec_ext in '' $ac_executable_extensions; do
38011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38012 ac_cv_prog_ac_ct_RANLIB="ranlib"
38013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38014 break 2
38015 fi
38016done
38017done
38018
38019 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38020fi
38021fi
38022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38023if test -n "$ac_ct_RANLIB"; then
38024 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38025echo "${ECHO_T}$ac_ct_RANLIB" >&6
38026else
38027 echo "$as_me:$LINENO: result: no" >&5
38028echo "${ECHO_T}no" >&6
38029fi
38030
38031 RANLIB=$ac_ct_RANLIB
38032else
38033 RANLIB="$ac_cv_prog_RANLIB"
38034fi
38035
38036 # Find a good install program. We prefer a C program (faster),
38037# so one script is as good as another. But avoid the broken or
38038# incompatible versions:
38039# SysV /etc/install, /usr/sbin/install
38040# SunOS /usr/etc/install
38041# IRIX /sbin/install
38042# AIX /bin/install
38043# AmigaOS /C/install, which installs bootblocks on floppy discs
38044# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38045# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38046# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
38047# OS/2's system install, which has a completely different semantic
38048# ./install, which can be erroneously created by make from ./install.sh.
38049echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38050echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38051if test -z "$INSTALL"; then
38052if test "${ac_cv_path_install+set}" = set; then
38053 echo $ECHO_N "(cached) $ECHO_C" >&6
38054else
38055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38056for as_dir in $PATH
38057do
38058 IFS=$as_save_IFS
38059 test -z "$as_dir" && as_dir=.
38060 # Account for people who put trailing slashes in PATH elements.
38061case $as_dir/ in
38062 ./ | .// | /cC/* | \
38063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
38064 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
38065 /usr/ucb/* ) ;;
38066 *)
38067 # OSF1 and SCO ODT 3.0 have their own names for install.
38068 # Don't use installbsd from OSF since it installs stuff as root
38069 # by default.
38070 for ac_prog in ginstall scoinst install; do
38071 for ac_exec_ext in '' $ac_executable_extensions; do
38072 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38073 if test $ac_prog = install &&
38074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38075 # AIX install. It has an incompatible calling convention.
38076 :
38077 elif test $ac_prog = install &&
38078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38079 # program-specific install script used by HP pwplus--don't use.
38080 :
38081 else
38082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38083 break 3
38084 fi
38085 fi
38086 done
38087 done
38088 ;;
38089esac
38090done
38091
38092
38093fi
38094 if test "${ac_cv_path_install+set}" = set; then
38095 INSTALL=$ac_cv_path_install
38096 else
38097 # As a last resort, use the slow shell script. We don't cache a
38098 # path for INSTALL within a source directory, because that will
38099 # break other packages using the cache if that directory is
38100 # removed, or if the path is relative.
38101 INSTALL=$ac_install_sh
38102 fi
38103fi
38104echo "$as_me:$LINENO: result: $INSTALL" >&5
38105echo "${ECHO_T}$INSTALL" >&6
38106
38107# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38108# It thinks the first close brace ends the variable substitution.
38109test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38110
38111test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38112
38113test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38114
38115 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38116echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38117LN_S=$as_ln_s
38118if test "$LN_S" = "ln -s"; then
38119 echo "$as_me:$LINENO: result: yes" >&5
38120echo "${ECHO_T}yes" >&6
38121else
38122 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38123echo "${ECHO_T}no, using $LN_S" >&6
38124fi
38125
38126
38127 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38128echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38129set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38130if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38131 echo $ECHO_N "(cached) $ECHO_C" >&6
38132else
38133 cat >conftest.make <<\_ACEOF
38134all:
38135 @echo 'ac_maketemp="$(MAKE)"'
38136_ACEOF
38137# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38138eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38139if test -n "$ac_maketemp"; then
38140 eval ac_cv_prog_make_${ac_make}_set=yes
38141else
38142 eval ac_cv_prog_make_${ac_make}_set=no
38143fi
38144rm -f conftest.make
38145fi
38146if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38147 echo "$as_me:$LINENO: result: yes" >&5
38148echo "${ECHO_T}yes" >&6
38149 SET_MAKE=
38150else
38151 echo "$as_me:$LINENO: result: no" >&5
38152echo "${ECHO_T}no" >&6
38153 SET_MAKE="MAKE=${MAKE-make}"
38154fi
38155
38156
38157
38158 if test -n "$ac_tool_prefix"; then
38159 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38160set dummy ${ac_tool_prefix}ar; ac_word=$2
38161echo "$as_me:$LINENO: checking for $ac_word" >&5
38162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38163if test "${ac_cv_prog_AR+set}" = set; then
38164 echo $ECHO_N "(cached) $ECHO_C" >&6
38165else
38166 if test -n "$AR"; then
38167 ac_cv_prog_AR="$AR" # Let the user override the test.
38168else
38169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38170for as_dir in $PATH
38171do
38172 IFS=$as_save_IFS
38173 test -z "$as_dir" && as_dir=.
38174 for ac_exec_ext in '' $ac_executable_extensions; do
38175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38176 ac_cv_prog_AR="${ac_tool_prefix}ar"
38177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38178 break 2
38179 fi
38180done
38181done
38182
38183fi
38184fi
38185AR=$ac_cv_prog_AR
38186if test -n "$AR"; then
38187 echo "$as_me:$LINENO: result: $AR" >&5
38188echo "${ECHO_T}$AR" >&6
38189else
38190 echo "$as_me:$LINENO: result: no" >&5
38191echo "${ECHO_T}no" >&6
38192fi
38193
38194fi
38195if test -z "$ac_cv_prog_AR"; then
38196 ac_ct_AR=$AR
38197 # Extract the first word of "ar", so it can be a program name with args.
38198set dummy ar; ac_word=$2
38199echo "$as_me:$LINENO: checking for $ac_word" >&5
38200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38201if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38202 echo $ECHO_N "(cached) $ECHO_C" >&6
38203else
38204 if test -n "$ac_ct_AR"; then
38205 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38206else
38207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38208for as_dir in $PATH
38209do
38210 IFS=$as_save_IFS
38211 test -z "$as_dir" && as_dir=.
38212 for ac_exec_ext in '' $ac_executable_extensions; do
38213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38214 ac_cv_prog_ac_ct_AR="ar"
38215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38216 break 2
38217 fi
38218done
38219done
38220
38221 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38222fi
38223fi
38224ac_ct_AR=$ac_cv_prog_ac_ct_AR
38225if test -n "$ac_ct_AR"; then
38226 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38227echo "${ECHO_T}$ac_ct_AR" >&6
38228else
38229 echo "$as_me:$LINENO: result: no" >&5
38230echo "${ECHO_T}no" >&6
38231fi
38232
38233 AR=$ac_ct_AR
38234else
38235 AR="$ac_cv_prog_AR"
38236fi
38237
38238 if test -n "$ac_tool_prefix"; then
38239 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38240set dummy ${ac_tool_prefix}strip; ac_word=$2
38241echo "$as_me:$LINENO: checking for $ac_word" >&5
38242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38243if test "${ac_cv_prog_STRIP+set}" = set; then
38244 echo $ECHO_N "(cached) $ECHO_C" >&6
38245else
38246 if test -n "$STRIP"; then
38247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38248else
38249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38250for as_dir in $PATH
38251do
38252 IFS=$as_save_IFS
38253 test -z "$as_dir" && as_dir=.
38254 for ac_exec_ext in '' $ac_executable_extensions; do
38255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38256 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38258 break 2
38259 fi
38260done
38261done
38262
38263fi
38264fi
38265STRIP=$ac_cv_prog_STRIP
38266if test -n "$STRIP"; then
38267 echo "$as_me:$LINENO: result: $STRIP" >&5
38268echo "${ECHO_T}$STRIP" >&6
38269else
38270 echo "$as_me:$LINENO: result: no" >&5
38271echo "${ECHO_T}no" >&6
38272fi
38273
38274fi
38275if test -z "$ac_cv_prog_STRIP"; then
38276 ac_ct_STRIP=$STRIP
38277 # Extract the first word of "strip", so it can be a program name with args.
38278set dummy strip; ac_word=$2
38279echo "$as_me:$LINENO: checking for $ac_word" >&5
38280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38281if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38282 echo $ECHO_N "(cached) $ECHO_C" >&6
38283else
38284 if test -n "$ac_ct_STRIP"; then
38285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38286else
38287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38288for as_dir in $PATH
38289do
38290 IFS=$as_save_IFS
38291 test -z "$as_dir" && as_dir=.
38292 for ac_exec_ext in '' $ac_executable_extensions; do
38293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38294 ac_cv_prog_ac_ct_STRIP="strip"
38295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38296 break 2
38297 fi
38298done
38299done
38300
38301 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38302fi
38303fi
38304ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38305if test -n "$ac_ct_STRIP"; then
38306 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38307echo "${ECHO_T}$ac_ct_STRIP" >&6
38308else
38309 echo "$as_me:$LINENO: result: no" >&5
38310echo "${ECHO_T}no" >&6
38311fi
38312
38313 STRIP=$ac_ct_STRIP
38314else
38315 STRIP="$ac_cv_prog_STRIP"
38316fi
38317
38318 if test -n "$ac_tool_prefix"; then
38319 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38320set dummy ${ac_tool_prefix}nm; ac_word=$2
38321echo "$as_me:$LINENO: checking for $ac_word" >&5
38322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38323if test "${ac_cv_prog_NM+set}" = set; then
38324 echo $ECHO_N "(cached) $ECHO_C" >&6
38325else
38326 if test -n "$NM"; then
38327 ac_cv_prog_NM="$NM" # Let the user override the test.
38328else
38329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38330for as_dir in $PATH
38331do
38332 IFS=$as_save_IFS
38333 test -z "$as_dir" && as_dir=.
38334 for ac_exec_ext in '' $ac_executable_extensions; do
38335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38336 ac_cv_prog_NM="${ac_tool_prefix}nm"
38337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38338 break 2
38339 fi
38340done
38341done
38342
38343fi
38344fi
38345NM=$ac_cv_prog_NM
38346if test -n "$NM"; then
38347 echo "$as_me:$LINENO: result: $NM" >&5
38348echo "${ECHO_T}$NM" >&6
38349else
38350 echo "$as_me:$LINENO: result: no" >&5
38351echo "${ECHO_T}no" >&6
38352fi
38353
38354fi
38355if test -z "$ac_cv_prog_NM"; then
38356 ac_ct_NM=$NM
38357 # Extract the first word of "nm", so it can be a program name with args.
38358set dummy nm; ac_word=$2
38359echo "$as_me:$LINENO: checking for $ac_word" >&5
38360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38361if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38362 echo $ECHO_N "(cached) $ECHO_C" >&6
38363else
38364 if test -n "$ac_ct_NM"; then
38365 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38366else
38367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38368for as_dir in $PATH
38369do
38370 IFS=$as_save_IFS
38371 test -z "$as_dir" && as_dir=.
38372 for ac_exec_ext in '' $ac_executable_extensions; do
38373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38374 ac_cv_prog_ac_ct_NM="nm"
38375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38376 break 2
38377 fi
38378done
38379done
38380
38381 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38382fi
38383fi
38384ac_ct_NM=$ac_cv_prog_ac_ct_NM
38385if test -n "$ac_ct_NM"; then
38386 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38387echo "${ECHO_T}$ac_ct_NM" >&6
38388else
38389 echo "$as_me:$LINENO: result: no" >&5
38390echo "${ECHO_T}no" >&6
38391fi
38392
38393 NM=$ac_ct_NM
38394else
38395 NM="$ac_cv_prog_NM"
38396fi
38397
38398
38399 case ${BAKEFILE_HOST} in
38400 *-hp-hpux* )
38401 INSTALL_DIR="mkdir"
38402 ;;
38403 *) INSTALL_DIR="$INSTALL -d"
38404 ;;
38405 esac
38406
38407
38408 LDFLAGS_GUI=
38409 case ${BAKEFILE_HOST} in
38410 *-*-cygwin* | *-*-mingw32* )
38411 LDFLAGS_GUI="-mwindows"
38412 esac
38413
38414
38415 fi
38416
38417 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38418echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38419if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38420 echo $ECHO_N "(cached) $ECHO_C" >&6
38421else
38422
38423 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38424 egrep -s GNU > /dev/null); then
38425 bakefile_cv_prog_makeisgnu="yes"
38426 else
38427 bakefile_cv_prog_makeisgnu="no"
38428 fi
38429
38430fi
38431echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38432echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38433
38434 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38435 IF_GNU_MAKE=""
38436 else
38437 IF_GNU_MAKE="#"
38438 fi
38439
38440
38441
38442 PLATFORM_UNIX=0
38443 PLATFORM_WIN32=0
38444 PLATFORM_MSDOS=0
38445 PLATFORM_MAC=0
38446 PLATFORM_MACOSX=0
38447 PLATFORM_OS2=0
38448
38449 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38450 case "${BAKEFILE_HOST}" in
38451 *-*-cygwin* | *-*-mingw32* )
38452 PLATFORM_WIN32=1
38453 ;;
38454 *-pc-msdosdjgpp )
38455 PLATFORM_MSDOS=1
38456 ;;
38457 *-pc-os2_emx | *-pc-os2-emx )
38458 PLATFORM_OS2=1
38459 ;;
38460 powerpc-*-darwin* )
38461 PLATFORM_MAC=1
38462 PLATFORM_MACOSX=1
38463 ;;
38464 * )
38465 PLATFORM_UNIX=1
38466 ;;
38467 esac
38468 else
38469 case "$BAKEFILE_FORCE_PLATFORM" in
38470 win32 )
38471 PLATFORM_WIN32=1
38472 ;;
38473 msdos )
38474 PLATFORM_MSDOS=1
38475 ;;
38476 os2 )
38477 PLATFORM_OS2=1
38478 ;;
38479 darwin )
38480 PLATFORM_MAC=1
38481 PLATFORM_MACOSX=1
38482 ;;
38483 unix )
38484 PLATFORM_UNIX=1
38485 ;;
38486 * )
38487 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38488echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38489 { (exit 1); exit 1; }; }
38490 ;;
38491 esac
38492 fi
38493
38494
38495
38496
38497
38498
38499
38500
38501
38502 # Check whether --enable-omf or --disable-omf was given.
38503if test "${enable_omf+set}" = set; then
38504 enableval="$enable_omf"
38505 bk_os2_use_omf="$enableval"
38506fi;
38507
38508 case "${BAKEFILE_HOST}" in
38509 *-*-darwin* )
38510 CFLAGS="$CFLAGS -fno-common"
38511 CXXFLAGS="$CXXFLAGS -fno-common"
38512 ;;
38513
38514 *-pc-os2_emx | *-pc-os2-emx )
38515 if test "x$bk_os2_use_omf" = "xyes" ; then
38516 AR=emxomfar
38517 RANLIB=:
38518 LDFLAGS="-Zomf $LDFLAGS"
38519 CFLAGS="-Zomf $CFLAGS"
38520 CXXFLAGS="-Zomf $CXXFLAGS"
38521 OS2_LIBEXT="lib"
38522 else
38523 OS2_LIBEXT="a"
38524 fi
38525 ;;
38526 esac
38527
38528
38529 SO_SUFFIX="so"
38530 SO_SUFFIX_MODULE="so"
38531 EXEEXT=""
38532 LIBPREFIX="lib"
38533 LIBEXT=".a"
38534 DLLPREFIX="lib"
38535 DLLPREFIX_MODULE=""
38536 DLLIMP_SUFFIX=""
38537
38538 case "${BAKEFILE_HOST}" in
38539 *-hp-hpux* )
38540 SO_SUFFIX="sl"
38541 SO_SUFFIX_MODULE="sl"
38542 ;;
38543 *-*-aix* )
38544 SO_SUFFIX="a"
38545 SO_SUFFIX_MODULE="a"
38546 ;;
38547 *-*-cygwin* | *-*-mingw32* )
38548 SO_SUFFIX="dll"
38549 SO_SUFFIX_MODULE="dll"
38550 DLLIMP_SUFFIX="dll.a"
38551 EXEEXT=".exe"
38552 DLLPREFIX=""
38553 ;;
38554 *-pc-msdosdjgpp )
38555 EXEEXT=".exe"
38556 DLLPREFIX=""
38557 ;;
38558 *-pc-os2_emx | *-pc-os2-emx )
38559 SO_SUFFIX="dll"
38560 SO_SUFFIX_MODULE="dll"
38561 DLLIMP_SUFFIX=$OS2_LIBEXT
38562 EXEEXT=".exe"
38563 DLLPREFIX=""
38564 LIBPREFIX=""
38565 LIBEXT=".$OS2_LIBEXT"
38566 ;;
38567 powerpc-*-darwin* )
38568 SO_SUFFIX="dylib"
38569 SO_SUFFIX_MODULE="bundle"
38570 ;;
38571 esac
38572
38573 if test "x$DLLIMP_SUFFIX" = "x" ; then
38574 DLLIMP_SUFFIX="$SO_SUFFIX"
38575 fi
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587 SHARED_LD_CC="\$(CC) -shared -o"
38588 SHARED_LD_CXX="\$(CXX) -shared -o"
38589
38590 if test "x$GCC" = "xyes"; then
38591 PIC_FLAG="-fPIC"
38592 fi
38593
38594 case "${BAKEFILE_HOST}" in
38595 *-hp-hpux* )
38596 if test "x$GCC" = "xyes"; then
38597 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38598 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38599 else
38600 LDFLAGS="$LDFLAGS -L/usr/lib"
38601
38602 SHARED_LD_CC="${CC} -b -o"
38603 SHARED_LD_CXX="${CXX} -b -o"
38604 PIC_FLAG="+Z"
38605 fi
38606 ;;
38607
38608 *-*-linux* )
38609 if test "x$GCC" != "xyes"; then
38610 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38611echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38612if test "${bakefile_cv_prog_icc+set}" = set; then
38613 echo $ECHO_N "(cached) $ECHO_C" >&6
38614else
38615
38616 cat >conftest.$ac_ext <<_ACEOF
38617/* confdefs.h. */
38618_ACEOF
38619cat confdefs.h >>conftest.$ac_ext
38620cat >>conftest.$ac_ext <<_ACEOF
38621/* end confdefs.h. */
38622
38623int
38624main ()
38625{
38626
38627 #ifndef __INTEL_COMPILER
38628 #error Not icc
38629 #endif
38630
38631 ;
38632 return 0;
38633}
38634_ACEOF
38635rm -f conftest.$ac_objext
38636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38637 (eval $ac_compile) 2>conftest.er1
38638 ac_status=$?
38639 grep -v '^ *+' conftest.er1 >conftest.err
38640 rm -f conftest.er1
38641 cat conftest.err >&5
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); } &&
01cb68df 38644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
38645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 (eval $ac_try) 2>&5
38647 ac_status=$?
38648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 (exit $ac_status); }; } &&
38650 { ac_try='test -s conftest.$ac_objext'
38651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652 (eval $ac_try) 2>&5
38653 ac_status=$?
38654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 (exit $ac_status); }; }; then
38656 bakefile_cv_prog_icc=yes
38657else
38658 echo "$as_me: failed program was:" >&5
38659sed 's/^/| /' conftest.$ac_ext >&5
38660
38661bakefile_cv_prog_icc=no
38662
38663fi
38664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38665
38666fi
38667echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38668echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38669 if test "$bakefile_cv_prog_icc" = "yes"; then
38670 PIC_FLAG="-KPIC"
38671 fi
38672 fi
38673 ;;
38674
38675 *-*-solaris2* )
38676 if test "x$GCC" != xyes ; then
38677 SHARED_LD_CC="${CC} -G -o"
38678 SHARED_LD_CXX="${CXX} -G -o"
38679 PIC_FLAG="-KPIC"
38680 fi
38681 ;;
38682
38683 *-*-darwin* )
38684
38685 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38686echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38687if test "${wx_cv_gcc31+set}" = set; then
38688 echo $ECHO_N "(cached) $ECHO_C" >&6
38689else
38690
38691 cat >conftest.$ac_ext <<_ACEOF
38692/* confdefs.h. */
38693_ACEOF
38694cat confdefs.h >>conftest.$ac_ext
38695cat >>conftest.$ac_ext <<_ACEOF
38696/* end confdefs.h. */
38697
38698int
38699main ()
38700{
38701
38702 #if (__GNUC__ < 3) || \
38703 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38704 #error old gcc
38705 #endif
38706
38707 ;
38708 return 0;
38709}
38710_ACEOF
38711rm -f conftest.$ac_objext
38712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38713 (eval $ac_compile) 2>conftest.er1
38714 ac_status=$?
38715 grep -v '^ *+' conftest.er1 >conftest.err
38716 rm -f conftest.er1
38717 cat conftest.err >&5
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); } &&
01cb68df 38720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
38721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38722 (eval $ac_try) 2>&5
38723 ac_status=$?
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); }; } &&
38726 { ac_try='test -s conftest.$ac_objext'
38727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728 (eval $ac_try) 2>&5
38729 ac_status=$?
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); }; }; then
38732
38733 wx_cv_gcc31=yes
38734
38735else
38736 echo "$as_me: failed program was:" >&5
38737sed 's/^/| /' conftest.$ac_ext >&5
38738
38739
38740 wx_cv_gcc31=no
38741
38742
38743fi
38744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38745
38746fi
38747echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38748echo "${ECHO_T}$wx_cv_gcc31" >&6
38749 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38750
38751D='$'
38752cat <<EOF >shared-ld-sh
a848cd7e
SC
38753#!/bin/sh
38754#-----------------------------------------------------------------------------
38755#-- Name: distrib/mac/shared-ld-sh
38756#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38757#-- Author: Gilles Depeyrot
38758#-- Copyright: (c) 2002 Gilles Depeyrot
38759#-- Licence: any use permitted
38760#-----------------------------------------------------------------------------
38761
38762verbose=0
38763args=""
38764objects=""
38765linking_flag="-dynamiclib"
38766
473276a9
VS
38767while test ${D}# -gt 0; do
38768 case ${D}1 in
a848cd7e
SC
38769
38770 -v)
38771 verbose=1
38772 ;;
38773
38774 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38775 # collect these options and values
473276a9 38776 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38777 shift
38778 ;;
38779
38780 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38781 # collect these options
473276a9 38782 args="${D}{args} ${D}1"
a848cd7e
SC
38783 ;;
38784
38785 -dynamiclib|-bundle)
473276a9 38786 linking_flag="${D}1"
a848cd7e
SC
38787 ;;
38788
38789 -*)
473276a9 38790 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38791 exit 1
38792 ;;
38793
38794 *.o | *.a | *.dylib)
38795 # collect object files
473276a9 38796 objects="${D}{objects} ${D}1"
a848cd7e
SC
38797 ;;
38798
38799 *)
473276a9 38800 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38801 exit 1
38802 ;;
38803
38804 esac
38805 shift
38806done
38807
38808#
38809# Link one module containing all the others
38810#
473276a9
VS
38811if test ${D}{verbose} = 1; then
38812 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38813fi
473276a9
VS
38814c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38815status=${D}?
38816if test ${D}{status} != 0; then
38817 exit ${D}{status}
a848cd7e
SC
38818fi
38819
38820#
38821# Link the shared library from the single module created
38822#
473276a9
VS
38823if test ${D}{verbose} = 1; then
38824 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38825fi
473276a9
VS
38826c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38827status=${D}?
38828if test ${D}{status} != 0; then
38829 exit ${D}{status}
a848cd7e
SC
38830fi
38831
38832#
38833# Remove intermediate module
38834#
473276a9 38835rm -f master.${D}${D}.o
a848cd7e
SC
38836
38837exit 0
38838EOF
473276a9 38839
a848cd7e
SC
38840 chmod +x shared-ld-sh
38841
38842 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38843 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38844 SHARED_LD_CXX="$SHARED_LD_CC"
38845 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38846 else
38847 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38848 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38849 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38850 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38851 fi
38852
38853 PIC_FLAG="-dynamic -fPIC"
38854 ;;
38855
38856 *-*-aix* )
38857 if test "x$GCC" != "xyes"; then
38858 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38859set dummy makeC++SharedLib; ac_word=$2
38860echo "$as_me:$LINENO: checking for $ac_word" >&5
38861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38862if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38863 echo $ECHO_N "(cached) $ECHO_C" >&6
38864else
38865 if test -n "$AIX_CXX_LD"; then
38866 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38867else
38868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38869for as_dir in $PATH
38870do
38871 IFS=$as_save_IFS
38872 test -z "$as_dir" && as_dir=.
38873 for ac_exec_ext in '' $ac_executable_extensions; do
38874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38875 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38877 break 2
38878 fi
38879done
38880done
38881
38882 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38883fi
38884fi
38885AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38886if test -n "$AIX_CXX_LD"; then
38887 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38888echo "${ECHO_T}$AIX_CXX_LD" >&6
38889else
38890 echo "$as_me:$LINENO: result: no" >&5
38891echo "${ECHO_T}no" >&6
38892fi
38893
38894 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38895 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38896 fi
38897 ;;
38898
38899 *-*-beos* )
38900 SHARED_LD_CC="${LD} -shared -o"
38901 SHARED_LD_CXX="${LD} -shared -o"
38902 ;;
38903
38904 *-*-irix* )
38905 if test "x$GCC" != "xyes"; then
38906 PIC_FLAG="-KPIC"
38907 fi
38908 ;;
38909
38910 *-*-cygwin* | *-*-mingw32* )
38911 PIC_FLAG=""
38912 ;;
38913
38914 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38915 SHARED_LD_CC="`pwd`/dllar.sh -o"
38916 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38917 PIC_FLAG=""
473276a9
VS
38918
38919D='$'
38920cat <<EOF >dllar.sh
38921#!/bin/sh
38922#
38923# dllar - a tool to build both a .dll and an .a file
38924# from a set of object (.o) files for EMX/OS2.
38925#
38926# Written by Andrew Zabolotny, bit@freya.etu.ru
38927# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38928#
38929# This script will accept a set of files on the command line.
38930# All the public symbols from the .o files will be exported into
38931# a .DEF file, then linker will be run (through gcc) against them to
38932# build a shared library consisting of all given .o files. All libraries
38933# (.a) will be first decompressed into component .o files then act as
38934# described above. You can optionally give a description (-d "description")
38935# which will be put into .DLL. To see the list of accepted options (as well
38936# as command-line format) simply run this program without options. The .DLL
38937# is built to be imported by name (there is no guarantee that new versions
38938# of the library you build will have same ordinals for same symbols).
38939#
38940# dllar is free software; you can redistribute it and/or modify
38941# it under the terms of the GNU General Public License as published by
38942# the Free Software Foundation; either version 2, or (at your option)
38943# any later version.
38944#
38945# dllar is distributed in the hope that it will be useful,
38946# but WITHOUT ANY WARRANTY; without even the implied warranty of
38947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38948# GNU General Public License for more details.
38949#
38950# You should have received a copy of the GNU General Public License
38951# along with dllar; see the file COPYING. If not, write to the Free
38952# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38953# 02111-1307, USA.
38954
38955# To successfuly run this program you will need:
38956# - Current drive should have LFN support (HPFS, ext2, network, etc)
38957# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38958# - gcc
38959# (used to build the .dll)
38960# - emxexp
38961# (used to create .def file from .o files)
38962# - emximp
38963# (used to create .a file from .def file)
38964# - GNU text utilites (cat, sort, uniq)
38965# used to process emxexp output
38966# - GNU file utilities (mv, rm)
38967# - GNU sed
38968# - lxlite (optional, see flag below)
38969# (used for general .dll cleanup)
38970#
38971
38972flag_USE_LXLITE=1;
38973
38974#
38975# helper functions
38976# basnam, variant of basename, which does _not_ remove the path, _iff_
38977# second argument (suffix to remove) is given
38978basnam(){
38979 case ${D}# in
38980 1)
38981 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38982 ;;
38983 2)
38984 echo ${D}1 | sed 's/'${D}2'${D}//'
38985 ;;
38986 *)
38987 echo "error in basnam ${D}*"
38988 exit 8
38989 ;;
38990 esac
38991}
38992
38993# Cleanup temporary files and output
38994CleanUp() {
38995 cd ${D}curDir
38996 for i in ${D}inputFiles ; do
38997 case ${D}i in
38998 *!)
38999 rm -rf \`basnam ${D}i !\`
39000 ;;
39001 *)
39002 ;;
39003 esac
39004 done
39005
39006 # Kill result in case of failure as there is just to many stupid make/nmake
39007 # things out there which doesn't do this.
39008 if ${D}# -eq 0 ; then
39009 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39010 fi
39011}
39012
39013# Print usage and exit script with rc=1.
39014PrintHelp() {
39015 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
39016 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
39017 echo ' -ord[inals] -exclude "symbol(s)"'
39018 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
39019 echo ' *.o *.a'
39020 echo '*> "output_file" should have no extension.'
39021 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39022 echo ' The import library name is derived from this and is set to "name".a,'
39023 echo ' unless overridden by -import'
39024 echo '*> "importlib_name" should have no extension.'
39025 echo ' If it has the .o, or .a extension, it is automatically removed.'
39026 echo ' This name is used as the import library name and may be longer and'
39027 echo ' more descriptive than the DLL name which has to follow the old '
39028 echo ' 8.3 convention of FAT.'
39029 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39030 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39031 echo ' These flags will be put at the start of GCC command line.'
39032 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
39033 echo '*> -exclude defines symbols which will not be exported. You can define'
39034 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39035 echo ' If the last character of a symbol is "*", all symbols beginning'
39036 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
39037 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
39038 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
39039 echo '*> -nocrtdll switch will disable linking the library against emx''s'
39040 echo ' C runtime DLLs.'
39041 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
39042 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39043 echo ' unchanged to GCC at the end of command line.'
39044 echo '*> If you create a DLL from a library and you do not specify -o,'
39045 echo ' the basename for DLL and import library will be set to library name,'
39046 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39047 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39048 echo ' library will be renamed into gcc_s.a.'
39049 echo '--------'
39050 echo 'Example:'
39051 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39052 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39053 CleanUp
39054 exit 1
39055}
39056
39057# Execute a command.
39058# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39059# @Uses Whatever CleanUp() uses.
39060doCommand() {
39061 echo "${D}*"
39062 eval ${D}*
39063 rcCmd=${D}?
39064
39065 if ${D}rcCmd -ne 0 ; then
39066 echo "command failed, exit code="${D}rcCmd
39067 CleanUp
39068 exit ${D}rcCmd
39069 fi
39070}
39071
39072# main routine
39073# setup globals
39074cmdLine=${D}*
39075outFile=""
39076outimpFile=""
39077inputFiles=""
39078description=""
39079CC=gcc.exe
39080CFLAGS="-s -Zcrtdll"
39081EXTRA_CFLAGS=""
39082EXPORT_BY_ORDINALS=0
39083exclude_symbols=""
39084library_flags=""
39085curDir=\`pwd\`
39086curDirS=curDir
39087case ${D}curDirS in
39088*/)
39089 ;;
39090*)
39091 curDirS=${D}{curDirS}"/"
39092 ;;
39093esac
39094# Parse commandline
39095libsToLink=0
39096while ${D}1 ; do
39097 case ${D}1 in
39098 -ord*)
39099 EXPORT_BY_ORDINALS=1;
39100 ;;
39101 -o*)
39102 shift
39103 outFile=${D}1
39104 ;;
39105 -i*)
39106 shift
39107 outimpFile=${D}1
39108 ;;
39109 -d*)
39110 shift
39111 description=${D}1
39112 ;;
39113 -f*)
39114 shift
39115 CFLAGS=${D}1
39116 ;;
39117 -c*)
39118 shift
39119 CC=${D}1
39120 ;;
39121 -h*)
39122 PrintHelp
39123 ;;
39124 -ex*)
39125 shift
39126 exclude_symbols=${D}{exclude_symbols}${D}1" "
39127 ;;
39128 -libf*)
39129 shift
39130 library_flags=${D}{library_flags}${D}1" "
39131 ;;
39132 -nocrt*)
39133 CFLAGS="-s"
39134 ;;
39135 -nolxl*)
39136 flag_USE_LXLITE=0
39137 ;;
39138 -* | /*)
39139 case ${D}1 in
39140 -L* | -l*)
39141 libsToLink=1
39142 ;;
39143 *)
39144 ;;
39145 esac
39146 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39147 ;;
39148 *)
39149 found=0;
39150 if ${D}libsToLink -ne 0 ; then
39151 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39152 else
39153 for file in ${D}1 ; do
39154 if -f ${D}file ; then
39155 inputFiles="${D}{inputFiles} ${D}file"
39156 found=1
39157 fi
39158 done
39159 if ${D}found -eq 0 ; then
39160 echo "ERROR: No file(s) found: "${D}1
39161 exit 8
39162 fi
39163 fi
39164 ;;
39165 esac
39166 shift
39167done # iterate cmdline words
39168
39169#
39170if -z "${D}inputFiles" ; then
39171 echo "dllar: no input files"
39172 PrintHelp
39173fi
39174
39175# Now extract all .o files from .a files
39176newInputFiles=""
39177for file in ${D}inputFiles ; do
39178 case ${D}file in
39179 *.a | *.lib)
39180 case ${D}file in
39181 *.a)
39182 suffix=".a"
39183 AR="ar"
39184 ;;
39185 *.lib)
39186 suffix=".lib"
39187 AR="emxomfar"
39188 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39189 ;;
39190 *)
39191 ;;
39192 esac
39193 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39194 mkdir ${D}dirname
39195 if ${D}? -ne 0 ; then
39196 echo "Failed to create subdirectory ./${D}dirname"
39197 CleanUp
39198 exit 8;
39199 fi
39200 # Append '!' to indicate archive
39201 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39202 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39203 cd ${D}curDir
39204 found=0;
39205 for subfile in ${D}dirname/*.o* ; do
39206 if -f ${D}subfile ; then
39207 found=1
39208 if -s ${D}subfile ; then
39209 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39210 newInputFiles="${D}newInputFiles ${D}subfile"
39211 fi
39212 fi
39213 done
39214 if ${D}found -eq 0 ; then
39215 echo "WARNING: there are no files in archive \'${D}file\'"
39216 fi
39217 ;;
39218 *)
39219 newInputFiles="${D}{newInputFiles} ${D}file"
39220 ;;
39221 esac
39222done
39223inputFiles="${D}newInputFiles"
39224
39225# Output filename(s).
39226do_backup=0;
39227if -z ${D}outFile ; then
39228 do_backup=1;
39229 set outFile ${D}inputFiles; outFile=${D}2
39230fi
39231
39232# If it is an archive, remove the '!' and the '_%' suffixes
39233case ${D}outFile in
39234*_%!)
39235 outFile=\`basnam ${D}outFile _%!\`
39236 ;;
39237*)
39238 ;;
39239esac
39240case ${D}outFile in
39241*.dll)
39242 outFile=\`basnam ${D}outFile .dll\`
39243 ;;
39244*.DLL)
39245 outFile=\`basnam ${D}outFile .DLL\`
39246 ;;
39247*.o)
39248 outFile=\`basnam ${D}outFile .o\`
39249 ;;
39250*.obj)
39251 outFile=\`basnam ${D}outFile .obj\`
39252 ;;
39253*.a)
39254 outFile=\`basnam ${D}outFile .a\`
39255 ;;
39256*.lib)
39257 outFile=\`basnam ${D}outFile .lib\`
39258 ;;
39259*)
39260 ;;
39261esac
39262case ${D}outimpFile in
39263*.a)
39264 outimpFile=\`basnam ${D}outimpFile .a\`
39265 ;;
39266*.lib)
39267 outimpFile=\`basnam ${D}outimpFile .lib\`
39268 ;;
39269*)
39270 ;;
39271esac
39272if -z ${D}outimpFile ; then
39273 outimpFile=${D}outFile
39274fi
39275defFile="${D}{outFile}.def"
39276arcFile="${D}{outimpFile}.a"
39277arcFile2="${D}{outimpFile}.lib"
39278dllFile="${D}outFile"
39279# Add suffix to dllFile later, first we need a version to use as
39280# name in .def file.
39281
39282if ${D}do_backup -ne 0 ; then
39283 if -f ${D}arcFile ; then
39284 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39285 fi
39286 if -f ${D}arcFile2 ; then
39287 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39288 fi
39289fi
39290
39291# Extract public symbols from all the object files.
39292tmpdefFile=${D}{defFile}_%
39293rm -f ${D}tmpdefFile
39294for file in ${D}inputFiles ; do
39295 case ${D}file in
39296 *!)
39297 ;;
39298 *)
39299 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39300 ;;
39301 esac
39302done
39303
39304# Create the def file.
39305rm -f ${D}defFile
39306echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39307dllFile="${D}dllFile.dll"
39308if -n ${D}description ; then
39309 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39310fi
39311echo "EXPORTS" >> ${D}defFile
39312
39313doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39314grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39315
39316# Checks if the export is ok or not.
39317for word in ${D}exclude_symbols; do
39318 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39319 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39320done
39321
39322
39323if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39324 sed "=" < ${D}tmpdefFile | \
39325 sed '
39326 N
39327 : loop
39328 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
39329 t loop
39330 ' > ${D}{tmpdefFile}%
39331 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39332else
39333 rm -f ${D}{tmpdefFile}%
39334fi
39335cat ${D}tmpdefFile >> ${D}defFile
39336rm -f ${D}tmpdefFile
39337
39338# Do linking, create implib, and apply lxlite.
39339gccCmdl="";
39340for file in ${D}inputFiles ; do
39341 case ${D}file in
39342 *!)
39343 ;;
39344 *)
39345 gccCmdl="${D}gccCmdl ${D}file"
39346 ;;
39347 esac
39348done
39349doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39350touch "${D}{outFile}.dll"
39351
39352doCommand "emximp -o ${D}arcFile ${D}defFile"
39353if ${D}flag_USE_LXLITE -ne 0 ; then
39354 add_flags="";
39355 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39356 add_flags="-ynd"
39357 fi
39358 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39359fi
39360doCommand "emxomf -s -l ${D}arcFile"
39361
39362# Successful exit.
39363CleanUp 1
39364exit 0
39365EOF
39366
39367 chmod +x dllar.sh
a848cd7e
SC
39368 ;;
39369
39370 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39371 *-*-sunos4* | \
39372 *-*-osf* | \
39373 *-*-dgux5* | \
39374 *-*-sysv5* )
39375 ;;
39376
39377 *)
39378 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39379echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39380 { (exit 1); exit 1; }; }
39381 esac
39382
39383 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39384 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39385 fi
39386 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39387 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39388 fi
39389
39390
39391
39392
39393
39394
39395
39396
39397 USE_SOVERSION=0
39398 USE_SOVERLINUX=0
39399 USE_SOVERSOLARIS=0
39400 USE_SOSYMLINKS=0
39401 USE_MACVERSION=0
39402 SONAME_FLAG=
39403
39404 case "${BAKEFILE_HOST}" in
39405 *-*-linux* )
39406 SONAME_FLAG="-Wl,-soname,"
39407 USE_SOVERSION=1
39408 USE_SOVERLINUX=1
39409 USE_SOSYMLINKS=1
39410 ;;
39411
39412 *-*-solaris2* )
39413 SONAME_FLAG="-h "
39414 USE_SOVERSION=1
39415 USE_SOVERSOLARIS=1
39416 USE_SOSYMLINKS=1
39417 ;;
39418
39419 *-*-darwin* )
39420 USE_MACVERSION=1
39421 USE_SOVERSION=1
39422 USE_SOSYMLINKS=1
39423 ;;
39424 esac
39425
39426
39427
39428
39429
39430
39431
39432
39433
39434 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39435echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39436 DEPS_TRACKING=0
39437
39438 if test "x$GCC" = "xyes"; then
39439 DEPSMODE=gcc
39440 DEPS_TRACKING=1
39441 case "${BAKEFILE_HOST}" in
39442 powerpc-*-darwin* )
39443 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39444 ;;
39445 * )
39446 DEPSFLAG_GCC="-MMD"
39447 ;;
39448 esac
39449 echo "$as_me:$LINENO: result: gcc" >&5
39450echo "${ECHO_T}gcc" >&6
39451 else
39452 echo "$as_me:$LINENO: result: none" >&5
39453echo "${ECHO_T}none" >&6
39454 fi
39455
39456 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39457
39458D='$'
39459cat <<EOF >bk-deps
a848cd7e
SC
39460#!/bin/sh
39461
39462# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39463# script. It is used to track C/C++ files dependencies in portable way.
39464#
39465# Permission is given to use this file in any way.
39466
473276a9 39467DEPSMODE=${DEPSMODE}
a848cd7e 39468DEPSDIR=.deps
473276a9 39469DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39470
473276a9 39471mkdir -p ${D}DEPSDIR
a848cd7e 39472
473276a9
VS
39473if test ${D}DEPSMODE = gcc ; then
39474 ${D}* ${D}{DEPSFLAG_GCC}
39475 status=${D}?
39476 if test ${D}{status} != 0 ; then
39477 exit ${D}{status}
a848cd7e
SC
39478 fi
39479 # move created file to the location we want it in:
473276a9
VS
39480 while test ${D}# -gt 0; do
39481 case "${D}1" in
a848cd7e
SC
39482 -o )
39483 shift
473276a9 39484 objfile=${D}1
a848cd7e
SC
39485 ;;
39486 -* )
39487 ;;
39488 * )
473276a9 39489 srcfile=${D}1
a848cd7e
SC
39490 ;;
39491 esac
39492 shift
39493 done
473276a9
VS
39494 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39495 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39496 if test -f ${D}depfile ; then
39497 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39498 rm -f ${D}depfile
a848cd7e 39499 else
473276a9
VS
39500 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39501 if test -f ${D}depfile ; then
39502 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39503 rm -f ${D}depfile
a848cd7e
SC
39504 fi
39505 fi
39506 exit 0
39507else
473276a9
VS
39508 ${D}*
39509 exit ${D}?
a848cd7e
SC
39510fi
39511EOF
473276a9 39512
a848cd7e
SC
39513 chmod +x bk-deps
39514 fi
39515
39516
39517
39518
39519 RESCOMP=
39520 SETFILE=
39521
39522 case ${BAKEFILE_HOST} in
39523 *-*-cygwin* | *-*-mingw32* )
39524 if test "$build" != "$host" ; then
39525 RESCOMP=$host_alias-windres
39526 else
39527 # Extract the first word of "windres", so it can be a program name with args.
39528set dummy windres; ac_word=$2
39529echo "$as_me:$LINENO: checking for $ac_word" >&5
39530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39531if test "${ac_cv_prog_RESCOMP+set}" = set; then
39532 echo $ECHO_N "(cached) $ECHO_C" >&6
39533else
39534 if test -n "$RESCOMP"; then
39535 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39536else
39537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39538for as_dir in $PATH
39539do
39540 IFS=$as_save_IFS
39541 test -z "$as_dir" && as_dir=.
39542 for ac_exec_ext in '' $ac_executable_extensions; do
39543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39544 ac_cv_prog_RESCOMP="windres"
39545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39546 break 2
39547 fi
39548done
39549done
39550
39551 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39552fi
39553fi
39554RESCOMP=$ac_cv_prog_RESCOMP
39555if test -n "$RESCOMP"; then
39556 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39557echo "${ECHO_T}$RESCOMP" >&6
39558else
39559 echo "$as_me:$LINENO: result: no" >&5
39560echo "${ECHO_T}no" >&6
39561fi
39562
39563 fi
39564 ;;
39565
39566 *-*-darwin* )
39567 # Extract the first word of "Rez", so it can be a program name with args.
39568set dummy Rez; ac_word=$2
39569echo "$as_me:$LINENO: checking for $ac_word" >&5
39570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39571if test "${ac_cv_prog_RESCOMP+set}" = set; then
39572 echo $ECHO_N "(cached) $ECHO_C" >&6
39573else
39574 if test -n "$RESCOMP"; then
39575 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39576else
39577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39578for as_dir in $PATH
39579do
39580 IFS=$as_save_IFS
39581 test -z "$as_dir" && as_dir=.
39582 for ac_exec_ext in '' $ac_executable_extensions; do
39583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39584 ac_cv_prog_RESCOMP="Rez"
39585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39586 break 2
39587 fi
39588done
39589done
39590
39591 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39592fi
39593fi
39594RESCOMP=$ac_cv_prog_RESCOMP
39595if test -n "$RESCOMP"; then
39596 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39597echo "${ECHO_T}$RESCOMP" >&6
39598else
39599 echo "$as_me:$LINENO: result: no" >&5
39600echo "${ECHO_T}no" >&6
39601fi
39602
39603 # Extract the first word of "SetFile", so it can be a program name with args.
39604set dummy SetFile; ac_word=$2
39605echo "$as_me:$LINENO: checking for $ac_word" >&5
39606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39607if test "${ac_cv_prog_SETFILE+set}" = set; then
39608 echo $ECHO_N "(cached) $ECHO_C" >&6
39609else
39610 if test -n "$SETFILE"; then
39611 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39612else
39613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39614for as_dir in $PATH
39615do
39616 IFS=$as_save_IFS
39617 test -z "$as_dir" && as_dir=.
39618 for ac_exec_ext in '' $ac_executable_extensions; do
39619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39620 ac_cv_prog_SETFILE="SetFile"
39621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39622 break 2
39623 fi
39624done
39625done
39626
39627 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39628fi
39629fi
39630SETFILE=$ac_cv_prog_SETFILE
39631if test -n "$SETFILE"; then
39632 echo "$as_me:$LINENO: result: $SETFILE" >&5
39633echo "${ECHO_T}$SETFILE" >&6
39634else
39635 echo "$as_me:$LINENO: result: no" >&5
39636echo "${ECHO_T}no" >&6
39637fi
39638
39639 ;;
39640 esac
39641
39642
39643
39644
39645
39646
39647
39648
a848cd7e
SC
39649 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39650if test "${enable_precomp_headers+set}" = set; then
39651 enableval="$enable_precomp_headers"
39652 bk_use_pch="$enableval"
39653fi;
39654
39655 GCC_PCH=0
39656
39657 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39658 if test "x$GCC" = "xyes"; then
39659 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39660echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39661 cat >conftest.$ac_ext <<_ACEOF
39662/* confdefs.h. */
39663_ACEOF
39664cat confdefs.h >>conftest.$ac_ext
39665cat >>conftest.$ac_ext <<_ACEOF
39666/* end confdefs.h. */
39667
39668int
39669main ()
39670{
39671
39672 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39673 #error "no pch support"
39674 #endif
39675 #if (__GNUC__ < 3)
39676 #error "no pch support"
39677 #endif
39678 #if (__GNUC__ == 3) && \
39679 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39680 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39681 #error "no pch support"
39682 #endif
39683
39684 ;
39685 return 0;
39686}
39687_ACEOF
39688rm -f conftest.$ac_objext
39689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39690 (eval $ac_compile) 2>conftest.er1
39691 ac_status=$?
39692 grep -v '^ *+' conftest.er1 >conftest.err
39693 rm -f conftest.er1
39694 cat conftest.err >&5
39695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696 (exit $ac_status); } &&
01cb68df 39697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
39698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39699 (eval $ac_try) 2>&5
39700 ac_status=$?
39701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39702 (exit $ac_status); }; } &&
39703 { ac_try='test -s conftest.$ac_objext'
39704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39705 (eval $ac_try) 2>&5
39706 ac_status=$?
39707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708 (exit $ac_status); }; }; then
39709
39710 echo "$as_me:$LINENO: result: yes" >&5
39711echo "${ECHO_T}yes" >&6
39712 CPPFLAGS="-fpch-deps $CPPFLAGS"
39713 GCC_PCH=1
39714
39715else
39716 echo "$as_me: failed program was:" >&5
39717sed 's/^/| /' conftest.$ac_ext >&5
39718
39719
39720 echo "$as_me:$LINENO: result: no" >&5
39721echo "${ECHO_T}no" >&6
39722
39723fi
39724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39725 if test $GCC_PCH = 1 ; then
39726 cat <<EOF >bk-make-pch
39727#!/bin/sh
39728
39729# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39730# script. It is used to generated precompiled headers.
39731#
39732# Permission is given to use this file in any way.
39733
39734outfile="\${1}"
39735header="\${2}"
39736shift
39737shift
39738
39739compiler=
39740headerfile=
39741while test \${#} -gt 0; do
39742 case "\${1}" in
39743 -I* )
39744 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39745 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39746 headerfile="\${incdir}/\${header}"
39747 fi
39748 ;;
39749 esac
39750 compiler="\${compiler} \${1}"
39751 shift
39752done
39753
39754if test "x\${headerfile}" = "x" ; then
39755 echo "error: can't find header \${header} in include paths" >2
39756else
39757 if test -f \${outfile} ; then
39758 rm -f \${outfile}
39759 else
39760 mkdir -p \`dirname \${outfile}\`
39761 fi
39762 depsfile=".deps/\`basename \${outfile}\`.d"
39763 mkdir -p .deps
39764 # can do this because gcc is >= 3.4:
39765 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39766 exit \${?}
39767fi
39768EOF
39769 chmod +x bk-make-pch
39770 fi
39771 fi
39772 fi
39773
39774
39775
39776
39777
39778 COND_BUILD_DEBUG="#"
39779 if test "x$BUILD" = "xdebug" ; then
39780 COND_BUILD_DEBUG=""
39781 fi
39782
39783 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39784 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39785 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39786 fi
39787
39788 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39789 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39790 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39791 fi
39792
39793 COND_BUILD_DEBUG_UNICODE_0="#"
39794 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39795 COND_BUILD_DEBUG_UNICODE_0=""
39796 fi
39797
39798 COND_BUILD_DEBUG_UNICODE_1="#"
39799 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39800 COND_BUILD_DEBUG_UNICODE_1=""
39801 fi
39802
39803 COND_BUILD_RELEASE="#"
39804 if test "x$BUILD" = "xrelease" ; then
39805 COND_BUILD_RELEASE=""
39806 fi
39807
39808 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39809 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39810 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39811 fi
39812
39813 COND_BUILD_RELEASE_UNICODE_0="#"
39814 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39815 COND_BUILD_RELEASE_UNICODE_0=""
39816 fi
39817
39818 COND_BUILD_RELEASE_UNICODE_1="#"
39819 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39820 COND_BUILD_RELEASE_UNICODE_1=""
39821 fi
39822
39823 COND_DEBUG_FLAG_1="#"
39824 if test "x$DEBUG_FLAG" = "x1" ; then
39825 COND_DEBUG_FLAG_1=""
39826 fi
39827
39828 COND_DEBUG_INFO_0="#"
39829 if test "x$DEBUG_INFO" = "x0" ; then
39830 COND_DEBUG_INFO_0=""
39831 fi
39832
39833 COND_DEBUG_INFO_1="#"
39834 if test "x$DEBUG_INFO" = "x1" ; then
39835 COND_DEBUG_INFO_1=""
39836 fi
39837
39838 COND_DEPS_TRACKING_0="#"
39839 if test "x$DEPS_TRACKING" = "x0" ; then
39840 COND_DEPS_TRACKING_0=""
39841 fi
39842
39843 COND_DEPS_TRACKING_1="#"
39844 if test "x$DEPS_TRACKING" = "x1" ; then
39845 COND_DEPS_TRACKING_1=""
39846 fi
39847
39848 COND_GCC_PCH_1="#"
39849 if test "x$GCC_PCH" = "x1" ; then
39850 COND_GCC_PCH_1=""
39851 fi
39852
39853 COND_MONOLITHIC_0="#"
39854 if test "x$MONOLITHIC" = "x0" ; then
39855 COND_MONOLITHIC_0=""
39856 fi
39857
39858 COND_MONOLITHIC_0_SHARED_0="#"
39859 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39860 COND_MONOLITHIC_0_SHARED_0=""
39861 fi
39862
39863 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39864 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39865 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39866 fi
39867
39868 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39869 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39870 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39871 fi
39872
39873 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39874 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39875 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39876 fi
39877
39878 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39879 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39880 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39881 fi
39882
39883 COND_MONOLITHIC_0_SHARED_1="#"
39884 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39885 COND_MONOLITHIC_0_SHARED_1=""
39886 fi
39887
39888 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39889 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39890 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39891 fi
39892
39893 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39894 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39895 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39896 fi
39897
39898 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39899 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39900 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39901 fi
39902
39903 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39904 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39905 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39906 fi
39907
39908 COND_MONOLITHIC_0_USE_ODBC_1="#"
39909 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39910 COND_MONOLITHIC_0_USE_ODBC_1=""
39911 fi
39912
39913 COND_MONOLITHIC_1="#"
39914 if test "x$MONOLITHIC" = "x1" ; then
39915 COND_MONOLITHIC_1=""
39916 fi
39917
39918 COND_MONOLITHIC_1_SHARED_0="#"
39919 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39920 COND_MONOLITHIC_1_SHARED_0=""
39921 fi
39922
39923 COND_MONOLITHIC_1_SHARED_1="#"
39924 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39925 COND_MONOLITHIC_1_SHARED_1=""
39926 fi
39927
39928 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39929 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39930 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39931 fi
39932
39933 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39934 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39935 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39936 fi
39937
39938 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39939 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39940 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39941 fi
39942
39943 COND_PLATFORM_MACOSX_1="#"
39944 if test "x$PLATFORM_MACOSX" = "x1" ; then
39945 COND_PLATFORM_MACOSX_1=""
39946 fi
39947
39948 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39949 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39950 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39951 fi
39952
39953 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39954 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39955 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39956 fi
39957
39958 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39959 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39960 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39961 fi
39962
39963 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39964 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39965 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39966 fi
39967
39968 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39969 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39970 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39971 fi
39972
39973 COND_PLATFORM_MAC_1="#"
39974 if test "x$PLATFORM_MAC" = "x1" ; then
39975 COND_PLATFORM_MAC_1=""
39976 fi
39977
39978 COND_PLATFORM_OS2_1="#"
39979 if test "x$PLATFORM_OS2" = "x1" ; then
39980 COND_PLATFORM_OS2_1=""
39981 fi
39982
39983 COND_PLATFORM_UNIX_0="#"
39984 if test "x$PLATFORM_UNIX" = "x0" ; then
39985 COND_PLATFORM_UNIX_0=""
39986 fi
39987
39988 COND_PLATFORM_UNIX_1="#"
39989 if test "x$PLATFORM_UNIX" = "x1" ; then
39990 COND_PLATFORM_UNIX_1=""
39991 fi
39992
39993 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39994 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39995 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39996 fi
39997
39998 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39999 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40000 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40001 fi
40002
40003 COND_PLATFORM_WIN32_0="#"
40004 if test "x$PLATFORM_WIN32" = "x0" ; then
40005 COND_PLATFORM_WIN32_0=""
40006 fi
40007
40008 COND_PLATFORM_WIN32_1="#"
40009 if test "x$PLATFORM_WIN32" = "x1" ; then
40010 COND_PLATFORM_WIN32_1=""
40011 fi
40012
40013 COND_SHARED_0="#"
40014 if test "x$SHARED" = "x0" ; then
40015 COND_SHARED_0=""
40016 fi
40017
40018 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40019 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40020 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40021 fi
40022
40023 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40024 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40025 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40026 fi
40027
40028 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40029 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40030 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40031 fi
40032
40033 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40034 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40035 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40036 fi
40037
40038 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40039 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40040 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40041 fi
40042
40043 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40044 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40045 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40046 fi
40047
40048 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40049 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40050 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40051 fi
40052
40053 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40054 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40055 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40056 fi
40057
40058 COND_SHARED_1="#"
40059 if test "x$SHARED" = "x1" ; then
40060 COND_SHARED_1=""
40061 fi
40062
40063 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40064 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40065 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40066 fi
40067
40068 COND_TOOLKIT_COCOA="#"
40069 if test "x$TOOLKIT" = "xCOCOA" ; then
40070 COND_TOOLKIT_COCOA=""
40071 fi
40072
40073 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40074 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40075 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40076 fi
40077
40078 COND_TOOLKIT_GTK="#"
40079 if test "x$TOOLKIT" = "xGTK" ; then
40080 COND_TOOLKIT_GTK=""
40081 fi
40082
40083 COND_TOOLKIT_GTK_USE_GUI_1="#"
40084 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40085 COND_TOOLKIT_GTK_USE_GUI_1=""
40086 fi
40087
40088 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40089 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40090 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40091 fi
40092
40093 COND_TOOLKIT_MAC="#"
40094 if test "x$TOOLKIT" = "xMAC" ; then
40095 COND_TOOLKIT_MAC=""
40096 fi
40097
40098 COND_TOOLKIT_MAC_USE_GUI_1="#"
40099 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40100 COND_TOOLKIT_MAC_USE_GUI_1=""
40101 fi
40102
40103 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40104 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40105 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40106 fi
40107
40108 COND_TOOLKIT_MGL="#"
40109 if test "x$TOOLKIT" = "xMGL" ; then
40110 COND_TOOLKIT_MGL=""
40111 fi
40112
40113 COND_TOOLKIT_MGL_USE_GUI_1="#"
40114 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40115 COND_TOOLKIT_MGL_USE_GUI_1=""
40116 fi
40117
40118 COND_TOOLKIT_MOTIF="#"
40119 if test "x$TOOLKIT" = "xMOTIF" ; then
40120 COND_TOOLKIT_MOTIF=""
40121 fi
40122
40123 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40124 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40125 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40126 fi
40127
40128 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40129 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40130 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40131 fi
40132
40133 COND_TOOLKIT_MSW="#"
40134 if test "x$TOOLKIT" = "xMSW" ; then
40135 COND_TOOLKIT_MSW=""
40136 fi
40137
40138 COND_TOOLKIT_MSW_USE_GUI_1="#"
40139 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40140 COND_TOOLKIT_MSW_USE_GUI_1=""
40141 fi
40142
40143 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40144 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40145 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40146 fi
40147
40148 COND_TOOLKIT_PM="#"
40149 if test "x$TOOLKIT" = "xPM" ; then
40150 COND_TOOLKIT_PM=""
40151 fi
40152
40153 COND_TOOLKIT_PM_USE_GUI_1="#"
40154 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40155 COND_TOOLKIT_PM_USE_GUI_1=""
40156 fi
40157
40158 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40159 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40160 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40161 fi
40162
3fd9c298
DE
40163 COND_TOOLKIT_WINCE="#"
40164 if test "x$TOOLKIT" = "xWINCE" ; then
40165 COND_TOOLKIT_WINCE=""
40166 fi
40167
40168 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40169 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40170 COND_TOOLKIT_WINCE_USE_GUI_1=""
40171 fi
40172
40173 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40174 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40175 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40176 fi
40177
a848cd7e
SC
40178 COND_TOOLKIT_X11="#"
40179 if test "x$TOOLKIT" = "xX11" ; then
40180 COND_TOOLKIT_X11=""
40181 fi
40182
40183 COND_TOOLKIT_X11_USE_GUI_1="#"
40184 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40185 COND_TOOLKIT_X11_USE_GUI_1=""
40186 fi
40187
40188 COND_UNICODE_1="#"
40189 if test "x$UNICODE" = "x1" ; then
40190 COND_UNICODE_1=""
40191 fi
40192
40193 COND_USE_EXCEPTIONS_0="#"
40194 if test "x$USE_EXCEPTIONS" = "x0" ; then
40195 COND_USE_EXCEPTIONS_0=""
40196 fi
40197
40198 COND_USE_EXCEPTIONS_1="#"
40199 if test "x$USE_EXCEPTIONS" = "x1" ; then
40200 COND_USE_EXCEPTIONS_1=""
40201 fi
40202
40203 COND_USE_GUI_0="#"
40204 if test "x$USE_GUI" = "x0" ; then
40205 COND_USE_GUI_0=""
40206 fi
40207
40208 COND_USE_GUI_1="#"
40209 if test "x$USE_GUI" = "x1" ; then
40210 COND_USE_GUI_1=""
40211 fi
40212
40213 COND_USE_GUI_1_WXUNIV_0="#"
40214 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40215 COND_USE_GUI_1_WXUNIV_0=""
40216 fi
40217
40218 COND_USE_GUI_1_WXUNIV_1="#"
40219 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40220 COND_USE_GUI_1_WXUNIV_1=""
40221 fi
40222
40223 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40224 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40225 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40226 fi
40227
40228 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40229 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40230 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40231 fi
40232
40233 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40234 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40235 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40236 fi
40237
40238 COND_USE_ODBC_1="#"
40239 if test "x$USE_ODBC" = "x1" ; then
40240 COND_USE_ODBC_1=""
40241 fi
40242
40243 COND_USE_PLUGINS_0="#"
40244 if test "x$USE_PLUGINS" = "x0" ; then
40245 COND_USE_PLUGINS_0=""
40246 fi
40247
40248 COND_USE_SOSYMLINKS_1="#"
40249 if test "x$USE_SOSYMLINKS" = "x1" ; then
40250 COND_USE_SOSYMLINKS_1=""
40251 fi
40252
40253 COND_USE_SOVERLINUX_1="#"
40254 if test "x$USE_SOVERLINUX" = "x1" ; then
40255 COND_USE_SOVERLINUX_1=""
40256 fi
40257
40258 COND_USE_SOVERSION_0="#"
40259 if test "x$USE_SOVERSION" = "x0" ; then
40260 COND_USE_SOVERSION_0=""
40261 fi
40262
40263 COND_USE_SOVERSOLARIS_1="#"
40264 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40265 COND_USE_SOVERSOLARIS_1=""
40266 fi
40267
40268 COND_WITH_PLUGIN_SDL_1="#"
40269 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40270 COND_WITH_PLUGIN_SDL_1=""
40271 fi
40272
40273 COND_WITH_SDL_1="#"
40274 if test "x$WITH_SDL" = "x1" ; then
40275 COND_WITH_SDL_1=""
40276 fi
40277
40278 COND_WXUNIV_1="#"
40279 if test "x$WXUNIV" = "x1" ; then
40280 COND_WXUNIV_1=""
40281 fi
40282
40283 COND_WXUSE_EXPAT_BUILTIN="#"
40284 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40285 COND_WXUSE_EXPAT_BUILTIN=""
40286 fi
40287
40288 COND_WXUSE_LIBJPEG_BUILTIN="#"
40289 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40290 COND_WXUSE_LIBJPEG_BUILTIN=""
40291 fi
40292
40293 COND_WXUSE_LIBPNG_BUILTIN="#"
40294 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40295 COND_WXUSE_LIBPNG_BUILTIN=""
40296 fi
40297
40298 COND_WXUSE_LIBTIFF_BUILTIN="#"
40299 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40300 COND_WXUSE_LIBTIFF_BUILTIN=""
40301 fi
40302
40303 COND_WXUSE_ODBC_BUILTIN="#"
40304 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40305 COND_WXUSE_ODBC_BUILTIN=""
40306 fi
40307
40308 COND_WXUSE_REGEX_BUILTIN="#"
40309 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40310 COND_WXUSE_REGEX_BUILTIN=""
40311 fi
40312
40313 COND_WXUSE_ZLIB_BUILTIN="#"
40314 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40315 COND_WXUSE_ZLIB_BUILTIN=""
40316 fi
40317
40318
40319
40320
40321
40322if test $GCC_PCH = 1 ; then
40323 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
40324 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
40325else
40326 case "${host}" in
40327 powerpc-*-darwin* )
40328 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
40329 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
40330 ;;
40331 esac
40332fi
40333
40334
40335SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
40348
40349
40350
40351
40352
40353
40354
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394
40395
40396
40397
40398
40399
40400
40401
40402
40403
40404
40405
40406
40407
40408
40409
40410
40411
40412
40413
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40437echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
40438set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
40439if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40440 echo $ECHO_N "(cached) $ECHO_C" >&6
40441else
40442 cat >conftest.make <<\_ACEOF
40443all:
40444 @echo 'ac_maketemp="$(MAKE)"'
40445_ACEOF
40446# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40447eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40448if test -n "$ac_maketemp"; then
40449 eval ac_cv_prog_make_${ac_make}_set=yes
40450else
40451 eval ac_cv_prog_make_${ac_make}_set=no
40452fi
40453rm -f conftest.make
40454fi
40455if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40456 echo "$as_me:$LINENO: result: yes" >&5
40457echo "${ECHO_T}yes" >&6
40458 SET_MAKE=
40459else
40460 echo "$as_me:$LINENO: result: no" >&5
40461echo "${ECHO_T}no" >&6
40462 SET_MAKE="MAKE=${MAKE-make}"
40463fi
40464
40465
40466if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
40467 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
40468fi
40469
40470 ac_config_headers="$ac_config_headers setup.h"
40471
40472
40473 ac_config_files="$ac_config_files wx-config version-script Makefile"
40474
40475
40476 ac_config_commands="$ac_config_commands default"
40477
40478
40479
40480if test "$wxUSE_GUI" = "yes"; then
40481 SUBDIRS="samples demos utils contrib"
40482else SUBDIRS="samples utils"
40483fi
40484
40485
40486
40487# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40488if test "${with_cppunit_prefix+set}" = set; then
40489 withval="$with_cppunit_prefix"
40490 cppunit_config_prefix="$withval"
40491else
40492 cppunit_config_prefix=""
40493fi;
40494
40495# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40496if test "${with_cppunit_exec_prefix+set}" = set; then
40497 withval="$with_cppunit_exec_prefix"
40498 cppunit_config_exec_prefix="$withval"
40499else
40500 cppunit_config_exec_prefix=""
40501fi;
40502
40503 if test x$cppunit_config_exec_prefix != x ; then
40504 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40505 if test x${CPPUNIT_CONFIG+set} != xset ; then
40506 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40507 fi
40508 fi
40509 if test x$cppunit_config_prefix != x ; then
40510 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40511 if test x${CPPUNIT_CONFIG+set} != xset ; then
40512 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40513 fi
40514 fi
40515
40516 # Extract the first word of "cppunit-config", so it can be a program name with args.
40517set dummy cppunit-config; ac_word=$2
40518echo "$as_me:$LINENO: checking for $ac_word" >&5
40519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40520if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
40521 echo $ECHO_N "(cached) $ECHO_C" >&6
40522else
40523 case $CPPUNIT_CONFIG in
40524 [\\/]* | ?:[\\/]*)
40525 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
40526 ;;
40527 *)
40528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40529for as_dir in $PATH
40530do
40531 IFS=$as_save_IFS
40532 test -z "$as_dir" && as_dir=.
40533 for ac_exec_ext in '' $ac_executable_extensions; do
40534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40535 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40537 break 2
40538 fi
40539done
40540done
40541
40542 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
40543 ;;
40544esac
40545fi
40546CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
40547
40548if test -n "$CPPUNIT_CONFIG"; then
40549 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
40550echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
40551else
40552 echo "$as_me:$LINENO: result: no" >&5
40553echo "${ECHO_T}no" >&6
40554fi
40555
40556 cppunit_version_min=1.8.0
40557
40558 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
40559echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
40560 no_cppunit=""
40561 if test "$CPPUNIT_CONFIG" = "no" ; then
40562 no_cppunit=yes
40563 else
40564 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
40565 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
40566 cppunit_version=`$CPPUNIT_CONFIG --version`
40567
40568 cppunit_major_version=`echo $cppunit_version | \
40569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40570 cppunit_minor_version=`echo $cppunit_version | \
40571 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40572 cppunit_micro_version=`echo $cppunit_version | \
40573 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40574
40575 cppunit_major_min=`echo $cppunit_version_min | \
40576 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40577 cppunit_minor_min=`echo $cppunit_version_min | \
40578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40579 cppunit_micro_min=`echo $cppunit_version_min | \
40580 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40581
40582 cppunit_version_proper=`expr \
40583 $cppunit_major_version \> $cppunit_major_min \| \
40584 $cppunit_major_version \= $cppunit_major_min \& \
40585 $cppunit_minor_version \> $cppunit_minor_min \| \
40586 $cppunit_major_version \= $cppunit_major_min \& \
40587 $cppunit_minor_version \= $cppunit_minor_min \& \
40588 $cppunit_micro_version \>= $cppunit_micro_min `
40589
40590 if test "$cppunit_version_proper" = "1" ; then
40591 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
40592echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
40593 else
40594 echo "$as_me:$LINENO: result: no" >&5
40595echo "${ECHO_T}no" >&6
40596 no_cppunit=yes
40597 fi
40598 fi
40599
40600 if test "x$no_cppunit" = x ; then
40601 SUBDIRS="$SUBDIRS tests"
40602 else
40603 CPPUNIT_CFLAGS=""
40604 CPPUNIT_LIBS=""
40605 :
40606 fi
40607
40608
40609
40610
40611
40612for subdir in `echo $SUBDIRS`; do
40613 if test -d ${srcdir}/${subdir} ; then
40614 if test "$wxUSE_GUI" = "yes"; then
40615 if test ${subdir} = "samples"; then
40616 makefiles="samples/Makefile.in $makefiles"
40617 for sample in `echo $SAMPLES_SUBDIRS`; do
40618 if test -d $srcdir/samples/$sample; then
40619 makefiles="samples/$sample/Makefile.in $makefiles"
40620 fi
40621 done
40622 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40623 fi
40624 else if test ${subdir} = "samples"; then
40625 makefiles="samples/Makefile.in samples/console/Makefile.in"
40626 elif test ${subdir} = "utils"; then
40627 makefiles="utils/HelpGen/Makefile.in \
40628 utils/HelpGen/src/Makefile.in \
40629 utils/tex2rtf/Makefile.in \
40630 utils/tex2rtf/src/Makefile.in"
40631 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40632 fi
40633 fi
40634
40635 for mkin in $makefiles ; do
40636 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
40637 ac_config_files="$ac_config_files $mk"
40638
40639 done
40640 fi
40641done
40642
40643
40644cat >confcache <<\_ACEOF
40645# This file is a shell script that caches the results of configure
40646# tests run on this system so they can be shared between configure
40647# scripts and configure runs, see configure's option --config-cache.
40648# It is not useful on other systems. If it contains results you don't
40649# want to keep, you may remove or edit it.
40650#
40651# config.status only pays attention to the cache file if you give it
40652# the --recheck option to rerun configure.
40653#
40654# `ac_cv_env_foo' variables (set or unset) will be overridden when
40655# loading this file, other *unset* `ac_cv_foo' will be assigned the
40656# following values.
40657
40658_ACEOF
40659
40660# The following way of writing the cache mishandles newlines in values,
40661# but we know of no workaround that is simple, portable, and efficient.
40662# So, don't put newlines in cache variables' values.
40663# Ultrix sh set writes to stderr and can't be redirected directly,
40664# and sets the high bit in the cache file unless we assign to the vars.
40665{
40666 (set) 2>&1 |
40667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40668 *ac_space=\ *)
40669 # `set' does not quote correctly, so add quotes (double-quote
40670 # substitution turns \\\\ into \\, and sed turns \\ into \).
40671 sed -n \
40672 "s/'/'\\\\''/g;
40673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40674 ;;
40675 *)
40676 # `set' quotes correctly as required by POSIX, so do not add quotes.
40677 sed -n \
40678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40679 ;;
40680 esac;
40681} |
40682 sed '
40683 t clear
40684 : clear
40685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40686 t end
40687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40688 : end' >>confcache
40689if diff $cache_file confcache >/dev/null 2>&1; then :; else
40690 if test -w $cache_file; then
40691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40692 cat confcache >$cache_file
40693 else
40694 echo "not updating unwritable cache $cache_file"
40695 fi
40696fi
40697rm -f confcache
40698
40699test "x$prefix" = xNONE && prefix=$ac_default_prefix
40700# Let make expand exec_prefix.
40701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40702
40703# VPATH may cause trouble with some makes, so we remove $(srcdir),
40704# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40705# trailing colons and then remove the whole line if VPATH becomes empty
40706# (actually we leave an empty line to preserve line numbers).
40707if test "x$srcdir" = x.; then
40708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40709s/:*\$(srcdir):*/:/;
40710s/:*\${srcdir}:*/:/;
40711s/:*@srcdir@:*/:/;
40712s/^\([^=]*=[ ]*\):*/\1/;
40713s/:*$//;
40714s/^[^=]*=[ ]*$//;
40715}'
40716fi
40717
40718DEFS=-DHAVE_CONFIG_H
40719
40720ac_libobjs=
40721ac_ltlibobjs=
40722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40723 # 1. Remove the extension, and $U if already installed.
40724 ac_i=`echo "$ac_i" |
40725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40726 # 2. Add them.
40727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40729done
40730LIBOBJS=$ac_libobjs
40731
40732LTLIBOBJS=$ac_ltlibobjs
40733
40734
40735
40736: ${CONFIG_STATUS=./config.status}
40737ac_clean_files_save=$ac_clean_files
40738ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40739{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40740echo "$as_me: creating $CONFIG_STATUS" >&6;}
40741cat >$CONFIG_STATUS <<_ACEOF
40742#! $SHELL
40743# Generated by $as_me.
40744# Run this file to recreate the current configuration.
40745# Compiler output produced by configure, useful for debugging
40746# configure, is in config.log if it exists.
40747
40748debug=false
40749ac_cs_recheck=false
40750ac_cs_silent=false
40751SHELL=\${CONFIG_SHELL-$SHELL}
40752_ACEOF
40753
40754cat >>$CONFIG_STATUS <<\_ACEOF
40755## --------------------- ##
40756## M4sh Initialization. ##
40757## --------------------- ##
40758
40759# Be Bourne compatible
40760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40761 emulate sh
40762 NULLCMD=:
40763 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40764 # is contrary to our usage. Disable this feature.
40765 alias -g '${1+"$@"}'='"$@"'
40766elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40767 set -o posix
40768fi
40769DUALCASE=1; export DUALCASE # for MKS sh
40770
40771# Support unset when possible.
40772if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40773 as_unset=unset
40774else
40775 as_unset=false
40776fi
40777
40778
40779# Work around bugs in pre-3.0 UWIN ksh.
40780$as_unset ENV MAIL MAILPATH
40781PS1='$ '
40782PS2='> '
40783PS4='+ '
40784
40785# NLS nuisances.
40786for as_var in \
40787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40789 LC_TELEPHONE LC_TIME
40790do
40791 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40792 eval $as_var=C; export $as_var
40793 else
40794 $as_unset $as_var
40795 fi
40796done
40797
40798# Required to use basename.
40799if expr a : '\(a\)' >/dev/null 2>&1; then
40800 as_expr=expr
40801else
40802 as_expr=false
40803fi
40804
40805if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40806 as_basename=basename
40807else
40808 as_basename=false
40809fi
40810
40811
40812# Name of the executable.
40813as_me=`$as_basename "$0" ||
40814$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40815 X"$0" : 'X\(//\)$' \| \
40816 X"$0" : 'X\(/\)$' \| \
40817 . : '\(.\)' 2>/dev/null ||
40818echo X/"$0" |
40819 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40820 /^X\/\(\/\/\)$/{ s//\1/; q; }
40821 /^X\/\(\/\).*/{ s//\1/; q; }
40822 s/.*/./; q'`
40823
40824
40825# PATH needs CR, and LINENO needs CR and PATH.
40826# Avoid depending upon Character Ranges.
40827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40829as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40830as_cr_digits='0123456789'
40831as_cr_alnum=$as_cr_Letters$as_cr_digits
40832
40833# The user is always right.
40834if test "${PATH_SEPARATOR+set}" != set; then
40835 echo "#! /bin/sh" >conf$$.sh
40836 echo "exit 0" >>conf$$.sh
40837 chmod +x conf$$.sh
40838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40839 PATH_SEPARATOR=';'
40840 else
40841 PATH_SEPARATOR=:
40842 fi
40843 rm -f conf$$.sh
40844fi
40845
40846
40847 as_lineno_1=$LINENO
40848 as_lineno_2=$LINENO
40849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40850 test "x$as_lineno_1" != "x$as_lineno_2" &&
40851 test "x$as_lineno_3" = "x$as_lineno_2" || {
40852 # Find who we are. Look in the path if we contain no path at all
40853 # relative or not.
40854 case $0 in
40855 *[\\/]* ) as_myself=$0 ;;
40856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40857for as_dir in $PATH
40858do
40859 IFS=$as_save_IFS
40860 test -z "$as_dir" && as_dir=.
40861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40862done
40863
40864 ;;
40865 esac
40866 # We did not find ourselves, most probably we were run as `sh COMMAND'
40867 # in which case we are not to be found in the path.
40868 if test "x$as_myself" = x; then
40869 as_myself=$0
40870 fi
40871 if test ! -f "$as_myself"; then
40872 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40873echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40874 { (exit 1); exit 1; }; }
40875 fi
40876 case $CONFIG_SHELL in
40877 '')
40878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40879for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40880do
40881 IFS=$as_save_IFS
40882 test -z "$as_dir" && as_dir=.
40883 for as_base in sh bash ksh sh5; do
40884 case $as_dir in
40885 /*)
40886 if ("$as_dir/$as_base" -c '
40887 as_lineno_1=$LINENO
40888 as_lineno_2=$LINENO
40889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40890 test "x$as_lineno_1" != "x$as_lineno_2" &&
40891 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40892 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40893 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40894 CONFIG_SHELL=$as_dir/$as_base
40895 export CONFIG_SHELL
40896 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40897 fi;;
40898 esac
40899 done
40900done
40901;;
40902 esac
40903
40904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40905 # uniformly replaced by the line number. The first 'sed' inserts a
40906 # line-number line before each line; the second 'sed' does the real
40907 # work. The second script uses 'N' to pair each line-number line
40908 # with the numbered line, and appends trailing '-' during
40909 # substitution so that $LINENO is not a special case at line end.
40910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40911 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40912 sed '=' <$as_myself |
40913 sed '
40914 N
40915 s,$,-,
40916 : loop
40917 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40918 t loop
40919 s,-$,,
40920 s,^['$as_cr_digits']*\n,,
40921 ' >$as_me.lineno &&
40922 chmod +x $as_me.lineno ||
40923 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40924echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40925 { (exit 1); exit 1; }; }
40926
40927 # Don't try to exec as it changes $[0], causing all sort of problems
40928 # (the dirname of $[0] is not the place where we might find the
40929 # original and so on. Autoconf is especially sensible to this).
40930 . ./$as_me.lineno
40931 # Exit status is that of the last command.
40932 exit
40933}
40934
40935
40936case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40937 *c*,-n*) ECHO_N= ECHO_C='
40938' ECHO_T=' ' ;;
40939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40941esac
40942
40943if expr a : '\(a\)' >/dev/null 2>&1; then
40944 as_expr=expr
40945else
40946 as_expr=false
40947fi
40948
40949rm -f conf$$ conf$$.exe conf$$.file
40950echo >conf$$.file
40951if ln -s conf$$.file conf$$ 2>/dev/null; then
40952 # We could just check for DJGPP; but this test a) works b) is more generic
40953 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40954 if test -f conf$$.exe; then
40955 # Don't use ln at all; we don't have any links
40956 as_ln_s='cp -p'
40957 else
40958 as_ln_s='ln -s'
40959 fi
40960elif ln conf$$.file conf$$ 2>/dev/null; then
40961 as_ln_s=ln
40962else
40963 as_ln_s='cp -p'
40964fi
40965rm -f conf$$ conf$$.exe conf$$.file
40966
40967if mkdir -p . 2>/dev/null; then
40968 as_mkdir_p=:
40969else
40970 test -d ./-p && rmdir ./-p
40971 as_mkdir_p=false
40972fi
40973
40974as_executable_p="test -f"
40975
40976# Sed expression to map a string onto a valid CPP name.
40977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40978
40979# Sed expression to map a string onto a valid variable name.
40980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40981
40982
40983# IFS
40984# We need space, tab and new line, in precisely that order.
40985as_nl='
40986'
40987IFS=" $as_nl"
40988
40989# CDPATH.
40990$as_unset CDPATH
40991
40992exec 6>&1
40993
40994# Open the log real soon, to keep \$[0] and so on meaningful, and to
40995# report actual input values of CONFIG_FILES etc. instead of their
40996# values after options handling. Logging --version etc. is OK.
40997exec 5>>config.log
40998{
40999 echo
41000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41001## Running $as_me. ##
41002_ASBOX
41003} >&5
41004cat >&5 <<_CSEOF
41005
41006This file was extended by wxWindows $as_me 2.5.1, which was
01cb68df 41007generated by GNU Autoconf 2.58. Invocation command line was
a848cd7e
SC
41008
41009 CONFIG_FILES = $CONFIG_FILES
41010 CONFIG_HEADERS = $CONFIG_HEADERS
41011 CONFIG_LINKS = $CONFIG_LINKS
41012 CONFIG_COMMANDS = $CONFIG_COMMANDS
41013 $ $0 $@
41014
41015_CSEOF
41016echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41017echo >&5
41018_ACEOF
41019
41020# Files that config.status was made for.
41021if test -n "$ac_config_files"; then
41022 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41023fi
41024
41025if test -n "$ac_config_headers"; then
41026 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41027fi
41028
41029if test -n "$ac_config_links"; then
41030 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41031fi
41032
41033if test -n "$ac_config_commands"; then
41034 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41035fi
41036
41037cat >>$CONFIG_STATUS <<\_ACEOF
41038
41039ac_cs_usage="\
41040\`$as_me' instantiates files from templates according to the
41041current configuration.
41042
41043Usage: $0 [OPTIONS] [FILE]...
41044
41045 -h, --help print this help, then exit
41046 -V, --version print version number, then exit
41047 -q, --quiet do not print progress messages
41048 -d, --debug don't remove temporary files
41049 --recheck update $as_me by reconfiguring in the same conditions
41050 --file=FILE[:TEMPLATE]
41051 instantiate the configuration file FILE
41052 --header=FILE[:TEMPLATE]
41053 instantiate the configuration header FILE
41054
41055Configuration files:
41056$config_files
41057
41058Configuration headers:
41059$config_headers
41060
41061Configuration commands:
41062$config_commands
41063
41064Report bugs to <bug-autoconf@gnu.org>."
41065_ACEOF
41066
41067cat >>$CONFIG_STATUS <<_ACEOF
41068ac_cs_version="\\
41069wxWindows config.status 2.5.1
01cb68df 41070configured by $0, generated by GNU Autoconf 2.58,
a848cd7e
SC
41071 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41072
41073Copyright (C) 2003 Free Software Foundation, Inc.
41074This config.status script is free software; the Free Software Foundation
41075gives unlimited permission to copy, distribute and modify it."
41076srcdir=$srcdir
41077INSTALL="$INSTALL"
41078_ACEOF
41079
41080cat >>$CONFIG_STATUS <<\_ACEOF
41081# If no file are specified by the user, then we need to provide default
41082# value. By we need to know if files were specified by the user.
41083ac_need_defaults=:
41084while test $# != 0
41085do
41086 case $1 in
41087 --*=*)
41088 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41089 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41090 ac_shift=:
41091 ;;
41092 -*)
41093 ac_option=$1
41094 ac_optarg=$2
41095 ac_shift=shift
41096 ;;
41097 *) # This is not an option, so the user has probably given explicit
41098 # arguments.
41099 ac_option=$1
41100 ac_need_defaults=false;;
41101 esac
41102
41103 case $ac_option in
41104 # Handling of the options.
41105_ACEOF
41106cat >>$CONFIG_STATUS <<\_ACEOF
41107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41108 ac_cs_recheck=: ;;
41109 --version | --vers* | -V )
41110 echo "$ac_cs_version"; exit 0 ;;
41111 --he | --h)
41112 # Conflict between --help and --header
41113 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41114Try \`$0 --help' for more information." >&5
41115echo "$as_me: error: ambiguous option: $1
41116Try \`$0 --help' for more information." >&2;}
41117 { (exit 1); exit 1; }; };;
41118 --help | --hel | -h )
41119 echo "$ac_cs_usage"; exit 0 ;;
41120 --debug | --d* | -d )
41121 debug=: ;;
41122 --file | --fil | --fi | --f )
41123 $ac_shift
41124 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41125 ac_need_defaults=false;;
41126 --header | --heade | --head | --hea )
41127 $ac_shift
41128 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41129 ac_need_defaults=false;;
41130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41132 ac_cs_silent=: ;;
41133
41134 # This is an error.
41135 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41136Try \`$0 --help' for more information." >&5
41137echo "$as_me: error: unrecognized option: $1
41138Try \`$0 --help' for more information." >&2;}
41139 { (exit 1); exit 1; }; } ;;
41140
41141 *) ac_config_targets="$ac_config_targets $1" ;;
41142
41143 esac
41144 shift
41145done
41146
41147ac_configure_extra_args=
41148
41149if $ac_cs_silent; then
41150 exec 6>/dev/null
41151 ac_configure_extra_args="$ac_configure_extra_args --silent"
41152fi
41153
41154_ACEOF
41155cat >>$CONFIG_STATUS <<_ACEOF
41156if \$ac_cs_recheck; then
41157 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41158 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41159fi
41160
41161_ACEOF
41162
41163cat >>$CONFIG_STATUS <<_ACEOF
41164#
41165# INIT-COMMANDS section.
41166#
41167
41168
41169 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
41170 LN_S="${LN_S}"
41171
41172
41173
41174_ACEOF
41175
41176
41177
41178cat >>$CONFIG_STATUS <<\_ACEOF
41179for ac_config_target in $ac_config_targets
41180do
41181 case "$ac_config_target" in
41182 # Handling of arguments.
41183 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
41184 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41185 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41186 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41187 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41188 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41189 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41190echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41191 { (exit 1); exit 1; }; };;
41192 esac
41193done
41194
41195# If the user did not use the arguments to specify the items to instantiate,
41196# then the envvar interface is used. Set only those that are not.
41197# We use the long form for the default assignment because of an extremely
41198# bizarre bug on SunOS 4.1.3.
41199if $ac_need_defaults; then
41200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41202 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41203fi
41204
41205# Have a temporary directory for convenience. Make it in the build tree
41206# simply because there is no reason to put it here, and in addition,
41207# creating and moving files from /tmp can sometimes cause problems.
41208# Create a temporary directory, and hook for its removal unless debugging.
41209$debug ||
41210{
41211 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41212 trap '{ (exit 1); exit 1; }' 1 2 13 15
41213}
41214
41215# Create a (secure) tmp directory for tmp files.
41216
41217{
41218 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41219 test -n "$tmp" && test -d "$tmp"
41220} ||
41221{
41222 tmp=./confstat$$-$RANDOM
41223 (umask 077 && mkdir $tmp)
41224} ||
41225{
41226 echo "$me: cannot create a temporary directory in ." >&2
41227 { (exit 1); exit 1; }
41228}
41229
41230_ACEOF
41231
41232cat >>$CONFIG_STATUS <<_ACEOF
41233
41234#
41235# CONFIG_FILES section.
41236#
41237
41238# No need to generate the scripts if there are no CONFIG_FILES.
41239# This happens for instance when ./config.status config.h
41240if test -n "\$CONFIG_FILES"; then
41241 # Protect against being on the right side of a sed subst in config.status.
41242 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41243 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41244s,@SHELL@,$SHELL,;t t
41245s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41246s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41247s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41248s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41249s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41250s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41251s,@exec_prefix@,$exec_prefix,;t t
41252s,@prefix@,$prefix,;t t
41253s,@program_transform_name@,$program_transform_name,;t t
41254s,@bindir@,$bindir,;t t
41255s,@sbindir@,$sbindir,;t t
41256s,@libexecdir@,$libexecdir,;t t
41257s,@datadir@,$datadir,;t t
41258s,@sysconfdir@,$sysconfdir,;t t
41259s,@sharedstatedir@,$sharedstatedir,;t t
41260s,@localstatedir@,$localstatedir,;t t
41261s,@libdir@,$libdir,;t t
41262s,@includedir@,$includedir,;t t
41263s,@oldincludedir@,$oldincludedir,;t t
41264s,@infodir@,$infodir,;t t
41265s,@mandir@,$mandir,;t t
41266s,@build_alias@,$build_alias,;t t
41267s,@host_alias@,$host_alias,;t t
41268s,@target_alias@,$target_alias,;t t
41269s,@DEFS@,$DEFS,;t t
41270s,@ECHO_C@,$ECHO_C,;t t
41271s,@ECHO_N@,$ECHO_N,;t t
41272s,@ECHO_T@,$ECHO_T,;t t
41273s,@LIBS@,$LIBS,;t t
41274s,@build@,$build,;t t
41275s,@build_cpu@,$build_cpu,;t t
41276s,@build_vendor@,$build_vendor,;t t
41277s,@build_os@,$build_os,;t t
41278s,@host@,$host,;t t
41279s,@host_cpu@,$host_cpu,;t t
41280s,@host_vendor@,$host_vendor,;t t
41281s,@host_os@,$host_os,;t t
41282s,@target@,$target,;t t
41283s,@target_cpu@,$target_cpu,;t t
41284s,@target_vendor@,$target_vendor,;t t
41285s,@target_os@,$target_os,;t t
41286s,@CC@,$CC,;t t
41287s,@CFLAGS@,$CFLAGS,;t t
41288s,@LDFLAGS@,$LDFLAGS,;t t
41289s,@CPPFLAGS@,$CPPFLAGS,;t t
41290s,@ac_ct_CC@,$ac_ct_CC,;t t
41291s,@EXEEXT@,$EXEEXT,;t t
41292s,@OBJEXT@,$OBJEXT,;t t
41293s,@CPP@,$CPP,;t t
41294s,@EGREP@,$EGREP,;t t
41295s,@CXX@,$CXX,;t t
41296s,@CXXFLAGS@,$CXXFLAGS,;t t
41297s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41298s,@RANLIB@,$RANLIB,;t t
41299s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41300s,@AR@,$AR,;t t
41301s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41302s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41303s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41304s,@STRIP@,$STRIP,;t t
41305s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41306s,@LN_S@,$LN_S,;t t
41307s,@CXXCPP@,$CXXCPP,;t t
41308s,@subdirs@,$subdirs,;t t
41309s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41310s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41311s,@GTK_LIBS@,$GTK_LIBS,;t t
41312s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41313s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41314s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41315s,@X_CFLAGS@,$X_CFLAGS,;t t
41316s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41317s,@X_LIBS@,$X_LIBS,;t t
41318s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41319s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41320s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41321s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41322s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41323s,@RESCOMP@,$RESCOMP,;t t
41324s,@DEREZ@,$DEREZ,;t t
41325s,@SETFILE@,$SETFILE,;t t
41326s,@LIBICONV@,$LIBICONV,;t t
41327s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41328s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41329s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41330s,@SDL_LIBS@,$SDL_LIBS,;t t
41331s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41332s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41333s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41334s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41335s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41336s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41337s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41338s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41339s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41340s,@VENDOR@,$VENDOR,;t t
41341s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
41342s,@WXUNIV@,$WXUNIV,;t t
41343s,@MONOLITHIC@,$MONOLITHIC,;t t
41344s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41345s,@EXTRALIBS@,$EXTRALIBS,;t t
41346s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41347s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41348s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41349s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41350s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41351s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41352s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
41353s,@UNICODE@,$UNICODE,;t t
41354s,@BUILD@,$BUILD,;t t
41355s,@DEBUG_INFO@,$DEBUG_INFO,;t t
41356s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
41357s,@SHARED@,$SHARED,;t t
41358s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
41359s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
41360s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
41361s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
41362s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
41363s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
41364s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
41365s,@SET_MAKE@,$SET_MAKE,;t t
41366s,@MAKE_SET@,$MAKE_SET,;t t
41367s,@ac_ct_AR@,$ac_ct_AR,;t t
41368s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41369s,@NM@,$NM,;t t
41370s,@ac_ct_NM@,$ac_ct_NM,;t t
41371s,@INSTALL_DIR@,$INSTALL_DIR,;t t
41372s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
41373s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
41374s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
41375s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
41376s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
41377s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
41378s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
41379s,@SO_SUFFIX@,$SO_SUFFIX,;t t
41380s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
41381s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
41382s,@LIBPREFIX@,$LIBPREFIX,;t t
41383s,@LIBEXT@,$LIBEXT,;t t
41384s,@DLLPREFIX@,$DLLPREFIX,;t t
41385s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
41386s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
41387s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41388s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41389s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41390s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41391s,@PIC_FLAG@,$PIC_FLAG,;t t
41392s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41393s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41394s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41395s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41396s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41397s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41398s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41399s,@GCC_PCH@,$GCC_PCH,;t t
41400s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41401s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41402s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41403s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41404s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41405s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41406s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41407s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41408s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41409s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41410s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41411s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41412s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41413s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41414s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41415s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41416s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41417s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41418s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
41419s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41420s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
41421s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41422s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41423s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
41424s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41425s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
41426s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41427s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
41428s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
41429s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
41430s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
41431s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
41432s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
41433s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
41434s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41435s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41436s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
41437s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41438s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41439s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41440s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41441s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41442s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41443s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41444s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41445s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41446s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41447s,@COND_SHARED_0@,$COND_SHARED_0,;t t
41448s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41449s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41450s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41451s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41452s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41453s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41454s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41455s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41456s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41457s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41458s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41459s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41460s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41461s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41462s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41463s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41464s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41465s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
41466s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41467s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41468s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41469s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41470s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41471s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41472s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41473s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
41474s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41475s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41476s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
41477s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
41478s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
41479s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
41480s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41481s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41482s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41483s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41484s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41485s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41486s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41487s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41488s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41489s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41490s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41491s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41492s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
41493s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41494s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41495s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41496s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41497s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41498s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
41499s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
41500s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41501s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41502s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41503s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41504s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41505s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41506s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41507s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
41508s,@PATH_IFS@,$PATH_IFS,;t t
41509s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
41510s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
41511s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
41512s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
41513s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
41514s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
41515s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
41516s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
41517s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
41518s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
41519s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
41520s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
41521s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
41522s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
41523s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
41524s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
41525s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
41526s,@WX_ALL@,$WX_ALL,;t t
41527s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
41528s,@SHARED_LD@,$SHARED_LD,;t t
41529s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
41530s,@STATIC_FLAG@,$STATIC_FLAG,;t t
41531s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
41532s,@USE_GUI@,$USE_GUI,;t t
41533s,@AFMINSTALL@,$AFMINSTALL,;t t
41534s,@WIN32INSTALL@,$WIN32INSTALL,;t t
41535s,@TOOLKIT@,$TOOLKIT,;t t
41536s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
41537s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
41538s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
41539s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
41540s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
41541s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
41542s,@cross_compiling@,$cross_compiling,;t t
41543s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
41544s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
41545s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
41546s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
41547s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
41548s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
41549s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
41550s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
41551s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
41552s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
41553s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
41554s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
41555s,@ALL_HEADERS@,$ALL_HEADERS,;t t
41556s,@ALL_SOURCES@,$ALL_SOURCES,;t t
41557s,@GUIDIST@,$GUIDIST,;t t
41558s,@PORT_FILES@,$PORT_FILES,;t t
41559s,@DISTDIR@,$DISTDIR,;t t
41560s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
41561s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
41562s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
41563s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
41564s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
41565s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
41566s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
41567s,@RESFLAGS@,$RESFLAGS,;t t
41568s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
41569s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
41570s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
41571s,@LIBWXMACRES@,$LIBWXMACRES,;t t
41572s,@MACRESCOMP@,$MACRESCOMP,;t t
41573s,@MACSETFILE@,$MACSETFILE,;t t
41574s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
41575s,@GCC@,$GCC,;t t
41576s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
41577s,@DLLTOOL@,$DLLTOOL,;t t
41578s,@AS@,$AS,;t t
41579s,@LD@,$LD,;t t
41580s,@MAKEINFO@,$MAKEINFO,;t t
41581s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
41582s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
41583s,@LIBOBJS@,$LIBOBJS,;t t
41584s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41585CEOF
41586
41587_ACEOF
41588
41589 cat >>$CONFIG_STATUS <<\_ACEOF
41590 # Split the substitutions into bite-sized pieces for seds with
41591 # small command number limits, like on Digital OSF/1 and HP-UX.
41592 ac_max_sed_lines=48
41593 ac_sed_frag=1 # Number of current file.
41594 ac_beg=1 # First line for current file.
41595 ac_end=$ac_max_sed_lines # Line after last line for current file.
41596 ac_more_lines=:
41597 ac_sed_cmds=
41598 while $ac_more_lines; do
41599 if test $ac_beg -gt 1; then
41600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41601 else
41602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41603 fi
41604 if test ! -s $tmp/subs.frag; then
41605 ac_more_lines=false
41606 else
41607 # The purpose of the label and of the branching condition is to
41608 # speed up the sed processing (if there are no `@' at all, there
41609 # is no need to browse any of the substitutions).
41610 # These are the two extra sed commands mentioned above.
41611 (echo ':t
41612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41613 if test -z "$ac_sed_cmds"; then
41614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41615 else
41616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41617 fi
41618 ac_sed_frag=`expr $ac_sed_frag + 1`
41619 ac_beg=$ac_end
41620 ac_end=`expr $ac_end + $ac_max_sed_lines`
41621 fi
41622 done
41623 if test -z "$ac_sed_cmds"; then
41624 ac_sed_cmds=cat
41625 fi
41626fi # test -n "$CONFIG_FILES"
41627
41628_ACEOF
41629cat >>$CONFIG_STATUS <<\_ACEOF
41630for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41632 case $ac_file in
41633 - | *:- | *:-:* ) # input from stdin
41634 cat >$tmp/stdin
41635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41639 * ) ac_file_in=$ac_file.in ;;
41640 esac
41641
41642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41643 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41644$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41645 X"$ac_file" : 'X\(//\)[^/]' \| \
41646 X"$ac_file" : 'X\(//\)$' \| \
41647 X"$ac_file" : 'X\(/\)' \| \
41648 . : '\(.\)' 2>/dev/null ||
41649echo X"$ac_file" |
41650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41652 /^X\(\/\/\)$/{ s//\1/; q; }
41653 /^X\(\/\).*/{ s//\1/; q; }
41654 s/.*/./; q'`
41655 { if $as_mkdir_p; then
41656 mkdir -p "$ac_dir"
41657 else
41658 as_dir="$ac_dir"
41659 as_dirs=
41660 while test ! -d "$as_dir"; do
41661 as_dirs="$as_dir $as_dirs"
41662 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41664 X"$as_dir" : 'X\(//\)[^/]' \| \
41665 X"$as_dir" : 'X\(//\)$' \| \
41666 X"$as_dir" : 'X\(/\)' \| \
41667 . : '\(.\)' 2>/dev/null ||
41668echo X"$as_dir" |
41669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41671 /^X\(\/\/\)$/{ s//\1/; q; }
41672 /^X\(\/\).*/{ s//\1/; q; }
41673 s/.*/./; q'`
41674 done
41675 test ! -n "$as_dirs" || mkdir $as_dirs
41676 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41677echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41678 { (exit 1); exit 1; }; }; }
41679
41680 ac_builddir=.
41681
41682if test "$ac_dir" != .; then
41683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41684 # A "../" for each directory in $ac_dir_suffix.
41685 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41686else
41687 ac_dir_suffix= ac_top_builddir=
41688fi
41689
41690case $srcdir in
41691 .) # No --srcdir option. We are building in place.
41692 ac_srcdir=.
41693 if test -z "$ac_top_builddir"; then
41694 ac_top_srcdir=.
41695 else
41696 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41697 fi ;;
41698 [\\/]* | ?:[\\/]* ) # Absolute path.
41699 ac_srcdir=$srcdir$ac_dir_suffix;
41700 ac_top_srcdir=$srcdir ;;
41701 *) # Relative path.
41702 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41703 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41704esac
41705
41706# Do not use `cd foo && pwd` to compute absolute paths, because
41707# the directories may not exist.
41708case `pwd` in
41709.) ac_abs_builddir="$ac_dir";;
41710*)
41711 case "$ac_dir" in
41712 .) ac_abs_builddir=`pwd`;;
41713 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41714 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41715 esac;;
41716esac
41717case $ac_abs_builddir in
41718.) ac_abs_top_builddir=${ac_top_builddir}.;;
41719*)
41720 case ${ac_top_builddir}. in
41721 .) ac_abs_top_builddir=$ac_abs_builddir;;
41722 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41723 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41724 esac;;
41725esac
41726case $ac_abs_builddir in
41727.) ac_abs_srcdir=$ac_srcdir;;
41728*)
41729 case $ac_srcdir in
41730 .) ac_abs_srcdir=$ac_abs_builddir;;
41731 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41732 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41733 esac;;
41734esac
41735case $ac_abs_builddir in
41736.) ac_abs_top_srcdir=$ac_top_srcdir;;
41737*)
41738 case $ac_top_srcdir in
41739 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41740 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41741 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41742 esac;;
41743esac
41744
41745
41746 case $INSTALL in
41747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41748 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41749 esac
41750
a848cd7e
SC
41751 # Let's still pretend it is `configure' which instantiates (i.e., don't
41752 # use $as_me), people would be surprised to read:
41753 # /* config.h. Generated by config.status. */
41754 if test x"$ac_file" = x-; then
41755 configure_input=
41756 else
41757 configure_input="$ac_file. "
41758 fi
41759 configure_input=$configure_input"Generated from `echo $ac_file_in |
41760 sed 's,.*/,,'` by configure."
41761
41762 # First look for the input files in the build tree, otherwise in the
41763 # src tree.
41764 ac_file_inputs=`IFS=:
41765 for f in $ac_file_in; do
41766 case $f in
41767 -) echo $tmp/stdin ;;
41768 [\\/$]*)
41769 # Absolute (can't be DOS-style, as IFS=:)
41770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41771echo "$as_me: error: cannot find input file: $f" >&2;}
41772 { (exit 1); exit 1; }; }
41773 echo "$f";;
41774 *) # Relative
41775 if test -f "$f"; then
41776 # Build tree
41777 echo "$f"
41778 elif test -f "$srcdir/$f"; then
41779 # Source tree
41780 echo "$srcdir/$f"
41781 else
41782 # /dev/null tree
41783 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41784echo "$as_me: error: cannot find input file: $f" >&2;}
41785 { (exit 1); exit 1; }; }
41786 fi;;
41787 esac
41788 done` || { (exit 1); exit 1; }
01cb68df
RG
41789
41790 if test x"$ac_file" != x-; then
41791 { echo "$as_me:$LINENO: creating $ac_file" >&5
41792echo "$as_me: creating $ac_file" >&6;}
41793 rm -f "$ac_file"
41794 fi
a848cd7e
SC
41795_ACEOF
41796cat >>$CONFIG_STATUS <<_ACEOF
41797 sed "$ac_vpsub
41798$extrasub
41799_ACEOF
41800cat >>$CONFIG_STATUS <<\_ACEOF
41801:t
41802/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41803s,@configure_input@,$configure_input,;t t
41804s,@srcdir@,$ac_srcdir,;t t
41805s,@abs_srcdir@,$ac_abs_srcdir,;t t
41806s,@top_srcdir@,$ac_top_srcdir,;t t
41807s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41808s,@builddir@,$ac_builddir,;t t
41809s,@abs_builddir@,$ac_abs_builddir,;t t
41810s,@top_builddir@,$ac_top_builddir,;t t
41811s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41812s,@INSTALL@,$ac_INSTALL,;t t
41813" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41814 rm -f $tmp/stdin
41815 if test x"$ac_file" != x-; then
41816 mv $tmp/out $ac_file
41817 else
41818 cat $tmp/out
41819 rm -f $tmp/out
41820 fi
41821
41822done
41823_ACEOF
41824cat >>$CONFIG_STATUS <<\_ACEOF
41825
41826#
41827# CONFIG_HEADER section.
41828#
41829
41830# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41831# NAME is the cpp macro being defined and VALUE is the value it is being given.
41832#
41833# ac_d sets the value in "#define NAME VALUE" lines.
41834ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41835ac_dB='[ ].*$,\1#\2'
41836ac_dC=' '
41837ac_dD=',;t'
41838# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41839ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41840ac_uB='$,\1#\2define\3'
41841ac_uC=' '
41842ac_uD=',;t'
41843
41844for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41846 case $ac_file in
41847 - | *:- | *:-:* ) # input from stdin
41848 cat >$tmp/stdin
41849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41853 * ) ac_file_in=$ac_file.in ;;
41854 esac
41855
41856 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41857echo "$as_me: creating $ac_file" >&6;}
41858
41859 # First look for the input files in the build tree, otherwise in the
41860 # src tree.
41861 ac_file_inputs=`IFS=:
41862 for f in $ac_file_in; do
41863 case $f in
41864 -) echo $tmp/stdin ;;
41865 [\\/$]*)
41866 # Absolute (can't be DOS-style, as IFS=:)
41867 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41868echo "$as_me: error: cannot find input file: $f" >&2;}
41869 { (exit 1); exit 1; }; }
41870 # Do quote $f, to prevent DOS paths from being IFS'd.
41871 echo "$f";;
41872 *) # Relative
41873 if test -f "$f"; then
41874 # Build tree
41875 echo "$f"
41876 elif test -f "$srcdir/$f"; then
41877 # Source tree
41878 echo "$srcdir/$f"
41879 else
41880 # /dev/null tree
41881 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41882echo "$as_me: error: cannot find input file: $f" >&2;}
41883 { (exit 1); exit 1; }; }
41884 fi;;
41885 esac
41886 done` || { (exit 1); exit 1; }
41887 # Remove the trailing spaces.
41888 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41889
41890_ACEOF
41891
41892# Transform confdefs.h into two sed scripts, `conftest.defines' and
41893# `conftest.undefs', that substitutes the proper values into
41894# config.h.in to produce config.h. The first handles `#define'
41895# templates, and the second `#undef' templates.
41896# And first: Protect against being on the right side of a sed subst in
41897# config.status. Protect against being in an unquoted here document
41898# in config.status.
41899rm -f conftest.defines conftest.undefs
41900# Using a here document instead of a string reduces the quoting nightmare.
41901# Putting comments in sed scripts is not portable.
41902#
41903# `end' is used to avoid that the second main sed command (meant for
41904# 0-ary CPP macros) applies to n-ary macro definitions.
41905# See the Autoconf documentation for `clear'.
41906cat >confdef2sed.sed <<\_ACEOF
41907s/[\\&,]/\\&/g
41908s,[\\$`],\\&,g
41909t clear
41910: clear
41911s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41912t end
41913s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41914: end
41915_ACEOF
41916# If some macros were called several times there might be several times
41917# the same #defines, which is useless. Nevertheless, we may not want to
41918# sort them, since we want the *last* AC-DEFINE to be honored.
41919uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41920sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41921rm -f confdef2sed.sed
41922
41923# This sed command replaces #undef with comments. This is necessary, for
41924# example, in the case of _POSIX_SOURCE, which is predefined and required
41925# on some systems where configure will not decide to define it.
41926cat >>conftest.undefs <<\_ACEOF
41927s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41928_ACEOF
41929
41930# Break up conftest.defines because some shells have a limit on the size
41931# of here documents, and old seds have small limits too (100 cmds).
41932echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41933echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41934echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41935echo ' :' >>$CONFIG_STATUS
41936rm -f conftest.tail
41937while grep . conftest.defines >/dev/null
41938do
41939 # Write a limited-size here document to $tmp/defines.sed.
41940 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41941 # Speed up: don't consider the non `#define' lines.
41942 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41943 # Work around the forget-to-reset-the-flag bug.
41944 echo 't clr' >>$CONFIG_STATUS
41945 echo ': clr' >>$CONFIG_STATUS
41946 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41947 echo 'CEOF
41948 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41949 rm -f $tmp/in
41950 mv $tmp/out $tmp/in
41951' >>$CONFIG_STATUS
41952 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41953 rm -f conftest.defines
41954 mv conftest.tail conftest.defines
41955done
41956rm -f conftest.defines
41957echo ' fi # grep' >>$CONFIG_STATUS
41958echo >>$CONFIG_STATUS
41959
41960# Break up conftest.undefs because some shells have a limit on the size
41961# of here documents, and old seds have small limits too (100 cmds).
41962echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41963rm -f conftest.tail
41964while grep . conftest.undefs >/dev/null
41965do
41966 # Write a limited-size here document to $tmp/undefs.sed.
41967 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41968 # Speed up: don't consider the non `#undef'
41969 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41970 # Work around the forget-to-reset-the-flag bug.
41971 echo 't clr' >>$CONFIG_STATUS
41972 echo ': clr' >>$CONFIG_STATUS
41973 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41974 echo 'CEOF
41975 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41976 rm -f $tmp/in
41977 mv $tmp/out $tmp/in
41978' >>$CONFIG_STATUS
41979 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41980 rm -f conftest.undefs
41981 mv conftest.tail conftest.undefs
41982done
41983rm -f conftest.undefs
41984
41985cat >>$CONFIG_STATUS <<\_ACEOF
41986 # Let's still pretend it is `configure' which instantiates (i.e., don't
41987 # use $as_me), people would be surprised to read:
41988 # /* config.h. Generated by config.status. */
41989 if test x"$ac_file" = x-; then
41990 echo "/* Generated by configure. */" >$tmp/config.h
41991 else
41992 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41993 fi
41994 cat $tmp/in >>$tmp/config.h
41995 rm -f $tmp/in
41996 if test x"$ac_file" != x-; then
41997 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41998 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41999echo "$as_me: $ac_file is unchanged" >&6;}
42000 else
42001 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42002$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42003 X"$ac_file" : 'X\(//\)[^/]' \| \
42004 X"$ac_file" : 'X\(//\)$' \| \
42005 X"$ac_file" : 'X\(/\)' \| \
42006 . : '\(.\)' 2>/dev/null ||
42007echo X"$ac_file" |
42008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42010 /^X\(\/\/\)$/{ s//\1/; q; }
42011 /^X\(\/\).*/{ s//\1/; q; }
42012 s/.*/./; q'`
42013 { if $as_mkdir_p; then
42014 mkdir -p "$ac_dir"
42015 else
42016 as_dir="$ac_dir"
42017 as_dirs=
42018 while test ! -d "$as_dir"; do
42019 as_dirs="$as_dir $as_dirs"
42020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42022 X"$as_dir" : 'X\(//\)[^/]' \| \
42023 X"$as_dir" : 'X\(//\)$' \| \
42024 X"$as_dir" : 'X\(/\)' \| \
42025 . : '\(.\)' 2>/dev/null ||
42026echo X"$as_dir" |
42027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42029 /^X\(\/\/\)$/{ s//\1/; q; }
42030 /^X\(\/\).*/{ s//\1/; q; }
42031 s/.*/./; q'`
42032 done
42033 test ! -n "$as_dirs" || mkdir $as_dirs
42034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42035echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42036 { (exit 1); exit 1; }; }; }
42037
42038 rm -f $ac_file
42039 mv $tmp/config.h $ac_file
42040 fi
42041 else
42042 cat $tmp/config.h
42043 rm -f $tmp/config.h
42044 fi
42045done
42046_ACEOF
42047cat >>$CONFIG_STATUS <<\_ACEOF
42048
42049#
42050# CONFIG_COMMANDS section.
42051#
42052for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42053 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42054 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42055 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42056$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42057 X"$ac_dest" : 'X\(//\)[^/]' \| \
42058 X"$ac_dest" : 'X\(//\)$' \| \
42059 X"$ac_dest" : 'X\(/\)' \| \
42060 . : '\(.\)' 2>/dev/null ||
42061echo X"$ac_dest" |
42062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42064 /^X\(\/\/\)$/{ s//\1/; q; }
42065 /^X\(\/\).*/{ s//\1/; q; }
42066 s/.*/./; q'`
42067 { if $as_mkdir_p; then
42068 mkdir -p "$ac_dir"
42069 else
42070 as_dir="$ac_dir"
42071 as_dirs=
42072 while test ! -d "$as_dir"; do
42073 as_dirs="$as_dir $as_dirs"
42074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42076 X"$as_dir" : 'X\(//\)[^/]' \| \
42077 X"$as_dir" : 'X\(//\)$' \| \
42078 X"$as_dir" : 'X\(/\)' \| \
42079 . : '\(.\)' 2>/dev/null ||
42080echo X"$as_dir" |
42081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42083 /^X\(\/\/\)$/{ s//\1/; q; }
42084 /^X\(\/\).*/{ s//\1/; q; }
42085 s/.*/./; q'`
42086 done
42087 test ! -n "$as_dirs" || mkdir $as_dirs
42088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42090 { (exit 1); exit 1; }; }; }
42091
42092 ac_builddir=.
42093
42094if test "$ac_dir" != .; then
42095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42096 # A "../" for each directory in $ac_dir_suffix.
42097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42098else
42099 ac_dir_suffix= ac_top_builddir=
42100fi
42101
42102case $srcdir in
42103 .) # No --srcdir option. We are building in place.
42104 ac_srcdir=.
42105 if test -z "$ac_top_builddir"; then
42106 ac_top_srcdir=.
42107 else
42108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42109 fi ;;
42110 [\\/]* | ?:[\\/]* ) # Absolute path.
42111 ac_srcdir=$srcdir$ac_dir_suffix;
42112 ac_top_srcdir=$srcdir ;;
42113 *) # Relative path.
42114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42116esac
42117
42118# Do not use `cd foo && pwd` to compute absolute paths, because
42119# the directories may not exist.
42120case `pwd` in
42121.) ac_abs_builddir="$ac_dir";;
42122*)
42123 case "$ac_dir" in
42124 .) ac_abs_builddir=`pwd`;;
42125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42127 esac;;
42128esac
42129case $ac_abs_builddir in
42130.) ac_abs_top_builddir=${ac_top_builddir}.;;
42131*)
42132 case ${ac_top_builddir}. in
42133 .) ac_abs_top_builddir=$ac_abs_builddir;;
42134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42136 esac;;
42137esac
42138case $ac_abs_builddir in
42139.) ac_abs_srcdir=$ac_srcdir;;
42140*)
42141 case $ac_srcdir in
42142 .) ac_abs_srcdir=$ac_abs_builddir;;
42143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42145 esac;;
42146esac
42147case $ac_abs_builddir in
42148.) ac_abs_top_srcdir=$ac_top_srcdir;;
42149*)
42150 case $ac_top_srcdir in
42151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42154 esac;;
42155esac
42156
42157
42158 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42159echo "$as_me: executing $ac_dest commands" >&6;}
42160 case $ac_dest in
42161 default )
42162 if test ! -h wx-config; then
42163 chmod +x wx-config
42164 mv wx-config wx${TOOLCHAIN_NAME}-config
42165 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
42166 fi
42167
42168 if test ! -d lib; then
42169 mkdir lib
42170 fi
42171 if test ! -d lib/wx; then
42172 mkdir lib/wx
42173 fi
42174 if test ! -d lib/wx/include; then
42175 mkdir lib/wx/include
42176 fi
42177 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42178 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42179 fi
42180 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42181 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42182 fi
42183 if test -f setup.h; then
42184 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42185 fi
42186 ;;
42187 esac
42188done
42189_ACEOF
42190
42191cat >>$CONFIG_STATUS <<\_ACEOF
42192
42193{ (exit 0); exit 0; }
42194_ACEOF
42195chmod +x $CONFIG_STATUS
42196ac_clean_files=$ac_clean_files_save
42197
42198
42199# configure is writing to config.log, and then calls config.status.
42200# config.status does its own redirection, appending to config.log.
42201# Unfortunately, on DOS this fails, as config.log is still kept open
42202# by configure, so config.status won't be able to write to it; its
42203# output is simply discarded. So we exec the FD to /dev/null,
42204# effectively closing config.log, so it can be properly (re)opened and
42205# appended to by config.status. When coming back to configure, we
42206# need to make the FD available again.
42207if test "$no_create" != yes; then
42208 ac_cs_success=:
42209 ac_config_status_args=
42210 test "$silent" = yes &&
42211 ac_config_status_args="$ac_config_status_args --quiet"
42212 exec 5>/dev/null
42213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42214 exec 5>>config.log
42215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42216 # would make configure fail if this is the last instruction.
42217 $ac_cs_success || { (exit 1); exit 1; }
42218fi
42219
42220#
42221# CONFIG_SUBDIRS section.
42222#
42223if test "$no_recursion" != yes; then
42224
42225 # Remove --cache-file and --srcdir arguments so they do not pile up.
42226 ac_sub_configure_args=
42227 ac_prev=
42228 for ac_arg in $ac_configure_args; do
42229 if test -n "$ac_prev"; then
42230 ac_prev=
42231 continue
42232 fi
42233 case $ac_arg in
42234 -cache-file | --cache-file | --cache-fil | --cache-fi \
42235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42236 ac_prev=cache_file ;;
42237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42239 | --c=*)
42240 ;;
42241 --config-cache | -C)
42242 ;;
42243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42244 ac_prev=srcdir ;;
42245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42246 ;;
42247 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42248 ac_prev=prefix ;;
42249 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42250 ;;
42251 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42252 esac
42253 done
42254
42255 # Always prepend --prefix to ensure using the same prefix
42256 # in subdir configurations.
42257 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42258
42259 ac_popdir=`pwd`
42260 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42261
42262 # Do not complain, so a configure script can configure whichever
42263 # parts of a large source tree are present.
42264 test -d $srcdir/$ac_dir || continue
42265
42266 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42267echo "$as_me: configuring in $ac_dir" >&6;}
42268 { if $as_mkdir_p; then
42269 mkdir -p "$ac_dir"
42270 else
42271 as_dir="$ac_dir"
42272 as_dirs=
42273 while test ! -d "$as_dir"; do
42274 as_dirs="$as_dir $as_dirs"
42275 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42276$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42277 X"$as_dir" : 'X\(//\)[^/]' \| \
42278 X"$as_dir" : 'X\(//\)$' \| \
42279 X"$as_dir" : 'X\(/\)' \| \
42280 . : '\(.\)' 2>/dev/null ||
42281echo X"$as_dir" |
42282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42284 /^X\(\/\/\)$/{ s//\1/; q; }
42285 /^X\(\/\).*/{ s//\1/; q; }
42286 s/.*/./; q'`
42287 done
42288 test ! -n "$as_dirs" || mkdir $as_dirs
42289 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42290echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42291 { (exit 1); exit 1; }; }; }
42292
42293 ac_builddir=.
42294
42295if test "$ac_dir" != .; then
42296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42297 # A "../" for each directory in $ac_dir_suffix.
42298 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42299else
42300 ac_dir_suffix= ac_top_builddir=
42301fi
42302
42303case $srcdir in
42304 .) # No --srcdir option. We are building in place.
42305 ac_srcdir=.
42306 if test -z "$ac_top_builddir"; then
42307 ac_top_srcdir=.
42308 else
42309 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42310 fi ;;
42311 [\\/]* | ?:[\\/]* ) # Absolute path.
42312 ac_srcdir=$srcdir$ac_dir_suffix;
42313 ac_top_srcdir=$srcdir ;;
42314 *) # Relative path.
42315 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42316 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42317esac
42318
42319# Do not use `cd foo && pwd` to compute absolute paths, because
42320# the directories may not exist.
42321case `pwd` in
42322.) ac_abs_builddir="$ac_dir";;
42323*)
42324 case "$ac_dir" in
42325 .) ac_abs_builddir=`pwd`;;
42326 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42327 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42328 esac;;
42329esac
42330case $ac_abs_builddir in
42331.) ac_abs_top_builddir=${ac_top_builddir}.;;
42332*)
42333 case ${ac_top_builddir}. in
42334 .) ac_abs_top_builddir=$ac_abs_builddir;;
42335 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42336 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42337 esac;;
42338esac
42339case $ac_abs_builddir in
42340.) ac_abs_srcdir=$ac_srcdir;;
42341*)
42342 case $ac_srcdir in
42343 .) ac_abs_srcdir=$ac_abs_builddir;;
42344 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42345 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42346 esac;;
42347esac
42348case $ac_abs_builddir in
42349.) ac_abs_top_srcdir=$ac_top_srcdir;;
42350*)
42351 case $ac_top_srcdir in
42352 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42353 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42354 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42355 esac;;
42356esac
42357
42358
42359 cd $ac_dir
42360
42361 # Check for guested configure; otherwise get Cygnus style configure.
42362 if test -f $ac_srcdir/configure.gnu; then
42363 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42364 elif test -f $ac_srcdir/configure; then
42365 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42366 elif test -f $ac_srcdir/configure.in; then
42367 ac_sub_configure=$ac_configure
42368 else
42369 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42370echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42371 ac_sub_configure=
42372 fi
42373
42374 # The recursion is here.
42375 if test -n "$ac_sub_configure"; then
42376 # Make the cache file name correct relative to the subdirectory.
42377 case $cache_file in
42378 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42379 *) # Relative path.
42380 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
42381 esac
42382
42383 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42384echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42385 # The eval makes quoting arguments work.
42386 eval $ac_sub_configure $ac_sub_configure_args \
42387 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42388 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
42389echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
42390 { (exit 1); exit 1; }; }
42391 fi
42392
01cb68df 42393 cd "$ac_popdir"
a848cd7e
SC
42394 done
42395fi
42396
42397
42398echo
42399echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
42400echo ""
42401echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
42402echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
42403
42404echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42405echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
42406echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
42407
42408echo " What level of wxWindows compatibility should be enabled?"
42409echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42410echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
42411
42412echo " Which libraries should wxWindows use?"
42413echo " jpeg ${wxUSE_LIBJPEG-none}"
42414echo " png ${wxUSE_LIBPNG-none}"
42415echo " regex ${wxUSE_REGEX}"
42416echo " tiff ${wxUSE_LIBTIFF-none}"
42417if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42418echo " xpm ${wxUSE_LIBXPM-none}"
42419fi
42420echo " zlib ${wxUSE_ZLIB}"
42421echo " odbc ${wxUSE_ODBC}"
42422echo " expat ${wxUSE_EXPAT}"
42423echo " libmspack ${wxUSE_LIBMSPACK}"
42424echo " sdl ${wxUSE_LIBSDL}"
42425
42426echo ""
42427