]> git.saurik.com Git - wxWidgets.git/blame - configure
Change wxSound ctor wrappings so sound can be loaded from data
[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.
dcc1b6ad 4# Generated by GNU Autoconf 2.59 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
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
973 --enable-listbook use wxListbook class
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
1031 --enable-official_build official build of wxWindows (win32 DLL only)
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
1036 --disable-sdltest Do not try to compile and run a test SDL program
1037 --enable-omf use OMF object format (OS/2)
1038 --disable-precomp-headers don't use precompiled headers even if compiler can
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gtk use GTK+
1044 --with-motif use Motif/Lesstif
1045 --with-mac use Mac OS X
1046 --with-cocoa use Cocoa
1047 --with-wine use Wine
1048 --with-msw use MS-Windows
1049 --with-pm use OS/2 Presentation Manager
1050 --with-mgl use SciTech MGL
1051 --with-microwin use MicroWindows
1052 --with-x11 use X11
1053 --with-libpng use libpng (PNG image format)
1054 --with-libjpeg use libjpeg (JPEG file format)
1055 --with-libtiff use libtiff (TIFF file format)
1056 --with-libxpm use libxpm (XPM file format)
1057 --with-libmspack use libmspack (CHM help files loading)
1058 --with-sdl use SDL for audio on Unix
1059 --with-opengl use OpenGL (or Mesa)
1060 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1061 --with-regex enable support for wxRegEx class
1062 --with-zlib use zlib for LZW compression
1063 --with-odbc use the IODBC and wxODBC classes
1064 --with-expat enable XML support using expat parser
1065 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1066 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1067 --with-x use the X Window System
1068 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1069 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1070 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1071 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1072 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1073
1074Some influential environment variables:
dcc1b6ad
VS
1075 CC C compiler command
1076 CFLAGS C compiler flags
1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1078 nonstandard directory <lib dir>
1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080 headers in a nonstandard directory <include dir>
1081 CPP C preprocessor
1082 CXX C++ compiler command
1083 CXXFLAGS C++ compiler flags
1084 CXXCPP C++ preprocessor
a848cd7e
SC
1085
1086Use these variables to override the choices made by `configure' or to help
1087it to find libraries and programs with nonstandard names/locations.
1088
1089Report bugs to <wx-dev@lists.wxwindows.org>.
1090_ACEOF
1091fi
1092
1093if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1095 ac_popdir=`pwd`
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1098 ac_builddir=.
1099
1100if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104else
1105 ac_dir_suffix= ac_top_builddir=
1106fi
1107
1108case $srcdir in
1109 .) # No --srcdir option. We are building in place.
1110 ac_srcdir=.
1111 if test -z "$ac_top_builddir"; then
1112 ac_top_srcdir=.
1113 else
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115 fi ;;
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1119 *) # Relative path.
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122esac
1123
1124# Do not use `cd foo && pwd` to compute absolute paths, because
1125# the directories may not exist.
1126case `pwd` in
1127.) ac_abs_builddir="$ac_dir";;
1128*)
1129 case "$ac_dir" in
1130 .) ac_abs_builddir=`pwd`;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_top_builddir=${ac_top_builddir}.;;
1137*)
1138 case ${ac_top_builddir}. in
1139 .) ac_abs_top_builddir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_srcdir=$ac_srcdir;;
1146*)
1147 case $ac_srcdir in
1148 .) ac_abs_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_top_srcdir=$ac_top_srcdir;;
1155*)
1156 case $ac_top_srcdir in
1157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 esac;;
1161esac
1162
1163 cd $ac_dir
1164 # Check for guested configure; otherwise get Cygnus style configure.
1165 if test -f $ac_srcdir/configure.gnu; then
1166 echo
1167 $SHELL $ac_srcdir/configure.gnu --help=recursive
1168 elif test -f $ac_srcdir/configure; then
1169 echo
1170 $SHELL $ac_srcdir/configure --help=recursive
1171 elif test -f $ac_srcdir/configure.ac ||
1172 test -f $ac_srcdir/configure.in; then
1173 echo
1174 $ac_configure --help
1175 else
1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177 fi
dcc1b6ad 1178 cd $ac_popdir
a848cd7e
SC
1179 done
1180fi
1181
1182test -n "$ac_init_help" && exit 0
1183if $ac_init_version; then
1184 cat <<\_ACEOF
1185wxWindows configure 2.5.1
dcc1b6ad 1186generated by GNU Autoconf 2.59
a848cd7e
SC
1187
1188Copyright (C) 2003 Free Software Foundation, Inc.
1189This configure script is free software; the Free Software Foundation
1190gives unlimited permission to copy, distribute and modify it.
1191_ACEOF
1192 exit 0
1193fi
1194exec 5>config.log
1195cat >&5 <<_ACEOF
1196This file contains any messages produced by compilers while
1197running configure, to aid debugging if configure makes a mistake.
1198
1199It was created by wxWindows $as_me 2.5.1, which was
dcc1b6ad 1200generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1201
1202 $ $0 $@
1203
1204_ACEOF
1205{
1206cat <<_ASUNAME
1207## --------- ##
1208## Platform. ##
1209## --------- ##
1210
1211hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215uname -v = `(uname -v) 2>/dev/null || echo unknown`
1216
1217/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1219
1220/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1221/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1222/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1224/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1225/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1226/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1227
1228_ASUNAME
1229
1230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231for as_dir in $PATH
1232do
1233 IFS=$as_save_IFS
1234 test -z "$as_dir" && as_dir=.
1235 echo "PATH: $as_dir"
1236done
1237
1238} >&5
1239
1240cat >&5 <<_ACEOF
1241
1242
1243## ----------- ##
1244## Core tests. ##
1245## ----------- ##
1246
1247_ACEOF
1248
1249
1250# Keep a trace of the command line.
1251# Strip out --no-create and --no-recursion so they do not pile up.
1252# Strip out --silent because we don't want to record it for future runs.
1253# Also quote any args containing shell meta-characters.
1254# Make two passes to allow for proper duplicate-argument suppression.
1255ac_configure_args=
1256ac_configure_args0=
1257ac_configure_args1=
1258ac_sep=
1259ac_must_keep_next=false
1260for ac_pass in 1 2
1261do
1262 for ac_arg
1263 do
1264 case $ac_arg in
1265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267 | -silent | --silent | --silen | --sile | --sil)
1268 continue ;;
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 esac
1272 case $ac_pass in
1273 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1274 2)
1275 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276 if test $ac_must_keep_next = true; then
1277 ac_must_keep_next=false # Got value, back to normal.
1278 else
1279 case $ac_arg in
1280 *=* | --config-cache | -C | -disable-* | --disable-* \
1281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283 | -with-* | --with-* | -without-* | --without-* | --x)
1284 case "$ac_configure_args0 " in
1285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 esac
1287 ;;
1288 -* ) ac_must_keep_next=true ;;
1289 esac
1290 fi
1291 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292 # Get rid of the leading space.
1293 ac_sep=" "
1294 ;;
1295 esac
1296 done
1297done
1298$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1300
1301# When interrupted or exit'd, cleanup temporary files, and complete
1302# config.log. We remove comments because anyway the quotes in there
1303# would cause problems or look ugly.
1304# WARNING: Be sure not to use single quotes in there, as some shells,
1305# such as our DU 5.0 friend, will then `close' the trap.
1306trap 'exit_status=$?
1307 # Save into config.log some information that might help in debugging.
1308 {
1309 echo
1310
1311 cat <<\_ASBOX
1312## ---------------- ##
1313## Cache variables. ##
1314## ---------------- ##
1315_ASBOX
1316 echo
1317 # The following way of writing the cache mishandles newlines in values,
1318{
1319 (set) 2>&1 |
1320 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 *ac_space=\ *)
1322 sed -n \
1323 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325 ;;
1326 *)
1327 sed -n \
1328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ;;
1330 esac;
1331}
1332 echo
1333
1334 cat <<\_ASBOX
1335## ----------------- ##
1336## Output variables. ##
1337## ----------------- ##
1338_ASBOX
1339 echo
1340 for ac_var in $ac_subst_vars
1341 do
1342 eval ac_val=$`echo $ac_var`
1343 echo "$ac_var='"'"'$ac_val'"'"'"
1344 done | sort
1345 echo
1346
1347 if test -n "$ac_subst_files"; then
1348 cat <<\_ASBOX
1349## ------------- ##
1350## Output files. ##
1351## ------------- ##
1352_ASBOX
1353 echo
1354 for ac_var in $ac_subst_files
1355 do
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1360 fi
1361
1362 if test -s confdefs.h; then
1363 cat <<\_ASBOX
1364## ----------- ##
1365## confdefs.h. ##
1366## ----------- ##
1367_ASBOX
1368 echo
1369 sed "/^$/d" confdefs.h | sort
1370 echo
1371 fi
1372 test "$ac_signal" != 0 &&
1373 echo "$as_me: caught signal $ac_signal"
1374 echo "$as_me: exit $exit_status"
1375 } >&5
1376 rm -f core *.core &&
1377 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 exit $exit_status
1379 ' 0
1380for ac_signal in 1 2 13 15; do
1381 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382done
1383ac_signal=0
1384
1385# confdefs.h avoids OS command line length limits that DEFS can exceed.
1386rm -rf conftest* confdefs.h
1387# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388echo >confdefs.h
1389
1390# Predefined preprocessor variables.
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_NAME "$PACKAGE_NAME"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_VERSION "$PACKAGE_VERSION"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_STRING "$PACKAGE_STRING"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414_ACEOF
1415
1416
1417# Let the site file select an alternate cache file if it wants to.
1418# Prefer explicitly selected file to automatically selected ones.
1419if test -z "$CONFIG_SITE"; then
1420 if test "x$prefix" != xNONE; then
1421 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422 else
1423 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 fi
1425fi
1426for ac_site_file in $CONFIG_SITE; do
1427 if test -r "$ac_site_file"; then
1428 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429echo "$as_me: loading site script $ac_site_file" >&6;}
1430 sed 's/^/| /' "$ac_site_file" >&5
1431 . "$ac_site_file"
1432 fi
1433done
1434
1435if test -r "$cache_file"; then
1436 # Some versions of bash will fail to source /dev/null (special
1437 # files actually), so we avoid doing that.
1438 if test -f "$cache_file"; then
1439 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440echo "$as_me: loading cache $cache_file" >&6;}
1441 case $cache_file in
1442 [\\/]* | ?:[\\/]* ) . $cache_file;;
1443 *) . ./$cache_file;;
1444 esac
1445 fi
1446else
1447 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448echo "$as_me: creating cache $cache_file" >&6;}
1449 >$cache_file
1450fi
1451
1452# Check that the precious variables saved in the cache have kept the same
1453# value.
1454ac_cache_corrupted=false
1455for ac_var in `(set) 2>&1 |
1456 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458 eval ac_new_set=\$ac_env_${ac_var}_set
1459 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460 eval ac_new_val="\$ac_env_${ac_var}_value"
1461 case $ac_old_set,$ac_new_set in
1462 set,)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,set)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,);;
1471 *)
1472 if test "x$ac_old_val" != "x$ac_new_val"; then
1473 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1476echo "$as_me: former value: $ac_old_val" >&2;}
1477 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1478echo "$as_me: current value: $ac_new_val" >&2;}
1479 ac_cache_corrupted=:
1480 fi;;
1481 esac
1482 # Pass precious variables to config.status.
1483 if test "$ac_new_set" = set; then
1484 case $ac_new_val in
1485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487 *) ac_arg=$ac_var=$ac_new_val ;;
1488 esac
1489 case " $ac_configure_args " in
1490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1491 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492 esac
1493 fi
1494done
1495if $ac_cache_corrupted; then
1496 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500 { (exit 1); exit 1; }; }
1501fi
1502
1503ac_ext=c
1504ac_cpp='$CPP $CPPFLAGS'
1505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538ac_aux_dir=
1539for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1552 fi
1553done
1554if test -z "$ac_aux_dir"; then
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1557 { (exit 1); exit 1; }; }
1558fi
1559ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563# Make sure we can run config.sub.
1564$ac_config_sub sun4 >/dev/null 2>&1 ||
1565 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569echo "$as_me:$LINENO: checking build system type" >&5
1570echo $ECHO_N "checking build system type... $ECHO_C" >&6
1571if test "${ac_cv_build+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574 ac_cv_build_alias=$build_alias
1575test -z "$ac_cv_build_alias" &&
1576 ac_cv_build_alias=`$ac_config_guess`
1577test -z "$ac_cv_build_alias" &&
1578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580 { (exit 1); exit 1; }; }
1581ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588echo "${ECHO_T}$ac_cv_build" >&6
1589build=$ac_cv_build
1590build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595echo "$as_me:$LINENO: checking host system type" >&5
1596echo $ECHO_N "checking host system type... $ECHO_C" >&6
1597if test "${ac_cv_host+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599else
1600 ac_cv_host_alias=$host_alias
1601test -z "$ac_cv_host_alias" &&
1602 ac_cv_host_alias=$ac_cv_build_alias
1603ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1604 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1605echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1606 { (exit 1); exit 1; }; }
1607
1608fi
1609echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1610echo "${ECHO_T}$ac_cv_host" >&6
1611host=$ac_cv_host
1612host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
1616
1617echo "$as_me:$LINENO: checking target system type" >&5
1618echo $ECHO_N "checking target system type... $ECHO_C" >&6
1619if test "${ac_cv_target+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622 ac_cv_target_alias=$target_alias
1623test "x$ac_cv_target_alias" = "x" &&
1624 ac_cv_target_alias=$ac_cv_host_alias
1625ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1626 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1627echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1628 { (exit 1); exit 1; }; }
1629
1630fi
1631echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1632echo "${ECHO_T}$ac_cv_target" >&6
1633target=$ac_cv_target
1634target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
1638
1639# The aliases save the names the user supplied, while $host etc.
1640# will get canonicalized.
1641test -n "$target_alias" &&
1642 test "$program_prefix$program_suffix$program_transform_name" = \
1643 NONENONEs,x,x, &&
1644 program_prefix=${target_alias}-
1645
1646
1647
1648WX_MAJOR_VERSION_NUMBER=2
1649WX_MINOR_VERSION_NUMBER=5
1650WX_RELEASE_NUMBER=1
1651
1652WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1653WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1654
1655WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1656
1657WX_CURRENT=1
1658WX_REVISION=0
1659WX_AGE=0
1660
1661
1662
1663USE_UNIX=1
1664USE_OS2=0
1665USE_WIN32=0
1666USE_DOS=0
1667USE_BEOS=0
1668USE_MAC=0
1669
1670USE_AIX=
1671USE_BSD= USE_DARWIN= USE_FREEBSD=
1672USE_GNU= USE_HPUX=
1673USE_LINUX=
1674USE_NETBSD=
1675USE_OPENBSD=
1676USE_OSF= USE_SGI=
1677USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1678USE_ULTRIX=
1679USE_UNIXWARE=
1680
1681USE_ALPHA=
1682
1683NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1684
1685ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1686
1687DEFAULT_wxUSE_COCOA=0
1688DEFAULT_wxUSE_GTK=0
1689DEFAULT_wxUSE_MAC=0
1690DEFAULT_wxUSE_MGL=0
1691DEFAULT_wxUSE_MICROWIN=0
1692DEFAULT_wxUSE_MOTIF=0
1693DEFAULT_wxUSE_MSW=0
1694DEFAULT_wxUSE_PM=0
1695DEFAULT_wxUSE_X11=0
1696
1697DEFAULT_DEFAULT_wxUSE_COCOA=0
1698DEFAULT_DEFAULT_wxUSE_GTK=0
1699DEFAULT_DEFAULT_wxUSE_MAC=0
1700DEFAULT_DEFAULT_wxUSE_MGL=0
1701DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_DEFAULT_wxUSE_MSW=0
1704DEFAULT_DEFAULT_wxUSE_PM=0
1705DEFAULT_DEFAULT_wxUSE_X11=0
1706
1707PROGRAM_EXT=
1708SO_SUFFIX=so
1709SAMPLES_RPATH_FLAG=
1710SAMPLES_RPATH_POSTLINK=
1711
1712case "${host}" in
1713 *-hp-hpux* )
1714 USE_HPUX=1
1715 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1716 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1717 SO_SUFFIX=sl
1718 cat >>confdefs.h <<\_ACEOF
1719#define __HPUX__ 1
1720_ACEOF
1721
1722 ;;
1723 *-*-linux* )
1724 USE_LINUX=1
1725 cat >>confdefs.h <<\_ACEOF
1726#define __LINUX__ 1
1727_ACEOF
1728
1729 TMP=`uname -m`
1730 if test "x$TMP" = "xalpha"; then
1731 USE_ALPHA=1
1732 cat >>confdefs.h <<\_ACEOF
1733#define __ALPHA__ 1
1734_ACEOF
1735
1736 fi
1737 DEFAULT_DEFAULT_wxUSE_GTK=1
1738 ;;
1739 *-*-gnu* | *-*-k*bsd*-gnu )
1740 USE_GNU=1
1741 TMP=`uname -m`
1742 if test "x$TMP" = "xalpha"; then
1743 USE_ALPHA=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __ALPHA__ 1
1746_ACEOF
1747
1748 fi
1749 DEFAULT_DEFAULT_wxUSE_GTK=1
1750 ;;
1751 *-*-irix5* | *-*-irix6* )
1752 USE_SGI=1
1753 USE_SVR4=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __SGI__ 1
1756_ACEOF
1757
1758 cat >>confdefs.h <<\_ACEOF
1759#define __SVR4__ 1
1760_ACEOF
1761
1762 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1763 ;;
1764 *-*-solaris2* )
1765 USE_SUN=1
1766 USE_SOLARIS=1
1767 USE_SVR4=1
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SUN__ 1
1770_ACEOF
1771
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SOLARIS__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SVR4__ 1
1778_ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1782 ;;
1783 *-*-sunos4* )
1784 USE_SUN=1
1785 USE_SUNOS=1
1786 USE_BSD=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SUN__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SUNOS__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __BSD__ 1
1797_ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 ;;
1801 *-*-freebsd*)
1802 USE_BSD=1
1803 USE_FREEBSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __FREEBSD__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __BSD__ 1
1810_ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_GTK=1
1813 ;;
1814 *-*-openbsd*)
1815 USE_BSD=1
1816 USE_OPENBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __OPENBSD__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-netbsd*)
1828 USE_BSD=1
1829 USE_NETBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __NETBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-osf* )
1841 USE_ALPHA=1
1842 USE_OSF=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __ALPHA__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __OSF__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853 ;;
1854 *-*-dgux5* )
1855 USE_ALPHA=1
1856 USE_SVR4=1
1857 cat >>confdefs.h <<\_ACEOF
1858#define __ALPHA__ 1
1859_ACEOF
1860
1861 cat >>confdefs.h <<\_ACEOF
1862#define __SVR4__ 1
1863_ACEOF
1864
1865 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866 ;;
1867 *-*-sysv5* )
1868 USE_SYSV=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __SYSV__ 1
1872_ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SVR4__ 1
1876_ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-aix* )
1881 USE_AIX=1
1882 USE_SYSV=1
1883 USE_SVR4=1
1884 SO_SUFFIX=a
1885 cat >>confdefs.h <<\_ACEOF
1886#define __AIX__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SYSV__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SVR4__ 1
1895_ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899
1900 *-*-*UnixWare*)
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 USE_UNIXWARE=1
1904 cat >>confdefs.h <<\_ACEOF
1905#define __UNIXWARE__ 1
1906_ACEOF
1907
1908 ;;
1909
1910 *-*-cygwin* | *-*-mingw32* )
1911 SO_SUFFIX=dll
1912 PROGRAM_EXT=".exe"
1913 RESCOMP=windres
1914 DEFAULT_DEFAULT_wxUSE_MSW=1
1915 ;;
1916
1917 *-pc-msdosdjgpp )
1918 USE_UNIX=0
1919 USE_DOS=1
1920 cat >>confdefs.h <<\_ACEOF
1921#define __DOS__ 1
1922_ACEOF
1923
1924 PROGRAM_EXT=".exe"
1925 DEFAULT_DEFAULT_wxUSE_MGL=1
1926 LIBS="$LIBS -lstdc++"
1927 ;;
1928
1929 *-pc-os2_emx | *-pc-os2-emx )
1930 cat >>confdefs.h <<\_ACEOF
1931#define __EMX__ 1
1932_ACEOF
1933
1934 USE_OS2=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __OS2__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_PM=1
1941 CXX=gcc
1942 LDFLAGS="$LDFLAGS -Zcrtdll"
1943 ac_executable_extensions=".exe"
1944 export ac_executable_extensions
1945 ac_save_IFS="$IFS"
1946 IFS='\\'
1947 ac_TEMP_PATH=
1948 for ac_dir in $PATH; do
1949 IFS=$ac_save_IFS
1950 if test -z "$ac_TEMP_PATH"; then
1951 ac_TEMP_PATH="$ac_dir"
1952 else
1953 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1954 fi
1955 done
1956 export PATH="$ac_TEMP_PATH"
1957 unset ac_TEMP_PATH
1958 ;;
1959
1960 powerpc-*-darwin* )
1961 USE_BSD=1
1962 USE_DARWIN=1
1963 SO_SUFFIX=dylib
1964 cat >>confdefs.h <<\_ACEOF
1965#define __BSD__ 1
1966_ACEOF
1967
1968 cat >>confdefs.h <<\_ACEOF
1969#define __DARWIN__ 1
1970_ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973#define __POWERPC__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define TARGET_CARBON 1
1978_ACEOF
1979
1980 DEFAULT_DEFAULT_wxUSE_MAC=1
1981 ;;
1982
1983 *-*-beos* )
1984 USE_BEOS=1
1985 cat >>confdefs.h <<\_ACEOF
1986#define __BEOS__ 1
1987_ACEOF
1988
1989 ;;
1990
1991 *)
1992 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1993echo "$as_me: error: unknown system type ${host}." >&2;}
1994 { (exit 1); exit 1; }; }
1995esac
1996
1997
1998
1999
2000 wx_arg_cache_file="configarg.cache"
2001 echo "loading argument cache $wx_arg_cache_file"
2002 rm -f ${wx_arg_cache_file}.tmp
2003 touch ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}
2005
2006
2007DEBUG_CONFIGURE=0
2008if test $DEBUG_CONFIGURE = 1; then
2009 DEFAULT_wxUSE_UNIVERSAL=no
2010 DEFAULT_wxUSE_STL=no
2011
2012 DEFAULT_wxUSE_NANOX=no
2013
2014 DEFAULT_wxUSE_THREADS=yes
2015
2016 DEFAULT_wxUSE_SHARED=yes
2017 DEFAULT_wxUSE_OPTIMISE=no
2018 DEFAULT_wxUSE_PROFILE=no
2019 DEFAULT_wxUSE_NO_DEPS=no
2020 DEFAULT_wxUSE_NO_RTTI=no
2021 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2022 DEFAULT_wxUSE_PERMISSIVE=no
2023 DEFAULT_wxUSE_DEBUG_FLAG=yes
2024 DEFAULT_wxUSE_DEBUG_INFO=yes
2025 DEFAULT_wxUSE_DEBUG_GDB=yes
2026 DEFAULT_wxUSE_MEM_TRACING=no
2027 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2028 DEFAULT_wxUSE_DMALLOC=no
2029 DEFAULT_wxUSE_APPLE_IEEE=no
2030
2031 DEFAULT_wxUSE_EXCEPTIONS=no
2032 DEFAULT_wxUSE_LOG=yes
2033 DEFAULT_wxUSE_LOGWINDOW=no
2034 DEFAULT_wxUSE_LOGGUI=no
2035 DEFAULT_wxUSE_LOGDIALOG=no
2036
2037 DEFAULT_wxUSE_GUI=yes
2038 DEFAULT_wxUSE_CONTROLS=no
2039
2040 DEFAULT_wxUSE_REGEX=no
2041 DEFAULT_wxUSE_XML=no
2042 DEFAULT_wxUSE_EXPAT=no
2043 DEFAULT_wxUSE_ZLIB=no
2044 DEFAULT_wxUSE_LIBPNG=no
2045 DEFAULT_wxUSE_LIBJPEG=no
2046 DEFAULT_wxUSE_LIBTIFF=no
2047 DEFAULT_wxUSE_LIBXPM=no
2048 DEFAULT_wxUSE_LIBMSPACK=no
2049 DEFAULT_wxUSE_LIBSDL=no
2050 DEFAULT_wxUSE_ODBC=no
2051 DEFAULT_wxUSE_OPENGL=no
2052
2053 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2054 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2055 DEFAULT_wxUSE_STD_IOSTREAM=no
2056 DEFAULT_wxUSE_CMDLINE_PARSER=no
2057 DEFAULT_wxUSE_DATETIME=no
2058 DEFAULT_wxUSE_TIMER=no
2059 DEFAULT_wxUSE_STOPWATCH=no
2060 DEFAULT_wxUSE_FILE=no
2061 DEFAULT_wxUSE_FFILE=no
2062 DEFAULT_wxUSE_TEXTBUFFER=no
2063 DEFAULT_wxUSE_TEXTFILE=no
2064 DEFAULT_wxUSE_SOUND=no
2065 DEFAULT_wxUSE_INTL=no
2066 DEFAULT_wxUSE_CONFIG=no
2067 DEFAULT_wxUSE_FONTMAP=no
2068 DEFAULT_wxUSE_STREAMS=no
2069 DEFAULT_wxUSE_SOCKETS=no
2070 DEFAULT_wxUSE_OLE=no
2071 DEFAULT_wxUSE_DATAOBJ=no
2072 DEFAULT_wxUSE_DIALUP_MANAGER=no
2073 DEFAULT_wxUSE_JOYSTICK=no
2074 DEFAULT_wxUSE_DYNLIB_CLASS=no
2075 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2076 DEFAULT_wxUSE_LONGLONG=no
2077 DEFAULT_wxUSE_GEOMETRY=no
2078
2079 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2080 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2081 DEFAULT_wxUSE_POSTSCRIPT=no
2082
2083 DEFAULT_wxUSE_CLIPBOARD=no
2084 DEFAULT_wxUSE_TOOLTIPS=no
2085 DEFAULT_wxUSE_DRAG_AND_DROP=no
2086 DEFAULT_wxUSE_DRAGIMAGE=no
2087 DEFAULT_wxUSE_SPLINES=no
2088
2089 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2090 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2091 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2092
2093 DEFAULT_wxUSE_RESOURCES=no
2094 DEFAULT_wxUSE_CONSTRAINTS=no
2095 DEFAULT_wxUSE_IPC=no
2096 DEFAULT_wxUSE_HELP=no
2097 DEFAULT_wxUSE_MS_HTML_HELP=no
2098 DEFAULT_wxUSE_WXHTML_HELP=no
2099 DEFAULT_wxUSE_TREELAYOUT=no
2100 DEFAULT_wxUSE_METAFILE=no
2101 DEFAULT_wxUSE_MIMETYPE=no
2102 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2103 DEFAULT_wxUSE_PROTOCOL=no
2104 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2105 DEFAULT_wxUSE_PROTOCOL_FTP=no
2106 DEFAULT_wxUSE_PROTOCOL_FILE=no
2107 DEFAULT_wxUSE_URL=no
2108
2109 DEFAULT_wxUSE_COMMONDLGS=no
2110 DEFAULT_wxUSE_CHOICEDLG=no
2111 DEFAULT_wxUSE_COLOURDLG=no
2112 DEFAULT_wxUSE_DIRDLG=no
2113 DEFAULT_wxUSE_FILEDLG=no
2114 DEFAULT_wxUSE_FINDREPLDLG=no
2115 DEFAULT_wxUSE_FONTDLG=no
2116 DEFAULT_wxUSE_MSGDLG=no
2117 DEFAULT_wxUSE_NUMBERDLG=no
2118 DEFAULT_wxUSE_TEXTDLG=no
2119 DEFAULT_wxUSE_SPLASH=no
2120 DEFAULT_wxUSE_STARTUP_TIPS=no
2121 DEFAULT_wxUSE_PROGRESSDLG=no
2122 DEFAULT_wxUSE_WIZARDDLG=no
2123
2124 DEFAULT_wxUSE_MENUS=no
2125 DEFAULT_wxUSE_MINIFRAME=no
2126 DEFAULT_wxUSE_HTML=no
2127 DEFAULT_wxUSE_FILESYSTEM=no
2128 DEFAULT_wxUSE_FS_INET=no
2129 DEFAULT_wxUSE_FS_ZIP=no
2130 DEFAULT_wxUSE_BUSYINFO=no
2131 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2132 DEFAULT_wxUSE_VALIDATORS=no
2133
2134 DEFAULT_wxUSE_ACCEL=no
2135 DEFAULT_wxUSE_BUTTON=no
2136 DEFAULT_wxUSE_BMPBUTTON=no
2137 DEFAULT_wxUSE_CALCTRL=no
2138 DEFAULT_wxUSE_CARET=no
2139 DEFAULT_wxUSE_CHECKBOX=no
2140 DEFAULT_wxUSE_CHECKLST=no
2141 DEFAULT_wxUSE_CHOICE=no
2142 DEFAULT_wxUSE_COMBOBOX=no
2143 DEFAULT_wxUSE_DISPLAY=no
2144 DEFAULT_wxUSE_GAUGE=no
2145 DEFAULT_wxUSE_GRID=no
2146 DEFAULT_wxUSE_IMAGLIST=no
2147 DEFAULT_wxUSE_LISTBOOK=no
2148 DEFAULT_wxUSE_LISTBOX=no
2149 DEFAULT_wxUSE_LISTCTRL=no
2150 DEFAULT_wxUSE_NOTEBOOK=no
2151 DEFAULT_wxUSE_RADIOBOX=no
2152 DEFAULT_wxUSE_RADIOBTN=no
2153 DEFAULT_wxUSE_SASH=no
2154 DEFAULT_wxUSE_SCROLLBAR=no
2155 DEFAULT_wxUSE_SLIDER=no
2156 DEFAULT_wxUSE_SPINBTN=no
2157 DEFAULT_wxUSE_SPINCTRL=no
2158 DEFAULT_wxUSE_SPLITTER=no
2159 DEFAULT_wxUSE_STATBMP=no
2160 DEFAULT_wxUSE_STATBOX=no
2161 DEFAULT_wxUSE_STATLINE=no
2162 DEFAULT_wxUSE_STATTEXT=no
2163 DEFAULT_wxUSE_STATUSBAR=yes
2164 DEFAULT_wxUSE_TABDIALOG=no
2165 DEFAULT_wxUSE_TEXTCTRL=no
2166 DEFAULT_wxUSE_TOGGLEBTN=no
2167 DEFAULT_wxUSE_TOOLBAR=no
2168 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2169 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2170 DEFAULT_wxUSE_TREECTRL=no
2171 DEFAULT_wxUSE_POPUPWIN=no
2172 DEFAULT_wxUSE_TIPWINDOW=no
2173
2174 DEFAULT_wxUSE_UNICODE=no
2175 DEFAULT_wxUSE_UNICODE_MSLU=no
2176 DEFAULT_wxUSE_WCSRTOMBS=no
2177
2178 DEFAULT_wxUSE_PALETTE=no
2179 DEFAULT_wxUSE_IMAGE=no
2180 DEFAULT_wxUSE_GIF=no
2181 DEFAULT_wxUSE_PCX=no
2182 DEFAULT_wxUSE_PNM=no
2183 DEFAULT_wxUSE_IFF=no
2184 DEFAULT_wxUSE_XPM=no
2185 DEFAULT_wxUSE_ICO_CUR=no
2186 DEFAULT_wxUSE_ACCESSIBILITY=no
2187
2188 DEFAULT_wxUSE_MONOLITHIC=no
2189 DEFAULT_wxUSE_PLUGINS=no
2190 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2191else
2192 DEFAULT_wxUSE_UNIVERSAL=no
2193 DEFAULT_wxUSE_STL=no
2194
2195 DEFAULT_wxUSE_NANOX=no
2196
2197 DEFAULT_wxUSE_THREADS=yes
2198
2199 DEFAULT_wxUSE_SHARED=yes
2200 DEFAULT_wxUSE_OPTIMISE=yes
2201 DEFAULT_wxUSE_PROFILE=no
2202 DEFAULT_wxUSE_NO_DEPS=no
2203 DEFAULT_wxUSE_NO_RTTI=no
2204 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2205 DEFAULT_wxUSE_PERMISSIVE=no
2206 DEFAULT_wxUSE_DEBUG_FLAG=no
2207 DEFAULT_wxUSE_DEBUG_INFO=no
2208 DEFAULT_wxUSE_DEBUG_GDB=no
2209 DEFAULT_wxUSE_MEM_TRACING=no
2210 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2211 DEFAULT_wxUSE_DMALLOC=no
2212 DEFAULT_wxUSE_APPLE_IEEE=yes
2213
2214 DEFAULT_wxUSE_EXCEPTIONS=yes
2215 DEFAULT_wxUSE_LOG=yes
2216 DEFAULT_wxUSE_LOGWINDOW=yes
2217 DEFAULT_wxUSE_LOGGUI=yes
2218 DEFAULT_wxUSE_LOGDIALOG=yes
2219
2220 DEFAULT_wxUSE_GUI=yes
2221
2222 DEFAULT_wxUSE_REGEX=yes
2223 DEFAULT_wxUSE_XML=yes
2224 DEFAULT_wxUSE_EXPAT=yes
2225 DEFAULT_wxUSE_ZLIB=yes
2226 DEFAULT_wxUSE_LIBPNG=yes
2227 DEFAULT_wxUSE_LIBJPEG=yes
2228 DEFAULT_wxUSE_LIBTIFF=yes
2229 DEFAULT_wxUSE_LIBXPM=yes
2230 DEFAULT_wxUSE_LIBMSPACK=yes
2231 DEFAULT_wxUSE_LIBSDL=no
2232 DEFAULT_wxUSE_ODBC=no
2233 DEFAULT_wxUSE_OPENGL=no
2234
2235 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2236 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2237 DEFAULT_wxUSE_STD_IOSTREAM=no
2238 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2239 DEFAULT_wxUSE_DATETIME=yes
2240 DEFAULT_wxUSE_TIMER=yes
2241 DEFAULT_wxUSE_STOPWATCH=yes
2242 DEFAULT_wxUSE_FILE=yes
2243 DEFAULT_wxUSE_FFILE=yes
2244 DEFAULT_wxUSE_TEXTBUFFER=yes
2245 DEFAULT_wxUSE_TEXTFILE=yes
2246 DEFAULT_wxUSE_SOUND=yes
2247 DEFAULT_wxUSE_INTL=yes
2248 DEFAULT_wxUSE_CONFIG=yes
2249 DEFAULT_wxUSE_FONTMAP=yes
2250 DEFAULT_wxUSE_STREAMS=yes
2251 DEFAULT_wxUSE_SOCKETS=yes
2252 DEFAULT_wxUSE_OLE=yes
2253 DEFAULT_wxUSE_DATAOBJ=yes
2254 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2255 DEFAULT_wxUSE_JOYSTICK=yes
2256 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2257 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2258 DEFAULT_wxUSE_LONGLONG=yes
2259 DEFAULT_wxUSE_GEOMETRY=yes
2260
2261 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2262 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2263 DEFAULT_wxUSE_POSTSCRIPT=yes
2264
2265 DEFAULT_wxUSE_CLIPBOARD=yes
2266 DEFAULT_wxUSE_TOOLTIPS=yes
2267 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2268 DEFAULT_wxUSE_DRAGIMAGE=yes
2269 DEFAULT_wxUSE_SPLINES=yes
2270
2271 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2272 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2273 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2274
2275 DEFAULT_wxUSE_RESOURCES=no
2276 DEFAULT_wxUSE_CONSTRAINTS=yes
2277 DEFAULT_wxUSE_IPC=yes
2278 DEFAULT_wxUSE_HELP=yes
2279 DEFAULT_wxUSE_MS_HTML_HELP=yes
2280 DEFAULT_wxUSE_WXHTML_HELP=yes
2281 DEFAULT_wxUSE_TREELAYOUT=yes
2282 DEFAULT_wxUSE_METAFILE=yes
2283 DEFAULT_wxUSE_MIMETYPE=yes
2284 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2285 DEFAULT_wxUSE_PROTOCOL=yes
2286 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2287 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2288 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2289 DEFAULT_wxUSE_URL=yes
2290
2291 DEFAULT_wxUSE_COMMONDLGS=yes
2292 DEFAULT_wxUSE_CHOICEDLG=yes
2293 DEFAULT_wxUSE_COLOURDLG=yes
2294 DEFAULT_wxUSE_DIRDLG=yes
2295 DEFAULT_wxUSE_FILEDLG=yes
2296 DEFAULT_wxUSE_FINDREPLDLG=yes
2297 DEFAULT_wxUSE_FONTDLG=yes
2298 DEFAULT_wxUSE_MSGDLG=yes
2299 DEFAULT_wxUSE_NUMBERDLG=yes
2300 DEFAULT_wxUSE_TEXTDLG=yes
2301 DEFAULT_wxUSE_SPLASH=yes
2302 DEFAULT_wxUSE_STARTUP_TIPS=yes
2303 DEFAULT_wxUSE_PROGRESSDLG=yes
2304 DEFAULT_wxUSE_WIZARDDLG=yes
2305
2306 DEFAULT_wxUSE_MENUS=yes
2307 DEFAULT_wxUSE_MINIFRAME=yes
2308 DEFAULT_wxUSE_HTML=yes
2309 DEFAULT_wxUSE_FILESYSTEM=yes
2310 DEFAULT_wxUSE_FS_INET=yes
2311 DEFAULT_wxUSE_FS_ZIP=yes
2312 DEFAULT_wxUSE_BUSYINFO=yes
2313 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2314 DEFAULT_wxUSE_VALIDATORS=yes
2315
2316 DEFAULT_wxUSE_ACCEL=yes
2317 DEFAULT_wxUSE_BUTTON=yes
2318 DEFAULT_wxUSE_BMPBUTTON=yes
2319 DEFAULT_wxUSE_CALCTRL=yes
2320 DEFAULT_wxUSE_CARET=yes
2321 DEFAULT_wxUSE_CHECKBOX=yes
2322 DEFAULT_wxUSE_CHECKLST=yes
2323 DEFAULT_wxUSE_CHOICE=yes
2324 DEFAULT_wxUSE_COMBOBOX=yes
2325 DEFAULT_wxUSE_DISPLAY=yes
2326 DEFAULT_wxUSE_GAUGE=yes
2327 DEFAULT_wxUSE_GRID=yes
2328 DEFAULT_wxUSE_IMAGLIST=yes
2329 DEFAULT_wxUSE_LISTBOOK=yes
2330 DEFAULT_wxUSE_LISTBOX=yes
2331 DEFAULT_wxUSE_LISTCTRL=yes
2332 DEFAULT_wxUSE_NOTEBOOK=yes
2333 DEFAULT_wxUSE_RADIOBOX=yes
2334 DEFAULT_wxUSE_RADIOBTN=yes
2335 DEFAULT_wxUSE_SASH=yes
2336 DEFAULT_wxUSE_SCROLLBAR=yes
2337 DEFAULT_wxUSE_SLIDER=yes
2338 DEFAULT_wxUSE_SPINBTN=yes
2339 DEFAULT_wxUSE_SPINCTRL=yes
2340 DEFAULT_wxUSE_SPLITTER=yes
2341 DEFAULT_wxUSE_STATBMP=yes
2342 DEFAULT_wxUSE_STATBOX=yes
2343 DEFAULT_wxUSE_STATLINE=yes
2344 DEFAULT_wxUSE_STATTEXT=yes
2345 DEFAULT_wxUSE_STATUSBAR=yes
2346 DEFAULT_wxUSE_TABDIALOG=no
2347 DEFAULT_wxUSE_TEXTCTRL=yes
2348 DEFAULT_wxUSE_TOGGLEBTN=yes
2349 DEFAULT_wxUSE_TOOLBAR=yes
2350 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2351 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2352 DEFAULT_wxUSE_TREECTRL=yes
2353 DEFAULT_wxUSE_POPUPWIN=yes
2354 DEFAULT_wxUSE_TIPWINDOW=yes
2355
2356 DEFAULT_wxUSE_UNICODE=no
2357 DEFAULT_wxUSE_UNICODE_MSLU=yes
2358 DEFAULT_wxUSE_WCSRTOMBS=no
2359
2360 DEFAULT_wxUSE_PALETTE=yes
2361 DEFAULT_wxUSE_IMAGE=yes
2362 DEFAULT_wxUSE_GIF=yes
2363 DEFAULT_wxUSE_PCX=yes
2364 DEFAULT_wxUSE_IFF=no
2365 DEFAULT_wxUSE_PNM=yes
2366 DEFAULT_wxUSE_XPM=yes
2367 DEFAULT_wxUSE_ICO_CUR=yes
2368 DEFAULT_wxUSE_ACCESSIBILITY=no
2369
2370 DEFAULT_wxUSE_MONOLITHIC=no
2371 DEFAULT_wxUSE_PLUGINS=no
2372 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2373fi
2374
2375
2376
2377for toolkit in `echo $ALL_TOOLKITS`; do
2378 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2379 if test "x$LINE" != "x" ; then
2380 has_toolkit_in_cache=1
2381 eval "DEFAULT_$LINE"
2382 eval "CACHE_$toolkit=1"
2383 fi
2384done
2385
2386
2387
2388 enablestring=
2389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2390echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2391 no_cache=0
2392 # Check whether --enable-gui or --disable-gui was given.
2393if test "${enable_gui+set}" = set; then
2394 enableval="$enable_gui"
2395
2396 if test "$enableval" = yes; then
2397 ac_cv_use_gui='wxUSE_GUI=yes'
2398 else
2399 ac_cv_use_gui='wxUSE_GUI=no'
2400 fi
2401
2402else
2403
2404 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2405 if test "x$LINE" != x ; then
2406 eval "DEFAULT_$LINE"
2407 else
2408 no_cache=1
2409 fi
2410
2411 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2412
2413fi;
2414
2415 eval "$ac_cv_use_gui"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_GUI" = yes; then
2421 echo "$as_me:$LINENO: result: yes" >&5
2422echo "${ECHO_T}yes" >&6
2423 else
2424 echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6
2426 fi
2427
2428
2429 enablestring=
2430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2431echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2432 no_cache=0
2433 # Check whether --enable-monolithic or --disable-monolithic was given.
2434if test "${enable_monolithic+set}" = set; then
2435 enableval="$enable_monolithic"
2436
2437 if test "$enableval" = yes; then
2438 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2439 else
2440 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2441 fi
2442
2443else
2444
2445 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2453
2454fi;
2455
2456 eval "$ac_cv_use_monolithic"
2457 if test "$no_cache" != 1; then
2458 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2459 fi
2460
2461 if test "$wxUSE_MONOLITHIC" = yes; then
2462 echo "$as_me:$LINENO: result: yes" >&5
2463echo "${ECHO_T}yes" >&6
2464 else
2465 echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6
2467 fi
2468
2469
2470 enablestring=
2471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2472echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2473 no_cache=0
2474 # Check whether --enable-plugins or --disable-plugins was given.
2475if test "${enable_plugins+set}" = set; then
2476 enableval="$enable_plugins"
2477
2478 if test "$enableval" = yes; then
2479 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2480 else
2481 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2482 fi
2483
2484else
2485
2486 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2487 if test "x$LINE" != x ; then
2488 eval "DEFAULT_$LINE"
2489 else
2490 no_cache=1
2491 fi
2492
2493 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2494
2495fi;
2496
2497 eval "$ac_cv_use_plugins"
2498 if test "$no_cache" != 1; then
2499 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2500 fi
2501
2502 if test "$wxUSE_PLUGINS" = yes; then
2503 echo "$as_me:$LINENO: result: yes" >&5
2504echo "${ECHO_T}yes" >&6
2505 else
2506 echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6
2508 fi
2509
2510
2511if test "$wxUSE_GUI" = "yes"; then
2512
2513
2514 enablestring=
2515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2516echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2517 no_cache=0
2518 # Check whether --enable-universal or --disable-universal was given.
2519if test "${enable_universal+set}" = set; then
2520 enableval="$enable_universal"
2521
2522 if test "$enableval" = yes; then
2523 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2524 else
2525 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2526 fi
2527
2528else
2529
2530 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2531 if test "x$LINE" != x ; then
2532 eval "DEFAULT_$LINE"
2533 else
2534 no_cache=1
2535 fi
2536
2537 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2538
2539fi;
2540
2541 eval "$ac_cv_use_universal"
2542 if test "$no_cache" != 1; then
2543 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2544 fi
2545
2546 if test "$wxUSE_UNIVERSAL" = yes; then
2547 echo "$as_me:$LINENO: result: yes" >&5
2548echo "${ECHO_T}yes" >&6
2549 else
2550 echo "$as_me:$LINENO: result: no" >&5
2551echo "${ECHO_T}no" >&6
2552 fi
2553
2554
2555# Check whether --with-gtk or --without-gtk was given.
2556if test "${with_gtk+set}" = set; then
2557 withval="$with_gtk"
2558 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2559fi;
2560
2561# Check whether --with-motif or --without-motif was given.
2562if test "${with_motif+set}" = set; then
2563 withval="$with_motif"
2564 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2565fi;
2566
2567# Check whether --with-mac or --without-mac was given.
2568if test "${with_mac+set}" = set; then
2569 withval="$with_mac"
2570 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2571fi;
2572
2573# Check whether --with-cocoa or --without-cocoa was given.
2574if test "${with_cocoa+set}" = set; then
2575 withval="$with_cocoa"
2576 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-wine or --without-wine was given.
2580if test "${with_wine+set}" = set; then
2581 withval="$with_wine"
2582 wxUSE_WINE="$withval" CACHE_WINE=1
2583fi;
2584
2585# Check whether --with-msw or --without-msw was given.
2586if test "${with_msw+set}" = set; then
2587 withval="$with_msw"
2588 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2589fi;
2590
2591# Check whether --with-pm or --without-pm was given.
2592if test "${with_pm+set}" = set; then
2593 withval="$with_pm"
2594 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2595fi;
2596
2597# Check whether --with-mgl or --without-mgl was given.
2598if test "${with_mgl+set}" = set; then
2599 withval="$with_mgl"
2600 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2601fi;
2602
2603# Check whether --with-microwin or --without-microwin was given.
2604if test "${with_microwin+set}" = set; then
2605 withval="$with_microwin"
2606 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-x11 or --without-x11 was given.
2610if test "${with_x11+set}" = set; then
2611 withval="$with_x11"
2612 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615 enablestring=
2616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2617echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2618 no_cache=0
2619 # Check whether --enable-nanox or --disable-nanox was given.
2620if test "${enable_nanox+set}" = set; then
2621 enableval="$enable_nanox"
2622
2623 if test "$enableval" = yes; then
2624 ac_cv_use_nanox='wxUSE_NANOX=yes'
2625 else
2626 ac_cv_use_nanox='wxUSE_NANOX=no'
2627 fi
2628
2629else
2630
2631 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
2638 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2639
2640fi;
2641
2642 eval "$ac_cv_use_nanox"
2643 if test "$no_cache" != 1; then
2644 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2645 fi
2646
2647 if test "$wxUSE_NANOX" = yes; then
2648 echo "$as_me:$LINENO: result: yes" >&5
2649echo "${ECHO_T}yes" >&6
2650 else
2651 echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6
2653 fi
2654
2655
2656
2657 enablestring=
2658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2659echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2660 no_cache=0
2661 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2662if test "${enable_gtk2+set}" = set; then
2663 enableval="$enable_gtk2"
2664
2665 if test "$enableval" = yes; then
2666 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2667 else
2668 ac_cv_use_gtk2='wxUSE_GTK2=no'
2669 fi
2670
2671else
2672
2673 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2681
2682fi;
2683
2684 eval "$ac_cv_use_gtk2"
2685 if test "$no_cache" != 1; then
2686 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2687 fi
2688
2689 if test "$wxUSE_GTK2" = yes; then
2690 echo "$as_me:$LINENO: result: yes" >&5
2691echo "${ECHO_T}yes" >&6
2692 else
2693 echo "$as_me:$LINENO: result: no" >&5
2694echo "${ECHO_T}no" >&6
2695 fi
2696
2697
2698 enablestring=
2699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2700echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2701 no_cache=0
2702 # Check whether --enable-gpe or --disable-gpe was given.
2703if test "${enable_gpe+set}" = set; then
2704 enableval="$enable_gpe"
2705
2706 if test "$enableval" = yes; then
2707 ac_cv_use_gpe='wxUSE_GPE=yes'
2708 else
2709 ac_cv_use_gpe='wxUSE_GPE=no'
2710 fi
2711
2712else
2713
2714 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2715 if test "x$LINE" != x ; then
2716 eval "DEFAULT_$LINE"
2717 else
2718 no_cache=1
2719 fi
2720
2721 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2722
2723fi;
2724
2725 eval "$ac_cv_use_gpe"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_GPE" = yes; then
2731 echo "$as_me:$LINENO: result: yes" >&5
2732echo "${ECHO_T}yes" >&6
2733 else
2734 echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6
2736 fi
2737
2738
2739
2740 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2741echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2742 no_cache=0
2743
2744# Check whether --with-libpng or --without-libpng was given.
2745if test "${with_libpng+set}" = set; then
2746 withval="$with_libpng"
2747
2748 if test "$withval" = yes; then
2749 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2750 elif test "$withval" = no; then
2751 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2752 elif test "$withval" = sys; then
2753 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2754 elif test "$withval" = builtin; then
2755 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2756 else
2757 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2758echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2759 { (exit 1); exit 1; }; }
2760 fi
2761
2762else
2763
2764 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2765 if test "x$LINE" != x ; then
2766 eval "DEFAULT_$LINE"
2767 else
2768 no_cache=1
2769 fi
2770
2771 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2772
2773fi;
2774
2775 eval "$ac_cv_use_libpng"
2776 if test "$no_cache" != 1; then
2777 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2778 fi
2779
2780 if test "$wxUSE_LIBPNG" = yes; then
2781 echo "$as_me:$LINENO: result: yes" >&5
2782echo "${ECHO_T}yes" >&6
2783 elif test "$wxUSE_LIBPNG" = no; then
2784 echo "$as_me:$LINENO: result: no" >&5
2785echo "${ECHO_T}no" >&6
2786 elif test "$wxUSE_LIBPNG" = sys; then
2787 echo "$as_me:$LINENO: result: system version" >&5
2788echo "${ECHO_T}system version" >&6
2789 elif test "$wxUSE_LIBPNG" = builtin; then
2790 echo "$as_me:$LINENO: result: builtin version" >&5
2791echo "${ECHO_T}builtin version" >&6
2792 else
2793 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2794echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2795 { (exit 1); exit 1; }; }
2796 fi
2797
2798
2799 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2800echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2801 no_cache=0
2802
2803# Check whether --with-libjpeg or --without-libjpeg was given.
2804if test "${with_libjpeg+set}" = set; then
2805 withval="$with_libjpeg"
2806
2807 if test "$withval" = yes; then
2808 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2809 elif test "$withval" = no; then
2810 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2811 elif test "$withval" = sys; then
2812 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2813 elif test "$withval" = builtin; then
2814 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2815 else
2816 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2817echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2818 { (exit 1); exit 1; }; }
2819 fi
2820
2821else
2822
2823 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2824 if test "x$LINE" != x ; then
2825 eval "DEFAULT_$LINE"
2826 else
2827 no_cache=1
2828 fi
2829
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2831
2832fi;
2833
2834 eval "$ac_cv_use_libjpeg"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_LIBJPEG" = yes; then
2840 echo "$as_me:$LINENO: result: yes" >&5
2841echo "${ECHO_T}yes" >&6
2842 elif test "$wxUSE_LIBJPEG" = no; then
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
2845 elif test "$wxUSE_LIBJPEG" = sys; then
2846 echo "$as_me:$LINENO: result: system version" >&5
2847echo "${ECHO_T}system version" >&6
2848 elif test "$wxUSE_LIBJPEG" = builtin; then
2849 echo "$as_me:$LINENO: result: builtin version" >&5
2850echo "${ECHO_T}builtin version" >&6
2851 else
2852 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2853echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2854 { (exit 1); exit 1; }; }
2855 fi
2856
2857
2858 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2859echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2860 no_cache=0
2861
2862# Check whether --with-libtiff or --without-libtiff was given.
2863if test "${with_libtiff+set}" = set; then
2864 withval="$with_libtiff"
2865
2866 if test "$withval" = yes; then
2867 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2868 elif test "$withval" = no; then
2869 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2870 elif test "$withval" = sys; then
2871 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2872 elif test "$withval" = builtin; then
2873 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2874 else
2875 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2876echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2877 { (exit 1); exit 1; }; }
2878 fi
2879
2880else
2881
2882 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2883 if test "x$LINE" != x ; then
2884 eval "DEFAULT_$LINE"
2885 else
2886 no_cache=1
2887 fi
2888
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2890
2891fi;
2892
2893 eval "$ac_cv_use_libtiff"
2894 if test "$no_cache" != 1; then
2895 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2896 fi
2897
2898 if test "$wxUSE_LIBTIFF" = yes; then
2899 echo "$as_me:$LINENO: result: yes" >&5
2900echo "${ECHO_T}yes" >&6
2901 elif test "$wxUSE_LIBTIFF" = no; then
2902 echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6
2904 elif test "$wxUSE_LIBTIFF" = sys; then
2905 echo "$as_me:$LINENO: result: system version" >&5
2906echo "${ECHO_T}system version" >&6
2907 elif test "$wxUSE_LIBTIFF" = builtin; then
2908 echo "$as_me:$LINENO: result: builtin version" >&5
2909echo "${ECHO_T}builtin version" >&6
2910 else
2911 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2912echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2913 { (exit 1); exit 1; }; }
2914 fi
2915
2916
2917 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2918echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2919 no_cache=0
2920
2921# Check whether --with-libxpm or --without-libxpm was given.
2922if test "${with_libxpm+set}" = set; then
2923 withval="$with_libxpm"
2924
2925 if test "$withval" = yes; then
2926 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2927 elif test "$withval" = no; then
2928 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2929 elif test "$withval" = sys; then
2930 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2931 elif test "$withval" = builtin; then
2932 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2933 else
2934 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2935echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2936 { (exit 1); exit 1; }; }
2937 fi
2938
2939else
2940
2941 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2949
2950fi;
2951
2952 eval "$ac_cv_use_libxpm"
2953 if test "$no_cache" != 1; then
2954 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2955 fi
2956
2957 if test "$wxUSE_LIBXPM" = yes; then
2958 echo "$as_me:$LINENO: result: yes" >&5
2959echo "${ECHO_T}yes" >&6
2960 elif test "$wxUSE_LIBXPM" = no; then
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963 elif test "$wxUSE_LIBXPM" = sys; then
2964 echo "$as_me:$LINENO: result: system version" >&5
2965echo "${ECHO_T}system version" >&6
2966 elif test "$wxUSE_LIBXPM" = builtin; then
2967 echo "$as_me:$LINENO: result: builtin version" >&5
2968echo "${ECHO_T}builtin version" >&6
2969 else
2970 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2971echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2972 { (exit 1); exit 1; }; }
2973 fi
2974
2975
2976 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2977echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2978 no_cache=0
2979
2980# Check whether --with-libmspack or --without-libmspack was given.
2981if test "${with_libmspack+set}" = set; then
2982 withval="$with_libmspack"
2983
2984 if test "$withval" = yes; then
2985 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2986 else
2987 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2988 fi
2989
2990else
2991
2992 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2993 if test "x$LINE" != x ; then
2994 eval "DEFAULT_$LINE"
2995 else
2996 no_cache=1
2997 fi
2998
2999 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3000
3001fi;
3002
3003 eval "$ac_cv_use_libmspack"
3004 if test "$no_cache" != 1; then
3005 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3006 fi
3007
3008 if test "$wxUSE_LIBMSPACK" = yes; then
3009 echo "$as_me:$LINENO: result: yes" >&5
3010echo "${ECHO_T}yes" >&6
3011 else
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
3014 fi
3015
3016
3017 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3018echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3019 no_cache=0
3020
3021# Check whether --with-sdl or --without-sdl was given.
3022if test "${with_sdl+set}" = set; then
3023 withval="$with_sdl"
3024
3025 if test "$withval" = yes; then
3026 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3027 else
3028 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3029 fi
3030
3031else
3032
3033 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3034 if test "x$LINE" != x ; then
3035 eval "DEFAULT_$LINE"
3036 else
3037 no_cache=1
3038 fi
3039
3040 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3041
3042fi;
3043
3044 eval "$ac_cv_use_sdl"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_LIBSDL" = yes; then
3050 echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3055 fi
3056
3057
3058 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3059echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3060 no_cache=0
3061
3062# Check whether --with-opengl or --without-opengl was given.
3063if test "${with_opengl+set}" = set; then
3064 withval="$with_opengl"
3065
3066 if test "$withval" = yes; then
3067 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3068 else
3069 ac_cv_use_opengl='wxUSE_OPENGL=no'
3070 fi
3071
3072else
3073
3074 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3075 if test "x$LINE" != x ; then
3076 eval "DEFAULT_$LINE"
3077 else
3078 no_cache=1
3079 fi
3080
3081 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3082
3083fi;
3084
3085 eval "$ac_cv_use_opengl"
3086 if test "$no_cache" != 1; then
3087 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3088 fi
3089
3090 if test "$wxUSE_OPENGL" = yes; then
3091 echo "$as_me:$LINENO: result: yes" >&5
3092echo "${ECHO_T}yes" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
3096 fi
3097
3098
3099fi
3100
3101
3102 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3103echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3104 no_cache=0
3105
3106# Check whether --with-dmalloc or --without-dmalloc was given.
3107if test "${with_dmalloc+set}" = set; then
3108 withval="$with_dmalloc"
3109
3110 if test "$withval" = yes; then
3111 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3112 else
3113 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3114 fi
3115
3116else
3117
3118 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3119 if test "x$LINE" != x ; then
3120 eval "DEFAULT_$LINE"
3121 else
3122 no_cache=1
3123 fi
3124
3125 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3126
3127fi;
3128
3129 eval "$ac_cv_use_dmalloc"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_DMALLOC" = yes; then
3135 echo "$as_me:$LINENO: result: yes" >&5
3136echo "${ECHO_T}yes" >&6
3137 else
3138 echo "$as_me:$LINENO: result: no" >&5
3139echo "${ECHO_T}no" >&6
3140 fi
3141
3142
3143 echo "$as_me:$LINENO: checking for --with-regex" >&5
3144echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3145 no_cache=0
3146
3147# Check whether --with-regex or --without-regex was given.
3148if test "${with_regex+set}" = set; then
3149 withval="$with_regex"
3150
3151 if test "$withval" = yes; then
3152 ac_cv_use_regex='wxUSE_REGEX=yes'
3153 elif test "$withval" = no; then
3154 ac_cv_use_regex='wxUSE_REGEX=no'
3155 elif test "$withval" = sys; then
3156 ac_cv_use_regex='wxUSE_REGEX=sys'
3157 elif test "$withval" = builtin; then
3158 ac_cv_use_regex='wxUSE_REGEX=builtin'
3159 else
3160 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3161echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3162 { (exit 1); exit 1; }; }
3163 fi
3164
3165else
3166
3167 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3168 if test "x$LINE" != x ; then
3169 eval "DEFAULT_$LINE"
3170 else
3171 no_cache=1
3172 fi
3173
3174 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3175
3176fi;
3177
3178 eval "$ac_cv_use_regex"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_REGEX" = yes; then
3184 echo "$as_me:$LINENO: result: yes" >&5
3185echo "${ECHO_T}yes" >&6
3186 elif test "$wxUSE_REGEX" = no; then
3187 echo "$as_me:$LINENO: result: no" >&5
3188echo "${ECHO_T}no" >&6
3189 elif test "$wxUSE_REGEX" = sys; then
3190 echo "$as_me:$LINENO: result: system version" >&5
3191echo "${ECHO_T}system version" >&6
3192 elif test "$wxUSE_REGEX" = builtin; then
3193 echo "$as_me:$LINENO: result: builtin version" >&5
3194echo "${ECHO_T}builtin version" >&6
3195 else
3196 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3197echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3198 { (exit 1); exit 1; }; }
3199 fi
3200
3201
3202 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3203echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3204 no_cache=0
3205
3206# Check whether --with-zlib or --without-zlib was given.
3207if test "${with_zlib+set}" = set; then
3208 withval="$with_zlib"
3209
3210 if test "$withval" = yes; then
3211 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3212 elif test "$withval" = no; then
3213 ac_cv_use_zlib='wxUSE_ZLIB=no'
3214 elif test "$withval" = sys; then
3215 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3216 elif test "$withval" = builtin; then
3217 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3218 else
3219 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3220echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3221 { (exit 1); exit 1; }; }
3222 fi
3223
3224else
3225
3226 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3227 if test "x$LINE" != x ; then
3228 eval "DEFAULT_$LINE"
3229 else
3230 no_cache=1
3231 fi
3232
3233 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3234
3235fi;
3236
3237 eval "$ac_cv_use_zlib"
3238 if test "$no_cache" != 1; then
3239 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3240 fi
3241
3242 if test "$wxUSE_ZLIB" = yes; then
3243 echo "$as_me:$LINENO: result: yes" >&5
3244echo "${ECHO_T}yes" >&6
3245 elif test "$wxUSE_ZLIB" = no; then
3246 echo "$as_me:$LINENO: result: no" >&5
3247echo "${ECHO_T}no" >&6
3248 elif test "$wxUSE_ZLIB" = sys; then
3249 echo "$as_me:$LINENO: result: system version" >&5
3250echo "${ECHO_T}system version" >&6
3251 elif test "$wxUSE_ZLIB" = builtin; then
3252 echo "$as_me:$LINENO: result: builtin version" >&5
3253echo "${ECHO_T}builtin version" >&6
3254 else
3255 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3256echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3257 { (exit 1); exit 1; }; }
3258 fi
3259
3260
3261 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3262echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3263 no_cache=0
3264
3265# Check whether --with-odbc or --without-odbc was given.
3266if test "${with_odbc+set}" = set; then
3267 withval="$with_odbc"
3268
3269 if test "$withval" = yes; then
3270 ac_cv_use_odbc='wxUSE_ODBC=yes'
3271 elif test "$withval" = no; then
3272 ac_cv_use_odbc='wxUSE_ODBC=no'
3273 elif test "$withval" = sys; then
3274 ac_cv_use_odbc='wxUSE_ODBC=sys'
3275 elif test "$withval" = builtin; then
3276 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3277 else
3278 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3279echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3293
3294fi;
3295
3296 eval "$ac_cv_use_odbc"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_ODBC" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 elif test "$wxUSE_ODBC" = no; then
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 elif test "$wxUSE_ODBC" = sys; then
3308 echo "$as_me:$LINENO: result: system version" >&5
3309echo "${ECHO_T}system version" >&6
3310 elif test "$wxUSE_ODBC" = builtin; then
3311 echo "$as_me:$LINENO: result: builtin version" >&5
3312echo "${ECHO_T}builtin version" >&6
3313 else
3314 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3315echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3316 { (exit 1); exit 1; }; }
3317 fi
3318
3319
3320 echo "$as_me:$LINENO: checking for --with-expat" >&5
3321echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3322 no_cache=0
3323
3324# Check whether --with-expat or --without-expat was given.
3325if test "${with_expat+set}" = set; then
3326 withval="$with_expat"
3327
3328 if test "$withval" = yes; then
3329 ac_cv_use_expat='wxUSE_EXPAT=yes'
3330 elif test "$withval" = no; then
3331 ac_cv_use_expat='wxUSE_EXPAT=no'
3332 elif test "$withval" = sys; then
3333 ac_cv_use_expat='wxUSE_EXPAT=sys'
3334 elif test "$withval" = builtin; then
3335 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3336 else
3337 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3338echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3339 { (exit 1); exit 1; }; }
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3352
3353fi;
3354
3355 eval "$ac_cv_use_expat"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_EXPAT" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 elif test "$wxUSE_EXPAT" = no; then
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 elif test "$wxUSE_EXPAT" = sys; then
3367 echo "$as_me:$LINENO: result: system version" >&5
3368echo "${ECHO_T}system version" >&6
3369 elif test "$wxUSE_EXPAT" = builtin; then
3370 echo "$as_me:$LINENO: result: builtin version" >&5
3371echo "${ECHO_T}builtin version" >&6
3372 else
3373 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3374echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3375 { (exit 1); exit 1; }; }
3376 fi
3377
3378
3379
3380
3381 enablestring=
3382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3383echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3384 no_cache=0
3385 # Check whether --enable-shared or --disable-shared was given.
3386if test "${enable_shared+set}" = set; then
3387 enableval="$enable_shared"
3388
3389 if test "$enableval" = yes; then
3390 ac_cv_use_shared='wxUSE_SHARED=yes'
3391 else
3392 ac_cv_use_shared='wxUSE_SHARED=no'
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3405
3406fi;
3407
3408 eval "$ac_cv_use_shared"
3409 if test "$no_cache" != 1; then
3410 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3411 fi
3412
3413 if test "$wxUSE_SHARED" = yes; then
3414 echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
3416 else
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
3419 fi
3420
3421
3422 enablestring=
3423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3424echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3425 no_cache=0
3426 # Check whether --enable-optimise or --disable-optimise was given.
3427if test "${enable_optimise+set}" = set; then
3428 enableval="$enable_optimise"
3429
3430 if test "$enableval" = yes; then
3431 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3432 else
3433 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3434 fi
3435
3436else
3437
3438 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3439 if test "x$LINE" != x ; then
3440 eval "DEFAULT_$LINE"
3441 else
3442 no_cache=1
3443 fi
3444
3445 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3446
3447fi;
3448
3449 eval "$ac_cv_use_optimise"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_OPTIMISE" = yes; then
3455 echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
3457 else
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
3460 fi
3461
3462
3463 enablestring=
3464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3465echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3466 no_cache=0
3467 # Check whether --enable-debug or --disable-debug was given.
3468if test "${enable_debug+set}" = set; then
3469 enableval="$enable_debug"
3470
3471 if test "$enableval" = yes; then
3472 ac_cv_use_debug='wxUSE_DEBUG=yes'
3473 else
3474 ac_cv_use_debug='wxUSE_DEBUG=no'
3475 fi
3476
3477else
3478
3479 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3487
3488fi;
3489
3490 eval "$ac_cv_use_debug"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_DEBUG" = yes; then
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
3498 else
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501 fi
3502
3503
3504 enablestring=
3505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3506echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3507 no_cache=0
3508 # Check whether --enable-stl or --disable-stl was given.
3509if test "${enable_stl+set}" = set; then
3510 enableval="$enable_stl"
3511
3512 if test "$enableval" = yes; then
3513 ac_cv_use_stl='wxUSE_STL=yes'
3514 else
3515 ac_cv_use_stl='wxUSE_STL=no'
3516 fi
3517
3518else
3519
3520 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3528
3529fi;
3530
3531 eval "$ac_cv_use_stl"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_STL" = yes; then
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
3539 else
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
3542 fi
3543
3544if test "$USE_OS2" = "1"; then
3545
3546 enablestring=
3547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3548echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3549 no_cache=0
3550 # Check whether --enable-omf or --disable-omf was given.
3551if test "${enable_omf+set}" = set; then
3552 enableval="$enable_omf"
3553
3554 if test "$enableval" = yes; then
3555 ac_cv_use_omf='wxUSE_OMF=yes'
3556 else
3557 ac_cv_use_omf='wxUSE_OMF=no'
3558 fi
3559
3560else
3561
3562 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3570
3571fi;
3572
3573 eval "$ac_cv_use_omf"
3574 if test "$no_cache" != 1; then
3575 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3576 fi
3577
3578 if test "$wxUSE_OMF" = yes; then
3579 echo "$as_me:$LINENO: result: yes" >&5
3580echo "${ECHO_T}yes" >&6
3581 else
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584 fi
3585
3586fi
3587
3588if test "$wxUSE_DEBUG" = "yes"; then
3589 DEFAULT_wxUSE_DEBUG_FLAG=yes
3590 DEFAULT_wxUSE_DEBUG_INFO=yes
3591 BUILD=debug
3592elif test "$wxUSE_DEBUG" = "no"; then
3593 DEFAULT_wxUSE_DEBUG_FLAG=no
3594 DEFAULT_wxUSE_DEBUG_INFO=no
3595 BUILD=release
3596fi
3597
3598
3599 enablestring=
3600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3601echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3602 no_cache=0
3603 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3604if test "${enable_debug_flag+set}" = set; then
3605 enableval="$enable_debug_flag"
3606
3607 if test "$enableval" = yes; then
3608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3609 else
3610 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3611 fi
3612
3613else
3614
3615 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3623
3624fi;
3625
3626 eval "$ac_cv_use_debug_flag"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_DEBUG_FLAG" = yes; then
3632 echo "$as_me:$LINENO: result: yes" >&5
3633echo "${ECHO_T}yes" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636echo "${ECHO_T}no" >&6
3637 fi
3638
3639
3640 enablestring=
3641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3642echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3643 no_cache=0
3644 # Check whether --enable-debug_info or --disable-debug_info was given.
3645if test "${enable_debug_info+set}" = set; then
3646 enableval="$enable_debug_info"
3647
3648 if test "$enableval" = yes; then
3649 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3650 else
3651 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3652 fi
3653
3654else
3655
3656 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3664
3665fi;
3666
3667 eval "$ac_cv_use_debug_info"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_DEBUG_INFO" = yes; then
3673 echo "$as_me:$LINENO: result: yes" >&5
3674echo "${ECHO_T}yes" >&6
3675 else
3676 echo "$as_me:$LINENO: result: no" >&5
3677echo "${ECHO_T}no" >&6
3678 fi
3679
3680
3681 enablestring=
3682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3683echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3684 no_cache=0
3685 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3686if test "${enable_debug_gdb+set}" = set; then
3687 enableval="$enable_debug_gdb"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3691 else
3692 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3693 fi
3694
3695else
3696
3697 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3705
3706fi;
3707
3708 eval "$ac_cv_use_debug_gdb"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_DEBUG_GDB" = yes; then
3714 echo "$as_me:$LINENO: result: yes" >&5
3715echo "${ECHO_T}yes" >&6
3716 else
3717 echo "$as_me:$LINENO: result: no" >&5
3718echo "${ECHO_T}no" >&6
3719 fi
3720
3721
3722 enablestring=
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3724echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3725 no_cache=0
3726 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3727if test "${enable_debug_cntxt+set}" = set; then
3728 enableval="$enable_debug_cntxt"
3729
3730 if test "$enableval" = yes; then
3731 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3732 else
3733 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3734 fi
3735
3736else
3737
3738 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3746
3747fi;
3748
3749 eval "$ac_cv_use_debug_cntxt"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
3757 else
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
3760 fi
3761
3762
3763 enablestring=
3764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3765echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3766 no_cache=0
3767 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3768if test "${enable_mem_tracing+set}" = set; then
3769 enableval="$enable_mem_tracing"
3770
3771 if test "$enableval" = yes; then
3772 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3773 else
3774 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3775 fi
3776
3777else
3778
3779 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3780 if test "x$LINE" != x ; then
3781 eval "DEFAULT_$LINE"
3782 else
3783 no_cache=1
3784 fi
3785
3786 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3787
3788fi;
3789
3790 eval "$ac_cv_use_mem_tracing"
3791 if test "$no_cache" != 1; then
3792 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3793 fi
3794
3795 if test "$wxUSE_MEM_TRACING" = yes; then
3796 echo "$as_me:$LINENO: result: yes" >&5
3797echo "${ECHO_T}yes" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800echo "${ECHO_T}no" >&6
3801 fi
3802
3803
3804 enablestring=
3805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3806echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3807 no_cache=0
3808 # Check whether --enable-profile or --disable-profile was given.
3809if test "${enable_profile+set}" = set; then
3810 enableval="$enable_profile"
3811
3812 if test "$enableval" = yes; then
3813 ac_cv_use_profile='wxUSE_PROFILE=yes'
3814 else
3815 ac_cv_use_profile='wxUSE_PROFILE=no'
3816 fi
3817
3818else
3819
3820 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3828
3829fi;
3830
3831 eval "$ac_cv_use_profile"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_PROFILE" = yes; then
3837 echo "$as_me:$LINENO: result: yes" >&5
3838echo "${ECHO_T}yes" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6
3842 fi
3843
3844
3845 enablestring=
3846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3847echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3848 no_cache=0
3849 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3850if test "${enable_no_rtti+set}" = set; then
3851 enableval="$enable_no_rtti"
3852
3853 if test "$enableval" = yes; then
3854 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3855 else
3856 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3857 fi
3858
3859else
3860
3861 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3869
3870fi;
3871
3872 eval "$ac_cv_use_no_rtti"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_NO_RTTI" = yes; then
3878 echo "$as_me:$LINENO: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
3883 fi
3884
3885
3886 enablestring=
3887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3888echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3889 no_cache=0
3890 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3891if test "${enable_no_exceptions+set}" = set; then
3892 enableval="$enable_no_exceptions"
3893
3894 if test "$enableval" = yes; then
3895 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3896 else
3897 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3898 fi
3899
3900else
3901
3902 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3903 if test "x$LINE" != x ; then
3904 eval "DEFAULT_$LINE"
3905 else
3906 no_cache=1
3907 fi
3908
3909 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3910
3911fi;
3912
3913 eval "$ac_cv_use_no_exceptions"
3914 if test "$no_cache" != 1; then
3915 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3916 fi
3917
3918 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3919 echo "$as_me:$LINENO: result: yes" >&5
3920echo "${ECHO_T}yes" >&6
3921 else
3922 echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6
3924 fi
3925
3926
3927 enablestring=
3928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3929echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3930 no_cache=0
3931 # Check whether --enable-permissive or --disable-permissive was given.
3932if test "${enable_permissive+set}" = set; then
3933 enableval="$enable_permissive"
3934
3935 if test "$enableval" = yes; then
3936 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3937 else
3938 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3939 fi
3940
3941else
3942
3943 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3944 if test "x$LINE" != x ; then
3945 eval "DEFAULT_$LINE"
3946 else
3947 no_cache=1
3948 fi
3949
3950 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3951
3952fi;
3953
3954 eval "$ac_cv_use_permissive"
3955 if test "$no_cache" != 1; then
3956 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3957 fi
3958
3959 if test "$wxUSE_PERMISSIVE" = yes; then
3960 echo "$as_me:$LINENO: result: yes" >&5
3961echo "${ECHO_T}yes" >&6
3962 else
3963 echo "$as_me:$LINENO: result: no" >&5
3964echo "${ECHO_T}no" >&6
3965 fi
3966
3967
3968 enablestring=
3969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3970echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3971 no_cache=0
3972 # Check whether --enable-no_deps or --disable-no_deps was given.
3973if test "${enable_no_deps+set}" = set; then
3974 enableval="$enable_no_deps"
3975
3976 if test "$enableval" = yes; then
3977 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3978 else
3979 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3980 fi
3981
3982else
3983
3984 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3992
3993fi;
3994
3995 eval "$ac_cv_use_no_deps"
3996 if test "$no_cache" != 1; then
3997 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3998 fi
3999
4000 if test "$wxUSE_NO_DEPS" = yes; then
4001 echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6
4003 else
4004 echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6
4006 fi
4007
4008
4009
4010 enablestring=
4011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4012echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4013 no_cache=0
4014 # Check whether --enable-compat22 or --disable-compat22 was given.
4015if test "${enable_compat22+set}" = set; then
4016 enableval="$enable_compat22"
4017
4018 if test "$enableval" = yes; then
4019 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4020 else
4021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4022 fi
4023
4024else
4025
4026 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4027 if test "x$LINE" != x ; then
4028 eval "DEFAULT_$LINE"
4029 else
4030 no_cache=1
4031 fi
4032
4033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4034
4035fi;
4036
4037 eval "$ac_cv_use_compat22"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4043 echo "$as_me:$LINENO: result: yes" >&5
4044echo "${ECHO_T}yes" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
4048 fi
4049
4050
4051 enablestring=disable
4052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4053echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4054 no_cache=0
4055 # Check whether --enable-compat24 or --disable-compat24 was given.
4056if test "${enable_compat24+set}" = set; then
4057 enableval="$enable_compat24"
4058
4059 if test "$enableval" = yes; then
4060 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4061 else
4062 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4063 fi
4064
4065else
4066
4067 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4075
4076fi;
4077
4078 eval "$ac_cv_use_compat24"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4084 echo "$as_me:$LINENO: result: yes" >&5
4085echo "${ECHO_T}yes" >&6
4086 else
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
4089 fi
4090
4091
4092# Check whether --enable-rpath or --disable-rpath was given.
4093if test "${enable_rpath+set}" = set; then
4094 enableval="$enable_rpath"
4095 wxRPATH_DIR="$enableval"
4096fi;
4097
4098if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4099 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4100fi
4101
4102
4103
4104
4105 enablestring=
4106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4107echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4108 no_cache=0
4109 # Check whether --enable-intl or --disable-intl was given.
4110if test "${enable_intl+set}" = set; then
4111 enableval="$enable_intl"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_intl='wxUSE_INTL=yes'
4115 else
4116 ac_cv_use_intl='wxUSE_INTL=no'
4117 fi
4118
4119else
4120
4121 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4129
4130fi;
4131
4132 eval "$ac_cv_use_intl"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_INTL" = yes; then
4138 echo "$as_me:$LINENO: result: yes" >&5
4139echo "${ECHO_T}yes" >&6
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
4143 fi
4144
4145
4146 enablestring=
4147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4148echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4149 no_cache=0
4150 # Check whether --enable-config or --disable-config was given.
4151if test "${enable_config+set}" = set; then
4152 enableval="$enable_config"
4153
4154 if test "$enableval" = yes; then
4155 ac_cv_use_config='wxUSE_CONFIG=yes'
4156 else
4157 ac_cv_use_config='wxUSE_CONFIG=no'
4158 fi
4159
4160else
4161
4162 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4163 if test "x$LINE" != x ; then
4164 eval "DEFAULT_$LINE"
4165 else
4166 no_cache=1
4167 fi
4168
4169 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4170
4171fi;
4172
4173 eval "$ac_cv_use_config"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_CONFIG" = yes; then
4179 echo "$as_me:$LINENO: result: yes" >&5
4180echo "${ECHO_T}yes" >&6
4181 else
4182 echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6
4184 fi
4185
4186
4187
4188 enablestring=
4189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4190echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4191 no_cache=0
4192 # Check whether --enable-protocols or --disable-protocols was given.
4193if test "${enable_protocols+set}" = set; then
4194 enableval="$enable_protocols"
4195
4196 if test "$enableval" = yes; then
4197 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4198 else
4199 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4200 fi
4201
4202else
4203
4204 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4205 if test "x$LINE" != x ; then
4206 eval "DEFAULT_$LINE"
4207 else
4208 no_cache=1
4209 fi
4210
4211 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4212
4213fi;
4214
4215 eval "$ac_cv_use_protocols"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_PROTOCOL" = yes; then
4221 echo "$as_me:$LINENO: result: yes" >&5
4222echo "${ECHO_T}yes" >&6
4223 else
4224 echo "$as_me:$LINENO: result: no" >&5
4225echo "${ECHO_T}no" >&6
4226 fi
4227
4228
4229 enablestring=
4230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4231echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4232 no_cache=0
4233 # Check whether --enable-ftp or --disable-ftp was given.
4234if test "${enable_ftp+set}" = set; then
4235 enableval="$enable_ftp"
4236
4237 if test "$enableval" = yes; then
4238 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4239 else
4240 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4241 fi
4242
4243else
4244
4245 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4246 if test "x$LINE" != x ; then
4247 eval "DEFAULT_$LINE"
4248 else
4249 no_cache=1
4250 fi
4251
4252 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4253
4254fi;
4255
4256 eval "$ac_cv_use_ftp"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4262 echo "$as_me:$LINENO: result: yes" >&5
4263echo "${ECHO_T}yes" >&6
4264 else
4265 echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
4267 fi
4268
4269
4270 enablestring=
4271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4272echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4273 no_cache=0
4274 # Check whether --enable-http or --disable-http was given.
4275if test "${enable_http+set}" = set; then
4276 enableval="$enable_http"
4277
4278 if test "$enableval" = yes; then
4279 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4280 else
4281 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4282 fi
4283
4284else
4285
4286 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4287 if test "x$LINE" != x ; then
4288 eval "DEFAULT_$LINE"
4289 else
4290 no_cache=1
4291 fi
4292
4293 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4294
4295fi;
4296
4297 eval "$ac_cv_use_http"
4298 if test "$no_cache" != 1; then
4299 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4300 fi
4301
4302 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4303 echo "$as_me:$LINENO: result: yes" >&5
4304echo "${ECHO_T}yes" >&6
4305 else
4306 echo "$as_me:$LINENO: result: no" >&5
4307echo "${ECHO_T}no" >&6
4308 fi
4309
4310
4311 enablestring=
4312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4313echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4314 no_cache=0
4315 # Check whether --enable-fileproto or --disable-fileproto was given.
4316if test "${enable_fileproto+set}" = set; then
4317 enableval="$enable_fileproto"
4318
4319 if test "$enableval" = yes; then
4320 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4321 else
4322 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4323 fi
4324
4325else
4326
4327 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4335
4336fi;
4337
4338 eval "$ac_cv_use_fileproto"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4344 echo "$as_me:$LINENO: result: yes" >&5
4345echo "${ECHO_T}yes" >&6
4346 else
4347 echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
4349 fi
4350
4351
4352 enablestring=
4353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4354echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4355 no_cache=0
4356 # Check whether --enable-sockets or --disable-sockets was given.
4357if test "${enable_sockets+set}" = set; then
4358 enableval="$enable_sockets"
4359
4360 if test "$enableval" = yes; then
4361 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4362 else
4363 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4364 fi
4365
4366else
4367
4368 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4369 if test "x$LINE" != x ; then
4370 eval "DEFAULT_$LINE"
4371 else
4372 no_cache=1
4373 fi
4374
4375 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4376
4377fi;
4378
4379 eval "$ac_cv_use_sockets"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_SOCKETS" = yes; then
4385 echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6
4387 else
4388 echo "$as_me:$LINENO: result: no" >&5
4389echo "${ECHO_T}no" >&6
4390 fi
4391
4392
4393 enablestring=
4394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4395echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4396 no_cache=0
4397 # Check whether --enable-ole or --disable-ole was given.
4398if test "${enable_ole+set}" = set; then
4399 enableval="$enable_ole"
4400
4401 if test "$enableval" = yes; then
4402 ac_cv_use_ole='wxUSE_OLE=yes'
4403 else
4404 ac_cv_use_ole='wxUSE_OLE=no'
4405 fi
4406
4407else
4408
4409 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4410 if test "x$LINE" != x ; then
4411 eval "DEFAULT_$LINE"
4412 else
4413 no_cache=1
4414 fi
4415
4416 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4417
4418fi;
4419
4420 eval "$ac_cv_use_ole"
4421 if test "$no_cache" != 1; then
4422 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4423 fi
4424
4425 if test "$wxUSE_OLE" = yes; then
4426 echo "$as_me:$LINENO: result: yes" >&5
4427echo "${ECHO_T}yes" >&6
4428 else
4429 echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
4431 fi
4432
4433
4434 enablestring=
4435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4436echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4437 no_cache=0
4438 # Check whether --enable-dataobj or --disable-dataobj was given.
4439if test "${enable_dataobj+set}" = set; then
4440 enableval="$enable_dataobj"
4441
4442 if test "$enableval" = yes; then
4443 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4444 else
4445 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4446 fi
4447
4448else
4449
4450 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4451 if test "x$LINE" != x ; then
4452 eval "DEFAULT_$LINE"
4453 else
4454 no_cache=1
4455 fi
4456
4457 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4458
4459fi;
4460
4461 eval "$ac_cv_use_dataobj"
4462 if test "$no_cache" != 1; then
4463 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4464 fi
4465
4466 if test "$wxUSE_DATAOBJ" = yes; then
4467 echo "$as_me:$LINENO: result: yes" >&5
4468echo "${ECHO_T}yes" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472 fi
4473
4474
4475
4476 enablestring=
4477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4478echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4479 no_cache=0
4480 # Check whether --enable-ipc or --disable-ipc was given.
4481if test "${enable_ipc+set}" = set; then
4482 enableval="$enable_ipc"
4483
4484 if test "$enableval" = yes; then
4485 ac_cv_use_ipc='wxUSE_IPC=yes'
4486 else
4487 ac_cv_use_ipc='wxUSE_IPC=no'
4488 fi
4489
4490else
4491
4492 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4493 if test "x$LINE" != x ; then
4494 eval "DEFAULT_$LINE"
4495 else
4496 no_cache=1
4497 fi
4498
4499 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4500
4501fi;
4502
4503 eval "$ac_cv_use_ipc"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_IPC" = yes; then
4509 echo "$as_me:$LINENO: result: yes" >&5
4510echo "${ECHO_T}yes" >&6
4511 else
4512 echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
4514 fi
4515
4516
4517
4518 enablestring=
4519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4520echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4521 no_cache=0
4522 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4523if test "${enable_apple_ieee+set}" = set; then
4524 enableval="$enable_apple_ieee"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4528 else
4529 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4530 fi
4531
4532else
4533
4534 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4542
4543fi;
4544
4545 eval "$ac_cv_use_apple_ieee"
4546 if test "$no_cache" != 1; then
4547 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4548 fi
4549
4550 if test "$wxUSE_APPLE_IEEE" = yes; then
4551 echo "$as_me:$LINENO: result: yes" >&5
4552echo "${ECHO_T}yes" >&6
4553 else
4554 echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6
4556 fi
4557
4558
4559 enablestring=
4560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4561echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4562 no_cache=0
4563 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4564if test "${enable_catch_segvs+set}" = set; then
4565 enableval="$enable_catch_segvs"
4566
4567 if test "$enableval" = yes; then
4568 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4569 else
4570 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4571 fi
4572
4573else
4574
4575 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4583
4584fi;
4585
4586 eval "$ac_cv_use_catch_segvs"
4587 if test "$no_cache" != 1; then
4588 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4589 fi
4590
4591 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593echo "${ECHO_T}yes" >&6
4594 else
4595 echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6
4597 fi
4598
4599
4600 enablestring=
4601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4602echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4603 no_cache=0
4604 # Check whether --enable-cmdline or --disable-cmdline was given.
4605if test "${enable_cmdline+set}" = set; then
4606 enableval="$enable_cmdline"
4607
4608 if test "$enableval" = yes; then
4609 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4610 else
4611 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4612 fi
4613
4614else
4615
4616 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4617 if test "x$LINE" != x ; then
4618 eval "DEFAULT_$LINE"
4619 else
4620 no_cache=1
4621 fi
4622
4623 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4624
4625fi;
4626
4627 eval "$ac_cv_use_cmdline"
4628 if test "$no_cache" != 1; then
4629 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4630 fi
4631
4632 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4633 echo "$as_me:$LINENO: result: yes" >&5
4634echo "${ECHO_T}yes" >&6
4635 else
4636 echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6
4638 fi
4639
4640
4641 enablestring=
4642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4643echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4644 no_cache=0
4645 # Check whether --enable-datetime or --disable-datetime was given.
4646if test "${enable_datetime+set}" = set; then
4647 enableval="$enable_datetime"
4648
4649 if test "$enableval" = yes; then
4650 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4651 else
4652 ac_cv_use_datetime='wxUSE_DATETIME=no'
4653 fi
4654
4655else
4656
4657 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4665
4666fi;
4667
4668 eval "$ac_cv_use_datetime"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_DATETIME" = yes; then
4674 echo "$as_me:$LINENO: result: yes" >&5
4675echo "${ECHO_T}yes" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6
4679 fi
4680
4681
4682 enablestring=
4683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4684echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4685 no_cache=0
4686 # Check whether --enable-dialupman or --disable-dialupman was given.
4687if test "${enable_dialupman+set}" = set; then
4688 enableval="$enable_dialupman"
4689
4690 if test "$enableval" = yes; then
4691 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4692 else
4693 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4694 fi
4695
4696else
4697
4698 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4699 if test "x$LINE" != x ; then
4700 eval "DEFAULT_$LINE"
4701 else
4702 no_cache=1
4703 fi
4704
4705 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4706
4707fi;
4708
4709 eval "$ac_cv_use_dialupman"
4710 if test "$no_cache" != 1; then
4711 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4712 fi
4713
4714 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4715 echo "$as_me:$LINENO: result: yes" >&5
4716echo "${ECHO_T}yes" >&6
4717 else
4718 echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6
4720 fi
4721
4722
4723 enablestring=
4724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4725echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4726 no_cache=0
4727 # Check whether --enable-dynlib or --disable-dynlib was given.
4728if test "${enable_dynlib+set}" = set; then
4729 enableval="$enable_dynlib"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4733 else
4734 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4735 fi
4736
4737else
4738
4739 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4747
4748fi;
4749
4750 eval "$ac_cv_use_dynlib"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4756 echo "$as_me:$LINENO: result: yes" >&5
4757echo "${ECHO_T}yes" >&6
4758 else
4759 echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6
4761 fi
4762
4763
4764 enablestring=
4765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4766echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4767 no_cache=0
4768 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4769if test "${enable_dynamicloader+set}" = set; then
4770 enableval="$enable_dynamicloader"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4774 else
4775 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4776 fi
4777
4778else
4779
4780 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4788
4789fi;
4790
4791 eval "$ac_cv_use_dynamicloader"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4797 echo "$as_me:$LINENO: result: yes" >&5
4798echo "${ECHO_T}yes" >&6
4799 else
4800 echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6
4802 fi
4803
4804
4805 enablestring=
4806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4807echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4808 no_cache=0
4809 # Check whether --enable-exceptions or --disable-exceptions was given.
4810if test "${enable_exceptions+set}" = set; then
4811 enableval="$enable_exceptions"
4812
4813 if test "$enableval" = yes; then
4814 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4815 else
4816 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4817 fi
4818
4819else
4820
4821 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4822 if test "x$LINE" != x ; then
4823 eval "DEFAULT_$LINE"
4824 else
4825 no_cache=1
4826 fi
4827
4828 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4829
4830fi;
4831
4832 eval "$ac_cv_use_exceptions"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_EXCEPTIONS" = yes; then
4838 echo "$as_me:$LINENO: result: yes" >&5
4839echo "${ECHO_T}yes" >&6
4840 else
4841 echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843 fi
4844
4845
4846 enablestring=
4847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4848echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4849 no_cache=0
4850 # Check whether --enable-ffile or --disable-ffile was given.
4851if test "${enable_ffile+set}" = set; then
4852 enableval="$enable_ffile"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_ffile='wxUSE_FFILE=yes'
4856 else
4857 ac_cv_use_ffile='wxUSE_FFILE=no'
4858 fi
4859
4860else
4861
4862 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4870
4871fi;
4872
4873 eval "$ac_cv_use_ffile"
4874 if test "$no_cache" != 1; then
4875 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4876 fi
4877
4878 if test "$wxUSE_FFILE" = yes; then
4879 echo "$as_me:$LINENO: result: yes" >&5
4880echo "${ECHO_T}yes" >&6
4881 else
4882 echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6
4884 fi
4885
4886
4887 enablestring=
4888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4889echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4890 no_cache=0
4891 # Check whether --enable-file or --disable-file was given.
4892if test "${enable_file+set}" = set; then
4893 enableval="$enable_file"
4894
4895 if test "$enableval" = yes; then
4896 ac_cv_use_file='wxUSE_FILE=yes'
4897 else
4898 ac_cv_use_file='wxUSE_FILE=no'
4899 fi
4900
4901else
4902
4903 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4904 if test "x$LINE" != x ; then
4905 eval "DEFAULT_$LINE"
4906 else
4907 no_cache=1
4908 fi
4909
4910 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4911
4912fi;
4913
4914 eval "$ac_cv_use_file"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_FILE" = yes; then
4920 echo "$as_me:$LINENO: result: yes" >&5
4921echo "${ECHO_T}yes" >&6
4922 else
4923 echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
4925 fi
4926
4927
4928 enablestring=
4929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4930echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4931 no_cache=0
4932 # Check whether --enable-filesystem or --disable-filesystem was given.
4933if test "${enable_filesystem+set}" = set; then
4934 enableval="$enable_filesystem"
4935
4936 if test "$enableval" = yes; then
4937 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4938 else
4939 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4940 fi
4941
4942else
4943
4944 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4952
4953fi;
4954
4955 eval "$ac_cv_use_filesystem"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_FILESYSTEM" = yes; then
4961 echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6
4963 else
4964 echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966 fi
4967
4968
4969 enablestring=
4970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4971echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4972 no_cache=0
4973 # Check whether --enable-fontmap or --disable-fontmap was given.
4974if test "${enable_fontmap+set}" = set; then
4975 enableval="$enable_fontmap"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4979 else
4980 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4981 fi
4982
4983else
4984
4985 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4993
4994fi;
4995
4996 eval "$ac_cv_use_fontmap"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_FONTMAP" = yes; then
5002 echo "$as_me:$LINENO: result: yes" >&5
5003echo "${ECHO_T}yes" >&6
5004 else
5005 echo "$as_me:$LINENO: result: no" >&5
5006echo "${ECHO_T}no" >&6
5007 fi
5008
5009
5010 enablestring=
5011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5012echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5013 no_cache=0
5014 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5015if test "${enable_fs_inet+set}" = set; then
5016 enableval="$enable_fs_inet"
5017
5018 if test "$enableval" = yes; then
5019 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5020 else
5021 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5022 fi
5023
5024else
5025
5026 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
5033 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5034
5035fi;
5036
5037 eval "$ac_cv_use_fs_inet"
5038 if test "$no_cache" != 1; then
5039 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5040 fi
5041
5042 if test "$wxUSE_FS_INET" = yes; then
5043 echo "$as_me:$LINENO: result: yes" >&5
5044echo "${ECHO_T}yes" >&6
5045 else
5046 echo "$as_me:$LINENO: result: no" >&5
5047echo "${ECHO_T}no" >&6
5048 fi
5049
5050
5051 enablestring=
5052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5053echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5054 no_cache=0
5055 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5056if test "${enable_fs_zip+set}" = set; then
5057 enableval="$enable_fs_zip"
5058
5059 if test "$enableval" = yes; then
5060 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5061 else
5062 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5063 fi
5064
5065else
5066
5067 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5075
5076fi;
5077
5078 eval "$ac_cv_use_fs_zip"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_FS_ZIP" = yes; then
5084 echo "$as_me:$LINENO: result: yes" >&5
5085echo "${ECHO_T}yes" >&6
5086 else
5087 echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089 fi
5090
5091
5092 enablestring=
5093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5094echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5095 no_cache=0
5096 # Check whether --enable-geometry or --disable-geometry was given.
5097if test "${enable_geometry+set}" = set; then
5098 enableval="$enable_geometry"
5099
5100 if test "$enableval" = yes; then
5101 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5102 else
5103 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5104 fi
5105
5106else
5107
5108 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
5115 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5116
5117fi;
5118
5119 eval "$ac_cv_use_geometry"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_GEOMETRY" = yes; then
5125 echo "$as_me:$LINENO: result: yes" >&5
5126echo "${ECHO_T}yes" >&6
5127 else
5128 echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6
5130 fi
5131
5132
5133 enablestring=
5134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5135echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5136 no_cache=0
5137 # Check whether --enable-log or --disable-log was given.
5138if test "${enable_log+set}" = set; then
5139 enableval="$enable_log"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_log='wxUSE_LOG=yes'
5143 else
5144 ac_cv_use_log='wxUSE_LOG=no'
5145 fi
5146
5147else
5148
5149 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5157
5158fi;
5159
5160 eval "$ac_cv_use_log"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_LOG" = yes; then
5166 echo "$as_me:$LINENO: result: yes" >&5
5167echo "${ECHO_T}yes" >&6
5168 else
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171 fi
5172
5173
5174 enablestring=
5175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5176echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5177 no_cache=0
5178 # Check whether --enable-longlong or --disable-longlong was given.
5179if test "${enable_longlong+set}" = set; then
5180 enableval="$enable_longlong"
5181
5182 if test "$enableval" = yes; then
5183 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5184 else
5185 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5186 fi
5187
5188else
5189
5190 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5198
5199fi;
5200
5201 eval "$ac_cv_use_longlong"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_LONGLONG" = yes; then
5207 echo "$as_me:$LINENO: result: yes" >&5
5208echo "${ECHO_T}yes" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212 fi
5213
5214
5215 enablestring=
5216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5217echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5218 no_cache=0
5219 # Check whether --enable-mimetype or --disable-mimetype was given.
5220if test "${enable_mimetype+set}" = set; then
5221 enableval="$enable_mimetype"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5225 else
5226 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5227 fi
5228
5229else
5230
5231 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5239
5240fi;
5241
5242 eval "$ac_cv_use_mimetype"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_MIMETYPE" = yes; then
5248 echo "$as_me:$LINENO: result: yes" >&5
5249echo "${ECHO_T}yes" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253 fi
5254
5255
5256 enablestring=
5257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5258echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5259 no_cache=0
5260 # Check whether --enable-mslu or --disable-mslu was given.
5261if test "${enable_mslu+set}" = set; then
5262 enableval="$enable_mslu"
5263
5264 if test "$enableval" = yes; then
5265 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5266 else
5267 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5268 fi
5269
5270else
5271
5272 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5273 if test "x$LINE" != x ; then
5274 eval "DEFAULT_$LINE"
5275 else
5276 no_cache=1
5277 fi
5278
5279 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5280
5281fi;
5282
5283 eval "$ac_cv_use_mslu"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_UNICODE_MSLU" = yes; then
5289 echo "$as_me:$LINENO: result: yes" >&5
5290echo "${ECHO_T}yes" >&6
5291 else
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294 fi
5295
5296
5297 enablestring=
5298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5299echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5300 no_cache=0
5301 # Check whether --enable-snglinst or --disable-snglinst was given.
5302if test "${enable_snglinst+set}" = set; then
5303 enableval="$enable_snglinst"
5304
5305 if test "$enableval" = yes; then
5306 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5307 else
5308 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5309 fi
5310
5311else
5312
5313 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5321
5322fi;
5323
5324 eval "$ac_cv_use_snglinst"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5330 echo "$as_me:$LINENO: result: yes" >&5
5331echo "${ECHO_T}yes" >&6
5332 else
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
5335 fi
5336
5337
5338 enablestring=
5339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5340echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5341 no_cache=0
5342 # Check whether --enable-streams or --disable-streams was given.
5343if test "${enable_streams+set}" = set; then
5344 enableval="$enable_streams"
5345
5346 if test "$enableval" = yes; then
5347 ac_cv_use_streams='wxUSE_STREAMS=yes'
5348 else
5349 ac_cv_use_streams='wxUSE_STREAMS=no'
5350 fi
5351
5352else
5353
5354 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5362
5363fi;
5364
5365 eval "$ac_cv_use_streams"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_STREAMS" = yes; then
5371 echo "$as_me:$LINENO: result: yes" >&5
5372echo "${ECHO_T}yes" >&6
5373 else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376 fi
5377
5378
5379 enablestring=
5380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5381echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5382 no_cache=0
5383 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5384if test "${enable_std_iostreams+set}" = set; then
5385 enableval="$enable_std_iostreams"
5386
5387 if test "$enableval" = yes; then
5388 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5389 else
5390 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5391 fi
5392
5393else
5394
5395 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5396 if test "x$LINE" != x ; then
5397 eval "DEFAULT_$LINE"
5398 else
5399 no_cache=1
5400 fi
5401
5402 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5403
5404fi;
5405
5406 eval "$ac_cv_use_std_iostreams"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_STD_IOSTREAM" = yes; then
5412 echo "$as_me:$LINENO: result: yes" >&5
5413echo "${ECHO_T}yes" >&6
5414 else
5415 echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417 fi
5418
5419
5420 enablestring=
5421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5422echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5423 no_cache=0
5424 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5425if test "${enable_stopwatch+set}" = set; then
5426 enableval="$enable_stopwatch"
5427
5428 if test "$enableval" = yes; then
5429 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5430 else
5431 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5432 fi
5433
5434else
5435
5436 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5437 if test "x$LINE" != x ; then
5438 eval "DEFAULT_$LINE"
5439 else
5440 no_cache=1
5441 fi
5442
5443 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5444
5445fi;
5446
5447 eval "$ac_cv_use_stopwatch"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_STOPWATCH" = yes; then
5453 echo "$as_me:$LINENO: result: yes" >&5
5454echo "${ECHO_T}yes" >&6
5455 else
5456 echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
5458 fi
5459
5460
5461 enablestring=
5462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5463echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5464 no_cache=0
5465 # Check whether --enable-system_options or --disable-system_options was given.
5466if test "${enable_system_options+set}" = set; then
5467 enableval="$enable_system_options"
5468
5469 if test "$enableval" = yes; then
5470 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5471 else
5472 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5473 fi
5474
5475else
5476
5477 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5478 if test "x$LINE" != x ; then
5479 eval "DEFAULT_$LINE"
5480 else
5481 no_cache=1
5482 fi
5483
5484 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5485
5486fi;
5487
5488 eval "$ac_cv_use_system_options"
5489 if test "$no_cache" != 1; then
5490 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5491 fi
5492
5493 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5494 echo "$as_me:$LINENO: result: yes" >&5
5495echo "${ECHO_T}yes" >&6
5496 else
5497 echo "$as_me:$LINENO: result: no" >&5
5498echo "${ECHO_T}no" >&6
5499 fi
5500
5501
5502 enablestring=
5503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5504echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5505 no_cache=0
5506 # Check whether --enable-textbuf or --disable-textbuf was given.
5507if test "${enable_textbuf+set}" = set; then
5508 enableval="$enable_textbuf"
5509
5510 if test "$enableval" = yes; then
5511 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5512 else
5513 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5514 fi
5515
5516else
5517
5518 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
5525 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5526
5527fi;
5528
5529 eval "$ac_cv_use_textbuf"
5530 if test "$no_cache" != 1; then
5531 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5532 fi
5533
5534 if test "$wxUSE_TEXTBUFFER" = yes; then
5535 echo "$as_me:$LINENO: result: yes" >&5
5536echo "${ECHO_T}yes" >&6
5537 else
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540 fi
5541
5542
5543 enablestring=
5544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5545echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5546 no_cache=0
5547 # Check whether --enable-textfile or --disable-textfile was given.
5548if test "${enable_textfile+set}" = set; then
5549 enableval="$enable_textfile"
5550
5551 if test "$enableval" = yes; then
5552 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5553 else
5554 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5555 fi
5556
5557else
5558
5559 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5560 if test "x$LINE" != x ; then
5561 eval "DEFAULT_$LINE"
5562 else
5563 no_cache=1
5564 fi
5565
5566 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5567
5568fi;
5569
5570 eval "$ac_cv_use_textfile"
5571 if test "$no_cache" != 1; then
5572 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5573 fi
5574
5575 if test "$wxUSE_TEXTFILE" = yes; then
5576 echo "$as_me:$LINENO: result: yes" >&5
5577echo "${ECHO_T}yes" >&6
5578 else
5579 echo "$as_me:$LINENO: result: no" >&5
5580echo "${ECHO_T}no" >&6
5581 fi
5582
5583
5584 enablestring=
5585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5586echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5587 no_cache=0
5588 # Check whether --enable-timer or --disable-timer was given.
5589if test "${enable_timer+set}" = set; then
5590 enableval="$enable_timer"
5591
5592 if test "$enableval" = yes; then
5593 ac_cv_use_timer='wxUSE_TIMER=yes'
5594 else
5595 ac_cv_use_timer='wxUSE_TIMER=no'
5596 fi
5597
5598else
5599
5600 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5601 if test "x$LINE" != x ; then
5602 eval "DEFAULT_$LINE"
5603 else
5604 no_cache=1
5605 fi
5606
5607 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5608
5609fi;
5610
5611 eval "$ac_cv_use_timer"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_TIMER" = yes; then
5617 echo "$as_me:$LINENO: result: yes" >&5
5618echo "${ECHO_T}yes" >&6
5619 else
5620 echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622 fi
5623
5624
5625 enablestring=
5626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5627echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5628 no_cache=0
5629 # Check whether --enable-unicode or --disable-unicode was given.
5630if test "${enable_unicode+set}" = set; then
5631 enableval="$enable_unicode"
5632
5633 if test "$enableval" = yes; then
5634 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5635 else
5636 ac_cv_use_unicode='wxUSE_UNICODE=no'
5637 fi
5638
5639else
5640
5641 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5649
5650fi;
5651
5652 eval "$ac_cv_use_unicode"
5653 if test "$no_cache" != 1; then
5654 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5655 fi
5656
5657 if test "$wxUSE_UNICODE" = yes; then
5658 echo "$as_me:$LINENO: result: yes" >&5
5659echo "${ECHO_T}yes" >&6
5660 else
5661 echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
5663 fi
5664
5665
5666 enablestring=
5667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5668echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5669 no_cache=0
5670 # Check whether --enable-sound or --disable-sound was given.
5671if test "${enable_sound+set}" = set; then
5672 enableval="$enable_sound"
5673
5674 if test "$enableval" = yes; then
5675 ac_cv_use_sound='wxUSE_SOUND=yes'
5676 else
5677 ac_cv_use_sound='wxUSE_SOUND=no'
5678 fi
5679
5680else
5681
5682 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5683 if test "x$LINE" != x ; then
5684 eval "DEFAULT_$LINE"
5685 else
5686 no_cache=1
5687 fi
5688
5689 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5690
5691fi;
5692
5693 eval "$ac_cv_use_sound"
5694 if test "$no_cache" != 1; then
5695 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5696 fi
5697
5698 if test "$wxUSE_SOUND" = yes; then
5699 echo "$as_me:$LINENO: result: yes" >&5
5700echo "${ECHO_T}yes" >&6
5701 else
5702 echo "$as_me:$LINENO: result: no" >&5
5703echo "${ECHO_T}no" >&6
5704 fi
5705
5706
5707 enablestring=
5708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5709echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5710 no_cache=0
5711 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5712if test "${enable_wxprintfv+set}" = set; then
5713 enableval="$enable_wxprintfv"
5714
5715 if test "$enableval" = yes; then
5716 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5717 else
5718 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5719 fi
5720
5721else
5722
5723 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
5730 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5731
5732fi;
5733
5734 eval "$ac_cv_use_wxprintfv"
5735 if test "$no_cache" != 1; then
5736 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5737 fi
5738
5739 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5740 echo "$as_me:$LINENO: result: yes" >&5
5741echo "${ECHO_T}yes" >&6
5742 else
5743 echo "$as_me:$LINENO: result: no" >&5
5744echo "${ECHO_T}no" >&6
5745 fi
5746
5747
5748 enablestring=
5749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5750echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5751 no_cache=0
5752 # Check whether --enable-zipstream or --disable-zipstream was given.
5753if test "${enable_zipstream+set}" = set; then
5754 enableval="$enable_zipstream"
5755
5756 if test "$enableval" = yes; then
5757 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5758 else
5759 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5760 fi
5761
5762else
5763
5764 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5772
5773fi;
5774
5775 eval "$ac_cv_use_zipstream"
5776 if test "$no_cache" != 1; then
5777 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5778 fi
5779
5780 if test "$wxUSE_ZIPSTREAM" = yes; then
5781 echo "$as_me:$LINENO: result: yes" >&5
5782echo "${ECHO_T}yes" >&6
5783 else
5784 echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
5786 fi
5787
5788
a848cd7e
SC
5789
5790 enablestring=
5791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5792echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5793 no_cache=0
5794 # Check whether --enable-url or --disable-url was given.
5795if test "${enable_url+set}" = set; then
5796 enableval="$enable_url"
5797
5798 if test "$enableval" = yes; then
5799 ac_cv_use_url='wxUSE_URL=yes'
5800 else
5801 ac_cv_use_url='wxUSE_URL=no'
5802 fi
5803
5804else
5805
5806 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5807 if test "x$LINE" != x ; then
5808 eval "DEFAULT_$LINE"
5809 else
5810 no_cache=1
5811 fi
5812
5813 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5814
5815fi;
5816
5817 eval "$ac_cv_use_url"
5818 if test "$no_cache" != 1; then
5819 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5820 fi
5821
5822 if test "$wxUSE_URL" = yes; then
5823 echo "$as_me:$LINENO: result: yes" >&5
5824echo "${ECHO_T}yes" >&6
5825 else
5826 echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828 fi
5829
5830
5831 enablestring=
5832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5833echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5834 no_cache=0
5835 # Check whether --enable-protocol or --disable-protocol was given.
5836if test "${enable_protocol+set}" = set; then
5837 enableval="$enable_protocol"
5838
5839 if test "$enableval" = yes; then
5840 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5841 else
5842 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5843 fi
5844
5845else
5846
5847 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5848 if test "x$LINE" != x ; then
5849 eval "DEFAULT_$LINE"
5850 else
5851 no_cache=1
5852 fi
5853
5854 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5855
5856fi;
5857
5858 eval "$ac_cv_use_protocol"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_PROTOCOL" = yes; then
5864 echo "$as_me:$LINENO: result: yes" >&5
5865echo "${ECHO_T}yes" >&6
5866 else
5867 echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6
5869 fi
5870
5871
5872 enablestring=
5873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5874echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5875 no_cache=0
5876 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5877if test "${enable_protocol_http+set}" = set; then
5878 enableval="$enable_protocol_http"
5879
5880 if test "$enableval" = yes; then
5881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5882 else
5883 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5884 fi
5885
5886else
5887
5888 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5889 if test "x$LINE" != x ; then
5890 eval "DEFAULT_$LINE"
5891 else
5892 no_cache=1
5893 fi
5894
5895 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5896
5897fi;
5898
5899 eval "$ac_cv_use_protocol_http"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5905 echo "$as_me:$LINENO: result: yes" >&5
5906echo "${ECHO_T}yes" >&6
5907 else
5908 echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
5910 fi
5911
5912
5913 enablestring=
5914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5915echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5916 no_cache=0
5917 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5918if test "${enable_protocol_ftp+set}" = set; then
5919 enableval="$enable_protocol_ftp"
5920
5921 if test "$enableval" = yes; then
5922 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5923 else
5924 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5925 fi
5926
5927else
5928
5929 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5937
5938fi;
5939
5940 eval "$ac_cv_use_protocol_ftp"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5946 echo "$as_me:$LINENO: result: yes" >&5
5947echo "${ECHO_T}yes" >&6
5948 else
5949 echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6
5951 fi
5952
5953
5954 enablestring=
5955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5956echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5957 no_cache=0
5958 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5959if test "${enable_protocol_file+set}" = set; then
5960 enableval="$enable_protocol_file"
5961
5962 if test "$enableval" = yes; then
5963 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5964 else
5965 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5966 fi
5967
5968else
5969
5970 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5971 if test "x$LINE" != x ; then
5972 eval "DEFAULT_$LINE"
5973 else
5974 no_cache=1
5975 fi
5976
5977 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5978
5979fi;
5980
5981 eval "$ac_cv_use_protocol_file"
5982 if test "$no_cache" != 1; then
5983 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5984 fi
5985
5986 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5987 echo "$as_me:$LINENO: result: yes" >&5
5988echo "${ECHO_T}yes" >&6
5989 else
5990 echo "$as_me:$LINENO: result: no" >&5
5991echo "${ECHO_T}no" >&6
5992 fi
5993
5994
5995
5996
5997
5998 enablestring=
5999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6000echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6001 no_cache=0
6002 # Check whether --enable-threads or --disable-threads was given.
6003if test "${enable_threads+set}" = set; then
6004 enableval="$enable_threads"
6005
6006 if test "$enableval" = yes; then
6007 ac_cv_use_threads='wxUSE_THREADS=yes'
6008 else
6009 ac_cv_use_threads='wxUSE_THREADS=no'
6010 fi
6011
6012else
6013
6014 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6022
6023fi;
6024
6025 eval "$ac_cv_use_threads"
6026 if test "$no_cache" != 1; then
6027 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6028 fi
6029
6030 if test "$wxUSE_THREADS" = yes; then
6031 echo "$as_me:$LINENO: result: yes" >&5
6032echo "${ECHO_T}yes" >&6
6033 else
6034 echo "$as_me:$LINENO: result: no" >&5
6035echo "${ECHO_T}no" >&6
6036 fi
6037
6038
6039if test "$wxUSE_GUI" = "yes"; then
6040
6041
6042
6043 enablestring=
6044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6045echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6046 no_cache=0
6047 # Check whether --enable-docview or --disable-docview was given.
6048if test "${enable_docview+set}" = set; then
6049 enableval="$enable_docview"
6050
6051 if test "$enableval" = yes; then
6052 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6053 else
6054 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6055 fi
6056
6057else
6058
6059 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6060 if test "x$LINE" != x ; then
6061 eval "DEFAULT_$LINE"
6062 else
6063 no_cache=1
6064 fi
6065
6066 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6067
6068fi;
6069
6070 eval "$ac_cv_use_docview"
6071 if test "$no_cache" != 1; then
6072 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6073 fi
6074
6075 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6076 echo "$as_me:$LINENO: result: yes" >&5
6077echo "${ECHO_T}yes" >&6
6078 else
6079 echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6
6081 fi
6082
6083
6084 enablestring=
6085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6086echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6087 no_cache=0
6088 # Check whether --enable-help or --disable-help was given.
6089if test "${enable_help+set}" = set; then
6090 enableval="$enable_help"
6091
6092 if test "$enableval" = yes; then
6093 ac_cv_use_help='wxUSE_HELP=yes'
6094 else
6095 ac_cv_use_help='wxUSE_HELP=no'
6096 fi
6097
6098else
6099
6100 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6101 if test "x$LINE" != x ; then
6102 eval "DEFAULT_$LINE"
6103 else
6104 no_cache=1
6105 fi
6106
6107 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6108
6109fi;
6110
6111 eval "$ac_cv_use_help"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_HELP" = yes; then
6117 echo "$as_me:$LINENO: result: yes" >&5
6118echo "${ECHO_T}yes" >&6
6119 else
6120 echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6
6122 fi
6123
6124
6125 enablestring=
6126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6127echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6128 no_cache=0
6129 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6130if test "${enable_mshtmlhelp+set}" = set; then
6131 enableval="$enable_mshtmlhelp"
6132
6133 if test "$enableval" = yes; then
6134 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6135 else
6136 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6137 fi
6138
6139else
6140
6141 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6142 if test "x$LINE" != x ; then
6143 eval "DEFAULT_$LINE"
6144 else
6145 no_cache=1
6146 fi
6147
6148 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6149
6150fi;
6151
6152 eval "$ac_cv_use_mshtmlhelp"
6153 if test "$no_cache" != 1; then
6154 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6155 fi
6156
6157 if test "$wxUSE_MS_HTML_HELP" = yes; then
6158 echo "$as_me:$LINENO: result: yes" >&5
6159echo "${ECHO_T}yes" >&6
6160 else
6161 echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6
6163 fi
6164
6165
6166 enablestring=
6167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6168echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6169 no_cache=0
6170 # Check whether --enable-html or --disable-html was given.
6171if test "${enable_html+set}" = set; then
6172 enableval="$enable_html"
6173
6174 if test "$enableval" = yes; then
6175 ac_cv_use_html='wxUSE_HTML=yes'
6176 else
6177 ac_cv_use_html='wxUSE_HTML=no'
6178 fi
6179
6180else
6181
6182 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6183 if test "x$LINE" != x ; then
6184 eval "DEFAULT_$LINE"
6185 else
6186 no_cache=1
6187 fi
6188
6189 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6190
6191fi;
6192
6193 eval "$ac_cv_use_html"
6194 if test "$no_cache" != 1; then
6195 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6196 fi
6197
6198 if test "$wxUSE_HTML" = yes; then
6199 echo "$as_me:$LINENO: result: yes" >&5
6200echo "${ECHO_T}yes" >&6
6201 else
6202 echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6
6204 fi
6205
6206
6207 enablestring=
6208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6209echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6210 no_cache=0
6211 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6212if test "${enable_htmlhelp+set}" = set; then
6213 enableval="$enable_htmlhelp"
6214
6215 if test "$enableval" = yes; then
6216 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6217 else
6218 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6219 fi
6220
6221else
6222
6223 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6224 if test "x$LINE" != x ; then
6225 eval "DEFAULT_$LINE"
6226 else
6227 no_cache=1
6228 fi
6229
6230 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6231
6232fi;
6233
6234 eval "$ac_cv_use_htmlhelp"
6235 if test "$no_cache" != 1; then
6236 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6237 fi
6238
6239 if test "$wxUSE_WXHTML_HELP" = yes; then
6240 echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6
6242 else
6243 echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6
6245 fi
6246
6247
6248 enablestring=
6249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6250echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6251 no_cache=0
6252 # Check whether --enable-constraints or --disable-constraints was given.
6253if test "${enable_constraints+set}" = set; then
6254 enableval="$enable_constraints"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6258 else
6259 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6260 fi
6261
6262else
6263
6264 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6272
6273fi;
6274
6275 eval "$ac_cv_use_constraints"
6276 if test "$no_cache" != 1; then
6277 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6278 fi
6279
6280 if test "$wxUSE_CONSTRAINTS" = yes; then
6281 echo "$as_me:$LINENO: result: yes" >&5
6282echo "${ECHO_T}yes" >&6
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286 fi
6287
6288
6289 enablestring=
6290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6291echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6292 no_cache=0
6293 # Check whether --enable-printarch or --disable-printarch was given.
6294if test "${enable_printarch+set}" = set; then
6295 enableval="$enable_printarch"
6296
6297 if test "$enableval" = yes; then
6298 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6299 else
6300 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6301 fi
6302
6303else
6304
6305 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6306 if test "x$LINE" != x ; then
6307 eval "DEFAULT_$LINE"
6308 else
6309 no_cache=1
6310 fi
6311
6312 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6313
6314fi;
6315
6316 eval "$ac_cv_use_printarch"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6322 echo "$as_me:$LINENO: result: yes" >&5
6323echo "${ECHO_T}yes" >&6
6324 else
6325 echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
6327 fi
6328
6329
6330 enablestring=
6331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6332echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6333 no_cache=0
6334 # Check whether --enable-mdi or --disable-mdi was given.
6335if test "${enable_mdi+set}" = set; then
6336 enableval="$enable_mdi"
6337
6338 if test "$enableval" = yes; then
6339 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6340 else
6341 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6342 fi
6343
6344else
6345
6346 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6347 if test "x$LINE" != x ; then
6348 eval "DEFAULT_$LINE"
6349 else
6350 no_cache=1
6351 fi
6352
6353 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6354
6355fi;
6356
6357 eval "$ac_cv_use_mdi"
6358 if test "$no_cache" != 1; then
6359 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6360 fi
6361
6362 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6363 echo "$as_me:$LINENO: result: yes" >&5
6364echo "${ECHO_T}yes" >&6
6365 else
6366 echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368 fi
6369
6370
6371 enablestring=
6372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6373echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6374 no_cache=0
6375 # Check whether --enable-loggui or --disable-loggui was given.
6376if test "${enable_loggui+set}" = set; then
6377 enableval="$enable_loggui"
6378
6379 if test "$enableval" = yes; then
6380 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6381 else
6382 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6383 fi
6384
6385else
6386
6387 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6388 if test "x$LINE" != x ; then
6389 eval "DEFAULT_$LINE"
6390 else
6391 no_cache=1
6392 fi
6393
6394 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6395
6396fi;
6397
6398 eval "$ac_cv_use_loggui"
6399 if test "$no_cache" != 1; then
6400 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6401 fi
6402
6403 if test "$wxUSE_LOGGUI" = yes; then
6404 echo "$as_me:$LINENO: result: yes" >&5
6405echo "${ECHO_T}yes" >&6
6406 else
6407 echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409 fi
6410
6411
6412 enablestring=
6413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6414echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6415 no_cache=0
6416 # Check whether --enable-logwin or --disable-logwin was given.
6417if test "${enable_logwin+set}" = set; then
6418 enableval="$enable_logwin"
6419
6420 if test "$enableval" = yes; then
6421 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6422 else
6423 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6424 fi
6425
6426else
6427
6428 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6436
6437fi;
6438
6439 eval "$ac_cv_use_logwin"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_LOGWINDOW" = yes; then
6445 echo "$as_me:$LINENO: result: yes" >&5
6446echo "${ECHO_T}yes" >&6
6447 else
6448 echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6
6450 fi
6451
6452
6453 enablestring=
6454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6455echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6456 no_cache=0
6457 # Check whether --enable-logdialog or --disable-logdialog was given.
6458if test "${enable_logdialog+set}" = set; then
6459 enableval="$enable_logdialog"
6460
6461 if test "$enableval" = yes; then
6462 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6463 else
6464 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6465 fi
6466
6467else
6468
6469 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6470 if test "x$LINE" != x ; then
6471 eval "DEFAULT_$LINE"
6472 else
6473 no_cache=1
6474 fi
6475
6476 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6477
6478fi;
6479
6480 eval "$ac_cv_use_logdialog"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_LOGDIALOG" = yes; then
6486 echo "$as_me:$LINENO: result: yes" >&5
6487echo "${ECHO_T}yes" >&6
6488 else
6489 echo "$as_me:$LINENO: result: no" >&5
6490echo "${ECHO_T}no" >&6
6491 fi
6492
6493
6494
6495 enablestring=
6496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6497echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6498 no_cache=0
6499 # Check whether --enable-postscript or --disable-postscript was given.
6500if test "${enable_postscript+set}" = set; then
6501 enableval="$enable_postscript"
6502
6503 if test "$enableval" = yes; then
6504 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6505 else
6506 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6507 fi
6508
6509else
6510
6511 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6512 if test "x$LINE" != x ; then
6513 eval "DEFAULT_$LINE"
6514 else
6515 no_cache=1
6516 fi
6517
6518 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6519
6520fi;
6521
6522 eval "$ac_cv_use_postscript"
6523 if test "$no_cache" != 1; then
6524 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6525 fi
6526
6527 if test "$wxUSE_POSTSCRIPT" = yes; then
6528 echo "$as_me:$LINENO: result: yes" >&5
6529echo "${ECHO_T}yes" >&6
6530 else
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
6533 fi
6534
6535
6536
6537
6538
6539 enablestring=
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6541echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6542 no_cache=0
6543 # Check whether --enable-prologio or --disable-prologio was given.
6544if test "${enable_prologio+set}" = set; then
6545 enableval="$enable_prologio"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6549 else
6550 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6551 fi
6552
6553else
6554
6555 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6563
6564fi;
6565
6566 eval "$ac_cv_use_prologio"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_PROLOGIO" = yes; then
6572 echo "$as_me:$LINENO: result: yes" >&5
6573echo "${ECHO_T}yes" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
6577 fi
6578
6579
6580 enablestring=
6581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6582echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6583 no_cache=0
6584 # Check whether --enable-resources or --disable-resources was given.
6585if test "${enable_resources+set}" = set; then
6586 enableval="$enable_resources"
6587
6588 if test "$enableval" = yes; then
6589 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6590 else
6591 ac_cv_use_resources='wxUSE_RESOURCES=no'
6592 fi
6593
6594else
6595
6596 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6597 if test "x$LINE" != x ; then
6598 eval "DEFAULT_$LINE"
6599 else
6600 no_cache=1
6601 fi
6602
6603 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6604
6605fi;
6606
6607 eval "$ac_cv_use_resources"
6608 if test "$no_cache" != 1; then
6609 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6610 fi
6611
6612 if test "$wxUSE_RESOURCES" = yes; then
6613 echo "$as_me:$LINENO: result: yes" >&5
6614echo "${ECHO_T}yes" >&6
6615 else
6616 echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6
6618 fi
6619
6620
6621
6622
6623 enablestring=
6624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6625echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6626 no_cache=0
6627 # Check whether --enable-clipboard or --disable-clipboard was given.
6628if test "${enable_clipboard+set}" = set; then
6629 enableval="$enable_clipboard"
6630
6631 if test "$enableval" = yes; then
6632 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6633 else
6634 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6635 fi
6636
6637else
6638
6639 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6647
6648fi;
6649
6650 eval "$ac_cv_use_clipboard"
6651 if test "$no_cache" != 1; then
6652 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6653 fi
6654
6655 if test "$wxUSE_CLIPBOARD" = yes; then
6656 echo "$as_me:$LINENO: result: yes" >&5
6657echo "${ECHO_T}yes" >&6
6658 else
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
6661 fi
6662
6663
6664 enablestring=
6665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6666echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6667 no_cache=0
6668 # Check whether --enable-dnd or --disable-dnd was given.
6669if test "${enable_dnd+set}" = set; then
6670 enableval="$enable_dnd"
6671
6672 if test "$enableval" = yes; then
6673 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6674 else
6675 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6676 fi
6677
6678else
6679
6680 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6688
6689fi;
6690
6691 eval "$ac_cv_use_dnd"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6697 echo "$as_me:$LINENO: result: yes" >&5
6698echo "${ECHO_T}yes" >&6
6699 else
6700 echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6
6702 fi
6703
6704
6705 enablestring=
6706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6707echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6708 no_cache=0
6709 # Check whether --enable-metafile or --disable-metafile was given.
6710if test "${enable_metafile+set}" = set; then
6711 enableval="$enable_metafile"
6712
6713 if test "$enableval" = yes; then
6714 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6715 else
6716 ac_cv_use_metafile='wxUSE_METAFILE=no'
6717 fi
6718
6719else
6720
6721 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6722 if test "x$LINE" != x ; then
6723 eval "DEFAULT_$LINE"
6724 else
6725 no_cache=1
6726 fi
6727
6728 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6729
6730fi;
6731
6732 eval "$ac_cv_use_metafile"
6733 if test "$no_cache" != 1; then
6734 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6735 fi
6736
6737 if test "$wxUSE_METAFILE" = yes; then
6738 echo "$as_me:$LINENO: result: yes" >&5
6739echo "${ECHO_T}yes" >&6
6740 else
6741 echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6
6743 fi
6744
6745
6746
6747
6748
6749 enablestring=
6750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6751echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6752 no_cache=0
6753 # Check whether --enable-controls or --disable-controls was given.
6754if test "${enable_controls+set}" = set; then
6755 enableval="$enable_controls"
6756
6757 if test "$enableval" = yes; then
6758 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6759 else
6760 ac_cv_use_controls='wxUSE_CONTROLS=no'
6761 fi
6762
6763else
6764
6765 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6773
6774fi;
6775
6776 eval "$ac_cv_use_controls"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_CONTROLS" = yes; then
6782 echo "$as_me:$LINENO: result: yes" >&5
6783echo "${ECHO_T}yes" >&6
6784 else
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
6787 fi
6788
6789
6790if test "$wxUSE_CONTROLS" = "yes"; then
6791 DEFAULT_wxUSE_ACCEL=yes
6792 DEFAULT_wxUSE_BMPBUTTON=yes
6793 DEFAULT_wxUSE_BUTTON=yes
6794 DEFAULT_wxUSE_CALCTRL=no
6795 DEFAULT_wxUSE_CARET=yes
6796 DEFAULT_wxUSE_COMBOBOX=yes
6797 DEFAULT_wxUSE_CHECKBOX=yes
6798 DEFAULT_wxUSE_CHECKLISTBOX=yes
6799 DEFAULT_wxUSE_CHOICE=yes
6800 DEFAULT_wxUSE_GAUGE=yes
6801 DEFAULT_wxUSE_GRID=yes
6802 DEFAULT_wxUSE_IMAGLIST=yes
6803 DEFAULT_wxUSE_LISTBOOK=yes
6804 DEFAULT_wxUSE_LISTBOX=yes
6805 DEFAULT_wxUSE_LISTCTRL=yes
6806 DEFAULT_wxUSE_NOTEBOOK=yes
6807 DEFAULT_wxUSE_RADIOBOX=yes
6808 DEFAULT_wxUSE_RADIOBTN=yes
6809 DEFAULT_wxUSE_SASH=yes
6810 DEFAULT_wxUSE_SCROLLBAR=yes
6811 DEFAULT_wxUSE_SLIDER=yes
6812 DEFAULT_wxUSE_SPINBTN=yes
6813 DEFAULT_wxUSE_SPINCTRL=yes
6814 DEFAULT_wxUSE_SPLITTER=yes
6815 DEFAULT_wxUSE_STATBMP=yes
6816 DEFAULT_wxUSE_STATBOX=yes
6817 DEFAULT_wxUSE_STATLINE=yes
6818 DEFAULT_wxUSE_STATUSBAR=yes
6819 DEFAULT_wxUSE_TAB_DIALOG=yes
6820 DEFAULT_wxUSE_TOGGLEBTN=yes
6821 DEFAULT_wxUSE_TOOLBAR=yes
6822 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6823 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6824 DEFAULT_wxUSE_TOOLTIPS=yes
6825 DEFAULT_wxUSE_TREECTRL=yes
6826 DEFAULT_wxUSE_POPUPWIN=yes
6827 DEFAULT_wxUSE_TIPWINDOW=yes
6828elif test "$wxUSE_CONTROLS" = "no"; then
6829 DEFAULT_wxUSE_ACCEL=no
6830 DEFAULT_wxUSE_BMPBUTTON=no
6831 DEFAULT_wxUSE_BUTTON=no
6832 DEFAULT_wxUSE_CALCTRL=no
6833 DEFAULT_wxUSE_CARET=no
6834 DEFAULT_wxUSE_COMBOBOX=no
6835 DEFAULT_wxUSE_CHECKBOX=no
6836 DEFAULT_wxUSE_CHECKLISTBOX=no
6837 DEFAULT_wxUSE_CHOICE=no
6838 DEFAULT_wxUSE_GAUGE=no
6839 DEFAULT_wxUSE_GRID=no
6840 DEFAULT_wxUSE_IMAGLIST=no
6841 DEFAULT_wxUSE_LISTBOOK=no
6842 DEFAULT_wxUSE_LISTBOX=no
6843 DEFAULT_wxUSE_LISTCTRL=no
6844 DEFAULT_wxUSE_NOTEBOOK=no
6845 DEFAULT_wxUSE_RADIOBOX=no
6846 DEFAULT_wxUSE_RADIOBTN=no
6847 DEFAULT_wxUSE_SASH=no
6848 DEFAULT_wxUSE_SCROLLBAR=no
6849 DEFAULT_wxUSE_SLIDER=no
6850 DEFAULT_wxUSE_SPINBTN=no
6851 DEFAULT_wxUSE_SPINCTRL=no
6852 DEFAULT_wxUSE_SPLITTER=no
6853 DEFAULT_wxUSE_STATBMP=no
6854 DEFAULT_wxUSE_STATBOX=no
6855 DEFAULT_wxUSE_STATLINE=no
6856 DEFAULT_wxUSE_STATUSBAR=no
6857 DEFAULT_wxUSE_TAB_DIALOG=no
6858 DEFAULT_wxUSE_TOGGLEBTN=no
6859 DEFAULT_wxUSE_TOOLBAR=no
6860 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6861 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6862 DEFAULT_wxUSE_TOOLTIPS=no
6863 DEFAULT_wxUSE_TREECTRL=no
6864 DEFAULT_wxUSE_POPUPWIN=no
6865 DEFAULT_wxUSE_TIPWINDOW=no
6866fi
6867
6868## FIXME: This is a blatant hack
6869if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6870 wxUSE_PRINTING_ARCHITECTURE=no
6871 wxUSE_DRAG_AND_DROP=no
6872 # Generic notebook requires tab dialog
6873 DEFAULT_wxUSE_TABDIALOG=yes
6874 DEFAULT_wxUSE_SCROLLBAR=no
6875 DEFAULT_wxUSE_TOOLTIPS=no
6876 DEFAULT_wxUSE_DRAGIMAGE=no
6877fi
6878
6879
6880 enablestring=
6881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6882echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6883 no_cache=0
6884 # Check whether --enable-accel or --disable-accel was given.
6885if test "${enable_accel+set}" = set; then
6886 enableval="$enable_accel"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_accel='wxUSE_ACCEL=yes'
6890 else
6891 ac_cv_use_accel='wxUSE_ACCEL=no'
6892 fi
6893
6894else
6895
6896 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6904
6905fi;
6906
6907 eval "$ac_cv_use_accel"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_ACCEL" = yes; then
6913 echo "$as_me:$LINENO: result: yes" >&5
6914echo "${ECHO_T}yes" >&6
6915 else
6916 echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
6918 fi
6919
6920
6921 enablestring=
6922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6923echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6924 no_cache=0
6925 # Check whether --enable-button or --disable-button was given.
6926if test "${enable_button+set}" = set; then
6927 enableval="$enable_button"
6928
6929 if test "$enableval" = yes; then
6930 ac_cv_use_button='wxUSE_BUTTON=yes'
6931 else
6932 ac_cv_use_button='wxUSE_BUTTON=no'
6933 fi
6934
6935else
6936
6937 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6945
6946fi;
6947
6948 eval "$ac_cv_use_button"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_BUTTON" = yes; then
6954 echo "$as_me:$LINENO: result: yes" >&5
6955echo "${ECHO_T}yes" >&6
6956 else
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
6959 fi
6960
6961
6962 enablestring=
6963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6964echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6965 no_cache=0
6966 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6967if test "${enable_bmpbutton+set}" = set; then
6968 enableval="$enable_bmpbutton"
6969
6970 if test "$enableval" = yes; then
6971 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6972 else
6973 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6974 fi
6975
6976else
6977
6978 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6986
6987fi;
6988
6989 eval "$ac_cv_use_bmpbutton"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_BMPBUTTON" = yes; then
6995 echo "$as_me:$LINENO: result: yes" >&5
6996echo "${ECHO_T}yes" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6
7000 fi
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-calendar or --disable-calendar was given.
7008if test "${enable_calendar+set}" = set; then
7009 enableval="$enable_calendar"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7013 else
7014 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7027
7028fi;
7029
7030 eval "$ac_cv_use_calendar"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_CALCTRL" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-caret or --disable-caret was given.
7049if test "${enable_caret+set}" = set; then
7050 enableval="$enable_caret"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_caret='wxUSE_CARET=yes'
7054 else
7055 ac_cv_use_caret='wxUSE_CARET=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7068
7069fi;
7070
7071 eval "$ac_cv_use_caret"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_CARET" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085 enablestring=
7086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7087echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7088 no_cache=0
7089 # Check whether --enable-checkbox or --disable-checkbox was given.
7090if test "${enable_checkbox+set}" = set; then
7091 enableval="$enable_checkbox"
7092
7093 if test "$enableval" = yes; then
7094 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7095 else
7096 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7097 fi
7098
7099else
7100
7101 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7102 if test "x$LINE" != x ; then
7103 eval "DEFAULT_$LINE"
7104 else
7105 no_cache=1
7106 fi
7107
7108 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7109
7110fi;
7111
7112 eval "$ac_cv_use_checkbox"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_CHECKBOX" = yes; then
7118 echo "$as_me:$LINENO: result: yes" >&5
7119echo "${ECHO_T}yes" >&6
7120 else
7121 echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6
7123 fi
7124
7125
7126 enablestring=
7127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7128echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7129 no_cache=0
7130 # Check whether --enable-checklst or --disable-checklst was given.
7131if test "${enable_checklst+set}" = set; then
7132 enableval="$enable_checklst"
7133
7134 if test "$enableval" = yes; then
7135 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7136 else
7137 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7138 fi
7139
7140else
7141
7142 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7143 if test "x$LINE" != x ; then
7144 eval "DEFAULT_$LINE"
7145 else
7146 no_cache=1
7147 fi
7148
7149 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7150
7151fi;
7152
7153 eval "$ac_cv_use_checklst"
7154 if test "$no_cache" != 1; then
7155 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7156 fi
7157
7158 if test "$wxUSE_CHECKLST" = yes; then
7159 echo "$as_me:$LINENO: result: yes" >&5
7160echo "${ECHO_T}yes" >&6
7161 else
7162 echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6
7164 fi
7165
7166
7167 enablestring=
7168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7169echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7170 no_cache=0
7171 # Check whether --enable-choice or --disable-choice was given.
7172if test "${enable_choice+set}" = set; then
7173 enableval="$enable_choice"
7174
7175 if test "$enableval" = yes; then
7176 ac_cv_use_choice='wxUSE_CHOICE=yes'
7177 else
7178 ac_cv_use_choice='wxUSE_CHOICE=no'
7179 fi
7180
7181else
7182
7183 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7184 if test "x$LINE" != x ; then
7185 eval "DEFAULT_$LINE"
7186 else
7187 no_cache=1
7188 fi
7189
7190 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7191
7192fi;
7193
7194 eval "$ac_cv_use_choice"
7195 if test "$no_cache" != 1; then
7196 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7197 fi
7198
7199 if test "$wxUSE_CHOICE" = yes; then
7200 echo "$as_me:$LINENO: result: yes" >&5
7201echo "${ECHO_T}yes" >&6
7202 else
7203 echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6
7205 fi
7206
7207
7208 enablestring=
7209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7210echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7211 no_cache=0
7212 # Check whether --enable-combobox or --disable-combobox was given.
7213if test "${enable_combobox+set}" = set; then
7214 enableval="$enable_combobox"
7215
7216 if test "$enableval" = yes; then
7217 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7218 else
7219 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7220 fi
7221
7222else
7223
7224 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7232
7233fi;
7234
7235 eval "$ac_cv_use_combobox"
7236 if test "$no_cache" != 1; then
7237 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7238 fi
7239
7240 if test "$wxUSE_COMBOBOX" = yes; then
7241 echo "$as_me:$LINENO: result: yes" >&5
7242echo "${ECHO_T}yes" >&6
7243 else
7244 echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6
7246 fi
7247
7248
7249 enablestring=
7250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7251echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7252 no_cache=0
7253 # Check whether --enable-display or --disable-display was given.
7254if test "${enable_display+set}" = set; then
7255 enableval="$enable_display"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_display='wxUSE_DISPLAY=yes'
7259 else
7260 ac_cv_use_display='wxUSE_DISPLAY=no'
7261 fi
7262
7263else
7264
7265 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7273
7274fi;
7275
7276 eval "$ac_cv_use_display"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_DISPLAY" = yes; then
7282 echo "$as_me:$LINENO: result: yes" >&5
7283echo "${ECHO_T}yes" >&6
7284 else
7285 echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6
7287 fi
7288
7289
7290 enablestring=
7291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7292echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7293 no_cache=0
7294 # Check whether --enable-gauge or --disable-gauge was given.
7295if test "${enable_gauge+set}" = set; then
7296 enableval="$enable_gauge"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7300 else
7301 ac_cv_use_gauge='wxUSE_GAUGE=no'
7302 fi
7303
7304else
7305
7306 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7314
7315fi;
7316
7317 eval "$ac_cv_use_gauge"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_GAUGE" = yes; then
7323 echo "$as_me:$LINENO: result: yes" >&5
7324echo "${ECHO_T}yes" >&6
7325 else
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
7328 fi
7329
7330
7331 enablestring=
7332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7333echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7334 no_cache=0
7335 # Check whether --enable-grid or --disable-grid was given.
7336if test "${enable_grid+set}" = set; then
7337 enableval="$enable_grid"
7338
7339 if test "$enableval" = yes; then
7340 ac_cv_use_grid='wxUSE_GRID=yes'
7341 else
7342 ac_cv_use_grid='wxUSE_GRID=no'
7343 fi
7344
7345else
7346
7347 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7348 if test "x$LINE" != x ; then
7349 eval "DEFAULT_$LINE"
7350 else
7351 no_cache=1
7352 fi
7353
7354 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7355
7356fi;
7357
7358 eval "$ac_cv_use_grid"
7359 if test "$no_cache" != 1; then
7360 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7361 fi
7362
7363 if test "$wxUSE_GRID" = yes; then
7364 echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6
7366 else
7367 echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6
7369 fi
7370
7371
7372 enablestring=
7373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7374echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7375 no_cache=0
7376 # Check whether --enable-imaglist or --disable-imaglist was given.
7377if test "${enable_imaglist+set}" = set; then
7378 enableval="$enable_imaglist"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7382 else
7383 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7396
7397fi;
7398
7399 eval "$ac_cv_use_imaglist"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_IMAGLIST" = yes; then
7405 echo "$as_me:$LINENO: result: yes" >&5
7406echo "${ECHO_T}yes" >&6
7407 else
7408 echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6
7410 fi
7411
7412
7413 enablestring=
7414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7415echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7416 no_cache=0
7417 # Check whether --enable-listbook or --disable-listbook was given.
7418if test "${enable_listbook+set}" = set; then
7419 enableval="$enable_listbook"
7420
7421 if test "$enableval" = yes; then
7422 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7423 else
7424 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7425 fi
7426
7427else
7428
7429 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7437
7438fi;
7439
7440 eval "$ac_cv_use_listbook"
7441 if test "$no_cache" != 1; then
7442 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7443 fi
7444
7445 if test "$wxUSE_LISTBOOK" = yes; then
7446 echo "$as_me:$LINENO: result: yes" >&5
7447echo "${ECHO_T}yes" >&6
7448 else
7449 echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
7451 fi
7452
7453
7454 enablestring=
7455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7456echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7457 no_cache=0
7458 # Check whether --enable-listbox or --disable-listbox was given.
7459if test "${enable_listbox+set}" = set; then
7460 enableval="$enable_listbox"
7461
7462 if test "$enableval" = yes; then
7463 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7464 else
7465 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7466 fi
7467
7468else
7469
7470 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7478
7479fi;
7480
7481 eval "$ac_cv_use_listbox"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_LISTBOX" = yes; then
7487 echo "$as_me:$LINENO: result: yes" >&5
7488echo "${ECHO_T}yes" >&6
7489 else
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
7492 fi
7493
7494
7495 enablestring=
7496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7497echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7498 no_cache=0
7499 # Check whether --enable-listctrl or --disable-listctrl was given.
7500if test "${enable_listctrl+set}" = set; then
7501 enableval="$enable_listctrl"
7502
7503 if test "$enableval" = yes; then
7504 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7505 else
7506 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7507 fi
7508
7509else
7510
7511 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7519
7520fi;
7521
7522 eval "$ac_cv_use_listctrl"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_LISTCTRL" = yes; then
7528 echo "$as_me:$LINENO: result: yes" >&5
7529echo "${ECHO_T}yes" >&6
7530 else
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
7533 fi
7534
7535
7536 enablestring=
7537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7538echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7539 no_cache=0
7540 # Check whether --enable-notebook or --disable-notebook was given.
7541if test "${enable_notebook+set}" = set; then
7542 enableval="$enable_notebook"
7543
7544 if test "$enableval" = yes; then
7545 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7546 else
7547 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7548 fi
7549
7550else
7551
7552 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7553 if test "x$LINE" != x ; then
7554 eval "DEFAULT_$LINE"
7555 else
7556 no_cache=1
7557 fi
7558
7559 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7560
7561fi;
7562
7563 eval "$ac_cv_use_notebook"
7564 if test "$no_cache" != 1; then
7565 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7566 fi
7567
7568 if test "$wxUSE_NOTEBOOK" = yes; then
7569 echo "$as_me:$LINENO: result: yes" >&5
7570echo "${ECHO_T}yes" >&6
7571 else
7572 echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574 fi
7575
7576
7577 enablestring=
7578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7579echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7580 no_cache=0
7581 # Check whether --enable-radiobox or --disable-radiobox was given.
7582if test "${enable_radiobox+set}" = set; then
7583 enableval="$enable_radiobox"
7584
7585 if test "$enableval" = yes; then
7586 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7587 else
7588 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7589 fi
7590
7591else
7592
7593 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7594 if test "x$LINE" != x ; then
7595 eval "DEFAULT_$LINE"
7596 else
7597 no_cache=1
7598 fi
7599
7600 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7601
7602fi;
7603
7604 eval "$ac_cv_use_radiobox"
7605 if test "$no_cache" != 1; then
7606 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7607 fi
7608
7609 if test "$wxUSE_RADIOBOX" = yes; then
7610 echo "$as_me:$LINENO: result: yes" >&5
7611echo "${ECHO_T}yes" >&6
7612 else
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615 fi
7616
7617
7618 enablestring=
7619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7620echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7621 no_cache=0
7622 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7623if test "${enable_radiobtn+set}" = set; then
7624 enableval="$enable_radiobtn"
7625
7626 if test "$enableval" = yes; then
7627 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7628 else
7629 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7630 fi
7631
7632else
7633
7634 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7635 if test "x$LINE" != x ; then
7636 eval "DEFAULT_$LINE"
7637 else
7638 no_cache=1
7639 fi
7640
7641 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7642
7643fi;
7644
7645 eval "$ac_cv_use_radiobtn"
7646 if test "$no_cache" != 1; then
7647 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7648 fi
7649
7650 if test "$wxUSE_RADIOBTN" = yes; then
7651 echo "$as_me:$LINENO: result: yes" >&5
7652echo "${ECHO_T}yes" >&6
7653 else
7654 echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
7656 fi
7657
7658
7659 enablestring=
7660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7661echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7662 no_cache=0
7663 # Check whether --enable-sash or --disable-sash was given.
7664if test "${enable_sash+set}" = set; then
7665 enableval="$enable_sash"
7666
7667 if test "$enableval" = yes; then
7668 ac_cv_use_sash='wxUSE_SASH=yes'
7669 else
7670 ac_cv_use_sash='wxUSE_SASH=no'
7671 fi
7672
7673else
7674
7675 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7676 if test "x$LINE" != x ; then
7677 eval "DEFAULT_$LINE"
7678 else
7679 no_cache=1
7680 fi
7681
7682 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7683
7684fi;
7685
7686 eval "$ac_cv_use_sash"
7687 if test "$no_cache" != 1; then
7688 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7689 fi
7690
7691 if test "$wxUSE_SASH" = yes; then
7692 echo "$as_me:$LINENO: result: yes" >&5
7693echo "${ECHO_T}yes" >&6
7694 else
7695 echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6
7697 fi
7698
7699
7700 enablestring=
7701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7702echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7703 no_cache=0
7704 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7705if test "${enable_scrollbar+set}" = set; then
7706 enableval="$enable_scrollbar"
7707
7708 if test "$enableval" = yes; then
7709 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7710 else
7711 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7712 fi
7713
7714else
7715
7716 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7717 if test "x$LINE" != x ; then
7718 eval "DEFAULT_$LINE"
7719 else
7720 no_cache=1
7721 fi
7722
7723 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7724
7725fi;
7726
7727 eval "$ac_cv_use_scrollbar"
7728 if test "$no_cache" != 1; then
7729 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7730 fi
7731
7732 if test "$wxUSE_SCROLLBAR" = yes; then
7733 echo "$as_me:$LINENO: result: yes" >&5
7734echo "${ECHO_T}yes" >&6
7735 else
7736 echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6
7738 fi
7739
7740
7741 enablestring=
7742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7743echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7744 no_cache=0
7745 # Check whether --enable-slider or --disable-slider was given.
7746if test "${enable_slider+set}" = set; then
7747 enableval="$enable_slider"
7748
7749 if test "$enableval" = yes; then
7750 ac_cv_use_slider='wxUSE_SLIDER=yes'
7751 else
7752 ac_cv_use_slider='wxUSE_SLIDER=no'
7753 fi
7754
7755else
7756
7757 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7758 if test "x$LINE" != x ; then
7759 eval "DEFAULT_$LINE"
7760 else
7761 no_cache=1
7762 fi
7763
7764 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7765
7766fi;
7767
7768 eval "$ac_cv_use_slider"
7769 if test "$no_cache" != 1; then
7770 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7771 fi
7772
7773 if test "$wxUSE_SLIDER" = yes; then
7774 echo "$as_me:$LINENO: result: yes" >&5
7775echo "${ECHO_T}yes" >&6
7776 else
7777 echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6
7779 fi
7780
7781
7782 enablestring=
7783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7784echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7785 no_cache=0
7786 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7787if test "${enable_spinbtn+set}" = set; then
7788 enableval="$enable_spinbtn"
7789
7790 if test "$enableval" = yes; then
7791 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7792 else
7793 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7794 fi
7795
7796else
7797
7798 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7799 if test "x$LINE" != x ; then
7800 eval "DEFAULT_$LINE"
7801 else
7802 no_cache=1
7803 fi
7804
7805 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7806
7807fi;
7808
7809 eval "$ac_cv_use_spinbtn"
7810 if test "$no_cache" != 1; then
7811 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7812 fi
7813
7814 if test "$wxUSE_SPINBTN" = yes; then
7815 echo "$as_me:$LINENO: result: yes" >&5
7816echo "${ECHO_T}yes" >&6
7817 else
7818 echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6
7820 fi
7821
7822
7823 enablestring=
7824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7825echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7826 no_cache=0
7827 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7828if test "${enable_spinctrl+set}" = set; then
7829 enableval="$enable_spinctrl"
7830
7831 if test "$enableval" = yes; then
7832 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7833 else
7834 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7835 fi
7836
7837else
7838
7839 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7847
7848fi;
7849
7850 eval "$ac_cv_use_spinctrl"
7851 if test "$no_cache" != 1; then
7852 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7853 fi
7854
7855 if test "$wxUSE_SPINCTRL" = yes; then
7856 echo "$as_me:$LINENO: result: yes" >&5
7857echo "${ECHO_T}yes" >&6
7858 else
7859 echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
7861 fi
7862
7863
7864 enablestring=
7865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7866echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7867 no_cache=0
7868 # Check whether --enable-splitter or --disable-splitter was given.
7869if test "${enable_splitter+set}" = set; then
7870 enableval="$enable_splitter"
7871
7872 if test "$enableval" = yes; then
7873 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7874 else
7875 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7876 fi
7877
7878else
7879
7880 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7888
7889fi;
7890
7891 eval "$ac_cv_use_splitter"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_SPLITTER" = yes; then
7897 echo "$as_me:$LINENO: result: yes" >&5
7898echo "${ECHO_T}yes" >&6
7899 else
7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
7902 fi
7903
7904
7905 enablestring=
7906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7907echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7908 no_cache=0
7909 # Check whether --enable-statbmp or --disable-statbmp was given.
7910if test "${enable_statbmp+set}" = set; then
7911 enableval="$enable_statbmp"
7912
7913 if test "$enableval" = yes; then
7914 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7915 else
7916 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7917 fi
7918
7919else
7920
7921 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7929
7930fi;
7931
7932 eval "$ac_cv_use_statbmp"
7933 if test "$no_cache" != 1; then
7934 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7935 fi
7936
7937 if test "$wxUSE_STATBMP" = yes; then
7938 echo "$as_me:$LINENO: result: yes" >&5
7939echo "${ECHO_T}yes" >&6
7940 else
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943 fi
7944
7945
7946 enablestring=
7947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7948echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7949 no_cache=0
7950 # Check whether --enable-statbox or --disable-statbox was given.
7951if test "${enable_statbox+set}" = set; then
7952 enableval="$enable_statbox"
7953
7954 if test "$enableval" = yes; then
7955 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7956 else
7957 ac_cv_use_statbox='wxUSE_STATBOX=no'
7958 fi
7959
7960else
7961
7962 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7963 if test "x$LINE" != x ; then
7964 eval "DEFAULT_$LINE"
7965 else
7966 no_cache=1
7967 fi
7968
7969 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7970
7971fi;
7972
7973 eval "$ac_cv_use_statbox"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_STATBOX" = yes; then
7979 echo "$as_me:$LINENO: result: yes" >&5
7980echo "${ECHO_T}yes" >&6
7981 else
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984 fi
7985
7986
7987 enablestring=
7988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7989echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7990 no_cache=0
7991 # Check whether --enable-statline or --disable-statline was given.
7992if test "${enable_statline+set}" = set; then
7993 enableval="$enable_statline"
7994
7995 if test "$enableval" = yes; then
7996 ac_cv_use_statline='wxUSE_STATLINE=yes'
7997 else
7998 ac_cv_use_statline='wxUSE_STATLINE=no'
7999 fi
8000
8001else
8002
8003 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8011
8012fi;
8013
8014 eval "$ac_cv_use_statline"
8015 if test "$no_cache" != 1; then
8016 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8017 fi
8018
8019 if test "$wxUSE_STATLINE" = yes; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6
8022 else
8023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
8025 fi
8026
8027
8028 enablestring=
8029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8030echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8031 no_cache=0
8032 # Check whether --enable-stattext or --disable-stattext was given.
8033if test "${enable_stattext+set}" = set; then
8034 enableval="$enable_stattext"
8035
8036 if test "$enableval" = yes; then
8037 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8038 else
8039 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8040 fi
8041
8042else
8043
8044 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8045 if test "x$LINE" != x ; then
8046 eval "DEFAULT_$LINE"
8047 else
8048 no_cache=1
8049 fi
8050
8051 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8052
8053fi;
8054
8055 eval "$ac_cv_use_stattext"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_STATTEXT" = yes; then
8061 echo "$as_me:$LINENO: result: yes" >&5
8062echo "${ECHO_T}yes" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6
8066 fi
8067
8068
8069 enablestring=
8070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8071echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8072 no_cache=0
8073 # Check whether --enable-statusbar or --disable-statusbar was given.
8074if test "${enable_statusbar+set}" = set; then
8075 enableval="$enable_statusbar"
8076
8077 if test "$enableval" = yes; then
8078 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8079 else
8080 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8081 fi
8082
8083else
8084
8085 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8093
8094fi;
8095
8096 eval "$ac_cv_use_statusbar"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_STATUSBAR" = yes; then
8102 echo "$as_me:$LINENO: result: yes" >&5
8103echo "${ECHO_T}yes" >&6
8104 else
8105 echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6
8107 fi
8108
8109
8110 enablestring=
8111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8112echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8113 no_cache=0
8114 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8115if test "${enable_tabdialog+set}" = set; then
8116 enableval="$enable_tabdialog"
8117
8118 if test "$enableval" = yes; then
8119 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8120 else
8121 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8122 fi
8123
8124else
8125
8126 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8134
8135fi;
8136
8137 eval "$ac_cv_use_tabdialog"
8138 if test "$no_cache" != 1; then
8139 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8140 fi
8141
8142 if test "$wxUSE_TABDIALOG" = yes; then
8143 echo "$as_me:$LINENO: result: yes" >&5
8144echo "${ECHO_T}yes" >&6
8145 else
8146 echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
8148 fi
8149
8150
8151 enablestring=
8152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8153echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8154 no_cache=0
8155 # Check whether --enable-textctrl or --disable-textctrl was given.
8156if test "${enable_textctrl+set}" = set; then
8157 enableval="$enable_textctrl"
8158
8159 if test "$enableval" = yes; then
8160 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8161 else
8162 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8163 fi
8164
8165else
8166
8167 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8168 if test "x$LINE" != x ; then
8169 eval "DEFAULT_$LINE"
8170 else
8171 no_cache=1
8172 fi
8173
8174 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8175
8176fi;
8177
8178 eval "$ac_cv_use_textctrl"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_TEXTCTRL" = yes; then
8184 echo "$as_me:$LINENO: result: yes" >&5
8185echo "${ECHO_T}yes" >&6
8186 else
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
8189 fi
8190
8191
8192 enablestring=
8193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8194echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8195 no_cache=0
8196 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8197if test "${enable_togglebtn+set}" = set; then
8198 enableval="$enable_togglebtn"
8199
8200 if test "$enableval" = yes; then
8201 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8202 else
8203 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8204 fi
8205
8206else
8207
8208 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8216
8217fi;
8218
8219 eval "$ac_cv_use_togglebtn"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_TOGGLEBTN" = yes; then
8225 echo "$as_me:$LINENO: result: yes" >&5
8226echo "${ECHO_T}yes" >&6
8227 else
8228 echo "$as_me:$LINENO: result: no" >&5
8229echo "${ECHO_T}no" >&6
8230 fi
8231
8232
8233 enablestring=
8234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8235echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8236 no_cache=0
8237 # Check whether --enable-toolbar or --disable-toolbar was given.
8238if test "${enable_toolbar+set}" = set; then
8239 enableval="$enable_toolbar"
8240
8241 if test "$enableval" = yes; then
8242 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8243 else
8244 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8245 fi
8246
8247else
8248
8249 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8257
8258fi;
8259
8260 eval "$ac_cv_use_toolbar"
8261 if test "$no_cache" != 1; then
8262 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8263 fi
8264
8265 if test "$wxUSE_TOOLBAR" = yes; then
8266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
8268 else
8269 echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
8271 fi
8272
8273
8274 enablestring=
8275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8276echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8277 no_cache=0
8278 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8279if test "${enable_tbarnative+set}" = set; then
8280 enableval="$enable_tbarnative"
8281
8282 if test "$enableval" = yes; then
8283 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8284 else
8285 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8286 fi
8287
8288else
8289
8290 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8291 if test "x$LINE" != x ; then
8292 eval "DEFAULT_$LINE"
8293 else
8294 no_cache=1
8295 fi
8296
8297 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8298
8299fi;
8300
8301 eval "$ac_cv_use_tbarnative"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
8309 else
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
8312 fi
8313
8314
8315 enablestring=
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8317echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8318 no_cache=0
8319 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8320if test "${enable_tbarsmpl+set}" = set; then
8321 enableval="$enable_tbarsmpl"
8322
8323 if test "$enableval" = yes; then
8324 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8325 else
8326 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8327 fi
8328
8329else
8330
8331 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8339
8340fi;
8341
8342 eval "$ac_cv_use_tbarsmpl"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
8350 else
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
8353 fi
8354
8355
8356 enablestring=
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8358echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8359 no_cache=0
8360 # Check whether --enable-treectrl or --disable-treectrl was given.
8361if test "${enable_treectrl+set}" = set; then
8362 enableval="$enable_treectrl"
8363
8364 if test "$enableval" = yes; then
8365 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8366 else
8367 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8368 fi
8369
8370else
8371
8372 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
8379 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8380
8381fi;
8382
8383 eval "$ac_cv_use_treectrl"
8384 if test "$no_cache" != 1; then
8385 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8386 fi
8387
8388 if test "$wxUSE_TREECTRL" = yes; then
8389 echo "$as_me:$LINENO: result: yes" >&5
8390echo "${ECHO_T}yes" >&6
8391 else
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
8394 fi
8395
8396
8397 enablestring=
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8399echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8400 no_cache=0
8401 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8402if test "${enable_tipwindow+set}" = set; then
8403 enableval="$enable_tipwindow"
8404
8405 if test "$enableval" = yes; then
8406 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8407 else
8408 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8409 fi
8410
8411else
8412
8413 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8421
8422fi;
8423
8424 eval "$ac_cv_use_tipwindow"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_TIPWINDOW" = yes; then
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
8432 else
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
8435 fi
8436
8437
8438 enablestring=
8439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8440echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8441 no_cache=0
8442 # Check whether --enable-popupwin or --disable-popupwin was given.
8443if test "${enable_popupwin+set}" = set; then
8444 enableval="$enable_popupwin"
8445
8446 if test "$enableval" = yes; then
8447 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8448 else
8449 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8450 fi
8451
8452else
8453
8454 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8455 if test "x$LINE" != x ; then
8456 eval "DEFAULT_$LINE"
8457 else
8458 no_cache=1
8459 fi
8460
8461 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8462
8463fi;
8464
8465 eval "$ac_cv_use_popupwin"
8466 if test "$no_cache" != 1; then
8467 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8468 fi
8469
8470 if test "$wxUSE_POPUPWIN" = yes; then
8471 echo "$as_me:$LINENO: result: yes" >&5
8472echo "${ECHO_T}yes" >&6
8473 else
8474 echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
8476 fi
8477
8478
8479
8480
8481 enablestring=
8482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8483echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8484 no_cache=0
8485 # Check whether --enable-commondlg or --disable-commondlg was given.
8486if test "${enable_commondlg+set}" = set; then
8487 enableval="$enable_commondlg"
8488
8489 if test "$enableval" = yes; then
8490 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8491 else
8492 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8493 fi
8494
8495else
8496
8497 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8498 if test "x$LINE" != x ; then
8499 eval "DEFAULT_$LINE"
8500 else
8501 no_cache=1
8502 fi
8503
8504 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8505
8506fi;
8507
8508 eval "$ac_cv_use_commondlg"
8509 if test "$no_cache" != 1; then
8510 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8511 fi
8512
8513 if test "$wxUSE_COMMONDLGS" = yes; then
8514 echo "$as_me:$LINENO: result: yes" >&5
8515echo "${ECHO_T}yes" >&6
8516 else
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
8519 fi
8520
8521
8522 enablestring=
8523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8524echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8525 no_cache=0
8526 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8527if test "${enable_choicedlg+set}" = set; then
8528 enableval="$enable_choicedlg"
8529
8530 if test "$enableval" = yes; then
8531 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8532 else
8533 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8534 fi
8535
8536else
8537
8538 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8539 if test "x$LINE" != x ; then
8540 eval "DEFAULT_$LINE"
8541 else
8542 no_cache=1
8543 fi
8544
8545 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8546
8547fi;
8548
8549 eval "$ac_cv_use_choicedlg"
8550 if test "$no_cache" != 1; then
8551 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8552 fi
8553
8554 if test "$wxUSE_CHOICEDLG" = yes; then
8555 echo "$as_me:$LINENO: result: yes" >&5
8556echo "${ECHO_T}yes" >&6
8557 else
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
8560 fi
8561
8562
8563 enablestring=
8564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8565echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8566 no_cache=0
8567 # Check whether --enable-coldlg or --disable-coldlg was given.
8568if test "${enable_coldlg+set}" = set; then
8569 enableval="$enable_coldlg"
8570
8571 if test "$enableval" = yes; then
8572 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8573 else
8574 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8575 fi
8576
8577else
8578
8579 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8587
8588fi;
8589
8590 eval "$ac_cv_use_coldlg"
8591 if test "$no_cache" != 1; then
8592 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8593 fi
8594
8595 if test "$wxUSE_COLOURDLG" = yes; then
8596 echo "$as_me:$LINENO: result: yes" >&5
8597echo "${ECHO_T}yes" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
8601 fi
8602
8603
8604 enablestring=
8605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8606echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8607 no_cache=0
8608 # Check whether --enable-filedlg or --disable-filedlg was given.
8609if test "${enable_filedlg+set}" = set; then
8610 enableval="$enable_filedlg"
8611
8612 if test "$enableval" = yes; then
8613 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8614 else
8615 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8616 fi
8617
8618else
8619
8620 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8621 if test "x$LINE" != x ; then
8622 eval "DEFAULT_$LINE"
8623 else
8624 no_cache=1
8625 fi
8626
8627 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8628
8629fi;
8630
8631 eval "$ac_cv_use_filedlg"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_FILEDLG" = yes; then
8637 echo "$as_me:$LINENO: result: yes" >&5
8638echo "${ECHO_T}yes" >&6
8639 else
8640 echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6
8642 fi
8643
8644
8645 enablestring=
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8647echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8648 no_cache=0
8649 # Check whether --enable-finddlg or --disable-finddlg was given.
8650if test "${enable_finddlg+set}" = set; then
8651 enableval="$enable_finddlg"
8652
8653 if test "$enableval" = yes; then
8654 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8655 else
8656 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8657 fi
8658
8659else
8660
8661 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8669
8670fi;
8671
8672 eval "$ac_cv_use_finddlg"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_FINDREPLDLG" = yes; then
8678 echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
8680 else
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
8683 fi
8684
8685
8686 enablestring=
8687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8688echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8689 no_cache=0
8690 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8691if test "${enable_fontdlg+set}" = set; then
8692 enableval="$enable_fontdlg"
8693
8694 if test "$enableval" = yes; then
8695 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8696 else
8697 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8698 fi
8699
8700else
8701
8702 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8703 if test "x$LINE" != x ; then
8704 eval "DEFAULT_$LINE"
8705 else
8706 no_cache=1
8707 fi
8708
8709 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8710
8711fi;
8712
8713 eval "$ac_cv_use_fontdlg"
8714 if test "$no_cache" != 1; then
8715 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8716 fi
8717
8718 if test "$wxUSE_FONTDLG" = yes; then
8719 echo "$as_me:$LINENO: result: yes" >&5
8720echo "${ECHO_T}yes" >&6
8721 else
8722 echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
8724 fi
8725
8726
8727 enablestring=
8728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8729echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8730 no_cache=0
8731 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8732if test "${enable_dirdlg+set}" = set; then
8733 enableval="$enable_dirdlg"
8734
8735 if test "$enableval" = yes; then
8736 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8737 else
8738 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8739 fi
8740
8741else
8742
8743 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8744 if test "x$LINE" != x ; then
8745 eval "DEFAULT_$LINE"
8746 else
8747 no_cache=1
8748 fi
8749
8750 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8751
8752fi;
8753
8754 eval "$ac_cv_use_dirdlg"
8755 if test "$no_cache" != 1; then
8756 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8757 fi
8758
8759 if test "$wxUSE_DIRDLG" = yes; then
8760 echo "$as_me:$LINENO: result: yes" >&5
8761echo "${ECHO_T}yes" >&6
8762 else
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
8765 fi
8766
8767
8768 enablestring=
8769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8770echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8771 no_cache=0
8772 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8773if test "${enable_msgdlg+set}" = set; then
8774 enableval="$enable_msgdlg"
8775
8776 if test "$enableval" = yes; then
8777 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8778 else
8779 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8780 fi
8781
8782else
8783
8784 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8785 if test "x$LINE" != x ; then
8786 eval "DEFAULT_$LINE"
8787 else
8788 no_cache=1
8789 fi
8790
8791 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8792
8793fi;
8794
8795 eval "$ac_cv_use_msgdlg"
8796 if test "$no_cache" != 1; then
8797 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8798 fi
8799
8800 if test "$wxUSE_MSGDLG" = yes; then
8801 echo "$as_me:$LINENO: result: yes" >&5
8802echo "${ECHO_T}yes" >&6
8803 else
8804 echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6
8806 fi
8807
8808
8809 enablestring=
8810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8811echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8812 no_cache=0
8813 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8814if test "${enable_numberdlg+set}" = set; then
8815 enableval="$enable_numberdlg"
8816
8817 if test "$enableval" = yes; then
8818 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8819 else
8820 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8821 fi
8822
8823else
8824
8825 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8826 if test "x$LINE" != x ; then
8827 eval "DEFAULT_$LINE"
8828 else
8829 no_cache=1
8830 fi
8831
8832 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8833
8834fi;
8835
8836 eval "$ac_cv_use_numberdlg"
8837 if test "$no_cache" != 1; then
8838 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8839 fi
8840
8841 if test "$wxUSE_NUMBERDLG" = yes; then
8842 echo "$as_me:$LINENO: result: yes" >&5
8843echo "${ECHO_T}yes" >&6
8844 else
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
8847 fi
8848
8849
8850 enablestring=
8851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8852echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8853 no_cache=0
8854 # Check whether --enable-splash or --disable-splash was given.
8855if test "${enable_splash+set}" = set; then
8856 enableval="$enable_splash"
8857
8858 if test "$enableval" = yes; then
8859 ac_cv_use_splash='wxUSE_SPLASH=yes'
8860 else
8861 ac_cv_use_splash='wxUSE_SPLASH=no'
8862 fi
8863
8864else
8865
8866 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8867 if test "x$LINE" != x ; then
8868 eval "DEFAULT_$LINE"
8869 else
8870 no_cache=1
8871 fi
8872
8873 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8874
8875fi;
8876
8877 eval "$ac_cv_use_splash"
8878 if test "$no_cache" != 1; then
8879 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8880 fi
8881
8882 if test "$wxUSE_SPLASH" = yes; then
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
8885 else
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
8888 fi
8889
8890
8891 enablestring=
8892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8893echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8894 no_cache=0
8895 # Check whether --enable-textdlg or --disable-textdlg was given.
8896if test "${enable_textdlg+set}" = set; then
8897 enableval="$enable_textdlg"
8898
8899 if test "$enableval" = yes; then
8900 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8901 else
8902 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8903 fi
8904
8905else
8906
8907 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8908 if test "x$LINE" != x ; then
8909 eval "DEFAULT_$LINE"
8910 else
8911 no_cache=1
8912 fi
8913
8914 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8915
8916fi;
8917
8918 eval "$ac_cv_use_textdlg"
8919 if test "$no_cache" != 1; then
8920 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8921 fi
8922
8923 if test "$wxUSE_TEXTDLG" = yes; then
8924 echo "$as_me:$LINENO: result: yes" >&5
8925echo "${ECHO_T}yes" >&6
8926 else
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
8929 fi
8930
8931
8932 enablestring=
8933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8934echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8935 no_cache=0
8936 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8937if test "${enable_tipdlg+set}" = set; then
8938 enableval="$enable_tipdlg"
8939
8940 if test "$enableval" = yes; then
8941 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8942 else
8943 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8944 fi
8945
8946else
8947
8948 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8949 if test "x$LINE" != x ; then
8950 eval "DEFAULT_$LINE"
8951 else
8952 no_cache=1
8953 fi
8954
8955 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8956
8957fi;
8958
8959 eval "$ac_cv_use_tipdlg"
8960 if test "$no_cache" != 1; then
8961 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8962 fi
8963
8964 if test "$wxUSE_STARTUP_TIPS" = yes; then
8965 echo "$as_me:$LINENO: result: yes" >&5
8966echo "${ECHO_T}yes" >&6
8967 else
8968 echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
8970 fi
8971
8972
8973 enablestring=
8974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8975echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8976 no_cache=0
8977 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8978if test "${enable_progressdlg+set}" = set; then
8979 enableval="$enable_progressdlg"
8980
8981 if test "$enableval" = yes; then
8982 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8983 else
8984 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8985 fi
8986
8987else
8988
8989 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8990 if test "x$LINE" != x ; then
8991 eval "DEFAULT_$LINE"
8992 else
8993 no_cache=1
8994 fi
8995
8996 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8997
8998fi;
8999
9000 eval "$ac_cv_use_progressdlg"
9001 if test "$no_cache" != 1; then
9002 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9003 fi
9004
9005 if test "$wxUSE_PROGRESSDLG" = yes; then
9006 echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6
9008 else
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
9011 fi
9012
9013
9014 enablestring=
9015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9016echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9017 no_cache=0
9018 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9019if test "${enable_wizarddlg+set}" = set; then
9020 enableval="$enable_wizarddlg"
9021
9022 if test "$enableval" = yes; then
9023 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9024 else
9025 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9026 fi
9027
9028else
9029
9030 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9031 if test "x$LINE" != x ; then
9032 eval "DEFAULT_$LINE"
9033 else
9034 no_cache=1
9035 fi
9036
9037 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9038
9039fi;
9040
9041 eval "$ac_cv_use_wizarddlg"
9042 if test "$no_cache" != 1; then
9043 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9044 fi
9045
9046 if test "$wxUSE_WIZARDDLG" = yes; then
9047 echo "$as_me:$LINENO: result: yes" >&5
9048echo "${ECHO_T}yes" >&6
9049 else
9050 echo "$as_me:$LINENO: result: no" >&5
9051echo "${ECHO_T}no" >&6
9052 fi
9053
9054
9055
9056
9057 enablestring=
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9060 no_cache=0
9061 # Check whether --enable-menus or --disable-menus was given.
9062if test "${enable_menus+set}" = set; then
9063 enableval="$enable_menus"
9064
9065 if test "$enableval" = yes; then
9066 ac_cv_use_menus='wxUSE_MENUS=yes'
9067 else
9068 ac_cv_use_menus='wxUSE_MENUS=no'
9069 fi
9070
9071else
9072
9073 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9081
9082fi;
9083
9084 eval "$ac_cv_use_menus"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_MENUS" = yes; then
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095 fi
9096
9097
9098 enablestring=
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9101 no_cache=0
9102 # Check whether --enable-miniframe or --disable-miniframe was given.
9103if test "${enable_miniframe+set}" = set; then
9104 enableval="$enable_miniframe"
9105
9106 if test "$enableval" = yes; then
9107 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9108 else
9109 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9110 fi
9111
9112else
9113
9114 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9122
9123fi;
9124
9125 eval "$ac_cv_use_miniframe"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_MINIFRAME" = yes; then
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
9133 else
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
9136 fi
9137
9138
9139 enablestring=
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9142 no_cache=0
9143 # Check whether --enable-tooltips or --disable-tooltips was given.
9144if test "${enable_tooltips+set}" = set; then
9145 enableval="$enable_tooltips"
9146
9147 if test "$enableval" = yes; then
9148 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9149 else
9150 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9151 fi
9152
9153else
9154
9155 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9163
9164fi;
9165
9166 eval "$ac_cv_use_tooltips"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_TOOLTIPS" = yes; then
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
9174 else
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177 fi
9178
9179
9180 enablestring=
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9183 no_cache=0
9184 # Check whether --enable-splines or --disable-splines was given.
9185if test "${enable_splines+set}" = set; then
9186 enableval="$enable_splines"
9187
9188 if test "$enableval" = yes; then
9189 ac_cv_use_splines='wxUSE_SPLINES=yes'
9190 else
9191 ac_cv_use_splines='wxUSE_SPLINES=no'
9192 fi
9193
9194else
9195
9196 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9204
9205fi;
9206
9207 eval "$ac_cv_use_splines"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_SPLINES" = yes; then
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
9218 fi
9219
9220
9221 enablestring=
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9224 no_cache=0
9225 # Check whether --enable-validators or --disable-validators was given.
9226if test "${enable_validators+set}" = set; then
9227 enableval="$enable_validators"
9228
9229 if test "$enableval" = yes; then
9230 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9231 else
9232 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9233 fi
9234
9235else
9236
9237 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9245
9246fi;
9247
9248 eval "$ac_cv_use_validators"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_VALIDATORS" = yes; then
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
9259 fi
9260
9261
9262 enablestring=
9263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9264echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9265 no_cache=0
9266 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9267if test "${enable_busyinfo+set}" = set; then
9268 enableval="$enable_busyinfo"
9269
9270 if test "$enableval" = yes; then
9271 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9272 else
9273 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9274 fi
9275
9276else
9277
9278 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9279 if test "x$LINE" != x ; then
9280 eval "DEFAULT_$LINE"
9281 else
9282 no_cache=1
9283 fi
9284
9285 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9286
9287fi;
9288
9289 eval "$ac_cv_use_busyinfo"
9290 if test "$no_cache" != 1; then
9291 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9292 fi
9293
9294 if test "$wxUSE_BUSYINFO" = yes; then
9295 echo "$as_me:$LINENO: result: yes" >&5
9296echo "${ECHO_T}yes" >&6
9297 else
9298 echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
9300 fi
9301
9302
9303 enablestring=
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9305echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9306 no_cache=0
9307 # Check whether --enable-joystick or --disable-joystick was given.
9308if test "${enable_joystick+set}" = set; then
9309 enableval="$enable_joystick"
9310
9311 if test "$enableval" = yes; then
9312 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9313 else
9314 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9315 fi
9316
9317else
9318
9319 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
9326 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9327
9328fi;
9329
9330 eval "$ac_cv_use_joystick"
9331 if test "$no_cache" != 1; then
9332 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9333 fi
9334
9335 if test "$wxUSE_JOYSTICK" = yes; then
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
9338 else
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
9341 fi
9342
9343
9344 enablestring=
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9347 no_cache=0
9348 # Check whether --enable-metafile or --disable-metafile was given.
9349if test "${enable_metafile+set}" = set; then
9350 enableval="$enable_metafile"
9351
9352 if test "$enableval" = yes; then
9353 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9354 else
9355 ac_cv_use_metafile='wxUSE_METAFILE=no'
9356 fi
9357
9358else
9359
9360 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9368
9369fi;
9370
9371 eval "$ac_cv_use_metafile"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_METAFILE" = yes; then
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
9379 else
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
9382 fi
9383
9384
9385 enablestring=
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9387echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9388 no_cache=0
9389 # Check whether --enable-dragimage or --disable-dragimage was given.
9390if test "${enable_dragimage+set}" = set; then
9391 enableval="$enable_dragimage"
9392
9393 if test "$enableval" = yes; then
9394 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9395 else
9396 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9397 fi
9398
9399else
9400
9401 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9409
9410fi;
9411
9412 eval "$ac_cv_use_dragimage"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_DRAGIMAGE" = yes; then
9418 echo "$as_me:$LINENO: result: yes" >&5
9419echo "${ECHO_T}yes" >&6
9420 else
9421 echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6
9423 fi
9424
9425
9426 enablestring=
9427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9428echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9429 no_cache=0
9430 # Check whether --enable-accessibility or --disable-accessibility was given.
9431if test "${enable_accessibility+set}" = set; then
9432 enableval="$enable_accessibility"
9433
9434 if test "$enableval" = yes; then
9435 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9436 else
9437 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9438 fi
9439
9440else
9441
9442 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9443 if test "x$LINE" != x ; then
9444 eval "DEFAULT_$LINE"
9445 else
9446 no_cache=1
9447 fi
9448
9449 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9450
9451fi;
9452
9453 eval "$ac_cv_use_accessibility"
9454 if test "$no_cache" != 1; then
9455 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9456 fi
9457
9458 if test "$wxUSE_ACCESSIBILITY" = yes; then
9459 echo "$as_me:$LINENO: result: yes" >&5
9460echo "${ECHO_T}yes" >&6
9461 else
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464 fi
9465
9466
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-palette or --disable-palette was given.
9474if test "${enable_palette+set}" = set; then
9475 enableval="$enable_palette"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_palette='wxUSE_PALETTE=yes'
9479 else
9480 ac_cv_use_palette='wxUSE_PALETTE=no'
9481 fi
9482
9483else
9484
9485 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9493
9494fi;
9495
9496 eval "$ac_cv_use_palette"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_PALETTE" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-image or --disable-image was given.
9515if test "${enable_image+set}" = set; then
9516 enableval="$enable_image"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_image='wxUSE_IMAGE=yes'
9520 else
9521 ac_cv_use_image='wxUSE_IMAGE=no'
9522 fi
9523
9524else
9525
9526 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9534
9535fi;
9536
9537 eval "$ac_cv_use_image"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_IMAGE" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548 fi
9549
9550
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-gif or --disable-gif was given.
9556if test "${enable_gif+set}" = set; then
9557 enableval="$enable_gif"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_gif='wxUSE_GIF=yes'
9561 else
9562 ac_cv_use_gif='wxUSE_GIF=no'
9563 fi
9564
9565else
9566
9567 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9575
9576fi;
9577
9578 eval "$ac_cv_use_gif"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_GIF" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
9589 fi
9590
9591
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-pcx or --disable-pcx was given.
9597if test "${enable_pcx+set}" = set; then
9598 enableval="$enable_pcx"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_pcx='wxUSE_PCX=yes'
9602 else
9603 ac_cv_use_pcx='wxUSE_PCX=no'
9604 fi
9605
9606else
9607
9608 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9616
9617fi;
9618
9619 eval "$ac_cv_use_pcx"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_PCX" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630 fi
9631
9632
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-iff or --disable-iff was given.
9638if test "${enable_iff+set}" = set; then
9639 enableval="$enable_iff"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_iff='wxUSE_IFF=yes'
9643 else
9644 ac_cv_use_iff='wxUSE_IFF=no'
9645 fi
9646
9647else
9648
9649 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9657
9658fi;
9659
9660 eval "$ac_cv_use_iff"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_IFF" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671 fi
9672
9673
9674 enablestring=
9675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9676echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9677 no_cache=0
9678 # Check whether --enable-pnm or --disable-pnm was given.
9679if test "${enable_pnm+set}" = set; then
9680 enableval="$enable_pnm"
9681
9682 if test "$enableval" = yes; then
9683 ac_cv_use_pnm='wxUSE_PNM=yes'
9684 else
9685 ac_cv_use_pnm='wxUSE_PNM=no'
9686 fi
9687
9688else
9689
9690 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9691 if test "x$LINE" != x ; then
9692 eval "DEFAULT_$LINE"
9693 else
9694 no_cache=1
9695 fi
9696
9697 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9698
9699fi;
9700
9701 eval "$ac_cv_use_pnm"
9702 if test "$no_cache" != 1; then
9703 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9704 fi
9705
9706 if test "$wxUSE_PNM" = yes; then
9707 echo "$as_me:$LINENO: result: yes" >&5
9708echo "${ECHO_T}yes" >&6
9709 else
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
9712 fi
9713
9714
9715 enablestring=
9716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9717echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9718 no_cache=0
9719 # Check whether --enable-xpm or --disable-xpm was given.
9720if test "${enable_xpm+set}" = set; then
9721 enableval="$enable_xpm"
9722
9723 if test "$enableval" = yes; then
9724 ac_cv_use_xpm='wxUSE_XPM=yes'
9725 else
9726 ac_cv_use_xpm='wxUSE_XPM=no'
9727 fi
9728
9729else
9730
9731 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9732 if test "x$LINE" != x ; then
9733 eval "DEFAULT_$LINE"
9734 else
9735 no_cache=1
9736 fi
9737
9738 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9739
9740fi;
9741
9742 eval "$ac_cv_use_xpm"
9743 if test "$no_cache" != 1; then
9744 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9745 fi
9746
9747 if test "$wxUSE_XPM" = yes; then
9748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
9750 else
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
9753 fi
9754
9755
9756 enablestring=
9757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9758echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9759 no_cache=0
9760 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9761if test "${enable_ico_cur+set}" = set; then
9762 enableval="$enable_ico_cur"
9763
9764 if test "$enableval" = yes; then
9765 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9766 else
9767 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9768 fi
9769
9770else
9771
9772 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9773 if test "x$LINE" != x ; then
9774 eval "DEFAULT_$LINE"
9775 else
9776 no_cache=1
9777 fi
9778
9779 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9780
9781fi;
9782
9783 eval "$ac_cv_use_ico_cur"
9784 if test "$no_cache" != 1; then
9785 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9786 fi
9787
9788 if test "$wxUSE_ICO_CUR" = yes; then
9789 echo "$as_me:$LINENO: result: yes" >&5
9790echo "${ECHO_T}yes" >&6
9791 else
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
9794 fi
9795
9796
9797fi
9798
9799
9800
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-official_build or --disable-official_build was given.
9806if test "${enable_official_build+set}" = set; then
9807 enableval="$enable_official_build"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9811 else
9812 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9825
9826fi;
9827
9828 eval "$ac_cv_use_official_build"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841# Check whether --enable-vendor or --disable-vendor was given.
9842if test "${enable_vendor+set}" = set; then
9843 enableval="$enable_vendor"
9844 VENDOR="$enableval"
9845fi;
9846if test "x$VENDOR" = "x"; then
9847 VENDOR="custom"
9848fi
9849
9850case "${host}" in
9851 *-pc-os2_emx | *-pc-os2-emx )
9852 PATH_IFS=';'
a848cd7e
SC
9853 ;;
9854 *)
9855 PATH_IFS=':'
9856 ;;
9857esac
9858
9859
9860
9861 echo "saving argument cache $wx_arg_cache_file"
9862 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9863
9864
9865
9866echo "$as_me:$LINENO: checking for toolkit" >&5
9867echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9868
9869# In Wine, we need to default to MSW, not GTK or MOTIF
9870if test "$wxUSE_WINE" = "yes"; then
9871 DEFAULT_DEFAULT_wxUSE_GTK=0
9872 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9873 DEFAULT_DEFAULT_wxUSE_MSW=1
9874 wxUSE_SHARED=no
9875fi
9876
9877if test "$wxUSE_GUI" = "yes"; then
9878
9879 if test "$USE_BEOS" = 1; then
9880 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9881echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9882 { (exit 1); exit 1; }; }
9883 fi
9884
9885 if test "$TOOLKIT_GIVEN" = 1; then
9886 for toolkit in `echo $ALL_TOOLKITS`; do
9887 var=wxUSE_$toolkit
9888 eval "value=\$${var}"
9889 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9890 done
9891 else
9892 for toolkit in `echo $ALL_TOOLKITS`; do
9893 if test "$has_toolkit_in_cache" != 1; then
9894 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9895 else
9896 var=DEFAULT_wxUSE_$toolkit
9897 fi
9898 eval "wxUSE_$toolkit=\$${var}"
9899 done
9900 fi
9901
9902 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9903 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9904 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9905
9906 case "${host}" in
9907 *-pc-os2_emx | *-pc-os2-emx )
9908 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9909 esac
9910
9911 case "$NUM_TOOLKITS" in
9912 1)
9913 ;;
9914 0)
9915 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9916echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9917 { (exit 1); exit 1; }; }
9918 ;;
9919 *)
9920 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9921echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9922 { (exit 1); exit 1; }; }
9923 esac
9924
9925 for toolkit in `echo $ALL_TOOLKITS`; do
9926 var=wxUSE_$toolkit
9927 eval "value=\$${var}"
9928 if test "x$value" != x; then
9929 cache_var=CACHE_$toolkit
9930 eval "cache=\$${cache_var}"
9931 if test "$cache" = 1; then
9932 echo "$var=$value" >> ${wx_arg_cache_file}
9933 fi
9934 if test "$value" = 1; then
9935 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9936 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9937echo "${ECHO_T}$toolkit_echo" >&6
9938 fi
9939 fi
9940 done
9941else
9942 if test "x$host_alias" != "x"; then
9943 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9944echo "${ECHO_T}base ($host_alias hosted) only" >&6
9945 else
9946 echo "$as_me:$LINENO: result: base only" >&5
9947echo "${ECHO_T}base only" >&6
9948 fi
9949fi
9950
9951wants_win32=0
9952doesnt_want_win32=0
9953case "${host}" in
9954 *-*-cygwin*)
9955 if test "$wxUSE_MSW" = 1 ; then
9956 wants_win32=1
9957 else
9958 doesnt_want_win32=1
9959 fi
9960 ;;
9961 *-*-mingw*)
9962 wants_win32=1
9963 ;;
9964esac
9965
9966if test "$wxUSE_WINE" = "yes"; then
9967 wants_win32=1
9968 CC=winegcc
9969 CXX=wineg++
9970 RESCOMP=wrc
9971 LDFLAGS_GUI="-mwindows"
9972fi
9973
9974if test "$wants_win32" = 1 ; then
9975 USE_UNIX=0
9976 USE_WIN32=1
9977 cat >>confdefs.h <<\_ACEOF
9978#define __WIN32__ 1
9979_ACEOF
9980
9981 cat >>confdefs.h <<\_ACEOF
9982#define __WIN95__ 1
9983_ACEOF
9984
9985 cat >>confdefs.h <<\_ACEOF
9986#define __WINDOWS__ 1
9987_ACEOF
9988
9989 cat >>confdefs.h <<\_ACEOF
9990#define __GNUWIN32__ 1
9991_ACEOF
9992
9993 cat >>confdefs.h <<\_ACEOF
9994#define STRICT 1
9995_ACEOF
9996
9997 cat >>confdefs.h <<\_ACEOF
9998#define WINVER 0x0400
9999_ACEOF
10000
10001fi
10002if test "$doesnt_want_win32" = 1 ; then
10003 USE_UNIX=1
10004 USE_WIN32=0
10005fi
10006
10007if test "$USE_UNIX" = 1 ; then
10008 wxUSE_UNIX=yes
10009 cat >>confdefs.h <<\_ACEOF
10010#define __UNIX__ 1
10011_ACEOF
10012
10013fi
10014
10015
10016cat >confcache <<\_ACEOF
10017# This file is a shell script that caches the results of configure
10018# tests run on this system so they can be shared between configure
10019# scripts and configure runs, see configure's option --config-cache.
10020# It is not useful on other systems. If it contains results you don't
10021# want to keep, you may remove or edit it.
10022#
10023# config.status only pays attention to the cache file if you give it
10024# the --recheck option to rerun configure.
10025#
10026# `ac_cv_env_foo' variables (set or unset) will be overridden when
10027# loading this file, other *unset* `ac_cv_foo' will be assigned the
10028# following values.
10029
10030_ACEOF
10031
10032# The following way of writing the cache mishandles newlines in values,
10033# but we know of no workaround that is simple, portable, and efficient.
10034# So, don't put newlines in cache variables' values.
10035# Ultrix sh set writes to stderr and can't be redirected directly,
10036# and sets the high bit in the cache file unless we assign to the vars.
10037{
10038 (set) 2>&1 |
10039 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10040 *ac_space=\ *)
10041 # `set' does not quote correctly, so add quotes (double-quote
10042 # substitution turns \\\\ into \\, and sed turns \\ into \).
10043 sed -n \
10044 "s/'/'\\\\''/g;
10045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10046 ;;
10047 *)
10048 # `set' quotes correctly as required by POSIX, so do not add quotes.
10049 sed -n \
10050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10051 ;;
10052 esac;
10053} |
10054 sed '
10055 t clear
10056 : clear
10057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10058 t end
10059 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10060 : end' >>confcache
10061if diff $cache_file confcache >/dev/null 2>&1; then :; else
10062 if test -w $cache_file; then
10063 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10064 cat confcache >$cache_file
10065 else
10066 echo "not updating unwritable cache $cache_file"
10067 fi
10068fi
10069rm -f confcache
10070
10071if test "$build" != "$host" ; then
10072 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10073 CC=$host_alias-gcc
10074 CXX=$host_alias-c++
10075 AR=$host_alias-ar
10076 RANLIB=$host_alias-ranlib
10077 DLLTOOL=$host_alias-dlltool
10078 RESCOMP=$host_alias-windres
10079 LD=$host_alias-ld
10080 NM=$host_alias-nm
10081 STRIP=$host_alias-strip
10082 else
10083 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10084echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10085 { (exit 1); exit 1; }; }
10086 fi
10087fi
10088
10089CFLAGS=${CFLAGS:=}
10090ac_ext=c
10091ac_cpp='$CPP $CPPFLAGS'
10092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094ac_compiler_gnu=$ac_cv_c_compiler_gnu
10095if test -n "$ac_tool_prefix"; then
10096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10097set dummy ${ac_tool_prefix}gcc; ac_word=$2
10098echo "$as_me:$LINENO: checking for $ac_word" >&5
10099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10100if test "${ac_cv_prog_CC+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102else
10103 if test -n "$CC"; then
10104 ac_cv_prog_CC="$CC" # Let the user override the test.
10105else
10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10116 fi
10117done
10118done
10119
10120fi
10121fi
10122CC=$ac_cv_prog_CC
10123if test -n "$CC"; then
10124 echo "$as_me:$LINENO: result: $CC" >&5
10125echo "${ECHO_T}$CC" >&6
10126else
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
10129fi
10130
10131fi
10132if test -z "$ac_cv_prog_CC"; then
10133 ac_ct_CC=$CC
10134 # Extract the first word of "gcc", so it can be a program name with args.
10135set dummy gcc; ac_word=$2
10136echo "$as_me:$LINENO: checking for $ac_word" >&5
10137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140else
10141 if test -n "$ac_ct_CC"; then
10142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10143else
10144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145for as_dir in $PATH
10146do
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_prog_ac_ct_CC="gcc"
10152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10154 fi
10155done
10156done
10157
10158fi
10159fi
10160ac_ct_CC=$ac_cv_prog_ac_ct_CC
10161if test -n "$ac_ct_CC"; then
10162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10163echo "${ECHO_T}$ac_ct_CC" >&6
10164else
10165 echo "$as_me:$LINENO: result: no" >&5
10166echo "${ECHO_T}no" >&6
10167fi
10168
10169 CC=$ac_ct_CC
10170else
10171 CC="$ac_cv_prog_CC"
10172fi
10173
10174if test -z "$CC"; then
10175 if test -n "$ac_tool_prefix"; then
10176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10177set dummy ${ac_tool_prefix}cc; ac_word=$2
10178echo "$as_me:$LINENO: checking for $ac_word" >&5
10179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10180if test "${ac_cv_prog_CC+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183 if test -n "$CC"; then
10184 ac_cv_prog_CC="$CC" # Let the user override the test.
10185else
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193 ac_cv_prog_CC="${ac_tool_prefix}cc"
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
10198done
10199
10200fi
10201fi
10202CC=$ac_cv_prog_CC
10203if test -n "$CC"; then
10204 echo "$as_me:$LINENO: result: $CC" >&5
10205echo "${ECHO_T}$CC" >&6
10206else
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
10209fi
10210
10211fi
10212if test -z "$ac_cv_prog_CC"; then
10213 ac_ct_CC=$CC
10214 # Extract the first word of "cc", so it can be a program name with args.
10215set dummy cc; ac_word=$2
10216echo "$as_me:$LINENO: checking for $ac_word" >&5
10217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 if test -n "$ac_ct_CC"; then
10222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10223else
10224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_prog_ac_ct_CC="cc"
10232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235done
10236done
10237
10238fi
10239fi
10240ac_ct_CC=$ac_cv_prog_ac_ct_CC
10241if test -n "$ac_ct_CC"; then
10242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10243echo "${ECHO_T}$ac_ct_CC" >&6
10244else
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
10247fi
10248
10249 CC=$ac_ct_CC
10250else
10251 CC="$ac_cv_prog_CC"
10252fi
10253
10254fi
10255if test -z "$CC"; then
10256 # Extract the first word of "cc", so it can be a program name with args.
10257set dummy cc; ac_word=$2
10258echo "$as_me:$LINENO: checking for $ac_word" >&5
10259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10260if test "${ac_cv_prog_CC+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263 if test -n "$CC"; then
10264 ac_cv_prog_CC="$CC" # Let the user override the test.
10265else
10266 ac_prog_rejected=no
10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268for as_dir in $PATH
10269do
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10275 ac_prog_rejected=yes
10276 continue
10277 fi
10278 ac_cv_prog_CC="cc"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10281 fi
10282done
10283done
10284
10285if test $ac_prog_rejected = yes; then
10286 # We found a bogon in the path, so make sure we never use it.
10287 set dummy $ac_cv_prog_CC
10288 shift
10289 if test $# != 0; then
10290 # We chose a different compiler from the bogus one.
10291 # However, it has the same basename, so the bogon will be chosen
10292 # first if we set CC to just the basename; use the full file name.
10293 shift
10294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10295 fi
10296fi
10297fi
10298fi
10299CC=$ac_cv_prog_CC
10300if test -n "$CC"; then
10301 echo "$as_me:$LINENO: result: $CC" >&5
10302echo "${ECHO_T}$CC" >&6
10303else
10304 echo "$as_me:$LINENO: result: no" >&5
10305echo "${ECHO_T}no" >&6
10306fi
10307
10308fi
10309if test -z "$CC"; then
10310 if test -n "$ac_tool_prefix"; then
10311 for ac_prog in cl
10312 do
10313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10315echo "$as_me:$LINENO: checking for $ac_word" >&5
10316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10317if test "${ac_cv_prog_CC+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 if test -n "$CC"; then
10321 ac_cv_prog_CC="$CC" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335done
10336
10337fi
10338fi
10339CC=$ac_cv_prog_CC
10340if test -n "$CC"; then
10341 echo "$as_me:$LINENO: result: $CC" >&5
10342echo "${ECHO_T}$CC" >&6
10343else
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
10346fi
10347
10348 test -n "$CC" && break
10349 done
10350fi
10351if test -z "$CC"; then
10352 ac_ct_CC=$CC
10353 for ac_prog in cl
10354do
10355 # Extract the first word of "$ac_prog", so it can be a program name with args.
10356set dummy $ac_prog; ac_word=$2
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 if test -n "$ac_ct_CC"; then
10363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_ac_ct_CC="$ac_prog"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
10379fi
10380fi
10381ac_ct_CC=$ac_cv_prog_ac_ct_CC
10382if test -n "$ac_ct_CC"; then
10383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10384echo "${ECHO_T}$ac_ct_CC" >&6
10385else
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
10388fi
10389
10390 test -n "$ac_ct_CC" && break
10391done
10392
10393 CC=$ac_ct_CC
10394fi
10395
10396fi
10397
10398
10399test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10400See \`config.log' for more details." >&5
10401echo "$as_me: error: no acceptable C compiler found in \$PATH
10402See \`config.log' for more details." >&2;}
10403 { (exit 1); exit 1; }; }
10404
10405# Provide some information about the compiler.
10406echo "$as_me:$LINENO:" \
10407 "checking for C compiler version" >&5
10408ac_compiler=`set X $ac_compile; echo $2`
10409{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10410 (eval $ac_compiler --version </dev/null >&5) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }
10414{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10415 (eval $ac_compiler -v </dev/null >&5) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }
10419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10420 (eval $ac_compiler -V </dev/null >&5) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }
10424
10425cat >conftest.$ac_ext <<_ACEOF
10426/* confdefs.h. */
10427_ACEOF
10428cat confdefs.h >>conftest.$ac_ext
10429cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h. */
10431
10432int
10433main ()
10434{
10435
10436 ;
10437 return 0;
10438}
10439_ACEOF
10440ac_clean_files_save=$ac_clean_files
10441ac_clean_files="$ac_clean_files a.out a.exe b.out"
10442# Try to create an executable without -o first, disregard a.out.
10443# It will help us diagnose broken compilers, and finding out an intuition
10444# of exeext.
10445echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10446echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10447ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10448if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10449 (eval $ac_link_default) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; then
10453 # Find the output, starting from the most likely. This scheme is
10454# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10455# resort.
10456
10457# Be careful to initialize this variable, since it used to be cached.
10458# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10459ac_cv_exeext=
10460# b.out is created by i960 compilers.
10461for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10462do
10463 test -f "$ac_file" || continue
10464 case $ac_file in
10465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10466 ;;
10467 conftest.$ac_ext )
10468 # This is the source file.
10469 ;;
10470 [ab].out )
10471 # We found the default executable, but exeext='' is most
10472 # certainly right.
10473 break;;
10474 *.* )
10475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10476 # FIXME: I believe we export ac_cv_exeext for Libtool,
10477 # but it would be cool to find out if it's true. Does anybody
10478 # maintain Libtool? --akim.
10479 export ac_cv_exeext
10480 break;;
10481 * )
10482 break;;
10483 esac
10484done
10485else
10486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10490See \`config.log' for more details." >&5
10491echo "$as_me: error: C compiler cannot create executables
10492See \`config.log' for more details." >&2;}
10493 { (exit 77); exit 77; }; }
10494fi
10495
10496ac_exeext=$ac_cv_exeext
10497echo "$as_me:$LINENO: result: $ac_file" >&5
10498echo "${ECHO_T}$ac_file" >&6
10499
10500# Check the compiler produces executables we can run. If not, either
10501# the compiler is broken, or we cross compile.
10502echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10503echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10504# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10505# If not cross compiling, check that we can run a simple program.
10506if test "$cross_compiling" != yes; then
10507 if { ac_try='./$ac_file'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 cross_compiling=no
10514 else
10515 if test "$cross_compiling" = maybe; then
10516 cross_compiling=yes
10517 else
10518 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10519If you meant to cross compile, use \`--host'.
10520See \`config.log' for more details." >&5
10521echo "$as_me: error: cannot run C compiled programs.
10522If you meant to cross compile, use \`--host'.
10523See \`config.log' for more details." >&2;}
10524 { (exit 1); exit 1; }; }
10525 fi
10526 fi
10527fi
10528echo "$as_me:$LINENO: result: yes" >&5
10529echo "${ECHO_T}yes" >&6
10530
10531rm -f a.out a.exe conftest$ac_cv_exeext b.out
10532ac_clean_files=$ac_clean_files_save
10533# Check the compiler produces executables we can run. If not, either
10534# the compiler is broken, or we cross compile.
10535echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10536echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10537echo "$as_me:$LINENO: result: $cross_compiling" >&5
10538echo "${ECHO_T}$cross_compiling" >&6
10539
10540echo "$as_me:$LINENO: checking for suffix of executables" >&5
10541echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; then
10547 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10548# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10549# work properly (i.e., refer to `conftest.exe'), while it won't with
10550# `rm'.
10551for ac_file in conftest.exe conftest conftest.*; do
10552 test -f "$ac_file" || continue
10553 case $ac_file in
10554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10556 export ac_cv_exeext
10557 break;;
10558 * ) break;;
10559 esac
10560done
10561else
10562 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10563See \`config.log' for more details." >&5
10564echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10565See \`config.log' for more details." >&2;}
10566 { (exit 1); exit 1; }; }
10567fi
10568
10569rm -f conftest$ac_cv_exeext
10570echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10571echo "${ECHO_T}$ac_cv_exeext" >&6
10572
10573rm -f conftest.$ac_ext
10574EXEEXT=$ac_cv_exeext
10575ac_exeext=$EXEEXT
10576echo "$as_me:$LINENO: checking for suffix of object files" >&5
10577echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10578if test "${ac_cv_objext+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581 cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587
10588int
10589main ()
10590{
10591
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596rm -f conftest.o conftest.obj
10597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; then
10602 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10603 case $ac_file in
10604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10606 break;;
10607 esac
10608done
10609else
10610 echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
10613{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10614See \`config.log' for more details." >&5
10615echo "$as_me: error: cannot compute suffix of object files: cannot compile
10616See \`config.log' for more details." >&2;}
10617 { (exit 1); exit 1; }; }
10618fi
10619
10620rm -f conftest.$ac_cv_objext conftest.$ac_ext
10621fi
10622echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10623echo "${ECHO_T}$ac_cv_objext" >&6
10624OBJEXT=$ac_cv_objext
10625ac_objext=$OBJEXT
10626echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10627echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10628if test "${ac_cv_c_compiler_gnu+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631 cat >conftest.$ac_ext <<_ACEOF
10632/* confdefs.h. */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
10637
10638int
10639main ()
10640{
10641#ifndef __GNUC__
10642 choke me
10643#endif
10644
10645 ;
10646 return 0;
10647}
10648_ACEOF
10649rm -f conftest.$ac_objext
10650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651 (eval $ac_compile) 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
dcc1b6ad
VS
10658 { ac_try='test -z "$ac_c_werror_flag"
10659 || test ! -s conftest.err'
a848cd7e
SC
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_compiler_gnu=yes
10672else
10673 echo "$as_me: failed program was:" >&5
10674sed 's/^/| /' conftest.$ac_ext >&5
10675
10676ac_compiler_gnu=no
10677fi
10678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679ac_cv_c_compiler_gnu=$ac_compiler_gnu
10680
10681fi
10682echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10683echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10684GCC=`test $ac_compiler_gnu = yes && echo yes`
10685ac_test_CFLAGS=${CFLAGS+set}
10686ac_save_CFLAGS=$CFLAGS
10687CFLAGS="-g"
10688echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10689echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10690if test "${ac_cv_prog_cc_g+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692else
10693 cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
10699
10700int
10701main ()
10702{
10703
10704 ;
10705 return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext
10709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
dcc1b6ad
VS
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
a848cd7e
SC
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ac_cv_prog_cc_g=yes
10731else
10732 echo "$as_me: failed program was:" >&5
10733sed 's/^/| /' conftest.$ac_ext >&5
10734
10735ac_cv_prog_cc_g=no
10736fi
10737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10738fi
10739echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10740echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10741if test "$ac_test_CFLAGS" = set; then
10742 CFLAGS=$ac_save_CFLAGS
10743elif test $ac_cv_prog_cc_g = yes; then
10744 if test "$GCC" = yes; then
10745 CFLAGS="-g -O2"
10746 else
10747 CFLAGS="-g"
10748 fi
10749else
10750 if test "$GCC" = yes; then
10751 CFLAGS="-O2"
10752 else
10753 CFLAGS=
10754 fi
10755fi
10756echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10757echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10758if test "${ac_cv_prog_cc_stdc+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760else
10761 ac_cv_prog_cc_stdc=no
10762ac_save_CC=$CC
10763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h. */
10769#include <stdarg.h>
10770#include <stdio.h>
10771#include <sys/types.h>
10772#include <sys/stat.h>
10773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10774struct buf { int x; };
10775FILE * (*rcsopen) (struct buf *, struct stat *, int);
10776static char *e (p, i)
10777 char **p;
10778 int i;
10779{
10780 return p[i];
10781}
10782static char *f (char * (*g) (char **, int), char **p, ...)
10783{
10784 char *s;
10785 va_list v;
10786 va_start (v,p);
10787 s = g (p, va_arg (v,int));
10788 va_end (v);
10789 return s;
10790}
10791
10792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10793 function prototypes and stuff, but not '\xHH' hex character constants.
10794 These don't provoke an error unfortunately, instead are silently treated
10795 as 'x'. The following induces an error, until -std1 is added to get
10796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10797 array size at least. It's necessary to write '\x00'==0 to get something
10798 that's true only with -std1. */
10799int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10800
10801int test (int i, double x);
10802struct s1 {int (*f) (int a);};
10803struct s2 {int (*f) (double a);};
10804int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10805int argc;
10806char **argv;
10807int
10808main ()
10809{
10810return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10811 ;
10812 return 0;
10813}
10814_ACEOF
10815# Don't try gcc -ansi; that turns off useful extensions and
10816# breaks some systems' header files.
10817# AIX -qlanglvl=ansi
10818# Ultrix and OSF/1 -std1
10819# HP-UX 10.20 and later -Ae
10820# HP-UX older versions -Aa -D_HPUX_SOURCE
10821# SVR4 -Xc -D__EXTENSIONS__
10822for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10823do
10824 CC="$ac_save_CC $ac_arg"
10825 rm -f conftest.$ac_objext
10826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
dcc1b6ad
VS
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
a848cd7e
SC
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_cv_prog_cc_stdc=$ac_arg
10848break
10849else
10850 echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853fi
10854rm -f conftest.err conftest.$ac_objext
10855done
10856rm -f conftest.$ac_ext conftest.$ac_objext
10857CC=$ac_save_CC
10858
10859fi
10860
10861case "x$ac_cv_prog_cc_stdc" in
10862 x|xno)
10863 echo "$as_me:$LINENO: result: none needed" >&5
10864echo "${ECHO_T}none needed" >&6 ;;
10865 *)
10866 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10867echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10868 CC="$CC $ac_cv_prog_cc_stdc" ;;
10869esac
10870
10871# Some people use a C++ compiler to compile C. Since we use `exit',
10872# in C++ we need to declare it. In case someone uses the same compiler
10873# for both compiling C and C++ we need to have the C++ compiler decide
10874# the declaration of exit, since it's the most demanding environment.
10875cat >conftest.$ac_ext <<_ACEOF
10876#ifndef __cplusplus
10877 choke me
10878#endif
10879_ACEOF
10880rm -f conftest.$ac_objext
10881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10882 (eval $ac_compile) 2>conftest.er1
10883 ac_status=$?
10884 grep -v '^ *+' conftest.er1 >conftest.err
10885 rm -f conftest.er1
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
dcc1b6ad
VS
10889 { ac_try='test -z "$ac_c_werror_flag"
10890 || test ! -s conftest.err'
a848cd7e
SC
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); }; } &&
10896 { ac_try='test -s conftest.$ac_objext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 for ac_declaration in \
10903 '' \
10904 'extern "C" void std::exit (int) throw (); using std::exit;' \
10905 'extern "C" void std::exit (int); using std::exit;' \
10906 'extern "C" void exit (int) throw ();' \
10907 'extern "C" void exit (int);' \
10908 'void exit (int);'
10909do
10910 cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
10915/* end confdefs.h. */
10916$ac_declaration
10917#include <stdlib.h>
10918int
10919main ()
10920{
10921exit (42);
10922 ;
10923 return 0;
10924}
10925_ACEOF
10926rm -f conftest.$ac_objext
10927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
dcc1b6ad
VS
10935 { ac_try='test -z "$ac_c_werror_flag"
10936 || test ! -s conftest.err'
a848cd7e
SC
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 :
10949else
10950 echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953continue
10954fi
10955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10956 cat >conftest.$ac_ext <<_ACEOF
10957/* confdefs.h. */
10958_ACEOF
10959cat confdefs.h >>conftest.$ac_ext
10960cat >>conftest.$ac_ext <<_ACEOF
10961/* end confdefs.h. */
10962$ac_declaration
10963int
10964main ()
10965{
10966exit (42);
10967 ;
10968 return 0;
10969}
10970_ACEOF
10971rm -f conftest.$ac_objext
10972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973 (eval $ac_compile) 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
dcc1b6ad
VS
10980 { ac_try='test -z "$ac_c_werror_flag"
10981 || test ! -s conftest.err'
a848cd7e
SC
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest.$ac_objext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 break
10994else
10995 echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998fi
10999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000done
11001rm -f conftest*
11002if test -n "$ac_declaration"; then
11003 echo '#ifdef __cplusplus' >>confdefs.h
11004 echo $ac_declaration >>confdefs.h
11005 echo '#endif' >>confdefs.h
11006fi
11007
11008else
11009 echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012fi
11013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014ac_ext=c
11015ac_cpp='$CPP $CPPFLAGS'
11016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11018ac_compiler_gnu=$ac_cv_c_compiler_gnu
11019
11020
11021
11022ac_ext=c
11023ac_cpp='$CPP $CPPFLAGS'
11024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11026ac_compiler_gnu=$ac_cv_c_compiler_gnu
11027echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11028echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11029# On Suns, sometimes $CPP names a directory.
11030if test -n "$CPP" && test -d "$CPP"; then
11031 CPP=
11032fi
11033if test -z "$CPP"; then
11034 if test "${ac_cv_prog_CPP+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 # Double quotes because CPP needs to be expanded
11038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11039 do
11040 ac_preproc_ok=false
11041for ac_c_preproc_warn_flag in '' yes
11042do
11043 # Use a header file that comes with gcc, so configuring glibc
11044 # with a fresh cross-compiler works.
11045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046 # <limits.h> exists even on freestanding compilers.
11047 # On the NeXT, cc -E runs the code through the compiler's parser,
11048 # not just through cpp. "Syntax error" is here to catch this case.
11049 cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055#ifdef __STDC__
11056# include <limits.h>
11057#else
11058# include <assert.h>
11059#endif
11060 Syntax error
11061_ACEOF
11062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } >/dev/null; then
11070 if test -s conftest.err; then
11071 ac_cpp_err=$ac_c_preproc_warn_flag
11072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11073 else
11074 ac_cpp_err=
11075 fi
11076else
11077 ac_cpp_err=yes
11078fi
11079if test -z "$ac_cpp_err"; then
11080 :
11081else
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 # Broken: fails on valid input.
11086continue
11087fi
11088rm -f conftest.err conftest.$ac_ext
11089
11090 # OK, works on sane cases. Now check whether non-existent headers
11091 # can be detected and how.
11092 cat >conftest.$ac_ext <<_ACEOF
11093/* confdefs.h. */
11094_ACEOF
11095cat confdefs.h >>conftest.$ac_ext
11096cat >>conftest.$ac_ext <<_ACEOF
11097/* end confdefs.h. */
11098#include <ac_nonexistent.h>
11099_ACEOF
11100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } >/dev/null; then
11108 if test -s conftest.err; then
11109 ac_cpp_err=$ac_c_preproc_warn_flag
11110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11111 else
11112 ac_cpp_err=
11113 fi
11114else
11115 ac_cpp_err=yes
11116fi
11117if test -z "$ac_cpp_err"; then
11118 # Broken: success on invalid input.
11119continue
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 # Passes both tests.
11125ac_preproc_ok=:
11126break
11127fi
11128rm -f conftest.err conftest.$ac_ext
11129
11130done
11131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11132rm -f conftest.err conftest.$ac_ext
11133if $ac_preproc_ok; then
11134 break
11135fi
11136
11137 done
11138 ac_cv_prog_CPP=$CPP
11139
11140fi
11141 CPP=$ac_cv_prog_CPP
11142else
11143 ac_cv_prog_CPP=$CPP
11144fi
11145echo "$as_me:$LINENO: result: $CPP" >&5
11146echo "${ECHO_T}$CPP" >&6
11147ac_preproc_ok=false
11148for ac_c_preproc_warn_flag in '' yes
11149do
11150 # Use a header file that comes with gcc, so configuring glibc
11151 # with a fresh cross-compiler works.
11152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11153 # <limits.h> exists even on freestanding compilers.
11154 # On the NeXT, cc -E runs the code through the compiler's parser,
11155 # not just through cpp. "Syntax error" is here to catch this case.
11156 cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162#ifdef __STDC__
11163# include <limits.h>
11164#else
11165# include <assert.h>
11166#endif
11167 Syntax error
11168_ACEOF
11169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } >/dev/null; then
11177 if test -s conftest.err; then
11178 ac_cpp_err=$ac_c_preproc_warn_flag
11179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11180 else
11181 ac_cpp_err=
11182 fi
11183else
11184 ac_cpp_err=yes
11185fi
11186if test -z "$ac_cpp_err"; then
11187 :
11188else
11189 echo "$as_me: failed program was:" >&5
11190sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 # Broken: fails on valid input.
11193continue
11194fi
11195rm -f conftest.err conftest.$ac_ext
11196
11197 # OK, works on sane cases. Now check whether non-existent headers
11198 # can be detected and how.
11199 cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205#include <ac_nonexistent.h>
11206_ACEOF
11207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218 else
11219 ac_cpp_err=
11220 fi
11221else
11222 ac_cpp_err=yes
11223fi
11224if test -z "$ac_cpp_err"; then
11225 # Broken: success on invalid input.
11226continue
11227else
11228 echo "$as_me: failed program was:" >&5
11229sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 # Passes both tests.
11232ac_preproc_ok=:
11233break
11234fi
11235rm -f conftest.err conftest.$ac_ext
11236
11237done
11238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11239rm -f conftest.err conftest.$ac_ext
11240if $ac_preproc_ok; then
11241 :
11242else
11243 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11244See \`config.log' for more details." >&5
11245echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11246See \`config.log' for more details." >&2;}
11247 { (exit 1); exit 1; }; }
11248fi
11249
11250ac_ext=c
11251ac_cpp='$CPP $CPPFLAGS'
11252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11254ac_compiler_gnu=$ac_cv_c_compiler_gnu
11255
11256
11257echo "$as_me:$LINENO: checking for egrep" >&5
11258echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11259if test "${ac_cv_prog_egrep+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261else
11262 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11263 then ac_cv_prog_egrep='grep -E'
11264 else ac_cv_prog_egrep='egrep'
11265 fi
11266fi
11267echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11268echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11269 EGREP=$ac_cv_prog_egrep
11270
11271
11272if test $ac_cv_c_compiler_gnu = yes; then
11273 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11274echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11275if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277else
11278 ac_pattern="Autoconf.*'x'"
11279 cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285#include <sgtty.h>
11286Autoconf TIOCGETP
11287_ACEOF
11288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11289 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11290 ac_cv_prog_gcc_traditional=yes
11291else
11292 ac_cv_prog_gcc_traditional=no
11293fi
11294rm -f conftest*
11295
11296
11297 if test $ac_cv_prog_gcc_traditional = no; then
11298 cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304#include <termio.h>
11305Autoconf TCGETA
11306_ACEOF
11307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11308 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11309 ac_cv_prog_gcc_traditional=yes
11310fi
11311rm -f conftest*
11312
11313 fi
11314fi
11315echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11316echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11317 if test $ac_cv_prog_gcc_traditional = yes; then
11318 CC="$CC -traditional"
11319 fi
11320fi
11321
11322
11323
11324
11325ac_ext=cc
11326ac_cpp='$CXXCPP $CPPFLAGS'
11327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11330
11331
11332CXXFLAGS=${CXXFLAGS:=}
11333ac_ext=cc
11334ac_cpp='$CXXCPP $CPPFLAGS'
11335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11338if test -n "$ac_tool_prefix"; then
11339 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11340 do
11341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11343echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345if test "${ac_cv_prog_CXX+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348 if test -n "$CXX"; then
11349 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363done
11364
11365fi
11366fi
11367CXX=$ac_cv_prog_CXX
11368if test -n "$CXX"; then
11369 echo "$as_me:$LINENO: result: $CXX" >&5
11370echo "${ECHO_T}$CXX" >&6
11371else
11372 echo "$as_me:$LINENO: result: no" >&5
11373echo "${ECHO_T}no" >&6
11374fi
11375
11376 test -n "$CXX" && break
11377 done
11378fi
11379if test -z "$CXX"; then
11380 ac_ct_CXX=$CXX
11381 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11382do
11383 # Extract the first word of "$ac_prog", so it can be a program name with args.
11384set dummy $ac_prog; ac_word=$2
11385echo "$as_me:$LINENO: checking for $ac_word" >&5
11386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389else
11390 if test -n "$ac_ct_CXX"; then
11391 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11392else
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_prog_ac_ct_CXX="$ac_prog"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405done
11406
11407fi
11408fi
11409ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11410if test -n "$ac_ct_CXX"; then
11411 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11412echo "${ECHO_T}$ac_ct_CXX" >&6
11413else
11414 echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6
11416fi
11417
11418 test -n "$ac_ct_CXX" && break
11419done
11420test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11421
11422 CXX=$ac_ct_CXX
11423fi
11424
11425
11426# Provide some information about the compiler.
11427echo "$as_me:$LINENO:" \
11428 "checking for C++ compiler version" >&5
11429ac_compiler=`set X $ac_compile; echo $2`
11430{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11431 (eval $ac_compiler --version </dev/null >&5) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }
11435{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11436 (eval $ac_compiler -v </dev/null >&5) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }
11440{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11441 (eval $ac_compiler -V </dev/null >&5) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }
11445
11446echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11447echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11448if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451 cat >conftest.$ac_ext <<_ACEOF
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
11457
11458int
11459main ()
11460{
11461#ifndef __GNUC__
11462 choke me
11463#endif
11464
11465 ;
11466 return 0;
11467}
11468_ACEOF
11469rm -f conftest.$ac_objext
11470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471 (eval $ac_compile) 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
dcc1b6ad
VS
11478 { ac_try='test -z "$ac_cxx_werror_flag"
11479 || test ! -s conftest.err'
a848cd7e
SC
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 ac_compiler_gnu=yes
11492else
11493 echo "$as_me: failed program was:" >&5
11494sed 's/^/| /' conftest.$ac_ext >&5
11495
11496ac_compiler_gnu=no
11497fi
11498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11499ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11500
11501fi
11502echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11503echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11504GXX=`test $ac_compiler_gnu = yes && echo yes`
11505ac_test_CXXFLAGS=${CXXFLAGS+set}
11506ac_save_CXXFLAGS=$CXXFLAGS
11507CXXFLAGS="-g"
11508echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11509echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11510if test "${ac_cv_prog_cxx_g+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513 cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h. */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h. */
11519
11520int
11521main ()
11522{
11523
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext
11529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
dcc1b6ad
VS
11537 { ac_try='test -z "$ac_cxx_werror_flag"
11538 || test ! -s conftest.err'
a848cd7e
SC
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 ac_cv_prog_cxx_g=yes
11551else
11552 echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
11555ac_cv_prog_cxx_g=no
11556fi
11557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558fi
11559echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11560echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11561if test "$ac_test_CXXFLAGS" = set; then
11562 CXXFLAGS=$ac_save_CXXFLAGS
11563elif test $ac_cv_prog_cxx_g = yes; then
11564 if test "$GXX" = yes; then
11565 CXXFLAGS="-g -O2"
11566 else
11567 CXXFLAGS="-g"
11568 fi
11569else
11570 if test "$GXX" = yes; then
11571 CXXFLAGS="-O2"
11572 else
11573 CXXFLAGS=
11574 fi
11575fi
11576for ac_declaration in \
11577 '' \
11578 'extern "C" void std::exit (int) throw (); using std::exit;' \
11579 'extern "C" void std::exit (int); using std::exit;' \
11580 'extern "C" void exit (int) throw ();' \
11581 'extern "C" void exit (int);' \
11582 'void exit (int);'
11583do
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_declaration
11591#include <stdlib.h>
11592int
11593main ()
11594{
11595exit (42);
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600rm -f conftest.$ac_objext
11601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
dcc1b6ad
VS
11609 { ac_try='test -z "$ac_cxx_werror_flag"
11610 || test ! -s conftest.err'
a848cd7e
SC
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 :
11623else
11624 echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627continue
11628fi
11629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636$ac_declaration
11637int
11638main ()
11639{
11640exit (42);
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext
11646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
dcc1b6ad
VS
11654 { ac_try='test -z "$ac_cxx_werror_flag"
11655 || test ! -s conftest.err'
a848cd7e
SC
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest.$ac_objext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 break
11668else
11669 echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672fi
11673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674done
11675rm -f conftest*
11676if test -n "$ac_declaration"; then
11677 echo '#ifdef __cplusplus' >>confdefs.h
11678 echo $ac_declaration >>confdefs.h
11679 echo '#endif' >>confdefs.h
11680fi
11681
11682ac_ext=cc
11683ac_cpp='$CXXCPP $CPPFLAGS'
11684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11687
11688
11689ac_ext=c
11690ac_cpp='$CPP $CPPFLAGS'
11691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11693ac_compiler_gnu=$ac_cv_c_compiler_gnu
11694
11695
11696echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11697echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11698GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11699if test "$GCC" = "yes" ; then
11700 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11701 sed -n '1,/End of search list\./p' | \
11702 grep '^ */usr/local/include$' 2>&1 /dev/null \
11703 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11704fi
11705echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11706echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11707
11708if test -n "$ac_tool_prefix"; then
11709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11710set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11711echo "$as_me:$LINENO: checking for $ac_word" >&5
11712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11713if test "${ac_cv_prog_RANLIB+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 if test -n "$RANLIB"; then
11717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11718else
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11729 fi
11730done
11731done
11732
11733fi
11734fi
11735RANLIB=$ac_cv_prog_RANLIB
11736if test -n "$RANLIB"; then
11737 echo "$as_me:$LINENO: result: $RANLIB" >&5
11738echo "${ECHO_T}$RANLIB" >&6
11739else
11740 echo "$as_me:$LINENO: result: no" >&5
11741echo "${ECHO_T}no" >&6
11742fi
11743
11744fi
11745if test -z "$ac_cv_prog_RANLIB"; then
11746 ac_ct_RANLIB=$RANLIB
11747 # Extract the first word of "ranlib", so it can be a program name with args.
11748set dummy ranlib; ac_word=$2
11749echo "$as_me:$LINENO: checking for $ac_word" >&5
11750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11751if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 if test -n "$ac_ct_RANLIB"; then
11755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11756else
11757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_prog_ac_ct_RANLIB="ranlib"
11765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768done
11769done
11770
11771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11772fi
11773fi
11774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11775if test -n "$ac_ct_RANLIB"; then
11776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11777echo "${ECHO_T}$ac_ct_RANLIB" >&6
11778else
11779 echo "$as_me:$LINENO: result: no" >&5
11780echo "${ECHO_T}no" >&6
11781fi
11782
11783 RANLIB=$ac_ct_RANLIB
11784else
11785 RANLIB="$ac_cv_prog_RANLIB"
11786fi
11787
11788
11789# Extract the first word of "ar", so it can be a program name with args.
11790set dummy ar; 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_AR+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 if test -n "$AR"; then
11797 ac_cv_prog_AR="$AR" # 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_AR="ar"
11807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11809 fi
11810done
11811done
11812
11813fi
11814fi
11815AR=$ac_cv_prog_AR
11816if test -n "$AR"; then
11817 echo "$as_me:$LINENO: result: $AR" >&5
11818echo "${ECHO_T}$AR" >&6
11819else
11820 echo "$as_me:$LINENO: result: no" >&5
11821echo "${ECHO_T}no" >&6
11822fi
11823
11824if test "x$AR" = "x" ; then
11825 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11826echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11827 { (exit 1); exit 1; }; }
11828fi
11829
11830# Find a good install program. We prefer a C program (faster),
11831# so one script is as good as another. But avoid the broken or
11832# incompatible versions:
11833# SysV /etc/install, /usr/sbin/install
11834# SunOS /usr/etc/install
11835# IRIX /sbin/install
11836# AIX /bin/install
11837# AmigaOS /C/install, which installs bootblocks on floppy discs
11838# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11839# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11840# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11841# OS/2's system install, which has a completely different semantic
11842# ./install, which can be erroneously created by make from ./install.sh.
11843echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11844echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11845if test -z "$INSTALL"; then
11846if test "${ac_cv_path_install+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850for as_dir in $PATH
11851do
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 # Account for people who put trailing slashes in PATH elements.
11855case $as_dir/ in
11856 ./ | .// | /cC/* | \
11857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11858 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11859 /usr/ucb/* ) ;;
11860 *)
11861 # OSF1 and SCO ODT 3.0 have their own names for install.
11862 # Don't use installbsd from OSF since it installs stuff as root
11863 # by default.
11864 for ac_prog in ginstall scoinst install; do
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11867 if test $ac_prog = install &&
11868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11869 # AIX install. It has an incompatible calling convention.
11870 :
11871 elif test $ac_prog = install &&
11872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11873 # program-specific install script used by HP pwplus--don't use.
11874 :
11875 else
11876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11877 break 3
11878 fi
11879 fi
11880 done
11881 done
11882 ;;
11883esac
11884done
11885
11886
11887fi
11888 if test "${ac_cv_path_install+set}" = set; then
11889 INSTALL=$ac_cv_path_install
11890 else
11891 # As a last resort, use the slow shell script. We don't cache a
11892 # path for INSTALL within a source directory, because that will
11893 # break other packages using the cache if that directory is
11894 # removed, or if the path is relative.
11895 INSTALL=$ac_install_sh
11896 fi
11897fi
11898echo "$as_me:$LINENO: result: $INSTALL" >&5
11899echo "${ECHO_T}$INSTALL" >&6
11900
11901# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11902# It thinks the first close brace ends the variable substitution.
11903test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11904
11905test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11906
11907test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11908
11909
11910case ${INSTALL} in
11911 /* ) # Absolute
11912 ;;
11913 ?:* ) # Drive letter, considered as absolute.
11914 ;;
11915 *)
11916 INSTALL=`pwd`/${INSTALL} ;;
11917esac
11918
11919case ${host} in
11920 *-hp-hpux* )
11921 INSTALL_DIR="mkdir"
11922 ;;
11923
11924 *) INSTALL_DIR="$INSTALL -d"
11925 ;;
11926esac
11927
11928
11929case "${host}" in
11930
11931 powerpc-*-darwin* )
11932 INSTALL_PROGRAM="cp -fp"
11933 INSTALL_DATA="cp -fp"
11934 ;;
11935 *)
11936 ;;
11937esac
11938
11939# Extract the first word of "strip", so it can be a program name with args.
11940set dummy strip; ac_word=$2
11941echo "$as_me:$LINENO: checking for $ac_word" >&5
11942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11943if test "${ac_cv_prog_STRIP+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946 if test -n "$STRIP"; then
11947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11948else
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956 ac_cv_prog_STRIP="strip"
11957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960done
11961done
11962
11963 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11964fi
11965fi
11966STRIP=$ac_cv_prog_STRIP
11967if test -n "$STRIP"; then
11968 echo "$as_me:$LINENO: result: $STRIP" >&5
11969echo "${ECHO_T}$STRIP" >&6
11970else
11971 echo "$as_me:$LINENO: result: no" >&5
11972echo "${ECHO_T}no" >&6
11973fi
11974
11975
11976echo "$as_me:$LINENO: checking if make is GNU make" >&5
11977echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11978if test "${wx_cv_prog_makeisgnu+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980else
11981
11982 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11983 egrep -s GNU > /dev/null); then
11984 wx_cv_prog_makeisgnu="yes"
11985 else
11986 wx_cv_prog_makeisgnu="no"
11987 fi
11988
11989fi
11990echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11991echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11992
11993if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11994 IF_GNU_MAKE=""
11995else
11996 IF_GNU_MAKE="#"
11997fi
11998
11999
12000
12001if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12002echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12003echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12004if test "${wx_cv_prog_makevpath+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007
12008cat - << EOF > confMake
12009check : file
12010 cp \$? \$@
12011 cp \$? final_file
12012EOF
12013
12014if test ! -d sub ; then
12015 mkdir sub
12016fi
12017echo dummy > sub/file
12018${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12019RESULT=$?
12020rm -f sub/file check final_file confMake
12021rmdir sub
12022if test "$RESULT" = 0; then
12023 wx_cv_prog_makevpath="yes"
12024else
12025 wx_cv_prog_makevpath="no"
12026fi
12027
12028fi
12029echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12030echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12031
12032if test "x$wx_cv_prog_makevpath" != "xyes"; then
12033{ { echo "$as_me:$LINENO: error:
12034You need a make-utility that is able to use the variable
12035VPATH correctly.
12036If your version of make does not support VPATH correctly,
12037please install GNU-make (possibly as gmake), and start
12038configure with the following command:
12039export MAKE=gmake; ./configure for sh-type shells
12040setenv MAKE gmake; ./configure for csh-type shells
12041Also please do remember to use gmake in this case every time
12042you are trying to compile.
12043" >&5
12044echo "$as_me: error:
12045You need a make-utility that is able to use the variable
12046VPATH correctly.
12047If your version of make does not support VPATH correctly,
12048please install GNU-make (possibly as gmake), and start
12049configure with the following command:
12050export MAKE=gmake; ./configure for sh-type shells
12051setenv MAKE gmake; ./configure for csh-type shells
12052Also please do remember to use gmake in this case every time
12053you are trying to compile.
12054" >&2;}
12055 { (exit 1); exit 1; }; }
12056fi fi
12057echo "$as_me:$LINENO: checking whether ln -s works" >&5
12058echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12059LN_S=$as_ln_s
12060if test "$LN_S" = "ln -s"; then
12061 echo "$as_me:$LINENO: result: yes" >&5
12062echo "${ECHO_T}yes" >&6
12063else
12064 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12065echo "${ECHO_T}no, using $LN_S" >&6
12066fi
12067
12068
12069
12070case "${host}" in
12071 *-pc-os2_emx | *-pc-os2-emx )
12072 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12073 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12074echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12075if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077else
12078 ac_check_lib_save_LIBS=$LIBS
12079LIBS="-lcExt $LIBS"
12080cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h. */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h. */
12086
12087/* Override any gcc2 internal prototype to avoid an error. */
12088#ifdef __cplusplus
12089extern "C"
12090#endif
12091/* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12093char drand48 ();
12094int
12095main ()
12096{
12097drand48 ();
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext conftest$ac_exeext
12103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
dcc1b6ad
VS
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
a848cd7e
SC
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_lib_cExt_drand48=yes
12125else
12126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129ac_cv_lib_cExt_drand48=no
12130fi
12131rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133LIBS=$ac_check_lib_save_LIBS
12134fi
12135echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12136echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12137if test $ac_cv_lib_cExt_drand48 = yes; then
12138 LIBS="$LIBS -lcExt"
12139fi
12140
12141 else
12142 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12143 fi
12144 echo "$as_me:$LINENO: checking for gcc version" >&5
12145echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12146if test "${wx_cv_gccversion+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148else
12149
12150 cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156
12157int
12158main ()
12159{
12160
12161 #if (__GNUC__ < 3)
12162 #error old gcc
12163 #endif
12164
12165 ;
12166 return 0;
12167}
12168_ACEOF
12169rm -f conftest.$ac_objext
12170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
dcc1b6ad
VS
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
a848cd7e
SC
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191
12192 cat >conftest.$ac_ext <<_ACEOF
12193/* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
12198
12199int
12200main ()
12201{
12202
12203 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12204 #error intermediate gcc
12205 #endif
12206
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext
12212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
dcc1b6ad
VS
12220 { ac_try='test -z "$ac_c_werror_flag"
12221 || test ! -s conftest.err'
a848cd7e
SC
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; } &&
12227 { ac_try='test -s conftest.$ac_objext'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233
12234 wx_cv_gccversion=Innotek
12235
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240
12241 wx_cv_gccversion=3
12242
12243
12244fi
12245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12246
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251
12252 wx_cv_gccversion=2
12253
12254
12255fi
12256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12257
12258fi
12259echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12260echo "${ECHO_T}$wx_cv_gccversion" >&6
12261 if test "$wx_cv_gccversion" = "2"; then
12262 LIBS="$LIBS -lstdcpp"
12263 LDFLAGS="$LDFLAGS -Zsysv-signals"
12264 else
12265 if test "$wx_cv_gccversion" = "3"; then
12266 LIBS="$LIBS -lstdcxx"
12267 LDFLAGS="$LDFLAGS -Zsysv-signals"
12268 else
12269 LIBS="$LIBS -lstdc++"
12270 fi
12271 fi
12272 if test "$wxUSE_OMF" = "yes"; then
12273 LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12274 fi
12275 ;;
12276 *)
12277
12278
12279
12280 ac_ext=cc
12281ac_cpp='$CXXCPP $CPPFLAGS'
12282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12285
12286
12287
12288echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12289echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12290if test "${ac_cv_string_strcasecmp+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292else
12293
12294 cat >conftest.$ac_ext <<_ACEOF
12295/* confdefs.h. */
12296_ACEOF
12297cat confdefs.h >>conftest.$ac_ext
12298cat >>conftest.$ac_ext <<_ACEOF
12299/* end confdefs.h. */
12300
12301 #include <string.h>
12302
12303int
12304main ()
12305{
12306
12307 strcasecmp("foo", "bar");
12308
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313rm -f conftest.$ac_objext conftest$ac_exeext
12314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
dcc1b6ad
VS
12322 { ac_try='test -z "$ac_cxx_werror_flag"
12323 || test ! -s conftest.err'
a848cd7e
SC
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_string_strcasecmp=yes
12336else
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
12340ac_cv_string_strcasecmp=no
12341
12342fi
12343rm -f conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345
12346fi
12347echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12348echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12349
12350 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12351 cat >>confdefs.h <<\_ACEOF
12352#define HAVE_STRCASECMP_IN_STRING_H 1
12353_ACEOF
12354
12355 else
12356 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12357echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12358if test "${ac_cv_strings_strcasecmp+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361
12362 cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368
12369 #include <strings.h>
12370
12371int
12372main ()
12373{
12374
12375 strcasecmp("foo", "bar");
12376
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext conftest$ac_exeext
12382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
dcc1b6ad
VS
12390 { ac_try='test -z "$ac_cxx_werror_flag"
12391 || test ! -s conftest.err'
a848cd7e
SC
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_strings_strcasecmp=yes
12404else
12405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408ac_cv_strings_strcasecmp=no
12409
12410fi
12411rm -f conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413
12414fi
12415echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12416echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12417
12418 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12419 cat >>confdefs.h <<\_ACEOF
12420#define HAVE_STRCASECMP_IN_STRINGS_H 1
12421_ACEOF
12422
12423 else
12424 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12425echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12426 { (exit 1); exit 1; }; }
12427 fi
12428 fi
12429
12430 ac_ext=c
12431ac_cpp='$CPP $CPPFLAGS'
12432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434ac_compiler_gnu=$ac_cv_c_compiler_gnu
12435
12436 ;;
12437esac
12438
12439
12440echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12441echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12442if test "${ac_cv_header_stdc+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444else
12445 cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h. */
12451#include <stdlib.h>
12452#include <stdarg.h>
12453#include <string.h>
12454#include <float.h>
12455
12456int
12457main ()
12458{
12459
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext
12465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
dcc1b6ad
VS
12473 { ac_try='test -z "$ac_c_werror_flag"
12474 || test ! -s conftest.err'
a848cd7e
SC
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_cv_header_stdc=yes
12487else
12488 echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491ac_cv_header_stdc=no
12492fi
12493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12494
12495if test $ac_cv_header_stdc = yes; then
12496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12497 cat >conftest.$ac_ext <<_ACEOF
12498/* confdefs.h. */
12499_ACEOF
12500cat confdefs.h >>conftest.$ac_ext
12501cat >>conftest.$ac_ext <<_ACEOF
12502/* end confdefs.h. */
12503#include <string.h>
12504
12505_ACEOF
12506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12507 $EGREP "memchr" >/dev/null 2>&1; then
12508 :
12509else
12510 ac_cv_header_stdc=no
12511fi
12512rm -f conftest*
12513
12514fi
12515
12516if test $ac_cv_header_stdc = yes; then
12517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12518 cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
12524#include <stdlib.h>
12525
12526_ACEOF
12527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12528 $EGREP "free" >/dev/null 2>&1; then
12529 :
12530else
12531 ac_cv_header_stdc=no
12532fi
12533rm -f conftest*
12534
12535fi
12536
12537if test $ac_cv_header_stdc = yes; then
12538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12539 if test "$cross_compiling" = yes; then
12540 :
12541else
12542 cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548#include <ctype.h>
12549#if ((' ' & 0x0FF) == 0x020)
12550# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12551# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12552#else
12553# define ISLOWER(c) \
12554 (('a' <= (c) && (c) <= 'i') \
12555 || ('j' <= (c) && (c) <= 'r') \
12556 || ('s' <= (c) && (c) <= 'z'))
12557# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12558#endif
12559
12560#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12561int
12562main ()
12563{
12564 int i;
12565 for (i = 0; i < 256; i++)
12566 if (XOR (islower (i), ISLOWER (i))
12567 || toupper (i) != TOUPPER (i))
12568 exit(2);
12569 exit (0);
12570}
12571_ACEOF
12572rm -f conftest$ac_exeext
12573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574 (eval $ac_link) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 :
12584else
12585 echo "$as_me: program exited with status $ac_status" >&5
12586echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589( exit $ac_status )
12590ac_cv_header_stdc=no
12591fi
12592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12593fi
12594fi
12595fi
12596echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12597echo "${ECHO_T}$ac_cv_header_stdc" >&6
12598if test $ac_cv_header_stdc = yes; then
12599
12600cat >>confdefs.h <<\_ACEOF
12601#define STDC_HEADERS 1
12602_ACEOF
12603
12604fi
12605
12606# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12617 inttypes.h stdint.h unistd.h
12618do
12619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12620echo "$as_me:$LINENO: checking for $ac_header" >&5
12621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12622if eval "test \"\${$as_ac_Header+set}\" = set"; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12624else
12625 cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631$ac_includes_default
12632
12633#include <$ac_header>
12634_ACEOF
12635rm -f conftest.$ac_objext
12636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
dcc1b6ad
VS
12644 { ac_try='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
a848cd7e
SC
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 eval "$as_ac_Header=yes"
12658else
12659 echo "$as_me: failed program was:" >&5
12660sed 's/^/| /' conftest.$ac_ext >&5
12661
12662eval "$as_ac_Header=no"
12663fi
12664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665fi
12666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12668if test `eval echo '${'$as_ac_Header'}'` = yes; then
12669 cat >>confdefs.h <<_ACEOF
12670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12671_ACEOF
12672
12673fi
12674
12675done
12676
12677
12678
12679for ac_header in stdlib.h
12680do
12681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12682if eval "test \"\${$as_ac_Header+set}\" = set"; then
12683 echo "$as_me:$LINENO: checking for $ac_header" >&5
12684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12685if eval "test \"\${$as_ac_Header+set}\" = set"; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687fi
12688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12690else
12691 # Is the header compilable?
12692echo "$as_me:$LINENO: checking $ac_header usability" >&5
12693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12694cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700$ac_includes_default
12701#include <$ac_header>
12702_ACEOF
12703rm -f conftest.$ac_objext
12704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
dcc1b6ad
VS
12712 { ac_try='test -z "$ac_c_werror_flag"
12713 || test ! -s conftest.err'
a848cd7e
SC
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_header_compiler=yes
12726else
12727 echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
12730ac_header_compiler=no
12731fi
12732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12734echo "${ECHO_T}$ac_header_compiler" >&6
12735
12736# Is the header present?
12737echo "$as_me:$LINENO: checking $ac_header presence" >&5
12738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12739cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745#include <$ac_header>
12746_ACEOF
12747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } >/dev/null; then
12755 if test -s conftest.err; then
12756 ac_cpp_err=$ac_c_preproc_warn_flag
12757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12758 else
12759 ac_cpp_err=
12760 fi
12761else
12762 ac_cpp_err=yes
12763fi
12764if test -z "$ac_cpp_err"; then
12765 ac_header_preproc=yes
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 ac_header_preproc=no
12771fi
12772rm -f conftest.err conftest.$ac_ext
12773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774echo "${ECHO_T}$ac_header_preproc" >&6
12775
12776# So? What about this header?
12777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12778 yes:no: )
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12783 ac_header_preproc=yes
12784 ;;
12785 no:yes:* )
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12798 (
12799 cat <<\_ASBOX
12800## ----------------------------------------- ##
12801## Report this to wx-dev@lists.wxwindows.org ##
12802## ----------------------------------------- ##
12803_ASBOX
12804 ) |
12805 sed "s/^/$as_me: WARNING: /" >&2
12806 ;;
12807esac
12808echo "$as_me:$LINENO: checking for $ac_header" >&5
12809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12810if eval "test \"\${$as_ac_Header+set}\" = set"; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812else
12813 eval "$as_ac_Header=\$ac_header_preproc"
12814fi
12815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12817
12818fi
12819if test `eval echo '${'$as_ac_Header'}'` = yes; then
12820 cat >>confdefs.h <<_ACEOF
12821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12822_ACEOF
12823
12824fi
12825
12826done
12827
12828
12829for ac_header in malloc.h
12830do
12831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832if eval "test \"\${$as_ac_Header+set}\" = set"; then
12833 echo "$as_me:$LINENO: checking for $ac_header" >&5
12834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12835if eval "test \"\${$as_ac_Header+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837fi
12838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12840else
12841 # Is the header compilable?
12842echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12844cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850$ac_includes_default
12851#include <$ac_header>
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
dcc1b6ad
VS
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
a848cd7e
SC
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest.$ac_objext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_header_compiler=yes
12876else
12877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880ac_header_compiler=no
12881fi
12882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12883echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12884echo "${ECHO_T}$ac_header_compiler" >&6
12885
12886# Is the header present?
12887echo "$as_me:$LINENO: checking $ac_header presence" >&5
12888echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12889cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895#include <$ac_header>
12896_ACEOF
12897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } >/dev/null; then
12905 if test -s conftest.err; then
12906 ac_cpp_err=$ac_c_preproc_warn_flag
12907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12908 else
12909 ac_cpp_err=
12910 fi
12911else
12912 ac_cpp_err=yes
12913fi
12914if test -z "$ac_cpp_err"; then
12915 ac_header_preproc=yes
12916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 ac_header_preproc=no
12921fi
12922rm -f conftest.err conftest.$ac_ext
12923echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12924echo "${ECHO_T}$ac_header_preproc" >&6
12925
12926# So? What about this header?
12927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12928 yes:no: )
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12930echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12932echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12933 ac_header_preproc=yes
12934 ;;
12935 no:yes:* )
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12937echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12939echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12941echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12943echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12947echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12948 (
12949 cat <<\_ASBOX
12950## ----------------------------------------- ##
12951## Report this to wx-dev@lists.wxwindows.org ##
12952## ----------------------------------------- ##
12953_ASBOX
12954 ) |
12955 sed "s/^/$as_me: WARNING: /" >&2
12956 ;;
12957esac
12958echo "$as_me:$LINENO: checking for $ac_header" >&5
12959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
12963 eval "$as_ac_Header=\$ac_header_preproc"
12964fi
12965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12967
12968fi
12969if test `eval echo '${'$as_ac_Header'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12972_ACEOF
12973
12974fi
12975
12976done
12977
12978
12979for ac_header in unistd.h
12980do
12981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12982if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983 echo "$as_me:$LINENO: checking for $ac_header" >&5
12984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12985if eval "test \"\${$as_ac_Header+set}\" = set"; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987fi
12988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12990else
12991 # Is the header compilable?
12992echo "$as_me:$LINENO: checking $ac_header usability" >&5
12993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12994cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000$ac_includes_default
13001#include <$ac_header>
13002_ACEOF
13003rm -f conftest.$ac_objext
13004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>conftest.er1
13006 ac_status=$?
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
dcc1b6ad
VS
13012 { ac_try='test -z "$ac_c_werror_flag"
13013 || test ! -s conftest.err'
a848cd7e
SC
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest.$ac_objext'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_header_compiler=yes
13026else
13027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030ac_header_compiler=no
13031fi
13032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13034echo "${ECHO_T}$ac_header_compiler" >&6
13035
13036# Is the header present?
13037echo "$as_me:$LINENO: checking $ac_header presence" >&5
13038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13039cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
13045#include <$ac_header>
13046_ACEOF
13047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } >/dev/null; then
13055 if test -s conftest.err; then
13056 ac_cpp_err=$ac_c_preproc_warn_flag
13057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13058 else
13059 ac_cpp_err=
13060 fi
13061else
13062 ac_cpp_err=yes
13063fi
13064if test -z "$ac_cpp_err"; then
13065 ac_header_preproc=yes
13066else
13067 echo "$as_me: failed program was:" >&5
13068sed 's/^/| /' conftest.$ac_ext >&5
13069
13070 ac_header_preproc=no
13071fi
13072rm -f conftest.err conftest.$ac_ext
13073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13074echo "${ECHO_T}$ac_header_preproc" >&6
13075
13076# So? What about this header?
13077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13078 yes:no: )
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13083 ac_header_preproc=yes
13084 ;;
13085 no:yes:* )
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13098 (
13099 cat <<\_ASBOX
13100## ----------------------------------------- ##
13101## Report this to wx-dev@lists.wxwindows.org ##
13102## ----------------------------------------- ##
13103_ASBOX
13104 ) |
13105 sed "s/^/$as_me: WARNING: /" >&2
13106 ;;
13107esac
13108echo "$as_me:$LINENO: checking for $ac_header" >&5
13109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13110if eval "test \"\${$as_ac_Header+set}\" = set"; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112else
13113 eval "$as_ac_Header=\$ac_header_preproc"
13114fi
13115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13117
13118fi
13119if test `eval echo '${'$as_ac_Header'}'` = yes; then
13120 cat >>confdefs.h <<_ACEOF
13121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13122_ACEOF
13123
13124fi
13125
13126done
13127
13128
13129for ac_header in wchar.h
13130do
13131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13132if eval "test \"\${$as_ac_Header+set}\" = set"; then
13133 echo "$as_me:$LINENO: checking for $ac_header" >&5
13134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13135if eval "test \"\${$as_ac_Header+set}\" = set"; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13137fi
13138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13140else
13141 # Is the header compilable?
13142echo "$as_me:$LINENO: checking $ac_header usability" >&5
13143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13144cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h. */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h. */
13150$ac_includes_default
13151#include <$ac_header>
13152_ACEOF
13153rm -f conftest.$ac_objext
13154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
dcc1b6ad
VS
13162 { ac_try='test -z "$ac_c_werror_flag"
13163 || test ! -s conftest.err'
a848cd7e
SC
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest.$ac_objext'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_header_compiler=yes
13176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180ac_header_compiler=no
13181fi
13182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13184echo "${ECHO_T}$ac_header_compiler" >&6
13185
13186# Is the header present?
13187echo "$as_me:$LINENO: checking $ac_header presence" >&5
13188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13189cat >conftest.$ac_ext <<_ACEOF
13190/* confdefs.h. */
13191_ACEOF
13192cat confdefs.h >>conftest.$ac_ext
13193cat >>conftest.$ac_ext <<_ACEOF
13194/* end confdefs.h. */
13195#include <$ac_header>
13196_ACEOF
13197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } >/dev/null; then
13205 if test -s conftest.err; then
13206 ac_cpp_err=$ac_c_preproc_warn_flag
13207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13208 else
13209 ac_cpp_err=
13210 fi
13211else
13212 ac_cpp_err=yes
13213fi
13214if test -z "$ac_cpp_err"; then
13215 ac_header_preproc=yes
13216else
13217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_header_preproc=no
13221fi
13222rm -f conftest.err conftest.$ac_ext
13223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13224echo "${ECHO_T}$ac_header_preproc" >&6
13225
13226# So? What about this header?
13227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13228 yes:no: )
13229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13233 ac_header_preproc=yes
13234 ;;
13235 no:yes:* )
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13248 (
13249 cat <<\_ASBOX
13250## ----------------------------------------- ##
13251## Report this to wx-dev@lists.wxwindows.org ##
13252## ----------------------------------------- ##
13253_ASBOX
13254 ) |
13255 sed "s/^/$as_me: WARNING: /" >&2
13256 ;;
13257esac
13258echo "$as_me:$LINENO: checking for $ac_header" >&5
13259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260if eval "test \"\${$as_ac_Header+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262else
13263 eval "$as_ac_Header=\$ac_header_preproc"
13264fi
13265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13267
13268fi
13269if test `eval echo '${'$as_ac_Header'}'` = yes; then
13270 cat >>confdefs.h <<_ACEOF
13271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13272_ACEOF
13273
13274fi
13275
13276done
13277
13278
13279if test "$ac_cv_header_wchar_h" != "yes"; then
13280
13281for ac_header in wcstr.h
13282do
13283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13284if eval "test \"\${$as_ac_Header+set}\" = set"; then
13285 echo "$as_me:$LINENO: checking for $ac_header" >&5
13286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13287if eval "test \"\${$as_ac_Header+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289fi
13290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13292else
13293 # Is the header compilable?
13294echo "$as_me:$LINENO: checking $ac_header usability" >&5
13295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13296cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h. */
13302$ac_includes_default
13303#include <$ac_header>
13304_ACEOF
13305rm -f conftest.$ac_objext
13306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307 (eval $ac_compile) 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
dcc1b6ad
VS
13314 { ac_try='test -z "$ac_c_werror_flag"
13315 || test ! -s conftest.err'
a848cd7e
SC
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } &&
13321 { ac_try='test -s conftest.$ac_objext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_header_compiler=yes
13328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332ac_header_compiler=no
13333fi
13334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13336echo "${ECHO_T}$ac_header_compiler" >&6
13337
13338# Is the header present?
13339echo "$as_me:$LINENO: checking $ac_header presence" >&5
13340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13341cat >conftest.$ac_ext <<_ACEOF
13342/* confdefs.h. */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h. */
13347#include <$ac_header>
13348_ACEOF
13349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } >/dev/null; then
13357 if test -s conftest.err; then
13358 ac_cpp_err=$ac_c_preproc_warn_flag
13359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13360 else
13361 ac_cpp_err=
13362 fi
13363else
13364 ac_cpp_err=yes
13365fi
13366if test -z "$ac_cpp_err"; then
13367 ac_header_preproc=yes
13368else
13369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
13371
13372 ac_header_preproc=no
13373fi
13374rm -f conftest.err conftest.$ac_ext
13375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13376echo "${ECHO_T}$ac_header_preproc" >&6
13377
13378# So? What about this header?
13379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13380 yes:no: )
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13385 ac_header_preproc=yes
13386 ;;
13387 no:yes:* )
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13400 (
13401 cat <<\_ASBOX
13402## ----------------------------------------- ##
13403## Report this to wx-dev@lists.wxwindows.org ##
13404## ----------------------------------------- ##
13405_ASBOX
13406 ) |
13407 sed "s/^/$as_me: WARNING: /" >&2
13408 ;;
13409esac
13410echo "$as_me:$LINENO: checking for $ac_header" >&5
13411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13412if eval "test \"\${$as_ac_Header+set}\" = set"; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414else
13415 eval "$as_ac_Header=\$ac_header_preproc"
13416fi
13417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13419
13420fi
13421if test `eval echo '${'$as_ac_Header'}'` = yes; then
13422 cat >>confdefs.h <<_ACEOF
13423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13424_ACEOF
13425
13426fi
13427
13428done
13429
13430fi
13431
13432
13433for ac_header in fnmatch.h
13434do
13435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13436if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437 echo "$as_me:$LINENO: checking for $ac_header" >&5
13438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13439if eval "test \"\${$as_ac_Header+set}\" = set"; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441fi
13442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13444else
13445 # Is the header compilable?
13446echo "$as_me:$LINENO: checking $ac_header usability" >&5
13447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13448cat >conftest.$ac_ext <<_ACEOF
13449/* confdefs.h. */
13450_ACEOF
13451cat confdefs.h >>conftest.$ac_ext
13452cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h. */
13454$ac_includes_default
13455#include <$ac_header>
13456_ACEOF
13457rm -f conftest.$ac_objext
13458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
dcc1b6ad
VS
13466 { ac_try='test -z "$ac_c_werror_flag"
13467 || test ! -s conftest.err'
a848cd7e
SC
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_header_compiler=yes
13480else
13481 echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
13483
13484ac_header_compiler=no
13485fi
13486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13488echo "${ECHO_T}$ac_header_compiler" >&6
13489
13490# Is the header present?
13491echo "$as_me:$LINENO: checking $ac_header presence" >&5
13492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499#include <$ac_header>
13500_ACEOF
13501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_c_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13512 else
13513 ac_cpp_err=
13514 fi
13515else
13516 ac_cpp_err=yes
13517fi
13518if test -z "$ac_cpp_err"; then
13519 ac_header_preproc=yes
13520else
13521 echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 ac_header_preproc=no
13525fi
13526rm -f conftest.err conftest.$ac_ext
13527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13528echo "${ECHO_T}$ac_header_preproc" >&6
13529
13530# So? What about this header?
13531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13532 yes:no: )
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13537 ac_header_preproc=yes
13538 ;;
13539 no:yes:* )
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13552 (
13553 cat <<\_ASBOX
13554## ----------------------------------------- ##
13555## Report this to wx-dev@lists.wxwindows.org ##
13556## ----------------------------------------- ##
13557_ASBOX
13558 ) |
13559 sed "s/^/$as_me: WARNING: /" >&2
13560 ;;
13561esac
13562echo "$as_me:$LINENO: checking for $ac_header" >&5
13563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13564if eval "test \"\${$as_ac_Header+set}\" = set"; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566else
13567 eval "$as_ac_Header=\$ac_header_preproc"
13568fi
13569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13571
13572fi
13573if test `eval echo '${'$as_ac_Header'}'` = yes; then
13574 cat >>confdefs.h <<_ACEOF
13575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13576_ACEOF
13577
13578fi
13579
13580done
13581
13582
13583if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13584
13585for ac_func in fnmatch
13586do
13587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588echo "$as_me:$LINENO: checking for $ac_func" >&5
13589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13590if eval "test \"\${$as_ac_var+set}\" = set"; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592else
13593 cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601#define $ac_func innocuous_$ac_func
13602
13603/* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13607
13608#ifdef __STDC__
13609# include <limits.h>
13610#else
13611# include <assert.h>
13612#endif
13613
13614#undef $ac_func
13615
13616/* Override any gcc2 internal prototype to avoid an error. */
13617#ifdef __cplusplus
13618extern "C"
13619{
13620#endif
13621/* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13623char $ac_func ();
13624/* The GNU C library defines this for functions which it implements
13625 to always fail with ENOSYS. Some functions are actually named
13626 something starting with __ and the normal name is an alias. */
13627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13628choke me
13629#else
13630char (*f) () = $ac_func;
13631#endif
13632#ifdef __cplusplus
13633}
13634#endif
13635
13636int
13637main ()
13638{
13639return f != $ac_func;
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext conftest$ac_exeext
13645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13646 (eval $ac_link) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
dcc1b6ad
VS
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
a848cd7e
SC
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 eval "$as_ac_var=yes"
13667else
13668 echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
13671eval "$as_ac_var=no"
13672fi
13673rm -f conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675fi
13676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678if test `eval echo '${'$as_ac_var'}'` = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681_ACEOF
13682
13683fi
13684done
13685
13686fi
13687
13688
13689for ac_header in langinfo.h
13690do
13691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13692if eval "test \"\${$as_ac_Header+set}\" = set"; then
13693 echo "$as_me:$LINENO: checking for $ac_header" >&5
13694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13695if eval "test \"\${$as_ac_Header+set}\" = set"; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697fi
13698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13700else
13701 # Is the header compilable?
13702echo "$as_me:$LINENO: checking $ac_header usability" >&5
13703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13704cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710$ac_includes_default
13711#include <$ac_header>
13712_ACEOF
13713rm -f conftest.$ac_objext
13714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
dcc1b6ad
VS
13722 { ac_try='test -z "$ac_c_werror_flag"
13723 || test ! -s conftest.err'
a848cd7e
SC
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_header_compiler=yes
13736else
13737 echo "$as_me: failed program was:" >&5
13738sed 's/^/| /' conftest.$ac_ext >&5
13739
13740ac_header_compiler=no
13741fi
13742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744echo "${ECHO_T}$ac_header_compiler" >&6
13745
13746# Is the header present?
13747echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13749cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755#include <$ac_header>
13756_ACEOF
13757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } >/dev/null; then
13765 if test -s conftest.err; then
13766 ac_cpp_err=$ac_c_preproc_warn_flag
13767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13768 else
13769 ac_cpp_err=
13770 fi
13771else
13772 ac_cpp_err=yes
13773fi
13774if test -z "$ac_cpp_err"; then
13775 ac_header_preproc=yes
13776else
13777 echo "$as_me: failed program was:" >&5
13778sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 ac_header_preproc=no
13781fi
13782rm -f conftest.err conftest.$ac_ext
13783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784echo "${ECHO_T}$ac_header_preproc" >&6
13785
13786# So? What about this header?
13787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788 yes:no: )
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13794 ;;
13795 no:yes:* )
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808 (
13809 cat <<\_ASBOX
13810## ----------------------------------------- ##
13811## Report this to wx-dev@lists.wxwindows.org ##
13812## ----------------------------------------- ##
13813_ASBOX
13814 ) |
13815 sed "s/^/$as_me: WARNING: /" >&2
13816 ;;
13817esac
13818echo "$as_me:$LINENO: checking for $ac_header" >&5
13819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13820if eval "test \"\${$as_ac_Header+set}\" = set"; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822else
13823 eval "$as_ac_Header=\$ac_header_preproc"
13824fi
13825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13827
13828fi
13829if test `eval echo '${'$as_ac_Header'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832_ACEOF
13833
13834fi
13835
13836done
13837
13838
13839case "${host}" in
13840 *-pc-os2_emx | *-pc-os2-emx )
13841 if test $ac_cv_header_langinfo_h = "yes"; then
13842 LIBS="$LIBS -lintl"
13843 fi
13844 ;;
13845esac
13846
13847if test "$wxUSE_GUI" = "yes"; then
13848 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13849
13850for ac_header in X11/Xlib.h
13851do
13852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13853if eval "test \"\${$as_ac_Header+set}\" = set"; then
13854 echo "$as_me:$LINENO: checking for $ac_header" >&5
13855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13856if eval "test \"\${$as_ac_Header+set}\" = set"; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858fi
13859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13861else
13862 # Is the header compilable?
13863echo "$as_me:$LINENO: checking $ac_header usability" >&5
13864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13865cat >conftest.$ac_ext <<_ACEOF
13866/* confdefs.h. */
13867_ACEOF
13868cat confdefs.h >>conftest.$ac_ext
13869cat >>conftest.$ac_ext <<_ACEOF
13870/* end confdefs.h. */
13871$ac_includes_default
13872#include <$ac_header>
13873_ACEOF
13874rm -f conftest.$ac_objext
13875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876 (eval $ac_compile) 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
dcc1b6ad
VS
13883 { ac_try='test -z "$ac_c_werror_flag"
13884 || test ! -s conftest.err'
a848cd7e
SC
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest.$ac_objext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_header_compiler=yes
13897else
13898 echo "$as_me: failed program was:" >&5
13899sed 's/^/| /' conftest.$ac_ext >&5
13900
13901ac_header_compiler=no
13902fi
13903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13905echo "${ECHO_T}$ac_header_compiler" >&6
13906
13907# Is the header present?
13908echo "$as_me:$LINENO: checking $ac_header presence" >&5
13909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13910cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
13916#include <$ac_header>
13917_ACEOF
13918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } >/dev/null; then
13926 if test -s conftest.err; then
13927 ac_cpp_err=$ac_c_preproc_warn_flag
13928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13929 else
13930 ac_cpp_err=
13931 fi
13932else
13933 ac_cpp_err=yes
13934fi
13935if test -z "$ac_cpp_err"; then
13936 ac_header_preproc=yes
13937else
13938 echo "$as_me: failed program was:" >&5
13939sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_header_preproc=no
13942fi
13943rm -f conftest.err conftest.$ac_ext
13944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945echo "${ECHO_T}$ac_header_preproc" >&6
13946
13947# So? What about this header?
13948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13949 yes:no: )
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13954 ac_header_preproc=yes
13955 ;;
13956 no:yes:* )
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13969 (
13970 cat <<\_ASBOX
13971## ----------------------------------------- ##
13972## Report this to wx-dev@lists.wxwindows.org ##
13973## ----------------------------------------- ##
13974_ASBOX
13975 ) |
13976 sed "s/^/$as_me: WARNING: /" >&2
13977 ;;
13978esac
13979echo "$as_me:$LINENO: checking for $ac_header" >&5
13980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13981if eval "test \"\${$as_ac_Header+set}\" = set"; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984 eval "$as_ac_Header=\$ac_header_preproc"
13985fi
13986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13988
13989fi
13990if test `eval echo '${'$as_ac_Header'}'` = yes; then
13991 cat >>confdefs.h <<_ACEOF
13992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13993_ACEOF
13994
13995fi
13996
13997done
13998
13999
14000for ac_header in X11/XKBlib.h
14001do
14002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003echo "$as_me:$LINENO: checking for $ac_header" >&5
14004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 cat >conftest.$ac_ext <<_ACEOF
14009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h. */
14014
14015 #if HAVE_X11_XLIB_H
14016 #include <X11/Xlib.h>
14017 #endif
14018
14019
14020#include <$ac_header>
14021_ACEOF
14022rm -f conftest.$ac_objext
14023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
dcc1b6ad
VS
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
a848cd7e
SC
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest.$ac_objext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 eval "$as_ac_Header=yes"
14045else
14046 echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049eval "$as_ac_Header=no"
14050fi
14051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052fi
14053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14055if test `eval echo '${'$as_ac_Header'}'` = yes; then
14056 cat >>confdefs.h <<_ACEOF
14057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14058_ACEOF
14059
14060fi
14061
14062done
14063
14064 fi
14065fi
14066
14067
14068echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14069echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14070if test "${ac_cv_c_const+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073 cat >conftest.$ac_ext <<_ACEOF
14074/* confdefs.h. */
14075_ACEOF
14076cat confdefs.h >>conftest.$ac_ext
14077cat >>conftest.$ac_ext <<_ACEOF
14078/* end confdefs.h. */
14079
14080int
14081main ()
14082{
14083/* FIXME: Include the comments suggested by Paul. */
14084#ifndef __cplusplus
14085 /* Ultrix mips cc rejects this. */
14086 typedef int charset[2];
14087 const charset x;
14088 /* SunOS 4.1.1 cc rejects this. */
14089 char const *const *ccp;
14090 char **p;
14091 /* NEC SVR4.0.2 mips cc rejects this. */
14092 struct point {int x, y;};
14093 static struct point const zero = {0,0};
14094 /* AIX XL C 1.02.0.0 rejects this.
14095 It does not let you subtract one const X* pointer from another in
14096 an arm of an if-expression whose if-part is not a constant
14097 expression */
14098 const char *g = "string";
14099 ccp = &g + (g ? g-g : 0);
14100 /* HPUX 7.0 cc rejects these. */
14101 ++ccp;
14102 p = (char**) ccp;
14103 ccp = (char const *const *) p;
14104 { /* SCO 3.2v4 cc rejects this. */
14105 char *t;
14106 char const *s = 0 ? (char *) 0 : (char const *) 0;
14107
14108 *t++ = 0;
14109 }
14110 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14111 int x[] = {25, 17};
14112 const int *foo = &x[0];
14113 ++foo;
14114 }
14115 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14116 typedef const int *iptr;
14117 iptr p = 0;
14118 ++p;
14119 }
14120 { /* AIX XL C 1.02.0.0 rejects this saying
14121 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14122 struct s { int j; const int *ap[3]; };
14123 struct s *b; b->j = 5;
14124 }
14125 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14126 const int foo = 10;
14127 }
14128#endif
14129
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134rm -f conftest.$ac_objext
14135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136 (eval $ac_compile) 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
dcc1b6ad
VS
14143 { ac_try='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
a848cd7e
SC
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_c_const=yes
14157else
14158 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5
14160
14161ac_cv_c_const=no
14162fi
14163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14164fi
14165echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14166echo "${ECHO_T}$ac_cv_c_const" >&6
14167if test $ac_cv_c_const = no; then
14168
14169cat >>confdefs.h <<\_ACEOF
14170#define const
14171_ACEOF
14172
14173fi
14174
14175echo "$as_me:$LINENO: checking for inline" >&5
14176echo $ECHO_N "checking for inline... $ECHO_C" >&6
14177if test "${ac_cv_c_inline+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180 ac_cv_c_inline=no
14181for ac_kw in inline __inline__ __inline; do
14182 cat >conftest.$ac_ext <<_ACEOF
14183/* confdefs.h. */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
14187/* end confdefs.h. */
14188#ifndef __cplusplus
14189typedef int foo_t;
14190static $ac_kw foo_t static_foo () {return 0; }
14191$ac_kw foo_t foo () {return 0; }
14192#endif
14193
14194_ACEOF
14195rm -f conftest.$ac_objext
14196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
dcc1b6ad
VS
14204 { ac_try='test -z "$ac_c_werror_flag"
14205 || test ! -s conftest.err'
a848cd7e
SC
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_c_inline=$ac_kw; break
14218else
14219 echo "$as_me: failed program was:" >&5
14220sed 's/^/| /' conftest.$ac_ext >&5
14221
14222fi
14223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14224done
14225
14226fi
14227echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14228echo "${ECHO_T}$ac_cv_c_inline" >&6
14229
14230
14231case $ac_cv_c_inline in
14232 inline | yes) ;;
14233 *)
14234 case $ac_cv_c_inline in
14235 no) ac_val=;;
14236 *) ac_val=$ac_cv_c_inline;;
14237 esac
14238 cat >>confdefs.h <<_ACEOF
14239#ifndef __cplusplus
14240#define inline $ac_val
14241#endif
14242_ACEOF
14243 ;;
14244esac
14245
14246
14247echo "$as_me:$LINENO: checking for char" >&5
14248echo $ECHO_N "checking for char... $ECHO_C" >&6
14249if test "${ac_cv_type_char+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252 cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258$ac_includes_default
14259int
14260main ()
14261{
14262if ((char *) 0)
14263 return 0;
14264if (sizeof (char))
14265 return 0;
14266 ;
14267 return 0;
14268}
14269_ACEOF
14270rm -f conftest.$ac_objext
14271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
dcc1b6ad
VS
14279 { ac_try='test -z "$ac_c_werror_flag"
14280 || test ! -s conftest.err'
a848cd7e
SC
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest.$ac_objext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_type_char=yes
14293else
14294 echo "$as_me: failed program was:" >&5
14295sed 's/^/| /' conftest.$ac_ext >&5
14296
14297ac_cv_type_char=no
14298fi
14299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300fi
14301echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14302echo "${ECHO_T}$ac_cv_type_char" >&6
14303
14304echo "$as_me:$LINENO: checking size of char" >&5
14305echo $ECHO_N "checking size of char... $ECHO_C" >&6
14306if test "${ac_cv_sizeof_char+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308else
14309 if test "$ac_cv_type_char" = yes; then
14310 # The cast to unsigned long works around a bug in the HP C Compiler
14311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14313 # This bug is HP SR number 8606223364.
14314 if test "$cross_compiling" = yes; then
14315 # Depending upon the size, compute the lo and hi bounds.
14316cat >conftest.$ac_ext <<_ACEOF
14317/* confdefs.h. */
14318_ACEOF
14319cat confdefs.h >>conftest.$ac_ext
14320cat >>conftest.$ac_ext <<_ACEOF
14321/* end confdefs.h. */
14322$ac_includes_default
14323int
14324main ()
14325{
14326static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14327test_array [0] = 0
14328
14329 ;
14330 return 0;
14331}
14332_ACEOF
14333rm -f conftest.$ac_objext
14334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335 (eval $ac_compile) 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
dcc1b6ad
VS
14342 { ac_try='test -z "$ac_c_werror_flag"
14343 || test ! -s conftest.err'
a848cd7e
SC
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_lo=0 ac_mid=0
14356 while :; do
14357 cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
14363$ac_includes_default
14364int
14365main ()
14366{
14367static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14368test_array [0] = 0
14369
14370 ;
14371 return 0;
14372}
14373_ACEOF
14374rm -f conftest.$ac_objext
14375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
dcc1b6ad
VS
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
a848cd7e
SC
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_hi=$ac_mid; break
14397else
14398 echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
14401ac_lo=`expr $ac_mid + 1`
14402 if test $ac_lo -le $ac_mid; then
14403 ac_lo= ac_hi=
14404 break
14405 fi
14406 ac_mid=`expr 2 '*' $ac_mid + 1`
14407fi
14408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14409 done
14410else
14411 echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
14414cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
14420$ac_includes_default
14421int
14422main ()
14423{
14424static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14425test_array [0] = 0
14426
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431rm -f conftest.$ac_objext
14432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433 (eval $ac_compile) 2>conftest.er1
14434 ac_status=$?
14435 grep -v '^ *+' conftest.er1 >conftest.err
14436 rm -f conftest.er1
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
dcc1b6ad
VS
14440 { ac_try='test -z "$ac_c_werror_flag"
14441 || test ! -s conftest.err'
a848cd7e
SC
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 ac_hi=-1 ac_mid=-1
14454 while :; do
14455 cat >conftest.$ac_ext <<_ACEOF
14456/* confdefs.h. */
14457_ACEOF
14458cat confdefs.h >>conftest.$ac_ext
14459cat >>conftest.$ac_ext <<_ACEOF
14460/* end confdefs.h. */
14461$ac_includes_default
14462int
14463main ()
14464{
14465static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14466test_array [0] = 0
14467
14468 ;
14469 return 0;
14470}
14471_ACEOF
14472rm -f conftest.$ac_objext
14473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
dcc1b6ad
VS
14481 { ac_try='test -z "$ac_c_werror_flag"
14482 || test ! -s conftest.err'
a848cd7e
SC
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 ac_lo=$ac_mid; break
14495else
14496 echo "$as_me: failed program was:" >&5
14497sed 's/^/| /' conftest.$ac_ext >&5
14498
14499ac_hi=`expr '(' $ac_mid ')' - 1`
14500 if test $ac_mid -le $ac_hi; then
14501 ac_lo= ac_hi=
14502 break
14503 fi
14504 ac_mid=`expr 2 '*' $ac_mid`
14505fi
14506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14507 done
14508else
14509 echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512ac_lo= ac_hi=
14513fi
14514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515fi
14516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14517# Binary search between lo and hi bounds.
14518while test "x$ac_lo" != "x$ac_hi"; do
14519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14520 cat >conftest.$ac_ext <<_ACEOF
14521/* confdefs.h. */
14522_ACEOF
14523cat confdefs.h >>conftest.$ac_ext
14524cat >>conftest.$ac_ext <<_ACEOF
14525/* end confdefs.h. */
14526$ac_includes_default
14527int
14528main ()
14529{
14530static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14531test_array [0] = 0
14532
14533 ;
14534 return 0;
14535}
14536_ACEOF
14537rm -f conftest.$ac_objext
14538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
dcc1b6ad
VS
14546 { ac_try='test -z "$ac_c_werror_flag"
14547 || test ! -s conftest.err'
a848cd7e
SC
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_hi=$ac_mid
14560else
14561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564ac_lo=`expr '(' $ac_mid ')' + 1`
14565fi
14566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14567done
14568case $ac_lo in
14569?*) ac_cv_sizeof_char=$ac_lo;;
14570'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14571See \`config.log' for more details." >&5
14572echo "$as_me: error: cannot compute sizeof (char), 77
14573See \`config.log' for more details." >&2;}
14574 { (exit 1); exit 1; }; } ;;
14575esac
14576else
14577 if test "$cross_compiling" = yes; then
14578 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14579See \`config.log' for more details." >&5
14580echo "$as_me: error: cannot run test program while cross compiling
14581See \`config.log' for more details." >&2;}
14582 { (exit 1); exit 1; }; }
14583else
14584 cat >conftest.$ac_ext <<_ACEOF
14585/* confdefs.h. */
14586_ACEOF
14587cat confdefs.h >>conftest.$ac_ext
14588cat >>conftest.$ac_ext <<_ACEOF
14589/* end confdefs.h. */
14590$ac_includes_default
14591long longval () { return (long) (sizeof (char)); }
14592unsigned long ulongval () { return (long) (sizeof (char)); }
14593#include <stdio.h>
14594#include <stdlib.h>
14595int
14596main ()
14597{
14598
14599 FILE *f = fopen ("conftest.val", "w");
14600 if (! f)
14601 exit (1);
14602 if (((long) (sizeof (char))) < 0)
14603 {
14604 long i = longval ();
14605 if (i != ((long) (sizeof (char))))
14606 exit (1);
14607 fprintf (f, "%ld\n", i);
14608 }
14609 else
14610 {
14611 unsigned long i = ulongval ();
14612 if (i != ((long) (sizeof (char))))
14613 exit (1);
14614 fprintf (f, "%lu\n", i);
14615 }
14616 exit (ferror (f) || fclose (f) != 0);
14617
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622rm -f conftest$ac_exeext
14623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_sizeof_char=`cat conftest.val`
14634else
14635 echo "$as_me: program exited with status $ac_status" >&5
14636echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639( exit $ac_status )
14640{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14641See \`config.log' for more details." >&5
14642echo "$as_me: error: cannot compute sizeof (char), 77
14643See \`config.log' for more details." >&2;}
14644 { (exit 1); exit 1; }; }
14645fi
14646rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14647fi
14648fi
14649rm -f conftest.val
14650else
14651 ac_cv_sizeof_char=0
14652fi
14653fi
14654echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14655echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14656cat >>confdefs.h <<_ACEOF
14657#define SIZEOF_CHAR $ac_cv_sizeof_char
14658_ACEOF
14659
14660
14661echo "$as_me:$LINENO: checking for short" >&5
14662echo $ECHO_N "checking for short... $ECHO_C" >&6
14663if test "${ac_cv_type_short+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 cat >conftest.$ac_ext <<_ACEOF
14667/* confdefs.h. */
14668_ACEOF
14669cat confdefs.h >>conftest.$ac_ext
14670cat >>conftest.$ac_ext <<_ACEOF
14671/* end confdefs.h. */
14672$ac_includes_default
14673int
14674main ()
14675{
14676if ((short *) 0)
14677 return 0;
14678if (sizeof (short))
14679 return 0;
14680 ;
14681 return 0;
14682}
14683_ACEOF
14684rm -f conftest.$ac_objext
14685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
dcc1b6ad
VS
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
a848cd7e
SC
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_type_short=yes
14707else
14708 echo "$as_me: failed program was:" >&5
14709sed 's/^/| /' conftest.$ac_ext >&5
14710
14711ac_cv_type_short=no
14712fi
14713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714fi
14715echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14716echo "${ECHO_T}$ac_cv_type_short" >&6
14717
14718echo "$as_me:$LINENO: checking size of short" >&5
14719echo $ECHO_N "checking size of short... $ECHO_C" >&6
14720if test "${ac_cv_sizeof_short+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
14723 if test "$ac_cv_type_short" = yes; then
14724 # The cast to unsigned long works around a bug in the HP C Compiler
14725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14727 # This bug is HP SR number 8606223364.
14728 if test "$cross_compiling" = yes; then
14729 # Depending upon the size, compute the lo and hi bounds.
14730cat >conftest.$ac_ext <<_ACEOF
14731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
14736$ac_includes_default
14737int
14738main ()
14739{
14740static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14741test_array [0] = 0
14742
14743 ;
14744 return 0;
14745}
14746_ACEOF
14747rm -f conftest.$ac_objext
14748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749 (eval $ac_compile) 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
dcc1b6ad
VS
14756 { ac_try='test -z "$ac_c_werror_flag"
14757 || test ! -s conftest.err'
a848cd7e
SC
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_lo=0 ac_mid=0
14770 while :; do
14771 cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777$ac_includes_default
14778int
14779main ()
14780{
14781static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14782test_array [0] = 0
14783
14784 ;
14785 return 0;
14786}
14787_ACEOF
14788rm -f conftest.$ac_objext
14789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
dcc1b6ad
VS
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
a848cd7e
SC
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_hi=$ac_mid; break
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815ac_lo=`expr $ac_mid + 1`
14816 if test $ac_lo -le $ac_mid; then
14817 ac_lo= ac_hi=
14818 break
14819 fi
14820 ac_mid=`expr 2 '*' $ac_mid + 1`
14821fi
14822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 done
14824else
14825 echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h. */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h. */
14834$ac_includes_default
14835int
14836main ()
14837{
14838static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14839test_array [0] = 0
14840
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext
14846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847 (eval $ac_compile) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
dcc1b6ad
VS
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
a848cd7e
SC
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_hi=-1 ac_mid=-1
14868 while :; do
14869 cat >conftest.$ac_ext <<_ACEOF
14870/* confdefs.h. */
14871_ACEOF
14872cat confdefs.h >>conftest.$ac_ext
14873cat >>conftest.$ac_ext <<_ACEOF
14874/* end confdefs.h. */
14875$ac_includes_default
14876int
14877main ()
14878{
14879static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14880test_array [0] = 0
14881
14882 ;
14883 return 0;
14884}
14885_ACEOF
14886rm -f conftest.$ac_objext
14887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
dcc1b6ad
VS
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
a848cd7e
SC
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_lo=$ac_mid; break
14909else
14910 echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913ac_hi=`expr '(' $ac_mid ')' - 1`
14914 if test $ac_mid -le $ac_hi; then
14915 ac_lo= ac_hi=
14916 break
14917 fi
14918 ac_mid=`expr 2 '*' $ac_mid`
14919fi
14920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14921 done
14922else
14923 echo "$as_me: failed program was:" >&5
14924sed 's/^/| /' conftest.$ac_ext >&5
14925
14926ac_lo= ac_hi=
14927fi
14928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14929fi
14930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931# Binary search between lo and hi bounds.
14932while test "x$ac_lo" != "x$ac_hi"; do
14933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14934 cat >conftest.$ac_ext <<_ACEOF
14935/* confdefs.h. */
14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h. */
14940$ac_includes_default
14941int
14942main ()
14943{
14944static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14945test_array [0] = 0
14946
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953 (eval $ac_compile) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
dcc1b6ad
VS
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
a848cd7e
SC
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_hi=$ac_mid
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978ac_lo=`expr '(' $ac_mid ')' + 1`
14979fi
14980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14981done
14982case $ac_lo in
14983?*) ac_cv_sizeof_short=$ac_lo;;
14984'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14985See \`config.log' for more details." >&5
14986echo "$as_me: error: cannot compute sizeof (short), 77
14987See \`config.log' for more details." >&2;}
14988 { (exit 1); exit 1; }; } ;;
14989esac
14990else
14991 if test "$cross_compiling" = yes; then
14992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14993See \`config.log' for more details." >&5
14994echo "$as_me: error: cannot run test program while cross compiling
14995See \`config.log' for more details." >&2;}
14996 { (exit 1); exit 1; }; }
14997else
14998 cat >conftest.$ac_ext <<_ACEOF
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
15004$ac_includes_default
15005long longval () { return (long) (sizeof (short)); }
15006unsigned long ulongval () { return (long) (sizeof (short)); }
15007#include <stdio.h>
15008#include <stdlib.h>
15009int
15010main ()
15011{
15012
15013 FILE *f = fopen ("conftest.val", "w");
15014 if (! f)
15015 exit (1);
15016 if (((long) (sizeof (short))) < 0)
15017 {
15018 long i = longval ();
15019 if (i != ((long) (sizeof (short))))
15020 exit (1);
15021 fprintf (f, "%ld\n", i);
15022 }
15023 else
15024 {
15025 unsigned long i = ulongval ();
15026 if (i != ((long) (sizeof (short))))
15027 exit (1);
15028 fprintf (f, "%lu\n", i);
15029 }
15030 exit (ferror (f) || fclose (f) != 0);
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036rm -f conftest$ac_exeext
15037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_cv_sizeof_short=`cat conftest.val`
15048else
15049 echo "$as_me: program exited with status $ac_status" >&5
15050echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053( exit $ac_status )
15054{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15055See \`config.log' for more details." >&5
15056echo "$as_me: error: cannot compute sizeof (short), 77
15057See \`config.log' for more details." >&2;}
15058 { (exit 1); exit 1; }; }
15059fi
15060rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15061fi
15062fi
15063rm -f conftest.val
15064else
15065 ac_cv_sizeof_short=0
15066fi
15067fi
15068echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15069echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15070cat >>confdefs.h <<_ACEOF
15071#define SIZEOF_SHORT $ac_cv_sizeof_short
15072_ACEOF
15073
15074
15075echo "$as_me:$LINENO: checking for void *" >&5
15076echo $ECHO_N "checking for void *... $ECHO_C" >&6
15077if test "${ac_cv_type_void_p+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079else
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090if ((void * *) 0)
15091 return 0;
15092if (sizeof (void *))
15093 return 0;
15094 ;
15095 return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext
15099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 (eval $ac_compile) 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
dcc1b6ad
VS
15107 { ac_try='test -z "$ac_c_werror_flag"
15108 || test ! -s conftest.err'
a848cd7e
SC
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_type_void_p=yes
15121else
15122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125ac_cv_type_void_p=no
15126fi
15127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15128fi
15129echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15130echo "${ECHO_T}$ac_cv_type_void_p" >&6
15131
15132echo "$as_me:$LINENO: checking size of void *" >&5
15133echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15134if test "${ac_cv_sizeof_void_p+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136else
15137 if test "$ac_cv_type_void_p" = yes; then
15138 # The cast to unsigned long works around a bug in the HP C Compiler
15139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15141 # This bug is HP SR number 8606223364.
15142 if test "$cross_compiling" = yes; then
15143 # Depending upon the size, compute the lo and hi bounds.
15144cat >conftest.$ac_ext <<_ACEOF
15145/* confdefs.h. */
15146_ACEOF
15147cat confdefs.h >>conftest.$ac_ext
15148cat >>conftest.$ac_ext <<_ACEOF
15149/* end confdefs.h. */
15150$ac_includes_default
15151int
15152main ()
15153{
15154static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15155test_array [0] = 0
15156
15157 ;
15158 return 0;
15159}
15160_ACEOF
15161rm -f conftest.$ac_objext
15162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163 (eval $ac_compile) 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
dcc1b6ad
VS
15170 { ac_try='test -z "$ac_c_werror_flag"
15171 || test ! -s conftest.err'
a848cd7e
SC
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_lo=0 ac_mid=0
15184 while :; do
15185 cat >conftest.$ac_ext <<_ACEOF
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
15191$ac_includes_default
15192int
15193main ()
15194{
15195static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15196test_array [0] = 0
15197
15198 ;
15199 return 0;
15200}
15201_ACEOF
15202rm -f conftest.$ac_objext
15203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
dcc1b6ad
VS
15211 { ac_try='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
a848cd7e
SC
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_hi=$ac_mid; break
15225else
15226 echo "$as_me: failed program was:" >&5
15227sed 's/^/| /' conftest.$ac_ext >&5
15228
15229ac_lo=`expr $ac_mid + 1`
15230 if test $ac_lo -le $ac_mid; then
15231 ac_lo= ac_hi=
15232 break
15233 fi
15234 ac_mid=`expr 2 '*' $ac_mid + 1`
15235fi
15236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15237 done
15238else
15239 echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242cat >conftest.$ac_ext <<_ACEOF
15243/* confdefs.h. */
15244_ACEOF
15245cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF
15247/* end confdefs.h. */
15248$ac_includes_default
15249int
15250main ()
15251{
15252static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15253test_array [0] = 0
15254
15255 ;
15256 return 0;
15257}
15258_ACEOF
15259rm -f conftest.$ac_objext
15260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
dcc1b6ad
VS
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
a848cd7e
SC
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_hi=-1 ac_mid=-1
15282 while :; do
15283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289$ac_includes_default
15290int
15291main ()
15292{
15293static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15294test_array [0] = 0
15295
15296 ;
15297 return 0;
15298}
15299_ACEOF
15300rm -f conftest.$ac_objext
15301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>conftest.er1
15303 ac_status=$?
15304 grep -v '^ *+' conftest.er1 >conftest.err
15305 rm -f conftest.er1
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
dcc1b6ad
VS
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
a848cd7e
SC
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15322 ac_lo=$ac_mid; break
15323else
15324 echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327ac_hi=`expr '(' $ac_mid ')' - 1`
15328 if test $ac_mid -le $ac_hi; then
15329 ac_lo= ac_hi=
15330 break
15331 fi
15332 ac_mid=`expr 2 '*' $ac_mid`
15333fi
15334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335 done
15336else
15337 echo "$as_me: failed program was:" >&5
15338sed 's/^/| /' conftest.$ac_ext >&5
15339
15340ac_lo= ac_hi=
15341fi
15342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343fi
15344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345# Binary search between lo and hi bounds.
15346while test "x$ac_lo" != "x$ac_hi"; do
15347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15348 cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
15354$ac_includes_default
15355int
15356main ()
15357{
15358static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15359test_array [0] = 0
15360
15361 ;
15362 return 0;
15363}
15364_ACEOF
15365rm -f conftest.$ac_objext
15366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367 (eval $ac_compile) 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
dcc1b6ad
VS
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
a848cd7e
SC
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_hi=$ac_mid
15388else
15389 echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392ac_lo=`expr '(' $ac_mid ')' + 1`
15393fi
15394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395done
15396case $ac_lo in
15397?*) ac_cv_sizeof_void_p=$ac_lo;;
15398'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15399See \`config.log' for more details." >&5
15400echo "$as_me: error: cannot compute sizeof (void *), 77
15401See \`config.log' for more details." >&2;}
15402 { (exit 1); exit 1; }; } ;;
15403esac
15404else
15405 if test "$cross_compiling" = yes; then
15406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15407See \`config.log' for more details." >&5
15408echo "$as_me: error: cannot run test program while cross compiling
15409See \`config.log' for more details." >&2;}
15410 { (exit 1); exit 1; }; }
15411else
15412 cat >conftest.$ac_ext <<_ACEOF
15413/* confdefs.h. */
15414_ACEOF
15415cat confdefs.h >>conftest.$ac_ext
15416cat >>conftest.$ac_ext <<_ACEOF
15417/* end confdefs.h. */
15418$ac_includes_default
15419long longval () { return (long) (sizeof (void *)); }
15420unsigned long ulongval () { return (long) (sizeof (void *)); }
15421#include <stdio.h>
15422#include <stdlib.h>
15423int
15424main ()
15425{
15426
15427 FILE *f = fopen ("conftest.val", "w");
15428 if (! f)
15429 exit (1);
15430 if (((long) (sizeof (void *))) < 0)
15431 {
15432 long i = longval ();
15433 if (i != ((long) (sizeof (void *))))
15434 exit (1);
15435 fprintf (f, "%ld\n", i);
15436 }
15437 else
15438 {
15439 unsigned long i = ulongval ();
15440 if (i != ((long) (sizeof (void *))))
15441 exit (1);
15442 fprintf (f, "%lu\n", i);
15443 }
15444 exit (ferror (f) || fclose (f) != 0);
15445
15446 ;
15447 return 0;
15448}
15449_ACEOF
15450rm -f conftest$ac_exeext
15451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452 (eval $ac_link) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_cv_sizeof_void_p=`cat conftest.val`
15462else
15463 echo "$as_me: program exited with status $ac_status" >&5
15464echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
15467( exit $ac_status )
15468{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15469See \`config.log' for more details." >&5
15470echo "$as_me: error: cannot compute sizeof (void *), 77
15471See \`config.log' for more details." >&2;}
15472 { (exit 1); exit 1; }; }
15473fi
15474rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15475fi
15476fi
15477rm -f conftest.val
15478else
15479 ac_cv_sizeof_void_p=0
15480fi
15481fi
15482echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15483echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15484cat >>confdefs.h <<_ACEOF
15485#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15486_ACEOF
15487
15488
15489echo "$as_me:$LINENO: checking for int" >&5
15490echo $ECHO_N "checking for int... $ECHO_C" >&6
15491if test "${ac_cv_type_int+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500$ac_includes_default
15501int
15502main ()
15503{
15504if ((int *) 0)
15505 return 0;
15506if (sizeof (int))
15507 return 0;
15508 ;
15509 return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
dcc1b6ad
VS
15521 { ac_try='test -z "$ac_c_werror_flag"
15522 || test ! -s conftest.err'
a848cd7e
SC
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_cv_type_int=yes
15535else
15536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
15539ac_cv_type_int=no
15540fi
15541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15542fi
15543echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15544echo "${ECHO_T}$ac_cv_type_int" >&6
15545
15546echo "$as_me:$LINENO: checking size of int" >&5
15547echo $ECHO_N "checking size of int... $ECHO_C" >&6
15548if test "${ac_cv_sizeof_int+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 if test "$ac_cv_type_int" = yes; then
15552 # The cast to unsigned long works around a bug in the HP C Compiler
15553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15555 # This bug is HP SR number 8606223364.
15556 if test "$cross_compiling" = yes; then
15557 # Depending upon the size, compute the lo and hi bounds.
15558cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564$ac_includes_default
15565int
15566main ()
15567{
15568static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15569test_array [0] = 0
15570
15571 ;
15572 return 0;
15573}
15574_ACEOF
15575rm -f conftest.$ac_objext
15576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
dcc1b6ad
VS
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
a848cd7e
SC
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_lo=0 ac_mid=0
15598 while :; do
15599 cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605$ac_includes_default
15606int
15607main ()
15608{
15609static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15610test_array [0] = 0
15611
15612 ;
15613 return 0;
15614}
15615_ACEOF
15616rm -f conftest.$ac_objext
15617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
dcc1b6ad
VS
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
a848cd7e
SC
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_hi=$ac_mid; break
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643ac_lo=`expr $ac_mid + 1`
15644 if test $ac_lo -le $ac_mid; then
15645 ac_lo= ac_hi=
15646 break
15647 fi
15648 ac_mid=`expr 2 '*' $ac_mid + 1`
15649fi
15650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15651 done
15652else
15653 echo "$as_me: failed program was:" >&5
15654sed 's/^/| /' conftest.$ac_ext >&5
15655
15656cat >conftest.$ac_ext <<_ACEOF
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
15662$ac_includes_default
15663int
15664main ()
15665{
15666static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15667test_array [0] = 0
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673rm -f conftest.$ac_objext
15674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
dcc1b6ad
VS
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
a848cd7e
SC
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_hi=-1 ac_mid=-1
15696 while :; do
15697 cat >conftest.$ac_ext <<_ACEOF
15698/* confdefs.h. */
15699_ACEOF
15700cat confdefs.h >>conftest.$ac_ext
15701cat >>conftest.$ac_ext <<_ACEOF
15702/* end confdefs.h. */
15703$ac_includes_default
15704int
15705main ()
15706{
15707static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15708test_array [0] = 0
15709
15710 ;
15711 return 0;
15712}
15713_ACEOF
15714rm -f conftest.$ac_objext
15715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>conftest.er1
15717 ac_status=$?
15718 grep -v '^ *+' conftest.er1 >conftest.err
15719 rm -f conftest.er1
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
dcc1b6ad
VS
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || 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); } &&
dcc1b6ad
VS
15788 { ac_try='test -z "$ac_c_werror_flag"
15789 || test ! -s conftest.err'
a848cd7e
SC
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 ac_hi=$ac_mid
15802else
15803 echo "$as_me: failed program was:" >&5
15804sed 's/^/| /' conftest.$ac_ext >&5
15805
15806ac_lo=`expr '(' $ac_mid ')' + 1`
15807fi
15808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809done
15810case $ac_lo in
15811?*) ac_cv_sizeof_int=$ac_lo;;
15812'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15813See \`config.log' for more details." >&5
15814echo "$as_me: error: cannot compute sizeof (int), 77
15815See \`config.log' for more details." >&2;}
15816 { (exit 1); exit 1; }; } ;;
15817esac
15818else
15819 if test "$cross_compiling" = yes; then
15820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15821See \`config.log' for more details." >&5
15822echo "$as_me: error: cannot run test program while cross compiling
15823See \`config.log' for more details." >&2;}
15824 { (exit 1); exit 1; }; }
15825else
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832$ac_includes_default
15833long longval () { return (long) (sizeof (int)); }
15834unsigned long ulongval () { return (long) (sizeof (int)); }
15835#include <stdio.h>
15836#include <stdlib.h>
15837int
15838main ()
15839{
15840
15841 FILE *f = fopen ("conftest.val", "w");
15842 if (! f)
15843 exit (1);
15844 if (((long) (sizeof (int))) < 0)
15845 {
15846 long i = longval ();
15847 if (i != ((long) (sizeof (int))))
15848 exit (1);
15849 fprintf (f, "%ld\n", i);
15850 }
15851 else
15852 {
15853 unsigned long i = ulongval ();
15854 if (i != ((long) (sizeof (int))))
15855 exit (1);
15856 fprintf (f, "%lu\n", i);
15857 }
15858 exit (ferror (f) || fclose (f) != 0);
15859
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest$ac_exeext
15865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_cv_sizeof_int=`cat conftest.val`
15876else
15877 echo "$as_me: program exited with status $ac_status" >&5
15878echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
15881( exit $ac_status )
15882{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15883See \`config.log' for more details." >&5
15884echo "$as_me: error: cannot compute sizeof (int), 77
15885See \`config.log' for more details." >&2;}
15886 { (exit 1); exit 1; }; }
15887fi
15888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15889fi
15890fi
15891rm -f conftest.val
15892else
15893 ac_cv_sizeof_int=0
15894fi
15895fi
15896echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15897echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15898cat >>confdefs.h <<_ACEOF
15899#define SIZEOF_INT $ac_cv_sizeof_int
15900_ACEOF
15901
15902
15903echo "$as_me:$LINENO: checking for long" >&5
15904echo $ECHO_N "checking for long... $ECHO_C" >&6
15905if test "${ac_cv_type_long+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907else
15908 cat >conftest.$ac_ext <<_ACEOF
15909/* confdefs.h. */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h. */
15914$ac_includes_default
15915int
15916main ()
15917{
15918if ((long *) 0)
15919 return 0;
15920if (sizeof (long))
15921 return 0;
15922 ;
15923 return 0;
15924}
15925_ACEOF
15926rm -f conftest.$ac_objext
15927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928 (eval $ac_compile) 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
dcc1b6ad
VS
15935 { ac_try='test -z "$ac_c_werror_flag"
15936 || test ! -s conftest.err'
a848cd7e
SC
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } &&
15942 { ac_try='test -s conftest.$ac_objext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_type_long=yes
15949else
15950 echo "$as_me: failed program was:" >&5
15951sed 's/^/| /' conftest.$ac_ext >&5
15952
15953ac_cv_type_long=no
15954fi
15955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15956fi
15957echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15958echo "${ECHO_T}$ac_cv_type_long" >&6
15959
15960echo "$as_me:$LINENO: checking size of long" >&5
15961echo $ECHO_N "checking size of long... $ECHO_C" >&6
15962if test "${ac_cv_sizeof_long+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964else
15965 if test "$ac_cv_type_long" = yes; then
15966 # The cast to unsigned long works around a bug in the HP C Compiler
15967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15969 # This bug is HP SR number 8606223364.
15970 if test "$cross_compiling" = yes; then
15971 # Depending upon the size, compute the lo and hi bounds.
15972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
15978$ac_includes_default
15979int
15980main ()
15981{
15982static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15983test_array [0] = 0
15984
15985 ;
15986 return 0;
15987}
15988_ACEOF
15989rm -f conftest.$ac_objext
15990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991 (eval $ac_compile) 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
dcc1b6ad
VS
15998 { ac_try='test -z "$ac_c_werror_flag"
15999 || test ! -s conftest.err'
a848cd7e
SC
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; } &&
16005 { ac_try='test -s conftest.$ac_objext'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_lo=0 ac_mid=0
16012 while :; do
16013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019$ac_includes_default
16020int
16021main ()
16022{
16023static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16024test_array [0] = 0
16025
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030rm -f conftest.$ac_objext
16031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032 (eval $ac_compile) 2>conftest.er1
16033 ac_status=$?
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
dcc1b6ad
VS
16039 { ac_try='test -z "$ac_c_werror_flag"
16040 || test ! -s conftest.err'
a848cd7e
SC
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_hi=$ac_mid; break
16053else
16054 echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057ac_lo=`expr $ac_mid + 1`
16058 if test $ac_lo -le $ac_mid; then
16059 ac_lo= ac_hi=
16060 break
16061 fi
16062 ac_mid=`expr 2 '*' $ac_mid + 1`
16063fi
16064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16065 done
16066else
16067 echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077int
16078main ()
16079{
16080static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16081test_array [0] = 0
16082
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087rm -f conftest.$ac_objext
16088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
dcc1b6ad
VS
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
a848cd7e
SC
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_hi=-1 ac_mid=-1
16110 while :; do
16111 cat >conftest.$ac_ext <<_ACEOF
16112/* confdefs.h. */
16113_ACEOF
16114cat confdefs.h >>conftest.$ac_ext
16115cat >>conftest.$ac_ext <<_ACEOF
16116/* end confdefs.h. */
16117$ac_includes_default
16118int
16119main ()
16120{
16121static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16122test_array [0] = 0
16123
16124 ;
16125 return 0;
16126}
16127_ACEOF
16128rm -f conftest.$ac_objext
16129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130 (eval $ac_compile) 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
dcc1b6ad
VS
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
a848cd7e
SC
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_lo=$ac_mid; break
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155ac_hi=`expr '(' $ac_mid ')' - 1`
16156 if test $ac_mid -le $ac_hi; then
16157 ac_lo= ac_hi=
16158 break
16159 fi
16160 ac_mid=`expr 2 '*' $ac_mid`
16161fi
16162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 done
16164else
16165 echo "$as_me: failed program was:" >&5
16166sed 's/^/| /' conftest.$ac_ext >&5
16167
16168ac_lo= ac_hi=
16169fi
16170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16171fi
16172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173# Binary search between lo and hi bounds.
16174while test "x$ac_lo" != "x$ac_hi"; do
16175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16176 cat >conftest.$ac_ext <<_ACEOF
16177/* confdefs.h. */
16178_ACEOF
16179cat confdefs.h >>conftest.$ac_ext
16180cat >>conftest.$ac_ext <<_ACEOF
16181/* end confdefs.h. */
16182$ac_includes_default
16183int
16184main ()
16185{
16186static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16187test_array [0] = 0
16188
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext
16194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
dcc1b6ad
VS
16202 { ac_try='test -z "$ac_c_werror_flag"
16203 || test ! -s conftest.err'
a848cd7e
SC
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_hi=$ac_mid
16216else
16217 echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220ac_lo=`expr '(' $ac_mid ')' + 1`
16221fi
16222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16223done
16224case $ac_lo in
16225?*) ac_cv_sizeof_long=$ac_lo;;
16226'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16227See \`config.log' for more details." >&5
16228echo "$as_me: error: cannot compute sizeof (long), 77
16229See \`config.log' for more details." >&2;}
16230 { (exit 1); exit 1; }; } ;;
16231esac
16232else
16233 if test "$cross_compiling" = yes; then
16234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16235See \`config.log' for more details." >&5
16236echo "$as_me: error: cannot run test program while cross compiling
16237See \`config.log' for more details." >&2;}
16238 { (exit 1); exit 1; }; }
16239else
16240 cat >conftest.$ac_ext <<_ACEOF
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
16246$ac_includes_default
16247long longval () { return (long) (sizeof (long)); }
16248unsigned long ulongval () { return (long) (sizeof (long)); }
16249#include <stdio.h>
16250#include <stdlib.h>
16251int
16252main ()
16253{
16254
16255 FILE *f = fopen ("conftest.val", "w");
16256 if (! f)
16257 exit (1);
16258 if (((long) (sizeof (long))) < 0)
16259 {
16260 long i = longval ();
16261 if (i != ((long) (sizeof (long))))
16262 exit (1);
16263 fprintf (f, "%ld\n", i);
16264 }
16265 else
16266 {
16267 unsigned long i = ulongval ();
16268 if (i != ((long) (sizeof (long))))
16269 exit (1);
16270 fprintf (f, "%lu\n", i);
16271 }
16272 exit (ferror (f) || fclose (f) != 0);
16273
16274 ;
16275 return 0;
16276}
16277_ACEOF
16278rm -f conftest$ac_exeext
16279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16280 (eval $ac_link) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_cv_sizeof_long=`cat conftest.val`
16290else
16291 echo "$as_me: program exited with status $ac_status" >&5
16292echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295( exit $ac_status )
16296{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16297See \`config.log' for more details." >&5
16298echo "$as_me: error: cannot compute sizeof (long), 77
16299See \`config.log' for more details." >&2;}
16300 { (exit 1); exit 1; }; }
16301fi
16302rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16303fi
16304fi
16305rm -f conftest.val
16306else
16307 ac_cv_sizeof_long=0
16308fi
16309fi
16310echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16311echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16312cat >>confdefs.h <<_ACEOF
16313#define SIZEOF_LONG $ac_cv_sizeof_long
16314_ACEOF
16315
16316
16317echo "$as_me:$LINENO: checking for size_t" >&5
16318echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16319if test "${ac_cv_type_size_t+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321else
16322 cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329int
16330main ()
16331{
16332if ((size_t *) 0)
16333 return 0;
16334if (sizeof (size_t))
16335 return 0;
16336 ;
16337 return 0;
16338}
16339_ACEOF
16340rm -f conftest.$ac_objext
16341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
dcc1b6ad
VS
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
a848cd7e
SC
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_cv_type_size_t=yes
16363else
16364 echo "$as_me: failed program was:" >&5
16365sed 's/^/| /' conftest.$ac_ext >&5
16366
16367ac_cv_type_size_t=no
16368fi
16369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16370fi
16371echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16372echo "${ECHO_T}$ac_cv_type_size_t" >&6
16373
16374echo "$as_me:$LINENO: checking size of size_t" >&5
16375echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16376if test "${ac_cv_sizeof_size_t+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16378else
16379 if test "$ac_cv_type_size_t" = yes; then
16380 # The cast to unsigned long works around a bug in the HP C Compiler
16381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16383 # This bug is HP SR number 8606223364.
16384 if test "$cross_compiling" = yes; then
16385 # Depending upon the size, compute the lo and hi bounds.
16386cat >conftest.$ac_ext <<_ACEOF
16387/* confdefs.h. */
16388_ACEOF
16389cat confdefs.h >>conftest.$ac_ext
16390cat >>conftest.$ac_ext <<_ACEOF
16391/* end confdefs.h. */
16392$ac_includes_default
16393int
16394main ()
16395{
16396static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16397test_array [0] = 0
16398
16399 ;
16400 return 0;
16401}
16402_ACEOF
16403rm -f conftest.$ac_objext
16404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405 (eval $ac_compile) 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
dcc1b6ad
VS
16412 { ac_try='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
a848cd7e
SC
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest.$ac_objext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_lo=0 ac_mid=0
16426 while :; do
16427 cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
16433$ac_includes_default
16434int
16435main ()
16436{
16437static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16438test_array [0] = 0
16439
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
dcc1b6ad
VS
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
a848cd7e
SC
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_hi=$ac_mid; break
16467else
16468 echo "$as_me: failed program was:" >&5
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
16471ac_lo=`expr $ac_mid + 1`
16472 if test $ac_lo -le $ac_mid; then
16473 ac_lo= ac_hi=
16474 break
16475 fi
16476 ac_mid=`expr 2 '*' $ac_mid + 1`
16477fi
16478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16479 done
16480else
16481 echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484cat >conftest.$ac_ext <<_ACEOF
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490$ac_includes_default
16491int
16492main ()
16493{
16494static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16495test_array [0] = 0
16496
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext
16502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503 (eval $ac_compile) 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
dcc1b6ad
VS
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
a848cd7e
SC
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_hi=-1 ac_mid=-1
16524 while :; do
16525 cat >conftest.$ac_ext <<_ACEOF
16526/* confdefs.h. */
16527_ACEOF
16528cat confdefs.h >>conftest.$ac_ext
16529cat >>conftest.$ac_ext <<_ACEOF
16530/* end confdefs.h. */
16531$ac_includes_default
16532int
16533main ()
16534{
16535static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16536test_array [0] = 0
16537
16538 ;
16539 return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
dcc1b6ad
VS
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
a848cd7e
SC
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_lo=$ac_mid; break
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569ac_hi=`expr '(' $ac_mid ')' - 1`
16570 if test $ac_mid -le $ac_hi; then
16571 ac_lo= ac_hi=
16572 break
16573 fi
16574 ac_mid=`expr 2 '*' $ac_mid`
16575fi
16576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16577 done
16578else
16579 echo "$as_me: failed program was:" >&5
16580sed 's/^/| /' conftest.$ac_ext >&5
16581
16582ac_lo= ac_hi=
16583fi
16584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16585fi
16586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587# Binary search between lo and hi bounds.
16588while test "x$ac_lo" != "x$ac_hi"; do
16589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16590 cat >conftest.$ac_ext <<_ACEOF
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
16597int
16598main ()
16599{
16600static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16601test_array [0] = 0
16602
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext
16608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609 (eval $ac_compile) 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
dcc1b6ad
VS
16616 { ac_try='test -z "$ac_c_werror_flag"
16617 || test ! -s conftest.err'
a848cd7e
SC
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } &&
16623 { ac_try='test -s conftest.$ac_objext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_hi=$ac_mid
16630else
16631 echo "$as_me: failed program was:" >&5
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
16634ac_lo=`expr '(' $ac_mid ')' + 1`
16635fi
16636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16637done
16638case $ac_lo in
16639?*) ac_cv_sizeof_size_t=$ac_lo;;
16640'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16641See \`config.log' for more details." >&5
16642echo "$as_me: error: cannot compute sizeof (size_t), 77
16643See \`config.log' for more details." >&2;}
16644 { (exit 1); exit 1; }; } ;;
16645esac
16646else
16647 if test "$cross_compiling" = yes; then
16648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16649See \`config.log' for more details." >&5
16650echo "$as_me: error: cannot run test program while cross compiling
16651See \`config.log' for more details." >&2;}
16652 { (exit 1); exit 1; }; }
16653else
16654 cat >conftest.$ac_ext <<_ACEOF
16655/* confdefs.h. */
16656_ACEOF
16657cat confdefs.h >>conftest.$ac_ext
16658cat >>conftest.$ac_ext <<_ACEOF
16659/* end confdefs.h. */
16660$ac_includes_default
16661long longval () { return (long) (sizeof (size_t)); }
16662unsigned long ulongval () { return (long) (sizeof (size_t)); }
16663#include <stdio.h>
16664#include <stdlib.h>
16665int
16666main ()
16667{
16668
16669 FILE *f = fopen ("conftest.val", "w");
16670 if (! f)
16671 exit (1);
16672 if (((long) (sizeof (size_t))) < 0)
16673 {
16674 long i = longval ();
16675 if (i != ((long) (sizeof (size_t))))
16676 exit (1);
16677 fprintf (f, "%ld\n", i);
16678 }
16679 else
16680 {
16681 unsigned long i = ulongval ();
16682 if (i != ((long) (sizeof (size_t))))
16683 exit (1);
16684 fprintf (f, "%lu\n", i);
16685 }
16686 exit (ferror (f) || fclose (f) != 0);
16687
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest$ac_exeext
16693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16694 (eval $ac_link) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_sizeof_size_t=`cat conftest.val`
16704else
16705 echo "$as_me: program exited with status $ac_status" >&5
16706echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709( exit $ac_status )
16710{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16711See \`config.log' for more details." >&5
16712echo "$as_me: error: cannot compute sizeof (size_t), 77
16713See \`config.log' for more details." >&2;}
16714 { (exit 1); exit 1; }; }
16715fi
16716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717fi
16718fi
16719rm -f conftest.val
16720else
16721 ac_cv_sizeof_size_t=0
16722fi
16723fi
16724echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16725echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16726cat >>confdefs.h <<_ACEOF
16727#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16728_ACEOF
16729
16730
16731
16732case "${host}" in
16733 arm-*-linux* )
16734 echo "$as_me:$LINENO: checking for long long" >&5
16735echo $ECHO_N "checking for long long... $ECHO_C" >&6
16736if test "${ac_cv_type_long_long+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738else
16739 cat >conftest.$ac_ext <<_ACEOF
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745$ac_includes_default
16746int
16747main ()
16748{
16749if ((long long *) 0)
16750 return 0;
16751if (sizeof (long long))
16752 return 0;
16753 ;
16754 return 0;
16755}
16756_ACEOF
16757rm -f conftest.$ac_objext
16758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759 (eval $ac_compile) 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
dcc1b6ad
VS
16766 { ac_try='test -z "$ac_c_werror_flag"
16767 || test ! -s conftest.err'
a848cd7e
SC
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try='test -s conftest.$ac_objext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_type_long_long=yes
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784ac_cv_type_long_long=no
16785fi
16786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16787fi
16788echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16789echo "${ECHO_T}$ac_cv_type_long_long" >&6
16790
16791echo "$as_me:$LINENO: checking size of long long" >&5
16792echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16793if test "${ac_cv_sizeof_long_long+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16795else
16796 if test "$ac_cv_type_long_long" = yes; then
16797 # The cast to unsigned long works around a bug in the HP C Compiler
16798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16800 # This bug is HP SR number 8606223364.
16801 if test "$cross_compiling" = yes; then
16802 # Depending upon the size, compute the lo and hi bounds.
16803cat >conftest.$ac_ext <<_ACEOF
16804/* confdefs.h. */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h. */
16809$ac_includes_default
16810int
16811main ()
16812{
16813static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16814test_array [0] = 0
16815
16816 ;
16817 return 0;
16818}
16819_ACEOF
16820rm -f conftest.$ac_objext
16821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822 (eval $ac_compile) 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
dcc1b6ad
VS
16829 { ac_try='test -z "$ac_c_werror_flag"
16830 || test ! -s conftest.err'
a848cd7e
SC
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_lo=0 ac_mid=0
16843 while :; do
16844 cat >conftest.$ac_ext <<_ACEOF
16845/* confdefs.h. */
16846_ACEOF
16847cat confdefs.h >>conftest.$ac_ext
16848cat >>conftest.$ac_ext <<_ACEOF
16849/* end confdefs.h. */
16850$ac_includes_default
16851int
16852main ()
16853{
16854static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16855test_array [0] = 0
16856
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext
16862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16863 (eval $ac_compile) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
dcc1b6ad
VS
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
a848cd7e
SC
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest.$ac_objext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 ac_hi=$ac_mid; break
16884else
16885 echo "$as_me: failed program was:" >&5
16886sed 's/^/| /' conftest.$ac_ext >&5
16887
16888ac_lo=`expr $ac_mid + 1`
16889 if test $ac_lo -le $ac_mid; then
16890 ac_lo= ac_hi=
16891 break
16892 fi
16893 ac_mid=`expr 2 '*' $ac_mid + 1`
16894fi
16895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16896 done
16897else
16898 echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907$ac_includes_default
16908int
16909main ()
16910{
16911static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16912test_array [0] = 0
16913
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext
16919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
dcc1b6ad
VS
16927 { ac_try='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
a848cd7e
SC
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_hi=-1 ac_mid=-1
16941 while :; do
16942 cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948$ac_includes_default
16949int
16950main ()
16951{
16952static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16953test_array [0] = 0
16954
16955 ;
16956 return 0;
16957}
16958_ACEOF
16959rm -f conftest.$ac_objext
16960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16961 (eval $ac_compile) 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
dcc1b6ad
VS
16968 { ac_try='test -z "$ac_c_werror_flag"
16969 || test ! -s conftest.err'
a848cd7e
SC
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 ac_lo=$ac_mid; break
16982else
16983 echo "$as_me: failed program was:" >&5
16984sed 's/^/| /' conftest.$ac_ext >&5
16985
16986ac_hi=`expr '(' $ac_mid ')' - 1`
16987 if test $ac_mid -le $ac_hi; then
16988 ac_lo= ac_hi=
16989 break
16990 fi
16991 ac_mid=`expr 2 '*' $ac_mid`
16992fi
16993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16994 done
16995else
16996 echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
16999ac_lo= ac_hi=
17000fi
17001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17002fi
17003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17004# Binary search between lo and hi bounds.
17005while test "x$ac_lo" != "x$ac_hi"; do
17006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17007 cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014int
17015main ()
17016{
17017static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17018test_array [0] = 0
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024rm -f conftest.$ac_objext
17025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17026 (eval $ac_compile) 2>conftest.er1
17027 ac_status=$?
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
dcc1b6ad
VS
17033 { ac_try='test -z "$ac_c_werror_flag"
17034 || test ! -s conftest.err'
a848cd7e
SC
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; } &&
17040 { ac_try='test -s conftest.$ac_objext'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_hi=$ac_mid
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051ac_lo=`expr '(' $ac_mid ')' + 1`
17052fi
17053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054done
17055case $ac_lo in
17056?*) ac_cv_sizeof_long_long=$ac_lo;;
17057'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17058See \`config.log' for more details." >&5
17059echo "$as_me: error: cannot compute sizeof (long long), 77
17060See \`config.log' for more details." >&2;}
17061 { (exit 1); exit 1; }; } ;;
17062esac
17063else
17064 if test "$cross_compiling" = yes; then
17065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17066See \`config.log' for more details." >&5
17067echo "$as_me: error: cannot run test program while cross compiling
17068See \`config.log' for more details." >&2;}
17069 { (exit 1); exit 1; }; }
17070else
17071 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077$ac_includes_default
17078long longval () { return (long) (sizeof (long long)); }
17079unsigned long ulongval () { return (long) (sizeof (long long)); }
17080#include <stdio.h>
17081#include <stdlib.h>
17082int
17083main ()
17084{
17085
17086 FILE *f = fopen ("conftest.val", "w");
17087 if (! f)
17088 exit (1);
17089 if (((long) (sizeof (long long))) < 0)
17090 {
17091 long i = longval ();
17092 if (i != ((long) (sizeof (long long))))
17093 exit (1);
17094 fprintf (f, "%ld\n", i);
17095 }
17096 else
17097 {
17098 unsigned long i = ulongval ();
17099 if (i != ((long) (sizeof (long long))))
17100 exit (1);
17101 fprintf (f, "%lu\n", i);
17102 }
17103 exit (ferror (f) || fclose (f) != 0);
17104
17105 ;
17106 return 0;
17107}
17108_ACEOF
17109rm -f conftest$ac_exeext
17110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111 (eval $ac_link) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_cv_sizeof_long_long=`cat conftest.val`
17121else
17122 echo "$as_me: program exited with status $ac_status" >&5
17123echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126( exit $ac_status )
17127{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17128See \`config.log' for more details." >&5
17129echo "$as_me: error: cannot compute sizeof (long long), 77
17130See \`config.log' for more details." >&2;}
17131 { (exit 1); exit 1; }; }
17132fi
17133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17134fi
17135fi
17136rm -f conftest.val
17137else
17138 ac_cv_sizeof_long_long=0
17139fi
17140fi
17141echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17142echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17143cat >>confdefs.h <<_ACEOF
17144#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17145_ACEOF
17146
17147
17148 ;;
17149 *-hp-hpux* )
17150 echo "$as_me:$LINENO: checking for long long" >&5
17151echo $ECHO_N "checking for long long... $ECHO_C" >&6
17152if test "${ac_cv_type_long_long+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154else
17155 cat >conftest.$ac_ext <<_ACEOF
17156/* confdefs.h. */
17157_ACEOF
17158cat confdefs.h >>conftest.$ac_ext
17159cat >>conftest.$ac_ext <<_ACEOF
17160/* end confdefs.h. */
17161$ac_includes_default
17162int
17163main ()
17164{
17165if ((long long *) 0)
17166 return 0;
17167if (sizeof (long long))
17168 return 0;
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext
17174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17175 (eval $ac_compile) 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
dcc1b6ad
VS
17182 { ac_try='test -z "$ac_c_werror_flag"
17183 || test ! -s conftest.err'
a848cd7e
SC
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest.$ac_objext'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_cv_type_long_long=yes
17196else
17197 echo "$as_me: failed program was:" >&5
17198sed 's/^/| /' conftest.$ac_ext >&5
17199
17200ac_cv_type_long_long=no
17201fi
17202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17203fi
17204echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17205echo "${ECHO_T}$ac_cv_type_long_long" >&6
17206
17207echo "$as_me:$LINENO: checking size of long long" >&5
17208echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17209if test "${ac_cv_sizeof_long_long+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211else
17212 if test "$ac_cv_type_long_long" = yes; then
17213 # The cast to unsigned long works around a bug in the HP C Compiler
17214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17216 # This bug is HP SR number 8606223364.
17217 if test "$cross_compiling" = yes; then
17218 # Depending upon the size, compute the lo and hi bounds.
17219cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226int
17227main ()
17228{
17229static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17230test_array [0] = 0
17231
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236rm -f conftest.$ac_objext
17237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17238 (eval $ac_compile) 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
dcc1b6ad
VS
17245 { ac_try='test -z "$ac_c_werror_flag"
17246 || test ! -s conftest.err'
a848cd7e
SC
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_lo=0 ac_mid=0
17259 while :; do
17260 cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
17266$ac_includes_default
17267int
17268main ()
17269{
17270static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17271test_array [0] = 0
17272
17273 ;
17274 return 0;
17275}
17276_ACEOF
17277rm -f conftest.$ac_objext
17278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
dcc1b6ad
VS
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
a848cd7e
SC
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_hi=$ac_mid; break
17300else
17301 echo "$as_me: failed program was:" >&5
17302sed 's/^/| /' conftest.$ac_ext >&5
17303
17304ac_lo=`expr $ac_mid + 1`
17305 if test $ac_lo -le $ac_mid; then
17306 ac_lo= ac_hi=
17307 break
17308 fi
17309 ac_mid=`expr 2 '*' $ac_mid + 1`
17310fi
17311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17312 done
17313else
17314 echo "$as_me: failed program was:" >&5
17315sed 's/^/| /' conftest.$ac_ext >&5
17316
17317cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323$ac_includes_default
17324int
17325main ()
17326{
17327static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17328test_array [0] = 0
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336 (eval $ac_compile) 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
dcc1b6ad
VS
17343 { ac_try='test -z "$ac_c_werror_flag"
17344 || test ! -s conftest.err'
a848cd7e
SC
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } &&
17350 { ac_try='test -s conftest.$ac_objext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_hi=-1 ac_mid=-1
17357 while :; do
17358 cat >conftest.$ac_ext <<_ACEOF
17359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
17364$ac_includes_default
17365int
17366main ()
17367{
17368static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17369test_array [0] = 0
17370
17371 ;
17372 return 0;
17373}
17374_ACEOF
17375rm -f conftest.$ac_objext
17376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17377 (eval $ac_compile) 2>conftest.er1
17378 ac_status=$?
17379 grep -v '^ *+' conftest.er1 >conftest.err
17380 rm -f conftest.er1
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
dcc1b6ad
VS
17384 { ac_try='test -z "$ac_c_werror_flag"
17385 || test ! -s conftest.err'
a848cd7e
SC
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest.$ac_objext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_lo=$ac_mid; break
17398else
17399 echo "$as_me: failed program was:" >&5
17400sed 's/^/| /' conftest.$ac_ext >&5
17401
17402ac_hi=`expr '(' $ac_mid ')' - 1`
17403 if test $ac_mid -le $ac_hi; then
17404 ac_lo= ac_hi=
17405 break
17406 fi
17407 ac_mid=`expr 2 '*' $ac_mid`
17408fi
17409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17410 done
17411else
17412 echo "$as_me: failed program was:" >&5
17413sed 's/^/| /' conftest.$ac_ext >&5
17414
17415ac_lo= ac_hi=
17416fi
17417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418fi
17419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17420# Binary search between lo and hi bounds.
17421while test "x$ac_lo" != "x$ac_hi"; do
17422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17423 cat >conftest.$ac_ext <<_ACEOF
17424/* confdefs.h. */
17425_ACEOF
17426cat confdefs.h >>conftest.$ac_ext
17427cat >>conftest.$ac_ext <<_ACEOF
17428/* end confdefs.h. */
17429$ac_includes_default
17430int
17431main ()
17432{
17433static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17434test_array [0] = 0
17435
17436 ;
17437 return 0;
17438}
17439_ACEOF
17440rm -f conftest.$ac_objext
17441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17442 (eval $ac_compile) 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
dcc1b6ad
VS
17449 { ac_try='test -z "$ac_c_werror_flag"
17450 || test ! -s conftest.err'
a848cd7e
SC
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest.$ac_objext'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 ac_hi=$ac_mid
17463else
17464 echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467ac_lo=`expr '(' $ac_mid ')' + 1`
17468fi
17469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17470done
17471case $ac_lo in
17472?*) ac_cv_sizeof_long_long=$ac_lo;;
17473'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17474See \`config.log' for more details." >&5
17475echo "$as_me: error: cannot compute sizeof (long long), 77
17476See \`config.log' for more details." >&2;}
17477 { (exit 1); exit 1; }; } ;;
17478esac
17479else
17480 if test "$cross_compiling" = yes; then
17481 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17482See \`config.log' for more details." >&5
17483echo "$as_me: error: cannot run test program while cross compiling
17484See \`config.log' for more details." >&2;}
17485 { (exit 1); exit 1; }; }
17486else
17487 cat >conftest.$ac_ext <<_ACEOF
17488/* confdefs.h. */
17489_ACEOF
17490cat confdefs.h >>conftest.$ac_ext
17491cat >>conftest.$ac_ext <<_ACEOF
17492/* end confdefs.h. */
17493$ac_includes_default
17494long longval () { return (long) (sizeof (long long)); }
17495unsigned long ulongval () { return (long) (sizeof (long long)); }
17496#include <stdio.h>
17497#include <stdlib.h>
17498int
17499main ()
17500{
17501
17502 FILE *f = fopen ("conftest.val", "w");
17503 if (! f)
17504 exit (1);
17505 if (((long) (sizeof (long long))) < 0)
17506 {
17507 long i = longval ();
17508 if (i != ((long) (sizeof (long long))))
17509 exit (1);
17510 fprintf (f, "%ld\n", i);
17511 }
17512 else
17513 {
17514 unsigned long i = ulongval ();
17515 if (i != ((long) (sizeof (long long))))
17516 exit (1);
17517 fprintf (f, "%lu\n", i);
17518 }
17519 exit (ferror (f) || fclose (f) != 0);
17520
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest$ac_exeext
17526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_sizeof_long_long=`cat conftest.val`
17537else
17538 echo "$as_me: program exited with status $ac_status" >&5
17539echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542( exit $ac_status )
17543{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17544See \`config.log' for more details." >&5
17545echo "$as_me: error: cannot compute sizeof (long long), 77
17546See \`config.log' for more details." >&2;}
17547 { (exit 1); exit 1; }; }
17548fi
17549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17550fi
17551fi
17552rm -f conftest.val
17553else
17554 ac_cv_sizeof_long_long=0
17555fi
17556fi
17557echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17558echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17559cat >>confdefs.h <<_ACEOF
17560#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17561_ACEOF
17562
17563
17564 if test "$ac_cv_sizeof_long_long" != "0"; then
17565 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17566 fi
17567 ;;
17568 * )
17569 echo "$as_me:$LINENO: checking for long long" >&5
17570echo $ECHO_N "checking for long long... $ECHO_C" >&6
17571if test "${ac_cv_type_long_long+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573else
17574 cat >conftest.$ac_ext <<_ACEOF
17575/* confdefs.h. */
17576_ACEOF
17577cat confdefs.h >>conftest.$ac_ext
17578cat >>conftest.$ac_ext <<_ACEOF
17579/* end confdefs.h. */
17580$ac_includes_default
17581int
17582main ()
17583{
17584if ((long long *) 0)
17585 return 0;
17586if (sizeof (long long))
17587 return 0;
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext
17593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17594 (eval $ac_compile) 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
dcc1b6ad
VS
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
a848cd7e
SC
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest.$ac_objext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_type_long_long=yes
17615else
17616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619ac_cv_type_long_long=no
17620fi
17621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17622fi
17623echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17624echo "${ECHO_T}$ac_cv_type_long_long" >&6
17625
17626echo "$as_me:$LINENO: checking size of long long" >&5
17627echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17628if test "${ac_cv_sizeof_long_long+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631 if test "$ac_cv_type_long_long" = yes; then
17632 # The cast to unsigned long works around a bug in the HP C Compiler
17633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635 # This bug is HP SR number 8606223364.
17636 if test "$cross_compiling" = yes; then
17637 # Depending upon the size, compute the lo and hi bounds.
17638cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645int
17646main ()
17647{
17648static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17649test_array [0] = 0
17650
17651 ;
17652 return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext
17656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17657 (eval $ac_compile) 2>conftest.er1
17658 ac_status=$?
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
dcc1b6ad
VS
17664 { ac_try='test -z "$ac_c_werror_flag"
17665 || test ! -s conftest.err'
a848cd7e
SC
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_lo=0 ac_mid=0
17678 while :; do
17679 cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685$ac_includes_default
17686int
17687main ()
17688{
17689static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17690test_array [0] = 0
17691
17692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext
17697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17698 (eval $ac_compile) 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
dcc1b6ad
VS
17705 { ac_try='test -z "$ac_c_werror_flag"
17706 || test ! -s conftest.err'
a848cd7e
SC
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest.$ac_objext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_hi=$ac_mid; break
17719else
17720 echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
17723ac_lo=`expr $ac_mid + 1`
17724 if test $ac_lo -le $ac_mid; then
17725 ac_lo= ac_hi=
17726 break
17727 fi
17728 ac_mid=`expr 2 '*' $ac_mid + 1`
17729fi
17730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17731 done
17732else
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736cat >conftest.$ac_ext <<_ACEOF
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
17742$ac_includes_default
17743int
17744main ()
17745{
17746static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17747test_array [0] = 0
17748
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755 (eval $ac_compile) 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
dcc1b6ad
VS
17762 { ac_try='test -z "$ac_c_werror_flag"
17763 || test ! -s conftest.err'
a848cd7e
SC
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_hi=-1 ac_mid=-1
17776 while :; do
17777 cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
17783$ac_includes_default
17784int
17785main ()
17786{
17787static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17788test_array [0] = 0
17789
17790 ;
17791 return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17796 (eval $ac_compile) 2>conftest.er1
17797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
dcc1b6ad
VS
17803 { ac_try='test -z "$ac_c_werror_flag"
17804 || test ! -s conftest.err'
a848cd7e
SC
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest.$ac_objext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_lo=$ac_mid; break
17817else
17818 echo "$as_me: failed program was:" >&5
17819sed 's/^/| /' conftest.$ac_ext >&5
17820
17821ac_hi=`expr '(' $ac_mid ')' - 1`
17822 if test $ac_mid -le $ac_hi; then
17823 ac_lo= ac_hi=
17824 break
17825 fi
17826 ac_mid=`expr 2 '*' $ac_mid`
17827fi
17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17829 done
17830else
17831 echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834ac_lo= ac_hi=
17835fi
17836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17837fi
17838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17839# Binary search between lo and hi bounds.
17840while test "x$ac_lo" != "x$ac_hi"; do
17841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17842 cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848$ac_includes_default
17849int
17850main ()
17851{
17852static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17853test_array [0] = 0
17854
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859rm -f conftest.$ac_objext
17860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
dcc1b6ad
VS
17868 { ac_try='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_hi=$ac_mid
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886ac_lo=`expr '(' $ac_mid ')' + 1`
17887fi
17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17889done
17890case $ac_lo in
17891?*) ac_cv_sizeof_long_long=$ac_lo;;
17892'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17893See \`config.log' for more details." >&5
17894echo "$as_me: error: cannot compute sizeof (long long), 77
17895See \`config.log' for more details." >&2;}
17896 { (exit 1); exit 1; }; } ;;
17897esac
17898else
17899 if test "$cross_compiling" = yes; then
17900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17901See \`config.log' for more details." >&5
17902echo "$as_me: error: cannot run test program while cross compiling
17903See \`config.log' for more details." >&2;}
17904 { (exit 1); exit 1; }; }
17905else
17906 cat >conftest.$ac_ext <<_ACEOF
17907/* confdefs.h. */
17908_ACEOF
17909cat confdefs.h >>conftest.$ac_ext
17910cat >>conftest.$ac_ext <<_ACEOF
17911/* end confdefs.h. */
17912$ac_includes_default
17913long longval () { return (long) (sizeof (long long)); }
17914unsigned long ulongval () { return (long) (sizeof (long long)); }
17915#include <stdio.h>
17916#include <stdlib.h>
17917int
17918main ()
17919{
17920
17921 FILE *f = fopen ("conftest.val", "w");
17922 if (! f)
17923 exit (1);
17924 if (((long) (sizeof (long long))) < 0)
17925 {
17926 long i = longval ();
17927 if (i != ((long) (sizeof (long long))))
17928 exit (1);
17929 fprintf (f, "%ld\n", i);
17930 }
17931 else
17932 {
17933 unsigned long i = ulongval ();
17934 if (i != ((long) (sizeof (long long))))
17935 exit (1);
17936 fprintf (f, "%lu\n", i);
17937 }
17938 exit (ferror (f) || fclose (f) != 0);
17939
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest$ac_exeext
17945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_sizeof_long_long=`cat conftest.val`
17956else
17957 echo "$as_me: program exited with status $ac_status" >&5
17958echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
17961( exit $ac_status )
17962{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17963See \`config.log' for more details." >&5
17964echo "$as_me: error: cannot compute sizeof (long long), 77
17965See \`config.log' for more details." >&2;}
17966 { (exit 1); exit 1; }; }
17967fi
17968rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17969fi
17970fi
17971rm -f conftest.val
17972else
17973 ac_cv_sizeof_long_long=0
17974fi
17975fi
17976echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17977echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17978cat >>confdefs.h <<_ACEOF
17979#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17980_ACEOF
17981
17982
17983esac
17984
17985echo "$as_me:$LINENO: checking size of wchar_t" >&5
17986echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17987if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989else
17990
17991 if test "$cross_compiling" = yes; then
17992
17993 case "${host}" in
17994 *-pc-msdosdjgpp )
17995 wx_cv_sizeof_wchar_t=0
17996 ;;
17997 * )
17998 wx_cv_sizeof_wchar_t=4
17999 ;;
18000 esac
18001
18002
18003else
18004 cat >conftest.$ac_ext <<_ACEOF
18005/* confdefs.h. */
18006_ACEOF
18007cat confdefs.h >>conftest.$ac_ext
18008cat >>conftest.$ac_ext <<_ACEOF
18009/* end confdefs.h. */
18010
18011 /* DJGPP only has fake wchar_t: */
18012 #ifdef __DJGPP__
18013 # error "fake wchar_t"
18014 #endif
18015 #ifdef HAVE_WCHAR_H
18016 # ifdef __CYGWIN__
18017 # include <stddef.h>
18018 # endif
18019 # include <wchar.h>
18020 #endif
18021 #ifdef HAVE_STDLIB_H
18022 # include <stdlib.h>
18023 #endif
18024 #include <stdio.h>
18025 int main()
18026 {
18027 FILE *f=fopen("conftestval", "w");
18028 if (!f) exit(1);
18029 fprintf(f, "%i", sizeof(wchar_t));
18030 exit(0);
18031 }
18032
18033_ACEOF
18034rm -f conftest$ac_exeext
18035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 wx_cv_sizeof_wchar_t=`cat conftestval`
18046else
18047 echo "$as_me: program exited with status $ac_status" >&5
18048echo "$as_me: failed program was:" >&5
18049sed 's/^/| /' conftest.$ac_ext >&5
18050
18051( exit $ac_status )
18052wx_cv_sizeof_wchar_t=0
18053fi
18054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18055fi
18056
18057fi
18058echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18059echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18060
18061cat >>confdefs.h <<_ACEOF
18062#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18063_ACEOF
18064
18065
18066# Check whether --enable-largefile or --disable-largefile was given.
18067if test "${enable_largefile+set}" = set; then
18068 enableval="$enable_largefile"
18069
18070fi;
18071if test "$enable_largefile" != no; then
18072 wx_largefile=no
18073
18074 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18075echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18076if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18078else
18079
18080 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086#define _FILE_OFFSET_BITS 64
18087 #include <sys/types.h>
18088int
18089main ()
18090{
18091typedef struct {
18092 unsigned int field: sizeof(off_t) == 8;
18093} wxlf;
18094
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext
18100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18101 (eval $ac_compile) 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
dcc1b6ad
VS
18108 { ac_try='test -z "$ac_c_werror_flag"
18109 || test ! -s conftest.err'
a848cd7e
SC
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest.$ac_objext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_cv_sys_file_offset_bits=64
18122else
18123 echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126ac_cv_sys_file_offset_bits=no
18127fi
18128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18129
18130
18131fi
18132echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18133echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18134
18135 if test "$ac_cv_sys_file_offset_bits" != no; then
18136 wx_largefile=yes
18137 cat >>confdefs.h <<_ACEOF
18138#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18139_ACEOF
18140
18141 fi
18142
18143 if test "x$wx_largefile" != "xyes"; then
18144
18145 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18146echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18147if test "${ac_cv_sys_large_files+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18149else
18150
18151 cat >conftest.$ac_ext <<_ACEOF
18152/* confdefs.h. */
18153_ACEOF
18154cat confdefs.h >>conftest.$ac_ext
18155cat >>conftest.$ac_ext <<_ACEOF
18156/* end confdefs.h. */
18157#define _LARGE_FILES 1
18158 #include <sys/types.h>
18159int
18160main ()
18161{
18162typedef struct {
18163 unsigned int field: sizeof(off_t) == 8;
18164} wxlf;
18165
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext
18171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172 (eval $ac_compile) 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
dcc1b6ad
VS
18179 { ac_try='test -z "$ac_c_werror_flag"
18180 || test ! -s conftest.err'
a848cd7e
SC
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_sys_large_files=1
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197ac_cv_sys_large_files=no
18198fi
18199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18200
18201
18202fi
18203echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18204echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18205
18206 if test "$ac_cv_sys_large_files" != no; then
18207 wx_largefile=yes
18208 cat >>confdefs.h <<_ACEOF
18209#define _LARGE_FILES $ac_cv_sys_large_files
18210_ACEOF
18211
18212 fi
18213
18214 fi
18215
18216 echo "$as_me:$LINENO: checking if large file support is available" >&5
18217echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18218 if test "x$wx_largefile" = "xyes"; then
18219 cat >>confdefs.h <<\_ACEOF
18220#define HAVE_LARGEFILE_SUPPORT 1
18221_ACEOF
18222
18223 fi
18224 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18225echo "${ECHO_T}$wx_largefile" >&6
18226fi
18227
18228
18229if test "x$wx_largefile" = "xyes"; then
18230 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18231 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18232 else
18233 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18234 fi
18235 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18236fi
18237
18238echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18239echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18240if test "${ac_cv_c_bigendian+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242else
18243 ac_cv_c_bigendian=unknown
18244# See if sys/param.h defines the BYTE_ORDER macro.
18245cat >conftest.$ac_ext <<_ACEOF
18246/* confdefs.h. */
18247_ACEOF
18248cat confdefs.h >>conftest.$ac_ext
18249cat >>conftest.$ac_ext <<_ACEOF
18250/* end confdefs.h. */
18251#include <sys/types.h>
18252#include <sys/param.h>
18253int
18254main ()
18255{
18256
18257#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18258 bogus endian macros
18259#endif
18260 ;
18261 return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext
18265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
dcc1b6ad
VS
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
a848cd7e
SC
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 # It does; now see whether it defined to BIG_ENDIAN or not.
18287cat >conftest.$ac_ext <<_ACEOF
18288/* confdefs.h. */
18289_ACEOF
18290cat confdefs.h >>conftest.$ac_ext
18291cat >>conftest.$ac_ext <<_ACEOF
18292/* end confdefs.h. */
18293#include <sys/types.h>
18294#include <sys/param.h>
18295int
18296main ()
18297{
18298
18299#if BYTE_ORDER != BIG_ENDIAN
18300 not big endian
18301#endif
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306rm -f conftest.$ac_objext
18307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18308 (eval $ac_compile) 2>conftest.er1
18309 ac_status=$?
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
dcc1b6ad
VS
18315 { ac_try='test -z "$ac_c_werror_flag"
18316 || test ! -s conftest.err'
a848cd7e
SC
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 ac_cv_c_bigendian=yes
18329else
18330 echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_cv_c_bigendian=no
18334fi
18335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340fi
18341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18342if test $ac_cv_c_bigendian = unknown; then
18343if test "$cross_compiling" = yes; then
18344 ac_cv_c_bigendian=unknown
18345else
18346 cat >conftest.$ac_ext <<_ACEOF
18347/* confdefs.h. */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h. */
18352main () {
18353 /* Are we little or big endian? From Harbison&Steele. */
18354 union
18355 {
18356 long l;
18357 char c[sizeof (long)];
18358 } u;
18359 u.l = 1;
18360 exit (u.c[sizeof (long) - 1] == 1);
18361}
18362_ACEOF
18363rm -f conftest$ac_exeext
18364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365 (eval $ac_link) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_c_bigendian=no
18375else
18376 echo "$as_me: program exited with status $ac_status" >&5
18377echo "$as_me: failed program was:" >&5
18378sed 's/^/| /' conftest.$ac_ext >&5
18379
18380( exit $ac_status )
18381ac_cv_c_bigendian=yes
18382fi
18383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18384fi
18385fi
18386fi
18387echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18388echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18389if test $ac_cv_c_bigendian = unknown; then
18390 { 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
18391echo "$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;}
18392fi
18393if test $ac_cv_c_bigendian = yes; then
18394 cat >>confdefs.h <<\_ACEOF
18395#define WORDS_BIGENDIAN 1
18396_ACEOF
18397
18398fi
18399
18400
18401ac_ext=cc
18402ac_cpp='$CXXCPP $CPPFLAGS'
18403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18406echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18407echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18408if test -z "$CXXCPP"; then
18409 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411else
18412 # Double quotes because CXXCPP needs to be expanded
18413 for CXXCPP in "$CXX -E" "/lib/cpp"
18414 do
18415 ac_preproc_ok=false
18416for ac_cxx_preproc_warn_flag in '' yes
18417do
18418 # Use a header file that comes with gcc, so configuring glibc
18419 # with a fresh cross-compiler works.
18420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 # <limits.h> exists even on freestanding compilers.
18422 # On the NeXT, cc -E runs the code through the compiler's parser,
18423 # not just through cpp. "Syntax error" is here to catch this case.
18424 cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
18430#ifdef __STDC__
18431# include <limits.h>
18432#else
18433# include <assert.h>
18434#endif
18435 Syntax error
18436_ACEOF
18437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18439 ac_status=$?
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } >/dev/null; then
18445 if test -s conftest.err; then
18446 ac_cpp_err=$ac_cxx_preproc_warn_flag
18447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18448 else
18449 ac_cpp_err=
18450 fi
18451else
18452 ac_cpp_err=yes
18453fi
18454if test -z "$ac_cpp_err"; then
18455 :
18456else
18457 echo "$as_me: failed program was:" >&5
18458sed 's/^/| /' conftest.$ac_ext >&5
18459
18460 # Broken: fails on valid input.
18461continue
18462fi
18463rm -f conftest.err conftest.$ac_ext
18464
18465 # OK, works on sane cases. Now check whether non-existent headers
18466 # can be detected and how.
18467 cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
18473#include <ac_nonexistent.h>
18474_ACEOF
18475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } >/dev/null; then
18483 if test -s conftest.err; then
18484 ac_cpp_err=$ac_cxx_preproc_warn_flag
18485 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18486 else
18487 ac_cpp_err=
18488 fi
18489else
18490 ac_cpp_err=yes
18491fi
18492if test -z "$ac_cpp_err"; then
18493 # Broken: success on invalid input.
18494continue
18495else
18496 echo "$as_me: failed program was:" >&5
18497sed 's/^/| /' conftest.$ac_ext >&5
18498
18499 # Passes both tests.
18500ac_preproc_ok=:
18501break
18502fi
18503rm -f conftest.err conftest.$ac_ext
18504
18505done
18506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18507rm -f conftest.err conftest.$ac_ext
18508if $ac_preproc_ok; then
18509 break
18510fi
18511
18512 done
18513 ac_cv_prog_CXXCPP=$CXXCPP
18514
18515fi
18516 CXXCPP=$ac_cv_prog_CXXCPP
18517else
18518 ac_cv_prog_CXXCPP=$CXXCPP
18519fi
18520echo "$as_me:$LINENO: result: $CXXCPP" >&5
18521echo "${ECHO_T}$CXXCPP" >&6
18522ac_preproc_ok=false
18523for ac_cxx_preproc_warn_flag in '' yes
18524do
18525 # Use a header file that comes with gcc, so configuring glibc
18526 # with a fresh cross-compiler works.
18527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18528 # <limits.h> exists even on freestanding compilers.
18529 # On the NeXT, cc -E runs the code through the compiler's parser,
18530 # not just through cpp. "Syntax error" is here to catch this case.
18531 cat >conftest.$ac_ext <<_ACEOF
18532/* confdefs.h. */
18533_ACEOF
18534cat confdefs.h >>conftest.$ac_ext
18535cat >>conftest.$ac_ext <<_ACEOF
18536/* end confdefs.h. */
18537#ifdef __STDC__
18538# include <limits.h>
18539#else
18540# include <assert.h>
18541#endif
18542 Syntax error
18543_ACEOF
18544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18546 ac_status=$?
18547 grep -v '^ *+' conftest.er1 >conftest.err
18548 rm -f conftest.er1
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } >/dev/null; then
18552 if test -s conftest.err; then
18553 ac_cpp_err=$ac_cxx_preproc_warn_flag
18554 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18555 else
18556 ac_cpp_err=
18557 fi
18558else
18559 ac_cpp_err=yes
18560fi
18561if test -z "$ac_cpp_err"; then
18562 :
18563else
18564 echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 # Broken: fails on valid input.
18568continue
18569fi
18570rm -f conftest.err conftest.$ac_ext
18571
18572 # OK, works on sane cases. Now check whether non-existent headers
18573 # can be detected and how.
18574 cat >conftest.$ac_ext <<_ACEOF
18575/* confdefs.h. */
18576_ACEOF
18577cat confdefs.h >>conftest.$ac_ext
18578cat >>conftest.$ac_ext <<_ACEOF
18579/* end confdefs.h. */
18580#include <ac_nonexistent.h>
18581_ACEOF
18582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18584 ac_status=$?
18585 grep -v '^ *+' conftest.er1 >conftest.err
18586 rm -f conftest.er1
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } >/dev/null; then
18590 if test -s conftest.err; then
18591 ac_cpp_err=$ac_cxx_preproc_warn_flag
18592 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18593 else
18594 ac_cpp_err=
18595 fi
18596else
18597 ac_cpp_err=yes
18598fi
18599if test -z "$ac_cpp_err"; then
18600 # Broken: success on invalid input.
18601continue
18602else
18603 echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 # Passes both tests.
18607ac_preproc_ok=:
18608break
18609fi
18610rm -f conftest.err conftest.$ac_ext
18611
18612done
18613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18614rm -f conftest.err conftest.$ac_ext
18615if $ac_preproc_ok; then
18616 :
18617else
18618 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18619See \`config.log' for more details." >&5
18620echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18621See \`config.log' for more details." >&2;}
18622 { (exit 1); exit 1; }; }
18623fi
18624
18625ac_ext=cc
18626ac_cpp='$CXXCPP $CPPFLAGS'
18627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18630
18631
18632
18633
18634
18635 ac_ext=cc
18636ac_cpp='$CXXCPP $CPPFLAGS'
18637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18640
18641
18642
18643for ac_header in iostream
18644do
18645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18646if eval "test \"\${$as_ac_Header+set}\" = set"; then
18647 echo "$as_me:$LINENO: checking for $ac_header" >&5
18648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18649if eval "test \"\${$as_ac_Header+set}\" = set"; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651fi
18652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18654else
18655 # Is the header compilable?
18656echo "$as_me:$LINENO: checking $ac_header usability" >&5
18657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18658cat >conftest.$ac_ext <<_ACEOF
18659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
18663/* end confdefs.h. */
18664$ac_includes_default
18665#include <$ac_header>
18666_ACEOF
18667rm -f conftest.$ac_objext
18668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18669 (eval $ac_compile) 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
dcc1b6ad
VS
18676 { ac_try='test -z "$ac_cxx_werror_flag"
18677 || test ! -s conftest.err'
a848cd7e
SC
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest.$ac_objext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_header_compiler=yes
18690else
18691 echo "$as_me: failed program was:" >&5
18692sed 's/^/| /' conftest.$ac_ext >&5
18693
18694ac_header_compiler=no
18695fi
18696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18698echo "${ECHO_T}$ac_header_compiler" >&6
18699
18700# Is the header present?
18701echo "$as_me:$LINENO: checking $ac_header presence" >&5
18702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18703cat >conftest.$ac_ext <<_ACEOF
18704/* confdefs.h. */
18705_ACEOF
18706cat confdefs.h >>conftest.$ac_ext
18707cat >>conftest.$ac_ext <<_ACEOF
18708/* end confdefs.h. */
18709#include <$ac_header>
18710_ACEOF
18711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18713 ac_status=$?
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } >/dev/null; then
18719 if test -s conftest.err; then
18720 ac_cpp_err=$ac_cxx_preproc_warn_flag
18721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18722 else
18723 ac_cpp_err=
18724 fi
18725else
18726 ac_cpp_err=yes
18727fi
18728if test -z "$ac_cpp_err"; then
18729 ac_header_preproc=yes
18730else
18731 echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_header_preproc=no
18735fi
18736rm -f conftest.err conftest.$ac_ext
18737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18738echo "${ECHO_T}$ac_header_preproc" >&6
18739
18740# So? What about this header?
18741case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18742 yes:no: )
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18747 ac_header_preproc=yes
18748 ;;
18749 no:yes:* )
18750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18762 (
18763 cat <<\_ASBOX
18764## ----------------------------------------- ##
18765## Report this to wx-dev@lists.wxwindows.org ##
18766## ----------------------------------------- ##
18767_ASBOX
18768 ) |
18769 sed "s/^/$as_me: WARNING: /" >&2
18770 ;;
18771esac
18772echo "$as_me:$LINENO: checking for $ac_header" >&5
18773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18774if eval "test \"\${$as_ac_Header+set}\" = set"; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776else
18777 eval "$as_ac_Header=\$ac_header_preproc"
18778fi
18779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18781
18782fi
18783if test `eval echo '${'$as_ac_Header'}'` = yes; then
18784 cat >>confdefs.h <<_ACEOF
18785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18786_ACEOF
18787
18788fi
18789
18790done
18791
18792
18793 if test "$ac_cv_header_iostream" = "yes" ; then
18794 :
18795 else
18796 cat >>confdefs.h <<\_ACEOF
18797#define wxUSE_IOSTREAMH 1
18798_ACEOF
18799
18800 fi
18801
18802 ac_ext=c
18803ac_cpp='$CPP $CPPFLAGS'
18804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18806ac_compiler_gnu=$ac_cv_c_compiler_gnu
18807
18808
18809
18810
18811 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18812echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18813if test "${wx_cv_cpp_bool+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18815else
18816
18817
18818
18819 ac_ext=cc
18820ac_cpp='$CXXCPP $CPPFLAGS'
18821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18824
18825
18826 cat >conftest.$ac_ext <<_ACEOF
18827/* confdefs.h. */
18828_ACEOF
18829cat confdefs.h >>conftest.$ac_ext
18830cat >>conftest.$ac_ext <<_ACEOF
18831/* end confdefs.h. */
18832
18833
18834int
18835main ()
18836{
18837
18838 bool b = true;
18839
18840 return 0;
18841
18842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext
18847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848 (eval $ac_compile) 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
dcc1b6ad
VS
18855 { ac_try='test -z "$ac_cxx_werror_flag"
18856 || test ! -s conftest.err'
a848cd7e
SC
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest.$ac_objext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868
18869 wx_cv_cpp_bool=yes
18870
18871else
18872 echo "$as_me: failed program was:" >&5
18873sed 's/^/| /' conftest.$ac_ext >&5
18874
18875
18876 wx_cv_cpp_bool=no
18877
18878
18879fi
18880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18881
18882 ac_ext=c
18883ac_cpp='$CPP $CPPFLAGS'
18884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886ac_compiler_gnu=$ac_cv_c_compiler_gnu
18887
18888
18889fi
18890echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18891echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18892
18893 if test "$wx_cv_cpp_bool" = "yes"; then
18894 cat >>confdefs.h <<\_ACEOF
18895#define HAVE_BOOL 1
18896_ACEOF
18897
18898 fi
18899
18900
18901
18902 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18903echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18904if test "${wx_cv_explicit+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18906else
18907
18908
18909
18910 ac_ext=cc
18911ac_cpp='$CXXCPP $CPPFLAGS'
18912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18915
18916
18917 cat >conftest.$ac_ext <<_ACEOF
18918/* confdefs.h. */
18919_ACEOF
18920cat confdefs.h >>conftest.$ac_ext
18921cat >>conftest.$ac_ext <<_ACEOF
18922/* end confdefs.h. */
18923
18924 class Foo { public: explicit Foo(int) {} };
18925
18926int
18927main ()
18928{
18929
18930 return 0;
18931
18932 ;
18933 return 0;
18934}
18935_ACEOF
18936rm -f conftest.$ac_objext
18937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18938 (eval $ac_compile) 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
dcc1b6ad
VS
18945 { ac_try='test -z "$ac_cxx_werror_flag"
18946 || test ! -s conftest.err'
a848cd7e
SC
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } &&
18952 { ac_try='test -s conftest.$ac_objext'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958
18959 cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965
18966 class Foo { public: explicit Foo(int) {} };
18967 static void TakeFoo(const Foo& foo) { }
18968
18969int
18970main ()
18971{
18972
18973 TakeFoo(17);
18974 return 0;
18975
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
dcc1b6ad
VS
18989 { ac_try='test -z "$ac_cxx_werror_flag"
18990 || test ! -s conftest.err'
a848cd7e
SC
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 wx_cv_explicit=no
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007wx_cv_explicit=yes
19008
19009fi
19010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19011
19012else
19013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
19016wx_cv_explicit=no
19017
19018fi
19019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19020
19021 ac_ext=c
19022ac_cpp='$CPP $CPPFLAGS'
19023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027
19028fi
19029echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19030echo "${ECHO_T}$wx_cv_explicit" >&6
19031
19032 if test "$wx_cv_explicit" = "yes"; then
19033 cat >>confdefs.h <<\_ACEOF
19034#define HAVE_EXPLICIT 1
19035_ACEOF
19036
19037 fi
19038
19039
19040echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19041echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19042if test "${ac_cv_cxx_const_cast+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19044else
19045
19046
19047 ac_ext=cc
19048ac_cpp='$CXXCPP $CPPFLAGS'
19049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19052
19053 cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059
19060int
19061main ()
19062{
19063int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext
19069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19070 (eval $ac_compile) 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
dcc1b6ad
VS
19077 { ac_try='test -z "$ac_cxx_werror_flag"
19078 || test ! -s conftest.err'
a848cd7e
SC
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_cxx_const_cast=yes
19091else
19092 echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
19095ac_cv_cxx_const_cast=no
19096fi
19097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19098 ac_ext=c
19099ac_cpp='$CPP $CPPFLAGS'
19100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
19104
19105fi
19106echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19107echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19108if test "$ac_cv_cxx_const_cast" = yes; then
19109
19110cat >>confdefs.h <<\_ACEOF
19111#define HAVE_CONST_CAST
19112_ACEOF
19113
19114fi
19115
19116echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19117echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19118if test "${ac_cv_cxx_static_cast+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120else
19121
19122
19123 ac_ext=cc
19124ac_cpp='$CXXCPP $CPPFLAGS'
19125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19128
19129 cat >conftest.$ac_ext <<_ACEOF
19130/* confdefs.h. */
19131_ACEOF
19132cat confdefs.h >>conftest.$ac_ext
19133cat >>conftest.$ac_ext <<_ACEOF
19134/* end confdefs.h. */
19135#include <typeinfo>
19136class Base { public : Base () {} virtual void f () = 0; };
19137class Derived : public Base { public : Derived () {} virtual void f () {} };
19138int g (Derived&) { return 0; }
19139int
19140main ()
19141{
19142
19143Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19144 ;
19145 return 0;
19146}
19147_ACEOF
19148rm -f conftest.$ac_objext
19149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19150 (eval $ac_compile) 2>conftest.er1
19151 ac_status=$?
19152 grep -v '^ *+' conftest.er1 >conftest.err
19153 rm -f conftest.er1
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
dcc1b6ad
VS
19157 { ac_try='test -z "$ac_cxx_werror_flag"
19158 || test ! -s conftest.err'
a848cd7e
SC
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_cv_cxx_static_cast=yes
19171else
19172 echo "$as_me: failed program was:" >&5
19173sed 's/^/| /' conftest.$ac_ext >&5
19174
19175ac_cv_cxx_static_cast=no
19176fi
19177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19178 ac_ext=c
19179ac_cpp='$CPP $CPPFLAGS'
19180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183
19184
19185fi
19186echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19187echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19188if test "$ac_cv_cxx_static_cast" = yes; then
19189
19190cat >>confdefs.h <<\_ACEOF
19191#define HAVE_STATIC_CAST
19192_ACEOF
19193
19194fi
19195
19196
19197if test "$wxUSE_STL" = "yes"; then
19198 ac_ext=cc
19199ac_cpp='$CXXCPP $CPPFLAGS'
19200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19203
19204
19205 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19206echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19207 cat >conftest.$ac_ext <<_ACEOF
19208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
19213#include <string>
19214 #include <functional>
19215 #include <algorithm>
19216 #include <vector>
19217 #include <list>
19218int
19219main ()
19220{
19221std::vector<int> moo;
19222 std::list<int> foo;
19223 std::vector<int>::iterator it =
19224 std::find_if(moo.begin(), moo.end(),
19225 std::bind2nd(std::less<int>(), 3));
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
dcc1b6ad
VS
19239 { ac_try='test -z "$ac_cxx_werror_flag"
19240 || test ! -s conftest.err'
a848cd7e
SC
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 echo "$as_me:$LINENO: result: yes" >&5
19253echo "${ECHO_T}yes" >&6
19254else
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258echo "$as_me:$LINENO: result: no" >&5
19259echo "${ECHO_T}no" >&6
19260 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19261echo "$as_me: error: Basic STL functionality missing" >&2;}
19262 { (exit 1); exit 1; }; }
19263fi
19264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19265
19266 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19267echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19268 cat >conftest.$ac_ext <<_ACEOF
19269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
19274#include <string>
19275int
19276main ()
19277{
19278std::wstring foo;
19279 ;
19280 return 0;
19281}
19282_ACEOF
19283rm -f conftest.$ac_objext
19284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19285 (eval $ac_compile) 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
dcc1b6ad
VS
19292 { ac_try='test -z "$ac_cxx_werror_flag"
19293 || test ! -s conftest.err'
a848cd7e
SC
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest.$ac_objext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 echo "$as_me:$LINENO: result: yes" >&5
19306echo "${ECHO_T}yes" >&6
19307 cat >>confdefs.h <<\_ACEOF
19308#define HAVE_STD_WSTRING 1
19309_ACEOF
19310
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315echo "$as_me:$LINENO: result: no" >&5
19316echo "${ECHO_T}no" >&6
19317fi
19318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319
19320 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19321echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19322 cat >conftest.$ac_ext <<_ACEOF
19323/* confdefs.h. */
19324_ACEOF
19325cat confdefs.h >>conftest.$ac_ext
19326cat >>conftest.$ac_ext <<_ACEOF
19327/* end confdefs.h. */
19328#include <string>
19329int
19330main ()
19331{
19332std::string foo, bar;
19333 foo.compare(bar);
19334 foo.compare(1, 1, bar);
19335 foo.compare(1, 1, bar, 1, 1);
19336 foo.compare("");
19337 foo.compare(1, 1, "");
19338 foo.compare(1, 1, "", 2);
19339 ;
19340 return 0;
19341}
19342_ACEOF
19343rm -f conftest.$ac_objext
19344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
dcc1b6ad
VS
19352 { ac_try='test -z "$ac_cxx_werror_flag"
19353 || test ! -s conftest.err'
a848cd7e
SC
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 echo "$as_me:$LINENO: result: yes" >&5
19366echo "${ECHO_T}yes" >&6
19367 cat >>confdefs.h <<\_ACEOF
19368#define HAVE_STD_STRING_COMPARE 1
19369_ACEOF
19370
19371else
19372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375echo "$as_me:$LINENO: result: no" >&5
19376echo "${ECHO_T}no" >&6
19377fi
19378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19379
19380 ac_ext=c
19381ac_cpp='$CPP $CPPFLAGS'
19382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19384ac_compiler_gnu=$ac_cv_c_compiler_gnu
19385
19386fi
19387
19388
19389SEARCH_INCLUDE="\
19390 /usr/local/include \
19391 \
19392 /usr/Motif-2.1/include \
19393 /usr/Motif-1.2/include \
19394 /usr/include/Motif1.2 \
19395 /opt/xpm/include/X11 \
19396 /opt/GBxpm/include/ \
19397 /opt/GBxpm/X11/include/ \
19398 \
19399 /usr/dt/include \
19400 /usr/openwin/include \
19401 \
19402 /usr/include/Xm \
19403 \
19404 /usr/X11R6/include \
19405 /usr/X11R6.4/include \
19406 /usr/X11R5/include \
19407 /usr/X11R4/include \
19408 \
19409 /usr/include/X11R6 \
19410 /usr/include/X11R5 \
19411 /usr/include/X11R4 \
19412 \
19413 /usr/local/X11R6/include \
19414 /usr/local/X11R5/include \
19415 /usr/local/X11R4/include \
19416 \
19417 /usr/local/include/X11R6 \
19418 /usr/local/include/X11R5 \
19419 /usr/local/include/X11R4 \
19420 \
19421 /usr/X11/include \
19422 /usr/include/X11 \
19423 /usr/local/X11/include \
19424 /usr/local/include/X11 \
19425 \
19426 /usr/X386/include \
19427 /usr/x386/include \
19428 /usr/XFree86/include/X11 \
19429 \
19430 X:/XFree86/include \
19431 X:/XFree86/include/X11 \
19432 \
19433 /usr/include/gtk \
19434 /usr/local/include/gtk \
19435 /usr/include/glib \
19436 /usr/local/include/glib \
19437 \
19438 /usr/include/qt \
19439 /usr/local/include/qt \
19440 \
19441 /usr/local/arm/3.3.2/include \
19442 \
19443 /usr/include/windows \
19444 /usr/include/wine \
19445 /usr/local/include/wine \
19446 \
19447 /usr/unsupported/include \
19448 /usr/athena/include \
19449 /usr/local/x11r5/include \
19450 /usr/lpp/Xamples/include \
19451 \
19452 /usr/openwin/share/include"
19453
19454SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19455
19456
19457cat >confcache <<\_ACEOF
19458# This file is a shell script that caches the results of configure
19459# tests run on this system so they can be shared between configure
19460# scripts and configure runs, see configure's option --config-cache.
19461# It is not useful on other systems. If it contains results you don't
19462# want to keep, you may remove or edit it.
19463#
19464# config.status only pays attention to the cache file if you give it
19465# the --recheck option to rerun configure.
19466#
19467# `ac_cv_env_foo' variables (set or unset) will be overridden when
19468# loading this file, other *unset* `ac_cv_foo' will be assigned the
19469# following values.
19470
19471_ACEOF
19472
19473# The following way of writing the cache mishandles newlines in values,
19474# but we know of no workaround that is simple, portable, and efficient.
19475# So, don't put newlines in cache variables' values.
19476# Ultrix sh set writes to stderr and can't be redirected directly,
19477# and sets the high bit in the cache file unless we assign to the vars.
19478{
19479 (set) 2>&1 |
19480 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19481 *ac_space=\ *)
19482 # `set' does not quote correctly, so add quotes (double-quote
19483 # substitution turns \\\\ into \\, and sed turns \\ into \).
19484 sed -n \
19485 "s/'/'\\\\''/g;
19486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19487 ;;
19488 *)
19489 # `set' quotes correctly as required by POSIX, so do not add quotes.
19490 sed -n \
19491 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19492 ;;
19493 esac;
19494} |
19495 sed '
19496 t clear
19497 : clear
19498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19499 t end
19500 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19501 : end' >>confcache
19502if diff $cache_file confcache >/dev/null 2>&1; then :; else
19503 if test -w $cache_file; then
19504 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19505 cat confcache >$cache_file
19506 else
19507 echo "not updating unwritable cache $cache_file"
19508 fi
19509fi
19510rm -f confcache
19511
19512if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19513 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19514echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19515if test "${wx_cv_lib_glibc21+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19517else
19518
19519 cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525#include <features.h>
19526int
19527main ()
19528{
19529
19530 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19531 #error not glibc2.1
19532 #endif
19533
19534 ;
19535 return 0;
19536}
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
dcc1b6ad
VS
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
a848cd7e
SC
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560
19561 wx_cv_lib_glibc21=yes
19562
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567
19568 wx_cv_lib_glibc21=no
19569
19570
19571fi
19572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19573
19574fi
19575echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19576echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19577 if test "$wx_cv_lib_glibc21" = "yes"; then
19578 cat >>confdefs.h <<\_ACEOF
19579#define wxHAVE_GLIBC2 1
19580_ACEOF
19581
19582 fi
19583fi
19584
19585if test "x$wx_cv_lib_glibc21" = "xyes"; then
19586 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19587 cat >>confdefs.h <<\_ACEOF
19588#define _GNU_SOURCE 1
19589_ACEOF
19590
19591 fi
19592fi
19593
19594
19595
19596if test "$wxUSE_REGEX" != "no"; then
19597 cat >>confdefs.h <<\_ACEOF
19598#define wxUSE_REGEX 1
19599_ACEOF
19600
19601
19602 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19603 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19604echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19605 wxUSE_REGEX=builtin
19606 fi
19607
19608 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19609 if test "${ac_cv_header_regex_h+set}" = set; then
19610 echo "$as_me:$LINENO: checking for regex.h" >&5
19611echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19612if test "${ac_cv_header_regex_h+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614fi
19615echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19616echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19617else
19618 # Is the header compilable?
19619echo "$as_me:$LINENO: checking regex.h usability" >&5
19620echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19621cat >conftest.$ac_ext <<_ACEOF
19622/* confdefs.h. */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h. */
19627$ac_includes_default
19628#include <regex.h>
19629_ACEOF
19630rm -f conftest.$ac_objext
19631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
dcc1b6ad
VS
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
a848cd7e
SC
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_header_compiler=yes
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657ac_header_compiler=no
19658fi
19659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661echo "${ECHO_T}$ac_header_compiler" >&6
19662
19663# Is the header present?
19664echo "$as_me:$LINENO: checking regex.h presence" >&5
19665echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19666cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672#include <regex.h>
19673_ACEOF
19674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19676 ac_status=$?
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } >/dev/null; then
19682 if test -s conftest.err; then
19683 ac_cpp_err=$ac_c_preproc_warn_flag
19684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19685 else
19686 ac_cpp_err=
19687 fi
19688else
19689 ac_cpp_err=yes
19690fi
19691if test -z "$ac_cpp_err"; then
19692 ac_header_preproc=yes
19693else
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_header_preproc=no
19698fi
19699rm -f conftest.err conftest.$ac_ext
19700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701echo "${ECHO_T}$ac_header_preproc" >&6
19702
19703# So? What about this header?
19704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19705 yes:no: )
19706 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19707echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19709echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19710 ac_header_preproc=yes
19711 ;;
19712 no:yes:* )
19713 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19714echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19716echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19718echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19720echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19722echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19723 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19724echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19725 (
19726 cat <<\_ASBOX
19727## ----------------------------------------- ##
19728## Report this to wx-dev@lists.wxwindows.org ##
19729## ----------------------------------------- ##
19730_ASBOX
19731 ) |
19732 sed "s/^/$as_me: WARNING: /" >&2
19733 ;;
19734esac
19735echo "$as_me:$LINENO: checking for regex.h" >&5
19736echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19737if test "${ac_cv_header_regex_h+set}" = set; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19739else
19740 ac_cv_header_regex_h=$ac_header_preproc
19741fi
19742echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19743echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19744
19745fi
19746if test $ac_cv_header_regex_h = yes; then
19747
19748for ac_func in regcomp
19749do
19750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19751echo "$as_me:$LINENO: checking for $ac_func" >&5
19752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19753if eval "test \"\${$as_ac_var+set}\" = set"; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755else
19756 cat >conftest.$ac_ext <<_ACEOF
19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
19762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19764#define $ac_func innocuous_$ac_func
19765
19766/* System header to define __stub macros and hopefully few prototypes,
19767 which can conflict with char $ac_func (); below.
19768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19769 <limits.h> exists even on freestanding compilers. */
19770
19771#ifdef __STDC__
19772# include <limits.h>
19773#else
19774# include <assert.h>
19775#endif
19776
19777#undef $ac_func
19778
19779/* Override any gcc2 internal prototype to avoid an error. */
19780#ifdef __cplusplus
19781extern "C"
19782{
19783#endif
19784/* We use char because int might match the return type of a gcc2
19785 builtin and then its argument prototype would still apply. */
19786char $ac_func ();
19787/* The GNU C library defines this for functions which it implements
19788 to always fail with ENOSYS. Some functions are actually named
19789 something starting with __ and the normal name is an alias. */
19790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19791choke me
19792#else
19793char (*f) () = $ac_func;
19794#endif
19795#ifdef __cplusplus
19796}
19797#endif
19798
19799int
19800main ()
19801{
19802return f != $ac_func;
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807rm -f conftest.$ac_objext conftest$ac_exeext
19808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19809 (eval $ac_link) 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
dcc1b6ad
VS
19816 { ac_try='test -z "$ac_c_werror_flag"
19817 || test ! -s conftest.err'
a848cd7e
SC
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest$ac_exeext'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 eval "$as_ac_var=yes"
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834eval "$as_ac_var=no"
19835fi
19836rm -f conftest.err conftest.$ac_objext \
19837 conftest$ac_exeext conftest.$ac_ext
19838fi
19839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19841if test `eval echo '${'$as_ac_var'}'` = yes; then
19842 cat >>confdefs.h <<_ACEOF
19843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19844_ACEOF
19845
19846fi
19847done
19848
19849fi
19850
19851
19852
19853 if test "x$ac_cv_func_regcomp" != "xyes"; then
19854 if test "$wxUSE_REGEX" = "sys" ; then
19855 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19856echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19857 { (exit 1); exit 1; }; }
19858 else
19859 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19860echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19861 wxUSE_REGEX=builtin
19862 fi
19863 else
19864 wxUSE_REGEX=sys
19865 cat >>confdefs.h <<\_ACEOF
19866#define WX_NO_REGEX_ADVANCED 1
19867_ACEOF
19868
19869 fi
19870 fi
19871fi
19872
19873
19874ZLIB_LINK=
19875if test "$wxUSE_ZLIB" != "no" ; then
19876 cat >>confdefs.h <<\_ACEOF
19877#define wxUSE_ZLIB 1
19878_ACEOF
19879
19880
19881 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19882 if test "$USE_DARWIN" = 1; then
19883 system_zlib_h_ok="yes"
19884 else
19885 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19886echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19887if test "${ac_cv_header_zlib_h+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19889else
19890 if test "$cross_compiling" = yes; then
19891 unset ac_cv_header_zlib_h
19892
19893else
19894 cat >conftest.$ac_ext <<_ACEOF
19895/* confdefs.h. */
19896_ACEOF
19897cat confdefs.h >>conftest.$ac_ext
19898cat >>conftest.$ac_ext <<_ACEOF
19899/* end confdefs.h. */
19900
19901 #include <zlib.h>
19902 #include <stdio.h>
19903
19904 int main()
19905 {
19906 FILE *f=fopen("conftestval", "w");
19907 if (!f) exit(1);
19908 fprintf(f, "%s",
19909 ZLIB_VERSION[0] == '1' &&
19910 (ZLIB_VERSION[2] > '1' ||
19911 (ZLIB_VERSION[2] == '1' &&
19912 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19913 exit(0);
19914 }
19915
19916_ACEOF
19917rm -f conftest$ac_exeext
19918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_header_zlib_h=`cat conftestval`
19929else
19930 echo "$as_me: program exited with status $ac_status" >&5
19931echo "$as_me: failed program was:" >&5
19932sed 's/^/| /' conftest.$ac_ext >&5
19933
19934( exit $ac_status )
19935ac_cv_header_zlib_h=no
19936fi
19937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19938fi
19939
19940fi
19941echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19942echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19943 if test "${ac_cv_header_zlib_h+set}" = set; then
19944 echo "$as_me:$LINENO: checking for zlib.h" >&5
19945echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19946if test "${ac_cv_header_zlib_h+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19950echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19951else
19952 # Is the header compilable?
19953echo "$as_me:$LINENO: checking zlib.h usability" >&5
19954echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19955cat >conftest.$ac_ext <<_ACEOF
19956/* confdefs.h. */
19957_ACEOF
19958cat confdefs.h >>conftest.$ac_ext
19959cat >>conftest.$ac_ext <<_ACEOF
19960/* end confdefs.h. */
19961$ac_includes_default
19962#include <zlib.h>
19963_ACEOF
19964rm -f conftest.$ac_objext
19965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19966 (eval $ac_compile) 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
dcc1b6ad
VS
19973 { ac_try='test -z "$ac_c_werror_flag"
19974 || test ! -s conftest.err'
a848cd7e
SC
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
19986 ac_header_compiler=yes
19987else
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991ac_header_compiler=no
19992fi
19993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19995echo "${ECHO_T}$ac_header_compiler" >&6
19996
19997# Is the header present?
19998echo "$as_me:$LINENO: checking zlib.h presence" >&5
19999echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20000cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
20006#include <zlib.h>
20007_ACEOF
20008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20010 ac_status=$?
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } >/dev/null; then
20016 if test -s conftest.err; then
20017 ac_cpp_err=$ac_c_preproc_warn_flag
20018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20019 else
20020 ac_cpp_err=
20021 fi
20022else
20023 ac_cpp_err=yes
20024fi
20025if test -z "$ac_cpp_err"; then
20026 ac_header_preproc=yes
20027else
20028 echo "$as_me: failed program was:" >&5
20029sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 ac_header_preproc=no
20032fi
20033rm -f conftest.err conftest.$ac_ext
20034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20035echo "${ECHO_T}$ac_header_preproc" >&6
20036
20037# So? What about this header?
20038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20039 yes:no: )
20040 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20041echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20043echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20044 ac_header_preproc=yes
20045 ;;
20046 no:yes:* )
20047 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20048echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20050echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20052echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20054echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20056echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20058echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20059 (
20060 cat <<\_ASBOX
20061## ----------------------------------------- ##
20062## Report this to wx-dev@lists.wxwindows.org ##
20063## ----------------------------------------- ##
20064_ASBOX
20065 ) |
20066 sed "s/^/$as_me: WARNING: /" >&2
20067 ;;
20068esac
20069echo "$as_me:$LINENO: checking for zlib.h" >&5
20070echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20071if test "${ac_cv_header_zlib_h+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073else
20074 ac_cv_header_zlib_h=$ac_header_preproc
20075fi
20076echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20077echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20078
20079fi
20080
20081
20082
20083 system_zlib_h_ok=$ac_cv_header_zlib_h
20084 fi
20085
20086 if test "$system_zlib_h_ok" = "yes"; then
20087 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20088echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20089if test "${ac_cv_lib_z_deflate+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092 ac_check_lib_save_LIBS=$LIBS
20093LIBS="-lz $LIBS"
20094cat >conftest.$ac_ext <<_ACEOF
20095/* confdefs.h. */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h. */
20100
20101/* Override any gcc2 internal prototype to avoid an error. */
20102#ifdef __cplusplus
20103extern "C"
20104#endif
20105/* We use char because int might match the return type of a gcc2
20106 builtin and then its argument prototype would still apply. */
20107char deflate ();
20108int
20109main ()
20110{
20111deflate ();
20112 ;
20113 return 0;
20114}
20115_ACEOF
20116rm -f conftest.$ac_objext conftest$ac_exeext
20117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20118 (eval $ac_link) 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
dcc1b6ad
VS
20125 { ac_try='test -z "$ac_c_werror_flag"
20126 || test ! -s conftest.err'
a848cd7e
SC
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_lib_z_deflate=yes
20139else
20140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143ac_cv_lib_z_deflate=no
20144fi
20145rm -f conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20147LIBS=$ac_check_lib_save_LIBS
20148fi
20149echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20150echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20151if test $ac_cv_lib_z_deflate = yes; then
20152 ZLIB_LINK=" -lz"
20153fi
20154
20155 fi
20156
20157 if test "x$ZLIB_LINK" = "x" ; then
20158 if test "$wxUSE_ZLIB" = "sys" ; then
20159 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20160echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20161 { (exit 1); exit 1; }; }
20162 else
20163 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20164echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20165 wxUSE_ZLIB=builtin
20166 fi
20167 else
20168 wxUSE_ZLIB=sys
20169 fi
20170 fi
20171fi
20172
20173
20174PNG_LINK=
20175if test "$wxUSE_LIBPNG" != "no" ; then
20176 cat >>confdefs.h <<\_ACEOF
20177#define wxUSE_LIBPNG 1
20178_ACEOF
20179
20180
20181 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20182 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20183echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20184 wxUSE_LIBPNG=sys
20185 fi
20186
20187 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20188 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20189echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20190 wxUSE_LIBPNG=builtin
20191 fi
20192
20193 if test "$wxUSE_MGL" != 1 ; then
20194 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20195 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20196echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20197if test "${ac_cv_header_png_h+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199else
20200 if test "$cross_compiling" = yes; then
20201 unset ac_cv_header_png_h
20202
20203else
20204 cat >conftest.$ac_ext <<_ACEOF
20205/* confdefs.h. */
20206_ACEOF
20207cat confdefs.h >>conftest.$ac_ext
20208cat >>conftest.$ac_ext <<_ACEOF
20209/* end confdefs.h. */
20210
20211 #include <png.h>
20212 #include <stdio.h>
20213
20214 int main()
20215 {
20216 FILE *f=fopen("conftestval", "w");
20217 if (!f) exit(1);
20218 fprintf(f, "%s",
20219 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20220 exit(0);
20221 }
20222
20223_ACEOF
20224rm -f conftest$ac_exeext
20225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226 (eval $ac_link) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_header_png_h=`cat conftestval`
20236else
20237 echo "$as_me: program exited with status $ac_status" >&5
20238echo "$as_me: failed program was:" >&5
20239sed 's/^/| /' conftest.$ac_ext >&5
20240
20241( exit $ac_status )
20242ac_cv_header_png_h=no
20243fi
20244rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20245fi
20246
20247fi
20248echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20249echo "${ECHO_T}$ac_cv_header_png_h" >&6
20250 if test "${ac_cv_header_png_h+set}" = set; then
20251 echo "$as_me:$LINENO: checking for png.h" >&5
20252echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20253if test "${ac_cv_header_png_h+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255fi
20256echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20257echo "${ECHO_T}$ac_cv_header_png_h" >&6
20258else
20259 # Is the header compilable?
20260echo "$as_me:$LINENO: checking png.h usability" >&5
20261echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20262cat >conftest.$ac_ext <<_ACEOF
20263/* confdefs.h. */
20264_ACEOF
20265cat confdefs.h >>conftest.$ac_ext
20266cat >>conftest.$ac_ext <<_ACEOF
20267/* end confdefs.h. */
20268$ac_includes_default
20269#include <png.h>
20270_ACEOF
20271rm -f conftest.$ac_objext
20272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 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); } &&
dcc1b6ad
VS
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
a848cd7e
SC
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_header_compiler=yes
20294else
20295 echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298ac_header_compiler=no
20299fi
20300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20302echo "${ECHO_T}$ac_header_compiler" >&6
20303
20304# Is the header present?
20305echo "$as_me:$LINENO: checking png.h presence" >&5
20306echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20307cat >conftest.$ac_ext <<_ACEOF
20308/* confdefs.h. */
20309_ACEOF
20310cat confdefs.h >>conftest.$ac_ext
20311cat >>conftest.$ac_ext <<_ACEOF
20312/* end confdefs.h. */
20313#include <png.h>
20314_ACEOF
20315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } >/dev/null; then
20323 if test -s conftest.err; then
20324 ac_cpp_err=$ac_c_preproc_warn_flag
20325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20326 else
20327 ac_cpp_err=
20328 fi
20329else
20330 ac_cpp_err=yes
20331fi
20332if test -z "$ac_cpp_err"; then
20333 ac_header_preproc=yes
20334else
20335 echo "$as_me: failed program was:" >&5
20336sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ac_header_preproc=no
20339fi
20340rm -f conftest.err conftest.$ac_ext
20341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20342echo "${ECHO_T}$ac_header_preproc" >&6
20343
20344# So? What about this header?
20345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20346 yes:no: )
20347 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20348echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20350echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20351 ac_header_preproc=yes
20352 ;;
20353 no:yes:* )
20354 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20355echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20357echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20359echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20361echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20363echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20365echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20366 (
20367 cat <<\_ASBOX
20368## ----------------------------------------- ##
20369## Report this to wx-dev@lists.wxwindows.org ##
20370## ----------------------------------------- ##
20371_ASBOX
20372 ) |
20373 sed "s/^/$as_me: WARNING: /" >&2
20374 ;;
20375esac
20376echo "$as_me:$LINENO: checking for png.h" >&5
20377echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20378if test "${ac_cv_header_png_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381 ac_cv_header_png_h=$ac_header_preproc
20382fi
20383echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20384echo "${ECHO_T}$ac_cv_header_png_h" >&6
20385
20386fi
20387
20388
20389
20390 if test "$ac_cv_header_png_h" = "yes"; then
20391 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20392echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20393if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395else
20396 ac_check_lib_save_LIBS=$LIBS
20397LIBS="-lpng -lz -lm $LIBS"
20398cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404
20405/* Override any gcc2 internal prototype to avoid an error. */
20406#ifdef __cplusplus
20407extern "C"
20408#endif
20409/* We use char because int might match the return type of a gcc2
20410 builtin and then its argument prototype would still apply. */
20411char png_check_sig ();
20412int
20413main ()
20414{
20415png_check_sig ();
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext conftest$ac_exeext
20421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422 (eval $ac_link) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
dcc1b6ad
VS
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
a848cd7e
SC
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest$ac_exeext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_lib_png_png_check_sig=yes
20443else
20444 echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447ac_cv_lib_png_png_check_sig=no
20448fi
20449rm -f conftest.err conftest.$ac_objext \
20450 conftest$ac_exeext conftest.$ac_ext
20451LIBS=$ac_check_lib_save_LIBS
20452fi
20453echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20454echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20455if test $ac_cv_lib_png_png_check_sig = yes; then
20456 PNG_LINK=" -lpng -lz"
20457fi
20458
20459 fi
20460
20461 if test "x$PNG_LINK" = "x" ; then
20462 if test "$wxUSE_LIBPNG" = "sys" ; then
20463 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20464echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20465 { (exit 1); exit 1; }; }
20466 else
20467 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20468echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20469 wxUSE_LIBPNG=builtin
20470 fi
20471 else
20472 wxUSE_LIBPNG=sys
20473 fi
20474 fi
20475 fi
20476
20477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20478fi
20479
20480
20481JPEG_LINK=
20482if test "$wxUSE_LIBJPEG" != "no" ; then
20483 cat >>confdefs.h <<\_ACEOF
20484#define wxUSE_LIBJPEG 1
20485_ACEOF
20486
20487
20488 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20489 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20490echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20491 wxUSE_LIBJPEG=sys
20492 fi
20493
20494 if test "$wxUSE_MGL" != 1 ; then
20495 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20496 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20497echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20498 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507
20508 #undef HAVE_STDLIB_H
20509 #include <stdio.h>
20510 #include <jpeglib.h>
20511
20512int
20513main ()
20514{
20515
20516
20517 ;
20518 return 0;
20519}
20520_ACEOF
20521rm -f conftest.$ac_objext
20522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20523 (eval $ac_compile) 2>conftest.er1
20524 ac_status=$?
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
dcc1b6ad
VS
20530 { ac_try='test -z "$ac_c_werror_flag"
20531 || test ! -s conftest.err'
a848cd7e
SC
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_cv_header_jpeglib_h=yes
20544else
20545 echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548ac_cv_header_jpeglib_h=no
20549
20550fi
20551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20552
20553fi
20554
20555 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20556echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20557
20558 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20559 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20560echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20561if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
20564 ac_check_lib_save_LIBS=$LIBS
20565LIBS="-ljpeg $LIBS"
20566cat >conftest.$ac_ext <<_ACEOF
20567/* confdefs.h. */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h. */
20572
20573/* Override any gcc2 internal prototype to avoid an error. */
20574#ifdef __cplusplus
20575extern "C"
20576#endif
20577/* We use char because int might match the return type of a gcc2
20578 builtin and then its argument prototype would still apply. */
20579char jpeg_read_header ();
20580int
20581main ()
20582{
20583jpeg_read_header ();
20584 ;
20585 return 0;
20586}
20587_ACEOF
20588rm -f conftest.$ac_objext conftest$ac_exeext
20589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20590 (eval $ac_link) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
dcc1b6ad
VS
20597 { ac_try='test -z "$ac_c_werror_flag"
20598 || test ! -s conftest.err'
a848cd7e
SC
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest$ac_exeext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_lib_jpeg_jpeg_read_header=yes
20611else
20612 echo "$as_me: failed program was:" >&5
20613sed 's/^/| /' conftest.$ac_ext >&5
20614
20615ac_cv_lib_jpeg_jpeg_read_header=no
20616fi
20617rm -f conftest.err conftest.$ac_objext \
20618 conftest$ac_exeext conftest.$ac_ext
20619LIBS=$ac_check_lib_save_LIBS
20620fi
20621echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20622echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20623if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20624 JPEG_LINK=" -ljpeg"
20625fi
20626
20627 fi
20628
20629 if test "x$JPEG_LINK" = "x" ; then
20630 if test "$wxUSE_LIBJPEG" = "sys" ; then
20631 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20632echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20633 { (exit 1); exit 1; }; }
20634 else
20635 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20636echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20637 wxUSE_LIBJPEG=builtin
20638 fi
20639 else
20640 wxUSE_LIBJPEG=sys
20641 fi
20642 fi
20643 fi
20644fi
20645
20646
20647TIFF_LINK=
20648TIFF_PREREQ_LINKS=-lm
20649if test "$wxUSE_LIBTIFF" != "no" ; then
20650 cat >>confdefs.h <<\_ACEOF
20651#define wxUSE_LIBTIFF 1
20652_ACEOF
20653
20654
20655 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20656 if test "$wxUSE_LIBJPEG" = "sys"; then
20657 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20658 fi
20659 if test "$wxUSE_ZLIB" = "sys"; then
20660 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20661 fi
20662 if test "${ac_cv_header_tiffio_h+set}" = set; then
20663 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20664echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20665if test "${ac_cv_header_tiffio_h+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20667fi
20668echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20669echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20670else
20671 # Is the header compilable?
20672echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20673echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20674cat >conftest.$ac_ext <<_ACEOF
20675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
20680$ac_includes_default
20681#include <tiffio.h>
20682_ACEOF
20683rm -f conftest.$ac_objext
20684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20685 (eval $ac_compile) 2>conftest.er1
20686 ac_status=$?
20687 grep -v '^ *+' conftest.er1 >conftest.err
20688 rm -f conftest.er1
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
dcc1b6ad
VS
20692 { ac_try='test -z "$ac_c_werror_flag"
20693 || test ! -s conftest.err'
a848cd7e
SC
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_header_compiler=yes
20706else
20707 echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
20710ac_header_compiler=no
20711fi
20712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20714echo "${ECHO_T}$ac_header_compiler" >&6
20715
20716# Is the header present?
20717echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20718echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20719cat >conftest.$ac_ext <<_ACEOF
20720/* confdefs.h. */
20721_ACEOF
20722cat confdefs.h >>conftest.$ac_ext
20723cat >>conftest.$ac_ext <<_ACEOF
20724/* end confdefs.h. */
20725#include <tiffio.h>
20726_ACEOF
20727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20729 ac_status=$?
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } >/dev/null; then
20735 if test -s conftest.err; then
20736 ac_cpp_err=$ac_c_preproc_warn_flag
20737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20738 else
20739 ac_cpp_err=
20740 fi
20741else
20742 ac_cpp_err=yes
20743fi
20744if test -z "$ac_cpp_err"; then
20745 ac_header_preproc=yes
20746else
20747 echo "$as_me: failed program was:" >&5
20748sed 's/^/| /' conftest.$ac_ext >&5
20749
20750 ac_header_preproc=no
20751fi
20752rm -f conftest.err conftest.$ac_ext
20753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20754echo "${ECHO_T}$ac_header_preproc" >&6
20755
20756# So? What about this header?
20757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20758 yes:no: )
20759 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20760echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20762echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20763 ac_header_preproc=yes
20764 ;;
20765 no:yes:* )
20766 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20767echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20768 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20769echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20771echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20773echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20775echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20777echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20778 (
20779 cat <<\_ASBOX
20780## ----------------------------------------- ##
20781## Report this to wx-dev@lists.wxwindows.org ##
20782## ----------------------------------------- ##
20783_ASBOX
20784 ) |
20785 sed "s/^/$as_me: WARNING: /" >&2
20786 ;;
20787esac
20788echo "$as_me:$LINENO: checking for tiffio.h" >&5
20789echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20790if test "${ac_cv_header_tiffio_h+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20792else
20793 ac_cv_header_tiffio_h=$ac_header_preproc
20794fi
20795echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20796echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20797
20798fi
20799if test $ac_cv_header_tiffio_h = yes; then
20800
20801 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20802echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20803if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20805else
20806 ac_check_lib_save_LIBS=$LIBS
20807LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20808cat >conftest.$ac_ext <<_ACEOF
20809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
20814
20815/* Override any gcc2 internal prototype to avoid an error. */
20816#ifdef __cplusplus
20817extern "C"
20818#endif
20819/* We use char because int might match the return type of a gcc2
20820 builtin and then its argument prototype would still apply. */
20821char TIFFError ();
20822int
20823main ()
20824{
20825TIFFError ();
20826 ;
20827 return 0;
20828}
20829_ACEOF
20830rm -f conftest.$ac_objext conftest$ac_exeext
20831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20832 (eval $ac_link) 2>conftest.er1
20833 ac_status=$?
20834 grep -v '^ *+' conftest.er1 >conftest.err
20835 rm -f conftest.er1
20836 cat conftest.err >&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); } &&
dcc1b6ad
VS
20839 { ac_try='test -z "$ac_c_werror_flag"
20840 || test ! -s conftest.err'
a848cd7e
SC
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20843 ac_status=$?
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; } &&
20846 { ac_try='test -s conftest$ac_exeext'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; }; then
20852 ac_cv_lib_tiff_TIFFError=yes
20853else
20854 echo "$as_me: failed program was:" >&5
20855sed 's/^/| /' conftest.$ac_ext >&5
20856
20857ac_cv_lib_tiff_TIFFError=no
20858fi
20859rm -f conftest.err conftest.$ac_objext \
20860 conftest$ac_exeext conftest.$ac_ext
20861LIBS=$ac_check_lib_save_LIBS
20862fi
20863echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20864echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20865if test $ac_cv_lib_tiff_TIFFError = yes; then
20866 TIFF_LINK=" -ltiff"
20867fi
20868
20869
20870
20871fi
20872
20873
20874
20875 if test "x$TIFF_LINK" = "x" ; then
20876 if test "$wxUSE_LIBTIFF" = "sys" ; then
20877 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20878echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20879 { (exit 1); exit 1; }; }
20880 else
20881 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20882echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20883 wxUSE_LIBTIFF=builtin
20884 fi
20885 else
20886 wxUSE_LIBTIFF=sys
20887 fi
20888 fi
20889fi
20890
20891
20892if test "$wxUSE_EXPAT" != "no"; then
20893 wxUSE_XML=yes
20894 cat >>confdefs.h <<\_ACEOF
20895#define wxUSE_EXPAT 1
20896_ACEOF
20897
20898 cat >>confdefs.h <<\_ACEOF
20899#define wxUSE_XML 1
20900_ACEOF
20901
20902
20903 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20904 if test "${ac_cv_header_expat_h+set}" = set; then
20905 echo "$as_me:$LINENO: checking for expat.h" >&5
20906echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20907if test "${ac_cv_header_expat_h+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909fi
20910echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20911echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20912else
20913 # Is the header compilable?
20914echo "$as_me:$LINENO: checking expat.h usability" >&5
20915echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20916cat >conftest.$ac_ext <<_ACEOF
20917/* confdefs.h. */
20918_ACEOF
20919cat confdefs.h >>conftest.$ac_ext
20920cat >>conftest.$ac_ext <<_ACEOF
20921/* end confdefs.h. */
20922$ac_includes_default
20923#include <expat.h>
20924_ACEOF
20925rm -f conftest.$ac_objext
20926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20927 (eval $ac_compile) 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
dcc1b6ad
VS
20934 { ac_try='test -z "$ac_c_werror_flag"
20935 || test ! -s conftest.err'
a848cd7e
SC
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest.$ac_objext'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 ac_header_compiler=yes
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952ac_header_compiler=no
20953fi
20954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20956echo "${ECHO_T}$ac_header_compiler" >&6
20957
20958# Is the header present?
20959echo "$as_me:$LINENO: checking expat.h presence" >&5
20960echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20961cat >conftest.$ac_ext <<_ACEOF
20962/* confdefs.h. */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h. */
20967#include <expat.h>
20968_ACEOF
20969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20971 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } >/dev/null; then
20977 if test -s conftest.err; then
20978 ac_cpp_err=$ac_c_preproc_warn_flag
20979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20980 else
20981 ac_cpp_err=
20982 fi
20983else
20984 ac_cpp_err=yes
20985fi
20986if test -z "$ac_cpp_err"; then
20987 ac_header_preproc=yes
20988else
20989 echo "$as_me: failed program was:" >&5
20990sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 ac_header_preproc=no
20993fi
20994rm -f conftest.err conftest.$ac_ext
20995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20996echo "${ECHO_T}$ac_header_preproc" >&6
20997
20998# So? What about this header?
20999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21000 yes:no: )
21001 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21002echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21004echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21005 ac_header_preproc=yes
21006 ;;
21007 no:yes:* )
21008 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21009echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21011echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21013echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21015echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21017echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21019echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21020 (
21021 cat <<\_ASBOX
21022## ----------------------------------------- ##
21023## Report this to wx-dev@lists.wxwindows.org ##
21024## ----------------------------------------- ##
21025_ASBOX
21026 ) |
21027 sed "s/^/$as_me: WARNING: /" >&2
21028 ;;
21029esac
21030echo "$as_me:$LINENO: checking for expat.h" >&5
21031echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21032if test "${ac_cv_header_expat_h+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034else
21035 ac_cv_header_expat_h=$ac_header_preproc
21036fi
21037echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21038echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21039
21040fi
21041if test $ac_cv_header_expat_h = yes; then
21042 found_expat_h=1
21043fi
21044
21045
21046 if test "x$found_expat_h" = "x1"; then
21047 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21048echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21049if test "${wx_cv_expat_is_not_broken+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051else
21052
21053
21054
21055 ac_ext=cc
21056ac_cpp='$CXXCPP $CPPFLAGS'
21057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21060
21061 cat >conftest.$ac_ext <<_ACEOF
21062/* confdefs.h. */
21063_ACEOF
21064cat confdefs.h >>conftest.$ac_ext
21065cat >>conftest.$ac_ext <<_ACEOF
21066/* end confdefs.h. */
21067#include <expat.h>
21068int
21069main ()
21070{
21071
21072 ;
21073 return 0;
21074}
21075_ACEOF
21076rm -f conftest.$ac_objext
21077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
dcc1b6ad
VS
21085 { ac_try='test -z "$ac_cxx_werror_flag"
21086 || test ! -s conftest.err'
a848cd7e
SC
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 wx_cv_expat_is_not_broken=yes
21099else
21100 echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5
21102
21103wx_cv_expat_is_not_broken=no
21104
21105fi
21106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21107 ac_ext=c
21108ac_cpp='$CPP $CPPFLAGS'
21109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21111ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112
21113
21114
21115fi
21116echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21117echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21118 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21119 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21120echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21121if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123else
21124 ac_check_lib_save_LIBS=$LIBS
21125LIBS="-lexpat $LIBS"
21126cat >conftest.$ac_ext <<_ACEOF
21127/* confdefs.h. */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h. */
21132
21133/* Override any gcc2 internal prototype to avoid an error. */
21134#ifdef __cplusplus
21135extern "C"
21136#endif
21137/* We use char because int might match the return type of a gcc2
21138 builtin and then its argument prototype would still apply. */
21139char XML_ParserCreate ();
21140int
21141main ()
21142{
21143XML_ParserCreate ();
21144 ;
21145 return 0;
21146}
21147_ACEOF
21148rm -f conftest.$ac_objext conftest$ac_exeext
21149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21150 (eval $ac_link) 2>conftest.er1
21151 ac_status=$?
21152 grep -v '^ *+' conftest.er1 >conftest.err
21153 rm -f conftest.er1
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
dcc1b6ad
VS
21157 { ac_try='test -z "$ac_c_werror_flag"
21158 || test ! -s conftest.err'
a848cd7e
SC
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest$ac_exeext'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_cv_lib_expat_XML_ParserCreate=yes
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175ac_cv_lib_expat_XML_ParserCreate=no
21176fi
21177rm -f conftest.err conftest.$ac_objext \
21178 conftest$ac_exeext conftest.$ac_ext
21179LIBS=$ac_check_lib_save_LIBS
21180fi
21181echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21182echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21183if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21184 EXPAT_LINK=" -lexpat"
21185fi
21186
21187 fi
21188 fi
21189 if test "x$EXPAT_LINK" = "x" ; then
21190 if test "$wxUSE_EXPAT" = "sys" ; then
21191 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21192echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21193 { (exit 1); exit 1; }; }
21194 else
21195 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21196echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21197 wxUSE_EXPAT=builtin
21198 fi
21199 else
21200 wxUSE_EXPAT=sys
21201 fi
21202 fi
21203 if test "$wxUSE_EXPAT" = "builtin" ; then
21204
21205
21206subdirs="$subdirs src/expat"
21207
21208 fi
21209fi
21210
21211
21212
21213if test "$wxUSE_LIBMSPACK" != "no"; then
21214
21215 if test "${ac_cv_header_mspack_h+set}" = set; then
21216 echo "$as_me:$LINENO: checking for mspack.h" >&5
21217echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21218if test "${ac_cv_header_mspack_h+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220fi
21221echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21222echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21223else
21224 # Is the header compilable?
21225echo "$as_me:$LINENO: checking mspack.h usability" >&5
21226echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21227cat >conftest.$ac_ext <<_ACEOF
21228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
21233$ac_includes_default
21234#include <mspack.h>
21235_ACEOF
21236rm -f conftest.$ac_objext
21237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21238 (eval $ac_compile) 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
dcc1b6ad
VS
21245 { ac_try='test -z "$ac_c_werror_flag"
21246 || test ! -s conftest.err'
a848cd7e
SC
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; } &&
21252 { ac_try='test -s conftest.$ac_objext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ac_header_compiler=yes
21259else
21260 echo "$as_me: failed program was:" >&5
21261sed 's/^/| /' conftest.$ac_ext >&5
21262
21263ac_header_compiler=no
21264fi
21265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21267echo "${ECHO_T}$ac_header_compiler" >&6
21268
21269# Is the header present?
21270echo "$as_me:$LINENO: checking mspack.h presence" >&5
21271echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21272cat >conftest.$ac_ext <<_ACEOF
21273/* confdefs.h. */
21274_ACEOF
21275cat confdefs.h >>conftest.$ac_ext
21276cat >>conftest.$ac_ext <<_ACEOF
21277/* end confdefs.h. */
21278#include <mspack.h>
21279_ACEOF
21280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } >/dev/null; then
21288 if test -s conftest.err; then
21289 ac_cpp_err=$ac_c_preproc_warn_flag
21290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21291 else
21292 ac_cpp_err=
21293 fi
21294else
21295 ac_cpp_err=yes
21296fi
21297if test -z "$ac_cpp_err"; then
21298 ac_header_preproc=yes
21299else
21300 echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_header_preproc=no
21304fi
21305rm -f conftest.err conftest.$ac_ext
21306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21307echo "${ECHO_T}$ac_header_preproc" >&6
21308
21309# So? What about this header?
21310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21311 yes:no: )
21312 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21313echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21315echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21316 ac_header_preproc=yes
21317 ;;
21318 no:yes:* )
21319 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21320echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21322echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21324echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21325 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21326echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21328echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21330echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21331 (
21332 cat <<\_ASBOX
21333## ----------------------------------------- ##
21334## Report this to wx-dev@lists.wxwindows.org ##
21335## ----------------------------------------- ##
21336_ASBOX
21337 ) |
21338 sed "s/^/$as_me: WARNING: /" >&2
21339 ;;
21340esac
21341echo "$as_me:$LINENO: checking for mspack.h" >&5
21342echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21343if test "${ac_cv_header_mspack_h+set}" = set; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21345else
21346 ac_cv_header_mspack_h=$ac_header_preproc
21347fi
21348echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21349echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21350
21351fi
21352if test $ac_cv_header_mspack_h = yes; then
21353 found_mspack_h=1
21354fi
21355
21356
21357 if test "x$found_mspack_h" = "x1"; then
21358 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21359echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21360if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362else
21363 ac_check_lib_save_LIBS=$LIBS
21364LIBS="-lmspack $LIBS"
21365cat >conftest.$ac_ext <<_ACEOF
21366/* confdefs.h. */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h. */
21371
21372/* Override any gcc2 internal prototype to avoid an error. */
21373#ifdef __cplusplus
21374extern "C"
21375#endif
21376/* We use char because int might match the return type of a gcc2
21377 builtin and then its argument prototype would still apply. */
21378char mspack_create_chm_decompressor ();
21379int
21380main ()
21381{
21382mspack_create_chm_decompressor ();
21383 ;
21384 return 0;
21385}
21386_ACEOF
21387rm -f conftest.$ac_objext conftest$ac_exeext
21388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21389 (eval $ac_link) 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } &&
dcc1b6ad
VS
21396 { ac_try='test -z "$ac_c_werror_flag"
21397 || test ! -s conftest.err'
a848cd7e
SC
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; } &&
21403 { ac_try='test -s conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21410else
21411 echo "$as_me: failed program was:" >&5
21412sed 's/^/| /' conftest.$ac_ext >&5
21413
21414ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21415fi
21416rm -f conftest.err conftest.$ac_objext \
21417 conftest$ac_exeext conftest.$ac_ext
21418LIBS=$ac_check_lib_save_LIBS
21419fi
21420echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21421echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21422if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21423 MSPACK_LINK=" -lmspack"
21424fi
21425
21426 fi
21427 if test "x$MSPACK_LINK" = "x" ; then
21428 wxUSE_LIBMSPACK=no
21429 else
21430 cat >>confdefs.h <<\_ACEOF
21431#define wxUSE_LIBMSPACK 1
21432_ACEOF
21433
21434 fi
21435fi
21436
21437
21438
21439AFMINSTALL=
21440WIN32INSTALL=
21441
21442TOOLKIT=
21443TOOLKIT_INCLUDE=
21444WIDGET_SET=
21445
21446if test "$USE_WIN32" = 1 ; then
21447
21448for ac_header in w32api.h
21449do
21450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21451if eval "test \"\${$as_ac_Header+set}\" = set"; then
21452 echo "$as_me:$LINENO: checking for $ac_header" >&5
21453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21454if eval "test \"\${$as_ac_Header+set}\" = set"; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456fi
21457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21459else
21460 # Is the header compilable?
21461echo "$as_me:$LINENO: checking $ac_header usability" >&5
21462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21463cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469$ac_includes_default
21470#include <$ac_header>
21471_ACEOF
21472rm -f conftest.$ac_objext
21473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474 (eval $ac_compile) 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
dcc1b6ad
VS
21481 { ac_try='test -z "$ac_c_werror_flag"
21482 || test ! -s conftest.err'
a848cd7e
SC
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21485 ac_status=$?
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; } &&
21488 { ac_try='test -s conftest.$ac_objext'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21494 ac_header_compiler=yes
21495else
21496 echo "$as_me: failed program was:" >&5
21497sed 's/^/| /' conftest.$ac_ext >&5
21498
21499ac_header_compiler=no
21500fi
21501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21503echo "${ECHO_T}$ac_header_compiler" >&6
21504
21505# Is the header present?
21506echo "$as_me:$LINENO: checking $ac_header presence" >&5
21507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21508cat >conftest.$ac_ext <<_ACEOF
21509/* confdefs.h. */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h. */
21514#include <$ac_header>
21515_ACEOF
21516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21518 ac_status=$?
21519 grep -v '^ *+' conftest.er1 >conftest.err
21520 rm -f conftest.er1
21521 cat conftest.err >&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } >/dev/null; then
21524 if test -s conftest.err; then
21525 ac_cpp_err=$ac_c_preproc_warn_flag
21526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21527 else
21528 ac_cpp_err=
21529 fi
21530else
21531 ac_cpp_err=yes
21532fi
21533if test -z "$ac_cpp_err"; then
21534 ac_header_preproc=yes
21535else
21536 echo "$as_me: failed program was:" >&5
21537sed 's/^/| /' conftest.$ac_ext >&5
21538
21539 ac_header_preproc=no
21540fi
21541rm -f conftest.err conftest.$ac_ext
21542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21543echo "${ECHO_T}$ac_header_preproc" >&6
21544
21545# So? What about this header?
21546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21547 yes:no: )
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21552 ac_header_preproc=yes
21553 ;;
21554 no:yes:* )
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21567 (
21568 cat <<\_ASBOX
21569## ----------------------------------------- ##
21570## Report this to wx-dev@lists.wxwindows.org ##
21571## ----------------------------------------- ##
21572_ASBOX
21573 ) |
21574 sed "s/^/$as_me: WARNING: /" >&2
21575 ;;
21576esac
21577echo "$as_me:$LINENO: checking for $ac_header" >&5
21578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21579if eval "test \"\${$as_ac_Header+set}\" = set"; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21581else
21582 eval "$as_ac_Header=\$ac_header_preproc"
21583fi
21584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21586
21587fi
21588if test `eval echo '${'$as_ac_Header'}'` = yes; then
21589 cat >>confdefs.h <<_ACEOF
21590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21591_ACEOF
21592
21593fi
21594
21595done
21596
21597 if test "${ac_cv_header_windows_h+set}" = set; then
21598 echo "$as_me:$LINENO: checking for windows.h" >&5
21599echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21600if test "${ac_cv_header_windows_h+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602fi
21603echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21604echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21605else
21606 # Is the header compilable?
21607echo "$as_me:$LINENO: checking windows.h usability" >&5
21608echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21609cat >conftest.$ac_ext <<_ACEOF
21610/* confdefs.h. */
21611_ACEOF
21612cat confdefs.h >>conftest.$ac_ext
21613cat >>conftest.$ac_ext <<_ACEOF
21614/* end confdefs.h. */
21615$ac_includes_default
21616#include <windows.h>
21617_ACEOF
21618rm -f conftest.$ac_objext
21619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21620 (eval $ac_compile) 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } &&
dcc1b6ad
VS
21627 { ac_try='test -z "$ac_c_werror_flag"
21628 || test ! -s conftest.err'
a848cd7e
SC
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest.$ac_objext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 ac_header_compiler=yes
21641else
21642 echo "$as_me: failed program was:" >&5
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
21645ac_header_compiler=no
21646fi
21647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21649echo "${ECHO_T}$ac_header_compiler" >&6
21650
21651# Is the header present?
21652echo "$as_me:$LINENO: checking windows.h presence" >&5
21653echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21654cat >conftest.$ac_ext <<_ACEOF
21655/* confdefs.h. */
21656_ACEOF
21657cat confdefs.h >>conftest.$ac_ext
21658cat >>conftest.$ac_ext <<_ACEOF
21659/* end confdefs.h. */
21660#include <windows.h>
21661_ACEOF
21662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21664 ac_status=$?
21665 grep -v '^ *+' conftest.er1 >conftest.err
21666 rm -f conftest.er1
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } >/dev/null; then
21670 if test -s conftest.err; then
21671 ac_cpp_err=$ac_c_preproc_warn_flag
21672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21673 else
21674 ac_cpp_err=
21675 fi
21676else
21677 ac_cpp_err=yes
21678fi
21679if test -z "$ac_cpp_err"; then
21680 ac_header_preproc=yes
21681else
21682 echo "$as_me: failed program was:" >&5
21683sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_header_preproc=no
21686fi
21687rm -f conftest.err conftest.$ac_ext
21688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21689echo "${ECHO_T}$ac_header_preproc" >&6
21690
21691# So? What about this header?
21692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21693 yes:no: )
21694 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21695echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21697echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21698 ac_header_preproc=yes
21699 ;;
21700 no:yes:* )
21701 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21702echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21703 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21704echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21705 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21706echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21708echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21710echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21712echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21713 (
21714 cat <<\_ASBOX
21715## ----------------------------------------- ##
21716## Report this to wx-dev@lists.wxwindows.org ##
21717## ----------------------------------------- ##
21718_ASBOX
21719 ) |
21720 sed "s/^/$as_me: WARNING: /" >&2
21721 ;;
21722esac
21723echo "$as_me:$LINENO: checking for windows.h" >&5
21724echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21725if test "${ac_cv_header_windows_h+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727else
21728 ac_cv_header_windows_h=$ac_header_preproc
21729fi
21730echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21731echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21732
21733fi
21734if test $ac_cv_header_windows_h = yes; then
21735 :
21736else
21737
21738 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21739echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21740 { (exit 1); exit 1; }; }
21741
21742fi
21743
21744
21745
21746 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21747
21748 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21749 LIBS="$LIBS -loleacc"
21750 fi
21751
21752 case "${host}" in
21753 *-*-cygwin* )
21754 LIBS="$LIBS -lkernel32 -luser32"
21755 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21756 esac
21757
21758 if test "$wxUSE_ODBC" = "sys" ; then
21759 wxUSE_ODBC = "yes"
21760 fi
21761 if test "$wxUSE_ODBC" = "yes" ; then
21762 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21763 cat >>confdefs.h <<\_ACEOF
21764#define wxUSE_ODBC 1
21765_ACEOF
21766
21767 fi
21768
21769 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21770 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21771
21772 WIN32INSTALL=win32install
21773fi
21774
21775if test "$wxUSE_GUI" = "yes"; then
21776 USE_GUI=1
21777
21778 GUI_TK_LIBRARY=
21779
21780 WXGTK12=
21781 WXGTK127=
21782 WXGTK20=
21783 WXGPE=
21784
21785 if test "$wxUSE_MSW" = 1 ; then
21786 TOOLKIT=MSW
21787 GUIDIST=MSW_DIST
21788
21789 case "${host}" in
21790 *-*-mingw32* )
21791 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21792 esac
21793 fi
21794
21795 if test "$wxUSE_GTK" = 1; then
21796 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21797echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21798
21799 gtk_version_cached=1
21800 if test "${wx_cv_lib_gtk+set}" = set; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21802else
21803
21804 gtk_version_cached=0
21805 echo "$as_me:$LINENO: result: " >&5
21806echo "${ECHO_T}" >&6
21807
21808 GTK_MODULES=
21809 if test "$wxUSE_THREADS" = "yes"; then
21810 GTK_MODULES=gthread
21811 fi
21812
21813 wx_cv_lib_gtk=
21814 if test "x$wxUSE_GTK2" = "xyes"; then
21815 # Check whether --enable-gtktest or --disable-gtktest was given.
21816if test "${enable_gtktest+set}" = set; then
21817 enableval="$enable_gtktest"
21818
21819else
21820 enable_gtktest=yes
21821fi;
21822
21823 pkg_config_args=gtk+-2.0
21824 for module in . $GTK_MODULES
21825 do
21826 case "$module" in
21827 gthread)
21828 pkg_config_args="$pkg_config_args gthread-2.0"
21829 ;;
21830 esac
21831 done
21832
21833 no_gtk=""
21834
21835 # Extract the first word of "pkg-config", so it can be a program name with args.
21836set dummy pkg-config; ac_word=$2
21837echo "$as_me:$LINENO: checking for $ac_word" >&5
21838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21839if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21841else
21842 case $PKG_CONFIG in
21843 [\\/]* | ?:[\\/]*)
21844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21845 ;;
21846 *)
21847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848for as_dir in $PATH
21849do
21850 IFS=$as_save_IFS
21851 test -z "$as_dir" && as_dir=.
21852 for ac_exec_ext in '' $ac_executable_extensions; do
21853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21856 break 2
21857 fi
21858done
21859done
21860
21861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21862 ;;
21863esac
21864fi
21865PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21866
21867if test -n "$PKG_CONFIG"; then
21868 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21869echo "${ECHO_T}$PKG_CONFIG" >&6
21870else
21871 echo "$as_me:$LINENO: result: no" >&5
21872echo "${ECHO_T}no" >&6
21873fi
21874
21875
21876 if test x$PKG_CONFIG != xno ; then
21877 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21878 :
21879 else
c2218763 21880 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
21881 no_gtk=yes
21882 PKG_CONFIG=no
21883 fi
21884 else
21885 no_gtk=yes
21886 fi
21887
21888 min_gtk_version=2.0.0
21889 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21890echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21891
21892 if test x$PKG_CONFIG != xno ; then
21893 ## don't try to run the test against uninstalled libtool libs
21894 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21895 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21896 enable_gtktest=no
21897 fi
21898
21899 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21900 :
21901 else
21902 no_gtk=yes
21903 fi
21904 fi
21905
21906 if test x"$no_gtk" = x ; then
21907 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21908 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21909 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21911 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21913 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21915 if test "x$enable_gtktest" = "xyes" ; then
21916 ac_save_CFLAGS="$CFLAGS"
21917 ac_save_LIBS="$LIBS"
21918 CFLAGS="$CFLAGS $GTK_CFLAGS"
21919 LIBS="$GTK_LIBS $LIBS"
21920 rm -f conf.gtktest
21921 if test "$cross_compiling" = yes; then
21922 echo $ac_n "cross compiling; assumed OK... $ac_c"
21923else
21924 cat >conftest.$ac_ext <<_ACEOF
21925/* confdefs.h. */
21926_ACEOF
21927cat confdefs.h >>conftest.$ac_ext
21928cat >>conftest.$ac_ext <<_ACEOF
21929/* end confdefs.h. */
21930
21931#include <gtk/gtk.h>
21932#include <stdio.h>
21933#include <stdlib.h>
21934
21935int
21936main ()
21937{
21938 int major, minor, micro;
21939 char *tmp_version;
21940
21941 system ("touch conf.gtktest");
21942
21943 /* HP/UX 9 (%@#!) writes to sscanf strings */
21944 tmp_version = g_strdup("$min_gtk_version");
21945 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21946 printf("%s, bad version string\n", "$min_gtk_version");
21947 exit(1);
21948 }
21949
21950 if ((gtk_major_version != $gtk_config_major_version) ||
21951 (gtk_minor_version != $gtk_config_minor_version) ||
21952 (gtk_micro_version != $gtk_config_micro_version))
21953 {
21954 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21955 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21956 gtk_major_version, gtk_minor_version, gtk_micro_version);
21957 printf ("*** was found! If pkg-config was correct, then it is best\n");
21958 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21959 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21960 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21961 printf("*** required on your system.\n");
21962 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21963 printf("*** to point to the correct configuration files\n");
21964 }
21965 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21966 (gtk_minor_version != GTK_MINOR_VERSION) ||
21967 (gtk_micro_version != GTK_MICRO_VERSION))
21968 {
21969 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21970 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21971 printf("*** library (version %d.%d.%d)\n",
21972 gtk_major_version, gtk_minor_version, gtk_micro_version);
21973 }
21974 else
21975 {
21976 if ((gtk_major_version > major) ||
21977 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21978 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21979 {
21980 return 0;
21981 }
21982 else
21983 {
21984 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21985 gtk_major_version, gtk_minor_version, gtk_micro_version);
21986 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21987 major, minor, micro);
21988 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21989 printf("***\n");
21990 printf("*** If you have already installed a sufficiently new version, this error\n");
21991 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21992 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21993 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21994 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21995 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21996 printf("*** so that the correct libraries are found at run-time))\n");
21997 }
21998 }
21999 return 1;
22000}
22001
22002_ACEOF
22003rm -f conftest$ac_exeext
22004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22005 (eval $ac_link) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 :
22015else
22016 echo "$as_me: program exited with status $ac_status" >&5
22017echo "$as_me: failed program was:" >&5
22018sed 's/^/| /' conftest.$ac_ext >&5
22019
22020( exit $ac_status )
22021no_gtk=yes
22022fi
22023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22024fi
22025 CFLAGS="$ac_save_CFLAGS"
22026 LIBS="$ac_save_LIBS"
22027 fi
22028 fi
22029 if test "x$no_gtk" = x ; then
22030 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22031echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22032 wx_cv_lib_gtk=2.0
22033 else
22034 echo "$as_me:$LINENO: result: no" >&5
22035echo "${ECHO_T}no" >&6
22036 if test "$PKG_CONFIG" = "no" ; then
22037 echo "*** A new enough version of pkg-config was not found."
22038 echo "*** See http://pkgconfig.sourceforge.net"
22039 else
22040 if test -f conf.gtktest ; then
22041 :
22042 else
22043 echo "*** Could not run GTK+ test program, checking why..."
22044 ac_save_CFLAGS="$CFLAGS"
22045 ac_save_LIBS="$LIBS"
22046 CFLAGS="$CFLAGS $GTK_CFLAGS"
22047 LIBS="$LIBS $GTK_LIBS"
22048 cat >conftest.$ac_ext <<_ACEOF
22049/* confdefs.h. */
22050_ACEOF
22051cat confdefs.h >>conftest.$ac_ext
22052cat >>conftest.$ac_ext <<_ACEOF
22053/* end confdefs.h. */
22054
22055#include <gtk/gtk.h>
22056#include <stdio.h>
22057
22058int
22059main ()
22060{
22061 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22062 ;
22063 return 0;
22064}
22065_ACEOF
22066rm -f conftest.$ac_objext conftest$ac_exeext
22067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22068 (eval $ac_link) 2>conftest.er1
22069 ac_status=$?
22070 grep -v '^ *+' conftest.er1 >conftest.err
22071 rm -f conftest.er1
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } &&
dcc1b6ad
VS
22075 { ac_try='test -z "$ac_c_werror_flag"
22076 || test ! -s conftest.err'
a848cd7e
SC
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest$ac_exeext'
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22088 echo "*** The test program compiled, but did not run. This usually means"
22089 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22090 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22091 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22092 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22093 echo "*** is required on your system"
22094 echo "***"
22095 echo "*** If you have an old version installed, it is best to remove it, although"
22096 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22097else
22098 echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100
22101 echo "*** The test program failed to compile or link. See the file config.log for the"
22102 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22103fi
22104rm -f conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106 CFLAGS="$ac_save_CFLAGS"
22107 LIBS="$ac_save_LIBS"
22108 fi
22109 fi
22110 GTK_CFLAGS=""
22111 GTK_LIBS=""
22112 :
22113 fi
22114
22115
22116 rm -f conf.gtktest
22117
22118 else
22119
22120# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22121if test "${with_gtk_prefix+set}" = set; then
22122 withval="$with_gtk_prefix"
22123 gtk_config_prefix="$withval"
22124else
22125 gtk_config_prefix=""
22126fi;
22127
22128# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22129if test "${with_gtk_exec_prefix+set}" = set; then
22130 withval="$with_gtk_exec_prefix"
22131 gtk_config_exec_prefix="$withval"
22132else
22133 gtk_config_exec_prefix=""
22134fi;
22135# Check whether --enable-gtktest or --disable-gtktest was given.
22136if test "${enable_gtktest+set}" = set; then
22137 enableval="$enable_gtktest"
22138
22139else
22140 enable_gtktest=yes
22141fi;
22142
22143 for module in . $GTK_MODULES
22144 do
22145 case "$module" in
22146 gthread)
22147 gtk_config_args="$gtk_config_args gthread"
22148 ;;
22149 esac
22150 done
22151
22152 if test x$gtk_config_exec_prefix != x ; then
22153 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22154 if test x${GTK_CONFIG+set} != xset ; then
22155 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22156 fi
22157 fi
22158 if test x$gtk_config_prefix != x ; then
22159 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22160 if test x${GTK_CONFIG+set} != xset ; then
22161 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22162 fi
22163 fi
22164
22165 # Extract the first word of "gtk-config", so it can be a program name with args.
22166set dummy gtk-config; ac_word=$2
22167echo "$as_me:$LINENO: checking for $ac_word" >&5
22168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22169if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22171else
22172 case $GTK_CONFIG in
22173 [\\/]* | ?:[\\/]*)
22174 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22175 ;;
22176 *)
22177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22178for as_dir in $PATH
22179do
22180 IFS=$as_save_IFS
22181 test -z "$as_dir" && as_dir=.
22182 for ac_exec_ext in '' $ac_executable_extensions; do
22183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22184 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22186 break 2
22187 fi
22188done
22189done
22190
22191 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22192 ;;
22193esac
22194fi
22195GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22196
22197if test -n "$GTK_CONFIG"; then
22198 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22199echo "${ECHO_T}$GTK_CONFIG" >&6
22200else
22201 echo "$as_me:$LINENO: result: no" >&5
22202echo "${ECHO_T}no" >&6
22203fi
22204
22205 min_gtk_version=1.2.7
22206 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22207echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22208 no_gtk=""
22209 if test "$GTK_CONFIG" = "no" ; then
22210 no_gtk=yes
22211 else
22212 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22213 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22214 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22215 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22216 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22218 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22219 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22220 if test "x$enable_gtktest" = "xyes" ; then
22221 ac_save_CFLAGS="$CFLAGS"
22222 ac_save_LIBS="$LIBS"
22223 CFLAGS="$CFLAGS $GTK_CFLAGS"
22224 LIBS="$GTK_LIBS $LIBS"
22225 rm -f conf.gtktest
22226 if test "$cross_compiling" = yes; then
22227 echo $ac_n "cross compiling; assumed OK... $ac_c"
22228else
22229 cat >conftest.$ac_ext <<_ACEOF
22230/* confdefs.h. */
22231_ACEOF
22232cat confdefs.h >>conftest.$ac_ext
22233cat >>conftest.$ac_ext <<_ACEOF
22234/* end confdefs.h. */
22235
22236#include <gtk/gtk.h>
22237#include <stdio.h>
22238#include <stdlib.h>
22239
22240int
22241main ()
22242{
22243 int major, minor, micro;
22244 char *tmp_version;
22245
22246 system ("touch conf.gtktest");
22247
22248 /* HP/UX 9 (%@#!) writes to sscanf strings */
22249 tmp_version = g_strdup("$min_gtk_version");
22250 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22251 printf("%s, bad version string\n", "$min_gtk_version");
22252 exit(1);
22253 }
22254
22255 if ((gtk_major_version != $gtk_config_major_version) ||
22256 (gtk_minor_version != $gtk_config_minor_version) ||
22257 (gtk_micro_version != $gtk_config_micro_version))
22258 {
22259 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22260 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22261 gtk_major_version, gtk_minor_version, gtk_micro_version);
22262 printf ("*** was found! If gtk-config was correct, then it is best\n");
22263 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22264 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22265 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22266 printf("*** required on your system.\n");
22267 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22268 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22269 printf("*** before re-running configure\n");
22270 }
22271#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22272 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22273 (gtk_minor_version != GTK_MINOR_VERSION) ||
22274 (gtk_micro_version != GTK_MICRO_VERSION))
22275 {
22276 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22277 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22278 printf("*** library (version %d.%d.%d)\n",
22279 gtk_major_version, gtk_minor_version, gtk_micro_version);
22280 }
22281#endif /* defined (GTK_MAJOR_VERSION) ... */
22282 else
22283 {
22284 if ((gtk_major_version > major) ||
22285 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22286 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22287 {
22288 return 0;
22289 }
22290 else
22291 {
22292 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22293 gtk_major_version, gtk_minor_version, gtk_micro_version);
22294 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22295 major, minor, micro);
22296 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22297 printf("***\n");
22298 printf("*** If you have already installed a sufficiently new version, this error\n");
22299 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22300 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22301 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22302 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22303 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22304 printf("*** so that the correct libraries are found at run-time))\n");
22305 }
22306 }
22307 return 1;
22308}
22309
22310_ACEOF
22311rm -f conftest$ac_exeext
22312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 :
22323else
22324 echo "$as_me: program exited with status $ac_status" >&5
22325echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328( exit $ac_status )
22329no_gtk=yes
22330fi
22331rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22332fi
22333 CFLAGS="$ac_save_CFLAGS"
22334 LIBS="$ac_save_LIBS"
22335 fi
22336 fi
22337 if test "x$no_gtk" = x ; then
22338 echo "$as_me:$LINENO: result: yes" >&5
22339echo "${ECHO_T}yes" >&6
22340 wx_cv_lib_gtk=1.2.7
22341 else
22342 echo "$as_me:$LINENO: result: no" >&5
22343echo "${ECHO_T}no" >&6
22344 if test "$GTK_CONFIG" = "no" ; then
22345 echo "*** The gtk-config script installed by GTK could not be found"
22346 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22347 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22348 echo "*** full path to gtk-config."
22349 else
22350 if test -f conf.gtktest ; then
22351 :
22352 else
22353 echo "*** Could not run GTK test program, checking why..."
22354 CFLAGS="$CFLAGS $GTK_CFLAGS"
22355 LIBS="$LIBS $GTK_LIBS"
22356 cat >conftest.$ac_ext <<_ACEOF
22357/* confdefs.h. */
22358_ACEOF
22359cat confdefs.h >>conftest.$ac_ext
22360cat >>conftest.$ac_ext <<_ACEOF
22361/* end confdefs.h. */
22362
22363#include <gtk/gtk.h>
22364#include <stdio.h>
22365
22366int
22367main ()
22368{
22369 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22370 ;
22371 return 0;
22372}
22373_ACEOF
22374rm -f conftest.$ac_objext conftest$ac_exeext
22375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376 (eval $ac_link) 2>conftest.er1
22377 ac_status=$?
22378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
dcc1b6ad
VS
22383 { ac_try='test -z "$ac_c_werror_flag"
22384 || test ! -s conftest.err'
a848cd7e
SC
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest$ac_exeext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 echo "*** The test program compiled, but did not run. This usually means"
22397 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22398 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22399 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22400 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22401 echo "*** is required on your system"
22402 echo "***"
22403 echo "*** If you have an old version installed, it is best to remove it, although"
22404 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22405 echo "***"
22406 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22407 echo "*** came with the system with the command"
22408 echo "***"
22409 echo "*** rpm --erase --nodeps gtk gtk-devel"
22410else
22411 echo "$as_me: failed program was:" >&5
22412sed 's/^/| /' conftest.$ac_ext >&5
22413
22414 echo "*** The test program failed to compile or link. See the file config.log for the"
22415 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22416 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22417 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22418fi
22419rm -f conftest.err conftest.$ac_objext \
22420 conftest$ac_exeext conftest.$ac_ext
22421 CFLAGS="$ac_save_CFLAGS"
22422 LIBS="$ac_save_LIBS"
22423 fi
22424 fi
22425 GTK_CFLAGS=""
22426 GTK_LIBS=""
22427 :
22428 fi
22429
22430
22431 rm -f conf.gtktest
22432
22433
22434 if test -z "$wx_cv_lib_gtk"; then
22435
22436# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22437if test "${with_gtk_prefix+set}" = set; then
22438 withval="$with_gtk_prefix"
22439 gtk_config_prefix="$withval"
22440else
22441 gtk_config_prefix=""
22442fi;
22443
22444# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22445if test "${with_gtk_exec_prefix+set}" = set; then
22446 withval="$with_gtk_exec_prefix"
22447 gtk_config_exec_prefix="$withval"
22448else
22449 gtk_config_exec_prefix=""
22450fi;
22451# Check whether --enable-gtktest or --disable-gtktest was given.
22452if test "${enable_gtktest+set}" = set; then
22453 enableval="$enable_gtktest"
22454
22455else
22456 enable_gtktest=yes
22457fi;
22458
22459 for module in . $GTK_MODULES
22460 do
22461 case "$module" in
22462 gthread)
22463 gtk_config_args="$gtk_config_args gthread"
22464 ;;
22465 esac
22466 done
22467
22468 if test x$gtk_config_exec_prefix != x ; then
22469 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22470 if test x${GTK_CONFIG+set} != xset ; then
22471 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22472 fi
22473 fi
22474 if test x$gtk_config_prefix != x ; then
22475 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22476 if test x${GTK_CONFIG+set} != xset ; then
22477 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22478 fi
22479 fi
22480
22481 # Extract the first word of "gtk-config", so it can be a program name with args.
22482set dummy gtk-config; ac_word=$2
22483echo "$as_me:$LINENO: checking for $ac_word" >&5
22484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22485if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487else
22488 case $GTK_CONFIG in
22489 [\\/]* | ?:[\\/]*)
22490 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22491 ;;
22492 *)
22493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22494for as_dir in $PATH
22495do
22496 IFS=$as_save_IFS
22497 test -z "$as_dir" && as_dir=.
22498 for ac_exec_ext in '' $ac_executable_extensions; do
22499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22500 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22502 break 2
22503 fi
22504done
22505done
22506
22507 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22508 ;;
22509esac
22510fi
22511GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22512
22513if test -n "$GTK_CONFIG"; then
22514 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22515echo "${ECHO_T}$GTK_CONFIG" >&6
22516else
22517 echo "$as_me:$LINENO: result: no" >&5
22518echo "${ECHO_T}no" >&6
22519fi
22520
22521 min_gtk_version=1.2.3
22522 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22523echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22524 no_gtk=""
22525 if test "$GTK_CONFIG" = "no" ; then
22526 no_gtk=yes
22527 else
22528 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22529 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22530 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22532 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22533 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22534 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22535 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22536 if test "x$enable_gtktest" = "xyes" ; then
22537 ac_save_CFLAGS="$CFLAGS"
22538 ac_save_LIBS="$LIBS"
22539 CFLAGS="$CFLAGS $GTK_CFLAGS"
22540 LIBS="$GTK_LIBS $LIBS"
22541 rm -f conf.gtktest
22542 if test "$cross_compiling" = yes; then
22543 echo $ac_n "cross compiling; assumed OK... $ac_c"
22544else
22545 cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h. */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h. */
22551
22552#include <gtk/gtk.h>
22553#include <stdio.h>
22554#include <stdlib.h>
22555
22556int
22557main ()
22558{
22559 int major, minor, micro;
22560 char *tmp_version;
22561
22562 system ("touch conf.gtktest");
22563
22564 /* HP/UX 9 (%@#!) writes to sscanf strings */
22565 tmp_version = g_strdup("$min_gtk_version");
22566 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22567 printf("%s, bad version string\n", "$min_gtk_version");
22568 exit(1);
22569 }
22570
22571 if ((gtk_major_version != $gtk_config_major_version) ||
22572 (gtk_minor_version != $gtk_config_minor_version) ||
22573 (gtk_micro_version != $gtk_config_micro_version))
22574 {
22575 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22576 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22577 gtk_major_version, gtk_minor_version, gtk_micro_version);
22578 printf ("*** was found! If gtk-config was correct, then it is best\n");
22579 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22580 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22581 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22582 printf("*** required on your system.\n");
22583 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22584 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22585 printf("*** before re-running configure\n");
22586 }
22587#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22588 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22589 (gtk_minor_version != GTK_MINOR_VERSION) ||
22590 (gtk_micro_version != GTK_MICRO_VERSION))
22591 {
22592 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22593 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22594 printf("*** library (version %d.%d.%d)\n",
22595 gtk_major_version, gtk_minor_version, gtk_micro_version);
22596 }
22597#endif /* defined (GTK_MAJOR_VERSION) ... */
22598 else
22599 {
22600 if ((gtk_major_version > major) ||
22601 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22602 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22603 {
22604 return 0;
22605 }
22606 else
22607 {
22608 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22609 gtk_major_version, gtk_minor_version, gtk_micro_version);
22610 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22611 major, minor, micro);
22612 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22613 printf("***\n");
22614 printf("*** If you have already installed a sufficiently new version, this error\n");
22615 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22616 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22617 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22618 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22619 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22620 printf("*** so that the correct libraries are found at run-time))\n");
22621 }
22622 }
22623 return 1;
22624}
22625
22626_ACEOF
22627rm -f conftest$ac_exeext
22628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22629 (eval $ac_link) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22638 :
22639else
22640 echo "$as_me: program exited with status $ac_status" >&5
22641echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
22644( exit $ac_status )
22645no_gtk=yes
22646fi
22647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22648fi
22649 CFLAGS="$ac_save_CFLAGS"
22650 LIBS="$ac_save_LIBS"
22651 fi
22652 fi
22653 if test "x$no_gtk" = x ; then
22654 echo "$as_me:$LINENO: result: yes" >&5
22655echo "${ECHO_T}yes" >&6
22656 wx_cv_lib_gtk=1.2.3
22657 else
22658 echo "$as_me:$LINENO: result: no" >&5
22659echo "${ECHO_T}no" >&6
22660 if test "$GTK_CONFIG" = "no" ; then
22661 echo "*** The gtk-config script installed by GTK could not be found"
22662 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22663 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22664 echo "*** full path to gtk-config."
22665 else
22666 if test -f conf.gtktest ; then
22667 :
22668 else
22669 echo "*** Could not run GTK test program, checking why..."
22670 CFLAGS="$CFLAGS $GTK_CFLAGS"
22671 LIBS="$LIBS $GTK_LIBS"
22672 cat >conftest.$ac_ext <<_ACEOF
22673/* confdefs.h. */
22674_ACEOF
22675cat confdefs.h >>conftest.$ac_ext
22676cat >>conftest.$ac_ext <<_ACEOF
22677/* end confdefs.h. */
22678
22679#include <gtk/gtk.h>
22680#include <stdio.h>
22681
22682int
22683main ()
22684{
22685 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22686 ;
22687 return 0;
22688}
22689_ACEOF
22690rm -f conftest.$ac_objext conftest$ac_exeext
22691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22692 (eval $ac_link) 2>conftest.er1
22693 ac_status=$?
22694 grep -v '^ *+' conftest.er1 >conftest.err
22695 rm -f conftest.er1
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } &&
dcc1b6ad
VS
22699 { ac_try='test -z "$ac_c_werror_flag"
22700 || test ! -s conftest.err'
a848cd7e
SC
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; } &&
22706 { ac_try='test -s conftest$ac_exeext'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 echo "*** The test program compiled, but did not run. This usually means"
22713 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22714 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22715 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22716 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22717 echo "*** is required on your system"
22718 echo "***"
22719 echo "*** If you have an old version installed, it is best to remove it, although"
22720 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22721 echo "***"
22722 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22723 echo "*** came with the system with the command"
22724 echo "***"
22725 echo "*** rpm --erase --nodeps gtk gtk-devel"
22726else
22727 echo "$as_me: failed program was:" >&5
22728sed 's/^/| /' conftest.$ac_ext >&5
22729
22730 echo "*** The test program failed to compile or link. See the file config.log for the"
22731 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22732 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22733 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22734fi
22735rm -f conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22737 CFLAGS="$ac_save_CFLAGS"
22738 LIBS="$ac_save_LIBS"
22739 fi
22740 fi
22741 GTK_CFLAGS=""
22742 GTK_LIBS=""
22743 :
22744 fi
22745
22746
22747 rm -f conf.gtktest
22748
22749 fi
22750 fi
22751
22752 if test -z "$wx_cv_lib_gtk"; then
22753 wx_cv_lib_gtk=none
22754 else
22755 wx_cv_cflags_gtk=$GTK_CFLAGS
22756 wx_cv_libs_gtk=$GTK_LIBS
22757 fi
22758
22759
22760fi
22761
22762
22763 if test "$gtk_version_cached" = 1; then
22764 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22765echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22766 fi
22767
22768 case "$wx_cv_lib_gtk" in
22769 2.0) WXGTK20=1
22770 TOOLKIT_VERSION=2
22771 ;;
22772 1.2.7) WXGTK127=1
22773 WXGTK12=1
22774 ;;
22775 1.2.3) WXGTK12=1
22776 ;;
22777 *) { { echo "$as_me:$LINENO: error:
22778Please check that gtk-config is in path, the directory
22779where GTK+ libraries are installed (returned by
22780'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22781equivalent variable and GTK+ is version 1.2.3 or above.
22782 " >&5
22783echo "$as_me: error:
22784Please check that gtk-config is in path, the directory
22785where GTK+ libraries are installed (returned by
22786'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22787equivalent variable and GTK+ is version 1.2.3 or above.
22788 " >&2;}
22789 { (exit 1); exit 1; }; }
22790 ;;
22791 esac
22792
22793 if test "$WXGTK20" = 1; then
22794 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22795
22796 succeeded=no
22797
22798 if test -z "$PKG_CONFIG"; then
22799 # Extract the first word of "pkg-config", so it can be a program name with args.
22800set dummy pkg-config; ac_word=$2
22801echo "$as_me:$LINENO: checking for $ac_word" >&5
22802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22803if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22804 echo $ECHO_N "(cached) $ECHO_C" >&6
22805else
22806 case $PKG_CONFIG in
22807 [\\/]* | ?:[\\/]*)
22808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22809 ;;
22810 *)
22811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22812for as_dir in $PATH
22813do
22814 IFS=$as_save_IFS
22815 test -z "$as_dir" && as_dir=.
22816 for ac_exec_ext in '' $ac_executable_extensions; do
22817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22820 break 2
22821 fi
22822done
22823done
22824
22825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22826 ;;
22827esac
22828fi
22829PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22830
22831if test -n "$PKG_CONFIG"; then
22832 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22833echo "${ECHO_T}$PKG_CONFIG" >&6
22834else
22835 echo "$as_me:$LINENO: result: no" >&5
22836echo "${ECHO_T}no" >&6
22837fi
22838
22839 fi
22840
22841 if test "$PKG_CONFIG" = "no" ; then
22842 echo "*** The pkg-config script could not be found. Make sure it is"
22843 echo "*** in your path, or set the PKG_CONFIG environment variable"
22844 echo "*** to the full path to pkg-config."
22845 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22846 else
22847 PKG_CONFIG_MIN_VERSION=0.9.0
22848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22849 echo "$as_me:$LINENO: checking for pangoft2" >&5
22850echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22851
22852 if $PKG_CONFIG --exists "pangoft2" ; then
22853 echo "$as_me:$LINENO: result: yes" >&5
22854echo "${ECHO_T}yes" >&6
22855 succeeded=yes
22856
22857 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22858echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22859 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22860 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22861echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22862
22863 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22864echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22865 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22866 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22867echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22868 else
22869 PANGOFT2_CFLAGS=""
22870 PANGOFT2_LIBS=""
22871 ## If we have a custom action on failure, don't print errors, but
22872 ## do set a variable so people can do so.
22873 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22874
22875 fi
22876
22877
22878
22879 else
22880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22882 fi
22883 fi
22884
22885 if test $succeeded = yes; then
22886
22887 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22888 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22889
22890 else
22891
22892 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22893echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22894 wxUSE_PRINTING_ARCHITECTURE="no"
22895
22896
22897 fi
22898
22899 fi
22900 else
22901 if test "$wxUSE_UNICODE" = "yes"; then
22902 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22903echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22904 wxUSE_UNICODE=no
22905 fi
22906 fi
22907
22908 if test "$USE_DARWIN" != 1; then
22909
22910for ac_func in poll
22911do
22912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22913echo "$as_me:$LINENO: checking for $ac_func" >&5
22914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22915if eval "test \"\${$as_ac_var+set}\" = set"; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917else
22918 cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
22924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22926#define $ac_func innocuous_$ac_func
22927
22928/* System header to define __stub macros and hopefully few prototypes,
22929 which can conflict with char $ac_func (); below.
22930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22931 <limits.h> exists even on freestanding compilers. */
22932
22933#ifdef __STDC__
22934# include <limits.h>
22935#else
22936# include <assert.h>
22937#endif
22938
22939#undef $ac_func
22940
22941/* Override any gcc2 internal prototype to avoid an error. */
22942#ifdef __cplusplus
22943extern "C"
22944{
22945#endif
22946/* We use char because int might match the return type of a gcc2
22947 builtin and then its argument prototype would still apply. */
22948char $ac_func ();
22949/* The GNU C library defines this for functions which it implements
22950 to always fail with ENOSYS. Some functions are actually named
22951 something starting with __ and the normal name is an alias. */
22952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22953choke me
22954#else
22955char (*f) () = $ac_func;
22956#endif
22957#ifdef __cplusplus
22958}
22959#endif
22960
22961int
22962main ()
22963{
22964return f != $ac_func;
22965 ;
22966 return 0;
22967}
22968_ACEOF
22969rm -f conftest.$ac_objext conftest$ac_exeext
22970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22971 (eval $ac_link) 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
dcc1b6ad
VS
22978 { ac_try='test -z "$ac_c_werror_flag"
22979 || test ! -s conftest.err'
a848cd7e
SC
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; } &&
22985 { ac_try='test -s conftest$ac_exeext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 eval "$as_ac_var=yes"
22992else
22993 echo "$as_me: failed program was:" >&5
22994sed 's/^/| /' conftest.$ac_ext >&5
22995
22996eval "$as_ac_var=no"
22997fi
22998rm -f conftest.err conftest.$ac_objext \
22999 conftest$ac_exeext conftest.$ac_ext
23000fi
23001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23002echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23003if test `eval echo '${'$as_ac_var'}'` = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23006_ACEOF
23007
23008fi
23009done
23010
23011 fi
23012
23013 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23014 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23015
23016 AFMINSTALL=afminstall
23017 TOOLKIT=GTK
23018 GUIDIST=GTK_DIST
23019
23020 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23021echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23022if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23024else
23025 ac_check_lib_save_LIBS=$LIBS
23026LIBS="-lgdk $LIBS"
23027cat >conftest.$ac_ext <<_ACEOF
23028/* confdefs.h. */
23029_ACEOF
23030cat confdefs.h >>conftest.$ac_ext
23031cat >>conftest.$ac_ext <<_ACEOF
23032/* end confdefs.h. */
23033
23034/* Override any gcc2 internal prototype to avoid an error. */
23035#ifdef __cplusplus
23036extern "C"
23037#endif
23038/* We use char because int might match the return type of a gcc2
23039 builtin and then its argument prototype would still apply. */
23040char gdk_im_open ();
23041int
23042main ()
23043{
23044gdk_im_open ();
23045 ;
23046 return 0;
23047}
23048_ACEOF
23049rm -f conftest.$ac_objext conftest$ac_exeext
23050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23051 (eval $ac_link) 2>conftest.er1
23052 ac_status=$?
23053 grep -v '^ *+' conftest.er1 >conftest.err
23054 rm -f conftest.er1
23055 cat conftest.err >&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } &&
dcc1b6ad
VS
23058 { ac_try='test -z "$ac_c_werror_flag"
23059 || test ! -s conftest.err'
a848cd7e
SC
23060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061 (eval $ac_try) 2>&5
23062 ac_status=$?
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; } &&
23065 { ac_try='test -s conftest$ac_exeext'
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23068 ac_status=$?
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; }; then
23071 ac_cv_lib_gdk_gdk_im_open=yes
23072else
23073 echo "$as_me: failed program was:" >&5
23074sed 's/^/| /' conftest.$ac_ext >&5
23075
23076ac_cv_lib_gdk_gdk_im_open=no
23077fi
23078rm -f conftest.err conftest.$ac_objext \
23079 conftest$ac_exeext conftest.$ac_ext
23080LIBS=$ac_check_lib_save_LIBS
23081fi
23082echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23083echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23084if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23085 cat >>confdefs.h <<\_ACEOF
23086#define HAVE_XIM 1
23087_ACEOF
23088
23089fi
23090
23091
23092
23093 if test "$wxUSE_GPE" = "yes"; then
23094 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23095echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23096
23097ac_find_libraries=
23098for ac_dir in $SEARCH_LIB /usr/lib;
23099 do
23100 for ac_extension in a so sl dylib; do
23101 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23102 ac_find_libraries=$ac_dir
23103 break 2
23104 fi
23105 done
23106 done
23107
23108 if test "$ac_find_libraries" != "" ; then
23109
23110 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23111 result=$?
23112 if test $result = 0; then
23113 ac_path_to_link=""
23114 else
23115 ac_path_to_link=" -L$ac_find_libraries"
23116 fi
23117
23118 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23119 WXGPE=1
23120 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23121echo "${ECHO_T}found at $ac_find_libraries" >&6
23122 else
23123 echo "$as_me:$LINENO: result: not found" >&5
23124echo "${ECHO_T}not found" >&6
23125 fi
23126
23127 fi
23128 fi
23129
23130 if test "$wxUSE_MGL" = 1; then
23131 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23132echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23133 if test "x$MGL_ROOT" = x ; then
23134 echo "$as_me:$LINENO: result: not found" >&5
23135echo "${ECHO_T}not found" >&6
23136 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23137echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23138 { (exit 1); exit 1; }; }
23139 else
23140 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23141echo "${ECHO_T}$MGL_ROOT" >&6
23142 fi
23143
23144 echo "$as_me:$LINENO: checking for libmgl location" >&5
23145echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23146 case "${host}" in
23147 *-*-linux* )
23148 if test "x$wxUSE_SHARED" = xyes ; then
23149 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23150 else
23151 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23152 fi
23153 ;;
23154 *-pc-msdosdjgpp )
23155 mgl_os_candidates="dos32/dj2"
23156 ;;
23157 *)
23158 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23159echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23160 { (exit 1); exit 1; }; }
23161 esac
23162
23163 mgl_lib_type=""
23164 mgl_os=""
23165
23166 for mgl_os_i in $mgl_os_candidates ; do
23167 if test "x$mgl_os" = x ; then
23168 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23169 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23170 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23171 mgl_lib_type=debug
23172 mgl_os=$mgl_os_i
23173 fi
23174 fi
23175 if test "x$mgl_lib_type" = x ; then
23176 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23177 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23178 mgl_lib_type=release
23179 mgl_os=$mgl_os_i
23180 fi
23181 fi
23182 fi
23183 done
23184
23185 if test "x$mgl_os" = x ; then
23186 echo "$as_me:$LINENO: result: not found" >&5
23187echo "${ECHO_T}not found" >&6
23188 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23189echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23190 { (exit 1); exit 1; }; }
23191 fi
23192 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23193echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23194
23195 wxUSE_UNIVERSAL="yes"
23196
23197 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23198 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23199
23200 AFMINSTALL=afminstall
23201 TOOLKIT=MGL
23202 GUIDIST=MGL_DIST
23203 fi
23204
23205 if test "$wxUSE_MICROWIN" = 1; then
23206 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23207echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23208 if test "x$MICROWINDOWS" = x ; then
23209 echo "$as_me:$LINENO: result: not found" >&5
23210echo "${ECHO_T}not found" >&6
23211 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23212echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23213 { (exit 1); exit 1; }; }
23214 else
23215 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23216echo "${ECHO_T}$MICROWINDOWS" >&6
23217 fi
23218
23219 if test -f $MICROWINDOWS/lib/libmwin.a; then
23220 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23221echo "${ECHO_T}MicroWindows' libraries found." >&6
23222 else
23223 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23224echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23225 { (exit 1); exit 1; }; }
23226 fi
23227
23228 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23229 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23230
23231 wxUSE_UNIVERSAL="yes"
23232
23233 AFMINSTALL=afminstall
23234 TOOLKIT=MICROWIN
23235 GUIDIST=MICROWIN_DIST
23236
23237 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23238 fi
23239
23240 if test "$wxUSE_X11" = 1; then
23241 echo "$as_me:$LINENO: checking for X" >&5
23242echo $ECHO_N "checking for X... $ECHO_C" >&6
23243
23244
23245# Check whether --with-x or --without-x was given.
23246if test "${with_x+set}" = set; then
23247 withval="$with_x"
23248
23249fi;
23250# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23251if test "x$with_x" = xno; then
23252 # The user explicitly disabled X.
23253 have_x=disabled
23254else
23255 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23256 # Both variables are already set.
23257 have_x=yes
23258 else
23259 if test "${ac_cv_have_x+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261else
23262 # One or both of the vars are not set, and there is no cached value.
23263ac_x_includes=no ac_x_libraries=no
23264rm -fr conftest.dir
23265if mkdir conftest.dir; then
23266 cd conftest.dir
23267 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23268 cat >Imakefile <<'_ACEOF'
23269acfindx:
23270 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23271_ACEOF
23272 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23274 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23276 for ac_extension in a so sl; do
23277 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23278 test -f $ac_im_libdir/libX11.$ac_extension; then
23279 ac_im_usrlibdir=$ac_im_libdir; break
23280 fi
23281 done
23282 # Screen out bogus values from the imake configuration. They are
23283 # bogus both because they are the default anyway, and because
23284 # using them would break gcc on systems where it needs fixed includes.
23285 case $ac_im_incroot in
23286 /usr/include) ;;
23287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23288 esac
23289 case $ac_im_usrlibdir in
23290 /usr/lib | /lib) ;;
23291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23292 esac
23293 fi
23294 cd ..
23295 rm -fr conftest.dir
23296fi
23297
23298# Standard set of common directories for X headers.
23299# Check X11 before X11Rn because it is often a symlink to the current release.
23300ac_x_header_dirs='
23301/usr/X11/include
23302/usr/X11R6/include
23303/usr/X11R5/include
23304/usr/X11R4/include
23305
23306/usr/include/X11
23307/usr/include/X11R6
23308/usr/include/X11R5
23309/usr/include/X11R4
23310
23311/usr/local/X11/include
23312/usr/local/X11R6/include
23313/usr/local/X11R5/include
23314/usr/local/X11R4/include
23315
23316/usr/local/include/X11
23317/usr/local/include/X11R6
23318/usr/local/include/X11R5
23319/usr/local/include/X11R4
23320
23321/usr/X386/include
23322/usr/x386/include
23323/usr/XFree86/include/X11
23324
23325/usr/include
23326/usr/local/include
23327/usr/unsupported/include
23328/usr/athena/include
23329/usr/local/x11r5/include
23330/usr/lpp/Xamples/include
23331
23332/usr/openwin/include
23333/usr/openwin/share/include'
23334
23335if test "$ac_x_includes" = no; then
23336 # Guess where to find include files, by looking for Intrinsic.h.
23337 # First, try using that file with no special directory specified.
23338 cat >conftest.$ac_ext <<_ACEOF
23339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
23344#include <X11/Intrinsic.h>
23345_ACEOF
23346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23348 ac_status=$?
23349 grep -v '^ *+' conftest.er1 >conftest.err
23350 rm -f conftest.er1
23351 cat conftest.err >&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } >/dev/null; then
23354 if test -s conftest.err; then
23355 ac_cpp_err=$ac_c_preproc_warn_flag
23356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23357 else
23358 ac_cpp_err=
23359 fi
23360else
23361 ac_cpp_err=yes
23362fi
23363if test -z "$ac_cpp_err"; then
23364 # We can compile using X headers with no special include directory.
23365ac_x_includes=
23366else
23367 echo "$as_me: failed program was:" >&5
23368sed 's/^/| /' conftest.$ac_ext >&5
23369
23370 for ac_dir in $ac_x_header_dirs; do
23371 if test -r "$ac_dir/X11/Intrinsic.h"; then
23372 ac_x_includes=$ac_dir
23373 break
23374 fi
23375done
23376fi
23377rm -f conftest.err conftest.$ac_ext
23378fi # $ac_x_includes = no
23379
23380if test "$ac_x_libraries" = no; then
23381 # Check for the libraries.
23382 # See if we find them without any special options.
23383 # Don't add to $LIBS permanently.
23384 ac_save_LIBS=$LIBS
23385 LIBS="-lXt $LIBS"
23386 cat >conftest.$ac_ext <<_ACEOF
23387/* confdefs.h. */
23388_ACEOF
23389cat confdefs.h >>conftest.$ac_ext
23390cat >>conftest.$ac_ext <<_ACEOF
23391/* end confdefs.h. */
23392#include <X11/Intrinsic.h>
23393int
23394main ()
23395{
23396XtMalloc (0)
23397 ;
23398 return 0;
23399}
23400_ACEOF
23401rm -f conftest.$ac_objext conftest$ac_exeext
23402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23403 (eval $ac_link) 2>conftest.er1
23404 ac_status=$?
23405 grep -v '^ *+' conftest.er1 >conftest.err
23406 rm -f conftest.er1
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } &&
dcc1b6ad
VS
23410 { ac_try='test -z "$ac_c_werror_flag"
23411 || test ! -s conftest.err'
a848cd7e
SC
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; } &&
23417 { ac_try='test -s conftest$ac_exeext'
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; }; then
23423 LIBS=$ac_save_LIBS
23424# We can link X programs with no special library path.
23425ac_x_libraries=
23426else
23427 echo "$as_me: failed program was:" >&5
23428sed 's/^/| /' conftest.$ac_ext >&5
23429
23430LIBS=$ac_save_LIBS
23431for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23432do
23433 # Don't even attempt the hair of trying to link an X program!
23434 for ac_extension in a so sl; do
23435 if test -r $ac_dir/libXt.$ac_extension; then
23436 ac_x_libraries=$ac_dir
23437 break 2
23438 fi
23439 done
23440done
23441fi
23442rm -f conftest.err conftest.$ac_objext \
23443 conftest$ac_exeext conftest.$ac_ext
23444fi # $ac_x_libraries = no
23445
23446if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23447 # Didn't find X anywhere. Cache the known absence of X.
23448 ac_cv_have_x="have_x=no"
23449else
23450 # Record where we found X for the cache.
23451 ac_cv_have_x="have_x=yes \
23452 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23453fi
23454fi
23455
23456 fi
23457 eval "$ac_cv_have_x"
23458fi # $with_x != no
23459
23460if test "$have_x" != yes; then
23461 echo "$as_me:$LINENO: result: $have_x" >&5
23462echo "${ECHO_T}$have_x" >&6
23463 no_x=yes
23464else
23465 # If each of the values was on the command line, it overrides each guess.
23466 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23467 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23468 # Update the cache value to reflect the command line values.
23469 ac_cv_have_x="have_x=yes \
23470 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23471 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23472echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23473fi
23474
23475if test "$no_x" = yes; then
23476 # Not all programs may use this symbol, but it does not hurt to define it.
23477
23478cat >>confdefs.h <<\_ACEOF
23479#define X_DISPLAY_MISSING 1
23480_ACEOF
23481
23482 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23483else
23484 if test -n "$x_includes"; then
23485 X_CFLAGS="$X_CFLAGS -I$x_includes"
23486 fi
23487
23488 # It would also be nice to do this for all -L options, not just this one.
23489 if test -n "$x_libraries"; then
23490 X_LIBS="$X_LIBS -L$x_libraries"
23491 # For Solaris; some versions of Sun CC require a space after -R and
23492 # others require no space. Words are not sufficient . . . .
23493 case `(uname -sr) 2>/dev/null` in
23494 "SunOS 5"*)
23495 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23496echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23497 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23498 cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504
23505int
23506main ()
23507{
23508
23509 ;
23510 return 0;
23511}
23512_ACEOF
23513rm -f conftest.$ac_objext conftest$ac_exeext
23514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515 (eval $ac_link) 2>conftest.er1
23516 ac_status=$?
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
dcc1b6ad
VS
23522 { ac_try='test -z "$ac_c_werror_flag"
23523 || test ! -s conftest.err'
a848cd7e
SC
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; } &&
23529 { ac_try='test -s conftest$ac_exeext'
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 ac_R_nospace=yes
23536else
23537 echo "$as_me: failed program was:" >&5
23538sed 's/^/| /' conftest.$ac_ext >&5
23539
23540ac_R_nospace=no
23541fi
23542rm -f conftest.err conftest.$ac_objext \
23543 conftest$ac_exeext conftest.$ac_ext
23544 if test $ac_R_nospace = yes; then
23545 echo "$as_me:$LINENO: result: no" >&5
23546echo "${ECHO_T}no" >&6
23547 X_LIBS="$X_LIBS -R$x_libraries"
23548 else
23549 LIBS="$ac_xsave_LIBS -R $x_libraries"
23550 cat >conftest.$ac_ext <<_ACEOF
23551/* confdefs.h. */
23552_ACEOF
23553cat confdefs.h >>conftest.$ac_ext
23554cat >>conftest.$ac_ext <<_ACEOF
23555/* end confdefs.h. */
23556
23557int
23558main ()
23559{
23560
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext conftest$ac_exeext
23566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23567 (eval $ac_link) 2>conftest.er1
23568 ac_status=$?
23569 grep -v '^ *+' conftest.er1 >conftest.err
23570 rm -f conftest.er1
23571 cat conftest.err >&5
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } &&
dcc1b6ad
VS
23574 { ac_try='test -z "$ac_c_werror_flag"
23575 || test ! -s conftest.err'
a848cd7e
SC
23576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577 (eval $ac_try) 2>&5
23578 ac_status=$?
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); }; } &&
23581 { ac_try='test -s conftest$ac_exeext'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ac_R_space=yes
23588else
23589 echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592ac_R_space=no
23593fi
23594rm -f conftest.err conftest.$ac_objext \
23595 conftest$ac_exeext conftest.$ac_ext
23596 if test $ac_R_space = yes; then
23597 echo "$as_me:$LINENO: result: yes" >&5
23598echo "${ECHO_T}yes" >&6
23599 X_LIBS="$X_LIBS -R $x_libraries"
23600 else
23601 echo "$as_me:$LINENO: result: neither works" >&5
23602echo "${ECHO_T}neither works" >&6
23603 fi
23604 fi
23605 LIBS=$ac_xsave_LIBS
23606 esac
23607 fi
23608
23609 # Check for system-dependent libraries X programs must link with.
23610 # Do this before checking for the system-independent R6 libraries
23611 # (-lICE), since we may need -lsocket or whatever for X linking.
23612
23613 if test "$ISC" = yes; then
23614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23615 else
23616 # Martyn Johnson says this is needed for Ultrix, if the X
23617 # libraries were built with DECnet support. And Karl Berry says
23618 # the Alpha needs dnet_stub (dnet does not exist).
23619 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23620 cat >conftest.$ac_ext <<_ACEOF
23621/* confdefs.h. */
23622_ACEOF
23623cat confdefs.h >>conftest.$ac_ext
23624cat >>conftest.$ac_ext <<_ACEOF
23625/* end confdefs.h. */
23626
23627/* Override any gcc2 internal prototype to avoid an error. */
23628#ifdef __cplusplus
23629extern "C"
23630#endif
23631/* We use char because int might match the return type of a gcc2
23632 builtin and then its argument prototype would still apply. */
23633char XOpenDisplay ();
23634int
23635main ()
23636{
23637XOpenDisplay ();
23638 ;
23639 return 0;
23640}
23641_ACEOF
23642rm -f conftest.$ac_objext conftest$ac_exeext
23643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>conftest.er1
23645 ac_status=$?
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
dcc1b6ad
VS
23651 { ac_try='test -z "$ac_c_werror_flag"
23652 || test ! -s conftest.err'
a848cd7e
SC
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest$ac_exeext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 :
23665else
23666 echo "$as_me: failed program was:" >&5
23667sed 's/^/| /' conftest.$ac_ext >&5
23668
23669echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23670echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23671if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23673else
23674 ac_check_lib_save_LIBS=$LIBS
23675LIBS="-ldnet $LIBS"
23676cat >conftest.$ac_ext <<_ACEOF
23677/* confdefs.h. */
23678_ACEOF
23679cat confdefs.h >>conftest.$ac_ext
23680cat >>conftest.$ac_ext <<_ACEOF
23681/* end confdefs.h. */
23682
23683/* Override any gcc2 internal prototype to avoid an error. */
23684#ifdef __cplusplus
23685extern "C"
23686#endif
23687/* We use char because int might match the return type of a gcc2
23688 builtin and then its argument prototype would still apply. */
23689char dnet_ntoa ();
23690int
23691main ()
23692{
23693dnet_ntoa ();
23694 ;
23695 return 0;
23696}
23697_ACEOF
23698rm -f conftest.$ac_objext conftest$ac_exeext
23699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } &&
dcc1b6ad
VS
23707 { ac_try='test -z "$ac_c_werror_flag"
23708 || test ! -s conftest.err'
a848cd7e
SC
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; } &&
23714 { ac_try='test -s conftest$ac_exeext'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; }; then
23720 ac_cv_lib_dnet_dnet_ntoa=yes
23721else
23722 echo "$as_me: failed program was:" >&5
23723sed 's/^/| /' conftest.$ac_ext >&5
23724
23725ac_cv_lib_dnet_dnet_ntoa=no
23726fi
23727rm -f conftest.err conftest.$ac_objext \
23728 conftest$ac_exeext conftest.$ac_ext
23729LIBS=$ac_check_lib_save_LIBS
23730fi
23731echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23732echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23733if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23734 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23735fi
23736
23737 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23738 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23739echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23740if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23742else
23743 ac_check_lib_save_LIBS=$LIBS
23744LIBS="-ldnet_stub $LIBS"
23745cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751
23752/* Override any gcc2 internal prototype to avoid an error. */
23753#ifdef __cplusplus
23754extern "C"
23755#endif
23756/* We use char because int might match the return type of a gcc2
23757 builtin and then its argument prototype would still apply. */
23758char dnet_ntoa ();
23759int
23760main ()
23761{
23762dnet_ntoa ();
23763 ;
23764 return 0;
23765}
23766_ACEOF
23767rm -f conftest.$ac_objext conftest$ac_exeext
23768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23769 (eval $ac_link) 2>conftest.er1
23770 ac_status=$?
23771 grep -v '^ *+' conftest.er1 >conftest.err
23772 rm -f conftest.er1
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
dcc1b6ad
VS
23776 { ac_try='test -z "$ac_c_werror_flag"
23777 || test ! -s conftest.err'
a848cd7e
SC
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest$ac_exeext'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23790else
23791 echo "$as_me: failed program was:" >&5
23792sed 's/^/| /' conftest.$ac_ext >&5
23793
23794ac_cv_lib_dnet_stub_dnet_ntoa=no
23795fi
23796rm -f conftest.err conftest.$ac_objext \
23797 conftest$ac_exeext conftest.$ac_ext
23798LIBS=$ac_check_lib_save_LIBS
23799fi
23800echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23801echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23802if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23803 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23804fi
23805
23806 fi
23807fi
23808rm -f conftest.err conftest.$ac_objext \
23809 conftest$ac_exeext conftest.$ac_ext
23810 LIBS="$ac_xsave_LIBS"
23811
23812 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23813 # to get the SysV transport functions.
23814 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23815 # needs -lnsl.
23816 # The nsl library prevents programs from opening the X display
23817 # on Irix 5.2, according to T.E. Dickey.
23818 # The functions gethostbyname, getservbyname, and inet_addr are
23819 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23820 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23821echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23822if test "${ac_cv_func_gethostbyname+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825 cat >conftest.$ac_ext <<_ACEOF
23826/* confdefs.h. */
23827_ACEOF
23828cat confdefs.h >>conftest.$ac_ext
23829cat >>conftest.$ac_ext <<_ACEOF
23830/* end confdefs.h. */
23831/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23833#define gethostbyname innocuous_gethostbyname
23834
23835/* System header to define __stub macros and hopefully few prototypes,
23836 which can conflict with char gethostbyname (); below.
23837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23838 <limits.h> exists even on freestanding compilers. */
23839
23840#ifdef __STDC__
23841# include <limits.h>
23842#else
23843# include <assert.h>
23844#endif
23845
23846#undef gethostbyname
23847
23848/* Override any gcc2 internal prototype to avoid an error. */
23849#ifdef __cplusplus
23850extern "C"
23851{
23852#endif
23853/* We use char because int might match the return type of a gcc2
23854 builtin and then its argument prototype would still apply. */
23855char gethostbyname ();
23856/* The GNU C library defines this for functions which it implements
23857 to always fail with ENOSYS. Some functions are actually named
23858 something starting with __ and the normal name is an alias. */
23859#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23860choke me
23861#else
23862char (*f) () = gethostbyname;
23863#endif
23864#ifdef __cplusplus
23865}
23866#endif
23867
23868int
23869main ()
23870{
23871return f != gethostbyname;
23872 ;
23873 return 0;
23874}
23875_ACEOF
23876rm -f conftest.$ac_objext conftest$ac_exeext
23877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23878 (eval $ac_link) 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
dcc1b6ad
VS
23885 { ac_try='test -z "$ac_c_werror_flag"
23886 || test ! -s conftest.err'
a848cd7e
SC
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest$ac_exeext'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23895 ac_status=$?
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
23898 ac_cv_func_gethostbyname=yes
23899else
23900 echo "$as_me: failed program was:" >&5
23901sed 's/^/| /' conftest.$ac_ext >&5
23902
23903ac_cv_func_gethostbyname=no
23904fi
23905rm -f conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
23907fi
23908echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23909echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23910
23911 if test $ac_cv_func_gethostbyname = no; then
23912 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23913echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23914if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23915 echo $ECHO_N "(cached) $ECHO_C" >&6
23916else
23917 ac_check_lib_save_LIBS=$LIBS
23918LIBS="-lnsl $LIBS"
23919cat >conftest.$ac_ext <<_ACEOF
23920/* confdefs.h. */
23921_ACEOF
23922cat confdefs.h >>conftest.$ac_ext
23923cat >>conftest.$ac_ext <<_ACEOF
23924/* end confdefs.h. */
23925
23926/* Override any gcc2 internal prototype to avoid an error. */
23927#ifdef __cplusplus
23928extern "C"
23929#endif
23930/* We use char because int might match the return type of a gcc2
23931 builtin and then its argument prototype would still apply. */
23932char gethostbyname ();
23933int
23934main ()
23935{
23936gethostbyname ();
23937 ;
23938 return 0;
23939}
23940_ACEOF
23941rm -f conftest.$ac_objext conftest$ac_exeext
23942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23943 (eval $ac_link) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } &&
dcc1b6ad
VS
23950 { ac_try='test -z "$ac_c_werror_flag"
23951 || 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_nsl_gethostbyname=yes
23964else
23965 echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
23968ac_cv_lib_nsl_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_nsl_gethostbyname" >&5
23975echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23976if test $ac_cv_lib_nsl_gethostbyname = yes; then
23977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23978fi
23979
23980 if test $ac_cv_lib_nsl_gethostbyname = no; then
23981 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23982echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23983if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23984 echo $ECHO_N "(cached) $ECHO_C" >&6
23985else
23986 ac_check_lib_save_LIBS=$LIBS
23987LIBS="-lbsd $LIBS"
23988cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h. */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h. */
23994
23995/* Override any gcc2 internal prototype to avoid an error. */
23996#ifdef __cplusplus
23997extern "C"
23998#endif
23999/* We use char because int might match the return type of a gcc2
24000 builtin and then its argument prototype would still apply. */
24001char gethostbyname ();
24002int
24003main ()
24004{
24005gethostbyname ();
24006 ;
24007 return 0;
24008}
24009_ACEOF
24010rm -f conftest.$ac_objext conftest$ac_exeext
24011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24012 (eval $ac_link) 2>conftest.er1
24013 ac_status=$?
24014 grep -v '^ *+' conftest.er1 >conftest.err
24015 rm -f conftest.er1
24016 cat conftest.err >&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } &&
dcc1b6ad
VS
24019 { ac_try='test -z "$ac_c_werror_flag"
24020 || test ! -s conftest.err'
a848cd7e
SC
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; } &&
24026 { ac_try='test -s conftest$ac_exeext'
24027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028 (eval $ac_try) 2>&5
24029 ac_status=$?
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); }; }; then
24032 ac_cv_lib_bsd_gethostbyname=yes
24033else
24034 echo "$as_me: failed program was:" >&5
24035sed 's/^/| /' conftest.$ac_ext >&5
24036
24037ac_cv_lib_bsd_gethostbyname=no
24038fi
24039rm -f conftest.err conftest.$ac_objext \
24040 conftest$ac_exeext conftest.$ac_ext
24041LIBS=$ac_check_lib_save_LIBS
24042fi
24043echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24044echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24045if test $ac_cv_lib_bsd_gethostbyname = yes; then
24046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24047fi
24048
24049 fi
24050 fi
24051
24052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24053 # socket/setsockopt and other routines are undefined under SCO ODT
24054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24055 # on later versions), says Simon Leinen: it contains gethostby*
24056 # variants that don't use the name server (or something). -lsocket
24057 # must be given before -lnsl if both are needed. We assume that
24058 # if connect needs -lnsl, so does gethostbyname.
24059 echo "$as_me:$LINENO: checking for connect" >&5
24060echo $ECHO_N "checking for connect... $ECHO_C" >&6
24061if test "${ac_cv_func_connect+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24063else
24064 cat >conftest.$ac_ext <<_ACEOF
24065/* confdefs.h. */
24066_ACEOF
24067cat confdefs.h >>conftest.$ac_ext
24068cat >>conftest.$ac_ext <<_ACEOF
24069/* end confdefs.h. */
24070/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24072#define connect innocuous_connect
24073
24074/* System header to define __stub macros and hopefully few prototypes,
24075 which can conflict with char connect (); below.
24076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24077 <limits.h> exists even on freestanding compilers. */
24078
24079#ifdef __STDC__
24080# include <limits.h>
24081#else
24082# include <assert.h>
24083#endif
24084
24085#undef connect
24086
24087/* Override any gcc2 internal prototype to avoid an error. */
24088#ifdef __cplusplus
24089extern "C"
24090{
24091#endif
24092/* We use char because int might match the return type of a gcc2
24093 builtin and then its argument prototype would still apply. */
24094char connect ();
24095/* The GNU C library defines this for functions which it implements
24096 to always fail with ENOSYS. Some functions are actually named
24097 something starting with __ and the normal name is an alias. */
24098#if defined (__stub_connect) || defined (__stub___connect)
24099choke me
24100#else
24101char (*f) () = connect;
24102#endif
24103#ifdef __cplusplus
24104}
24105#endif
24106
24107int
24108main ()
24109{
24110return f != connect;
24111 ;
24112 return 0;
24113}
24114_ACEOF
24115rm -f conftest.$ac_objext conftest$ac_exeext
24116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24117 (eval $ac_link) 2>conftest.er1
24118 ac_status=$?
24119 grep -v '^ *+' conftest.er1 >conftest.err
24120 rm -f conftest.er1
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } &&
dcc1b6ad
VS
24124 { ac_try='test -z "$ac_c_werror_flag"
24125 || test ! -s conftest.err'
a848cd7e
SC
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); }; } &&
24131 { ac_try='test -s conftest$ac_exeext'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24134 ac_status=$?
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24137 ac_cv_func_connect=yes
24138else
24139 echo "$as_me: failed program was:" >&5
24140sed 's/^/| /' conftest.$ac_ext >&5
24141
24142ac_cv_func_connect=no
24143fi
24144rm -f conftest.err conftest.$ac_objext \
24145 conftest$ac_exeext conftest.$ac_ext
24146fi
24147echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24148echo "${ECHO_T}$ac_cv_func_connect" >&6
24149
24150 if test $ac_cv_func_connect = no; then
24151 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24152echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24153if test "${ac_cv_lib_socket_connect+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156 ac_check_lib_save_LIBS=$LIBS
24157LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24158cat >conftest.$ac_ext <<_ACEOF
24159/* confdefs.h. */
24160_ACEOF
24161cat confdefs.h >>conftest.$ac_ext
24162cat >>conftest.$ac_ext <<_ACEOF
24163/* end confdefs.h. */
24164
24165/* Override any gcc2 internal prototype to avoid an error. */
24166#ifdef __cplusplus
24167extern "C"
24168#endif
24169/* We use char because int might match the return type of a gcc2
24170 builtin and then its argument prototype would still apply. */
24171char connect ();
24172int
24173main ()
24174{
24175connect ();
24176 ;
24177 return 0;
24178}
24179_ACEOF
24180rm -f conftest.$ac_objext conftest$ac_exeext
24181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24182 (eval $ac_link) 2>conftest.er1
24183 ac_status=$?
24184 grep -v '^ *+' conftest.er1 >conftest.err
24185 rm -f conftest.er1
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } &&
dcc1b6ad
VS
24189 { ac_try='test -z "$ac_c_werror_flag"
24190 || test ! -s conftest.err'
a848cd7e
SC
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24193 ac_status=$?
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest$ac_exeext'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 ac_cv_lib_socket_connect=yes
24203else
24204 echo "$as_me: failed program was:" >&5
24205sed 's/^/| /' conftest.$ac_ext >&5
24206
24207ac_cv_lib_socket_connect=no
24208fi
24209rm -f conftest.err conftest.$ac_objext \
24210 conftest$ac_exeext conftest.$ac_ext
24211LIBS=$ac_check_lib_save_LIBS
24212fi
24213echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24214echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24215if test $ac_cv_lib_socket_connect = yes; then
24216 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24217fi
24218
24219 fi
24220
24221 # Guillermo Gomez says -lposix is necessary on A/UX.
24222 echo "$as_me:$LINENO: checking for remove" >&5
24223echo $ECHO_N "checking for remove... $ECHO_C" >&6
24224if test "${ac_cv_func_remove+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24226else
24227 cat >conftest.$ac_ext <<_ACEOF
24228/* confdefs.h. */
24229_ACEOF
24230cat confdefs.h >>conftest.$ac_ext
24231cat >>conftest.$ac_ext <<_ACEOF
24232/* end confdefs.h. */
24233/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24235#define remove innocuous_remove
24236
24237/* System header to define __stub macros and hopefully few prototypes,
24238 which can conflict with char remove (); below.
24239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24240 <limits.h> exists even on freestanding compilers. */
24241
24242#ifdef __STDC__
24243# include <limits.h>
24244#else
24245# include <assert.h>
24246#endif
24247
24248#undef remove
24249
24250/* Override any gcc2 internal prototype to avoid an error. */
24251#ifdef __cplusplus
24252extern "C"
24253{
24254#endif
24255/* We use char because int might match the return type of a gcc2
24256 builtin and then its argument prototype would still apply. */
24257char remove ();
24258/* The GNU C library defines this for functions which it implements
24259 to always fail with ENOSYS. Some functions are actually named
24260 something starting with __ and the normal name is an alias. */
24261#if defined (__stub_remove) || defined (__stub___remove)
24262choke me
24263#else
24264char (*f) () = remove;
24265#endif
24266#ifdef __cplusplus
24267}
24268#endif
24269
24270int
24271main ()
24272{
24273return f != remove;
24274 ;
24275 return 0;
24276}
24277_ACEOF
24278rm -f conftest.$ac_objext conftest$ac_exeext
24279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24280 (eval $ac_link) 2>conftest.er1
24281 ac_status=$?
24282 grep -v '^ *+' conftest.er1 >conftest.err
24283 rm -f conftest.er1
24284 cat conftest.err >&5
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } &&
dcc1b6ad
VS
24287 { ac_try='test -z "$ac_c_werror_flag"
24288 || test ! -s conftest.err'
a848cd7e
SC
24289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; } &&
24294 { ac_try='test -s conftest$ac_exeext'
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; }; then
24300 ac_cv_func_remove=yes
24301else
24302 echo "$as_me: failed program was:" >&5
24303sed 's/^/| /' conftest.$ac_ext >&5
24304
24305ac_cv_func_remove=no
24306fi
24307rm -f conftest.err conftest.$ac_objext \
24308 conftest$ac_exeext conftest.$ac_ext
24309fi
24310echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24311echo "${ECHO_T}$ac_cv_func_remove" >&6
24312
24313 if test $ac_cv_func_remove = no; then
24314 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24315echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24316if test "${ac_cv_lib_posix_remove+set}" = set; then
24317 echo $ECHO_N "(cached) $ECHO_C" >&6
24318else
24319 ac_check_lib_save_LIBS=$LIBS
24320LIBS="-lposix $LIBS"
24321cat >conftest.$ac_ext <<_ACEOF
24322/* confdefs.h. */
24323_ACEOF
24324cat confdefs.h >>conftest.$ac_ext
24325cat >>conftest.$ac_ext <<_ACEOF
24326/* end confdefs.h. */
24327
24328/* Override any gcc2 internal prototype to avoid an error. */
24329#ifdef __cplusplus
24330extern "C"
24331#endif
24332/* We use char because int might match the return type of a gcc2
24333 builtin and then its argument prototype would still apply. */
24334char remove ();
24335int
24336main ()
24337{
24338remove ();
24339 ;
24340 return 0;
24341}
24342_ACEOF
24343rm -f conftest.$ac_objext conftest$ac_exeext
24344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24345 (eval $ac_link) 2>conftest.er1
24346 ac_status=$?
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
dcc1b6ad
VS
24352 { ac_try='test -z "$ac_c_werror_flag"
24353 || test ! -s conftest.err'
a848cd7e
SC
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; } &&
24359 { ac_try='test -s conftest$ac_exeext'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; }; then
24365 ac_cv_lib_posix_remove=yes
24366else
24367 echo "$as_me: failed program was:" >&5
24368sed 's/^/| /' conftest.$ac_ext >&5
24369
24370ac_cv_lib_posix_remove=no
24371fi
24372rm -f conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24374LIBS=$ac_check_lib_save_LIBS
24375fi
24376echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24377echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24378if test $ac_cv_lib_posix_remove = yes; then
24379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24380fi
24381
24382 fi
24383
24384 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24385 echo "$as_me:$LINENO: checking for shmat" >&5
24386echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24387if test "${ac_cv_func_shmat+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389else
24390 cat >conftest.$ac_ext <<_ACEOF
24391/* confdefs.h. */
24392_ACEOF
24393cat confdefs.h >>conftest.$ac_ext
24394cat >>conftest.$ac_ext <<_ACEOF
24395/* end confdefs.h. */
24396/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24398#define shmat innocuous_shmat
24399
24400/* System header to define __stub macros and hopefully few prototypes,
24401 which can conflict with char shmat (); below.
24402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24403 <limits.h> exists even on freestanding compilers. */
24404
24405#ifdef __STDC__
24406# include <limits.h>
24407#else
24408# include <assert.h>
24409#endif
24410
24411#undef shmat
24412
24413/* Override any gcc2 internal prototype to avoid an error. */
24414#ifdef __cplusplus
24415extern "C"
24416{
24417#endif
24418/* We use char because int might match the return type of a gcc2
24419 builtin and then its argument prototype would still apply. */
24420char shmat ();
24421/* The GNU C library defines this for functions which it implements
24422 to always fail with ENOSYS. Some functions are actually named
24423 something starting with __ and the normal name is an alias. */
24424#if defined (__stub_shmat) || defined (__stub___shmat)
24425choke me
24426#else
24427char (*f) () = shmat;
24428#endif
24429#ifdef __cplusplus
24430}
24431#endif
24432
24433int
24434main ()
24435{
24436return f != shmat;
24437 ;
24438 return 0;
24439}
24440_ACEOF
24441rm -f conftest.$ac_objext conftest$ac_exeext
24442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24443 (eval $ac_link) 2>conftest.er1
24444 ac_status=$?
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } &&
dcc1b6ad
VS
24450 { ac_try='test -z "$ac_c_werror_flag"
24451 || test ! -s conftest.err'
a848cd7e
SC
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest$ac_exeext'
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 ac_cv_func_shmat=yes
24464else
24465 echo "$as_me: failed program was:" >&5
24466sed 's/^/| /' conftest.$ac_ext >&5
24467
24468ac_cv_func_shmat=no
24469fi
24470rm -f conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
24472fi
24473echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24474echo "${ECHO_T}$ac_cv_func_shmat" >&6
24475
24476 if test $ac_cv_func_shmat = no; then
24477 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24478echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24479if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
24481else
24482 ac_check_lib_save_LIBS=$LIBS
24483LIBS="-lipc $LIBS"
24484cat >conftest.$ac_ext <<_ACEOF
24485/* confdefs.h. */
24486_ACEOF
24487cat confdefs.h >>conftest.$ac_ext
24488cat >>conftest.$ac_ext <<_ACEOF
24489/* end confdefs.h. */
24490
24491/* Override any gcc2 internal prototype to avoid an error. */
24492#ifdef __cplusplus
24493extern "C"
24494#endif
24495/* We use char because int might match the return type of a gcc2
24496 builtin and then its argument prototype would still apply. */
24497char shmat ();
24498int
24499main ()
24500{
24501shmat ();
24502 ;
24503 return 0;
24504}
24505_ACEOF
24506rm -f conftest.$ac_objext conftest$ac_exeext
24507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24508 (eval $ac_link) 2>conftest.er1
24509 ac_status=$?
24510 grep -v '^ *+' conftest.er1 >conftest.err
24511 rm -f conftest.er1
24512 cat conftest.err >&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } &&
dcc1b6ad
VS
24515 { ac_try='test -z "$ac_c_werror_flag"
24516 || test ! -s conftest.err'
a848cd7e
SC
24517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518 (eval $ac_try) 2>&5
24519 ac_status=$?
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; } &&
24522 { ac_try='test -s conftest$ac_exeext'
24523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24525 ac_status=$?
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); }; }; then
24528 ac_cv_lib_ipc_shmat=yes
24529else
24530 echo "$as_me: failed program was:" >&5
24531sed 's/^/| /' conftest.$ac_ext >&5
24532
24533ac_cv_lib_ipc_shmat=no
24534fi
24535rm -f conftest.err conftest.$ac_objext \
24536 conftest$ac_exeext conftest.$ac_ext
24537LIBS=$ac_check_lib_save_LIBS
24538fi
24539echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24540echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24541if test $ac_cv_lib_ipc_shmat = yes; then
24542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24543fi
24544
24545 fi
24546 fi
24547
24548 # Check for libraries that X11R6 Xt/Xaw programs need.
24549 ac_save_LDFLAGS=$LDFLAGS
24550 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24551 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24552 # check for ICE first), but we must link in the order -lSM -lICE or
24553 # we get undefined symbols. So assume we have SM if we have ICE.
24554 # These have to be linked with before -lX11, unlike the other
24555 # libraries we check for below, so use a different variable.
24556 # John Interrante, Karl Berry
24557 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24558echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24559if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24561else
24562 ac_check_lib_save_LIBS=$LIBS
24563LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24564cat >conftest.$ac_ext <<_ACEOF
24565/* confdefs.h. */
24566_ACEOF
24567cat confdefs.h >>conftest.$ac_ext
24568cat >>conftest.$ac_ext <<_ACEOF
24569/* end confdefs.h. */
24570
24571/* Override any gcc2 internal prototype to avoid an error. */
24572#ifdef __cplusplus
24573extern "C"
24574#endif
24575/* We use char because int might match the return type of a gcc2
24576 builtin and then its argument prototype would still apply. */
24577char IceConnectionNumber ();
24578int
24579main ()
24580{
24581IceConnectionNumber ();
24582 ;
24583 return 0;
24584}
24585_ACEOF
24586rm -f conftest.$ac_objext conftest$ac_exeext
24587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588 (eval $ac_link) 2>conftest.er1
24589 ac_status=$?
24590 grep -v '^ *+' conftest.er1 >conftest.err
24591 rm -f conftest.er1
24592 cat conftest.err >&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
dcc1b6ad
VS
24595 { ac_try='test -z "$ac_c_werror_flag"
24596 || test ! -s conftest.err'
a848cd7e
SC
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; } &&
24602 { ac_try='test -s conftest$ac_exeext'
24603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604 (eval $ac_try) 2>&5
24605 ac_status=$?
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; }; then
24608 ac_cv_lib_ICE_IceConnectionNumber=yes
24609else
24610 echo "$as_me: failed program was:" >&5
24611sed 's/^/| /' conftest.$ac_ext >&5
24612
24613ac_cv_lib_ICE_IceConnectionNumber=no
24614fi
24615rm -f conftest.err conftest.$ac_objext \
24616 conftest$ac_exeext conftest.$ac_ext
24617LIBS=$ac_check_lib_save_LIBS
24618fi
24619echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24620echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24621if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24623fi
24624
24625 LDFLAGS=$ac_save_LDFLAGS
24626
24627fi
24628
24629
24630 if test "$no_x" = "yes"; then
24631 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24632echo "$as_me: error: X11 not found" >&2;}
24633 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24634 fi
24635
24636 GUI_TK_LIBRARY="$X_LIBS"
24637 TOOLKIT_INCLUDE="$X_CFLAGS"
24638 AFMINSTALL=afminstall
24639 COMPILED_X_PROGRAM=0
24640
24641 if test "$wxUSE_NANOX" = "yes"; then
24642 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24643echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24644 if test "x$MICROWIN" = x ; then
24645 echo "$as_me:$LINENO: result: not found" >&5
24646echo "${ECHO_T}not found" >&6
24647 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24648echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24649 { (exit 1); exit 1; }; }
24650 else
24651 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24652echo "${ECHO_T}$MICROWIN" >&6
24653 cat >>confdefs.h <<\_ACEOF
24654#define wxUSE_NANOX 1
24655_ACEOF
24656
24657 fi
24658 fi
24659
24660 if test "$wxUSE_UNICODE" = "yes"; then
24661
24662 succeeded=no
24663
24664 if test -z "$PKG_CONFIG"; then
24665 # Extract the first word of "pkg-config", so it can be a program name with args.
24666set dummy pkg-config; ac_word=$2
24667echo "$as_me:$LINENO: checking for $ac_word" >&5
24668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24669if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24671else
24672 case $PKG_CONFIG in
24673 [\\/]* | ?:[\\/]*)
24674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24675 ;;
24676 *)
24677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24678for as_dir in $PATH
24679do
24680 IFS=$as_save_IFS
24681 test -z "$as_dir" && as_dir=.
24682 for ac_exec_ext in '' $ac_executable_extensions; do
24683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24686 break 2
24687 fi
24688done
24689done
24690
24691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24692 ;;
24693esac
24694fi
24695PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24696
24697if test -n "$PKG_CONFIG"; then
24698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24699echo "${ECHO_T}$PKG_CONFIG" >&6
24700else
24701 echo "$as_me:$LINENO: result: no" >&5
24702echo "${ECHO_T}no" >&6
24703fi
24704
24705 fi
24706
24707 if test "$PKG_CONFIG" = "no" ; then
24708 echo "*** The pkg-config script could not be found. Make sure it is"
24709 echo "*** in your path, or set the PKG_CONFIG environment variable"
24710 echo "*** to the full path to pkg-config."
24711 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24712 else
24713 PKG_CONFIG_MIN_VERSION=0.9.0
24714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24715 echo "$as_me:$LINENO: checking for pangox" >&5
24716echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24717
24718 if $PKG_CONFIG --exists "pangox" ; then
24719 echo "$as_me:$LINENO: result: yes" >&5
24720echo "${ECHO_T}yes" >&6
24721 succeeded=yes
24722
24723 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24724echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24725 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24726 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24727echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24728
24729 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24730echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24731 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24732 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24733echo "${ECHO_T}$PANGOX_LIBS" >&6
24734 else
24735 PANGOX_CFLAGS=""
24736 PANGOX_LIBS=""
24737 ## If we have a custom action on failure, don't print errors, but
24738 ## do set a variable so people can do so.
24739 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24740
24741 fi
24742
24743
24744
24745 else
24746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24748 fi
24749 fi
24750
24751 if test $succeeded = yes; then
24752
24753 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24755
24756 else
24757
24758 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24759echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24760 { (exit 1); exit 1; }; }
24761
24762
24763 fi
24764
24765
24766 succeeded=no
24767
24768 if test -z "$PKG_CONFIG"; then
24769 # Extract the first word of "pkg-config", so it can be a program name with args.
24770set dummy pkg-config; ac_word=$2
24771echo "$as_me:$LINENO: checking for $ac_word" >&5
24772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24773if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24775else
24776 case $PKG_CONFIG in
24777 [\\/]* | ?:[\\/]*)
24778 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24779 ;;
24780 *)
24781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24782for as_dir in $PATH
24783do
24784 IFS=$as_save_IFS
24785 test -z "$as_dir" && as_dir=.
24786 for ac_exec_ext in '' $ac_executable_extensions; do
24787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24788 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24790 break 2
24791 fi
24792done
24793done
24794
24795 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24796 ;;
24797esac
24798fi
24799PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24800
24801if test -n "$PKG_CONFIG"; then
24802 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24803echo "${ECHO_T}$PKG_CONFIG" >&6
24804else
24805 echo "$as_me:$LINENO: result: no" >&5
24806echo "${ECHO_T}no" >&6
24807fi
24808
24809 fi
24810
24811 if test "$PKG_CONFIG" = "no" ; then
24812 echo "*** The pkg-config script could not be found. Make sure it is"
24813 echo "*** in your path, or set the PKG_CONFIG environment variable"
24814 echo "*** to the full path to pkg-config."
24815 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24816 else
24817 PKG_CONFIG_MIN_VERSION=0.9.0
24818 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24819 echo "$as_me:$LINENO: checking for pangoft2" >&5
24820echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24821
24822 if $PKG_CONFIG --exists "pangoft2" ; then
24823 echo "$as_me:$LINENO: result: yes" >&5
24824echo "${ECHO_T}yes" >&6
24825 succeeded=yes
24826
24827 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24828echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24829 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24830 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24831echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24832
24833 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24834echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24835 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24836 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24837echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24838 else
24839 PANGOFT2_CFLAGS=""
24840 PANGOFT2_LIBS=""
24841 ## If we have a custom action on failure, don't print errors, but
24842 ## do set a variable so people can do so.
24843 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24844
24845 fi
24846
24847
24848
24849 else
24850 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24851 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24852 fi
24853 fi
24854
24855 if test $succeeded = yes; then
24856
24857 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24858 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24859
24860 else
24861
24862 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24863echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24864 wxUSE_PRINTING_ARCHITECTURE="no"
24865
24866
24867 fi
24868
24869
24870 succeeded=no
24871
24872 if test -z "$PKG_CONFIG"; then
24873 # Extract the first word of "pkg-config", so it can be a program name with args.
24874set dummy pkg-config; ac_word=$2
24875echo "$as_me:$LINENO: checking for $ac_word" >&5
24876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24877if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24879else
24880 case $PKG_CONFIG in
24881 [\\/]* | ?:[\\/]*)
24882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24883 ;;
24884 *)
24885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24886for as_dir in $PATH
24887do
24888 IFS=$as_save_IFS
24889 test -z "$as_dir" && as_dir=.
24890 for ac_exec_ext in '' $ac_executable_extensions; do
24891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24894 break 2
24895 fi
24896done
24897done
24898
24899 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24900 ;;
24901esac
24902fi
24903PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24904
24905if test -n "$PKG_CONFIG"; then
24906 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24907echo "${ECHO_T}$PKG_CONFIG" >&6
24908else
24909 echo "$as_me:$LINENO: result: no" >&5
24910echo "${ECHO_T}no" >&6
24911fi
24912
24913 fi
24914
24915 if test "$PKG_CONFIG" = "no" ; then
24916 echo "*** The pkg-config script could not be found. Make sure it is"
24917 echo "*** in your path, or set the PKG_CONFIG environment variable"
24918 echo "*** to the full path to pkg-config."
24919 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24920 else
24921 PKG_CONFIG_MIN_VERSION=0.9.0
24922 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24923 echo "$as_me:$LINENO: checking for pangoxft" >&5
24924echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24925
24926 if $PKG_CONFIG --exists "pangoxft" ; then
24927 echo "$as_me:$LINENO: result: yes" >&5
24928echo "${ECHO_T}yes" >&6
24929 succeeded=yes
24930
24931 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24932echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24933 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24934 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24935echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24936
24937 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24938echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24939 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24940 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24941echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24942 else
24943 PANGOXFT_CFLAGS=""
24944 PANGOXFT_LIBS=""
24945 ## If we have a custom action on failure, don't print errors, but
24946 ## do set a variable so people can do so.
24947 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24948
24949 fi
24950
24951
24952
24953 else
24954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24956 fi
24957 fi
24958
24959 if test $succeeded = yes; then
24960
24961 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24962 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24963
24964 else
24965
24966 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24967echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24968
24969
24970 fi
24971
24972 fi
24973
24974 wxUSE_UNIVERSAL="yes"
24975
24976 if test "$wxUSE_NANOX" = "yes"; then
24977 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24978 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"
24979 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24980 else
24981 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24982 fi
24983
24984 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24985 TOOLKIT=X11
24986 GUIDIST=X11_DIST
24987 fi
24988
24989 if test "$wxUSE_MOTIF" = 1; then
24990 if test "$no_x" = yes; then
24991 # Not all programs may use this symbol, but it does not hurt to define it.
24992
24993cat >>confdefs.h <<\_ACEOF
24994#define X_DISPLAY_MISSING 1
24995_ACEOF
24996
24997 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24998else
24999 if test -n "$x_includes"; then
25000 X_CFLAGS="$X_CFLAGS -I$x_includes"
25001 fi
25002
25003 # It would also be nice to do this for all -L options, not just this one.
25004 if test -n "$x_libraries"; then
25005 X_LIBS="$X_LIBS -L$x_libraries"
25006 # For Solaris; some versions of Sun CC require a space after -R and
25007 # others require no space. Words are not sufficient . . . .
25008 case `(uname -sr) 2>/dev/null` in
25009 "SunOS 5"*)
25010 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25011echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25012 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25013 cat >conftest.$ac_ext <<_ACEOF
25014/* confdefs.h. */
25015_ACEOF
25016cat confdefs.h >>conftest.$ac_ext
25017cat >>conftest.$ac_ext <<_ACEOF
25018/* end confdefs.h. */
25019
25020int
25021main ()
25022{
25023
25024 ;
25025 return 0;
25026}
25027_ACEOF
25028rm -f conftest.$ac_objext conftest$ac_exeext
25029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25030 (eval $ac_link) 2>conftest.er1
25031 ac_status=$?
25032 grep -v '^ *+' conftest.er1 >conftest.err
25033 rm -f conftest.er1
25034 cat conftest.err >&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } &&
dcc1b6ad
VS
25037 { ac_try='test -z "$ac_c_werror_flag"
25038 || test ! -s conftest.err'
a848cd7e
SC
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; } &&
25044 { ac_try='test -s conftest$ac_exeext'
25045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25050 ac_R_nospace=yes
25051else
25052 echo "$as_me: failed program was:" >&5
25053sed 's/^/| /' conftest.$ac_ext >&5
25054
25055ac_R_nospace=no
25056fi
25057rm -f conftest.err conftest.$ac_objext \
25058 conftest$ac_exeext conftest.$ac_ext
25059 if test $ac_R_nospace = yes; then
25060 echo "$as_me:$LINENO: result: no" >&5
25061echo "${ECHO_T}no" >&6
25062 X_LIBS="$X_LIBS -R$x_libraries"
25063 else
25064 LIBS="$ac_xsave_LIBS -R $x_libraries"
25065 cat >conftest.$ac_ext <<_ACEOF
25066/* confdefs.h. */
25067_ACEOF
25068cat confdefs.h >>conftest.$ac_ext
25069cat >>conftest.$ac_ext <<_ACEOF
25070/* end confdefs.h. */
25071
25072int
25073main ()
25074{
25075
25076 ;
25077 return 0;
25078}
25079_ACEOF
25080rm -f conftest.$ac_objext conftest$ac_exeext
25081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082 (eval $ac_link) 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
dcc1b6ad
VS
25089 { ac_try='test -z "$ac_c_werror_flag"
25090 || test ! -s conftest.err'
a848cd7e
SC
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25093 ac_status=$?
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25102 ac_R_space=yes
25103else
25104 echo "$as_me: failed program was:" >&5
25105sed 's/^/| /' conftest.$ac_ext >&5
25106
25107ac_R_space=no
25108fi
25109rm -f conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext conftest.$ac_ext
25111 if test $ac_R_space = yes; then
25112 echo "$as_me:$LINENO: result: yes" >&5
25113echo "${ECHO_T}yes" >&6
25114 X_LIBS="$X_LIBS -R $x_libraries"
25115 else
25116 echo "$as_me:$LINENO: result: neither works" >&5
25117echo "${ECHO_T}neither works" >&6
25118 fi
25119 fi
25120 LIBS=$ac_xsave_LIBS
25121 esac
25122 fi
25123
25124 # Check for system-dependent libraries X programs must link with.
25125 # Do this before checking for the system-independent R6 libraries
25126 # (-lICE), since we may need -lsocket or whatever for X linking.
25127
25128 if test "$ISC" = yes; then
25129 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25130 else
25131 # Martyn Johnson says this is needed for Ultrix, if the X
25132 # libraries were built with DECnet support. And Karl Berry says
25133 # the Alpha needs dnet_stub (dnet does not exist).
25134 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25135 cat >conftest.$ac_ext <<_ACEOF
25136/* confdefs.h. */
25137_ACEOF
25138cat confdefs.h >>conftest.$ac_ext
25139cat >>conftest.$ac_ext <<_ACEOF
25140/* end confdefs.h. */
25141
25142/* Override any gcc2 internal prototype to avoid an error. */
25143#ifdef __cplusplus
25144extern "C"
25145#endif
25146/* We use char because int might match the return type of a gcc2
25147 builtin and then its argument prototype would still apply. */
25148char XOpenDisplay ();
25149int
25150main ()
25151{
25152XOpenDisplay ();
25153 ;
25154 return 0;
25155}
25156_ACEOF
25157rm -f conftest.$ac_objext conftest$ac_exeext
25158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25159 (eval $ac_link) 2>conftest.er1
25160 ac_status=$?
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } &&
dcc1b6ad
VS
25166 { ac_try='test -z "$ac_c_werror_flag"
25167 || test ! -s conftest.err'
a848cd7e
SC
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 :
25180else
25181 echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25185echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25186if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25188else
25189 ac_check_lib_save_LIBS=$LIBS
25190LIBS="-ldnet $LIBS"
25191cat >conftest.$ac_ext <<_ACEOF
25192/* confdefs.h. */
25193_ACEOF
25194cat confdefs.h >>conftest.$ac_ext
25195cat >>conftest.$ac_ext <<_ACEOF
25196/* end confdefs.h. */
25197
25198/* Override any gcc2 internal prototype to avoid an error. */
25199#ifdef __cplusplus
25200extern "C"
25201#endif
25202/* We use char because int might match the return type of a gcc2
25203 builtin and then its argument prototype would still apply. */
25204char dnet_ntoa ();
25205int
25206main ()
25207{
25208dnet_ntoa ();
25209 ;
25210 return 0;
25211}
25212_ACEOF
25213rm -f conftest.$ac_objext conftest$ac_exeext
25214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25215 (eval $ac_link) 2>conftest.er1
25216 ac_status=$?
25217 grep -v '^ *+' conftest.er1 >conftest.err
25218 rm -f conftest.er1
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } &&
dcc1b6ad
VS
25222 { ac_try='test -z "$ac_c_werror_flag"
25223 || test ! -s conftest.err'
a848cd7e
SC
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25226 ac_status=$?
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; } &&
25229 { ac_try='test -s conftest$ac_exeext'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
25235 ac_cv_lib_dnet_dnet_ntoa=yes
25236else
25237 echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240ac_cv_lib_dnet_dnet_ntoa=no
25241fi
25242rm -f conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
25244LIBS=$ac_check_lib_save_LIBS
25245fi
25246echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25247echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25248if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25249 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25250fi
25251
25252 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25253 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25254echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25255if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
25257else
25258 ac_check_lib_save_LIBS=$LIBS
25259LIBS="-ldnet_stub $LIBS"
25260cat >conftest.$ac_ext <<_ACEOF
25261/* confdefs.h. */
25262_ACEOF
25263cat confdefs.h >>conftest.$ac_ext
25264cat >>conftest.$ac_ext <<_ACEOF
25265/* end confdefs.h. */
25266
25267/* Override any gcc2 internal prototype to avoid an error. */
25268#ifdef __cplusplus
25269extern "C"
25270#endif
25271/* We use char because int might match the return type of a gcc2
25272 builtin and then its argument prototype would still apply. */
25273char dnet_ntoa ();
25274int
25275main ()
25276{
25277dnet_ntoa ();
25278 ;
25279 return 0;
25280}
25281_ACEOF
25282rm -f conftest.$ac_objext conftest$ac_exeext
25283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284 (eval $ac_link) 2>conftest.er1
25285 ac_status=$?
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } &&
dcc1b6ad
VS
25291 { ac_try='test -z "$ac_c_werror_flag"
25292 || test ! -s conftest.err'
a848cd7e
SC
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; } &&
25298 { ac_try='test -s conftest$ac_exeext'
25299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
25304 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25305else
25306 echo "$as_me: failed program was:" >&5
25307sed 's/^/| /' conftest.$ac_ext >&5
25308
25309ac_cv_lib_dnet_stub_dnet_ntoa=no
25310fi
25311rm -f conftest.err conftest.$ac_objext \
25312 conftest$ac_exeext conftest.$ac_ext
25313LIBS=$ac_check_lib_save_LIBS
25314fi
25315echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25316echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25317if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25319fi
25320
25321 fi
25322fi
25323rm -f conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
25325 LIBS="$ac_xsave_LIBS"
25326
25327 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25328 # to get the SysV transport functions.
25329 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25330 # needs -lnsl.
25331 # The nsl library prevents programs from opening the X display
25332 # on Irix 5.2, according to T.E. Dickey.
25333 # The functions gethostbyname, getservbyname, and inet_addr are
25334 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25335 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25336echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25337if test "${ac_cv_func_gethostbyname+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25339else
25340 cat >conftest.$ac_ext <<_ACEOF
25341/* confdefs.h. */
25342_ACEOF
25343cat confdefs.h >>conftest.$ac_ext
25344cat >>conftest.$ac_ext <<_ACEOF
25345/* end confdefs.h. */
25346/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25348#define gethostbyname innocuous_gethostbyname
25349
25350/* System header to define __stub macros and hopefully few prototypes,
25351 which can conflict with char gethostbyname (); below.
25352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25353 <limits.h> exists even on freestanding compilers. */
25354
25355#ifdef __STDC__
25356# include <limits.h>
25357#else
25358# include <assert.h>
25359#endif
25360
25361#undef gethostbyname
25362
25363/* Override any gcc2 internal prototype to avoid an error. */
25364#ifdef __cplusplus
25365extern "C"
25366{
25367#endif
25368/* We use char because int might match the return type of a gcc2
25369 builtin and then its argument prototype would still apply. */
25370char gethostbyname ();
25371/* The GNU C library defines this for functions which it implements
25372 to always fail with ENOSYS. Some functions are actually named
25373 something starting with __ and the normal name is an alias. */
25374#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25375choke me
25376#else
25377char (*f) () = gethostbyname;
25378#endif
25379#ifdef __cplusplus
25380}
25381#endif
25382
25383int
25384main ()
25385{
25386return f != gethostbyname;
25387 ;
25388 return 0;
25389}
25390_ACEOF
25391rm -f conftest.$ac_objext conftest$ac_exeext
25392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25393 (eval $ac_link) 2>conftest.er1
25394 ac_status=$?
25395 grep -v '^ *+' conftest.er1 >conftest.err
25396 rm -f conftest.er1
25397 cat conftest.err >&5
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); } &&
dcc1b6ad
VS
25400 { ac_try='test -z "$ac_c_werror_flag"
25401 || test ! -s conftest.err'
a848cd7e
SC
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; } &&
25407 { ac_try='test -s conftest$ac_exeext'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; }; then
25413 ac_cv_func_gethostbyname=yes
25414else
25415 echo "$as_me: failed program was:" >&5
25416sed 's/^/| /' conftest.$ac_ext >&5
25417
25418ac_cv_func_gethostbyname=no
25419fi
25420rm -f conftest.err conftest.$ac_objext \
25421 conftest$ac_exeext conftest.$ac_ext
25422fi
25423echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25424echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25425
25426 if test $ac_cv_func_gethostbyname = no; then
25427 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25428echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25429if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25431else
25432 ac_check_lib_save_LIBS=$LIBS
25433LIBS="-lnsl $LIBS"
25434cat >conftest.$ac_ext <<_ACEOF
25435/* confdefs.h. */
25436_ACEOF
25437cat confdefs.h >>conftest.$ac_ext
25438cat >>conftest.$ac_ext <<_ACEOF
25439/* end confdefs.h. */
25440
25441/* Override any gcc2 internal prototype to avoid an error. */
25442#ifdef __cplusplus
25443extern "C"
25444#endif
25445/* We use char because int might match the return type of a gcc2
25446 builtin and then its argument prototype would still apply. */
25447char gethostbyname ();
25448int
25449main ()
25450{
25451gethostbyname ();
25452 ;
25453 return 0;
25454}
25455_ACEOF
25456rm -f conftest.$ac_objext conftest$ac_exeext
25457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>conftest.er1
25459 ac_status=$?
25460 grep -v '^ *+' conftest.er1 >conftest.err
25461 rm -f conftest.er1
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
dcc1b6ad
VS
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
a848cd7e
SC
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
25478 ac_cv_lib_nsl_gethostbyname=yes
25479else
25480 echo "$as_me: failed program was:" >&5
25481sed 's/^/| /' conftest.$ac_ext >&5
25482
25483ac_cv_lib_nsl_gethostbyname=no
25484fi
25485rm -f conftest.err conftest.$ac_objext \
25486 conftest$ac_exeext conftest.$ac_ext
25487LIBS=$ac_check_lib_save_LIBS
25488fi
25489echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25490echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25491if test $ac_cv_lib_nsl_gethostbyname = yes; then
25492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25493fi
25494
25495 if test $ac_cv_lib_nsl_gethostbyname = no; then
25496 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25497echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25498if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500else
25501 ac_check_lib_save_LIBS=$LIBS
25502LIBS="-lbsd $LIBS"
25503cat >conftest.$ac_ext <<_ACEOF
25504/* confdefs.h. */
25505_ACEOF
25506cat confdefs.h >>conftest.$ac_ext
25507cat >>conftest.$ac_ext <<_ACEOF
25508/* end confdefs.h. */
25509
25510/* Override any gcc2 internal prototype to avoid an error. */
25511#ifdef __cplusplus
25512extern "C"
25513#endif
25514/* We use char because int might match the return type of a gcc2
25515 builtin and then its argument prototype would still apply. */
25516char gethostbyname ();
25517int
25518main ()
25519{
25520gethostbyname ();
25521 ;
25522 return 0;
25523}
25524_ACEOF
25525rm -f conftest.$ac_objext conftest$ac_exeext
25526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527 (eval $ac_link) 2>conftest.er1
25528 ac_status=$?
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
dcc1b6ad
VS
25534 { ac_try='test -z "$ac_c_werror_flag"
25535 || test ! -s conftest.err'
a848cd7e
SC
25536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); }; } &&
25541 { ac_try='test -s conftest$ac_exeext'
25542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543 (eval $ac_try) 2>&5
25544 ac_status=$?
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); }; }; then
25547 ac_cv_lib_bsd_gethostbyname=yes
25548else
25549 echo "$as_me: failed program was:" >&5
25550sed 's/^/| /' conftest.$ac_ext >&5
25551
25552ac_cv_lib_bsd_gethostbyname=no
25553fi
25554rm -f conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
25556LIBS=$ac_check_lib_save_LIBS
25557fi
25558echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25559echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25560if test $ac_cv_lib_bsd_gethostbyname = yes; then
25561 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25562fi
25563
25564 fi
25565 fi
25566
25567 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25568 # socket/setsockopt and other routines are undefined under SCO ODT
25569 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25570 # on later versions), says Simon Leinen: it contains gethostby*
25571 # variants that don't use the name server (or something). -lsocket
25572 # must be given before -lnsl if both are needed. We assume that
25573 # if connect needs -lnsl, so does gethostbyname.
25574 echo "$as_me:$LINENO: checking for connect" >&5
25575echo $ECHO_N "checking for connect... $ECHO_C" >&6
25576if test "${ac_cv_func_connect+set}" = set; then
25577 echo $ECHO_N "(cached) $ECHO_C" >&6
25578else
25579 cat >conftest.$ac_ext <<_ACEOF
25580/* confdefs.h. */
25581_ACEOF
25582cat confdefs.h >>conftest.$ac_ext
25583cat >>conftest.$ac_ext <<_ACEOF
25584/* end confdefs.h. */
25585/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25587#define connect innocuous_connect
25588
25589/* System header to define __stub macros and hopefully few prototypes,
25590 which can conflict with char connect (); below.
25591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25592 <limits.h> exists even on freestanding compilers. */
25593
25594#ifdef __STDC__
25595# include <limits.h>
25596#else
25597# include <assert.h>
25598#endif
25599
25600#undef connect
25601
25602/* Override any gcc2 internal prototype to avoid an error. */
25603#ifdef __cplusplus
25604extern "C"
25605{
25606#endif
25607/* We use char because int might match the return type of a gcc2
25608 builtin and then its argument prototype would still apply. */
25609char connect ();
25610/* The GNU C library defines this for functions which it implements
25611 to always fail with ENOSYS. Some functions are actually named
25612 something starting with __ and the normal name is an alias. */
25613#if defined (__stub_connect) || defined (__stub___connect)
25614choke me
25615#else
25616char (*f) () = connect;
25617#endif
25618#ifdef __cplusplus
25619}
25620#endif
25621
25622int
25623main ()
25624{
25625return f != connect;
25626 ;
25627 return 0;
25628}
25629_ACEOF
25630rm -f conftest.$ac_objext conftest$ac_exeext
25631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25632 (eval $ac_link) 2>conftest.er1
25633 ac_status=$?
25634 grep -v '^ *+' conftest.er1 >conftest.err
25635 rm -f conftest.er1
25636 cat conftest.err >&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } &&
dcc1b6ad
VS
25639 { ac_try='test -z "$ac_c_werror_flag"
25640 || test ! -s conftest.err'
a848cd7e
SC
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; } &&
25646 { ac_try='test -s conftest$ac_exeext'
25647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25648 (eval $ac_try) 2>&5
25649 ac_status=$?
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); }; }; then
25652 ac_cv_func_connect=yes
25653else
25654 echo "$as_me: failed program was:" >&5
25655sed 's/^/| /' conftest.$ac_ext >&5
25656
25657ac_cv_func_connect=no
25658fi
25659rm -f conftest.err conftest.$ac_objext \
25660 conftest$ac_exeext conftest.$ac_ext
25661fi
25662echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25663echo "${ECHO_T}$ac_cv_func_connect" >&6
25664
25665 if test $ac_cv_func_connect = no; then
25666 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25667echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25668if test "${ac_cv_lib_socket_connect+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25670else
25671 ac_check_lib_save_LIBS=$LIBS
25672LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25673cat >conftest.$ac_ext <<_ACEOF
25674/* confdefs.h. */
25675_ACEOF
25676cat confdefs.h >>conftest.$ac_ext
25677cat >>conftest.$ac_ext <<_ACEOF
25678/* end confdefs.h. */
25679
25680/* Override any gcc2 internal prototype to avoid an error. */
25681#ifdef __cplusplus
25682extern "C"
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 connect ();
25687int
25688main ()
25689{
25690connect ();
25691 ;
25692 return 0;
25693}
25694_ACEOF
25695rm -f conftest.$ac_objext conftest$ac_exeext
25696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25697 (eval $ac_link) 2>conftest.er1
25698 ac_status=$?
25699 grep -v '^ *+' conftest.er1 >conftest.err
25700 rm -f conftest.er1
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } &&
dcc1b6ad
VS
25704 { ac_try='test -z "$ac_c_werror_flag"
25705 || test ! -s conftest.err'
a848cd7e
SC
25706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; } &&
25711 { ac_try='test -s conftest$ac_exeext'
25712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25713 (eval $ac_try) 2>&5
25714 ac_status=$?
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); }; }; then
25717 ac_cv_lib_socket_connect=yes
25718else
25719 echo "$as_me: failed program was:" >&5
25720sed 's/^/| /' conftest.$ac_ext >&5
25721
25722ac_cv_lib_socket_connect=no
25723fi
25724rm -f conftest.err conftest.$ac_objext \
25725 conftest$ac_exeext conftest.$ac_ext
25726LIBS=$ac_check_lib_save_LIBS
25727fi
25728echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25729echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25730if test $ac_cv_lib_socket_connect = yes; then
25731 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25732fi
25733
25734 fi
25735
25736 # Guillermo Gomez says -lposix is necessary on A/UX.
25737 echo "$as_me:$LINENO: checking for remove" >&5
25738echo $ECHO_N "checking for remove... $ECHO_C" >&6
25739if test "${ac_cv_func_remove+set}" = set; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25741else
25742 cat >conftest.$ac_ext <<_ACEOF
25743/* confdefs.h. */
25744_ACEOF
25745cat confdefs.h >>conftest.$ac_ext
25746cat >>conftest.$ac_ext <<_ACEOF
25747/* end confdefs.h. */
25748/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25750#define remove innocuous_remove
25751
25752/* System header to define __stub macros and hopefully few prototypes,
25753 which can conflict with char remove (); below.
25754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25755 <limits.h> exists even on freestanding compilers. */
25756
25757#ifdef __STDC__
25758# include <limits.h>
25759#else
25760# include <assert.h>
25761#endif
25762
25763#undef remove
25764
25765/* Override any gcc2 internal prototype to avoid an error. */
25766#ifdef __cplusplus
25767extern "C"
25768{
25769#endif
25770/* We use char because int might match the return type of a gcc2
25771 builtin and then its argument prototype would still apply. */
25772char remove ();
25773/* The GNU C library defines this for functions which it implements
25774 to always fail with ENOSYS. Some functions are actually named
25775 something starting with __ and the normal name is an alias. */
25776#if defined (__stub_remove) || defined (__stub___remove)
25777choke me
25778#else
25779char (*f) () = remove;
25780#endif
25781#ifdef __cplusplus
25782}
25783#endif
25784
25785int
25786main ()
25787{
25788return f != remove;
25789 ;
25790 return 0;
25791}
25792_ACEOF
25793rm -f conftest.$ac_objext conftest$ac_exeext
25794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25795 (eval $ac_link) 2>conftest.er1
25796 ac_status=$?
25797 grep -v '^ *+' conftest.er1 >conftest.err
25798 rm -f conftest.er1
25799 cat conftest.err >&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } &&
dcc1b6ad
VS
25802 { ac_try='test -z "$ac_c_werror_flag"
25803 || test ! -s conftest.err'
a848cd7e
SC
25804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); }; } &&
25809 { ac_try='test -s conftest$ac_exeext'
25810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; }; then
25815 ac_cv_func_remove=yes
25816else
25817 echo "$as_me: failed program was:" >&5
25818sed 's/^/| /' conftest.$ac_ext >&5
25819
25820ac_cv_func_remove=no
25821fi
25822rm -f conftest.err conftest.$ac_objext \
25823 conftest$ac_exeext conftest.$ac_ext
25824fi
25825echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25826echo "${ECHO_T}$ac_cv_func_remove" >&6
25827
25828 if test $ac_cv_func_remove = no; then
25829 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25830echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25831if test "${ac_cv_lib_posix_remove+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25833else
25834 ac_check_lib_save_LIBS=$LIBS
25835LIBS="-lposix $LIBS"
25836cat >conftest.$ac_ext <<_ACEOF
25837/* confdefs.h. */
25838_ACEOF
25839cat confdefs.h >>conftest.$ac_ext
25840cat >>conftest.$ac_ext <<_ACEOF
25841/* end confdefs.h. */
25842
25843/* Override any gcc2 internal prototype to avoid an error. */
25844#ifdef __cplusplus
25845extern "C"
25846#endif
25847/* We use char because int might match the return type of a gcc2
25848 builtin and then its argument prototype would still apply. */
25849char remove ();
25850int
25851main ()
25852{
25853remove ();
25854 ;
25855 return 0;
25856}
25857_ACEOF
25858rm -f conftest.$ac_objext conftest$ac_exeext
25859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25860 (eval $ac_link) 2>conftest.er1
25861 ac_status=$?
25862 grep -v '^ *+' conftest.er1 >conftest.err
25863 rm -f conftest.er1
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } &&
dcc1b6ad
VS
25867 { ac_try='test -z "$ac_c_werror_flag"
25868 || test ! -s conftest.err'
a848cd7e
SC
25869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870 (eval $ac_try) 2>&5
25871 ac_status=$?
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; } &&
25874 { ac_try='test -s conftest$ac_exeext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25880 ac_cv_lib_posix_remove=yes
25881else
25882 echo "$as_me: failed program was:" >&5
25883sed 's/^/| /' conftest.$ac_ext >&5
25884
25885ac_cv_lib_posix_remove=no
25886fi
25887rm -f conftest.err conftest.$ac_objext \
25888 conftest$ac_exeext conftest.$ac_ext
25889LIBS=$ac_check_lib_save_LIBS
25890fi
25891echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25892echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25893if test $ac_cv_lib_posix_remove = yes; then
25894 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25895fi
25896
25897 fi
25898
25899 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25900 echo "$as_me:$LINENO: checking for shmat" >&5
25901echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25902if test "${ac_cv_func_shmat+set}" = set; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25904else
25905 cat >conftest.$ac_ext <<_ACEOF
25906/* confdefs.h. */
25907_ACEOF
25908cat confdefs.h >>conftest.$ac_ext
25909cat >>conftest.$ac_ext <<_ACEOF
25910/* end confdefs.h. */
25911/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25913#define shmat innocuous_shmat
25914
25915/* System header to define __stub macros and hopefully few prototypes,
25916 which can conflict with char shmat (); below.
25917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25918 <limits.h> exists even on freestanding compilers. */
25919
25920#ifdef __STDC__
25921# include <limits.h>
25922#else
25923# include <assert.h>
25924#endif
25925
25926#undef shmat
25927
25928/* Override any gcc2 internal prototype to avoid an error. */
25929#ifdef __cplusplus
25930extern "C"
25931{
25932#endif
25933/* We use char because int might match the return type of a gcc2
25934 builtin and then its argument prototype would still apply. */
25935char shmat ();
25936/* The GNU C library defines this for functions which it implements
25937 to always fail with ENOSYS. Some functions are actually named
25938 something starting with __ and the normal name is an alias. */
25939#if defined (__stub_shmat) || defined (__stub___shmat)
25940choke me
25941#else
25942char (*f) () = shmat;
25943#endif
25944#ifdef __cplusplus
25945}
25946#endif
25947
25948int
25949main ()
25950{
25951return f != shmat;
25952 ;
25953 return 0;
25954}
25955_ACEOF
25956rm -f conftest.$ac_objext conftest$ac_exeext
25957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25958 (eval $ac_link) 2>conftest.er1
25959 ac_status=$?
25960 grep -v '^ *+' conftest.er1 >conftest.err
25961 rm -f conftest.er1
25962 cat conftest.err >&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); } &&
dcc1b6ad
VS
25965 { ac_try='test -z "$ac_c_werror_flag"
25966 || test ! -s conftest.err'
a848cd7e
SC
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; } &&
25972 { ac_try='test -s conftest$ac_exeext'
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 ac_cv_func_shmat=yes
25979else
25980 echo "$as_me: failed program was:" >&5
25981sed 's/^/| /' conftest.$ac_ext >&5
25982
25983ac_cv_func_shmat=no
25984fi
25985rm -f conftest.err conftest.$ac_objext \
25986 conftest$ac_exeext conftest.$ac_ext
25987fi
25988echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25989echo "${ECHO_T}$ac_cv_func_shmat" >&6
25990
25991 if test $ac_cv_func_shmat = no; then
25992 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25993echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25994if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
25996else
25997 ac_check_lib_save_LIBS=$LIBS
25998LIBS="-lipc $LIBS"
25999cat >conftest.$ac_ext <<_ACEOF
26000/* confdefs.h. */
26001_ACEOF
26002cat confdefs.h >>conftest.$ac_ext
26003cat >>conftest.$ac_ext <<_ACEOF
26004/* end confdefs.h. */
26005
26006/* Override any gcc2 internal prototype to avoid an error. */
26007#ifdef __cplusplus
26008extern "C"
26009#endif
26010/* We use char because int might match the return type of a gcc2
26011 builtin and then its argument prototype would still apply. */
26012char shmat ();
26013int
26014main ()
26015{
26016shmat ();
26017 ;
26018 return 0;
26019}
26020_ACEOF
26021rm -f conftest.$ac_objext conftest$ac_exeext
26022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26023 (eval $ac_link) 2>conftest.er1
26024 ac_status=$?
26025 grep -v '^ *+' conftest.er1 >conftest.err
26026 rm -f conftest.er1
26027 cat conftest.err >&5
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); } &&
dcc1b6ad
VS
26030 { ac_try='test -z "$ac_c_werror_flag"
26031 || test ! -s conftest.err'
a848cd7e
SC
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26034 ac_status=$?
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; } &&
26037 { ac_try='test -s conftest$ac_exeext'
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; }; then
26043 ac_cv_lib_ipc_shmat=yes
26044else
26045 echo "$as_me: failed program was:" >&5
26046sed 's/^/| /' conftest.$ac_ext >&5
26047
26048ac_cv_lib_ipc_shmat=no
26049fi
26050rm -f conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
26052LIBS=$ac_check_lib_save_LIBS
26053fi
26054echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26055echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26056if test $ac_cv_lib_ipc_shmat = yes; then
26057 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26058fi
26059
26060 fi
26061 fi
26062
26063 # Check for libraries that X11R6 Xt/Xaw programs need.
26064 ac_save_LDFLAGS=$LDFLAGS
26065 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26066 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26067 # check for ICE first), but we must link in the order -lSM -lICE or
26068 # we get undefined symbols. So assume we have SM if we have ICE.
26069 # These have to be linked with before -lX11, unlike the other
26070 # libraries we check for below, so use a different variable.
26071 # John Interrante, Karl Berry
26072 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26073echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26074if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26075 echo $ECHO_N "(cached) $ECHO_C" >&6
26076else
26077 ac_check_lib_save_LIBS=$LIBS
26078LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26079cat >conftest.$ac_ext <<_ACEOF
26080/* confdefs.h. */
26081_ACEOF
26082cat confdefs.h >>conftest.$ac_ext
26083cat >>conftest.$ac_ext <<_ACEOF
26084/* end confdefs.h. */
26085
26086/* Override any gcc2 internal prototype to avoid an error. */
26087#ifdef __cplusplus
26088extern "C"
26089#endif
26090/* We use char because int might match the return type of a gcc2
26091 builtin and then its argument prototype would still apply. */
26092char IceConnectionNumber ();
26093int
26094main ()
26095{
26096IceConnectionNumber ();
26097 ;
26098 return 0;
26099}
26100_ACEOF
26101rm -f conftest.$ac_objext conftest$ac_exeext
26102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26103 (eval $ac_link) 2>conftest.er1
26104 ac_status=$?
26105 grep -v '^ *+' conftest.er1 >conftest.err
26106 rm -f conftest.er1
26107 cat conftest.err >&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } &&
dcc1b6ad
VS
26110 { ac_try='test -z "$ac_c_werror_flag"
26111 || test ! -s conftest.err'
a848cd7e
SC
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; } &&
26117 { ac_try='test -s conftest$ac_exeext'
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; }; then
26123 ac_cv_lib_ICE_IceConnectionNumber=yes
26124else
26125 echo "$as_me: failed program was:" >&5
26126sed 's/^/| /' conftest.$ac_ext >&5
26127
26128ac_cv_lib_ICE_IceConnectionNumber=no
26129fi
26130rm -f conftest.err conftest.$ac_objext \
26131 conftest$ac_exeext conftest.$ac_ext
26132LIBS=$ac_check_lib_save_LIBS
26133fi
26134echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26135echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26136if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26137 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26138fi
26139
26140 LDFLAGS=$ac_save_LDFLAGS
26141
26142fi
26143
26144
26145 if test "$no_x" = "yes"; then
26146 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26147echo "$as_me: error: X11 not found" >&2;}
26148 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26149 fi
26150
26151 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26152 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26153 AFMINSTALL=afminstall
26154 COMPILED_X_PROGRAM=0
26155
26156 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26157echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26158
26159ac_find_includes=
26160for ac_dir in $SEARCH_INCLUDE /usr/include;
26161 do
26162 if test -f "$ac_dir/Xm/Xm.h"; then
26163 ac_find_includes=$ac_dir
26164 break
26165 fi
26166 done
26167
26168 if test "$ac_find_includes" != "" ; then
26169 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26170echo "${ECHO_T}found in $ac_find_includes" >&6
26171
26172 if test "x$ac_find_includes" = "x/usr/include"; then
26173 ac_path_to_include=""
26174 else
26175 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26176 result=$?
26177 if test $result = 0; then
26178 ac_path_to_include=""
26179 else
26180 ac_path_to_include=" -I$ac_find_includes"
26181 fi
26182 fi
26183
26184 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26185 else
26186 cat >conftest.$ac_ext <<_ACEOF
26187/* confdefs.h. */
26188_ACEOF
26189cat confdefs.h >>conftest.$ac_ext
26190cat >>conftest.$ac_ext <<_ACEOF
26191/* end confdefs.h. */
26192
26193 #include <Xm/Xm.h>
26194
26195int
26196main ()
26197{
26198
26199 int version;
26200 version = xmUseVersion;
26201
26202 ;
26203 return 0;
26204}
26205_ACEOF
26206rm -f conftest.$ac_objext
26207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26208 (eval $ac_compile) 2>conftest.er1
26209 ac_status=$?
26210 grep -v '^ *+' conftest.er1 >conftest.err
26211 rm -f conftest.er1
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } &&
dcc1b6ad
VS
26215 { ac_try='test -z "$ac_c_werror_flag"
26216 || test ! -s conftest.err'
a848cd7e
SC
26217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; } &&
26222 { ac_try='test -s conftest.$ac_objext'
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26225 ac_status=$?
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; }; then
26228
26229 echo "$as_me:$LINENO: result: found in default search path" >&5
26230echo "${ECHO_T}found in default search path" >&6
26231 COMPILED_X_PROGRAM=1
26232
26233else
26234 echo "$as_me: failed program was:" >&5
26235sed 's/^/| /' conftest.$ac_ext >&5
26236
26237
26238 echo "$as_me:$LINENO: result: no" >&5
26239echo "${ECHO_T}no" >&6
26240 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26241echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26242 { (exit 1); exit 1; }; }
26243
26244
26245fi
26246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26247 fi
26248
26249 if test "$COMPILED_X_PROGRAM" = 0; then
26250 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26251echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26252
26253ac_find_libraries=
26254for ac_dir in $SEARCH_LIB /usr/lib;
26255 do
26256 for ac_extension in a so sl dylib; do
26257 if test -f "$ac_dir/libXm.$ac_extension"; then
26258 ac_find_libraries=$ac_dir
26259 break 2
26260 fi
26261 done
26262 done
26263
26264 if test "$ac_find_libraries" != "" ; then
26265 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26266echo "${ECHO_T}found at $ac_find_libraries" >&6
26267
26268
26269 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26270 result=$?
26271 if test $result = 0; then
26272 ac_path_to_link=""
26273 else
26274 ac_path_to_link=" -L$ac_find_libraries"
26275 fi
26276
26277 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26278 else
26279 save_CFLAGS=$CFLAGS
26280 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26281
26282 cat >conftest.$ac_ext <<_ACEOF
26283/* confdefs.h. */
26284_ACEOF
26285cat confdefs.h >>conftest.$ac_ext
26286cat >>conftest.$ac_ext <<_ACEOF
26287/* end confdefs.h. */
26288
26289 #include <Xm/Xm.h>
26290
26291int
26292main ()
26293{
26294
26295 int version;
26296 version = xmUseVersion;
26297
26298 ;
26299 return 0;
26300}
26301_ACEOF
26302rm -f conftest.$ac_objext
26303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26304 (eval $ac_compile) 2>conftest.er1
26305 ac_status=$?
26306 grep -v '^ *+' conftest.er1 >conftest.err
26307 rm -f conftest.er1
26308 cat conftest.err >&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } &&
dcc1b6ad
VS
26311 { ac_try='test -z "$ac_c_werror_flag"
26312 || test ! -s conftest.err'
a848cd7e
SC
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } &&
26318 { ac_try='test -s conftest.$ac_objext'
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324
26325 echo "$as_me:$LINENO: result: found in default search path" >&5
26326echo "${ECHO_T}found in default search path" >&6
26327 COMPILED_X_PROGRAM=1
26328
26329else
26330 echo "$as_me: failed program was:" >&5
26331sed 's/^/| /' conftest.$ac_ext >&5
26332
26333
26334 echo "$as_me:$LINENO: result: no" >&5
26335echo "${ECHO_T}no" >&6
26336 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26337echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26338 { (exit 1); exit 1; }; }
26339
26340
26341fi
26342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343
26344 CFLAGS=$save_CFLAGS
26345 fi
26346 fi
26347
26348 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26349echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26350 libp_link=""
26351 libsm_ice_link=""
26352 libs_found=0
26353 for libp in "" " -lXp"; do
26354 if test "$libs_found" = "0"; then
26355 for libsm_ice in "" " -lSM -lICE"; do
26356 if test "$libs_found" = "0"; then
26357 save_LIBS="$LIBS"
26358 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26359 save_CFLAGS=$CFLAGS
26360 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26361
26362 cat >conftest.$ac_ext <<_ACEOF
26363/* confdefs.h. */
26364_ACEOF
26365cat confdefs.h >>conftest.$ac_ext
26366cat >>conftest.$ac_ext <<_ACEOF
26367/* end confdefs.h. */
26368
26369 #include <Xm/Xm.h>
26370 #include <Xm/List.h>
26371
26372int
26373main ()
26374{
26375
26376 XmString string = NULL;
26377 Widget w = NULL;
26378 int position = 0;
26379 XmListAddItem(w, string, position);
26380
26381 ;
26382 return 0;
26383}
26384_ACEOF
26385rm -f conftest.$ac_objext conftest$ac_exeext
26386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26387 (eval $ac_link) 2>conftest.er1
26388 ac_status=$?
26389 grep -v '^ *+' conftest.er1 >conftest.err
26390 rm -f conftest.er1
26391 cat conftest.err >&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); } &&
dcc1b6ad
VS
26394 { ac_try='test -z "$ac_c_werror_flag"
26395 || test ! -s conftest.err'
a848cd7e
SC
26396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); }; } &&
26401 { ac_try='test -s conftest$ac_exeext'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; }; then
26407
26408 libp_link="$libp"
26409 libsm_ice_link="$libsm_ice"
26410 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26411echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26412 libs_found=1
26413
26414else
26415 echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
26418
26419
26420fi
26421rm -f conftest.err conftest.$ac_objext \
26422 conftest$ac_exeext conftest.$ac_ext
26423
26424 LIBS="$save_LIBS"
26425 CFLAGS=$save_CFLAGS
26426 fi
26427 done
26428 fi
26429 done
26430
26431 if test "$libs_found" = "0"; then
26432 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26433echo "${ECHO_T}can't find the right libraries" >&6
26434 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26435echo "$as_me: error: can't link a simple motif program" >&2;}
26436 { (exit 1); exit 1; }; }
26437 fi
26438
26439 save_CFLAGS=$CFLAGS
26440 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26441 echo "$as_me:$LINENO: checking for Motif 2" >&5
26442echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26443 cat >conftest.$ac_ext <<_ACEOF
26444/* confdefs.h. */
26445_ACEOF
26446cat confdefs.h >>conftest.$ac_ext
26447cat >>conftest.$ac_ext <<_ACEOF
26448/* end confdefs.h. */
26449
26450 #include <Xm/Xm.h>
26451
26452int
26453main ()
26454{
26455
26456 #if XmVersion < 2000
26457 #error "Not Motif 2"
26458 #endif
26459
26460 ;
26461 return 0;
26462}
26463_ACEOF
26464rm -f conftest.$ac_objext
26465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26466 (eval $ac_compile) 2>conftest.er1
26467 ac_status=$?
26468 grep -v '^ *+' conftest.er1 >conftest.err
26469 rm -f conftest.er1
26470 cat conftest.err >&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } &&
dcc1b6ad
VS
26473 { ac_try='test -z "$ac_c_werror_flag"
26474 || test ! -s conftest.err'
a848cd7e
SC
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; } &&
26480 { ac_try='test -s conftest.$ac_objext'
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; }; then
26486
26487 cat >>confdefs.h <<\_ACEOF
26488#define __WXMOTIF20__ 1
26489_ACEOF
26490
26491 echo "$as_me:$LINENO: result: found" >&5
26492echo "${ECHO_T}found" >&6
26493
26494else
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
26497
26498
26499 cat >>confdefs.h <<\_ACEOF
26500#define __WXMOTIF20__ 0
26501_ACEOF
26502
26503 echo "$as_me:$LINENO: result: not found" >&5
26504echo "${ECHO_T}not found" >&6
26505
26506fi
26507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26508 CFLAGS=$save_CFLAGS
26509
26510 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26511 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26512 TOOLKIT=MOTIF
26513 GUIDIST=MOTIF_DIST
26514 fi
26515
26516 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26517 if test "$wxUSE_LIBXPM" = "sys"; then
26518 echo "$as_me:$LINENO: checking for Xpm library" >&5
26519echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26520
26521ac_find_libraries=
26522for ac_dir in $SEARCH_LIB /usr/lib;
26523 do
26524 for ac_extension in a so sl dylib; do
26525 if test -f "$ac_dir/libXpm.$ac_extension"; then
26526 ac_find_libraries=$ac_dir
26527 break 2
26528 fi
26529 done
26530 done
26531
26532 if test "$ac_find_libraries" != "" ; then
26533
26534 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26535 result=$?
26536 if test $result = 0; then
26537 ac_path_to_link=""
26538 else
26539 ac_path_to_link=" -L$ac_find_libraries"
26540 fi
26541
26542 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26543 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26544echo "${ECHO_T}found at $ac_find_libraries" >&6
26545
26546 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26547echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26548if test "${wx_cv_x11_xpm_h+set}" = set; then
26549 echo $ECHO_N "(cached) $ECHO_C" >&6
26550else
26551
26552 save_CFLAGS=$CFLAGS
26553 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26554
26555 cat >conftest.$ac_ext <<_ACEOF
26556/* confdefs.h. */
26557_ACEOF
26558cat confdefs.h >>conftest.$ac_ext
26559cat >>conftest.$ac_ext <<_ACEOF
26560/* end confdefs.h. */
26561
26562 #include <X11/xpm.h>
26563
26564int
26565main ()
26566{
26567
26568 int version;
26569 version = XpmLibraryVersion();
26570
26571 ;
26572 return 0;
26573}
26574_ACEOF
26575rm -f conftest.$ac_objext
26576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26577 (eval $ac_compile) 2>conftest.er1
26578 ac_status=$?
26579 grep -v '^ *+' conftest.er1 >conftest.err
26580 rm -f conftest.er1
26581 cat conftest.err >&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); } &&
dcc1b6ad
VS
26584 { ac_try='test -z "$ac_c_werror_flag"
26585 || test ! -s conftest.err'
a848cd7e
SC
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; } &&
26591 { ac_try='test -s conftest.$ac_objext'
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26594 ac_status=$?
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26597 wx_cv_x11_xpm_h=yes
26598else
26599 echo "$as_me: failed program was:" >&5
26600sed 's/^/| /' conftest.$ac_ext >&5
26601
26602wx_cv_x11_xpm_h=no
26603
26604fi
26605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26606
26607 CFLAGS=$save_CFLAGS
26608
26609
26610fi
26611echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26612echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26613
26614 if test $wx_cv_x11_xpm_h = "yes"; then
26615 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26616 cat >>confdefs.h <<\_ACEOF
26617#define wxHAVE_LIB_XPM 1
26618_ACEOF
26619
26620 else
26621 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26622echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26623 fi
26624 fi
26625
26626 fi
26627
26628 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26629echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26630if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
26632else
26633 ac_check_lib_save_LIBS=$LIBS
26634LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26635cat >conftest.$ac_ext <<_ACEOF
26636/* confdefs.h. */
26637_ACEOF
26638cat confdefs.h >>conftest.$ac_ext
26639cat >>conftest.$ac_ext <<_ACEOF
26640/* end confdefs.h. */
26641
26642/* Override any gcc2 internal prototype to avoid an error. */
26643#ifdef __cplusplus
26644extern "C"
26645#endif
26646/* We use char because int might match the return type of a gcc2
26647 builtin and then its argument prototype would still apply. */
26648char XShapeQueryExtension ();
26649int
26650main ()
26651{
26652XShapeQueryExtension ();
26653 ;
26654 return 0;
26655}
26656_ACEOF
26657rm -f conftest.$ac_objext conftest$ac_exeext
26658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26659 (eval $ac_link) 2>conftest.er1
26660 ac_status=$?
26661 grep -v '^ *+' conftest.er1 >conftest.err
26662 rm -f conftest.er1
26663 cat conftest.err >&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } &&
dcc1b6ad
VS
26666 { ac_try='test -z "$ac_c_werror_flag"
26667 || test ! -s conftest.err'
a848cd7e
SC
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26670 ac_status=$?
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; } &&
26673 { ac_try='test -s conftest$ac_exeext'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_cv_lib_Xext_XShapeQueryExtension=yes
26680else
26681 echo "$as_me: failed program was:" >&5
26682sed 's/^/| /' conftest.$ac_ext >&5
26683
26684ac_cv_lib_Xext_XShapeQueryExtension=no
26685fi
26686rm -f conftest.err conftest.$ac_objext \
26687 conftest$ac_exeext conftest.$ac_ext
26688LIBS=$ac_check_lib_save_LIBS
26689fi
26690echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26691echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26692if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26693
26694 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26695 wxHAVE_XEXT_LIB=1
26696
26697fi
26698
26699
26700 if test "$wxHAVE_XEXT_LIB" = 1; then
26701 save_CFLAGS="$CFLAGS"
26702 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26703
26704 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26705echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26706 cat >conftest.$ac_ext <<_ACEOF
26707/* confdefs.h. */
26708_ACEOF
26709cat confdefs.h >>conftest.$ac_ext
26710cat >>conftest.$ac_ext <<_ACEOF
26711/* end confdefs.h. */
26712
26713 #include <X11/Xlib.h>
26714 #include <X11/extensions/shape.h>
26715
26716int
26717main ()
26718{
26719
26720 int dummy1, dummy2;
26721 XShapeQueryExtension((Display*)NULL,
26722 (int*)NULL, (int*)NULL);
26723
26724 ;
26725 return 0;
26726}
26727_ACEOF
26728rm -f conftest.$ac_objext
26729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26730 (eval $ac_compile) 2>conftest.er1
26731 ac_status=$?
26732 grep -v '^ *+' conftest.er1 >conftest.err
26733 rm -f conftest.er1
26734 cat conftest.err >&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } &&
dcc1b6ad
VS
26737 { ac_try='test -z "$ac_c_werror_flag"
26738 || test ! -s conftest.err'
a848cd7e
SC
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26741 ac_status=$?
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); }; } &&
26744 { ac_try='test -s conftest.$ac_objext'
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26747 ac_status=$?
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; }; then
26750
26751 cat >>confdefs.h <<\_ACEOF
26752#define HAVE_XSHAPE 1
26753_ACEOF
26754
26755 echo "$as_me:$LINENO: result: found" >&5
26756echo "${ECHO_T}found" >&6
26757
26758else
26759 echo "$as_me: failed program was:" >&5
26760sed 's/^/| /' conftest.$ac_ext >&5
26761
26762
26763 echo "$as_me:$LINENO: result: not found" >&5
26764echo "${ECHO_T}not found" >&6
26765
26766fi
26767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26768 CFLAGS="$save_CFLAGS"
26769
26770 fi
26771 fi
26772
26773 if test "$wxUSE_MAC" = 1; then
26774 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26775echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26776 if test "$GCC" = yes; then
26777 echo "$as_me:$LINENO: result: gcc" >&5
26778echo "${ECHO_T}gcc" >&6
26779 CPPFLAGS_PASCAL="-fpascal-strings"
26780 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26781 echo "$as_me:$LINENO: result: xlc" >&5
26782echo "${ECHO_T}xlc" >&6
26783 CPPFLAGS_PASCAL="-qmacpstr"
26784 else
26785 echo "$as_me:$LINENO: result: none" >&5
26786echo "${ECHO_T}none" >&6
26787 fi
26788
26789 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26790
26791 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26792 TOOLKIT=MAC
26793 GUIDIST=MACX_DIST
26794 WXBASEPORT="_carbon"
26795 fi
26796
26797 if test "$wxUSE_COCOA" = 1; then
26798 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26799 TOOLKIT=COCOA
26800 GUIDIST=COCOA_DIST
26801 fi
26802
26803 if test "$wxUSE_PM" = 1; then
26804 TOOLKIT=PM
26805 GUIDIST=GTK_DIST
26806 fi
26807
26808 if test "$TOOLKIT" = "PM" ; then
26809 TOOLKIT_DIR="os2"
26810 else
26811 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26812 fi
26813
26814 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26815
26816 if test "$wxUSE_UNIVERSAL" = "yes"; then
26817 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26818
26819 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26820 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26821
26822 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26823 if test "$wxUSE_X11" = 1; then
26824 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26825 else
26826 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26827 fi
26828 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26829 WIDGET_SET=univ
26830 else
26831 ALL_OBJECTS="\$(GUIOBJS)"
26832 ALL_SOURCES="\$(ALL_SOURCES)"
26833 ALL_HEADERS="\$(ALL_HEADERS)"
26834 fi
26835
26836 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26837
26838 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26839 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26840 fi
26841
26842 if test "$wxUSE_HTML" = "yes"; then
26843 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26844 fi
26845
26846 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26847 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26848 fi
26849 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26850 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26851 fi
26852 if test "$wxUSE_LIBPNG" = "builtin" ; then
26853 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26854 fi
26855
26856 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26857 DISTDIR="wx\$(TOOLKIT)"
26858else
26859 USE_GUI=0
26860
26861 TOOLKIT_DIR="base"
26862
26863 if test "$USE_WIN32" = 1 ; then
26864 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26865 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26866
26867 TOOLKIT="MSW"
26868 else
26869 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26870 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26871 fi
26872
26873 ALL_SOURCES="\$(ALL_SOURCES)"
26874 ALL_HEADERS="\$(ALL_HEADERS)"
26875
26876 PORT_FILES="\${top_srcdir}/src/files.lst"
26877
26878 GUIDIST="BASE_DIST"
26879 DISTDIR="wxBase"
26880fi
26881
26882
26883
26884
26885IODBC_C_SRC=""
26886
26887
26888if test "$TOOLKIT" != "MSW" ; then
26889
26890 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26891
26892 if test "${ac_cv_header_sql_h+set}" = set; then
26893 echo "$as_me:$LINENO: checking for sql.h" >&5
26894echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26895if test "${ac_cv_header_sql_h+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26897fi
26898echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26899echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26900else
26901 # Is the header compilable?
26902echo "$as_me:$LINENO: checking sql.h usability" >&5
26903echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26904cat >conftest.$ac_ext <<_ACEOF
26905/* confdefs.h. */
26906_ACEOF
26907cat confdefs.h >>conftest.$ac_ext
26908cat >>conftest.$ac_ext <<_ACEOF
26909/* end confdefs.h. */
26910$ac_includes_default
26911#include <sql.h>
26912_ACEOF
26913rm -f conftest.$ac_objext
26914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26915 (eval $ac_compile) 2>conftest.er1
26916 ac_status=$?
26917 grep -v '^ *+' conftest.er1 >conftest.err
26918 rm -f conftest.er1
26919 cat conftest.err >&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } &&
dcc1b6ad
VS
26922 { ac_try='test -z "$ac_c_werror_flag"
26923 || test ! -s conftest.err'
a848cd7e
SC
26924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; } &&
26929 { ac_try='test -s conftest.$ac_objext'
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935 ac_header_compiler=yes
26936else
26937 echo "$as_me: failed program was:" >&5
26938sed 's/^/| /' conftest.$ac_ext >&5
26939
26940ac_header_compiler=no
26941fi
26942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26944echo "${ECHO_T}$ac_header_compiler" >&6
26945
26946# Is the header present?
26947echo "$as_me:$LINENO: checking sql.h presence" >&5
26948echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26949cat >conftest.$ac_ext <<_ACEOF
26950/* confdefs.h. */
26951_ACEOF
26952cat confdefs.h >>conftest.$ac_ext
26953cat >>conftest.$ac_ext <<_ACEOF
26954/* end confdefs.h. */
26955#include <sql.h>
26956_ACEOF
26957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } >/dev/null; then
26965 if test -s conftest.err; then
26966 ac_cpp_err=$ac_c_preproc_warn_flag
26967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26968 else
26969 ac_cpp_err=
26970 fi
26971else
26972 ac_cpp_err=yes
26973fi
26974if test -z "$ac_cpp_err"; then
26975 ac_header_preproc=yes
26976else
26977 echo "$as_me: failed program was:" >&5
26978sed 's/^/| /' conftest.$ac_ext >&5
26979
26980 ac_header_preproc=no
26981fi
26982rm -f conftest.err conftest.$ac_ext
26983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26984echo "${ECHO_T}$ac_header_preproc" >&6
26985
26986# So? What about this header?
26987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26988 yes:no: )
26989 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26990echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26992echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26993 ac_header_preproc=yes
26994 ;;
26995 no:yes:* )
26996 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26997echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26998 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26999echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27001echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27002 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27003echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
27004 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27005echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
27006 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27007echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
27008 (
27009 cat <<\_ASBOX
27010## ----------------------------------------- ##
27011## Report this to wx-dev@lists.wxwindows.org ##
27012## ----------------------------------------- ##
27013_ASBOX
27014 ) |
27015 sed "s/^/$as_me: WARNING: /" >&2
27016 ;;
27017esac
27018echo "$as_me:$LINENO: checking for sql.h" >&5
27019echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27020if test "${ac_cv_header_sql_h+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27022else
27023 ac_cv_header_sql_h=$ac_header_preproc
27024fi
27025echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27026echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27027
27028fi
27029if test $ac_cv_header_sql_h = yes; then
27030 found_sql_h=1
27031fi
27032
27033
27034 if test "x$found_sql_h" = "x1" ; then
27035 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27036echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27037if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27039else
27040 ac_check_lib_save_LIBS=$LIBS
27041LIBS="-liodbc $LIBS"
27042cat >conftest.$ac_ext <<_ACEOF
27043/* confdefs.h. */
27044_ACEOF
27045cat confdefs.h >>conftest.$ac_ext
27046cat >>conftest.$ac_ext <<_ACEOF
27047/* end confdefs.h. */
27048
27049/* Override any gcc2 internal prototype to avoid an error. */
27050#ifdef __cplusplus
27051extern "C"
27052#endif
27053/* We use char because int might match the return type of a gcc2
27054 builtin and then its argument prototype would still apply. */
27055char SQLAllocEnv ();
27056int
27057main ()
27058{
27059SQLAllocEnv ();
27060 ;
27061 return 0;
27062}
27063_ACEOF
27064rm -f conftest.$ac_objext conftest$ac_exeext
27065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27066 (eval $ac_link) 2>conftest.er1
27067 ac_status=$?
27068 grep -v '^ *+' conftest.er1 >conftest.err
27069 rm -f conftest.er1
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
dcc1b6ad
VS
27073 { ac_try='test -z "$ac_c_werror_flag"
27074 || test ! -s conftest.err'
a848cd7e
SC
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; } &&
27080 { ac_try='test -s conftest$ac_exeext'
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
27086 ac_cv_lib_iodbc_SQLAllocEnv=yes
27087else
27088 echo "$as_me: failed program was:" >&5
27089sed 's/^/| /' conftest.$ac_ext >&5
27090
27091ac_cv_lib_iodbc_SQLAllocEnv=no
27092fi
27093rm -f conftest.err conftest.$ac_objext \
27094 conftest$ac_exeext conftest.$ac_ext
27095LIBS=$ac_check_lib_save_LIBS
27096fi
27097echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27098echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27099if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27100 ODBC_LINK=" -liodbc"
27101else
27102
27103 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27104echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27105if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27107else
27108 ac_check_lib_save_LIBS=$LIBS
27109LIBS="-lunixodbc $LIBS"
27110cat >conftest.$ac_ext <<_ACEOF
27111/* confdefs.h. */
27112_ACEOF
27113cat confdefs.h >>conftest.$ac_ext
27114cat >>conftest.$ac_ext <<_ACEOF
27115/* end confdefs.h. */
27116
27117/* Override any gcc2 internal prototype to avoid an error. */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121/* We use char because int might match the return type of a gcc2
27122 builtin and then its argument prototype would still apply. */
27123char SQLAllocEnv ();
27124int
27125main ()
27126{
27127SQLAllocEnv ();
27128 ;
27129 return 0;
27130}
27131_ACEOF
27132rm -f conftest.$ac_objext conftest$ac_exeext
27133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27134 (eval $ac_link) 2>conftest.er1
27135 ac_status=$?
27136 grep -v '^ *+' conftest.er1 >conftest.err
27137 rm -f conftest.er1
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } &&
dcc1b6ad
VS
27141 { ac_try='test -z "$ac_c_werror_flag"
27142 || test ! -s conftest.err'
a848cd7e
SC
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; } &&
27148 { ac_try='test -s conftest$ac_exeext'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27151 ac_status=$?
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27155else
27156 echo "$as_me: failed program was:" >&5
27157sed 's/^/| /' conftest.$ac_ext >&5
27158
27159ac_cv_lib_unixodbc_SQLAllocEnv=no
27160fi
27161rm -f conftest.err conftest.$ac_objext \
27162 conftest$ac_exeext conftest.$ac_ext
27163LIBS=$ac_check_lib_save_LIBS
27164fi
27165echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27166echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27167if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27168 ODBC_LINK=" -lunixodbc"
27169else
27170
27171 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27172echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27173if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27175else
27176 ac_check_lib_save_LIBS=$LIBS
27177LIBS="-lodbc $LIBS"
27178cat >conftest.$ac_ext <<_ACEOF
27179/* confdefs.h. */
27180_ACEOF
27181cat confdefs.h >>conftest.$ac_ext
27182cat >>conftest.$ac_ext <<_ACEOF
27183/* end confdefs.h. */
27184
27185/* Override any gcc2 internal prototype to avoid an error. */
27186#ifdef __cplusplus
27187extern "C"
27188#endif
27189/* We use char because int might match the return type of a gcc2
27190 builtin and then its argument prototype would still apply. */
27191char SQLAllocEnv ();
27192int
27193main ()
27194{
27195SQLAllocEnv ();
27196 ;
27197 return 0;
27198}
27199_ACEOF
27200rm -f conftest.$ac_objext conftest$ac_exeext
27201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27202 (eval $ac_link) 2>conftest.er1
27203 ac_status=$?
27204 grep -v '^ *+' conftest.er1 >conftest.err
27205 rm -f conftest.er1
27206 cat conftest.err >&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); } &&
dcc1b6ad
VS
27209 { ac_try='test -z "$ac_c_werror_flag"
27210 || test ! -s conftest.err'
a848cd7e
SC
27211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212 (eval $ac_try) 2>&5
27213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; } &&
27216 { ac_try='test -s conftest$ac_exeext'
27217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; }; then
27222 ac_cv_lib_odbc_SQLAllocEnv=yes
27223else
27224 echo "$as_me: failed program was:" >&5
27225sed 's/^/| /' conftest.$ac_ext >&5
27226
27227ac_cv_lib_odbc_SQLAllocEnv=no
27228fi
27229rm -f conftest.err conftest.$ac_objext \
27230 conftest$ac_exeext conftest.$ac_ext
27231LIBS=$ac_check_lib_save_LIBS
27232fi
27233echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27234echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27235if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27236 ODBC_LINK=" -lodbc"
27237fi
27238
27239
27240fi
27241
27242
27243fi
27244
27245 fi
27246 if test "x$ODBC_LINK" = "x" ; then
27247 if test "$wxUSE_ODBC" = "sys" ; then
27248 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27249echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27250 { (exit 1); exit 1; }; }
27251 else
27252 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27253echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27254 wxUSE_ODBC=builtin
27255 fi
27256 else
27257 wxUSE_ODBC=sys
27258 fi
27259 fi
27260 if test "$wxUSE_ODBC" != "no" ; then
27261 cat >>confdefs.h <<\_ACEOF
27262#define wxUSE_ODBC 1
27263_ACEOF
27264
27265 if test "$wxUSE_ODBC" = "builtin" ; then
27266 cat >>confdefs.h <<\_ACEOF
27267#define wxUSE_BUILTIN_IODBC 1
27268_ACEOF
27269
27270 fi
27271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27272
27273 WXODBCFLAG="-D_IODBC_"
27274 fi
27275fi
27276
27277if test "$wxUSE_REGEX" = "builtin" ; then
27278 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27279fi
27280if test "$wxUSE_ZLIB" = "builtin" ; then
27281 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27282fi
27283
01cb68df 27284
a848cd7e
SC
27285if test "$wxUSE_DISPLAY" = "yes"; then
27286 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27287 echo "$as_me:$LINENO: checking for Xinerama" >&5
27288echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27289
27290ac_find_libraries=
27291for ac_dir in $SEARCH_LIB /usr/lib;
27292 do
27293 for ac_extension in a so sl dylib; do
27294 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27295 ac_find_libraries=$ac_dir
27296 break 2
27297 fi
27298 done
27299 done
27300
27301 if test "$ac_find_libraries" != "" ; then
27302
27303 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27304 result=$?
27305 if test $result = 0; then
27306 ac_path_to_link=""
27307 else
27308 ac_path_to_link=" -L$ac_find_libraries"
27309 fi
27310
27311 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27312 LDFLAGS="$LDFLAGS $ac_path_to_link"
27313 fi
27314 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27315 echo "$as_me:$LINENO: result: yes" >&5
27316echo "${ECHO_T}yes" >&6
27317
27318 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27319echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27320
27321ac_find_libraries=
27322for ac_dir in $SEARCH_LIB /usr/lib;
27323 do
27324 for ac_extension in a so sl dylib; do
27325 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27326 ac_find_libraries=$ac_dir
27327 break 2
27328 fi
27329 done
27330 done
27331
27332 if test "$ac_find_libraries" != "" ; then
27333 echo "$as_me:$LINENO: result: yes" >&5
27334echo "${ECHO_T}yes" >&6
27335
27336for ac_header in X11/extensions/xf86vmode.h
27337do
27338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27339echo "$as_me:$LINENO: checking for $ac_header" >&5
27340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27341if eval "test \"\${$as_ac_Header+set}\" = set"; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27343else
27344 cat >conftest.$ac_ext <<_ACEOF
27345/* confdefs.h. */
27346_ACEOF
27347cat confdefs.h >>conftest.$ac_ext
27348cat >>conftest.$ac_ext <<_ACEOF
27349/* end confdefs.h. */
27350
27351 #if HAVE_X11_XLIB_H
27352 #include <X11/Xlib.h>
27353 #endif
27354
27355
27356#include <$ac_header>
27357_ACEOF
27358rm -f conftest.$ac_objext
27359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27360 (eval $ac_compile) 2>conftest.er1
27361 ac_status=$?
27362 grep -v '^ *+' conftest.er1 >conftest.err
27363 rm -f conftest.er1
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } &&
dcc1b6ad
VS
27367 { ac_try='test -z "$ac_c_werror_flag"
27368 || test ! -s conftest.err'
a848cd7e
SC
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest.$ac_objext'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 eval "$as_ac_Header=yes"
27381else
27382 echo "$as_me: failed program was:" >&5
27383sed 's/^/| /' conftest.$ac_ext >&5
27384
27385eval "$as_ac_Header=no"
27386fi
27387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27388fi
27389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27391if test `eval echo '${'$as_ac_Header'}'` = yes; then
27392 cat >>confdefs.h <<_ACEOF
27393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27394_ACEOF
27395
27396 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27397
27398fi
27399
27400done
27401
27402 else
27403 echo "$as_me:$LINENO: result: no" >&5
27404echo "${ECHO_T}no" >&6
27405 fi
27406
27407 else
27408 echo "$as_me:$LINENO: result: no" >&5
27409echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27410 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27411echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27412 wxUSE_DISPLAY="no"
27413 fi
01cb68df
RG
27414 elif test "$wxUSE_MSW" = 1; then
27415
27416
27417for ac_header in multimon.h ddraw.h
27418do
27419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27420if eval "test \"\${$as_ac_Header+set}\" = set"; then
27421 echo "$as_me:$LINENO: checking for $ac_header" >&5
27422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27423if eval "test \"\${$as_ac_Header+set}\" = set"; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425fi
27426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27428else
27429 # Is the header compilable?
27430echo "$as_me:$LINENO: checking $ac_header usability" >&5
27431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27432cat >conftest.$ac_ext <<_ACEOF
27433/* confdefs.h. */
27434_ACEOF
27435cat confdefs.h >>conftest.$ac_ext
27436cat >>conftest.$ac_ext <<_ACEOF
27437/* end confdefs.h. */
27438$ac_includes_default
27439#include <$ac_header>
27440_ACEOF
27441rm -f conftest.$ac_objext
27442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27443 (eval $ac_compile) 2>conftest.er1
27444 ac_status=$?
27445 grep -v '^ *+' conftest.er1 >conftest.err
27446 rm -f conftest.er1
27447 cat conftest.err >&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); } &&
dcc1b6ad
VS
27450 { ac_try='test -z "$ac_c_werror_flag"
27451 || test ! -s conftest.err'
01cb68df
RG
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; } &&
27457 { ac_try='test -s conftest.$ac_objext'
27458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459 (eval $ac_try) 2>&5
27460 ac_status=$?
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); }; }; then
27463 ac_header_compiler=yes
27464else
27465 echo "$as_me: failed program was:" >&5
27466sed 's/^/| /' conftest.$ac_ext >&5
27467
27468ac_header_compiler=no
27469fi
27470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27472echo "${ECHO_T}$ac_header_compiler" >&6
27473
27474# Is the header present?
27475echo "$as_me:$LINENO: checking $ac_header presence" >&5
27476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27477cat >conftest.$ac_ext <<_ACEOF
27478/* confdefs.h. */
27479_ACEOF
27480cat confdefs.h >>conftest.$ac_ext
27481cat >>conftest.$ac_ext <<_ACEOF
27482/* end confdefs.h. */
27483#include <$ac_header>
27484_ACEOF
27485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27487 ac_status=$?
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } >/dev/null; then
27493 if test -s conftest.err; then
27494 ac_cpp_err=$ac_c_preproc_warn_flag
27495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27496 else
27497 ac_cpp_err=
27498 fi
27499else
27500 ac_cpp_err=yes
27501fi
27502if test -z "$ac_cpp_err"; then
27503 ac_header_preproc=yes
27504else
27505 echo "$as_me: failed program was:" >&5
27506sed 's/^/| /' conftest.$ac_ext >&5
27507
27508 ac_header_preproc=no
27509fi
27510rm -f conftest.err conftest.$ac_ext
27511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27512echo "${ECHO_T}$ac_header_preproc" >&6
27513
27514# So? What about this header?
27515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27516 yes:no: )
27517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27521 ac_header_preproc=yes
27522 ;;
27523 no:yes:* )
27524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27536 (
27537 cat <<\_ASBOX
27538## ----------------------------------------- ##
27539## Report this to wx-dev@lists.wxwindows.org ##
27540## ----------------------------------------- ##
27541_ASBOX
27542 ) |
27543 sed "s/^/$as_me: WARNING: /" >&2
27544 ;;
27545esac
27546echo "$as_me:$LINENO: checking for $ac_header" >&5
27547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27548if eval "test \"\${$as_ac_Header+set}\" = set"; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27550else
27551 eval "$as_ac_Header=\$ac_header_preproc"
27552fi
27553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27555
27556fi
27557if test `eval echo '${'$as_ac_Header'}'` = yes; then
27558 cat >>confdefs.h <<_ACEOF
27559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27560_ACEOF
27561
27562else
27563
27564 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27565 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27566echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27567
27568fi
27569
27570done
27571
a848cd7e
SC
27572 fi
27573fi
27574
27575
27576USE_OPENGL=0
27577if test "$wxUSE_OPENGL" = "yes"; then
27578 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27579 OPENGL_LIBS="-framework OpenGL -framework AGL"
27580 elif test "$wxUSE_MSW" = 1; then
27581 OPENGL_LIBS="-lopengl32 -lglu32"
27582 else
27583
27584
27585ac_find_includes=
27586for ac_dir in $SEARCH_INCLUDE /usr/include;
27587 do
27588 if test -f "$ac_dir/GL/gl.h"; then
27589 ac_find_includes=$ac_dir
27590 break
27591 fi
27592 done
27593
27594 if test "$ac_find_includes" != "" ; then
27595 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27596echo "${ECHO_T}found in $ac_find_includes" >&6
27597
27598 if test "x$ac_find_includes" = "x/usr/include"; then
27599 ac_path_to_include=""
27600 else
27601 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27602 result=$?
27603 if test $result = 0; then
27604 ac_path_to_include=""
27605 else
27606 ac_path_to_include=" -I$ac_find_includes"
27607 fi
27608 fi
27609
27610 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27611 fi
27612
27613 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27614 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27615echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27616if test "${ac_cv_header_GL_gl_h+set}" = set; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27618fi
27619echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27620echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27621else
27622 # Is the header compilable?
27623echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27624echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27625cat >conftest.$ac_ext <<_ACEOF
27626/* confdefs.h. */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
27630/* end confdefs.h. */
27631$ac_includes_default
27632#include <GL/gl.h>
27633_ACEOF
27634rm -f conftest.$ac_objext
27635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27636 (eval $ac_compile) 2>conftest.er1
27637 ac_status=$?
27638 grep -v '^ *+' conftest.er1 >conftest.err
27639 rm -f conftest.er1
27640 cat conftest.err >&5
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); } &&
dcc1b6ad
VS
27643 { ac_try='test -z "$ac_c_werror_flag"
27644 || test ! -s conftest.err'
a848cd7e
SC
27645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27646 (eval $ac_try) 2>&5
27647 ac_status=$?
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; } &&
27650 { ac_try='test -s conftest.$ac_objext'
27651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 ac_header_compiler=yes
27657else
27658 echo "$as_me: failed program was:" >&5
27659sed 's/^/| /' conftest.$ac_ext >&5
27660
27661ac_header_compiler=no
27662fi
27663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27664echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27665echo "${ECHO_T}$ac_header_compiler" >&6
27666
27667# Is the header present?
27668echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27669echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27670cat >conftest.$ac_ext <<_ACEOF
27671/* confdefs.h. */
27672_ACEOF
27673cat confdefs.h >>conftest.$ac_ext
27674cat >>conftest.$ac_ext <<_ACEOF
27675/* end confdefs.h. */
27676#include <GL/gl.h>
27677_ACEOF
27678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27680 ac_status=$?
27681 grep -v '^ *+' conftest.er1 >conftest.err
27682 rm -f conftest.er1
27683 cat conftest.err >&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); } >/dev/null; then
27686 if test -s conftest.err; then
27687 ac_cpp_err=$ac_c_preproc_warn_flag
27688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27689 else
27690 ac_cpp_err=
27691 fi
27692else
27693 ac_cpp_err=yes
27694fi
27695if test -z "$ac_cpp_err"; then
27696 ac_header_preproc=yes
27697else
27698 echo "$as_me: failed program was:" >&5
27699sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 ac_header_preproc=no
27702fi
27703rm -f conftest.err conftest.$ac_ext
27704echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27705echo "${ECHO_T}$ac_header_preproc" >&6
27706
27707# So? What about this header?
27708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27709 yes:no: )
27710 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27711echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27712 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27713echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27714 ac_header_preproc=yes
27715 ;;
27716 no:yes:* )
27717 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27718echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27719 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27720echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27721 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27722echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27723 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27724echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27725 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27726echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27727 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27728echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27729 (
27730 cat <<\_ASBOX
27731## ----------------------------------------- ##
27732## Report this to wx-dev@lists.wxwindows.org ##
27733## ----------------------------------------- ##
27734_ASBOX
27735 ) |
27736 sed "s/^/$as_me: WARNING: /" >&2
27737 ;;
27738esac
27739echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27740echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27741if test "${ac_cv_header_GL_gl_h+set}" = set; then
27742 echo $ECHO_N "(cached) $ECHO_C" >&6
27743else
27744 ac_cv_header_GL_gl_h=$ac_header_preproc
27745fi
27746echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27747echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27748
27749fi
27750if test $ac_cv_header_GL_gl_h = yes; then
27751
27752 found_gl=0
27753
27754 echo "$as_me:$LINENO: checking for -lGL" >&5
27755echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27756
27757ac_find_libraries=
27758for ac_dir in $SEARCH_LIB /usr/lib;
27759 do
27760 for ac_extension in a so sl dylib; do
27761 if test -f "$ac_dir/libGL.$ac_extension"; then
27762 ac_find_libraries=$ac_dir
27763 break 2
27764 fi
27765 done
27766 done
27767
27768 if test "$ac_find_libraries" != "" ; then
27769
27770 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27771 result=$?
27772 if test $result = 0; then
27773 ac_path_to_link=""
27774 else
27775 ac_path_to_link=" -L$ac_find_libraries"
27776 fi
27777
27778 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27779 LDFLAGS_GL="$ac_path_to_link"
27780 fi
27781
27782
27783ac_find_libraries=
27784for ac_dir in $SEARCH_LIB /usr/lib;
27785 do
27786 for ac_extension in a so sl dylib; do
27787 if test -f "$ac_dir/libGLU.$ac_extension"; then
27788 ac_find_libraries=$ac_dir
27789 break 2
27790 fi
27791 done
27792 done
27793
27794 if test "$ac_find_libraries" != "" ; then
27795
27796 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27797 result=$?
27798 if test $result = 0; then
27799 ac_path_to_link=""
27800 else
27801 ac_path_to_link=" -L$ac_find_libraries"
27802 fi
27803
27804 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27805 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27806 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27807 fi
27808
27809 found_gl=1
27810 OPENGL_LIBS="-lGL -lGLU"
27811 echo "$as_me:$LINENO: result: yes" >&5
27812echo "${ECHO_T}yes" >&6
27813 fi
27814 fi
27815
27816 if test "$found_gl" != 1; then
27817 echo "$as_me:$LINENO: result: no" >&5
27818echo "${ECHO_T}no" >&6
27819 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27820echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27821
27822ac_find_libraries=
27823for ac_dir in $SEARCH_LIB /usr/lib;
27824 do
27825 for ac_extension in a so sl dylib; do
27826 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27827 ac_find_libraries=$ac_dir
27828 break 2
27829 fi
27830 done
27831 done
27832
27833 if test "$ac_find_libraries" != "" ; then
27834
27835 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27836 result=$?
27837 if test $result = 0; then
27838 ac_path_to_link=""
27839 else
27840 ac_path_to_link=" -L$ac_find_libraries"
27841 fi
27842
27843 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27844 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27845 echo "$as_me:$LINENO: result: yes" >&5
27846echo "${ECHO_T}yes" >&6
27847 else
27848 echo "$as_me:$LINENO: result: no" >&5
27849echo "${ECHO_T}no" >&6
27850 fi
27851 fi
27852
27853fi
27854
27855
27856
27857 if test "x$OPENGL_LIBS" = "x"; then
27858 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27859echo "$as_me: error: OpenGL libraries not available" >&2;}
27860 { (exit 1); exit 1; }; }
27861 fi
27862 fi
27863
27864 if test "$wxUSE_OPENGL" = "yes"; then
27865 USE_OPENGL=1
27866 cat >>confdefs.h <<\_ACEOF
27867#define wxUSE_OPENGL 1
27868_ACEOF
27869
27870 cat >>confdefs.h <<\_ACEOF
27871#define wxUSE_GLCANVAS 1
27872_ACEOF
27873
27874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27875 fi
27876fi
27877
27878if test -z "$TOOLKIT_VPATH" ; then
27879 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27880fi
27881
27882if test -n "$TOOLKIT" ; then
27883 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27884fi
27885
27886UNICODE=0
27887lib_unicode_suffix=
27888if test "$wxUSE_UNICODE" = "yes"; then
27889 lib_unicode_suffix=u
27890 UNICODE=1
27891fi
27892
27893lib_debug_suffix=
27894DEBUG_FLAG=0
27895if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27896 lib_debug_suffix=d
27897 DEBUG_FLAG=1
27898fi
27899
27900DEBUG_INFO=0
27901if test "$wxUSE_DEBUG_INFO" = "yes"; then
27902 DEBUG_INFO=1
27903fi
27904
27905WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27906
27907TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27908TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27909
27910if test "$cross_compiling" = "yes"; then
27911 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27912 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27913 HOST_SUFFIX="-${host_alias}"
27914fi
27915
27916WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27917WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27918WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27919WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27920
27921WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27922WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27923
27924WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27925WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27926WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27927WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27928
27929case "${host}" in
27930 *-*-cygwin* | *-*-mingw32* )
27931 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27932 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27933 ;;
27934
27935 *-*-darwin* )
27936
27937 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27938 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27939
27940 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27941 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27942 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27943 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27944
27945 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27946 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27947 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27948 fi
27949 ;;
27950esac
27951
27952WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27953WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27954
27955WXCONFIG_LIBS="-l${WX_LIBRARY}"
27956WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27957
27958if test "$wxUSE_OPENGL" = "yes"; then
27959 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27960 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27961fi
27962
27963
27964
27965if test "$wxUSE_SHARED" = "yes"; then
27966 case "${host}" in
27967 *-pc-msdosdjgpp )
27968 wxUSE_SHARED=no
27969 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27970echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27971 ;;
27972 esac
27973fi
27974
27975SHARED=0
27976if test "$wxUSE_SHARED" = "yes"; then
27977 SHARED=1
27978
27979
27980 found_versioning=no
27981
27982
27983 if test $found_versioning = no ; then
27984 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27985echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27986if test "${wx_cv_version_script+set}" = set; then
27987 echo $ECHO_N "(cached) $ECHO_C" >&6
27988else
27989
27990 echo "VER_1 { *; };" >conftest.sym
27991 echo "int main() { return 0; }" >conftest.cpp
27992
27993 if { ac_try='
27994 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27995 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; } ; then
28001 if test -s conftest.stderr ; then
28002 wx_cv_version_script=no
28003 else
28004 wx_cv_version_script=yes
28005 fi
28006 else
28007 wx_cv_version_script=no
28008 fi
28009 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28010
28011fi
28012echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28013echo "${ECHO_T}$wx_cv_version_script" >&6
28014 if test $wx_cv_version_script = yes ; then
28015 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28016 fi
28017 fi
28018
28019
28020 case "${host}" in
28021 *-*-linux* | *-*-gnu* )
28022 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28023 ;;
28024
28025 *-*-solaris2* )
28026 if test "$GCC" = yes ; then
28027 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28028
28029 saveLdflags="$LDFLAGS"
28030 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28031 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28032echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28033 cat >conftest.$ac_ext <<_ACEOF
28034/* confdefs.h. */
28035_ACEOF
28036cat confdefs.h >>conftest.$ac_ext
28037cat >>conftest.$ac_ext <<_ACEOF
28038/* end confdefs.h. */
28039
28040int
28041main ()
28042{
28043
28044 ;
28045 return 0;
28046}
28047_ACEOF
28048rm -f conftest.$ac_objext conftest$ac_exeext
28049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28050 (eval $ac_link) 2>conftest.er1
28051 ac_status=$?
28052 grep -v '^ *+' conftest.er1 >conftest.err
28053 rm -f conftest.er1
28054 cat conftest.err >&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); } &&
dcc1b6ad
VS
28057 { ac_try='test -z "$ac_c_werror_flag"
28058 || test ! -s conftest.err'
a848cd7e
SC
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; } &&
28064 { ac_try='test -s conftest$ac_exeext'
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; }; then
28070
28071 echo "$as_me:$LINENO: result: yes" >&5
28072echo "${ECHO_T}yes" >&6
28073 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28074
28075else
28076 echo "$as_me: failed program was:" >&5
28077sed 's/^/| /' conftest.$ac_ext >&5
28078
28079
28080 echo "$as_me:$LINENO: result: no" >&5
28081echo "${ECHO_T}no" >&6
28082 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28083echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28084 LDFLAGS="$saveLdflags -Wl,-R,/"
28085 cat >conftest.$ac_ext <<_ACEOF
28086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
28091
28092int
28093main ()
28094{
28095
28096 ;
28097 return 0;
28098}
28099_ACEOF
28100rm -f conftest.$ac_objext conftest$ac_exeext
28101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28102 (eval $ac_link) 2>conftest.er1
28103 ac_status=$?
28104 grep -v '^ *+' conftest.er1 >conftest.err
28105 rm -f conftest.er1
28106 cat conftest.err >&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } &&
dcc1b6ad
VS
28109 { ac_try='test -z "$ac_c_werror_flag"
28110 || test ! -s conftest.err'
a848cd7e
SC
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest$ac_exeext'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122
28123 echo "$as_me:$LINENO: result: yes" >&5
28124echo "${ECHO_T}yes" >&6
28125 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28126else
28127 echo "$as_me: failed program was:" >&5
28128sed 's/^/| /' conftest.$ac_ext >&5
28129
28130
28131 echo "$as_me:$LINENO: result: no" >&5
28132echo "${ECHO_T}no" >&6
28133
28134fi
28135rm -f conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
28137
28138fi
28139rm -f conftest.err conftest.$ac_objext \
28140 conftest$ac_exeext conftest.$ac_ext
28141 LDFLAGS="$saveLdflags"
28142 else
28143 SHARED_LD="${CXX} -G -o"
28144 PIC_FLAG="-KPIC"
28145 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28146 fi
28147 ;;
28148
28149 powerpc-*-darwin* )
28150 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28151 cat <<EOF >change-install-names
28152#!/bin/sh
28153libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28154inst_cmd="install_name_tool "
28155for i in \${libnames} ; do
28156 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28157done
28158\${inst_cmd} \${3}
28159EOF
28160 chmod +x change-install-names
28161 ;;
28162
28163 *-*-cygwin* | *-*-mingw32* )
28164 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28165 ;;
28166
28167 esac
28168
28169 if test "x$WX_TARGET_LIBRARY" = "x"; then
28170 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28171 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28172 fi
28173
28174 WX_TARGET_LIBRARY_TYPE="so"
28175 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28176fi
28177
28178if test "$wxUSE_SHARED" = "no"; then
28179
28180 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28181 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28182 fi
28183
28184 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28185 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28186 fi
28187
28188 if test "$wxUSE_OPENGL" = "yes"; then
28189 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28190 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28191 else
28192 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28193 fi
28194
28195 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28196 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28197
28198 WX_TARGET_LIBRARY_TYPE="a"
28199 INSTALL_LIBRARY='$(INSTALL_DATA)'
28200
28201 STATIC_FLAG="yes"
28202else
28203 STATIC_FLAG="no"
28204fi
28205
28206if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28207 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28208 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28209 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28210
28211 # Extract the first word of "Rez", so it can be a program name with args.
28212set dummy Rez; ac_word=$2
28213echo "$as_me:$LINENO: checking for $ac_word" >&5
28214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28215if test "${ac_cv_prog_RESCOMP+set}" = set; then
28216 echo $ECHO_N "(cached) $ECHO_C" >&6
28217else
28218 if test -n "$RESCOMP"; then
28219 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28220else
28221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28222for as_dir in $PATH
28223do
28224 IFS=$as_save_IFS
28225 test -z "$as_dir" && as_dir=.
28226 for ac_exec_ext in '' $ac_executable_extensions; do
28227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28228 ac_cv_prog_RESCOMP="Rez"
28229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28230 break 2
28231 fi
28232done
28233done
28234
28235 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28236fi
28237fi
28238RESCOMP=$ac_cv_prog_RESCOMP
28239if test -n "$RESCOMP"; then
28240 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28241echo "${ECHO_T}$RESCOMP" >&6
28242else
28243 echo "$as_me:$LINENO: result: no" >&5
28244echo "${ECHO_T}no" >&6
28245fi
28246
28247 # Extract the first word of "DeRez", so it can be a program name with args.
28248set dummy DeRez; ac_word=$2
28249echo "$as_me:$LINENO: checking for $ac_word" >&5
28250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28251if test "${ac_cv_prog_DEREZ+set}" = set; then
28252 echo $ECHO_N "(cached) $ECHO_C" >&6
28253else
28254 if test -n "$DEREZ"; then
28255 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28256else
28257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28258for as_dir in $PATH
28259do
28260 IFS=$as_save_IFS
28261 test -z "$as_dir" && as_dir=.
28262 for ac_exec_ext in '' $ac_executable_extensions; do
28263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28264 ac_cv_prog_DEREZ="DeRez"
28265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28266 break 2
28267 fi
28268done
28269done
28270
28271 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28272fi
28273fi
28274DEREZ=$ac_cv_prog_DEREZ
28275if test -n "$DEREZ"; then
28276 echo "$as_me:$LINENO: result: $DEREZ" >&5
28277echo "${ECHO_T}$DEREZ" >&6
28278else
28279 echo "$as_me:$LINENO: result: no" >&5
28280echo "${ECHO_T}no" >&6
28281fi
28282
28283 # Extract the first word of "SetFile", so it can be a program name with args.
28284set dummy SetFile; ac_word=$2
28285echo "$as_me:$LINENO: checking for $ac_word" >&5
28286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28287if test "${ac_cv_prog_SETFILE+set}" = set; then
28288 echo $ECHO_N "(cached) $ECHO_C" >&6
28289else
28290 if test -n "$SETFILE"; then
28291 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28292else
28293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28294for as_dir in $PATH
28295do
28296 IFS=$as_save_IFS
28297 test -z "$as_dir" && as_dir=.
28298 for ac_exec_ext in '' $ac_executable_extensions; do
28299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28300 ac_cv_prog_SETFILE="SetFile"
28301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28302 break 2
28303 fi
28304done
28305done
28306
28307 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28308fi
28309fi
28310SETFILE=$ac_cv_prog_SETFILE
28311if test -n "$SETFILE"; then
28312 echo "$as_me:$LINENO: result: $SETFILE" >&5
28313echo "${ECHO_T}$SETFILE" >&6
28314else
28315 echo "$as_me:$LINENO: result: no" >&5
28316echo "${ECHO_T}no" >&6
28317fi
28318
28319
28320 MACSETFILE="\$(SETFILE)"
28321
28322 if test "$wxUSE_MAC" = 1; then
28323 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28324
28325 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28326 else
28327 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28328 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28329 fi
28330else
28331 MACSETFILE="@#"
28332 MACRESWXCONFIG="#"
28333
28334 if test "$wxUSE_PM" = 1; then
28335 MACRESCOMP="emxbind -ep"
28336 else
28337 MACRESCOMP="@#"
28338 fi
28339fi
28340
28341
28342
28343echo "$as_me:$LINENO: checking for mode_t" >&5
28344echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28345if test "${ac_cv_type_mode_t+set}" = set; then
28346 echo $ECHO_N "(cached) $ECHO_C" >&6
28347else
28348 cat >conftest.$ac_ext <<_ACEOF
28349/* confdefs.h. */
28350_ACEOF
28351cat confdefs.h >>conftest.$ac_ext
28352cat >>conftest.$ac_ext <<_ACEOF
28353/* end confdefs.h. */
28354$ac_includes_default
28355int
28356main ()
28357{
28358if ((mode_t *) 0)
28359 return 0;
28360if (sizeof (mode_t))
28361 return 0;
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext
28367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28368 (eval $ac_compile) 2>conftest.er1
28369 ac_status=$?
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } &&
dcc1b6ad
VS
28375 { ac_try='test -z "$ac_c_werror_flag"
28376 || test ! -s conftest.err'
a848cd7e
SC
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest.$ac_objext'
28383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 ac_cv_type_mode_t=yes
28389else
28390 echo "$as_me: failed program was:" >&5
28391sed 's/^/| /' conftest.$ac_ext >&5
28392
28393ac_cv_type_mode_t=no
28394fi
28395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28396fi
28397echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28398echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28399if test $ac_cv_type_mode_t = yes; then
28400 :
28401else
28402
28403cat >>confdefs.h <<_ACEOF
28404#define mode_t int
28405_ACEOF
28406
28407fi
28408
28409echo "$as_me:$LINENO: checking for off_t" >&5
28410echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28411if test "${ac_cv_type_off_t+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 cat >conftest.$ac_ext <<_ACEOF
28415/* confdefs.h. */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h. */
28420$ac_includes_default
28421int
28422main ()
28423{
28424if ((off_t *) 0)
28425 return 0;
28426if (sizeof (off_t))
28427 return 0;
28428 ;
28429 return 0;
28430}
28431_ACEOF
28432rm -f conftest.$ac_objext
28433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28434 (eval $ac_compile) 2>conftest.er1
28435 ac_status=$?
28436 grep -v '^ *+' conftest.er1 >conftest.err
28437 rm -f conftest.er1
28438 cat conftest.err >&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); } &&
dcc1b6ad
VS
28441 { ac_try='test -z "$ac_c_werror_flag"
28442 || test ! -s conftest.err'
a848cd7e
SC
28443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28444 (eval $ac_try) 2>&5
28445 ac_status=$?
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); }; } &&
28448 { ac_try='test -s conftest.$ac_objext'
28449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); }; }; then
28454 ac_cv_type_off_t=yes
28455else
28456 echo "$as_me: failed program was:" >&5
28457sed 's/^/| /' conftest.$ac_ext >&5
28458
28459ac_cv_type_off_t=no
28460fi
28461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28462fi
28463echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28464echo "${ECHO_T}$ac_cv_type_off_t" >&6
28465if test $ac_cv_type_off_t = yes; then
28466 :
28467else
28468
28469cat >>confdefs.h <<_ACEOF
28470#define off_t long
28471_ACEOF
28472
28473fi
28474
28475echo "$as_me:$LINENO: checking for pid_t" >&5
28476echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28477if test "${ac_cv_type_pid_t+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28479else
28480 cat >conftest.$ac_ext <<_ACEOF
28481/* confdefs.h. */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h. */
28486$ac_includes_default
28487int
28488main ()
28489{
28490if ((pid_t *) 0)
28491 return 0;
28492if (sizeof (pid_t))
28493 return 0;
28494 ;
28495 return 0;
28496}
28497_ACEOF
28498rm -f conftest.$ac_objext
28499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28500 (eval $ac_compile) 2>conftest.er1
28501 ac_status=$?
28502 grep -v '^ *+' conftest.er1 >conftest.err
28503 rm -f conftest.er1
28504 cat conftest.err >&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } &&
dcc1b6ad
VS
28507 { ac_try='test -z "$ac_c_werror_flag"
28508 || test ! -s conftest.err'
a848cd7e
SC
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest.$ac_objext'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 ac_cv_type_pid_t=yes
28521else
28522 echo "$as_me: failed program was:" >&5
28523sed 's/^/| /' conftest.$ac_ext >&5
28524
28525ac_cv_type_pid_t=no
28526fi
28527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28528fi
28529echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28530echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28531if test $ac_cv_type_pid_t = yes; then
28532 :
28533else
28534
28535cat >>confdefs.h <<_ACEOF
28536#define pid_t int
28537_ACEOF
28538
28539fi
28540
28541echo "$as_me:$LINENO: checking for size_t" >&5
28542echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28543if test "${ac_cv_type_size_t+set}" = set; then
28544 echo $ECHO_N "(cached) $ECHO_C" >&6
28545else
28546 cat >conftest.$ac_ext <<_ACEOF
28547/* confdefs.h. */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h. */
28552$ac_includes_default
28553int
28554main ()
28555{
28556if ((size_t *) 0)
28557 return 0;
28558if (sizeof (size_t))
28559 return 0;
28560 ;
28561 return 0;
28562}
28563_ACEOF
28564rm -f conftest.$ac_objext
28565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28566 (eval $ac_compile) 2>conftest.er1
28567 ac_status=$?
28568 grep -v '^ *+' conftest.er1 >conftest.err
28569 rm -f conftest.er1
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
dcc1b6ad
VS
28573 { ac_try='test -z "$ac_c_werror_flag"
28574 || test ! -s conftest.err'
a848cd7e
SC
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; } &&
28580 { ac_try='test -s conftest.$ac_objext'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28583 ac_status=$?
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; }; then
28586 ac_cv_type_size_t=yes
28587else
28588 echo "$as_me: failed program was:" >&5
28589sed 's/^/| /' conftest.$ac_ext >&5
28590
28591ac_cv_type_size_t=no
28592fi
28593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28594fi
28595echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28596echo "${ECHO_T}$ac_cv_type_size_t" >&6
28597if test $ac_cv_type_size_t = yes; then
28598 :
28599else
28600
28601cat >>confdefs.h <<_ACEOF
28602#define size_t unsigned
28603_ACEOF
28604
28605fi
28606
28607echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28608echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28609if test "${ac_cv_type_uid_t+set}" = set; then
28610 echo $ECHO_N "(cached) $ECHO_C" >&6
28611else
28612 cat >conftest.$ac_ext <<_ACEOF
28613/* confdefs.h. */
28614_ACEOF
28615cat confdefs.h >>conftest.$ac_ext
28616cat >>conftest.$ac_ext <<_ACEOF
28617/* end confdefs.h. */
28618#include <sys/types.h>
28619
28620_ACEOF
28621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28622 $EGREP "uid_t" >/dev/null 2>&1; then
28623 ac_cv_type_uid_t=yes
28624else
28625 ac_cv_type_uid_t=no
28626fi
28627rm -f conftest*
28628
28629fi
28630echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28631echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28632if test $ac_cv_type_uid_t = no; then
28633
28634cat >>confdefs.h <<\_ACEOF
28635#define uid_t int
28636_ACEOF
28637
28638
28639cat >>confdefs.h <<\_ACEOF
28640#define gid_t int
28641_ACEOF
28642
28643fi
28644
28645
28646
28647
28648ac_ext=cc
28649ac_cpp='$CXXCPP $CPPFLAGS'
28650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28653
28654echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28655echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28656if test "${wx_cv_size_t_is_uint+set}" = set; then
28657 echo $ECHO_N "(cached) $ECHO_C" >&6
28658else
28659
28660 cat >conftest.$ac_ext <<_ACEOF
28661/* confdefs.h. */
28662_ACEOF
28663cat confdefs.h >>conftest.$ac_ext
28664cat >>conftest.$ac_ext <<_ACEOF
28665/* end confdefs.h. */
28666#include <stddef.h>
28667int
28668main ()
28669{
28670
28671 return 0; }
28672
28673 struct Foo { void foo(size_t); void foo(unsigned int); };
28674
28675 int bar() {
28676
28677 ;
28678 return 0;
28679}
28680_ACEOF
28681rm -f conftest.$ac_objext
28682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683 (eval $ac_compile) 2>conftest.er1
28684 ac_status=$?
28685 grep -v '^ *+' conftest.er1 >conftest.err
28686 rm -f conftest.er1
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
dcc1b6ad
VS
28690 { ac_try='test -z "$ac_cxx_werror_flag"
28691 || test ! -s conftest.err'
a848cd7e
SC
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 wx_cv_size_t_is_uint=no
28704else
28705 echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708wx_cv_size_t_is_uint=yes
28709
28710fi
28711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28712
28713
28714fi
28715echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28716echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28717
28718if test "$wx_cv_size_t_is_uint" = "yes"; then
28719 cat >>confdefs.h <<\_ACEOF
28720#define wxSIZE_T_IS_UINT 1
28721_ACEOF
28722
28723else
28724 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28725echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28726if test "${wx_cv_size_t_is_ulong+set}" = set; then
28727 echo $ECHO_N "(cached) $ECHO_C" >&6
28728else
28729 cat >conftest.$ac_ext <<_ACEOF
28730/* confdefs.h. */
28731_ACEOF
28732cat confdefs.h >>conftest.$ac_ext
28733cat >>conftest.$ac_ext <<_ACEOF
28734/* end confdefs.h. */
28735#include <stddef.h>
28736int
28737main ()
28738{
28739
28740 return 0; }
28741
28742 struct Foo { void foo(size_t); void foo(unsigned long); };
28743
28744 int bar() {
28745
28746 ;
28747 return 0;
28748}
28749_ACEOF
28750rm -f conftest.$ac_objext
28751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28752 (eval $ac_compile) 2>conftest.er1
28753 ac_status=$?
28754 grep -v '^ *+' conftest.er1 >conftest.err
28755 rm -f conftest.er1
28756 cat conftest.err >&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); } &&
dcc1b6ad
VS
28759 { ac_try='test -z "$ac_cxx_werror_flag"
28760 || test ! -s conftest.err'
a848cd7e
SC
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; } &&
28766 { ac_try='test -s conftest.$ac_objext'
28767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768 (eval $ac_try) 2>&5
28769 ac_status=$?
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; }; then
28772 wx_cv_size_t_is_ulong=no
28773else
28774 echo "$as_me: failed program was:" >&5
28775sed 's/^/| /' conftest.$ac_ext >&5
28776
28777wx_cv_size_t_is_ulong=yes
28778
28779fi
28780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28781
28782fi
28783echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28784echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28785
28786 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28787 cat >>confdefs.h <<\_ACEOF
28788#define wxSIZE_T_IS_ULONG 1
28789_ACEOF
28790
28791 fi
28792fi
28793
28794ac_ext=c
28795ac_cpp='$CPP $CPPFLAGS'
28796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28798ac_compiler_gnu=$ac_cv_c_compiler_gnu
28799
28800
28801
28802echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28803echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28804if test "${wx_cv_struct_pw_gecos+set}" = set; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28806else
28807
28808 cat >conftest.$ac_ext <<_ACEOF
28809/* confdefs.h. */
28810_ACEOF
28811cat confdefs.h >>conftest.$ac_ext
28812cat >>conftest.$ac_ext <<_ACEOF
28813/* end confdefs.h. */
28814#include <pwd.h>
28815int
28816main ()
28817{
28818
28819 char *p;
28820 struct passwd *pw;
28821 p = pw->pw_gecos;
28822
28823 ;
28824 return 0;
28825}
28826_ACEOF
28827rm -f conftest.$ac_objext
28828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28829 (eval $ac_compile) 2>conftest.er1
28830 ac_status=$?
28831 grep -v '^ *+' conftest.er1 >conftest.err
28832 rm -f conftest.er1
28833 cat conftest.err >&5
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); } &&
dcc1b6ad
VS
28836 { ac_try='test -z "$ac_c_werror_flag"
28837 || test ! -s conftest.err'
a848cd7e
SC
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; } &&
28843 { ac_try='test -s conftest.$ac_objext'
28844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28845 (eval $ac_try) 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
28849
28850 wx_cv_struct_pw_gecos=yes
28851
28852else
28853 echo "$as_me: failed program was:" >&5
28854sed 's/^/| /' conftest.$ac_ext >&5
28855
28856
28857 wx_cv_struct_pw_gecos=no
28858
28859
28860fi
28861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28862
28863
28864fi
28865echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28866echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28867
28868if test "$wx_cv_struct_pw_gecos" = "yes"; then
28869 cat >>confdefs.h <<\_ACEOF
28870#define HAVE_PW_GECOS 1
28871_ACEOF
28872
28873fi
28874
28875
28876if test "$wx_cv_sizeof_wchar_t" != "0"; then
28877 cat >>confdefs.h <<\_ACEOF
28878#define wxUSE_WCHAR_T 1
28879_ACEOF
28880
28881
28882 WCSLEN_FOUND=0
28883 WCHAR_LINK=
28884
28885for ac_func in wcslen
28886do
28887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28888echo "$as_me:$LINENO: checking for $ac_func" >&5
28889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28890if eval "test \"\${$as_ac_var+set}\" = set"; then
28891 echo $ECHO_N "(cached) $ECHO_C" >&6
28892else
28893 cat >conftest.$ac_ext <<_ACEOF
28894/* confdefs.h. */
28895_ACEOF
28896cat confdefs.h >>conftest.$ac_ext
28897cat >>conftest.$ac_ext <<_ACEOF
28898/* end confdefs.h. */
28899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28901#define $ac_func innocuous_$ac_func
28902
28903/* System header to define __stub macros and hopefully few prototypes,
28904 which can conflict with char $ac_func (); below.
28905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28906 <limits.h> exists even on freestanding compilers. */
28907
28908#ifdef __STDC__
28909# include <limits.h>
28910#else
28911# include <assert.h>
28912#endif
28913
28914#undef $ac_func
28915
28916/* Override any gcc2 internal prototype to avoid an error. */
28917#ifdef __cplusplus
28918extern "C"
28919{
28920#endif
28921/* We use char because int might match the return type of a gcc2
28922 builtin and then its argument prototype would still apply. */
28923char $ac_func ();
28924/* The GNU C library defines this for functions which it implements
28925 to always fail with ENOSYS. Some functions are actually named
28926 something starting with __ and the normal name is an alias. */
28927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28928choke me
28929#else
28930char (*f) () = $ac_func;
28931#endif
28932#ifdef __cplusplus
28933}
28934#endif
28935
28936int
28937main ()
28938{
28939return f != $ac_func;
28940 ;
28941 return 0;
28942}
28943_ACEOF
28944rm -f conftest.$ac_objext conftest$ac_exeext
28945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28946 (eval $ac_link) 2>conftest.er1
28947 ac_status=$?
28948 grep -v '^ *+' conftest.er1 >conftest.err
28949 rm -f conftest.er1
28950 cat conftest.err >&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } &&
dcc1b6ad
VS
28953 { ac_try='test -z "$ac_c_werror_flag"
28954 || test ! -s conftest.err'
a848cd7e
SC
28955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28956 (eval $ac_try) 2>&5
28957 ac_status=$?
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; } &&
28960 { ac_try='test -s conftest$ac_exeext'
28961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962 (eval $ac_try) 2>&5
28963 ac_status=$?
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); }; }; then
28966 eval "$as_ac_var=yes"
28967else
28968 echo "$as_me: failed program was:" >&5
28969sed 's/^/| /' conftest.$ac_ext >&5
28970
28971eval "$as_ac_var=no"
28972fi
28973rm -f conftest.err conftest.$ac_objext \
28974 conftest$ac_exeext conftest.$ac_ext
28975fi
28976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28978if test `eval echo '${'$as_ac_var'}'` = yes; then
28979 cat >>confdefs.h <<_ACEOF
28980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28981_ACEOF
28982 WCSLEN_FOUND=1
28983fi
28984done
28985
28986
28987 if test "$WCSLEN_FOUND" = 0; then
28988 if test "$TOOLKIT" = "MSW"; then
28989 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28990echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28991if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28993else
28994 ac_check_lib_save_LIBS=$LIBS
28995LIBS="-lmsvcrt $LIBS"
28996cat >conftest.$ac_ext <<_ACEOF
28997/* confdefs.h. */
28998_ACEOF
28999cat confdefs.h >>conftest.$ac_ext
29000cat >>conftest.$ac_ext <<_ACEOF
29001/* end confdefs.h. */
29002
29003/* Override any gcc2 internal prototype to avoid an error. */
29004#ifdef __cplusplus
29005extern "C"
29006#endif
29007/* We use char because int might match the return type of a gcc2
29008 builtin and then its argument prototype would still apply. */
29009char wcslen ();
29010int
29011main ()
29012{
29013wcslen ();
29014 ;
29015 return 0;
29016}
29017_ACEOF
29018rm -f conftest.$ac_objext conftest$ac_exeext
29019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29020 (eval $ac_link) 2>conftest.er1
29021 ac_status=$?
29022 grep -v '^ *+' conftest.er1 >conftest.err
29023 rm -f conftest.er1
29024 cat conftest.err >&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); } &&
dcc1b6ad
VS
29027 { ac_try='test -z "$ac_c_werror_flag"
29028 || test ! -s conftest.err'
a848cd7e
SC
29029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29030 (eval $ac_try) 2>&5
29031 ac_status=$?
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); }; } &&
29034 { ac_try='test -s conftest$ac_exeext'
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; }; then
29040 ac_cv_lib_msvcrt_wcslen=yes
29041else
29042 echo "$as_me: failed program was:" >&5
29043sed 's/^/| /' conftest.$ac_ext >&5
29044
29045ac_cv_lib_msvcrt_wcslen=no
29046fi
29047rm -f conftest.err conftest.$ac_objext \
29048 conftest$ac_exeext conftest.$ac_ext
29049LIBS=$ac_check_lib_save_LIBS
29050fi
29051echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29052echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29053if test $ac_cv_lib_msvcrt_wcslen = yes; then
29054 WCHAR_OK=1
29055fi
29056
29057 else
29058 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29059echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29060if test "${ac_cv_lib_w_wcslen+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
29063 ac_check_lib_save_LIBS=$LIBS
29064LIBS="-lw $LIBS"
29065cat >conftest.$ac_ext <<_ACEOF
29066/* confdefs.h. */
29067_ACEOF
29068cat confdefs.h >>conftest.$ac_ext
29069cat >>conftest.$ac_ext <<_ACEOF
29070/* end confdefs.h. */
29071
29072/* Override any gcc2 internal prototype to avoid an error. */
29073#ifdef __cplusplus
29074extern "C"
29075#endif
29076/* We use char because int might match the return type of a gcc2
29077 builtin and then its argument prototype would still apply. */
29078char wcslen ();
29079int
29080main ()
29081{
29082wcslen ();
29083 ;
29084 return 0;
29085}
29086_ACEOF
29087rm -f conftest.$ac_objext conftest$ac_exeext
29088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29089 (eval $ac_link) 2>conftest.er1
29090 ac_status=$?
29091 grep -v '^ *+' conftest.er1 >conftest.err
29092 rm -f conftest.er1
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
dcc1b6ad
VS
29096 { ac_try='test -z "$ac_c_werror_flag"
29097 || test ! -s conftest.err'
a848cd7e
SC
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest$ac_exeext'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; }; then
29109 ac_cv_lib_w_wcslen=yes
29110else
29111 echo "$as_me: failed program was:" >&5
29112sed 's/^/| /' conftest.$ac_ext >&5
29113
29114ac_cv_lib_w_wcslen=no
29115fi
29116rm -f conftest.err conftest.$ac_objext \
29117 conftest$ac_exeext conftest.$ac_ext
29118LIBS=$ac_check_lib_save_LIBS
29119fi
29120echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29121echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29122if test $ac_cv_lib_w_wcslen = yes; then
29123
29124 WCHAR_LINK=" -lw"
29125 WCSLEN_FOUND=1
29126
29127fi
29128
29129 fi
29130 fi
29131
29132 if test "$WCSLEN_FOUND" = 1; then
29133 cat >>confdefs.h <<\_ACEOF
29134#define HAVE_WCSLEN 1
29135_ACEOF
29136
29137 fi
29138
473276a9
VS
29139 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29140 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29141 fi
29142
a848cd7e
SC
29143
29144for ac_func in wcsrtombs
29145do
29146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29147echo "$as_me:$LINENO: checking for $ac_func" >&5
29148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29149if eval "test \"\${$as_ac_var+set}\" = set"; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29151else
29152 cat >conftest.$ac_ext <<_ACEOF
29153/* confdefs.h. */
29154_ACEOF
29155cat confdefs.h >>conftest.$ac_ext
29156cat >>conftest.$ac_ext <<_ACEOF
29157/* end confdefs.h. */
29158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29160#define $ac_func innocuous_$ac_func
29161
29162/* System header to define __stub macros and hopefully few prototypes,
29163 which can conflict with char $ac_func (); below.
29164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29165 <limits.h> exists even on freestanding compilers. */
29166
29167#ifdef __STDC__
29168# include <limits.h>
29169#else
29170# include <assert.h>
29171#endif
29172
29173#undef $ac_func
29174
29175/* Override any gcc2 internal prototype to avoid an error. */
29176#ifdef __cplusplus
29177extern "C"
29178{
29179#endif
29180/* We use char because int might match the return type of a gcc2
29181 builtin and then its argument prototype would still apply. */
29182char $ac_func ();
29183/* The GNU C library defines this for functions which it implements
29184 to always fail with ENOSYS. Some functions are actually named
29185 something starting with __ and the normal name is an alias. */
29186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29187choke me
29188#else
29189char (*f) () = $ac_func;
29190#endif
29191#ifdef __cplusplus
29192}
29193#endif
29194
29195int
29196main ()
29197{
29198return f != $ac_func;
29199 ;
29200 return 0;
29201}
29202_ACEOF
29203rm -f conftest.$ac_objext conftest$ac_exeext
29204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29205 (eval $ac_link) 2>conftest.er1
29206 ac_status=$?
29207 grep -v '^ *+' conftest.er1 >conftest.err
29208 rm -f conftest.er1
29209 cat conftest.err >&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); } &&
dcc1b6ad
VS
29212 { ac_try='test -z "$ac_c_werror_flag"
29213 || test ! -s conftest.err'
a848cd7e
SC
29214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215 (eval $ac_try) 2>&5
29216 ac_status=$?
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; } &&
29219 { ac_try='test -s conftest$ac_exeext'
29220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221 (eval $ac_try) 2>&5
29222 ac_status=$?
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; }; then
29225 eval "$as_ac_var=yes"
29226else
29227 echo "$as_me: failed program was:" >&5
29228sed 's/^/| /' conftest.$ac_ext >&5
29229
29230eval "$as_ac_var=no"
29231fi
29232rm -f conftest.err conftest.$ac_objext \
29233 conftest$ac_exeext conftest.$ac_ext
29234fi
29235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29237if test `eval echo '${'$as_ac_var'}'` = yes; then
29238 cat >>confdefs.h <<_ACEOF
29239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29240_ACEOF
29241
29242fi
29243done
29244
29245else
29246 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29247echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29248fi
29249
29250
29251
29252ac_ext=cc
29253ac_cpp='$CXXCPP $CPPFLAGS'
29254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29257
29258
29259
29260for ac_func in vsnprintf
29261do
29262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29263echo "$as_me:$LINENO: checking for $ac_func" >&5
29264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29265if eval "test \"\${$as_ac_var+set}\" = set"; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29267else
29268 cat >conftest.$ac_ext <<_ACEOF
29269/* confdefs.h. */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h. */
29274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29276#define $ac_func innocuous_$ac_func
29277
29278/* System header to define __stub macros and hopefully few prototypes,
29279 which can conflict with char $ac_func (); below.
29280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29281 <limits.h> exists even on freestanding compilers. */
29282
29283#ifdef __STDC__
29284# include <limits.h>
29285#else
29286# include <assert.h>
29287#endif
29288
29289#undef $ac_func
29290
29291/* Override any gcc2 internal prototype to avoid an error. */
29292#ifdef __cplusplus
29293extern "C"
29294{
29295#endif
29296/* We use char because int might match the return type of a gcc2
29297 builtin and then its argument prototype would still apply. */
29298char $ac_func ();
29299/* The GNU C library defines this for functions which it implements
29300 to always fail with ENOSYS. Some functions are actually named
29301 something starting with __ and the normal name is an alias. */
29302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29303choke me
29304#else
29305char (*f) () = $ac_func;
29306#endif
29307#ifdef __cplusplus
29308}
29309#endif
29310
29311int
29312main ()
29313{
29314return f != $ac_func;
29315 ;
29316 return 0;
29317}
29318_ACEOF
29319rm -f conftest.$ac_objext conftest$ac_exeext
29320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29321 (eval $ac_link) 2>conftest.er1
29322 ac_status=$?
29323 grep -v '^ *+' conftest.er1 >conftest.err
29324 rm -f conftest.er1
29325 cat conftest.err >&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } &&
dcc1b6ad
VS
29328 { ac_try='test -z "$ac_cxx_werror_flag"
29329 || test ! -s conftest.err'
a848cd7e
SC
29330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29331 (eval $ac_try) 2>&5
29332 ac_status=$?
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); }; } &&
29335 { ac_try='test -s conftest$ac_exeext'
29336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337 (eval $ac_try) 2>&5
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; }; then
29341 eval "$as_ac_var=yes"
29342else
29343 echo "$as_me: failed program was:" >&5
29344sed 's/^/| /' conftest.$ac_ext >&5
29345
29346eval "$as_ac_var=no"
29347fi
29348rm -f conftest.err conftest.$ac_objext \
29349 conftest$ac_exeext conftest.$ac_ext
29350fi
29351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29353if test `eval echo '${'$as_ac_var'}'` = yes; then
29354 cat >>confdefs.h <<_ACEOF
29355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29356_ACEOF
29357
29358fi
29359done
29360
29361
29362if test "$ac_cv_func_vsnprintf" = "yes"; then
29363 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29364echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29365if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
29368
29369 cat >conftest.$ac_ext <<_ACEOF
29370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
29375
29376 #include <stdio.h>
29377 #include <stdarg.h>
29378
29379int
29380main ()
29381{
29382
29383 char *buf;
29384 va_list ap;
29385 vsnprintf(buf, 10u, "%s", ap);
29386
29387 ;
29388 return 0;
29389}
29390_ACEOF
29391rm -f conftest.$ac_objext
29392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29393 (eval $ac_compile) 2>conftest.er1
29394 ac_status=$?
29395 grep -v '^ *+' conftest.er1 >conftest.err
29396 rm -f conftest.er1
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
dcc1b6ad
VS
29400 { ac_try='test -z "$ac_cxx_werror_flag"
29401 || test ! -s conftest.err'
a848cd7e
SC
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; } &&
29407 { ac_try='test -s conftest.$ac_objext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 wx_cv_func_vsnprintf_decl=yes
29414else
29415 echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418wx_cv_func_vsnprintf_decl=no
29419
29420fi
29421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29422
29423
29424fi
29425echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29426echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29427
29428 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29429 cat >>confdefs.h <<\_ACEOF
29430#define HAVE_VSNPRINTF_DECL 1
29431_ACEOF
29432
29433 fi
29434fi
29435
29436if test "$wxUSE_UNICODE" = yes; then
29437
29438
29439
29440for ac_func in fputwc wprintf vswprintf
29441do
29442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29443echo "$as_me:$LINENO: checking for $ac_func" >&5
29444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29445if eval "test \"\${$as_ac_var+set}\" = set"; then
29446 echo $ECHO_N "(cached) $ECHO_C" >&6
29447else
29448 cat >conftest.$ac_ext <<_ACEOF
29449/* confdefs.h. */
29450_ACEOF
29451cat confdefs.h >>conftest.$ac_ext
29452cat >>conftest.$ac_ext <<_ACEOF
29453/* end confdefs.h. */
29454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29456#define $ac_func innocuous_$ac_func
29457
29458/* System header to define __stub macros and hopefully few prototypes,
29459 which can conflict with char $ac_func (); below.
29460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29461 <limits.h> exists even on freestanding compilers. */
29462
29463#ifdef __STDC__
29464# include <limits.h>
29465#else
29466# include <assert.h>
29467#endif
29468
29469#undef $ac_func
29470
29471/* Override any gcc2 internal prototype to avoid an error. */
29472#ifdef __cplusplus
29473extern "C"
29474{
29475#endif
29476/* We use char because int might match the return type of a gcc2
29477 builtin and then its argument prototype would still apply. */
29478char $ac_func ();
29479/* The GNU C library defines this for functions which it implements
29480 to always fail with ENOSYS. Some functions are actually named
29481 something starting with __ and the normal name is an alias. */
29482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29483choke me
29484#else
29485char (*f) () = $ac_func;
29486#endif
29487#ifdef __cplusplus
29488}
29489#endif
29490
29491int
29492main ()
29493{
29494return f != $ac_func;
29495 ;
29496 return 0;
29497}
29498_ACEOF
29499rm -f conftest.$ac_objext conftest$ac_exeext
29500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29501 (eval $ac_link) 2>conftest.er1
29502 ac_status=$?
29503 grep -v '^ *+' conftest.er1 >conftest.err
29504 rm -f conftest.er1
29505 cat conftest.err >&5
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } &&
dcc1b6ad
VS
29508 { ac_try='test -z "$ac_cxx_werror_flag"
29509 || test ! -s conftest.err'
a848cd7e
SC
29510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29511 (eval $ac_try) 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; } &&
29515 { ac_try='test -s conftest$ac_exeext'
29516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29517 (eval $ac_try) 2>&5
29518 ac_status=$?
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); }; }; then
29521 eval "$as_ac_var=yes"
29522else
29523 echo "$as_me: failed program was:" >&5
29524sed 's/^/| /' conftest.$ac_ext >&5
29525
29526eval "$as_ac_var=no"
29527fi
29528rm -f conftest.err conftest.$ac_objext \
29529 conftest$ac_exeext conftest.$ac_ext
29530fi
29531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29533if test `eval echo '${'$as_ac_var'}'` = yes; then
29534 cat >>confdefs.h <<_ACEOF
29535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29536_ACEOF
29537
29538fi
29539done
29540
29541
29542 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29543echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29544 cat >conftest.$ac_ext <<_ACEOF
29545/* confdefs.h. */
29546_ACEOF
29547cat confdefs.h >>conftest.$ac_ext
29548cat >>conftest.$ac_ext <<_ACEOF
29549/* end confdefs.h. */
29550#include <wchar.h>
29551int
29552main ()
29553{
29554&_vsnwprintf;
29555 ;
29556 return 0;
29557}
29558_ACEOF
29559rm -f conftest.$ac_objext
29560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29561 (eval $ac_compile) 2>conftest.er1
29562 ac_status=$?
29563 grep -v '^ *+' conftest.er1 >conftest.err
29564 rm -f conftest.er1
29565 cat conftest.err >&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); } &&
dcc1b6ad
VS
29568 { ac_try='test -z "$ac_cxx_werror_flag"
29569 || test ! -s conftest.err'
a848cd7e
SC
29570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29571 (eval $ac_try) 2>&5
29572 ac_status=$?
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; } &&
29575 { ac_try='test -s conftest.$ac_objext'
29576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577 (eval $ac_try) 2>&5
29578 ac_status=$?
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); }; }; then
29581 echo "$as_me:$LINENO: result: yes" >&5
29582echo "${ECHO_T}yes" >&6
29583 cat >>confdefs.h <<\_ACEOF
29584#define HAVE__VSNWPRINTF 1
29585_ACEOF
29586
29587else
29588 echo "$as_me: failed program was:" >&5
29589sed 's/^/| /' conftest.$ac_ext >&5
29590
29591echo "$as_me:$LINENO: result: no" >&5
29592echo "${ECHO_T}no" >&6
29593fi
29594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29595fi
29596
29597ac_ext=c
29598ac_cpp='$CPP $CPPFLAGS'
29599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29601ac_compiler_gnu=$ac_cv_c_compiler_gnu
29602
29603
29604
29605
29606if test "$TOOLKIT" != "MSW"; then
29607
29608
29609
29610
29611ac_ext=cc
29612ac_cpp='$CXXCPP $CPPFLAGS'
29613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29616
29617
29618
29619
29620# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29621if test "${with_libiconv_prefix+set}" = set; then
29622 withval="$with_libiconv_prefix"
29623
29624 for dir in `echo "$withval" | tr : ' '`; do
29625 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29626 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29627 done
29628
29629fi;
29630
29631 echo "$as_me:$LINENO: checking for iconv" >&5
29632echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29633if test "${am_cv_func_iconv+set}" = set; then
29634 echo $ECHO_N "(cached) $ECHO_C" >&6
29635else
29636
29637 am_cv_func_iconv="no, consider installing GNU libiconv"
29638 am_cv_lib_iconv=no
29639 cat >conftest.$ac_ext <<_ACEOF
29640/* confdefs.h. */
29641_ACEOF
29642cat confdefs.h >>conftest.$ac_ext
29643cat >>conftest.$ac_ext <<_ACEOF
29644/* end confdefs.h. */
29645#include <stdlib.h>
29646#include <iconv.h>
29647int
29648main ()
29649{
29650iconv_t cd = iconv_open("","");
29651 iconv(cd,NULL,NULL,NULL,NULL);
29652 iconv_close(cd);
29653 ;
29654 return 0;
29655}
29656_ACEOF
29657rm -f conftest.$ac_objext conftest$ac_exeext
29658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29659 (eval $ac_link) 2>conftest.er1
29660 ac_status=$?
29661 grep -v '^ *+' conftest.er1 >conftest.err
29662 rm -f conftest.er1
29663 cat conftest.err >&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); } &&
dcc1b6ad
VS
29666 { ac_try='test -z "$ac_cxx_werror_flag"
29667 || test ! -s conftest.err'
a848cd7e
SC
29668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29669 (eval $ac_try) 2>&5
29670 ac_status=$?
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); }; } &&
29673 { ac_try='test -s conftest$ac_exeext'
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 am_cv_func_iconv=yes
29680else
29681 echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684fi
29685rm -f conftest.err conftest.$ac_objext \
29686 conftest$ac_exeext conftest.$ac_ext
29687 if test "$am_cv_func_iconv" != yes; then
29688 am_save_LIBS="$LIBS"
29689 LIBS="$LIBS -liconv"
29690 cat >conftest.$ac_ext <<_ACEOF
29691/* confdefs.h. */
29692_ACEOF
29693cat confdefs.h >>conftest.$ac_ext
29694cat >>conftest.$ac_ext <<_ACEOF
29695/* end confdefs.h. */
29696#include <stdlib.h>
29697#include <iconv.h>
29698int
29699main ()
29700{
29701iconv_t cd = iconv_open("","");
29702 iconv(cd,NULL,NULL,NULL,NULL);
29703 iconv_close(cd);
29704 ;
29705 return 0;
29706}
29707_ACEOF
29708rm -f conftest.$ac_objext conftest$ac_exeext
29709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29710 (eval $ac_link) 2>conftest.er1
29711 ac_status=$?
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
dcc1b6ad
VS
29717 { ac_try='test -z "$ac_cxx_werror_flag"
29718 || test ! -s conftest.err'
a848cd7e
SC
29719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720 (eval $ac_try) 2>&5
29721 ac_status=$?
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; } &&
29724 { ac_try='test -s conftest$ac_exeext'
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; }; then
29730 am_cv_lib_iconv=yes
29731 am_cv_func_iconv=yes
29732else
29733 echo "$as_me: failed program was:" >&5
29734sed 's/^/| /' conftest.$ac_ext >&5
29735
29736fi
29737rm -f conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
29739 LIBS="$am_save_LIBS"
29740 fi
29741
29742fi
29743echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29744echo "${ECHO_T}$am_cv_func_iconv" >&6
29745 if test "$am_cv_func_iconv" = yes; then
29746
29747cat >>confdefs.h <<\_ACEOF
29748#define HAVE_ICONV 1
29749_ACEOF
29750
29751 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29752echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29753if test "${wx_cv_func_iconv_const+set}" = set; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29755else
29756 cat >conftest.$ac_ext <<_ACEOF
29757/* confdefs.h. */
29758_ACEOF
29759cat confdefs.h >>conftest.$ac_ext
29760cat >>conftest.$ac_ext <<_ACEOF
29761/* end confdefs.h. */
29762
29763#include <stdlib.h>
29764#include <iconv.h>
29765extern
29766#ifdef __cplusplus
29767"C"
29768#endif
29769#if defined(__STDC__) || defined(__cplusplus)
29770size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29771#else
29772size_t iconv();
29773#endif
29774
29775int
29776main ()
29777{
29778
29779 ;
29780 return 0;
29781}
29782_ACEOF
29783rm -f conftest.$ac_objext
29784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29785 (eval $ac_compile) 2>conftest.er1
29786 ac_status=$?
29787 grep -v '^ *+' conftest.er1 >conftest.err
29788 rm -f conftest.er1
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } &&
dcc1b6ad
VS
29792 { ac_try='test -z "$ac_cxx_werror_flag"
29793 || test ! -s conftest.err'
a848cd7e
SC
29794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29795 (eval $ac_try) 2>&5
29796 ac_status=$?
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); }; } &&
29799 { ac_try='test -s conftest.$ac_objext'
29800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801 (eval $ac_try) 2>&5
29802 ac_status=$?
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; }; then
29805 wx_cv_func_iconv_const="no"
29806else
29807 echo "$as_me: failed program was:" >&5
29808sed 's/^/| /' conftest.$ac_ext >&5
29809
29810wx_cv_func_iconv_const="yes"
29811
29812fi
29813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29814
29815fi
29816echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29817echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29818
29819 iconv_const=
29820 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29821 iconv_const="const"
29822 fi
29823
29824
29825cat >>confdefs.h <<_ACEOF
29826#define ICONV_CONST $iconv_const
29827_ACEOF
29828
29829 fi
29830 LIBICONV=
29831 if test "$am_cv_lib_iconv" = yes; then
29832 LIBICONV="-liconv"
29833 fi
29834
29835
29836LIBS="$LIBICONV $LIBS"
29837ac_ext=c
29838ac_cpp='$CPP $CPPFLAGS'
29839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841ac_compiler_gnu=$ac_cv_c_compiler_gnu
29842
29843
29844if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29845
29846for ac_func in sigaction
29847do
29848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29849echo "$as_me:$LINENO: checking for $ac_func" >&5
29850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29851if eval "test \"\${$as_ac_var+set}\" = set"; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29853else
29854 cat >conftest.$ac_ext <<_ACEOF
29855/* confdefs.h. */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h. */
29860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29862#define $ac_func innocuous_$ac_func
29863
29864/* System header to define __stub macros and hopefully few prototypes,
29865 which can conflict with char $ac_func (); below.
29866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29867 <limits.h> exists even on freestanding compilers. */
29868
29869#ifdef __STDC__
29870# include <limits.h>
29871#else
29872# include <assert.h>
29873#endif
29874
29875#undef $ac_func
29876
29877/* Override any gcc2 internal prototype to avoid an error. */
29878#ifdef __cplusplus
29879extern "C"
29880{
29881#endif
29882/* We use char because int might match the return type of a gcc2
29883 builtin and then its argument prototype would still apply. */
29884char $ac_func ();
29885/* The GNU C library defines this for functions which it implements
29886 to always fail with ENOSYS. Some functions are actually named
29887 something starting with __ and the normal name is an alias. */
29888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29889choke me
29890#else
29891char (*f) () = $ac_func;
29892#endif
29893#ifdef __cplusplus
29894}
29895#endif
29896
29897int
29898main ()
29899{
29900return f != $ac_func;
29901 ;
29902 return 0;
29903}
29904_ACEOF
29905rm -f conftest.$ac_objext conftest$ac_exeext
29906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29907 (eval $ac_link) 2>conftest.er1
29908 ac_status=$?
29909 grep -v '^ *+' conftest.er1 >conftest.err
29910 rm -f conftest.er1
29911 cat conftest.err >&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } &&
dcc1b6ad
VS
29914 { ac_try='test -z "$ac_c_werror_flag"
29915 || test ! -s conftest.err'
a848cd7e
SC
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; } &&
29921 { ac_try='test -s conftest$ac_exeext'
29922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923 (eval $ac_try) 2>&5
29924 ac_status=$?
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); }; }; then
29927 eval "$as_ac_var=yes"
29928else
29929 echo "$as_me: failed program was:" >&5
29930sed 's/^/| /' conftest.$ac_ext >&5
29931
29932eval "$as_ac_var=no"
29933fi
29934rm -f conftest.err conftest.$ac_objext \
29935 conftest$ac_exeext conftest.$ac_ext
29936fi
29937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29939if test `eval echo '${'$as_ac_var'}'` = yes; then
29940 cat >>confdefs.h <<_ACEOF
29941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29942_ACEOF
29943
29944fi
29945done
29946
29947
29948 if test "$ac_cv_func_sigaction" = "no"; then
29949 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29950echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29951 wxUSE_ON_FATAL_EXCEPTION=no
29952 fi
29953
29954 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29955
29956
29957 ac_ext=cc
29958ac_cpp='$CXXCPP $CPPFLAGS'
29959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29962
29963
29964 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29965echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29966if test "${wx_cv_type_sa_handler+set}" = set; then
29967 echo $ECHO_N "(cached) $ECHO_C" >&6
29968else
29969
29970 cat >conftest.$ac_ext <<_ACEOF
29971/* confdefs.h. */
29972_ACEOF
29973cat confdefs.h >>conftest.$ac_ext
29974cat >>conftest.$ac_ext <<_ACEOF
29975/* end confdefs.h. */
29976#include <signal.h>
29977int
29978main ()
29979{
29980
29981 extern void testSigHandler(int);
29982
29983 struct sigaction sa;
29984 sa.sa_handler = testSigHandler;
29985
29986 ;
29987 return 0;
29988}
29989_ACEOF
29990rm -f conftest.$ac_objext
29991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29992 (eval $ac_compile) 2>conftest.er1
29993 ac_status=$?
29994 grep -v '^ *+' conftest.er1 >conftest.err
29995 rm -f conftest.er1
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } &&
dcc1b6ad
VS
29999 { ac_try='test -z "$ac_cxx_werror_flag"
30000 || test ! -s conftest.err'
a848cd7e
SC
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30003 ac_status=$?
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; } &&
30006 { ac_try='test -s conftest.$ac_objext'
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; }; then
30012
30013 wx_cv_type_sa_handler=int
30014
30015else
30016 echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
30019
30020 wx_cv_type_sa_handler=void
30021
30022fi
30023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30024
30025fi
30026echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30027echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30028
30029 ac_ext=c
30030ac_cpp='$CPP $CPPFLAGS'
30031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30033ac_compiler_gnu=$ac_cv_c_compiler_gnu
30034
30035
30036 cat >>confdefs.h <<_ACEOF
30037#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30038_ACEOF
30039
30040 fi
30041fi
30042
30043
30044
30045for ac_func in mkstemp mktemp
30046do
30047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30048echo "$as_me:$LINENO: checking for $ac_func" >&5
30049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30050if eval "test \"\${$as_ac_var+set}\" = set"; then
30051 echo $ECHO_N "(cached) $ECHO_C" >&6
30052else
30053 cat >conftest.$ac_ext <<_ACEOF
30054/* confdefs.h. */
30055_ACEOF
30056cat confdefs.h >>conftest.$ac_ext
30057cat >>conftest.$ac_ext <<_ACEOF
30058/* end confdefs.h. */
30059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30061#define $ac_func innocuous_$ac_func
30062
30063/* System header to define __stub macros and hopefully few prototypes,
30064 which can conflict with char $ac_func (); below.
30065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30066 <limits.h> exists even on freestanding compilers. */
30067
30068#ifdef __STDC__
30069# include <limits.h>
30070#else
30071# include <assert.h>
30072#endif
30073
30074#undef $ac_func
30075
30076/* Override any gcc2 internal prototype to avoid an error. */
30077#ifdef __cplusplus
30078extern "C"
30079{
30080#endif
30081/* We use char because int might match the return type of a gcc2
30082 builtin and then its argument prototype would still apply. */
30083char $ac_func ();
30084/* The GNU C library defines this for functions which it implements
30085 to always fail with ENOSYS. Some functions are actually named
30086 something starting with __ and the normal name is an alias. */
30087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30088choke me
30089#else
30090char (*f) () = $ac_func;
30091#endif
30092#ifdef __cplusplus
30093}
30094#endif
30095
30096int
30097main ()
30098{
30099return f != $ac_func;
30100 ;
30101 return 0;
30102}
30103_ACEOF
30104rm -f conftest.$ac_objext conftest$ac_exeext
30105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30106 (eval $ac_link) 2>conftest.er1
30107 ac_status=$?
30108 grep -v '^ *+' conftest.er1 >conftest.err
30109 rm -f conftest.er1
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } &&
dcc1b6ad
VS
30113 { ac_try='test -z "$ac_c_werror_flag"
30114 || test ! -s conftest.err'
a848cd7e
SC
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest$ac_exeext'
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
30126 eval "$as_ac_var=yes"
30127else
30128 echo "$as_me: failed program was:" >&5
30129sed 's/^/| /' conftest.$ac_ext >&5
30130
30131eval "$as_ac_var=no"
30132fi
30133rm -f conftest.err conftest.$ac_objext \
30134 conftest$ac_exeext conftest.$ac_ext
30135fi
30136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30138if test `eval echo '${'$as_ac_var'}'` = yes; then
30139 cat >>confdefs.h <<_ACEOF
30140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30141_ACEOF
30142 break
30143fi
30144done
30145
30146
30147echo "$as_me:$LINENO: checking for statfs" >&5
30148echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30149if test "${wx_cv_func_statfs+set}" = set; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152 cat >conftest.$ac_ext <<_ACEOF
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158
30159 #if defined(__BSD__)
30160 #include <sys/param.h>
30161 #include <sys/mount.h>
30162 #else
30163 #include <sys/vfs.h>
30164 #endif
30165
30166int
30167main ()
30168{
30169
30170 long l;
30171 struct statfs fs;
30172 statfs("/", &fs);
30173 l = fs.f_bsize;
30174 l += fs.f_blocks;
30175 l += fs.f_bavail;
30176
30177 ;
30178 return 0;
30179}
30180_ACEOF
30181rm -f conftest.$ac_objext
30182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30183 (eval $ac_compile) 2>conftest.er1
30184 ac_status=$?
30185 grep -v '^ *+' conftest.er1 >conftest.err
30186 rm -f conftest.er1
30187 cat conftest.err >&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } &&
dcc1b6ad
VS
30190 { ac_try='test -z "$ac_c_werror_flag"
30191 || test ! -s conftest.err'
a848cd7e
SC
30192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193 (eval $ac_try) 2>&5
30194 ac_status=$?
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); }; } &&
30197 { ac_try='test -s conftest.$ac_objext'
30198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199 (eval $ac_try) 2>&5
30200 ac_status=$?
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); }; }; then
30203
30204 wx_cv_func_statfs=yes
30205
30206else
30207 echo "$as_me: failed program was:" >&5
30208sed 's/^/| /' conftest.$ac_ext >&5
30209
30210
30211 wx_cv_func_statfs=no
30212
30213
30214fi
30215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30216
30217fi
30218echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30219echo "${ECHO_T}$wx_cv_func_statfs" >&6
30220
30221if test "$wx_cv_func_statfs" = "yes"; then
30222 wx_cv_type_statvfs_t="struct statfs"
30223 cat >>confdefs.h <<\_ACEOF
30224#define HAVE_STATFS 1
30225_ACEOF
30226
30227else
30228 echo "$as_me:$LINENO: checking for statvfs" >&5
30229echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30230if test "${wx_cv_func_statvfs+set}" = set; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30232else
30233 cat >conftest.$ac_ext <<_ACEOF
30234/* confdefs.h. */
30235_ACEOF
30236cat confdefs.h >>conftest.$ac_ext
30237cat >>conftest.$ac_ext <<_ACEOF
30238/* end confdefs.h. */
30239
30240 #include <stddef.h>
30241 #include <sys/statvfs.h>
30242
30243int
30244main ()
30245{
30246
30247 statvfs("/", NULL);
30248
30249 ;
30250 return 0;
30251}
30252_ACEOF
30253rm -f conftest.$ac_objext
30254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30255 (eval $ac_compile) 2>conftest.er1
30256 ac_status=$?
30257 grep -v '^ *+' conftest.er1 >conftest.err
30258 rm -f conftest.er1
30259 cat conftest.err >&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } &&
dcc1b6ad
VS
30262 { ac_try='test -z "$ac_c_werror_flag"
30263 || test ! -s conftest.err'
a848cd7e
SC
30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265 (eval $ac_try) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; } &&
30269 { ac_try='test -s conftest.$ac_objext'
30270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271 (eval $ac_try) 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; }; then
30275 wx_cv_func_statvfs=yes
30276else
30277 echo "$as_me: failed program was:" >&5
30278sed 's/^/| /' conftest.$ac_ext >&5
30279
30280wx_cv_func_statvfs=no
30281
30282fi
30283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30284
30285fi
30286echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30287echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30288
30289 if test "$wx_cv_func_statvfs" = "yes"; then
30290
30291
30292 ac_ext=cc
30293ac_cpp='$CXXCPP $CPPFLAGS'
30294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30297
30298
30299 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30300echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30301if test "${wx_cv_type_statvfs_t+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303else
30304 cat >conftest.$ac_ext <<_ACEOF
30305/* confdefs.h. */
30306_ACEOF
30307cat confdefs.h >>conftest.$ac_ext
30308cat >>conftest.$ac_ext <<_ACEOF
30309/* end confdefs.h. */
30310
30311 #include <sys/statvfs.h>
30312
30313int
30314main ()
30315{
30316
30317 long l;
30318 statvfs_t fs;
30319 statvfs("/", &fs);
30320 l = fs.f_bsize;
30321 l += fs.f_blocks;
30322 l += fs.f_bavail;
30323
30324 ;
30325 return 0;
30326}
30327_ACEOF
30328rm -f conftest.$ac_objext
30329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30330 (eval $ac_compile) 2>conftest.er1
30331 ac_status=$?
30332 grep -v '^ *+' conftest.er1 >conftest.err
30333 rm -f conftest.er1
30334 cat conftest.err >&5
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); } &&
dcc1b6ad
VS
30337 { ac_try='test -z "$ac_cxx_werror_flag"
30338 || test ! -s conftest.err'
a848cd7e
SC
30339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30340 (eval $ac_try) 2>&5
30341 ac_status=$?
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); }; } &&
30344 { ac_try='test -s conftest.$ac_objext'
30345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30346 (eval $ac_try) 2>&5
30347 ac_status=$?
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); }; }; then
30350 wx_cv_type_statvfs_t=statvfs_t
30351else
30352 echo "$as_me: failed program was:" >&5
30353sed 's/^/| /' conftest.$ac_ext >&5
30354
30355
30356 cat >conftest.$ac_ext <<_ACEOF
30357/* confdefs.h. */
30358_ACEOF
30359cat confdefs.h >>conftest.$ac_ext
30360cat >>conftest.$ac_ext <<_ACEOF
30361/* end confdefs.h. */
30362
30363 #include <sys/statvfs.h>
30364
30365int
30366main ()
30367{
30368
30369 long l;
30370 struct statvfs fs;
30371 statvfs("/", &fs);
30372 l = fs.f_bsize;
30373 l += fs.f_blocks;
30374 l += fs.f_bavail;
30375
30376 ;
30377 return 0;
30378}
30379_ACEOF
30380rm -f conftest.$ac_objext
30381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30382 (eval $ac_compile) 2>conftest.er1
30383 ac_status=$?
30384 grep -v '^ *+' conftest.er1 >conftest.err
30385 rm -f conftest.er1
30386 cat conftest.err >&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } &&
dcc1b6ad
VS
30389 { ac_try='test -z "$ac_cxx_werror_flag"
30390 || test ! -s conftest.err'
a848cd7e
SC
30391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30392 (eval $ac_try) 2>&5
30393 ac_status=$?
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); }; } &&
30396 { ac_try='test -s conftest.$ac_objext'
30397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398 (eval $ac_try) 2>&5
30399 ac_status=$?
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); }; }; then
30402 wx_cv_type_statvfs_t="struct statvfs"
30403else
30404 echo "$as_me: failed program was:" >&5
30405sed 's/^/| /' conftest.$ac_ext >&5
30406
30407wx_cv_type_statvfs_t="unknown"
30408
30409fi
30410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30411
30412
30413fi
30414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30415
30416fi
30417echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30418echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30419
30420 ac_ext=c
30421ac_cpp='$CPP $CPPFLAGS'
30422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30424ac_compiler_gnu=$ac_cv_c_compiler_gnu
30425
30426
30427 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30428 cat >>confdefs.h <<\_ACEOF
30429#define HAVE_STATVFS 1
30430_ACEOF
30431
30432 fi
30433 else
30434 wx_cv_type_statvfs_t="unknown"
30435 fi
30436fi
30437
30438if test "$wx_cv_type_statvfs_t" != "unknown"; then
30439 cat >>confdefs.h <<_ACEOF
30440#define WX_STATFS_T $wx_cv_type_statvfs_t
30441_ACEOF
30442
30443else
30444 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30445echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30446fi
30447
30448if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30449
30450
30451for ac_func in fcntl flock
30452do
30453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30454echo "$as_me:$LINENO: checking for $ac_func" >&5
30455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30456if eval "test \"\${$as_ac_var+set}\" = set"; then
30457 echo $ECHO_N "(cached) $ECHO_C" >&6
30458else
30459 cat >conftest.$ac_ext <<_ACEOF
30460/* confdefs.h. */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h. */
30465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30467#define $ac_func innocuous_$ac_func
30468
30469/* System header to define __stub macros and hopefully few prototypes,
30470 which can conflict with char $ac_func (); below.
30471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30472 <limits.h> exists even on freestanding compilers. */
30473
30474#ifdef __STDC__
30475# include <limits.h>
30476#else
30477# include <assert.h>
30478#endif
30479
30480#undef $ac_func
30481
30482/* Override any gcc2 internal prototype to avoid an error. */
30483#ifdef __cplusplus
30484extern "C"
30485{
30486#endif
30487/* We use char because int might match the return type of a gcc2
30488 builtin and then its argument prototype would still apply. */
30489char $ac_func ();
30490/* The GNU C library defines this for functions which it implements
30491 to always fail with ENOSYS. Some functions are actually named
30492 something starting with __ and the normal name is an alias. */
30493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30494choke me
30495#else
30496char (*f) () = $ac_func;
30497#endif
30498#ifdef __cplusplus
30499}
30500#endif
30501
30502int
30503main ()
30504{
30505return f != $ac_func;
30506 ;
30507 return 0;
30508}
30509_ACEOF
30510rm -f conftest.$ac_objext conftest$ac_exeext
30511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30512 (eval $ac_link) 2>conftest.er1
30513 ac_status=$?
30514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
dcc1b6ad
VS
30519 { ac_try='test -z "$ac_c_werror_flag"
30520 || test ! -s conftest.err'
a848cd7e
SC
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30523 ac_status=$?
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; } &&
30526 { ac_try='test -s conftest$ac_exeext'
30527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528 (eval $ac_try) 2>&5
30529 ac_status=$?
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; }; then
30532 eval "$as_ac_var=yes"
30533else
30534 echo "$as_me: failed program was:" >&5
30535sed 's/^/| /' conftest.$ac_ext >&5
30536
30537eval "$as_ac_var=no"
30538fi
30539rm -f conftest.err conftest.$ac_objext \
30540 conftest$ac_exeext conftest.$ac_ext
30541fi
30542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30543echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30544if test `eval echo '${'$as_ac_var'}'` = yes; then
30545 cat >>confdefs.h <<_ACEOF
30546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30547_ACEOF
30548 break
30549fi
30550done
30551
30552
30553 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30554 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30555echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30556 wxUSE_SNGLINST_CHECKER=no
30557 fi
30558fi
30559
30560
30561for ac_func in timegm
30562do
30563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30564echo "$as_me:$LINENO: checking for $ac_func" >&5
30565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30566if eval "test \"\${$as_ac_var+set}\" = set"; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30568else
30569 cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h. */
30575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30577#define $ac_func innocuous_$ac_func
30578
30579/* System header to define __stub macros and hopefully few prototypes,
30580 which can conflict with char $ac_func (); below.
30581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30582 <limits.h> exists even on freestanding compilers. */
30583
30584#ifdef __STDC__
30585# include <limits.h>
30586#else
30587# include <assert.h>
30588#endif
30589
30590#undef $ac_func
30591
30592/* Override any gcc2 internal prototype to avoid an error. */
30593#ifdef __cplusplus
30594extern "C"
30595{
30596#endif
30597/* We use char because int might match the return type of a gcc2
30598 builtin and then its argument prototype would still apply. */
30599char $ac_func ();
30600/* The GNU C library defines this for functions which it implements
30601 to always fail with ENOSYS. Some functions are actually named
30602 something starting with __ and the normal name is an alias. */
30603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30604choke me
30605#else
30606char (*f) () = $ac_func;
30607#endif
30608#ifdef __cplusplus
30609}
30610#endif
30611
30612int
30613main ()
30614{
30615return f != $ac_func;
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext conftest$ac_exeext
30621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30622 (eval $ac_link) 2>conftest.er1
30623 ac_status=$?
30624 grep -v '^ *+' conftest.er1 >conftest.err
30625 rm -f conftest.er1
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } &&
dcc1b6ad
VS
30629 { ac_try='test -z "$ac_c_werror_flag"
30630 || test ! -s conftest.err'
a848cd7e
SC
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest$ac_exeext'
30637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638 (eval $ac_try) 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 eval "$as_ac_var=yes"
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
30647eval "$as_ac_var=no"
30648fi
30649rm -f conftest.err conftest.$ac_objext \
30650 conftest$ac_exeext conftest.$ac_ext
30651fi
30652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30654if test `eval echo '${'$as_ac_var'}'` = yes; then
30655 cat >>confdefs.h <<_ACEOF
30656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30657_ACEOF
30658
30659fi
30660done
30661
30662
30663
30664
30665for ac_func in putenv setenv
30666do
30667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30668echo "$as_me:$LINENO: checking for $ac_func" >&5
30669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30670if eval "test \"\${$as_ac_var+set}\" = set"; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30672else
30673 cat >conftest.$ac_ext <<_ACEOF
30674/* confdefs.h. */
30675_ACEOF
30676cat confdefs.h >>conftest.$ac_ext
30677cat >>conftest.$ac_ext <<_ACEOF
30678/* end confdefs.h. */
30679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30681#define $ac_func innocuous_$ac_func
30682
30683/* System header to define __stub macros and hopefully few prototypes,
30684 which can conflict with char $ac_func (); below.
30685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30686 <limits.h> exists even on freestanding compilers. */
30687
30688#ifdef __STDC__
30689# include <limits.h>
30690#else
30691# include <assert.h>
30692#endif
30693
30694#undef $ac_func
30695
30696/* Override any gcc2 internal prototype to avoid an error. */
30697#ifdef __cplusplus
30698extern "C"
30699{
30700#endif
30701/* We use char because int might match the return type of a gcc2
30702 builtin and then its argument prototype would still apply. */
30703char $ac_func ();
30704/* The GNU C library defines this for functions which it implements
30705 to always fail with ENOSYS. Some functions are actually named
30706 something starting with __ and the normal name is an alias. */
30707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30708choke me
30709#else
30710char (*f) () = $ac_func;
30711#endif
30712#ifdef __cplusplus
30713}
30714#endif
30715
30716int
30717main ()
30718{
30719return f != $ac_func;
30720 ;
30721 return 0;
30722}
30723_ACEOF
30724rm -f conftest.$ac_objext conftest$ac_exeext
30725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30726 (eval $ac_link) 2>conftest.er1
30727 ac_status=$?
30728 grep -v '^ *+' conftest.er1 >conftest.err
30729 rm -f conftest.er1
30730 cat conftest.err >&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); } &&
dcc1b6ad
VS
30733 { ac_try='test -z "$ac_c_werror_flag"
30734 || test ! -s conftest.err'
a848cd7e
SC
30735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30736 (eval $ac_try) 2>&5
30737 ac_status=$?
30738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30739 (exit $ac_status); }; } &&
30740 { ac_try='test -s conftest$ac_exeext'
30741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30742 (eval $ac_try) 2>&5
30743 ac_status=$?
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); }; }; then
30746 eval "$as_ac_var=yes"
30747else
30748 echo "$as_me: failed program was:" >&5
30749sed 's/^/| /' conftest.$ac_ext >&5
30750
30751eval "$as_ac_var=no"
30752fi
30753rm -f conftest.err conftest.$ac_objext \
30754 conftest$ac_exeext conftest.$ac_ext
30755fi
30756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30757echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30758if test `eval echo '${'$as_ac_var'}'` = yes; then
30759 cat >>confdefs.h <<_ACEOF
30760#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30761_ACEOF
30762 break
30763fi
30764done
30765
30766
30767HAVE_SOME_SLEEP_FUNC=0
30768if test "$USE_BEOS" = 1; then
30769 cat >>confdefs.h <<\_ACEOF
30770#define HAVE_SLEEP 1
30771_ACEOF
30772
30773 HAVE_SOME_SLEEP_FUNC=1
30774fi
30775
30776if test "$USE_DARWIN" = 1; then
30777 cat >>confdefs.h <<\_ACEOF
30778#define HAVE_USLEEP 1
30779_ACEOF
30780
30781 HAVE_SOME_SLEEP_FUNC=1
30782fi
30783
30784if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30785 POSIX4_LINK=
30786
30787for ac_func in nanosleep
30788do
30789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790echo "$as_me:$LINENO: checking for $ac_func" >&5
30791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30792if eval "test \"\${$as_ac_var+set}\" = set"; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30794else
30795 cat >conftest.$ac_ext <<_ACEOF
30796/* confdefs.h. */
30797_ACEOF
30798cat confdefs.h >>conftest.$ac_ext
30799cat >>conftest.$ac_ext <<_ACEOF
30800/* end confdefs.h. */
30801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30803#define $ac_func innocuous_$ac_func
30804
30805/* System header to define __stub macros and hopefully few prototypes,
30806 which can conflict with char $ac_func (); below.
30807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808 <limits.h> exists even on freestanding compilers. */
30809
30810#ifdef __STDC__
30811# include <limits.h>
30812#else
30813# include <assert.h>
30814#endif
30815
30816#undef $ac_func
30817
30818/* Override any gcc2 internal prototype to avoid an error. */
30819#ifdef __cplusplus
30820extern "C"
30821{
30822#endif
30823/* We use char because int might match the return type of a gcc2
30824 builtin and then its argument prototype would still apply. */
30825char $ac_func ();
30826/* The GNU C library defines this for functions which it implements
30827 to always fail with ENOSYS. Some functions are actually named
30828 something starting with __ and the normal name is an alias. */
30829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30830choke me
30831#else
30832char (*f) () = $ac_func;
30833#endif
30834#ifdef __cplusplus
30835}
30836#endif
30837
30838int
30839main ()
30840{
30841return f != $ac_func;
30842 ;
30843 return 0;
30844}
30845_ACEOF
30846rm -f conftest.$ac_objext conftest$ac_exeext
30847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30848 (eval $ac_link) 2>conftest.er1
30849 ac_status=$?
30850 grep -v '^ *+' conftest.er1 >conftest.err
30851 rm -f conftest.er1
30852 cat conftest.err >&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); } &&
dcc1b6ad
VS
30855 { ac_try='test -z "$ac_c_werror_flag"
30856 || test ! -s conftest.err'
a848cd7e
SC
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; } &&
30862 { ac_try='test -s conftest$ac_exeext'
30863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30864 (eval $ac_try) 2>&5
30865 ac_status=$?
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); }; }; then
30868 eval "$as_ac_var=yes"
30869else
30870 echo "$as_me: failed program was:" >&5
30871sed 's/^/| /' conftest.$ac_ext >&5
30872
30873eval "$as_ac_var=no"
30874fi
30875rm -f conftest.err conftest.$ac_objext \
30876 conftest$ac_exeext conftest.$ac_ext
30877fi
30878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30880if test `eval echo '${'$as_ac_var'}'` = yes; then
30881 cat >>confdefs.h <<_ACEOF
30882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30883_ACEOF
30884 cat >>confdefs.h <<\_ACEOF
30885#define HAVE_NANOSLEEP 1
30886_ACEOF
30887
30888else
30889
30890 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30891echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30892if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30894else
30895 ac_check_lib_save_LIBS=$LIBS
30896LIBS="-lposix4 $LIBS"
30897cat >conftest.$ac_ext <<_ACEOF
30898/* confdefs.h. */
30899_ACEOF
30900cat confdefs.h >>conftest.$ac_ext
30901cat >>conftest.$ac_ext <<_ACEOF
30902/* end confdefs.h. */
30903
30904/* Override any gcc2 internal prototype to avoid an error. */
30905#ifdef __cplusplus
30906extern "C"
30907#endif
30908/* We use char because int might match the return type of a gcc2
30909 builtin and then its argument prototype would still apply. */
30910char nanosleep ();
30911int
30912main ()
30913{
30914nanosleep ();
30915 ;
30916 return 0;
30917}
30918_ACEOF
30919rm -f conftest.$ac_objext conftest$ac_exeext
30920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30921 (eval $ac_link) 2>conftest.er1
30922 ac_status=$?
30923 grep -v '^ *+' conftest.er1 >conftest.err
30924 rm -f conftest.er1
30925 cat conftest.err >&5
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); } &&
dcc1b6ad
VS
30928 { ac_try='test -z "$ac_c_werror_flag"
30929 || test ! -s conftest.err'
a848cd7e
SC
30930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30931 (eval $ac_try) 2>&5
30932 ac_status=$?
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; } &&
30935 { ac_try='test -s conftest$ac_exeext'
30936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937 (eval $ac_try) 2>&5
30938 ac_status=$?
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; }; then
30941 ac_cv_lib_posix4_nanosleep=yes
30942else
30943 echo "$as_me: failed program was:" >&5
30944sed 's/^/| /' conftest.$ac_ext >&5
30945
30946ac_cv_lib_posix4_nanosleep=no
30947fi
30948rm -f conftest.err conftest.$ac_objext \
30949 conftest$ac_exeext conftest.$ac_ext
30950LIBS=$ac_check_lib_save_LIBS
30951fi
30952echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30953echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30954if test $ac_cv_lib_posix4_nanosleep = yes; then
30955
30956 cat >>confdefs.h <<\_ACEOF
30957#define HAVE_NANOSLEEP 1
30958_ACEOF
30959
30960 POSIX4_LINK=" -lposix4"
30961
30962else
30963
30964
30965for ac_func in usleep
30966do
30967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30968echo "$as_me:$LINENO: checking for $ac_func" >&5
30969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30970if eval "test \"\${$as_ac_var+set}\" = set"; then
30971 echo $ECHO_N "(cached) $ECHO_C" >&6
30972else
30973 cat >conftest.$ac_ext <<_ACEOF
30974/* confdefs.h. */
30975_ACEOF
30976cat confdefs.h >>conftest.$ac_ext
30977cat >>conftest.$ac_ext <<_ACEOF
30978/* end confdefs.h. */
30979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30981#define $ac_func innocuous_$ac_func
30982
30983/* System header to define __stub macros and hopefully few prototypes,
30984 which can conflict with char $ac_func (); below.
30985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30986 <limits.h> exists even on freestanding compilers. */
30987
30988#ifdef __STDC__
30989# include <limits.h>
30990#else
30991# include <assert.h>
30992#endif
30993
30994#undef $ac_func
30995
30996/* Override any gcc2 internal prototype to avoid an error. */
30997#ifdef __cplusplus
30998extern "C"
30999{
31000#endif
31001/* We use char because int might match the return type of a gcc2
31002 builtin and then its argument prototype would still apply. */
31003char $ac_func ();
31004/* The GNU C library defines this for functions which it implements
31005 to always fail with ENOSYS. Some functions are actually named
31006 something starting with __ and the normal name is an alias. */
31007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31008choke me
31009#else
31010char (*f) () = $ac_func;
31011#endif
31012#ifdef __cplusplus
31013}
31014#endif
31015
31016int
31017main ()
31018{
31019return f != $ac_func;
31020 ;
31021 return 0;
31022}
31023_ACEOF
31024rm -f conftest.$ac_objext conftest$ac_exeext
31025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31026 (eval $ac_link) 2>conftest.er1
31027 ac_status=$?
31028 grep -v '^ *+' conftest.er1 >conftest.err
31029 rm -f conftest.er1
31030 cat conftest.err >&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } &&
dcc1b6ad
VS
31033 { ac_try='test -z "$ac_c_werror_flag"
31034 || test ! -s conftest.err'
a848cd7e
SC
31035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31036 (eval $ac_try) 2>&5
31037 ac_status=$?
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); }; } &&
31040 { ac_try='test -s conftest$ac_exeext'
31041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042 (eval $ac_try) 2>&5
31043 ac_status=$?
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); }; }; then
31046 eval "$as_ac_var=yes"
31047else
31048 echo "$as_me: failed program was:" >&5
31049sed 's/^/| /' conftest.$ac_ext >&5
31050
31051eval "$as_ac_var=no"
31052fi
31053rm -f conftest.err conftest.$ac_objext \
31054 conftest$ac_exeext conftest.$ac_ext
31055fi
31056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31058if test `eval echo '${'$as_ac_var'}'` = yes; then
31059 cat >>confdefs.h <<_ACEOF
31060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31061_ACEOF
31062 cat >>confdefs.h <<\_ACEOF
31063#define HAVE_USLEEP 1
31064_ACEOF
31065
31066else
31067 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31068echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31069
31070fi
31071done
31072
31073
31074
31075fi
31076
31077
31078
31079fi
31080done
31081
31082fi
31083
31084
31085
31086for ac_func in uname gethostname
31087do
31088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31089echo "$as_me:$LINENO: checking for $ac_func" >&5
31090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31091if eval "test \"\${$as_ac_var+set}\" = set"; then
31092 echo $ECHO_N "(cached) $ECHO_C" >&6
31093else
31094 cat >conftest.$ac_ext <<_ACEOF
31095/* confdefs.h. */
31096_ACEOF
31097cat confdefs.h >>conftest.$ac_ext
31098cat >>conftest.$ac_ext <<_ACEOF
31099/* end confdefs.h. */
31100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31102#define $ac_func innocuous_$ac_func
31103
31104/* System header to define __stub macros and hopefully few prototypes,
31105 which can conflict with char $ac_func (); below.
31106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31107 <limits.h> exists even on freestanding compilers. */
31108
31109#ifdef __STDC__
31110# include <limits.h>
31111#else
31112# include <assert.h>
31113#endif
31114
31115#undef $ac_func
31116
31117/* Override any gcc2 internal prototype to avoid an error. */
31118#ifdef __cplusplus
31119extern "C"
31120{
31121#endif
31122/* We use char because int might match the return type of a gcc2
31123 builtin and then its argument prototype would still apply. */
31124char $ac_func ();
31125/* The GNU C library defines this for functions which it implements
31126 to always fail with ENOSYS. Some functions are actually named
31127 something starting with __ and the normal name is an alias. */
31128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31129choke me
31130#else
31131char (*f) () = $ac_func;
31132#endif
31133#ifdef __cplusplus
31134}
31135#endif
31136
31137int
31138main ()
31139{
31140return f != $ac_func;
31141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
31146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31147 (eval $ac_link) 2>conftest.er1
31148 ac_status=$?
31149 grep -v '^ *+' conftest.er1 >conftest.err
31150 rm -f conftest.er1
31151 cat conftest.err >&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
dcc1b6ad
VS
31154 { ac_try='test -z "$ac_c_werror_flag"
31155 || test ! -s conftest.err'
a848cd7e
SC
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
31167 eval "$as_ac_var=yes"
31168else
31169 echo "$as_me: failed program was:" >&5
31170sed 's/^/| /' conftest.$ac_ext >&5
31171
31172eval "$as_ac_var=no"
31173fi
31174rm -f conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
31176fi
31177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31179if test `eval echo '${'$as_ac_var'}'` = yes; then
31180 cat >>confdefs.h <<_ACEOF
31181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31182_ACEOF
31183 break
31184fi
31185done
31186
31187
31188
31189
31190ac_ext=cc
31191ac_cpp='$CXXCPP $CPPFLAGS'
31192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31195
31196
31197
31198for ac_func in strtok_r
31199do
31200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31201echo "$as_me:$LINENO: checking for $ac_func" >&5
31202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31203if eval "test \"\${$as_ac_var+set}\" = set"; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31205else
31206 cat >conftest.$ac_ext <<_ACEOF
31207/* confdefs.h. */
31208_ACEOF
31209cat confdefs.h >>conftest.$ac_ext
31210cat >>conftest.$ac_ext <<_ACEOF
31211/* end confdefs.h. */
31212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31214#define $ac_func innocuous_$ac_func
31215
31216/* System header to define __stub macros and hopefully few prototypes,
31217 which can conflict with char $ac_func (); below.
31218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31219 <limits.h> exists even on freestanding compilers. */
31220
31221#ifdef __STDC__
31222# include <limits.h>
31223#else
31224# include <assert.h>
31225#endif
31226
31227#undef $ac_func
31228
31229/* Override any gcc2 internal prototype to avoid an error. */
31230#ifdef __cplusplus
31231extern "C"
31232{
31233#endif
31234/* We use char because int might match the return type of a gcc2
31235 builtin and then its argument prototype would still apply. */
31236char $ac_func ();
31237/* The GNU C library defines this for functions which it implements
31238 to always fail with ENOSYS. Some functions are actually named
31239 something starting with __ and the normal name is an alias. */
31240#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31241choke me
31242#else
31243char (*f) () = $ac_func;
31244#endif
31245#ifdef __cplusplus
31246}
31247#endif
31248
31249int
31250main ()
31251{
31252return f != $ac_func;
31253 ;
31254 return 0;
31255}
31256_ACEOF
31257rm -f conftest.$ac_objext conftest$ac_exeext
31258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31259 (eval $ac_link) 2>conftest.er1
31260 ac_status=$?
31261 grep -v '^ *+' conftest.er1 >conftest.err
31262 rm -f conftest.er1
31263 cat conftest.err >&5
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); } &&
dcc1b6ad
VS
31266 { ac_try='test -z "$ac_cxx_werror_flag"
31267 || test ! -s conftest.err'
a848cd7e
SC
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest$ac_exeext'
31274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275 (eval $ac_try) 2>&5
31276 ac_status=$?
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 eval "$as_ac_var=yes"
31280else
31281 echo "$as_me: failed program was:" >&5
31282sed 's/^/| /' conftest.$ac_ext >&5
31283
31284eval "$as_ac_var=no"
31285fi
31286rm -f conftest.err conftest.$ac_objext \
31287 conftest$ac_exeext conftest.$ac_ext
31288fi
31289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31291if test `eval echo '${'$as_ac_var'}'` = yes; then
31292 cat >>confdefs.h <<_ACEOF
31293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31294_ACEOF
31295
31296fi
31297done
31298
31299
31300ac_ext=c
31301ac_cpp='$CPP $CPPFLAGS'
31302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31304ac_compiler_gnu=$ac_cv_c_compiler_gnu
31305
31306
31307INET_LINK=
31308
31309for ac_func in inet_addr
31310do
31311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31312echo "$as_me:$LINENO: checking for $ac_func" >&5
31313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31314if eval "test \"\${$as_ac_var+set}\" = set"; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31316else
31317 cat >conftest.$ac_ext <<_ACEOF
31318/* confdefs.h. */
31319_ACEOF
31320cat confdefs.h >>conftest.$ac_ext
31321cat >>conftest.$ac_ext <<_ACEOF
31322/* end confdefs.h. */
31323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31325#define $ac_func innocuous_$ac_func
31326
31327/* System header to define __stub macros and hopefully few prototypes,
31328 which can conflict with char $ac_func (); below.
31329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31330 <limits.h> exists even on freestanding compilers. */
31331
31332#ifdef __STDC__
31333# include <limits.h>
31334#else
31335# include <assert.h>
31336#endif
31337
31338#undef $ac_func
31339
31340/* Override any gcc2 internal prototype to avoid an error. */
31341#ifdef __cplusplus
31342extern "C"
31343{
31344#endif
31345/* We use char because int might match the return type of a gcc2
31346 builtin and then its argument prototype would still apply. */
31347char $ac_func ();
31348/* The GNU C library defines this for functions which it implements
31349 to always fail with ENOSYS. Some functions are actually named
31350 something starting with __ and the normal name is an alias. */
31351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31352choke me
31353#else
31354char (*f) () = $ac_func;
31355#endif
31356#ifdef __cplusplus
31357}
31358#endif
31359
31360int
31361main ()
31362{
31363return f != $ac_func;
31364 ;
31365 return 0;
31366}
31367_ACEOF
31368rm -f conftest.$ac_objext conftest$ac_exeext
31369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31370 (eval $ac_link) 2>conftest.er1
31371 ac_status=$?
31372 grep -v '^ *+' conftest.er1 >conftest.err
31373 rm -f conftest.er1
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } &&
dcc1b6ad
VS
31377 { ac_try='test -z "$ac_c_werror_flag"
31378 || test ! -s conftest.err'
a848cd7e
SC
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; } &&
31384 { ac_try='test -s conftest$ac_exeext'
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
31390 eval "$as_ac_var=yes"
31391else
31392 echo "$as_me: failed program was:" >&5
31393sed 's/^/| /' conftest.$ac_ext >&5
31394
31395eval "$as_ac_var=no"
31396fi
31397rm -f conftest.err conftest.$ac_objext \
31398 conftest$ac_exeext conftest.$ac_ext
31399fi
31400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31402if test `eval echo '${'$as_ac_var'}'` = yes; then
31403 cat >>confdefs.h <<_ACEOF
31404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31405_ACEOF
31406 cat >>confdefs.h <<\_ACEOF
31407#define HAVE_INET_ADDR 1
31408_ACEOF
31409
31410else
31411
31412 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31413echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31414if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31415 echo $ECHO_N "(cached) $ECHO_C" >&6
31416else
31417 ac_check_lib_save_LIBS=$LIBS
31418LIBS="-lnsl $LIBS"
31419cat >conftest.$ac_ext <<_ACEOF
31420/* confdefs.h. */
31421_ACEOF
31422cat confdefs.h >>conftest.$ac_ext
31423cat >>conftest.$ac_ext <<_ACEOF
31424/* end confdefs.h. */
31425
31426/* Override any gcc2 internal prototype to avoid an error. */
31427#ifdef __cplusplus
31428extern "C"
31429#endif
31430/* We use char because int might match the return type of a gcc2
31431 builtin and then its argument prototype would still apply. */
31432char inet_addr ();
31433int
31434main ()
31435{
31436inet_addr ();
31437 ;
31438 return 0;
31439}
31440_ACEOF
31441rm -f conftest.$ac_objext conftest$ac_exeext
31442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31443 (eval $ac_link) 2>conftest.er1
31444 ac_status=$?
31445 grep -v '^ *+' conftest.er1 >conftest.err
31446 rm -f conftest.er1
31447 cat conftest.err >&5
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); } &&
dcc1b6ad
VS
31450 { ac_try='test -z "$ac_c_werror_flag"
31451 || test ! -s conftest.err'
a848cd7e
SC
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; } &&
31457 { ac_try='test -s conftest$ac_exeext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 ac_cv_lib_nsl_inet_addr=yes
31464else
31465 echo "$as_me: failed program was:" >&5
31466sed 's/^/| /' conftest.$ac_ext >&5
31467
31468ac_cv_lib_nsl_inet_addr=no
31469fi
31470rm -f conftest.err conftest.$ac_objext \
31471 conftest$ac_exeext conftest.$ac_ext
31472LIBS=$ac_check_lib_save_LIBS
31473fi
31474echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31475echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31476if test $ac_cv_lib_nsl_inet_addr = yes; then
31477 INET_LINK="nsl"
31478else
31479
31480 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31481echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31482if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31483 echo $ECHO_N "(cached) $ECHO_C" >&6
31484else
31485 ac_check_lib_save_LIBS=$LIBS
31486LIBS="-lresolv $LIBS"
31487cat >conftest.$ac_ext <<_ACEOF
31488/* confdefs.h. */
31489_ACEOF
31490cat confdefs.h >>conftest.$ac_ext
31491cat >>conftest.$ac_ext <<_ACEOF
31492/* end confdefs.h. */
31493
31494/* Override any gcc2 internal prototype to avoid an error. */
31495#ifdef __cplusplus
31496extern "C"
31497#endif
31498/* We use char because int might match the return type of a gcc2
31499 builtin and then its argument prototype would still apply. */
31500char inet_addr ();
31501int
31502main ()
31503{
31504inet_addr ();
31505 ;
31506 return 0;
31507}
31508_ACEOF
31509rm -f conftest.$ac_objext conftest$ac_exeext
31510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31511 (eval $ac_link) 2>conftest.er1
31512 ac_status=$?
31513 grep -v '^ *+' conftest.er1 >conftest.err
31514 rm -f conftest.er1
31515 cat conftest.err >&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); } &&
dcc1b6ad
VS
31518 { ac_try='test -z "$ac_c_werror_flag"
31519 || test ! -s conftest.err'
a848cd7e
SC
31520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31521 (eval $ac_try) 2>&5
31522 ac_status=$?
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); }; } &&
31525 { ac_try='test -s conftest$ac_exeext'
31526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31527 (eval $ac_try) 2>&5
31528 ac_status=$?
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); }; }; then
31531 ac_cv_lib_resolv_inet_addr=yes
31532else
31533 echo "$as_me: failed program was:" >&5
31534sed 's/^/| /' conftest.$ac_ext >&5
31535
31536ac_cv_lib_resolv_inet_addr=no
31537fi
31538rm -f conftest.err conftest.$ac_objext \
31539 conftest$ac_exeext conftest.$ac_ext
31540LIBS=$ac_check_lib_save_LIBS
31541fi
31542echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31543echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31544if test $ac_cv_lib_resolv_inet_addr = yes; then
31545 INET_LINK="resolv"
31546else
31547
31548 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31549echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31550if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31551 echo $ECHO_N "(cached) $ECHO_C" >&6
31552else
31553 ac_check_lib_save_LIBS=$LIBS
31554LIBS="-lsocket $LIBS"
31555cat >conftest.$ac_ext <<_ACEOF
31556/* confdefs.h. */
31557_ACEOF
31558cat confdefs.h >>conftest.$ac_ext
31559cat >>conftest.$ac_ext <<_ACEOF
31560/* end confdefs.h. */
31561
31562/* Override any gcc2 internal prototype to avoid an error. */
31563#ifdef __cplusplus
31564extern "C"
31565#endif
31566/* We use char because int might match the return type of a gcc2
31567 builtin and then its argument prototype would still apply. */
31568char inet_addr ();
31569int
31570main ()
31571{
31572inet_addr ();
31573 ;
31574 return 0;
31575}
31576_ACEOF
31577rm -f conftest.$ac_objext conftest$ac_exeext
31578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31579 (eval $ac_link) 2>conftest.er1
31580 ac_status=$?
31581 grep -v '^ *+' conftest.er1 >conftest.err
31582 rm -f conftest.er1
31583 cat conftest.err >&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); } &&
dcc1b6ad
VS
31586 { ac_try='test -z "$ac_c_werror_flag"
31587 || test ! -s conftest.err'
a848cd7e
SC
31588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31589 (eval $ac_try) 2>&5
31590 ac_status=$?
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; } &&
31593 { ac_try='test -s conftest$ac_exeext'
31594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31595 (eval $ac_try) 2>&5
31596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
31599 ac_cv_lib_socket_inet_addr=yes
31600else
31601 echo "$as_me: failed program was:" >&5
31602sed 's/^/| /' conftest.$ac_ext >&5
31603
31604ac_cv_lib_socket_inet_addr=no
31605fi
31606rm -f conftest.err conftest.$ac_objext \
31607 conftest$ac_exeext conftest.$ac_ext
31608LIBS=$ac_check_lib_save_LIBS
31609fi
31610echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31611echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31612if test $ac_cv_lib_socket_inet_addr = yes; then
31613 INET_LINK="socket"
31614
31615fi
31616
31617
31618
31619fi
31620
31621
31622
31623fi
31624
31625
31626
31627fi
31628done
31629
31630
31631
31632for ac_func in inet_aton
31633do
31634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31635echo "$as_me:$LINENO: checking for $ac_func" >&5
31636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31637if eval "test \"\${$as_ac_var+set}\" = set"; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31639else
31640 cat >conftest.$ac_ext <<_ACEOF
31641/* confdefs.h. */
31642_ACEOF
31643cat confdefs.h >>conftest.$ac_ext
31644cat >>conftest.$ac_ext <<_ACEOF
31645/* end confdefs.h. */
31646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31648#define $ac_func innocuous_$ac_func
31649
31650/* System header to define __stub macros and hopefully few prototypes,
31651 which can conflict with char $ac_func (); below.
31652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31653 <limits.h> exists even on freestanding compilers. */
31654
31655#ifdef __STDC__
31656# include <limits.h>
31657#else
31658# include <assert.h>
31659#endif
31660
31661#undef $ac_func
31662
31663/* Override any gcc2 internal prototype to avoid an error. */
31664#ifdef __cplusplus
31665extern "C"
31666{
31667#endif
31668/* We use char because int might match the return type of a gcc2
31669 builtin and then its argument prototype would still apply. */
31670char $ac_func ();
31671/* The GNU C library defines this for functions which it implements
31672 to always fail with ENOSYS. Some functions are actually named
31673 something starting with __ and the normal name is an alias. */
31674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31675choke me
31676#else
31677char (*f) () = $ac_func;
31678#endif
31679#ifdef __cplusplus
31680}
31681#endif
31682
31683int
31684main ()
31685{
31686return f != $ac_func;
31687 ;
31688 return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext conftest$ac_exeext
31692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693 (eval $ac_link) 2>conftest.er1
31694 ac_status=$?
31695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } &&
dcc1b6ad
VS
31700 { ac_try='test -z "$ac_c_werror_flag"
31701 || test ! -s conftest.err'
a848cd7e
SC
31702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703 (eval $ac_try) 2>&5
31704 ac_status=$?
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; } &&
31707 { ac_try='test -s conftest$ac_exeext'
31708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31709 (eval $ac_try) 2>&5
31710 ac_status=$?
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); }; }; then
31713 eval "$as_ac_var=yes"
31714else
31715 echo "$as_me: failed program was:" >&5
31716sed 's/^/| /' conftest.$ac_ext >&5
31717
31718eval "$as_ac_var=no"
31719fi
31720rm -f conftest.err conftest.$ac_objext \
31721 conftest$ac_exeext conftest.$ac_ext
31722fi
31723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31725if test `eval echo '${'$as_ac_var'}'` = yes; then
31726 cat >>confdefs.h <<_ACEOF
31727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31728_ACEOF
31729 cat >>confdefs.h <<\_ACEOF
31730#define HAVE_INET_ATON 1
31731_ACEOF
31732
31733else
31734
31735 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31736echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31737echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31738if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31740else
31741 ac_check_lib_save_LIBS=$LIBS
31742LIBS="-l$INET_LINK $LIBS"
31743cat >conftest.$ac_ext <<_ACEOF
31744/* confdefs.h. */
31745_ACEOF
31746cat confdefs.h >>conftest.$ac_ext
31747cat >>conftest.$ac_ext <<_ACEOF
31748/* end confdefs.h. */
31749
31750/* Override any gcc2 internal prototype to avoid an error. */
31751#ifdef __cplusplus
31752extern "C"
31753#endif
31754/* We use char because int might match the return type of a gcc2
31755 builtin and then its argument prototype would still apply. */
31756char inet_aton ();
31757int
31758main ()
31759{
31760inet_aton ();
31761 ;
31762 return 0;
31763}
31764_ACEOF
31765rm -f conftest.$ac_objext conftest$ac_exeext
31766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31767 (eval $ac_link) 2>conftest.er1
31768 ac_status=$?
31769 grep -v '^ *+' conftest.er1 >conftest.err
31770 rm -f conftest.er1
31771 cat conftest.err >&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); } &&
dcc1b6ad
VS
31774 { ac_try='test -z "$ac_c_werror_flag"
31775 || test ! -s conftest.err'
a848cd7e
SC
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; } &&
31781 { ac_try='test -s conftest$ac_exeext'
31782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31783 (eval $ac_try) 2>&5
31784 ac_status=$?
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); }; }; then
31787 eval "$as_ac_Lib=yes"
31788else
31789 echo "$as_me: failed program was:" >&5
31790sed 's/^/| /' conftest.$ac_ext >&5
31791
31792eval "$as_ac_Lib=no"
31793fi
31794rm -f conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
31796LIBS=$ac_check_lib_save_LIBS
31797fi
31798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31799echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31800if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31801 cat >>confdefs.h <<\_ACEOF
31802#define HAVE_INET_ATON 1
31803_ACEOF
31804
31805fi
31806
31807
31808fi
31809done
31810
31811
31812if test "x$INET_LINK" != "x"; then
31813 cat >>confdefs.h <<\_ACEOF
31814#define HAVE_INET_ADDR 1
31815_ACEOF
31816
31817 INET_LINK=" -l$INET_LINK"
31818fi
31819
31820fi
31821
31822
31823
31824EXTRALIBS_ESD=
31825echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31826echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31827if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31828 echo $ECHO_N "(cached) $ECHO_C" >&6
31829else
31830 ac_check_lib_save_LIBS=$LIBS
31831LIBS="-lesd $LIBS"
31832cat >conftest.$ac_ext <<_ACEOF
31833/* confdefs.h. */
31834_ACEOF
31835cat confdefs.h >>conftest.$ac_ext
31836cat >>conftest.$ac_ext <<_ACEOF
31837/* end confdefs.h. */
31838
31839/* Override any gcc2 internal prototype to avoid an error. */
31840#ifdef __cplusplus
31841extern "C"
31842#endif
31843/* We use char because int might match the return type of a gcc2
31844 builtin and then its argument prototype would still apply. */
31845char esd_close ();
31846int
31847main ()
31848{
31849esd_close ();
31850 ;
31851 return 0;
31852}
31853_ACEOF
31854rm -f conftest.$ac_objext conftest$ac_exeext
31855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31856 (eval $ac_link) 2>conftest.er1
31857 ac_status=$?
31858 grep -v '^ *+' conftest.er1 >conftest.err
31859 rm -f conftest.er1
31860 cat conftest.err >&5
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } &&
dcc1b6ad
VS
31863 { ac_try='test -z "$ac_c_werror_flag"
31864 || test ! -s conftest.err'
a848cd7e
SC
31865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31866 (eval $ac_try) 2>&5
31867 ac_status=$?
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); }; } &&
31870 { ac_try='test -s conftest$ac_exeext'
31871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31872 (eval $ac_try) 2>&5
31873 ac_status=$?
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); }; }; then
31876 ac_cv_lib_esd_esd_close=yes
31877else
31878 echo "$as_me: failed program was:" >&5
31879sed 's/^/| /' conftest.$ac_ext >&5
31880
31881ac_cv_lib_esd_esd_close=no
31882fi
31883rm -f conftest.err conftest.$ac_objext \
31884 conftest$ac_exeext conftest.$ac_ext
31885LIBS=$ac_check_lib_save_LIBS
31886fi
31887echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31888echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31889if test $ac_cv_lib_esd_esd_close = yes; then
31890
31891
31892for ac_header in esd.h
31893do
31894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31895if eval "test \"\${$as_ac_Header+set}\" = set"; then
31896 echo "$as_me:$LINENO: checking for $ac_header" >&5
31897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31898if eval "test \"\${$as_ac_Header+set}\" = set"; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900fi
31901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31903else
31904 # Is the header compilable?
31905echo "$as_me:$LINENO: checking $ac_header usability" >&5
31906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31907cat >conftest.$ac_ext <<_ACEOF
31908/* confdefs.h. */
31909_ACEOF
31910cat confdefs.h >>conftest.$ac_ext
31911cat >>conftest.$ac_ext <<_ACEOF
31912/* end confdefs.h. */
31913$ac_includes_default
31914#include <$ac_header>
31915_ACEOF
31916rm -f conftest.$ac_objext
31917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31918 (eval $ac_compile) 2>conftest.er1
31919 ac_status=$?
31920 grep -v '^ *+' conftest.er1 >conftest.err
31921 rm -f conftest.er1
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); } &&
dcc1b6ad
VS
31925 { ac_try='test -z "$ac_c_werror_flag"
31926 || test ! -s conftest.err'
a848cd7e
SC
31927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31928 (eval $ac_try) 2>&5
31929 ac_status=$?
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; } &&
31932 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31938 ac_header_compiler=yes
31939else
31940 echo "$as_me: failed program was:" >&5
31941sed 's/^/| /' conftest.$ac_ext >&5
31942
31943ac_header_compiler=no
31944fi
31945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31947echo "${ECHO_T}$ac_header_compiler" >&6
31948
31949# Is the header present?
31950echo "$as_me:$LINENO: checking $ac_header presence" >&5
31951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31952cat >conftest.$ac_ext <<_ACEOF
31953/* confdefs.h. */
31954_ACEOF
31955cat confdefs.h >>conftest.$ac_ext
31956cat >>conftest.$ac_ext <<_ACEOF
31957/* end confdefs.h. */
31958#include <$ac_header>
31959_ACEOF
31960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31962 ac_status=$?
31963 grep -v '^ *+' conftest.er1 >conftest.err
31964 rm -f conftest.er1
31965 cat conftest.err >&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); } >/dev/null; then
31968 if test -s conftest.err; then
31969 ac_cpp_err=$ac_c_preproc_warn_flag
31970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31971 else
31972 ac_cpp_err=
31973 fi
31974else
31975 ac_cpp_err=yes
31976fi
31977if test -z "$ac_cpp_err"; then
31978 ac_header_preproc=yes
31979else
31980 echo "$as_me: failed program was:" >&5
31981sed 's/^/| /' conftest.$ac_ext >&5
31982
31983 ac_header_preproc=no
31984fi
31985rm -f conftest.err conftest.$ac_ext
31986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31987echo "${ECHO_T}$ac_header_preproc" >&6
31988
31989# So? What about this header?
31990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31991 yes:no: )
31992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31996 ac_header_preproc=yes
31997 ;;
31998 no:yes:* )
31999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32011 (
32012 cat <<\_ASBOX
32013## ----------------------------------------- ##
32014## Report this to wx-dev@lists.wxwindows.org ##
32015## ----------------------------------------- ##
32016_ASBOX
32017 ) |
32018 sed "s/^/$as_me: WARNING: /" >&2
32019 ;;
32020esac
32021echo "$as_me:$LINENO: checking for $ac_header" >&5
32022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32023if eval "test \"\${$as_ac_Header+set}\" = set"; then
32024 echo $ECHO_N "(cached) $ECHO_C" >&6
32025else
32026 eval "$as_ac_Header=\$ac_header_preproc"
32027fi
32028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32030
32031fi
32032if test `eval echo '${'$as_ac_Header'}'` = yes; then
32033 cat >>confdefs.h <<_ACEOF
32034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32035_ACEOF
32036
32037 EXTRALIBS_ESD="-lesd"
32038
32039fi
32040
32041done
32042
32043
32044fi
32045
32046
32047
32048echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32049echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32050cat >conftest.$ac_ext <<_ACEOF
32051/* confdefs.h. */
32052_ACEOF
32053cat confdefs.h >>conftest.$ac_ext
32054cat >>conftest.$ac_ext <<_ACEOF
32055/* end confdefs.h. */
32056#ifdef __linux__
32057 #include <linux/cdrom.h>
32058 #else
32059 /* For Solaris */
32060 #include <sys/cdio.h>
32061 #endif
32062
32063int
32064main ()
32065{
32066struct cdrom_tocentry entry, old_entry;
32067 ;
32068 return 0;
32069}
32070_ACEOF
32071rm -f conftest.$ac_objext
32072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32073 (eval $ac_compile) 2>conftest.er1
32074 ac_status=$?
32075 grep -v '^ *+' conftest.er1 >conftest.err
32076 rm -f conftest.er1
32077 cat conftest.err >&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); } &&
dcc1b6ad
VS
32080 { ac_try='test -z "$ac_c_werror_flag"
32081 || test ! -s conftest.err'
a848cd7e
SC
32082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32083 (eval $ac_try) 2>&5
32084 ac_status=$?
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); }; } &&
32087 { ac_try='test -s conftest.$ac_objext'
32088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32089 (eval $ac_try) 2>&5
32090 ac_status=$?
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); }; }; then
32093 echo "$as_me:$LINENO: result: yes" >&5
32094echo "${ECHO_T}yes" >&6
32095 cat >>confdefs.h <<\_ACEOF
32096#define HAVE_KNOWN_CDROM_INTERFACE 1
32097_ACEOF
32098
32099else
32100 echo "$as_me: failed program was:" >&5
32101sed 's/^/| /' conftest.$ac_ext >&5
32102
32103echo "$as_me:$LINENO: result: no" >&5
32104echo "${ECHO_T}no" >&6
32105fi
32106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32107
32108
32109cat >confcache <<\_ACEOF
32110# This file is a shell script that caches the results of configure
32111# tests run on this system so they can be shared between configure
32112# scripts and configure runs, see configure's option --config-cache.
32113# It is not useful on other systems. If it contains results you don't
32114# want to keep, you may remove or edit it.
32115#
32116# config.status only pays attention to the cache file if you give it
32117# the --recheck option to rerun configure.
32118#
32119# `ac_cv_env_foo' variables (set or unset) will be overridden when
32120# loading this file, other *unset* `ac_cv_foo' will be assigned the
32121# following values.
32122
32123_ACEOF
32124
32125# The following way of writing the cache mishandles newlines in values,
32126# but we know of no workaround that is simple, portable, and efficient.
32127# So, don't put newlines in cache variables' values.
32128# Ultrix sh set writes to stderr and can't be redirected directly,
32129# and sets the high bit in the cache file unless we assign to the vars.
32130{
32131 (set) 2>&1 |
32132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32133 *ac_space=\ *)
32134 # `set' does not quote correctly, so add quotes (double-quote
32135 # substitution turns \\\\ into \\, and sed turns \\ into \).
32136 sed -n \
32137 "s/'/'\\\\''/g;
32138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32139 ;;
32140 *)
32141 # `set' quotes correctly as required by POSIX, so do not add quotes.
32142 sed -n \
32143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32144 ;;
32145 esac;
32146} |
32147 sed '
32148 t clear
32149 : clear
32150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32151 t end
32152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32153 : end' >>confcache
32154if diff $cache_file confcache >/dev/null 2>&1; then :; else
32155 if test -w $cache_file; then
32156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32157 cat confcache >$cache_file
32158 else
32159 echo "not updating unwritable cache $cache_file"
32160 fi
32161fi
32162rm -f confcache
32163
32164
32165CPP_MT_FLAG=
32166if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32167
32168
32169 THREADS_LINK=
32170 THREADS_CFLAGS=
32171
32172 if test "$wxUSE_THREADS" = "yes" ; then
32173 if test "$USE_BEOS" = 1; then
32174 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32175echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32176 wxUSE_THREADS="no"
32177 fi
32178 fi
32179
32180 if test "$wxUSE_THREADS" = "yes" ; then
32181
32182
32183 THREAD_OPTS="-pthread"
32184 case "${host}" in
32185 *-*-solaris2* | *-*-sunos4* )
32186 if test "x$GCC" = "xyes"; then
32187 THREAD_OPTS="-pthreads $THREAD_OPTS"
32188 else
32189 THREAD_OPTS="-mt $THREAD_OPTS"
32190 fi
32191 ;;
32192 *-*-freebsd*)
32193 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32194 ;;
32195 *-*-darwin* | *-*-cygwin* )
32196 THREAD_OPTS=""
32197 ;;
32198 *-*-aix*)
32199 THREAD_OPTS="pthreads"
32200 ;;
32201 *-hp-hpux* )
32202 if test "x$GCC" != "xyes"; then
32203 THREAD_OPTS=""
32204 fi
32205 ;;
32206
32207 *-*-irix* )
32208 if test "x$GCC" = "xyes"; then
32209 THREAD_OPTS=""
32210 fi
32211 ;;
32212
32213 *-*-*UnixWare*)
32214 if test "x$GCC" != "xyes"; then
32215 THREAD_OPTS="-Ethread"
32216 fi
32217 ;;
32218 esac
32219
32220 THREAD_OPTS="$THREAD_OPTS pthread none"
32221
32222 THREADS_OK=no
32223 for flag in $THREAD_OPTS; do
32224 case $flag in
32225 none)
32226 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32227echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32228 ;;
32229
32230 -*)
32231 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32232echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32233 THREADS_CFLAGS="$flag"
32234 ;;
32235
32236 *)
32237 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32238echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32239 THREADS_LINK="-l$flag"
32240 ;;
32241 esac
32242
32243 save_LIBS="$LIBS"
32244 save_CFLAGS="$CFLAGS"
32245 LIBS="$THREADS_LINK $LIBS"
32246 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32247
32248 cat >conftest.$ac_ext <<_ACEOF
32249/* confdefs.h. */
32250_ACEOF
32251cat confdefs.h >>conftest.$ac_ext
32252cat >>conftest.$ac_ext <<_ACEOF
32253/* end confdefs.h. */
32254#include <pthread.h>
32255int
32256main ()
32257{
32258pthread_create(0,0,0,0);
32259 ;
32260 return 0;
32261}
32262_ACEOF
32263rm -f conftest.$ac_objext conftest$ac_exeext
32264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32265 (eval $ac_link) 2>conftest.er1
32266 ac_status=$?
32267 grep -v '^ *+' conftest.er1 >conftest.err
32268 rm -f conftest.er1
32269 cat conftest.err >&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } &&
dcc1b6ad
VS
32272 { ac_try='test -z "$ac_c_werror_flag"
32273 || test ! -s conftest.err'
a848cd7e
SC
32274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32275 (eval $ac_try) 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; } &&
32279 { ac_try='test -s conftest$ac_exeext'
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32282 ac_status=$?
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; }; then
32285 THREADS_OK=yes
32286else
32287 echo "$as_me: failed program was:" >&5
32288sed 's/^/| /' conftest.$ac_ext >&5
32289
32290fi
32291rm -f conftest.err conftest.$ac_objext \
32292 conftest$ac_exeext conftest.$ac_ext
32293
32294 LIBS="$save_LIBS"
32295 CFLAGS="$save_CFLAGS"
32296
32297 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32298echo "${ECHO_T}$THREADS_OK" >&6
32299 if test "x$THREADS_OK" = "xyes"; then
32300 break;
32301 fi
32302
32303 THREADS_LINK=""
32304 THREADS_CFLAGS=""
32305 done
32306
32307 if test "x$THREADS_OK" != "xyes"; then
32308 wxUSE_THREADS=no
32309 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32310echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32311 else
32312 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32313 LIBS="$THREADS_LINK $LIBS"
32314
32315 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32316echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32317 flag=no
32318 case "${host}" in
32319 *-aix*)
32320 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32321 flag="-D_THREAD_SAFE"
32322 ;;
32323 *-freebsd*)
32324 flag="-D_THREAD_SAFE"
32325 ;;
32326 *-hp-hpux* )
32327 flag="-D_REENTRANT"
32328 if test "x$GCC" != "xyes"; then
32329 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32330
32331 LIBS="$LIBS -lcma"
a848cd7e
SC
32332 fi
32333 ;;
32334 *solaris* | alpha*-osf*)
32335 flag="-D_REENTRANT"
32336 ;;
32337 esac
32338 echo "$as_me:$LINENO: result: ${flag}" >&5
32339echo "${ECHO_T}${flag}" >&6
32340 if test "x$flag" != xno; then
32341 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32342 fi
32343
32344 if test "x$THREADS_CFLAGS" != "x"; then
32345 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32346 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32347 fi
32348 fi
32349 fi
32350
32351 if test "$wxUSE_THREADS" = "yes" ; then
32352
32353for ac_func in thr_setconcurrency
32354do
32355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32356echo "$as_me:$LINENO: checking for $ac_func" >&5
32357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32358if eval "test \"\${$as_ac_var+set}\" = set"; then
32359 echo $ECHO_N "(cached) $ECHO_C" >&6
32360else
32361 cat >conftest.$ac_ext <<_ACEOF
32362/* confdefs.h. */
32363_ACEOF
32364cat confdefs.h >>conftest.$ac_ext
32365cat >>conftest.$ac_ext <<_ACEOF
32366/* end confdefs.h. */
32367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32369#define $ac_func innocuous_$ac_func
32370
32371/* System header to define __stub macros and hopefully few prototypes,
32372 which can conflict with char $ac_func (); below.
32373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32374 <limits.h> exists even on freestanding compilers. */
32375
32376#ifdef __STDC__
32377# include <limits.h>
32378#else
32379# include <assert.h>
32380#endif
32381
32382#undef $ac_func
32383
32384/* Override any gcc2 internal prototype to avoid an error. */
32385#ifdef __cplusplus
32386extern "C"
32387{
32388#endif
32389/* We use char because int might match the return type of a gcc2
32390 builtin and then its argument prototype would still apply. */
32391char $ac_func ();
32392/* The GNU C library defines this for functions which it implements
32393 to always fail with ENOSYS. Some functions are actually named
32394 something starting with __ and the normal name is an alias. */
32395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32396choke me
32397#else
32398char (*f) () = $ac_func;
32399#endif
32400#ifdef __cplusplus
32401}
32402#endif
32403
32404int
32405main ()
32406{
32407return f != $ac_func;
32408 ;
32409 return 0;
32410}
32411_ACEOF
32412rm -f conftest.$ac_objext conftest$ac_exeext
32413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32414 (eval $ac_link) 2>conftest.er1
32415 ac_status=$?
32416 grep -v '^ *+' conftest.er1 >conftest.err
32417 rm -f conftest.er1
32418 cat conftest.err >&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); } &&
dcc1b6ad
VS
32421 { ac_try='test -z "$ac_c_werror_flag"
32422 || test ! -s conftest.err'
a848cd7e
SC
32423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424 (eval $ac_try) 2>&5
32425 ac_status=$?
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); }; } &&
32428 { ac_try='test -s conftest$ac_exeext'
32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430 (eval $ac_try) 2>&5
32431 ac_status=$?
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); }; }; then
32434 eval "$as_ac_var=yes"
32435else
32436 echo "$as_me: failed program was:" >&5
32437sed 's/^/| /' conftest.$ac_ext >&5
32438
32439eval "$as_ac_var=no"
32440fi
32441rm -f conftest.err conftest.$ac_objext \
32442 conftest$ac_exeext conftest.$ac_ext
32443fi
32444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32445echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32446if test `eval echo '${'$as_ac_var'}'` = yes; then
32447 cat >>confdefs.h <<_ACEOF
32448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32449_ACEOF
32450
32451fi
32452done
32453
32454
32455
32456for ac_header in sched.h
32457do
32458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32459if eval "test \"\${$as_ac_Header+set}\" = set"; then
32460 echo "$as_me:$LINENO: checking for $ac_header" >&5
32461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32462if eval "test \"\${$as_ac_Header+set}\" = set"; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464fi
32465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32467else
32468 # Is the header compilable?
32469echo "$as_me:$LINENO: checking $ac_header usability" >&5
32470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32471cat >conftest.$ac_ext <<_ACEOF
32472/* confdefs.h. */
32473_ACEOF
32474cat confdefs.h >>conftest.$ac_ext
32475cat >>conftest.$ac_ext <<_ACEOF
32476/* end confdefs.h. */
32477$ac_includes_default
32478#include <$ac_header>
32479_ACEOF
32480rm -f conftest.$ac_objext
32481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32482 (eval $ac_compile) 2>conftest.er1
32483 ac_status=$?
32484 grep -v '^ *+' conftest.er1 >conftest.err
32485 rm -f conftest.er1
32486 cat conftest.err >&5
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } &&
dcc1b6ad
VS
32489 { ac_try='test -z "$ac_c_werror_flag"
32490 || test ! -s conftest.err'
a848cd7e
SC
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; } &&
32496 { ac_try='test -s conftest.$ac_objext'
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; }; then
32502 ac_header_compiler=yes
32503else
32504 echo "$as_me: failed program was:" >&5
32505sed 's/^/| /' conftest.$ac_ext >&5
32506
32507ac_header_compiler=no
32508fi
32509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32511echo "${ECHO_T}$ac_header_compiler" >&6
32512
32513# Is the header present?
32514echo "$as_me:$LINENO: checking $ac_header presence" >&5
32515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32516cat >conftest.$ac_ext <<_ACEOF
32517/* confdefs.h. */
32518_ACEOF
32519cat confdefs.h >>conftest.$ac_ext
32520cat >>conftest.$ac_ext <<_ACEOF
32521/* end confdefs.h. */
32522#include <$ac_header>
32523_ACEOF
32524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32526 ac_status=$?
32527 grep -v '^ *+' conftest.er1 >conftest.err
32528 rm -f conftest.er1
32529 cat conftest.err >&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); } >/dev/null; then
32532 if test -s conftest.err; then
32533 ac_cpp_err=$ac_c_preproc_warn_flag
32534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32535 else
32536 ac_cpp_err=
32537 fi
32538else
32539 ac_cpp_err=yes
32540fi
32541if test -z "$ac_cpp_err"; then
32542 ac_header_preproc=yes
32543else
32544 echo "$as_me: failed program was:" >&5
32545sed 's/^/| /' conftest.$ac_ext >&5
32546
32547 ac_header_preproc=no
32548fi
32549rm -f conftest.err conftest.$ac_ext
32550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32551echo "${ECHO_T}$ac_header_preproc" >&6
32552
32553# So? What about this header?
32554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32555 yes:no: )
32556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32560 ac_header_preproc=yes
32561 ;;
32562 no:yes:* )
32563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32575 (
32576 cat <<\_ASBOX
32577## ----------------------------------------- ##
32578## Report this to wx-dev@lists.wxwindows.org ##
32579## ----------------------------------------- ##
32580_ASBOX
32581 ) |
32582 sed "s/^/$as_me: WARNING: /" >&2
32583 ;;
32584esac
32585echo "$as_me:$LINENO: checking for $ac_header" >&5
32586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32587if eval "test \"\${$as_ac_Header+set}\" = set"; then
32588 echo $ECHO_N "(cached) $ECHO_C" >&6
32589else
32590 eval "$as_ac_Header=\$ac_header_preproc"
32591fi
32592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32594
32595fi
32596if test `eval echo '${'$as_ac_Header'}'` = yes; then
32597 cat >>confdefs.h <<_ACEOF
32598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32599_ACEOF
32600
32601fi
32602
32603done
32604
32605 if test "$ac_cv_header_sched_h" = "yes"; then
32606 echo "$as_me:$LINENO: checking for sched_yield" >&5
32607echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32608if test "${ac_cv_func_sched_yield+set}" = set; then
32609 echo $ECHO_N "(cached) $ECHO_C" >&6
32610else
32611 cat >conftest.$ac_ext <<_ACEOF
32612/* confdefs.h. */
32613_ACEOF
32614cat confdefs.h >>conftest.$ac_ext
32615cat >>conftest.$ac_ext <<_ACEOF
32616/* end confdefs.h. */
32617/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32619#define sched_yield innocuous_sched_yield
32620
32621/* System header to define __stub macros and hopefully few prototypes,
32622 which can conflict with char sched_yield (); below.
32623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32624 <limits.h> exists even on freestanding compilers. */
32625
32626#ifdef __STDC__
32627# include <limits.h>
32628#else
32629# include <assert.h>
32630#endif
32631
32632#undef sched_yield
32633
32634/* Override any gcc2 internal prototype to avoid an error. */
32635#ifdef __cplusplus
32636extern "C"
32637{
32638#endif
32639/* We use char because int might match the return type of a gcc2
32640 builtin and then its argument prototype would still apply. */
32641char sched_yield ();
32642/* The GNU C library defines this for functions which it implements
32643 to always fail with ENOSYS. Some functions are actually named
32644 something starting with __ and the normal name is an alias. */
32645#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32646choke me
32647#else
32648char (*f) () = sched_yield;
32649#endif
32650#ifdef __cplusplus
32651}
32652#endif
32653
32654int
32655main ()
32656{
32657return f != sched_yield;
32658 ;
32659 return 0;
32660}
32661_ACEOF
32662rm -f conftest.$ac_objext conftest$ac_exeext
32663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32664 (eval $ac_link) 2>conftest.er1
32665 ac_status=$?
32666 grep -v '^ *+' conftest.er1 >conftest.err
32667 rm -f conftest.er1
32668 cat conftest.err >&5
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); } &&
dcc1b6ad
VS
32671 { ac_try='test -z "$ac_c_werror_flag"
32672 || test ! -s conftest.err'
a848cd7e
SC
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; } &&
32678 { ac_try='test -s conftest$ac_exeext'
32679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680 (eval $ac_try) 2>&5
32681 ac_status=$?
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); }; }; then
32684 ac_cv_func_sched_yield=yes
32685else
32686 echo "$as_me: failed program was:" >&5
32687sed 's/^/| /' conftest.$ac_ext >&5
32688
32689ac_cv_func_sched_yield=no
32690fi
32691rm -f conftest.err conftest.$ac_objext \
32692 conftest$ac_exeext conftest.$ac_ext
32693fi
32694echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32695echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32696if test $ac_cv_func_sched_yield = yes; then
32697 cat >>confdefs.h <<\_ACEOF
32698#define HAVE_SCHED_YIELD 1
32699_ACEOF
32700
32701else
32702
32703 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32704echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32705if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32706 echo $ECHO_N "(cached) $ECHO_C" >&6
32707else
32708 ac_check_lib_save_LIBS=$LIBS
32709LIBS="-lposix4 $LIBS"
32710cat >conftest.$ac_ext <<_ACEOF
32711/* confdefs.h. */
32712_ACEOF
32713cat confdefs.h >>conftest.$ac_ext
32714cat >>conftest.$ac_ext <<_ACEOF
32715/* end confdefs.h. */
32716
32717/* Override any gcc2 internal prototype to avoid an error. */
32718#ifdef __cplusplus
32719extern "C"
32720#endif
32721/* We use char because int might match the return type of a gcc2
32722 builtin and then its argument prototype would still apply. */
32723char sched_yield ();
32724int
32725main ()
32726{
32727sched_yield ();
32728 ;
32729 return 0;
32730}
32731_ACEOF
32732rm -f conftest.$ac_objext conftest$ac_exeext
32733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32734 (eval $ac_link) 2>conftest.er1
32735 ac_status=$?
32736 grep -v '^ *+' conftest.er1 >conftest.err
32737 rm -f conftest.er1
32738 cat conftest.err >&5
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); } &&
dcc1b6ad
VS
32741 { ac_try='test -z "$ac_c_werror_flag"
32742 || test ! -s conftest.err'
a848cd7e
SC
32743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744 (eval $ac_try) 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; } &&
32748 { ac_try='test -s conftest$ac_exeext'
32749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32750 (eval $ac_try) 2>&5
32751 ac_status=$?
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
32754 ac_cv_lib_posix4_sched_yield=yes
32755else
32756 echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
32759ac_cv_lib_posix4_sched_yield=no
32760fi
32761rm -f conftest.err conftest.$ac_objext \
32762 conftest$ac_exeext conftest.$ac_ext
32763LIBS=$ac_check_lib_save_LIBS
32764fi
32765echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32766echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32767if test $ac_cv_lib_posix4_sched_yield = yes; then
32768 cat >>confdefs.h <<\_ACEOF
32769#define HAVE_SCHED_YIELD 1
32770_ACEOF
32771 POSIX4_LINK=" -lposix4"
32772else
32773 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32774echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32775
32776fi
32777
32778
32779
32780fi
32781
32782 fi
32783
32784 HAVE_PRIOR_FUNCS=0
32785 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32786echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32787if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32788 echo $ECHO_N "(cached) $ECHO_C" >&6
32789else
32790 cat >conftest.$ac_ext <<_ACEOF
32791/* confdefs.h. */
32792_ACEOF
32793cat confdefs.h >>conftest.$ac_ext
32794cat >>conftest.$ac_ext <<_ACEOF
32795/* end confdefs.h. */
32796/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32798#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32799
32800/* System header to define __stub macros and hopefully few prototypes,
32801 which can conflict with char pthread_attr_getschedpolicy (); below.
32802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32803 <limits.h> exists even on freestanding compilers. */
32804
32805#ifdef __STDC__
32806# include <limits.h>
32807#else
32808# include <assert.h>
32809#endif
32810
32811#undef pthread_attr_getschedpolicy
32812
32813/* Override any gcc2 internal prototype to avoid an error. */
32814#ifdef __cplusplus
32815extern "C"
32816{
32817#endif
32818/* We use char because int might match the return type of a gcc2
32819 builtin and then its argument prototype would still apply. */
32820char pthread_attr_getschedpolicy ();
32821/* The GNU C library defines this for functions which it implements
32822 to always fail with ENOSYS. Some functions are actually named
32823 something starting with __ and the normal name is an alias. */
32824#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32825choke me
32826#else
32827char (*f) () = pthread_attr_getschedpolicy;
32828#endif
32829#ifdef __cplusplus
32830}
32831#endif
32832
32833int
32834main ()
32835{
32836return f != pthread_attr_getschedpolicy;
32837 ;
32838 return 0;
32839}
32840_ACEOF
32841rm -f conftest.$ac_objext conftest$ac_exeext
32842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32843 (eval $ac_link) 2>conftest.er1
32844 ac_status=$?
32845 grep -v '^ *+' conftest.er1 >conftest.err
32846 rm -f conftest.er1
32847 cat conftest.err >&5
32848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849 (exit $ac_status); } &&
dcc1b6ad
VS
32850 { ac_try='test -z "$ac_c_werror_flag"
32851 || test ! -s conftest.err'
a848cd7e
SC
32852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32853 (eval $ac_try) 2>&5
32854 ac_status=$?
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); }; } &&
32857 { ac_try='test -s conftest$ac_exeext'
32858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32859 (eval $ac_try) 2>&5
32860 ac_status=$?
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); }; }; then
32863 ac_cv_func_pthread_attr_getschedpolicy=yes
32864else
32865 echo "$as_me: failed program was:" >&5
32866sed 's/^/| /' conftest.$ac_ext >&5
32867
32868ac_cv_func_pthread_attr_getschedpolicy=no
32869fi
32870rm -f conftest.err conftest.$ac_objext \
32871 conftest$ac_exeext conftest.$ac_ext
32872fi
32873echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32874echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32875if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32876 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32877echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32878if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32879 echo $ECHO_N "(cached) $ECHO_C" >&6
32880else
32881 cat >conftest.$ac_ext <<_ACEOF
32882/* confdefs.h. */
32883_ACEOF
32884cat confdefs.h >>conftest.$ac_ext
32885cat >>conftest.$ac_ext <<_ACEOF
32886/* end confdefs.h. */
32887/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32889#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32890
32891/* System header to define __stub macros and hopefully few prototypes,
32892 which can conflict with char pthread_attr_setschedparam (); below.
32893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32894 <limits.h> exists even on freestanding compilers. */
32895
32896#ifdef __STDC__
32897# include <limits.h>
32898#else
32899# include <assert.h>
32900#endif
32901
32902#undef pthread_attr_setschedparam
32903
32904/* Override any gcc2 internal prototype to avoid an error. */
32905#ifdef __cplusplus
32906extern "C"
32907{
32908#endif
32909/* We use char because int might match the return type of a gcc2
32910 builtin and then its argument prototype would still apply. */
32911char pthread_attr_setschedparam ();
32912/* The GNU C library defines this for functions which it implements
32913 to always fail with ENOSYS. Some functions are actually named
32914 something starting with __ and the normal name is an alias. */
32915#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32916choke me
32917#else
32918char (*f) () = pthread_attr_setschedparam;
32919#endif
32920#ifdef __cplusplus
32921}
32922#endif
32923
32924int
32925main ()
32926{
32927return f != pthread_attr_setschedparam;
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); } &&
dcc1b6ad
VS
32941 { ac_try='test -z "$ac_c_werror_flag"
32942 || test ! -s conftest.err'
a848cd7e
SC
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; } &&
32948 { ac_try='test -s conftest$ac_exeext'
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 ac_cv_func_pthread_attr_setschedparam=yes
32955else
32956 echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
32959ac_cv_func_pthread_attr_setschedparam=no
32960fi
32961rm -f conftest.err conftest.$ac_objext \
32962 conftest$ac_exeext conftest.$ac_ext
32963fi
32964echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32965echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32966if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32967 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32968echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32969if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32971else
32972 cat >conftest.$ac_ext <<_ACEOF
32973/* confdefs.h. */
32974_ACEOF
32975cat confdefs.h >>conftest.$ac_ext
32976cat >>conftest.$ac_ext <<_ACEOF
32977/* end confdefs.h. */
32978/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32980#define sched_get_priority_max innocuous_sched_get_priority_max
32981
32982/* System header to define __stub macros and hopefully few prototypes,
32983 which can conflict with char sched_get_priority_max (); below.
32984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32985 <limits.h> exists even on freestanding compilers. */
32986
32987#ifdef __STDC__
32988# include <limits.h>
32989#else
32990# include <assert.h>
32991#endif
32992
32993#undef sched_get_priority_max
32994
32995/* Override any gcc2 internal prototype to avoid an error. */
32996#ifdef __cplusplus
32997extern "C"
32998{
32999#endif
33000/* We use char because int might match the return type of a gcc2
33001 builtin and then its argument prototype would still apply. */
33002char sched_get_priority_max ();
33003/* The GNU C library defines this for functions which it implements
33004 to always fail with ENOSYS. Some functions are actually named
33005 something starting with __ and the normal name is an alias. */
33006#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33007choke me
33008#else
33009char (*f) () = sched_get_priority_max;
33010#endif
33011#ifdef __cplusplus
33012}
33013#endif
33014
33015int
33016main ()
33017{
33018return f != sched_get_priority_max;
33019 ;
33020 return 0;
33021}
33022_ACEOF
33023rm -f conftest.$ac_objext conftest$ac_exeext
33024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33025 (eval $ac_link) 2>conftest.er1
33026 ac_status=$?
33027 grep -v '^ *+' conftest.er1 >conftest.err
33028 rm -f conftest.er1
33029 cat conftest.err >&5
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); } &&
dcc1b6ad
VS
33032 { ac_try='test -z "$ac_c_werror_flag"
33033 || test ! -s conftest.err'
a848cd7e
SC
33034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33035 (eval $ac_try) 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; } &&
33039 { ac_try='test -s conftest$ac_exeext'
33040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041 (eval $ac_try) 2>&5
33042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 ac_cv_func_sched_get_priority_max=yes
33046else
33047 echo "$as_me: failed program was:" >&5
33048sed 's/^/| /' conftest.$ac_ext >&5
33049
33050ac_cv_func_sched_get_priority_max=no
33051fi
33052rm -f conftest.err conftest.$ac_objext \
33053 conftest$ac_exeext conftest.$ac_ext
33054fi
33055echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33056echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33057if test $ac_cv_func_sched_get_priority_max = yes; then
33058 HAVE_PRIOR_FUNCS=1
33059else
33060 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33061echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33062if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33063 echo $ECHO_N "(cached) $ECHO_C" >&6
33064else
33065 ac_check_lib_save_LIBS=$LIBS
33066LIBS="-lposix4 $LIBS"
33067cat >conftest.$ac_ext <<_ACEOF
33068/* confdefs.h. */
33069_ACEOF
33070cat confdefs.h >>conftest.$ac_ext
33071cat >>conftest.$ac_ext <<_ACEOF
33072/* end confdefs.h. */
33073
33074/* Override any gcc2 internal prototype to avoid an error. */
33075#ifdef __cplusplus
33076extern "C"
33077#endif
33078/* We use char because int might match the return type of a gcc2
33079 builtin and then its argument prototype would still apply. */
33080char sched_get_priority_max ();
33081int
33082main ()
33083{
33084sched_get_priority_max ();
33085 ;
33086 return 0;
33087}
33088_ACEOF
33089rm -f conftest.$ac_objext conftest$ac_exeext
33090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33091 (eval $ac_link) 2>conftest.er1
33092 ac_status=$?
33093 grep -v '^ *+' conftest.er1 >conftest.err
33094 rm -f conftest.er1
33095 cat conftest.err >&5
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); } &&
dcc1b6ad
VS
33098 { ac_try='test -z "$ac_c_werror_flag"
33099 || test ! -s conftest.err'
a848cd7e
SC
33100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101 (eval $ac_try) 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; } &&
33105 { ac_try='test -s conftest$ac_exeext'
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33108 ac_status=$?
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; }; then
33111 ac_cv_lib_posix4_sched_get_priority_max=yes
33112else
33113 echo "$as_me: failed program was:" >&5
33114sed 's/^/| /' conftest.$ac_ext >&5
33115
33116ac_cv_lib_posix4_sched_get_priority_max=no
33117fi
33118rm -f conftest.err conftest.$ac_objext \
33119 conftest$ac_exeext conftest.$ac_ext
33120LIBS=$ac_check_lib_save_LIBS
33121fi
33122echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33123echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33124if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33125
33126 HAVE_PRIOR_FUNCS=1
33127 POSIX4_LINK=" -lposix4"
33128
33129fi
33130
33131
33132fi
33133
33134
33135fi
33136
33137
33138fi
33139
33140
33141 if test "$HAVE_PRIOR_FUNCS" = 1; then
33142 cat >>confdefs.h <<\_ACEOF
33143#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33144_ACEOF
33145
33146 else
33147 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33148echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33149 fi
33150
33151 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33152echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33153if test "${ac_cv_func_pthread_cancel+set}" = set; then
33154 echo $ECHO_N "(cached) $ECHO_C" >&6
33155else
33156 cat >conftest.$ac_ext <<_ACEOF
33157/* confdefs.h. */
33158_ACEOF
33159cat confdefs.h >>conftest.$ac_ext
33160cat >>conftest.$ac_ext <<_ACEOF
33161/* end confdefs.h. */
33162/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33164#define pthread_cancel innocuous_pthread_cancel
33165
33166/* System header to define __stub macros and hopefully few prototypes,
33167 which can conflict with char pthread_cancel (); below.
33168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33169 <limits.h> exists even on freestanding compilers. */
33170
33171#ifdef __STDC__
33172# include <limits.h>
33173#else
33174# include <assert.h>
33175#endif
33176
33177#undef pthread_cancel
33178
33179/* Override any gcc2 internal prototype to avoid an error. */
33180#ifdef __cplusplus
33181extern "C"
33182{
33183#endif
33184/* We use char because int might match the return type of a gcc2
33185 builtin and then its argument prototype would still apply. */
33186char pthread_cancel ();
33187/* The GNU C library defines this for functions which it implements
33188 to always fail with ENOSYS. Some functions are actually named
33189 something starting with __ and the normal name is an alias. */
33190#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33191choke me
33192#else
33193char (*f) () = pthread_cancel;
33194#endif
33195#ifdef __cplusplus
33196}
33197#endif
33198
33199int
33200main ()
33201{
33202return f != pthread_cancel;
33203 ;
33204 return 0;
33205}
33206_ACEOF
33207rm -f conftest.$ac_objext conftest$ac_exeext
33208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33209 (eval $ac_link) 2>conftest.er1
33210 ac_status=$?
33211 grep -v '^ *+' conftest.er1 >conftest.err
33212 rm -f conftest.er1
33213 cat conftest.err >&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); } &&
dcc1b6ad
VS
33216 { ac_try='test -z "$ac_c_werror_flag"
33217 || test ! -s conftest.err'
a848cd7e
SC
33218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219 (eval $ac_try) 2>&5
33220 ac_status=$?
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); }; } &&
33223 { ac_try='test -s conftest$ac_exeext'
33224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33225 (eval $ac_try) 2>&5
33226 ac_status=$?
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; }; then
33229 ac_cv_func_pthread_cancel=yes
33230else
33231 echo "$as_me: failed program was:" >&5
33232sed 's/^/| /' conftest.$ac_ext >&5
33233
33234ac_cv_func_pthread_cancel=no
33235fi
33236rm -f conftest.err conftest.$ac_objext \
33237 conftest$ac_exeext conftest.$ac_ext
33238fi
33239echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33240echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33241if test $ac_cv_func_pthread_cancel = yes; then
33242 cat >>confdefs.h <<\_ACEOF
33243#define HAVE_PTHREAD_CANCEL 1
33244_ACEOF
33245
33246else
33247 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33248echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33249fi
33250
33251
33252
33253
33254 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33255echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33256if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33257 echo $ECHO_N "(cached) $ECHO_C" >&6
33258else
33259
33260 cat >conftest.$ac_ext <<_ACEOF
33261/* confdefs.h. */
33262_ACEOF
33263cat confdefs.h >>conftest.$ac_ext
33264cat >>conftest.$ac_ext <<_ACEOF
33265/* end confdefs.h. */
33266#include <pthread.h>
33267int
33268main ()
33269{
33270
33271 pthread_mutexattr_t attr;
33272 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33273
33274 ;
33275 return 0;
33276}
33277_ACEOF
33278rm -f conftest.$ac_objext
33279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33280 (eval $ac_compile) 2>conftest.er1
33281 ac_status=$?
33282 grep -v '^ *+' conftest.er1 >conftest.err
33283 rm -f conftest.er1
33284 cat conftest.err >&5
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); } &&
dcc1b6ad
VS
33287 { ac_try='test -z "$ac_c_werror_flag"
33288 || test ! -s conftest.err'
a848cd7e
SC
33289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 (eval $ac_try) 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; } &&
33294 { ac_try='test -s conftest.$ac_objext'
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300
33301 wx_cv_type_pthread_mutexattr_t=yes
33302
33303else
33304 echo "$as_me: failed program was:" >&5
33305sed 's/^/| /' conftest.$ac_ext >&5
33306
33307
33308 wx_cv_type_pthread_mutexattr_t=no
33309
33310
33311fi
33312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33313
33314fi
33315echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33316echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33317
33318 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33319 cat >>confdefs.h <<\_ACEOF
33320#define HAVE_PTHREAD_MUTEXATTR_T 1
33321_ACEOF
33322
33323 else
33324 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33325echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33326if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33328else
33329
33330 cat >conftest.$ac_ext <<_ACEOF
33331/* confdefs.h. */
33332_ACEOF
33333cat confdefs.h >>conftest.$ac_ext
33334cat >>conftest.$ac_ext <<_ACEOF
33335/* end confdefs.h. */
33336#include <pthread.h>
33337int
33338main ()
33339{
33340
33341 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33342
33343 ;
33344 return 0;
33345}
33346_ACEOF
33347rm -f conftest.$ac_objext
33348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33349 (eval $ac_compile) 2>conftest.er1
33350 ac_status=$?
33351 grep -v '^ *+' conftest.er1 >conftest.err
33352 rm -f conftest.er1
33353 cat conftest.err >&5
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } &&
dcc1b6ad
VS
33356 { ac_try='test -z "$ac_c_werror_flag"
33357 || test ! -s conftest.err'
a848cd7e
SC
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; } &&
33363 { ac_try='test -s conftest.$ac_objext'
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; }; then
33369
33370 wx_cv_type_pthread_rec_mutex_init=yes
33371
33372else
33373 echo "$as_me: failed program was:" >&5
33374sed 's/^/| /' conftest.$ac_ext >&5
33375
33376
33377 wx_cv_type_pthread_rec_mutex_init=no
33378
33379
33380fi
33381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33382
33383fi
33384echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33385echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33386 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33387 cat >>confdefs.h <<\_ACEOF
33388#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33389_ACEOF
33390
33391 else
33392 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33393echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33394 fi
33395 fi
33396 fi
33397
33398else
33399 if test "$wxUSE_THREADS" = "yes" ; then
33400 case "${host}" in
33401 *-*-mingw32* )
33402 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33403echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33404if test "${wx_cv_cflags_mthread+set}" = set; then
33405 echo $ECHO_N "(cached) $ECHO_C" >&6
33406else
33407
33408 CFLAGS_OLD="$CFLAGS"
33409 CFLAGS="$CFLAGS -mthreads"
33410 cat >conftest.$ac_ext <<_ACEOF
33411/* confdefs.h. */
33412_ACEOF
33413cat confdefs.h >>conftest.$ac_ext
33414cat >>conftest.$ac_ext <<_ACEOF
33415/* end confdefs.h. */
33416
33417int
33418main ()
33419{
33420
33421 ;
33422 return 0;
33423}
33424_ACEOF
33425rm -f conftest.$ac_objext
33426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33427 (eval $ac_compile) 2>conftest.er1
33428 ac_status=$?
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } &&
dcc1b6ad
VS
33434 { ac_try='test -z "$ac_c_werror_flag"
33435 || test ! -s conftest.err'
a848cd7e
SC
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33438 ac_status=$?
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest.$ac_objext'
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; }; then
33447 wx_cv_cflags_mthread=yes
33448else
33449 echo "$as_me: failed program was:" >&5
33450sed 's/^/| /' conftest.$ac_ext >&5
33451
33452wx_cv_cflags_mthread=no
33453
33454fi
33455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33456
33457
33458fi
33459echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33460echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33461
33462 if test "$wx_cv_cflags_mthread" = "yes"; then
33463 CXXFLAGS="$CXXFLAGS -mthreads"
33464 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33465 LDFLAGS="$LDFLAGS -mthreads"
33466 else
33467 CFLAGS="$CFLAGS_OLD"
33468 fi
33469 ;;
33470 *-pc-os2*emx )
33471 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33472 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33473 LDFLAGS="$LDFLAGS -Zmt"
33474 ;;
33475 esac
33476 fi
33477fi
33478
33479if test "$wxUSE_THREADS" = "yes"; then
33480 cat >>confdefs.h <<\_ACEOF
33481#define wxUSE_THREADS 1
33482_ACEOF
33483
33484
33485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33486else
33487 if test "$ac_cv_func_strtok_r" = "yes"; then
33488 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33489echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33490 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33491 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33492 echo "$as_me:$LINENO: result: yes" >&5
33493echo "${ECHO_T}yes" >&6
33494 else
33495 echo "$as_me:$LINENO: result: no" >&5
33496echo "${ECHO_T}no" >&6
33497 fi
33498 fi
33499fi
33500
33501if test "$WXGTK20" = 1 ; then
33502 cat >>confdefs.h <<_ACEOF
33503#define __WXGTK20__ $WXGTK20
33504_ACEOF
33505
33506 WXGTK12=1
33507fi
33508
33509if test "$WXGTK12" = 1 ; then
33510 cat >>confdefs.h <<_ACEOF
33511#define __WXGTK12__ $WXGTK12
33512_ACEOF
33513
33514fi
33515
33516if test "$WXGTK127" = 1 ; then
33517 cat >>confdefs.h <<_ACEOF
33518#define __WXGTK127__ $WXGTK127
33519_ACEOF
33520
33521fi
33522
33523if test "$WXGPE" = 1 ; then
33524 cat >>confdefs.h <<_ACEOF
33525#define __WXGPE__ $WXGPE
33526_ACEOF
33527
33528fi
33529
33530WXDEBUG=
33531
33532if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33533 WXDEBUG="-g"
33534 wxUSE_OPTIMISE=no
33535fi
33536
33537if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33538 wxUSE_DEBUG_INFO=yes
33539 WXDEBUG="-ggdb"
33540fi
33541
33542if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33543 cat >>confdefs.h <<\_ACEOF
33544#define WXDEBUG 1
33545_ACEOF
33546
33547 WXDEBUG_DEFINE="-D__WXDEBUG__"
33548else
33549 if test "$wxUSE_GTK" = 1 ; then
33550 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33551 fi
33552fi
33553
33554if test "$wxUSE_MEM_TRACING" = "yes" ; then
33555 cat >>confdefs.h <<\_ACEOF
33556#define wxUSE_MEMORY_TRACING 1
33557_ACEOF
33558
33559 cat >>confdefs.h <<\_ACEOF
33560#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33561_ACEOF
33562
33563 cat >>confdefs.h <<\_ACEOF
33564#define wxUSE_DEBUG_NEW_ALWAYS 1
33565_ACEOF
33566
33567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33568fi
33569
33570if test "$wxUSE_DMALLOC" = "yes" ; then
33571 DMALLOC_LIBS="-ldmalloc"
33572fi
33573
33574PROFILE=
33575if test "$wxUSE_PROFILE" = "yes" ; then
33576 PROFILE=" -pg"
33577fi
33578
33579CODE_GEN_FLAGS=
33580CODE_GEN_FLAGS_CXX=
33581if test "$GCC" = "yes" ; then
33582 if test "$wxUSE_NO_RTTI" = "yes" ; then
33583 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33584 fi
33585 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33586 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33587 fi
33588 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33589 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33590 fi
33591
33592 case "${host}" in
33593 powerpc*-*-aix* )
33594 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33595 ;;
33596 *-hppa* )
33597 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33598 ;;
33599 esac
33600fi
33601
33602OPTIMISE=
33603if test "$wxUSE_OPTIMISE" = "no" ; then
33604 if test "$GCC" = yes ; then
33605 OPTIMISE="-O0"
33606 fi
33607else
33608 if test "$GCC" = yes ; then
33609 OPTIMISE="-O2"
33610
33611 case "${host}" in
33612 i586-*-*|i686-*-* )
33613 OPTIMISE="${OPTIMISE} "
33614 ;;
33615 esac
33616 else
33617 OPTIMISE="-O"
33618 fi
33619fi
33620
33621
33622if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33623 cat >>confdefs.h <<\_ACEOF
33624#define WXWIN_COMPATIBILITY_2_2 1
33625_ACEOF
33626
33627
33628 WXWIN_COMPATIBILITY_2_4="yes"
33629fi
33630
33631if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33632 cat >>confdefs.h <<\_ACEOF
33633#define WXWIN_COMPATIBILITY_2_4 1
33634_ACEOF
33635
33636fi
33637
33638
33639if test "$wxUSE_GUI" = "yes"; then
33640 cat >>confdefs.h <<\_ACEOF
33641#define wxUSE_GUI 1
33642_ACEOF
33643
33644
33645 else
33646 cat >>confdefs.h <<\_ACEOF
33647#define wxUSE_NOGUI 1
33648_ACEOF
33649
33650fi
33651
33652
33653if test "$wxUSE_UNIX" = "yes"; then
33654 cat >>confdefs.h <<\_ACEOF
33655#define wxUSE_UNIX 1
33656_ACEOF
33657
33658fi
33659
33660
33661if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33662
33663 HAVE_DL_FUNCS=0
33664 HAVE_SHL_FUNCS=0
33665 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33666 if test "$USE_DARWIN" = 1; then
33667 HAVE_DL_FUNCS=1
33668 else
33669
33670for ac_func in dlopen
33671do
33672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33673echo "$as_me:$LINENO: checking for $ac_func" >&5
33674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33675if eval "test \"\${$as_ac_var+set}\" = set"; then
33676 echo $ECHO_N "(cached) $ECHO_C" >&6
33677else
33678 cat >conftest.$ac_ext <<_ACEOF
33679/* confdefs.h. */
33680_ACEOF
33681cat confdefs.h >>conftest.$ac_ext
33682cat >>conftest.$ac_ext <<_ACEOF
33683/* end confdefs.h. */
33684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33686#define $ac_func innocuous_$ac_func
33687
33688/* System header to define __stub macros and hopefully few prototypes,
33689 which can conflict with char $ac_func (); below.
33690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33691 <limits.h> exists even on freestanding compilers. */
33692
33693#ifdef __STDC__
33694# include <limits.h>
33695#else
33696# include <assert.h>
33697#endif
33698
33699#undef $ac_func
33700
33701/* Override any gcc2 internal prototype to avoid an error. */
33702#ifdef __cplusplus
33703extern "C"
33704{
33705#endif
33706/* We use char because int might match the return type of a gcc2
33707 builtin and then its argument prototype would still apply. */
33708char $ac_func ();
33709/* The GNU C library defines this for functions which it implements
33710 to always fail with ENOSYS. Some functions are actually named
33711 something starting with __ and the normal name is an alias. */
33712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33713choke me
33714#else
33715char (*f) () = $ac_func;
33716#endif
33717#ifdef __cplusplus
33718}
33719#endif
33720
33721int
33722main ()
33723{
33724return f != $ac_func;
33725 ;
33726 return 0;
33727}
33728_ACEOF
33729rm -f conftest.$ac_objext conftest$ac_exeext
33730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33731 (eval $ac_link) 2>conftest.er1
33732 ac_status=$?
33733 grep -v '^ *+' conftest.er1 >conftest.err
33734 rm -f conftest.er1
33735 cat conftest.err >&5
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); } &&
dcc1b6ad
VS
33738 { ac_try='test -z "$ac_c_werror_flag"
33739 || test ! -s conftest.err'
a848cd7e
SC
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; } &&
33745 { ac_try='test -s conftest$ac_exeext'
33746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747 (eval $ac_try) 2>&5
33748 ac_status=$?
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; }; then
33751 eval "$as_ac_var=yes"
33752else
33753 echo "$as_me: failed program was:" >&5
33754sed 's/^/| /' conftest.$ac_ext >&5
33755
33756eval "$as_ac_var=no"
33757fi
33758rm -f conftest.err conftest.$ac_objext \
33759 conftest$ac_exeext conftest.$ac_ext
33760fi
33761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33763if test `eval echo '${'$as_ac_var'}'` = yes; then
33764 cat >>confdefs.h <<_ACEOF
33765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33766_ACEOF
33767
33768 cat >>confdefs.h <<\_ACEOF
33769#define HAVE_DLOPEN 1
33770_ACEOF
33771
33772 HAVE_DL_FUNCS=1
33773
33774else
33775
33776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33779 echo $ECHO_N "(cached) $ECHO_C" >&6
33780else
33781 ac_check_lib_save_LIBS=$LIBS
33782LIBS="-ldl $LIBS"
33783cat >conftest.$ac_ext <<_ACEOF
33784/* confdefs.h. */
33785_ACEOF
33786cat confdefs.h >>conftest.$ac_ext
33787cat >>conftest.$ac_ext <<_ACEOF
33788/* end confdefs.h. */
33789
33790/* Override any gcc2 internal prototype to avoid an error. */
33791#ifdef __cplusplus
33792extern "C"
33793#endif
33794/* We use char because int might match the return type of a gcc2
33795 builtin and then its argument prototype would still apply. */
33796char dlopen ();
33797int
33798main ()
33799{
33800dlopen ();
33801 ;
33802 return 0;
33803}
33804_ACEOF
33805rm -f conftest.$ac_objext conftest$ac_exeext
33806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33807 (eval $ac_link) 2>conftest.er1
33808 ac_status=$?
33809 grep -v '^ *+' conftest.er1 >conftest.err
33810 rm -f conftest.er1
33811 cat conftest.err >&5
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); } &&
dcc1b6ad
VS
33814 { ac_try='test -z "$ac_c_werror_flag"
33815 || test ! -s conftest.err'
a848cd7e
SC
33816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33817 (eval $ac_try) 2>&5
33818 ac_status=$?
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820 (exit $ac_status); }; } &&
33821 { ac_try='test -s conftest$ac_exeext'
33822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33823 (eval $ac_try) 2>&5
33824 ac_status=$?
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); }; }; then
33827 ac_cv_lib_dl_dlopen=yes
33828else
33829 echo "$as_me: failed program was:" >&5
33830sed 's/^/| /' conftest.$ac_ext >&5
33831
33832ac_cv_lib_dl_dlopen=no
33833fi
33834rm -f conftest.err conftest.$ac_objext \
33835 conftest$ac_exeext conftest.$ac_ext
33836LIBS=$ac_check_lib_save_LIBS
33837fi
33838echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33839echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33840if test $ac_cv_lib_dl_dlopen = yes; then
33841
33842 cat >>confdefs.h <<\_ACEOF
33843#define HAVE_DLOPEN 1
33844_ACEOF
33845
33846 HAVE_DL_FUNCS=1
33847 DL_LINK=" -ldl$DL_LINK"
33848
33849else
33850
33851
33852for ac_func in shl_load
33853do
33854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33855echo "$as_me:$LINENO: checking for $ac_func" >&5
33856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33857if eval "test \"\${$as_ac_var+set}\" = set"; then
33858 echo $ECHO_N "(cached) $ECHO_C" >&6
33859else
33860 cat >conftest.$ac_ext <<_ACEOF
33861/* confdefs.h. */
33862_ACEOF
33863cat confdefs.h >>conftest.$ac_ext
33864cat >>conftest.$ac_ext <<_ACEOF
33865/* end confdefs.h. */
33866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33868#define $ac_func innocuous_$ac_func
33869
33870/* System header to define __stub macros and hopefully few prototypes,
33871 which can conflict with char $ac_func (); below.
33872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33873 <limits.h> exists even on freestanding compilers. */
33874
33875#ifdef __STDC__
33876# include <limits.h>
33877#else
33878# include <assert.h>
33879#endif
33880
33881#undef $ac_func
33882
33883/* Override any gcc2 internal prototype to avoid an error. */
33884#ifdef __cplusplus
33885extern "C"
33886{
33887#endif
33888/* We use char because int might match the return type of a gcc2
33889 builtin and then its argument prototype would still apply. */
33890char $ac_func ();
33891/* The GNU C library defines this for functions which it implements
33892 to always fail with ENOSYS. Some functions are actually named
33893 something starting with __ and the normal name is an alias. */
33894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33895choke me
33896#else
33897char (*f) () = $ac_func;
33898#endif
33899#ifdef __cplusplus
33900}
33901#endif
33902
33903int
33904main ()
33905{
33906return f != $ac_func;
33907 ;
33908 return 0;
33909}
33910_ACEOF
33911rm -f conftest.$ac_objext conftest$ac_exeext
33912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33913 (eval $ac_link) 2>conftest.er1
33914 ac_status=$?
33915 grep -v '^ *+' conftest.er1 >conftest.err
33916 rm -f conftest.er1
33917 cat conftest.err >&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); } &&
dcc1b6ad
VS
33920 { ac_try='test -z "$ac_c_werror_flag"
33921 || test ! -s conftest.err'
a848cd7e
SC
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 eval "$as_ac_var=yes"
33934else
33935 echo "$as_me: failed program was:" >&5
33936sed 's/^/| /' conftest.$ac_ext >&5
33937
33938eval "$as_ac_var=no"
33939fi
33940rm -f conftest.err conftest.$ac_objext \
33941 conftest$ac_exeext conftest.$ac_ext
33942fi
33943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33945if test `eval echo '${'$as_ac_var'}'` = yes; then
33946 cat >>confdefs.h <<_ACEOF
33947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33948_ACEOF
33949
33950 cat >>confdefs.h <<\_ACEOF
33951#define HAVE_SHL_LOAD 1
33952_ACEOF
33953
33954 HAVE_SHL_FUNCS=1
33955
33956else
33957
33958 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33959echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33960if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33961 echo $ECHO_N "(cached) $ECHO_C" >&6
33962else
33963 ac_check_lib_save_LIBS=$LIBS
33964LIBS="-lshl_load $LIBS"
33965cat >conftest.$ac_ext <<_ACEOF
33966/* confdefs.h. */
33967_ACEOF
33968cat confdefs.h >>conftest.$ac_ext
33969cat >>conftest.$ac_ext <<_ACEOF
33970/* end confdefs.h. */
33971
33972/* Override any gcc2 internal prototype to avoid an error. */
33973#ifdef __cplusplus
33974extern "C"
33975#endif
33976/* We use char because int might match the return type of a gcc2
33977 builtin and then its argument prototype would still apply. */
33978char dld ();
33979int
33980main ()
33981{
33982dld ();
33983 ;
33984 return 0;
33985}
33986_ACEOF
33987rm -f conftest.$ac_objext conftest$ac_exeext
33988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989 (eval $ac_link) 2>conftest.er1
33990 ac_status=$?
33991 grep -v '^ *+' conftest.er1 >conftest.err
33992 rm -f conftest.er1
33993 cat conftest.err >&5
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); } &&
dcc1b6ad
VS
33996 { ac_try='test -z "$ac_c_werror_flag"
33997 || test ! -s conftest.err'
a848cd7e
SC
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest$ac_exeext'
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34009 ac_cv_lib_shl_load_dld=yes
34010else
34011 echo "$as_me: failed program was:" >&5
34012sed 's/^/| /' conftest.$ac_ext >&5
34013
34014ac_cv_lib_shl_load_dld=no
34015fi
34016rm -f conftest.err conftest.$ac_objext \
34017 conftest$ac_exeext conftest.$ac_ext
34018LIBS=$ac_check_lib_save_LIBS
34019fi
34020echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34021echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34022if test $ac_cv_lib_shl_load_dld = yes; then
34023
34024 HAVE_SHL_FUNCS=1
34025 DL_LINK=" -ldld$DL_LINK"
34026
34027fi
34028
34029
34030fi
34031done
34032
34033
34034fi
34035
34036
34037fi
34038done
34039
34040
34041 if test "$HAVE_DL_FUNCS" = 1; then
34042
34043for ac_func in dlerror
34044do
34045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34046echo "$as_me:$LINENO: checking for $ac_func" >&5
34047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34048if eval "test \"\${$as_ac_var+set}\" = set"; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34050else
34051 cat >conftest.$ac_ext <<_ACEOF
34052/* confdefs.h. */
34053_ACEOF
34054cat confdefs.h >>conftest.$ac_ext
34055cat >>conftest.$ac_ext <<_ACEOF
34056/* end confdefs.h. */
34057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34059#define $ac_func innocuous_$ac_func
34060
34061/* System header to define __stub macros and hopefully few prototypes,
34062 which can conflict with char $ac_func (); below.
34063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34064 <limits.h> exists even on freestanding compilers. */
34065
34066#ifdef __STDC__
34067# include <limits.h>
34068#else
34069# include <assert.h>
34070#endif
34071
34072#undef $ac_func
34073
34074/* Override any gcc2 internal prototype to avoid an error. */
34075#ifdef __cplusplus
34076extern "C"
34077{
34078#endif
34079/* We use char because int might match the return type of a gcc2
34080 builtin and then its argument prototype would still apply. */
34081char $ac_func ();
34082/* The GNU C library defines this for functions which it implements
34083 to always fail with ENOSYS. Some functions are actually named
34084 something starting with __ and the normal name is an alias. */
34085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34086choke me
34087#else
34088char (*f) () = $ac_func;
34089#endif
34090#ifdef __cplusplus
34091}
34092#endif
34093
34094int
34095main ()
34096{
34097return f != $ac_func;
34098 ;
34099 return 0;
34100}
34101_ACEOF
34102rm -f conftest.$ac_objext conftest$ac_exeext
34103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34104 (eval $ac_link) 2>conftest.er1
34105 ac_status=$?
34106 grep -v '^ *+' conftest.er1 >conftest.err
34107 rm -f conftest.er1
34108 cat conftest.err >&5
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); } &&
dcc1b6ad
VS
34111 { ac_try='test -z "$ac_c_werror_flag"
34112 || test ! -s conftest.err'
a848cd7e
SC
34113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114 (eval $ac_try) 2>&5
34115 ac_status=$?
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); }; } &&
34118 { ac_try='test -s conftest$ac_exeext'
34119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120 (eval $ac_try) 2>&5
34121 ac_status=$?
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); }; }; then
34124 eval "$as_ac_var=yes"
34125else
34126 echo "$as_me: failed program was:" >&5
34127sed 's/^/| /' conftest.$ac_ext >&5
34128
34129eval "$as_ac_var=no"
34130fi
34131rm -f conftest.err conftest.$ac_objext \
34132 conftest$ac_exeext conftest.$ac_ext
34133fi
34134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34136if test `eval echo '${'$as_ac_var'}'` = yes; then
34137 cat >>confdefs.h <<_ACEOF
34138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34139_ACEOF
34140 cat >>confdefs.h <<\_ACEOF
34141#define HAVE_DLERROR 1
34142_ACEOF
34143
34144else
34145
34146 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34147echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34148if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34149 echo $ECHO_N "(cached) $ECHO_C" >&6
34150else
34151 ac_check_lib_save_LIBS=$LIBS
34152LIBS="-ldl $LIBS"
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
34160/* Override any gcc2 internal prototype to avoid an error. */
34161#ifdef __cplusplus
34162extern "C"
34163#endif
34164/* We use char because int might match the return type of a gcc2
34165 builtin and then its argument prototype would still apply. */
34166char dlerror ();
34167int
34168main ()
34169{
34170dlerror ();
34171 ;
34172 return 0;
34173}
34174_ACEOF
34175rm -f conftest.$ac_objext conftest$ac_exeext
34176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34177 (eval $ac_link) 2>conftest.er1
34178 ac_status=$?
34179 grep -v '^ *+' conftest.er1 >conftest.err
34180 rm -f conftest.er1
34181 cat conftest.err >&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); } &&
dcc1b6ad
VS
34184 { ac_try='test -z "$ac_c_werror_flag"
34185 || test ! -s conftest.err'
a848cd7e
SC
34186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187 (eval $ac_try) 2>&5
34188 ac_status=$?
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); }; } &&
34191 { ac_try='test -s conftest$ac_exeext'
34192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193 (eval $ac_try) 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 ac_cv_lib_dl_dlerror=yes
34198else
34199 echo "$as_me: failed program was:" >&5
34200sed 's/^/| /' conftest.$ac_ext >&5
34201
34202ac_cv_lib_dl_dlerror=no
34203fi
34204rm -f conftest.err conftest.$ac_objext \
34205 conftest$ac_exeext conftest.$ac_ext
34206LIBS=$ac_check_lib_save_LIBS
34207fi
34208echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34209echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34210if test $ac_cv_lib_dl_dlerror = yes; then
34211 cat >>confdefs.h <<\_ACEOF
34212#define HAVE_DLERROR 1
34213_ACEOF
34214
34215fi
34216
34217
34218
34219fi
34220done
34221
34222 fi
34223 fi
34224
34225 if test "$HAVE_DL_FUNCS" = 0; then
34226 if test "$HAVE_SHL_FUNCS" = 0; then
34227 if test "$USE_UNIX" = 1; then
34228 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34229echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34230 wxUSE_DYNAMIC_LOADER=no
34231 wxUSE_DYNLIB_CLASS=no
34232 else
34233 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34234echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34235 fi
34236 fi
34237 fi
34238 fi
34239fi
34240
34241if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34242 cat >>confdefs.h <<\_ACEOF
34243#define wxUSE_DYNAMIC_LOADER 1
34244_ACEOF
34245
34246fi
34247if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34248 cat >>confdefs.h <<\_ACEOF
34249#define wxUSE_DYNLIB_CLASS 1
34250_ACEOF
34251
34252fi
34253
34254
34255
34256if test "$wxUSE_PLUGINS" = "yes" ; then
34257 if test "$wxUSE_SHARED" = "no" ; then
34258 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34259echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34260 wxUSE_PLUGINS=no
34261 fi
34262 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34263 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34264echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34265 wxUSE_PLUGINS=no
34266 fi
34267 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34268 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34269echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34270 wxUSE_PLUGINS=no
34271 fi
34272 if test "$wxUSE_PLUGINS" = "yes" ; then
34273 cat >>confdefs.h <<\_ACEOF
34274#define wxUSE_PLUGINS 1
34275_ACEOF
34276
34277 fi
34278fi
34279
34280
34281if test "$wxUSE_STL" = "yes"; then
34282 cat >>confdefs.h <<\_ACEOF
34283#define wxUSE_STL 1
34284_ACEOF
34285
34286fi
34287
34288if test "$wxUSE_APPLE_IEEE" = "yes"; then
34289 cat >>confdefs.h <<\_ACEOF
34290#define wxUSE_APPLE_IEEE 1
34291_ACEOF
34292
34293fi
34294
34295if test "$wxUSE_TIMER" = "yes"; then
34296 cat >>confdefs.h <<\_ACEOF
34297#define wxUSE_TIMER 1
34298_ACEOF
34299
34300fi
34301
34302WITH_PLUGIN_SDL=0
34303if test "$wxUSE_SOUND" = "yes"; then
34304 if test "$USE_UNIX" = "1" ; then
34305
34306for ac_header in sys/soundcard.h
34307do
34308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34309if eval "test \"\${$as_ac_Header+set}\" = set"; then
34310 echo "$as_me:$LINENO: checking for $ac_header" >&5
34311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34312if eval "test \"\${$as_ac_Header+set}\" = set"; then
34313 echo $ECHO_N "(cached) $ECHO_C" >&6
34314fi
34315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34317else
34318 # Is the header compilable?
34319echo "$as_me:$LINENO: checking $ac_header usability" >&5
34320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34321cat >conftest.$ac_ext <<_ACEOF
34322/* confdefs.h. */
34323_ACEOF
34324cat confdefs.h >>conftest.$ac_ext
34325cat >>conftest.$ac_ext <<_ACEOF
34326/* end confdefs.h. */
34327$ac_includes_default
34328#include <$ac_header>
34329_ACEOF
34330rm -f conftest.$ac_objext
34331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34332 (eval $ac_compile) 2>conftest.er1
34333 ac_status=$?
34334 grep -v '^ *+' conftest.er1 >conftest.err
34335 rm -f conftest.er1
34336 cat conftest.err >&5
34337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34338 (exit $ac_status); } &&
dcc1b6ad
VS
34339 { ac_try='test -z "$ac_c_werror_flag"
34340 || test ! -s conftest.err'
a848cd7e
SC
34341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342 (eval $ac_try) 2>&5
34343 ac_status=$?
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); }; } &&
34346 { ac_try='test -s conftest.$ac_objext'
34347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34348 (eval $ac_try) 2>&5
34349 ac_status=$?
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34352 ac_header_compiler=yes
34353else
34354 echo "$as_me: failed program was:" >&5
34355sed 's/^/| /' conftest.$ac_ext >&5
34356
34357ac_header_compiler=no
34358fi
34359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34361echo "${ECHO_T}$ac_header_compiler" >&6
34362
34363# Is the header present?
34364echo "$as_me:$LINENO: checking $ac_header presence" >&5
34365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34366cat >conftest.$ac_ext <<_ACEOF
34367/* confdefs.h. */
34368_ACEOF
34369cat confdefs.h >>conftest.$ac_ext
34370cat >>conftest.$ac_ext <<_ACEOF
34371/* end confdefs.h. */
34372#include <$ac_header>
34373_ACEOF
34374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34376 ac_status=$?
34377 grep -v '^ *+' conftest.er1 >conftest.err
34378 rm -f conftest.er1
34379 cat conftest.err >&5
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); } >/dev/null; then
34382 if test -s conftest.err; then
34383 ac_cpp_err=$ac_c_preproc_warn_flag
34384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34385 else
34386 ac_cpp_err=
34387 fi
34388else
34389 ac_cpp_err=yes
34390fi
34391if test -z "$ac_cpp_err"; then
34392 ac_header_preproc=yes
34393else
34394 echo "$as_me: failed program was:" >&5
34395sed 's/^/| /' conftest.$ac_ext >&5
34396
34397 ac_header_preproc=no
34398fi
34399rm -f conftest.err conftest.$ac_ext
34400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34401echo "${ECHO_T}$ac_header_preproc" >&6
34402
34403# So? What about this header?
34404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34405 yes:no: )
34406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34410 ac_header_preproc=yes
34411 ;;
34412 no:yes:* )
34413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34425 (
34426 cat <<\_ASBOX
34427## ----------------------------------------- ##
34428## Report this to wx-dev@lists.wxwindows.org ##
34429## ----------------------------------------- ##
34430_ASBOX
34431 ) |
34432 sed "s/^/$as_me: WARNING: /" >&2
34433 ;;
34434esac
34435echo "$as_me:$LINENO: checking for $ac_header" >&5
34436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34437if eval "test \"\${$as_ac_Header+set}\" = set"; then
34438 echo $ECHO_N "(cached) $ECHO_C" >&6
34439else
34440 eval "$as_ac_Header=\$ac_header_preproc"
34441fi
34442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34444
34445fi
34446if test `eval echo '${'$as_ac_Header'}'` = yes; then
34447 cat >>confdefs.h <<_ACEOF
34448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34449_ACEOF
34450
34451fi
34452
34453done
34454
34455
34456 if test "$wxUSE_LIBSDL" != "no"; then
34457
34458# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34459if test "${with_sdl_prefix+set}" = set; then
34460 withval="$with_sdl_prefix"
34461 sdl_prefix="$withval"
34462else
34463 sdl_prefix=""
34464fi;
34465
34466# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34467if test "${with_sdl_exec_prefix+set}" = set; then
34468 withval="$with_sdl_exec_prefix"
34469 sdl_exec_prefix="$withval"
34470else
34471 sdl_exec_prefix=""
34472fi;
34473# Check whether --enable-sdltest or --disable-sdltest was given.
34474if test "${enable_sdltest+set}" = set; then
34475 enableval="$enable_sdltest"
34476
34477else
34478 enable_sdltest=yes
34479fi;
34480
34481 if test x$sdl_exec_prefix != x ; then
34482 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34483 if test x${SDL_CONFIG+set} != xset ; then
34484 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34485 fi
34486 fi
34487 if test x$sdl_prefix != x ; then
34488 sdl_args="$sdl_args --prefix=$sdl_prefix"
34489 if test x${SDL_CONFIG+set} != xset ; then
34490 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34491 fi
34492 fi
34493
34494
34495 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34496 # Extract the first word of "sdl-config", so it can be a program name with args.
34497set dummy sdl-config; ac_word=$2
34498echo "$as_me:$LINENO: checking for $ac_word" >&5
34499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34500if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34501 echo $ECHO_N "(cached) $ECHO_C" >&6
34502else
34503 case $SDL_CONFIG in
34504 [\\/]* | ?:[\\/]*)
34505 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34506 ;;
34507 *)
34508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34509for as_dir in $PATH
34510do
34511 IFS=$as_save_IFS
34512 test -z "$as_dir" && as_dir=.
34513 for ac_exec_ext in '' $ac_executable_extensions; do
34514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34515 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34517 break 2
34518 fi
34519done
34520done
34521
34522 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34523 ;;
34524esac
34525fi
34526SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34527
34528if test -n "$SDL_CONFIG"; then
34529 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34530echo "${ECHO_T}$SDL_CONFIG" >&6
34531else
34532 echo "$as_me:$LINENO: result: no" >&5
34533echo "${ECHO_T}no" >&6
34534fi
34535
34536 min_sdl_version=1.2.0
34537 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34538echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34539 no_sdl=""
34540 if test "$SDL_CONFIG" = "no" ; then
34541 no_sdl=yes
34542 else
34543 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34544 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34545
34546 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34547 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34548 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34549 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34550 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34551 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34552 if test "x$enable_sdltest" = "xyes" ; then
34553 ac_save_CFLAGS="$CFLAGS"
34554 ac_save_LIBS="$LIBS"
34555 CFLAGS="$CFLAGS $SDL_CFLAGS"
34556 LIBS="$LIBS $SDL_LIBS"
34557 rm -f conf.sdltest
34558 if test "$cross_compiling" = yes; then
34559 echo $ac_n "cross compiling; assumed OK... $ac_c"
34560else
34561 cat >conftest.$ac_ext <<_ACEOF
34562/* confdefs.h. */
34563_ACEOF
34564cat confdefs.h >>conftest.$ac_ext
34565cat >>conftest.$ac_ext <<_ACEOF
34566/* end confdefs.h. */
34567
34568#include <stdio.h>
34569#include <stdlib.h>
34570#include <string.h>
34571#include "SDL.h"
34572
34573char*
34574my_strdup (char *str)
34575{
34576 char *new_str;
34577
34578 if (str)
34579 {
34580 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34581 strcpy (new_str, str);
34582 }
34583 else
34584 new_str = NULL;
34585
34586 return new_str;
34587}
34588
34589int main (int argc, char *argv[])
34590{
34591 int major, minor, micro;
34592 char *tmp_version;
34593
34594 /* This hangs on some systems (?)
34595 system ("touch conf.sdltest");
34596 */
34597 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34598
34599 /* HP/UX 9 (%@#!) writes to sscanf strings */
34600 tmp_version = my_strdup("$min_sdl_version");
34601 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34602 printf("%s, bad version string\n", "$min_sdl_version");
34603 exit(1);
34604 }
34605
34606 if (($sdl_major_version > major) ||
34607 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34608 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34609 {
34610 return 0;
34611 }
34612 else
34613 {
34614 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34615 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34616 printf("*** best to upgrade to the required version.\n");
34617 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34618 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34619 printf("*** config.cache before re-running configure\n");
34620 return 1;
34621 }
34622}
34623
34624
34625_ACEOF
34626rm -f conftest$ac_exeext
34627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34628 (eval $ac_link) 2>&5
34629 ac_status=$?
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34634 ac_status=$?
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; }; then
34637 :
34638else
34639 echo "$as_me: program exited with status $ac_status" >&5
34640echo "$as_me: failed program was:" >&5
34641sed 's/^/| /' conftest.$ac_ext >&5
34642
34643( exit $ac_status )
34644no_sdl=yes
34645fi
34646rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34647fi
34648 CFLAGS="$ac_save_CFLAGS"
34649 LIBS="$ac_save_LIBS"
34650 fi
34651 fi
34652 if test "x$no_sdl" = x ; then
34653 echo "$as_me:$LINENO: result: yes" >&5
34654echo "${ECHO_T}yes" >&6
34655
34656 EXTRALIBS_SDL="$SDL_LIBS"
34657 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34658 cat >>confdefs.h <<\_ACEOF
34659#define wxUSE_LIBSDL 1
34660_ACEOF
34661
34662
34663 else
34664 echo "$as_me:$LINENO: result: no" >&5
34665echo "${ECHO_T}no" >&6
34666 if test "$SDL_CONFIG" = "no" ; then
34667 echo "*** The sdl-config script installed by SDL could not be found"
34668 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34669 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34670 echo "*** full path to sdl-config."
34671 else
34672 if test -f conf.sdltest ; then
34673 :
34674 else
34675 echo "*** Could not run SDL test program, checking why..."
34676 CFLAGS="$CFLAGS $SDL_CFLAGS"
34677 LIBS="$LIBS $SDL_LIBS"
34678 cat >conftest.$ac_ext <<_ACEOF
34679/* confdefs.h. */
34680_ACEOF
34681cat confdefs.h >>conftest.$ac_ext
34682cat >>conftest.$ac_ext <<_ACEOF
34683/* end confdefs.h. */
34684
34685#include <stdio.h>
34686#include "SDL.h"
34687
34688int main(int argc, char *argv[])
34689{ return 0; }
34690#undef main
34691#define main K_and_R_C_main
34692
34693int
34694main ()
34695{
34696 return 0;
34697 ;
34698 return 0;
34699}
34700_ACEOF
34701rm -f conftest.$ac_objext conftest$ac_exeext
34702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34703 (eval $ac_link) 2>conftest.er1
34704 ac_status=$?
34705 grep -v '^ *+' conftest.er1 >conftest.err
34706 rm -f conftest.er1
34707 cat conftest.err >&5
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); } &&
dcc1b6ad
VS
34710 { ac_try='test -z "$ac_c_werror_flag"
34711 || test ! -s conftest.err'
a848cd7e
SC
34712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34713 (eval $ac_try) 2>&5
34714 ac_status=$?
34715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716 (exit $ac_status); }; } &&
34717 { ac_try='test -s conftest$ac_exeext'
34718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34719 (eval $ac_try) 2>&5
34720 ac_status=$?
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); }; }; then
34723 echo "*** The test program compiled, but did not run. This usually means"
34724 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34725 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34726 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34727 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34728 echo "*** is required on your system"
34729 echo "***"
34730 echo "*** If you have an old version installed, it is best to remove it, although"
34731 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34732else
34733 echo "$as_me: failed program was:" >&5
34734sed 's/^/| /' conftest.$ac_ext >&5
34735
34736 echo "*** The test program failed to compile or link. See the file config.log for the"
34737 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34738 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34739 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34740fi
34741rm -f conftest.err conftest.$ac_objext \
34742 conftest$ac_exeext conftest.$ac_ext
34743 CFLAGS="$ac_save_CFLAGS"
34744 LIBS="$ac_save_LIBS"
34745 fi
34746 fi
34747 SDL_CFLAGS=""
34748 SDL_LIBS=""
34749 wxUSE_LIBSDL="no"
34750 fi
34751
34752
34753 rm -f conf.sdltest
34754
34755 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34756 WITH_PLUGIN_SDL=1
34757 fi
34758 fi
34759 fi
34760
34761 cat >>confdefs.h <<\_ACEOF
34762#define wxUSE_SOUND 1
34763_ACEOF
34764
34765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34766fi
34767
34768if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34769 cat >>confdefs.h <<\_ACEOF
34770#define wxUSE_CMDLINE_PARSER 1
34771_ACEOF
34772
34773fi
34774
34775if test "$wxUSE_STOPWATCH" = "yes"; then
34776 cat >>confdefs.h <<\_ACEOF
34777#define wxUSE_STOPWATCH 1
34778_ACEOF
34779
34780fi
34781
34782if test "$wxUSE_DATETIME" = "yes"; then
34783 cat >>confdefs.h <<\_ACEOF
34784#define wxUSE_DATETIME 1
34785_ACEOF
34786
34787fi
34788
34789if test "$wxUSE_FILE" = "yes"; then
34790 cat >>confdefs.h <<\_ACEOF
34791#define wxUSE_FILE 1
34792_ACEOF
34793
34794fi
34795
34796if test "$wxUSE_FFILE" = "yes"; then
34797 cat >>confdefs.h <<\_ACEOF
34798#define wxUSE_FFILE 1
34799_ACEOF
34800
34801fi
34802
34803if test "$wxUSE_FILESYSTEM" = "yes"; then
34804 cat >>confdefs.h <<\_ACEOF
34805#define wxUSE_FILESYSTEM 1
34806_ACEOF
34807
34808fi
34809
34810if test "$wxUSE_FS_ZIP" = "yes"; then
34811 cat >>confdefs.h <<\_ACEOF
34812#define wxUSE_FS_ZIP 1
34813_ACEOF
34814
34815fi
34816
34817if test "$wxUSE_ZIPSTREAM" = "yes"; then
34818 cat >>confdefs.h <<\_ACEOF
34819#define wxUSE_ZIPSTREAM 1
34820_ACEOF
34821
34822fi
34823
a848cd7e
SC
34824if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34825 cat >>confdefs.h <<\_ACEOF
34826#define wxUSE_ON_FATAL_EXCEPTION 1
34827_ACEOF
34828
34829fi
34830
34831if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34832 cat >>confdefs.h <<\_ACEOF
34833#define wxUSE_SNGLINST_CHECKER 1
34834_ACEOF
34835
34836fi
34837
34838if test "$wxUSE_BUSYINFO" = "yes"; then
34839 cat >>confdefs.h <<\_ACEOF
34840#define wxUSE_BUSYINFO 1
34841_ACEOF
34842
34843fi
34844
34845if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34846 cat >>confdefs.h <<\_ACEOF
34847#define wxUSE_STD_IOSTREAM 1
34848_ACEOF
34849
34850fi
34851
34852if test "$wxUSE_TEXTBUFFER" = "yes"; then
34853 cat >>confdefs.h <<\_ACEOF
34854#define wxUSE_TEXTBUFFER 1
34855_ACEOF
34856
34857fi
34858
34859if test "$wxUSE_TEXTFILE" = "yes"; then
34860 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34861 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34862echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34863 else
34864 cat >>confdefs.h <<\_ACEOF
34865#define wxUSE_TEXTFILE 1
34866_ACEOF
34867
34868 fi
34869fi
34870
34871if test "$wxUSE_CONFIG" = "yes" ; then
34872 if test "$wxUSE_TEXTFILE" != "yes"; then
34873 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34874echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34875 else
34876 cat >>confdefs.h <<\_ACEOF
34877#define wxUSE_CONFIG 1
34878_ACEOF
34879
34880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34881 fi
34882fi
34883
34884if test "$wxUSE_INTL" = "yes" ; then
34885 if test "$wxUSE_FILE" != "yes"; then
34886 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34887echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34888 else
34889 cat >>confdefs.h <<\_ACEOF
34890#define wxUSE_INTL 1
34891_ACEOF
34892
34893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34894 GUIDIST="$GUIDIST INTL_DIST"
34895 fi
34896fi
34897
34898if test "$wxUSE_LOG" = "yes"; then
34899 cat >>confdefs.h <<\_ACEOF
34900#define wxUSE_LOG 1
34901_ACEOF
34902
34903
34904 if test "$wxUSE_LOGGUI" = "yes"; then
34905 cat >>confdefs.h <<\_ACEOF
34906#define wxUSE_LOGGUI 1
34907_ACEOF
34908
34909 fi
34910
34911 if test "$wxUSE_LOGWINDOW" = "yes"; then
34912 cat >>confdefs.h <<\_ACEOF
34913#define wxUSE_LOGWINDOW 1
34914_ACEOF
34915
34916 fi
34917
34918 if test "$wxUSE_LOGDIALOG" = "yes"; then
34919 cat >>confdefs.h <<\_ACEOF
34920#define wxUSE_LOG_DIALOG 1
34921_ACEOF
34922
34923 fi
34924fi
34925
34926if test "$wxUSE_LONGLONG" = "yes"; then
34927 cat >>confdefs.h <<\_ACEOF
34928#define wxUSE_LONGLONG 1
34929_ACEOF
34930
34931fi
34932
34933if test "$wxUSE_GEOMETRY" = "yes"; then
34934 cat >>confdefs.h <<\_ACEOF
34935#define wxUSE_GEOMETRY 1
34936_ACEOF
34937
34938fi
34939
34940if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34941 cat >>confdefs.h <<\_ACEOF
34942#define wxUSE_DIALUP_MANAGER 1
34943_ACEOF
34944
34945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34946fi
34947
34948if test "$wxUSE_STREAMS" = "yes" ; then
34949 cat >>confdefs.h <<\_ACEOF
34950#define wxUSE_STREAMS 1
34951_ACEOF
34952
34953fi
34954
34955
34956if test "$wxUSE_DATETIME" = "yes"; then
34957
34958for ac_func in strptime
34959do
34960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34961echo "$as_me:$LINENO: checking for $ac_func" >&5
34962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34963if eval "test \"\${$as_ac_var+set}\" = set"; then
34964 echo $ECHO_N "(cached) $ECHO_C" >&6
34965else
34966 cat >conftest.$ac_ext <<_ACEOF
34967/* confdefs.h. */
34968_ACEOF
34969cat confdefs.h >>conftest.$ac_ext
34970cat >>conftest.$ac_ext <<_ACEOF
34971/* end confdefs.h. */
34972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34974#define $ac_func innocuous_$ac_func
34975
34976/* System header to define __stub macros and hopefully few prototypes,
34977 which can conflict with char $ac_func (); below.
34978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34979 <limits.h> exists even on freestanding compilers. */
34980
34981#ifdef __STDC__
34982# include <limits.h>
34983#else
34984# include <assert.h>
34985#endif
34986
34987#undef $ac_func
34988
34989/* Override any gcc2 internal prototype to avoid an error. */
34990#ifdef __cplusplus
34991extern "C"
34992{
34993#endif
34994/* We use char because int might match the return type of a gcc2
34995 builtin and then its argument prototype would still apply. */
34996char $ac_func ();
34997/* The GNU C library defines this for functions which it implements
34998 to always fail with ENOSYS. Some functions are actually named
34999 something starting with __ and the normal name is an alias. */
35000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35001choke me
35002#else
35003char (*f) () = $ac_func;
35004#endif
35005#ifdef __cplusplus
35006}
35007#endif
35008
35009int
35010main ()
35011{
35012return f != $ac_func;
35013 ;
35014 return 0;
35015}
35016_ACEOF
35017rm -f conftest.$ac_objext conftest$ac_exeext
35018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35019 (eval $ac_link) 2>conftest.er1
35020 ac_status=$?
35021 grep -v '^ *+' conftest.er1 >conftest.err
35022 rm -f conftest.er1
35023 cat conftest.err >&5
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); } &&
dcc1b6ad
VS
35026 { ac_try='test -z "$ac_c_werror_flag"
35027 || test ! -s conftest.err'
a848cd7e
SC
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; } &&
35033 { ac_try='test -s conftest$ac_exeext'
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; }; then
35039 eval "$as_ac_var=yes"
35040else
35041 echo "$as_me: failed program was:" >&5
35042sed 's/^/| /' conftest.$ac_ext >&5
35043
35044eval "$as_ac_var=no"
35045fi
35046rm -f conftest.err conftest.$ac_objext \
35047 conftest$ac_exeext conftest.$ac_ext
35048fi
35049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35051if test `eval echo '${'$as_ac_var'}'` = yes; then
35052 cat >>confdefs.h <<_ACEOF
35053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35054_ACEOF
35055
35056fi
35057done
35058
35059
35060 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35061echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35062if test "${wx_cv_var_timezone+set}" = set; then
35063 echo $ECHO_N "(cached) $ECHO_C" >&6
35064else
35065
35066 cat >conftest.$ac_ext <<_ACEOF
35067/* confdefs.h. */
35068_ACEOF
35069cat confdefs.h >>conftest.$ac_ext
35070cat >>conftest.$ac_ext <<_ACEOF
35071/* end confdefs.h. */
35072
35073 #include <time.h>
35074
35075int
35076main ()
35077{
35078
35079 int tz;
35080 tz = timezone;
35081
35082 ;
35083 return 0;
35084}
35085_ACEOF
35086rm -f conftest.$ac_objext
35087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088 (eval $ac_compile) 2>conftest.er1
35089 ac_status=$?
35090 grep -v '^ *+' conftest.er1 >conftest.err
35091 rm -f conftest.er1
35092 cat conftest.err >&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); } &&
dcc1b6ad
VS
35095 { ac_try='test -z "$ac_c_werror_flag"
35096 || test ! -s conftest.err'
a848cd7e
SC
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35099 ac_status=$?
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; } &&
35102 { ac_try='test -s conftest.$ac_objext'
35103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104 (eval $ac_try) 2>&5
35105 ac_status=$?
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); }; }; then
35108
35109 wx_cv_var_timezone=timezone
35110
35111else
35112 echo "$as_me: failed program was:" >&5
35113sed 's/^/| /' conftest.$ac_ext >&5
35114
35115
35116 cat >conftest.$ac_ext <<_ACEOF
35117/* confdefs.h. */
35118_ACEOF
35119cat confdefs.h >>conftest.$ac_ext
35120cat >>conftest.$ac_ext <<_ACEOF
35121/* end confdefs.h. */
35122
35123 #include <time.h>
35124
35125int
35126main ()
35127{
35128
35129 int tz;
35130 tz = _timezone;
35131
35132 ;
35133 return 0;
35134}
35135_ACEOF
35136rm -f conftest.$ac_objext
35137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35138 (eval $ac_compile) 2>conftest.er1
35139 ac_status=$?
35140 grep -v '^ *+' conftest.er1 >conftest.err
35141 rm -f conftest.er1
35142 cat conftest.err >&5
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); } &&
dcc1b6ad
VS
35145 { ac_try='test -z "$ac_c_werror_flag"
35146 || test ! -s conftest.err'
a848cd7e
SC
35147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35148 (eval $ac_try) 2>&5
35149 ac_status=$?
35150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); }; } &&
35152 { ac_try='test -s conftest.$ac_objext'
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; }; then
35158
35159 wx_cv_var_timezone=_timezone
35160
35161else
35162 echo "$as_me: failed program was:" >&5
35163sed 's/^/| /' conftest.$ac_ext >&5
35164
35165
35166 cat >conftest.$ac_ext <<_ACEOF
35167/* confdefs.h. */
35168_ACEOF
35169cat confdefs.h >>conftest.$ac_ext
35170cat >>conftest.$ac_ext <<_ACEOF
35171/* end confdefs.h. */
35172
35173 #include <time.h>
35174
35175int
35176main ()
35177{
35178
35179 int tz;
35180 tz = __timezone;
35181
35182 ;
35183 return 0;
35184}
35185_ACEOF
35186rm -f conftest.$ac_objext
35187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35188 (eval $ac_compile) 2>conftest.er1
35189 ac_status=$?
35190 grep -v '^ *+' conftest.er1 >conftest.err
35191 rm -f conftest.er1
35192 cat conftest.err >&5
35193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194 (exit $ac_status); } &&
dcc1b6ad
VS
35195 { ac_try='test -z "$ac_c_werror_flag"
35196 || test ! -s conftest.err'
a848cd7e
SC
35197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198 (eval $ac_try) 2>&5
35199 ac_status=$?
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); }; } &&
35202 { ac_try='test -s conftest.$ac_objext'
35203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204 (eval $ac_try) 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; }; then
35208
35209 wx_cv_var_timezone=__timezone
35210
35211else
35212 echo "$as_me: failed program was:" >&5
35213sed 's/^/| /' conftest.$ac_ext >&5
35214
35215
35216 if test "$USE_DOS" = 0 ; then
35217 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35218echo "$as_me: WARNING: no timezone variable" >&2;}
35219 fi
35220
35221
35222fi
35223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35224
35225
35226fi
35227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35228
35229
35230fi
35231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35232
35233
35234fi
35235echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35236echo "${ECHO_T}$wx_cv_var_timezone" >&6
35237
35238 if test "x$wx_cv_var_timezone" != x ; then
35239 cat >>confdefs.h <<_ACEOF
35240#define WX_TIMEZONE $wx_cv_var_timezone
35241_ACEOF
35242
35243 fi
35244
35245
35246for ac_func in localtime
35247do
35248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35249echo "$as_me:$LINENO: checking for $ac_func" >&5
35250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35251if eval "test \"\${$as_ac_var+set}\" = set"; then
35252 echo $ECHO_N "(cached) $ECHO_C" >&6
35253else
35254 cat >conftest.$ac_ext <<_ACEOF
35255/* confdefs.h. */
35256_ACEOF
35257cat confdefs.h >>conftest.$ac_ext
35258cat >>conftest.$ac_ext <<_ACEOF
35259/* end confdefs.h. */
35260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35262#define $ac_func innocuous_$ac_func
35263
35264/* System header to define __stub macros and hopefully few prototypes,
35265 which can conflict with char $ac_func (); below.
35266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35267 <limits.h> exists even on freestanding compilers. */
35268
35269#ifdef __STDC__
35270# include <limits.h>
35271#else
35272# include <assert.h>
35273#endif
35274
35275#undef $ac_func
35276
35277/* Override any gcc2 internal prototype to avoid an error. */
35278#ifdef __cplusplus
35279extern "C"
35280{
35281#endif
35282/* We use char because int might match the return type of a gcc2
35283 builtin and then its argument prototype would still apply. */
35284char $ac_func ();
35285/* The GNU C library defines this for functions which it implements
35286 to always fail with ENOSYS. Some functions are actually named
35287 something starting with __ and the normal name is an alias. */
35288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35289choke me
35290#else
35291char (*f) () = $ac_func;
35292#endif
35293#ifdef __cplusplus
35294}
35295#endif
35296
35297int
35298main ()
35299{
35300return f != $ac_func;
35301 ;
35302 return 0;
35303}
35304_ACEOF
35305rm -f conftest.$ac_objext conftest$ac_exeext
35306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35307 (eval $ac_link) 2>conftest.er1
35308 ac_status=$?
35309 grep -v '^ *+' conftest.er1 >conftest.err
35310 rm -f conftest.er1
35311 cat conftest.err >&5
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } &&
dcc1b6ad
VS
35314 { ac_try='test -z "$ac_c_werror_flag"
35315 || test ! -s conftest.err'
a848cd7e
SC
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35318 ac_status=$?
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; } &&
35321 { ac_try='test -s conftest$ac_exeext'
35322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35323 (eval $ac_try) 2>&5
35324 ac_status=$?
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); }; }; then
35327 eval "$as_ac_var=yes"
35328else
35329 echo "$as_me: failed program was:" >&5
35330sed 's/^/| /' conftest.$ac_ext >&5
35331
35332eval "$as_ac_var=no"
35333fi
35334rm -f conftest.err conftest.$ac_objext \
35335 conftest$ac_exeext conftest.$ac_ext
35336fi
35337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35339if test `eval echo '${'$as_ac_var'}'` = yes; then
35340 cat >>confdefs.h <<_ACEOF
35341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35342_ACEOF
35343
35344fi
35345done
35346
35347
35348 if test "$ac_cv_func_localtime" = "yes"; then
35349 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35350echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35351if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35352 echo $ECHO_N "(cached) $ECHO_C" >&6
35353else
35354
35355 cat >conftest.$ac_ext <<_ACEOF
35356/* confdefs.h. */
35357_ACEOF
35358cat confdefs.h >>conftest.$ac_ext
35359cat >>conftest.$ac_ext <<_ACEOF
35360/* end confdefs.h. */
35361
35362 #include <time.h>
35363
35364int
35365main ()
35366{
35367
35368 struct tm tm;
35369 tm.tm_gmtoff++;
35370
35371 ;
35372 return 0;
35373}
35374_ACEOF
35375rm -f conftest.$ac_objext
35376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35377 (eval $ac_compile) 2>conftest.er1
35378 ac_status=$?
35379 grep -v '^ *+' conftest.er1 >conftest.err
35380 rm -f conftest.er1
35381 cat conftest.err >&5
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); } &&
dcc1b6ad
VS
35384 { ac_try='test -z "$ac_c_werror_flag"
35385 || test ! -s conftest.err'
a848cd7e
SC
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35388 ac_status=$?
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; } &&
35391 { ac_try='test -s conftest.$ac_objext'
35392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35393 (eval $ac_try) 2>&5
35394 ac_status=$?
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); }; }; then
35397
35398 wx_cv_struct_tm_has_gmtoff=yes
35399
35400else
35401 echo "$as_me: failed program was:" >&5
35402sed 's/^/| /' conftest.$ac_ext >&5
35403
35404wx_cv_struct_tm_has_gmtoff=no
35405
35406fi
35407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35408
35409fi
35410echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35411echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35412 fi
35413
35414 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35415 cat >>confdefs.h <<\_ACEOF
35416#define WX_GMTOFF_IN_TM 1
35417_ACEOF
35418
35419 fi
35420
35421
35422
35423for ac_func in gettimeofday ftime
35424do
35425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35426echo "$as_me:$LINENO: checking for $ac_func" >&5
35427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35428if eval "test \"\${$as_ac_var+set}\" = set"; then
35429 echo $ECHO_N "(cached) $ECHO_C" >&6
35430else
35431 cat >conftest.$ac_ext <<_ACEOF
35432/* confdefs.h. */
35433_ACEOF
35434cat confdefs.h >>conftest.$ac_ext
35435cat >>conftest.$ac_ext <<_ACEOF
35436/* end confdefs.h. */
35437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35439#define $ac_func innocuous_$ac_func
35440
35441/* System header to define __stub macros and hopefully few prototypes,
35442 which can conflict with char $ac_func (); below.
35443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35444 <limits.h> exists even on freestanding compilers. */
35445
35446#ifdef __STDC__
35447# include <limits.h>
35448#else
35449# include <assert.h>
35450#endif
35451
35452#undef $ac_func
35453
35454/* Override any gcc2 internal prototype to avoid an error. */
35455#ifdef __cplusplus
35456extern "C"
35457{
35458#endif
35459/* We use char because int might match the return type of a gcc2
35460 builtin and then its argument prototype would still apply. */
35461char $ac_func ();
35462/* The GNU C library defines this for functions which it implements
35463 to always fail with ENOSYS. Some functions are actually named
35464 something starting with __ and the normal name is an alias. */
35465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35466choke me
35467#else
35468char (*f) () = $ac_func;
35469#endif
35470#ifdef __cplusplus
35471}
35472#endif
35473
35474int
35475main ()
35476{
35477return f != $ac_func;
35478 ;
35479 return 0;
35480}
35481_ACEOF
35482rm -f conftest.$ac_objext conftest$ac_exeext
35483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35484 (eval $ac_link) 2>conftest.er1
35485 ac_status=$?
35486 grep -v '^ *+' conftest.er1 >conftest.err
35487 rm -f conftest.er1
35488 cat conftest.err >&5
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); } &&
dcc1b6ad
VS
35491 { ac_try='test -z "$ac_c_werror_flag"
35492 || test ! -s conftest.err'
a848cd7e
SC
35493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494 (eval $ac_try) 2>&5
35495 ac_status=$?
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); }; } &&
35498 { ac_try='test -s conftest$ac_exeext'
35499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500 (eval $ac_try) 2>&5
35501 ac_status=$?
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); }; }; then
35504 eval "$as_ac_var=yes"
35505else
35506 echo "$as_me: failed program was:" >&5
35507sed 's/^/| /' conftest.$ac_ext >&5
35508
35509eval "$as_ac_var=no"
35510fi
35511rm -f conftest.err conftest.$ac_objext \
35512 conftest$ac_exeext conftest.$ac_ext
35513fi
35514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35516if test `eval echo '${'$as_ac_var'}'` = yes; then
35517 cat >>confdefs.h <<_ACEOF
35518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35519_ACEOF
35520 break
35521fi
35522done
35523
35524
35525 if test "$ac_cv_func_gettimeofday" = "yes"; then
35526 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35527echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35528if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35529 echo $ECHO_N "(cached) $ECHO_C" >&6
35530else
35531
35532
35533
35534 ac_ext=cc
35535ac_cpp='$CXXCPP $CPPFLAGS'
35536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35539
35540
35541 cat >conftest.$ac_ext <<_ACEOF
35542/* confdefs.h. */
35543_ACEOF
35544cat confdefs.h >>conftest.$ac_ext
35545cat >>conftest.$ac_ext <<_ACEOF
35546/* end confdefs.h. */
35547
35548 #include <sys/time.h>
35549 #include <unistd.h>
35550
35551int
35552main ()
35553{
35554
35555 struct timeval tv;
35556 gettimeofday(&tv, NULL);
35557
35558 ;
35559 return 0;
35560}
35561_ACEOF
35562rm -f conftest.$ac_objext
35563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564 (eval $ac_compile) 2>conftest.er1
35565 ac_status=$?
35566 grep -v '^ *+' conftest.er1 >conftest.err
35567 rm -f conftest.er1
35568 cat conftest.err >&5
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); } &&
dcc1b6ad
VS
35571 { ac_try='test -z "$ac_cxx_werror_flag"
35572 || test ! -s conftest.err'
a848cd7e
SC
35573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574 (eval $ac_try) 2>&5
35575 ac_status=$?
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); }; } &&
35578 { ac_try='test -s conftest.$ac_objext'
35579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580 (eval $ac_try) 2>&5
35581 ac_status=$?
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); }; }; then
35584 wx_cv_func_gettimeofday_has_2_args=yes
35585else
35586 echo "$as_me: failed program was:" >&5
35587sed 's/^/| /' conftest.$ac_ext >&5
35588
35589cat >conftest.$ac_ext <<_ACEOF
35590/* confdefs.h. */
35591_ACEOF
35592cat confdefs.h >>conftest.$ac_ext
35593cat >>conftest.$ac_ext <<_ACEOF
35594/* end confdefs.h. */
35595
35596 #include <sys/time.h>
35597 #include <unistd.h>
35598
35599int
35600main ()
35601{
35602
35603 struct timeval tv;
35604 gettimeofday(&tv);
35605
35606 ;
35607 return 0;
35608}
35609_ACEOF
35610rm -f conftest.$ac_objext
35611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35612 (eval $ac_compile) 2>conftest.er1
35613 ac_status=$?
35614 grep -v '^ *+' conftest.er1 >conftest.err
35615 rm -f conftest.er1
35616 cat conftest.err >&5
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); } &&
dcc1b6ad
VS
35619 { ac_try='test -z "$ac_cxx_werror_flag"
35620 || test ! -s conftest.err'
a848cd7e
SC
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; } &&
35626 { ac_try='test -s conftest.$ac_objext'
35627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628 (eval $ac_try) 2>&5
35629 ac_status=$?
35630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); }; }; then
35632 wx_cv_func_gettimeofday_has_2_args=no
35633else
35634 echo "$as_me: failed program was:" >&5
35635sed 's/^/| /' conftest.$ac_ext >&5
35636
35637
35638 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35639echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35640 wx_cv_func_gettimeofday_has_2_args=unknown
35641
35642
35643fi
35644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35645
35646fi
35647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35648 ac_ext=c
35649ac_cpp='$CPP $CPPFLAGS'
35650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35652ac_compiler_gnu=$ac_cv_c_compiler_gnu
35653
35654
35655fi
35656echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35657echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35658
35659 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35660 cat >>confdefs.h <<\_ACEOF
35661#define WX_GETTIMEOFDAY_NO_TZ 1
35662_ACEOF
35663
35664 fi
35665 fi
35666
35667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35668fi
35669
35670
35671if test "$wxUSE_SOCKETS" = "yes"; then
35672 if test "$wxUSE_MGL" = "1"; then
35673 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35674echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35675 wxUSE_SOCKETS="no"
35676 fi
35677fi
35678
35679if test "$wxUSE_SOCKETS" = "yes"; then
35680 if test "$TOOLKIT" != "MSW"; then
35681 echo "$as_me:$LINENO: checking for socket" >&5
35682echo $ECHO_N "checking for socket... $ECHO_C" >&6
35683if test "${ac_cv_func_socket+set}" = set; then
35684 echo $ECHO_N "(cached) $ECHO_C" >&6
35685else
35686 cat >conftest.$ac_ext <<_ACEOF
35687/* confdefs.h. */
35688_ACEOF
35689cat confdefs.h >>conftest.$ac_ext
35690cat >>conftest.$ac_ext <<_ACEOF
35691/* end confdefs.h. */
35692/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35694#define socket innocuous_socket
35695
35696/* System header to define __stub macros and hopefully few prototypes,
35697 which can conflict with char socket (); below.
35698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35699 <limits.h> exists even on freestanding compilers. */
35700
35701#ifdef __STDC__
35702# include <limits.h>
35703#else
35704# include <assert.h>
35705#endif
35706
35707#undef socket
35708
35709/* Override any gcc2 internal prototype to avoid an error. */
35710#ifdef __cplusplus
35711extern "C"
35712{
35713#endif
35714/* We use char because int might match the return type of a gcc2
35715 builtin and then its argument prototype would still apply. */
35716char socket ();
35717/* The GNU C library defines this for functions which it implements
35718 to always fail with ENOSYS. Some functions are actually named
35719 something starting with __ and the normal name is an alias. */
35720#if defined (__stub_socket) || defined (__stub___socket)
35721choke me
35722#else
35723char (*f) () = socket;
35724#endif
35725#ifdef __cplusplus
35726}
35727#endif
35728
35729int
35730main ()
35731{
35732return f != socket;
35733 ;
35734 return 0;
35735}
35736_ACEOF
35737rm -f conftest.$ac_objext conftest$ac_exeext
35738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35739 (eval $ac_link) 2>conftest.er1
35740 ac_status=$?
35741 grep -v '^ *+' conftest.er1 >conftest.err
35742 rm -f conftest.er1
35743 cat conftest.err >&5
35744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745 (exit $ac_status); } &&
dcc1b6ad
VS
35746 { ac_try='test -z "$ac_c_werror_flag"
35747 || test ! -s conftest.err'
a848cd7e
SC
35748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35749 (eval $ac_try) 2>&5
35750 ac_status=$?
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); }; } &&
35753 { ac_try='test -s conftest$ac_exeext'
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; }; then
35759 ac_cv_func_socket=yes
35760else
35761 echo "$as_me: failed program was:" >&5
35762sed 's/^/| /' conftest.$ac_ext >&5
35763
35764ac_cv_func_socket=no
35765fi
35766rm -f conftest.err conftest.$ac_objext \
35767 conftest$ac_exeext conftest.$ac_ext
35768fi
35769echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35770echo "${ECHO_T}$ac_cv_func_socket" >&6
35771if test $ac_cv_func_socket = yes; then
35772 :
35773else
35774
35775 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35776echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35777if test "${ac_cv_lib_socket_socket+set}" = set; then
35778 echo $ECHO_N "(cached) $ECHO_C" >&6
35779else
35780 ac_check_lib_save_LIBS=$LIBS
35781LIBS="-lsocket $LIBS"
35782cat >conftest.$ac_ext <<_ACEOF
35783/* confdefs.h. */
35784_ACEOF
35785cat confdefs.h >>conftest.$ac_ext
35786cat >>conftest.$ac_ext <<_ACEOF
35787/* end confdefs.h. */
35788
35789/* Override any gcc2 internal prototype to avoid an error. */
35790#ifdef __cplusplus
35791extern "C"
35792#endif
35793/* We use char because int might match the return type of a gcc2
35794 builtin and then its argument prototype would still apply. */
35795char socket ();
35796int
35797main ()
35798{
35799socket ();
35800 ;
35801 return 0;
35802}
35803_ACEOF
35804rm -f conftest.$ac_objext conftest$ac_exeext
35805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35806 (eval $ac_link) 2>conftest.er1
35807 ac_status=$?
35808 grep -v '^ *+' conftest.er1 >conftest.err
35809 rm -f conftest.er1
35810 cat conftest.err >&5
35811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812 (exit $ac_status); } &&
dcc1b6ad
VS
35813 { ac_try='test -z "$ac_c_werror_flag"
35814 || test ! -s conftest.err'
a848cd7e
SC
35815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35816 (eval $ac_try) 2>&5
35817 ac_status=$?
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); }; } &&
35820 { ac_try='test -s conftest$ac_exeext'
35821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822 (eval $ac_try) 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; }; then
35826 ac_cv_lib_socket_socket=yes
35827else
35828 echo "$as_me: failed program was:" >&5
35829sed 's/^/| /' conftest.$ac_ext >&5
35830
35831ac_cv_lib_socket_socket=no
35832fi
35833rm -f conftest.err conftest.$ac_objext \
35834 conftest$ac_exeext conftest.$ac_ext
35835LIBS=$ac_check_lib_save_LIBS
35836fi
35837echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35838echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35839if test $ac_cv_lib_socket_socket = yes; then
35840 if test "$INET_LINK" != " -lsocket"; then
35841 INET_LINK="$INET_LINK -lsocket"
35842 fi
35843else
35844
35845 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35846echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35847 wxUSE_SOCKETS=no
35848
35849
35850fi
35851
35852
35853
35854fi
35855
35856 fi
35857fi
35858
35859if test "$wxUSE_SOCKETS" = "yes" ; then
35860 if test "$TOOLKIT" != "MSW"; then
35861 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35862echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35863if test "${wx_cv_type_getsockname3+set}" = set; then
35864 echo $ECHO_N "(cached) $ECHO_C" >&6
35865else
35866
35867 cat >conftest.$ac_ext <<_ACEOF
35868/* confdefs.h. */
35869_ACEOF
35870cat confdefs.h >>conftest.$ac_ext
35871cat >>conftest.$ac_ext <<_ACEOF
35872/* end confdefs.h. */
35873
35874 #include <sys/types.h>
35875 #include <sys/socket.h>
35876
35877int
35878main ()
35879{
35880
35881 socklen_t len;
35882 getsockname(0, 0, &len);
35883
35884 ;
35885 return 0;
35886}
35887_ACEOF
35888rm -f conftest.$ac_objext
35889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35890 (eval $ac_compile) 2>conftest.er1
35891 ac_status=$?
35892 grep -v '^ *+' conftest.er1 >conftest.err
35893 rm -f conftest.er1
35894 cat conftest.err >&5
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); } &&
dcc1b6ad
VS
35897 { ac_try='test -z "$ac_c_werror_flag"
35898 || test ! -s conftest.err'
a848cd7e
SC
35899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900 (eval $ac_try) 2>&5
35901 ac_status=$?
35902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903 (exit $ac_status); }; } &&
35904 { ac_try='test -s conftest.$ac_objext'
35905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35906 (eval $ac_try) 2>&5
35907 ac_status=$?
35908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909 (exit $ac_status); }; }; then
35910 wx_cv_type_getsockname3=socklen_t
35911else
35912 echo "$as_me: failed program was:" >&5
35913sed 's/^/| /' conftest.$ac_ext >&5
35914
35915
35916 CFLAGS_OLD="$CFLAGS"
35917 if test "$GCC" = yes ; then
35918 CFLAGS="$CFLAGS -Werror"
35919 fi
35920
35921 cat >conftest.$ac_ext <<_ACEOF
35922/* confdefs.h. */
35923_ACEOF
35924cat confdefs.h >>conftest.$ac_ext
35925cat >>conftest.$ac_ext <<_ACEOF
35926/* end confdefs.h. */
35927
35928 #include <sys/types.h>
35929 #include <sys/socket.h>
35930
35931int
35932main ()
35933{
35934
35935 size_t len;
35936 getsockname(0, 0, &len);
35937
35938 ;
35939 return 0;
35940}
35941_ACEOF
35942rm -f conftest.$ac_objext
35943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35944 (eval $ac_compile) 2>conftest.er1
35945 ac_status=$?
35946 grep -v '^ *+' conftest.er1 >conftest.err
35947 rm -f conftest.er1
35948 cat conftest.err >&5
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); } &&
dcc1b6ad
VS
35951 { ac_try='test -z "$ac_c_werror_flag"
35952 || test ! -s conftest.err'
a848cd7e
SC
35953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35954 (eval $ac_try) 2>&5
35955 ac_status=$?
35956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957 (exit $ac_status); }; } &&
35958 { ac_try='test -s conftest.$ac_objext'
35959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35960 (eval $ac_try) 2>&5
35961 ac_status=$?
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); }; }; then
35964 wx_cv_type_getsockname3=size_t
35965else
35966 echo "$as_me: failed program was:" >&5
35967sed 's/^/| /' conftest.$ac_ext >&5
35968
35969cat >conftest.$ac_ext <<_ACEOF
35970/* confdefs.h. */
35971_ACEOF
35972cat confdefs.h >>conftest.$ac_ext
35973cat >>conftest.$ac_ext <<_ACEOF
35974/* end confdefs.h. */
35975
35976 #include <sys/types.h>
35977 #include <sys/socket.h>
35978
35979int
35980main ()
35981{
35982
35983 int len;
35984 getsockname(0, 0, &len);
35985
35986 ;
35987 return 0;
35988}
35989_ACEOF
35990rm -f conftest.$ac_objext
35991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35992 (eval $ac_compile) 2>conftest.er1
35993 ac_status=$?
35994 grep -v '^ *+' conftest.er1 >conftest.err
35995 rm -f conftest.er1
35996 cat conftest.err >&5
35997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998 (exit $ac_status); } &&
dcc1b6ad
VS
35999 { ac_try='test -z "$ac_c_werror_flag"
36000 || test ! -s conftest.err'
a848cd7e
SC
36001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36002 (eval $ac_try) 2>&5
36003 ac_status=$?
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); }; } &&
36006 { ac_try='test -s conftest.$ac_objext'
36007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008 (eval $ac_try) 2>&5
36009 ac_status=$?
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); }; }; then
36012 wx_cv_type_getsockname3=int
36013else
36014 echo "$as_me: failed program was:" >&5
36015sed 's/^/| /' conftest.$ac_ext >&5
36016
36017wx_cv_type_getsockname3=unknown
36018
36019fi
36020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36021
36022fi
36023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36024
36025 CFLAGS="$CFLAGS_OLD"
36026
36027
36028fi
36029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36030
36031fi
36032echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36033echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36034
36035 if test "$wx_cv_type_getsockname3" = "unknown"; then
36036 wxUSE_SOCKETS=no
36037 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36038echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36039 else
36040 cat >>confdefs.h <<_ACEOF
36041#define SOCKLEN_T $wx_cv_type_getsockname3
36042_ACEOF
36043
36044 fi
36045 fi
36046fi
36047
36048if test "$wxUSE_SOCKETS" = "yes" ; then
36049 cat >>confdefs.h <<\_ACEOF
36050#define wxUSE_SOCKETS 1
36051_ACEOF
36052
36053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36054fi
36055
36056if test "$wxUSE_PROTOCOL" = "yes"; then
36057 if test "$wxUSE_SOCKETS" != "yes"; then
36058 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36059echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36060 wxUSE_PROTOCOL=no
36061 fi
36062fi
36063
36064if test "$wxUSE_PROTOCOL" = "yes"; then
36065 cat >>confdefs.h <<\_ACEOF
36066#define wxUSE_PROTOCOL 1
36067_ACEOF
36068
36069
36070 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36071 cat >>confdefs.h <<\_ACEOF
36072#define wxUSE_PROTOCOL_HTTP 1
36073_ACEOF
36074
36075 fi
36076 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36077 cat >>confdefs.h <<\_ACEOF
36078#define wxUSE_PROTOCOL_FTP 1
36079_ACEOF
36080
36081 fi
36082 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36083 cat >>confdefs.h <<\_ACEOF
36084#define wxUSE_PROTOCOL_FILE 1
36085_ACEOF
36086
36087 fi
36088else
36089 if test "$wxUSE_FS_INET" = "yes"; then
36090 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36091echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36092 wxUSE_FS_INET="no"
36093 fi
36094fi
36095
36096if test "$wxUSE_URL" = "yes"; then
36097 if test "$wxUSE_PROTOCOL" != "yes"; then
36098 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36099echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36100 wxUSE_URL=no
36101 fi
36102 if test "$wxUSE_URL" = "yes"; then
36103 cat >>confdefs.h <<\_ACEOF
36104#define wxUSE_URL 1
36105_ACEOF
36106
36107 fi
36108fi
36109
36110if test "$wxUSE_FS_INET" = "yes"; then
36111 cat >>confdefs.h <<\_ACEOF
36112#define wxUSE_FS_INET 1
36113_ACEOF
36114
36115fi
36116
36117
36118if test "$wxUSE_GUI" = "yes"; then
36119
36120 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36121 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36122echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36123 wxUSE_JOYSTICK=no
36124 fi
36125
36126 if test "$TOOLKIT" != "MSW"; then
36127 if test "$wxUSE_JOYSTICK" = "yes"; then
36128
36129for ac_header in linux/joystick.h
36130do
36131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36132if eval "test \"\${$as_ac_Header+set}\" = set"; then
36133 echo "$as_me:$LINENO: checking for $ac_header" >&5
36134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36135if eval "test \"\${$as_ac_Header+set}\" = set"; then
36136 echo $ECHO_N "(cached) $ECHO_C" >&6
36137fi
36138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36140else
36141 # Is the header compilable?
36142echo "$as_me:$LINENO: checking $ac_header usability" >&5
36143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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$ac_includes_default
36151#include <$ac_header>
36152_ACEOF
36153rm -f conftest.$ac_objext
36154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36155 (eval $ac_compile) 2>conftest.er1
36156 ac_status=$?
36157 grep -v '^ *+' conftest.er1 >conftest.err
36158 rm -f conftest.er1
36159 cat conftest.err >&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } &&
dcc1b6ad
VS
36162 { ac_try='test -z "$ac_c_werror_flag"
36163 || test ! -s conftest.err'
a848cd7e
SC
36164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36165 (eval $ac_try) 2>&5
36166 ac_status=$?
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); }; } &&
36169 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
36175 ac_header_compiler=yes
36176else
36177 echo "$as_me: failed program was:" >&5
36178sed 's/^/| /' conftest.$ac_ext >&5
36179
36180ac_header_compiler=no
36181fi
36182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36184echo "${ECHO_T}$ac_header_compiler" >&6
36185
36186# Is the header present?
36187echo "$as_me:$LINENO: checking $ac_header presence" >&5
36188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36189cat >conftest.$ac_ext <<_ACEOF
36190/* confdefs.h. */
36191_ACEOF
36192cat confdefs.h >>conftest.$ac_ext
36193cat >>conftest.$ac_ext <<_ACEOF
36194/* end confdefs.h. */
36195#include <$ac_header>
36196_ACEOF
36197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36199 ac_status=$?
36200 grep -v '^ *+' conftest.er1 >conftest.err
36201 rm -f conftest.er1
36202 cat conftest.err >&5
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); } >/dev/null; then
36205 if test -s conftest.err; then
36206 ac_cpp_err=$ac_c_preproc_warn_flag
36207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36208 else
36209 ac_cpp_err=
36210 fi
36211else
36212 ac_cpp_err=yes
36213fi
36214if test -z "$ac_cpp_err"; then
36215 ac_header_preproc=yes
36216else
36217 echo "$as_me: failed program was:" >&5
36218sed 's/^/| /' conftest.$ac_ext >&5
36219
36220 ac_header_preproc=no
36221fi
36222rm -f conftest.err conftest.$ac_ext
36223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36224echo "${ECHO_T}$ac_header_preproc" >&6
36225
36226# So? What about this header?
36227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36228 yes:no: )
36229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36233 ac_header_preproc=yes
36234 ;;
36235 no:yes:* )
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36248 (
36249 cat <<\_ASBOX
36250## ----------------------------------------- ##
36251## Report this to wx-dev@lists.wxwindows.org ##
36252## ----------------------------------------- ##
36253_ASBOX
36254 ) |
36255 sed "s/^/$as_me: WARNING: /" >&2
36256 ;;
36257esac
36258echo "$as_me:$LINENO: checking for $ac_header" >&5
36259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36260if eval "test \"\${$as_ac_Header+set}\" = set"; then
36261 echo $ECHO_N "(cached) $ECHO_C" >&6
36262else
36263 eval "$as_ac_Header=\$ac_header_preproc"
36264fi
36265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36267
36268fi
36269if test `eval echo '${'$as_ac_Header'}'` = yes; then
36270 cat >>confdefs.h <<_ACEOF
36271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36272_ACEOF
36273
36274fi
36275
36276done
36277
36278 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36279 wxUSE_JOYSTICK=no
36280 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36281echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36282 fi
36283 fi
36284 fi
36285
36286 if test "$wxUSE_JOYSTICK" = "yes"; then
36287 cat >>confdefs.h <<\_ACEOF
36288#define wxUSE_JOYSTICK 1
36289_ACEOF
36290
36291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36292 fi
36293fi
36294
36295
36296
36297if test "$wxUSE_FONTMAP" = "yes" ; then
36298 cat >>confdefs.h <<\_ACEOF
36299#define wxUSE_FONTMAP 1
36300_ACEOF
36301
36302fi
36303
36304if test "$wxUSE_UNICODE" = "yes" ; then
36305 cat >>confdefs.h <<\_ACEOF
36306#define wxUSE_UNICODE 1
36307_ACEOF
36308
36309
36310 if test "$USE_WIN32" != 1; then
36311 wxUSE_UNICODE_MSLU=no
36312 fi
36313
36314 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36315 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36316echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36317if test "${ac_cv_lib_unicows_main+set}" = set; then
36318 echo $ECHO_N "(cached) $ECHO_C" >&6
36319else
36320 ac_check_lib_save_LIBS=$LIBS
36321LIBS="-lunicows $LIBS"
36322cat >conftest.$ac_ext <<_ACEOF
36323/* confdefs.h. */
36324_ACEOF
36325cat confdefs.h >>conftest.$ac_ext
36326cat >>conftest.$ac_ext <<_ACEOF
36327/* end confdefs.h. */
36328
36329
36330int
36331main ()
36332{
36333main ();
36334 ;
36335 return 0;
36336}
36337_ACEOF
36338rm -f conftest.$ac_objext conftest$ac_exeext
36339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36340 (eval $ac_link) 2>conftest.er1
36341 ac_status=$?
36342 grep -v '^ *+' conftest.er1 >conftest.err
36343 rm -f conftest.er1
36344 cat conftest.err >&5
36345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346 (exit $ac_status); } &&
dcc1b6ad
VS
36347 { ac_try='test -z "$ac_c_werror_flag"
36348 || test ! -s conftest.err'
a848cd7e
SC
36349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350 (eval $ac_try) 2>&5
36351 ac_status=$?
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); }; } &&
36354 { ac_try='test -s conftest$ac_exeext'
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; }; then
36360 ac_cv_lib_unicows_main=yes
36361else
36362 echo "$as_me: failed program was:" >&5
36363sed 's/^/| /' conftest.$ac_ext >&5
36364
36365ac_cv_lib_unicows_main=no
36366fi
36367rm -f conftest.err conftest.$ac_objext \
36368 conftest$ac_exeext conftest.$ac_ext
36369LIBS=$ac_check_lib_save_LIBS
36370fi
36371echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36372echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36373if test $ac_cv_lib_unicows_main = yes; then
36374
36375 cat >>confdefs.h <<\_ACEOF
36376#define wxUSE_UNICODE_MSLU 1
36377_ACEOF
36378
36379
36380else
36381
36382 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36383 Applications will only run on Windows NT/2000/XP!" >&5
36384echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36385 Applications will only run on Windows NT/2000/XP!" >&2;}
36386 wxUSE_UNICODE_MSLU=no
36387
36388fi
36389
36390 fi
36391fi
36392
36393if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36394 cat >>confdefs.h <<\_ACEOF
36395#define wxUSE_EXPERIMENTAL_PRINTF 1
36396_ACEOF
36397
36398fi
36399
36400
36401if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36402 cat >>confdefs.h <<\_ACEOF
36403#define wxUSE_POSTSCRIPT 1
36404_ACEOF
36405
36406fi
36407
36408cat >>confdefs.h <<\_ACEOF
36409#define wxUSE_AFM_FOR_POSTSCRIPT 1
36410_ACEOF
36411
36412
36413cat >>confdefs.h <<\_ACEOF
36414#define wxUSE_NORMALIZED_PS_FONTS 1
36415_ACEOF
36416
36417
36418
36419if test "$wxUSE_CONSTRAINTS" = "yes"; then
36420 cat >>confdefs.h <<\_ACEOF
36421#define wxUSE_CONSTRAINTS 1
36422_ACEOF
36423
36424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36425fi
36426
36427if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36428 cat >>confdefs.h <<\_ACEOF
36429#define wxUSE_MDI_ARCHITECTURE 1
36430_ACEOF
36431
36432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36433fi
36434
36435if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36436 cat >>confdefs.h <<\_ACEOF
36437#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36438_ACEOF
36439
36440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36441 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36443 fi
36444fi
36445
36446if test "$wxUSE_HELP" = "yes"; then
36447 cat >>confdefs.h <<\_ACEOF
36448#define wxUSE_HELP 1
36449_ACEOF
36450
36451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36452
36453 if test "$wxUSE_MSW" = 1; then
36454 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36455 cat >>confdefs.h <<\_ACEOF
36456#define wxUSE_MS_HTML_HELP 1
36457_ACEOF
36458
36459 fi
36460 fi
36461
36462 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36463 if test "$wxUSE_HTML" = "yes"; then
36464 cat >>confdefs.h <<\_ACEOF
36465#define wxUSE_WXHTML_HELP 1
36466_ACEOF
36467
36468 else
36469 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36470echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36471 wxUSE_WXHTML_HELP=no
36472 fi
36473 fi
36474fi
36475
36476if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36477 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36478 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36479echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36480 else
36481 cat >>confdefs.h <<\_ACEOF
36482#define wxUSE_PRINTING_ARCHITECTURE 1
36483_ACEOF
36484
36485 fi
36486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36487fi
36488
36489if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36490 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36491echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36492 { (exit 1); exit 1; }; }
36493fi
36494
36495
36496if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36497 -o "$wxUSE_CLIPBOARD" = "yes" \
36498 -o "$wxUSE_OLE" = "yes" \
36499 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36500
36501for ac_header in ole2.h
36502do
36503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36504if eval "test \"\${$as_ac_Header+set}\" = set"; then
36505 echo "$as_me:$LINENO: checking for $ac_header" >&5
36506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36507if eval "test \"\${$as_ac_Header+set}\" = set"; then
36508 echo $ECHO_N "(cached) $ECHO_C" >&6
36509fi
36510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36512else
36513 # Is the header compilable?
36514echo "$as_me:$LINENO: checking $ac_header usability" >&5
36515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36516cat >conftest.$ac_ext <<_ACEOF
36517/* confdefs.h. */
36518_ACEOF
36519cat confdefs.h >>conftest.$ac_ext
36520cat >>conftest.$ac_ext <<_ACEOF
36521/* end confdefs.h. */
36522$ac_includes_default
36523#include <$ac_header>
36524_ACEOF
36525rm -f conftest.$ac_objext
36526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36527 (eval $ac_compile) 2>conftest.er1
36528 ac_status=$?
36529 grep -v '^ *+' conftest.er1 >conftest.err
36530 rm -f conftest.er1
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } &&
dcc1b6ad
VS
36534 { ac_try='test -z "$ac_c_werror_flag"
36535 || test ! -s conftest.err'
a848cd7e
SC
36536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36537 (eval $ac_try) 2>&5
36538 ac_status=$?
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; } &&
36541 { ac_try='test -s conftest.$ac_objext'
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36544 ac_status=$?
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; }; then
36547 ac_header_compiler=yes
36548else
36549 echo "$as_me: failed program was:" >&5
36550sed 's/^/| /' conftest.$ac_ext >&5
36551
36552ac_header_compiler=no
36553fi
36554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36556echo "${ECHO_T}$ac_header_compiler" >&6
36557
36558# Is the header present?
36559echo "$as_me:$LINENO: checking $ac_header presence" >&5
36560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36561cat >conftest.$ac_ext <<_ACEOF
36562/* confdefs.h. */
36563_ACEOF
36564cat confdefs.h >>conftest.$ac_ext
36565cat >>conftest.$ac_ext <<_ACEOF
36566/* end confdefs.h. */
36567#include <$ac_header>
36568_ACEOF
36569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36571 ac_status=$?
36572 grep -v '^ *+' conftest.er1 >conftest.err
36573 rm -f conftest.er1
36574 cat conftest.err >&5
36575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36576 (exit $ac_status); } >/dev/null; then
36577 if test -s conftest.err; then
36578 ac_cpp_err=$ac_c_preproc_warn_flag
36579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36580 else
36581 ac_cpp_err=
36582 fi
36583else
36584 ac_cpp_err=yes
36585fi
36586if test -z "$ac_cpp_err"; then
36587 ac_header_preproc=yes
36588else
36589 echo "$as_me: failed program was:" >&5
36590sed 's/^/| /' conftest.$ac_ext >&5
36591
36592 ac_header_preproc=no
36593fi
36594rm -f conftest.err conftest.$ac_ext
36595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36596echo "${ECHO_T}$ac_header_preproc" >&6
36597
36598# So? What about this header?
36599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36600 yes:no: )
36601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36605 ac_header_preproc=yes
36606 ;;
36607 no:yes:* )
36608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36620 (
36621 cat <<\_ASBOX
36622## ----------------------------------------- ##
36623## Report this to wx-dev@lists.wxwindows.org ##
36624## ----------------------------------------- ##
36625_ASBOX
36626 ) |
36627 sed "s/^/$as_me: WARNING: /" >&2
36628 ;;
36629esac
36630echo "$as_me:$LINENO: checking for $ac_header" >&5
36631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36632if eval "test \"\${$as_ac_Header+set}\" = set"; then
36633 echo $ECHO_N "(cached) $ECHO_C" >&6
36634else
36635 eval "$as_ac_Header=\$ac_header_preproc"
36636fi
36637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36639
36640fi
36641if test `eval echo '${'$as_ac_Header'}'` = yes; then
36642 cat >>confdefs.h <<_ACEOF
36643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36644_ACEOF
36645
36646fi
36647
36648done
36649
36650
36651 if test "$ac_cv_header_ole2_h" = "yes" ; then
36652 if test "$GCC" = yes ; then
36653
36654
36655 ac_ext=cc
36656ac_cpp='$CXXCPP $CPPFLAGS'
36657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36660
36661
36662 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36663echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36664 cat >conftest.$ac_ext <<_ACEOF
36665/* confdefs.h. */
36666_ACEOF
36667cat confdefs.h >>conftest.$ac_ext
36668cat >>conftest.$ac_ext <<_ACEOF
36669/* end confdefs.h. */
36670#include <windows.h>
36671 #include <ole2.h>
36672int
36673main ()
36674{
36675
36676 ;
36677 return 0;
36678}
36679_ACEOF
36680rm -f conftest.$ac_objext
36681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36682 (eval $ac_compile) 2>conftest.er1
36683 ac_status=$?
36684 grep -v '^ *+' conftest.er1 >conftest.err
36685 rm -f conftest.er1
36686 cat conftest.err >&5
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); } &&
dcc1b6ad
VS
36689 { ac_try='test -z "$ac_cxx_werror_flag"
36690 || test ! -s conftest.err'
a848cd7e
SC
36691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36692 (eval $ac_try) 2>&5
36693 ac_status=$?
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); }; } &&
36696 { ac_try='test -s conftest.$ac_objext'
36697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36698 (eval $ac_try) 2>&5
36699 ac_status=$?
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); }; }; then
36702 echo "$as_me:$LINENO: result: no" >&5
36703echo "${ECHO_T}no" >&6
36704else
36705 echo "$as_me: failed program was:" >&5
36706sed 's/^/| /' conftest.$ac_ext >&5
36707
36708echo "$as_me:$LINENO: result: yes" >&5
36709echo "${ECHO_T}yes" >&6
36710 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36711fi
36712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36713 ac_ext=c
36714ac_cpp='$CPP $CPPFLAGS'
36715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36717ac_compiler_gnu=$ac_cv_c_compiler_gnu
36718
36719 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36720 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36721 if test "$wxUSE_OLE" = "yes" ; then
36722 cat >>confdefs.h <<\_ACEOF
36723#define wxUSE_OLE 1
36724_ACEOF
36725
36726 fi
36727 fi
36728
36729 if test "$wxUSE_DATAOBJ" = "yes" ; then
36730 cat >>confdefs.h <<\_ACEOF
36731#define wxUSE_DATAOBJ 1
36732_ACEOF
36733
36734 fi
36735 else
36736 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36737echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36738
36739 wxUSE_CLIPBOARD=no
36740 wxUSE_DRAG_AND_DROP=no
36741 wxUSE_DATAOBJ=no
36742 wxUSE_OLE=no
36743 fi
36744
36745 if test "$wxUSE_METAFILE" = "yes"; then
36746 cat >>confdefs.h <<\_ACEOF
36747#define wxUSE_METAFILE 1
36748_ACEOF
36749
36750
36751 cat >>confdefs.h <<\_ACEOF
36752#define wxUSE_ENH_METAFILE 1
36753_ACEOF
36754
36755 fi
36756fi
36757
36758if test "$wxUSE_IPC" = "yes"; then
36759 if test "$wxUSE_SOCKETS" != "yes"; then
36760 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36761echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36762 fi
36763
36764 cat >>confdefs.h <<\_ACEOF
36765#define wxUSE_IPC 1
36766_ACEOF
36767
36768fi
36769
36770if test "$wxUSE_CLIPBOARD" = "yes"; then
36771 if test "$wxUSE_MGL" = 1; then
36772 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36773echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36774 wxUSE_CLIPBOARD=no
36775 fi
36776
36777 if test "$wxUSE_CLIPBOARD" = "yes"; then
36778 cat >>confdefs.h <<\_ACEOF
36779#define wxUSE_CLIPBOARD 1
36780_ACEOF
36781
36782
36783 cat >>confdefs.h <<\_ACEOF
36784#define wxUSE_DATAOBJ 1
36785_ACEOF
36786
36787 fi
36788fi
36789
36790if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36791 if test "$wxUSE_GTK" = 1; then
36792 if test "$WXGTK12" != 1; then
36793 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36794echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36795 wxUSE_DRAG_AND_DROP=no
36796 fi
36797 fi
36798
36799 if test "$wxUSE_MOTIF" = 1; then
36800 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36801echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36802 wxUSE_DRAG_AND_DROP=no
36803 fi
36804
36805 if test "$wxUSE_X11" = 1; then
36806 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36807echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36808 wxUSE_DRAG_AND_DROP=no
36809 fi
36810
36811 if test "$wxUSE_MGL" = 1; then
36812 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36813echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36814 wxUSE_DRAG_AND_DROP=no
36815 fi
36816
36817 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36818 cat >>confdefs.h <<\_ACEOF
36819#define wxUSE_DRAG_AND_DROP 1
36820_ACEOF
36821
36822 fi
36823
36824fi
36825
36826if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36828fi
36829
36830if test "$wxUSE_SPLINES" = "yes" ; then
36831 cat >>confdefs.h <<\_ACEOF
36832#define wxUSE_SPLINES 1
36833_ACEOF
36834
36835fi
36836
36837
36838USES_CONTROLS=0
36839if test "$wxUSE_CONTROLS" = "yes"; then
36840 USES_CONTROLS=1
36841fi
36842
36843if test "$wxUSE_ACCEL" = "yes"; then
36844 cat >>confdefs.h <<\_ACEOF
36845#define wxUSE_ACCEL 1
36846_ACEOF
36847
36848 USES_CONTROLS=1
36849fi
36850
36851if test "$wxUSE_BUTTON" = "yes"; then
36852 cat >>confdefs.h <<\_ACEOF
36853#define wxUSE_BUTTON 1
36854_ACEOF
36855
36856 USES_CONTROLS=1
36857fi
36858
36859if test "$wxUSE_BMPBUTTON" = "yes"; then
36860 cat >>confdefs.h <<\_ACEOF
36861#define wxUSE_BMPBUTTON 1
36862_ACEOF
36863
36864 USES_CONTROLS=1
36865fi
36866
36867if test "$wxUSE_CALCTRL" = "yes"; then
36868 cat >>confdefs.h <<\_ACEOF
36869#define wxUSE_CALENDARCTRL 1
36870_ACEOF
36871
36872 USES_CONTROLS=1
36873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36874fi
36875
36876if test "$wxUSE_CARET" = "yes"; then
36877 cat >>confdefs.h <<\_ACEOF
36878#define wxUSE_CARET 1
36879_ACEOF
36880
36881 USES_CONTROLS=1
36882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36883fi
36884
36885if test "$wxUSE_COMBOBOX" = "yes"; then
36886 cat >>confdefs.h <<\_ACEOF
36887#define wxUSE_COMBOBOX 1
36888_ACEOF
36889
36890 USES_CONTROLS=1
36891fi
36892
36893if test "$wxUSE_CHOICE" = "yes"; then
36894 cat >>confdefs.h <<\_ACEOF
36895#define wxUSE_CHOICE 1
36896_ACEOF
36897
36898 USES_CONTROLS=1
36899fi
36900
36901if test "$wxUSE_CHECKBOX" = "yes"; then
36902 cat >>confdefs.h <<\_ACEOF
36903#define wxUSE_CHECKBOX 1
36904_ACEOF
36905
36906 USES_CONTROLS=1
36907fi
36908
36909if test "$wxUSE_CHECKLST" = "yes"; then
36910 cat >>confdefs.h <<\_ACEOF
36911#define wxUSE_CHECKLISTBOX 1
36912_ACEOF
36913
36914 USES_CONTROLS=1
36915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36916fi
36917
36918if test "$wxUSE_DISPLAY" = "yes"; then
36919 cat >>confdefs.h <<\_ACEOF
36920#define wxUSE_DISPLAY 1
36921_ACEOF
36922
36923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36924fi
36925
36926if test "$wxUSE_GAUGE" = "yes"; then
36927 cat >>confdefs.h <<\_ACEOF
36928#define wxUSE_GAUGE 1
36929_ACEOF
36930
36931 USES_CONTROLS=1
36932fi
36933
36934if test "$wxUSE_GRID" = "yes"; then
36935 cat >>confdefs.h <<\_ACEOF
36936#define wxUSE_GRID 1
36937_ACEOF
36938
36939 USES_CONTROLS=1
36940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36941fi
36942
36943if test "$wxUSE_IMAGLIST" = "yes"; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_IMAGLIST 1
36946_ACEOF
36947
36948fi
36949
36950if test "$wxUSE_LISTBOOK" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_LISTBOOK 1
36953_ACEOF
36954
36955 USES_CONTROLS=1
36956fi
36957
36958if test "$wxUSE_LISTBOX" = "yes"; then
36959 cat >>confdefs.h <<\_ACEOF
36960#define wxUSE_LISTBOX 1
36961_ACEOF
36962
36963 USES_CONTROLS=1
36964fi
36965
36966if test "$wxUSE_LISTCTRL" = "yes"; then
36967 if test "$wxUSE_IMAGLIST" = "yes"; then
36968 cat >>confdefs.h <<\_ACEOF
36969#define wxUSE_LISTCTRL 1
36970_ACEOF
36971
36972 USES_CONTROLS=1
36973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36974 else
36975 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36976echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36977 fi
36978fi
36979
36980if test "$wxUSE_NOTEBOOK" = "yes"; then
36981 cat >>confdefs.h <<\_ACEOF
36982#define wxUSE_NOTEBOOK 1
36983_ACEOF
36984
36985 USES_CONTROLS=1
36986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36987fi
36988
36989
36990if test "$wxUSE_RADIOBOX" = "yes"; then
36991 cat >>confdefs.h <<\_ACEOF
36992#define wxUSE_RADIOBOX 1
36993_ACEOF
36994
36995 USES_CONTROLS=1
36996fi
36997
36998if test "$wxUSE_RADIOBTN" = "yes"; then
36999 cat >>confdefs.h <<\_ACEOF
37000#define wxUSE_RADIOBTN 1
37001_ACEOF
37002
37003 USES_CONTROLS=1
37004fi
37005
37006if test "$wxUSE_SASH" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008#define wxUSE_SASH 1
37009_ACEOF
37010
37011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37012fi
37013
37014if test "$wxUSE_SCROLLBAR" = "yes"; then
37015 cat >>confdefs.h <<\_ACEOF
37016#define wxUSE_SCROLLBAR 1
37017_ACEOF
37018
37019 USES_CONTROLS=1
37020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37021fi
37022
37023if test "$wxUSE_SLIDER" = "yes"; then
37024 cat >>confdefs.h <<\_ACEOF
37025#define wxUSE_SLIDER 1
37026_ACEOF
37027
37028 USES_CONTROLS=1
37029fi
37030
37031if test "$wxUSE_SPINBTN" = "yes"; then
37032 cat >>confdefs.h <<\_ACEOF
37033#define wxUSE_SPINBTN 1
37034_ACEOF
37035
37036 USES_CONTROLS=1
37037fi
37038
37039if test "$wxUSE_SPINCTRL" = "yes"; then
37040 cat >>confdefs.h <<\_ACEOF
37041#define wxUSE_SPINCTRL 1
37042_ACEOF
37043
37044 USES_CONTROLS=1
37045fi
37046
37047if test "$wxUSE_SPLITTER" = "yes"; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_SPLITTER 1
37050_ACEOF
37051
37052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37053fi
37054
37055if test "$wxUSE_STATBMP" = "yes"; then
37056 cat >>confdefs.h <<\_ACEOF
37057#define wxUSE_STATBMP 1
37058_ACEOF
37059
37060 USES_CONTROLS=1
37061fi
37062
37063if test "$wxUSE_STATBOX" = "yes"; then
37064 cat >>confdefs.h <<\_ACEOF
37065#define wxUSE_STATBOX 1
37066_ACEOF
37067
37068 USES_CONTROLS=1
37069fi
37070
37071if test "$wxUSE_STATTEXT" = "yes"; then
37072 cat >>confdefs.h <<\_ACEOF
37073#define wxUSE_STATTEXT 1
37074_ACEOF
37075
37076 USES_CONTROLS=1
37077fi
37078
37079if test "$wxUSE_STATLINE" = "yes"; then
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_STATLINE 1
37082_ACEOF
37083
37084 USES_CONTROLS=1
37085fi
37086
37087if test "$wxUSE_STATUSBAR" = "yes"; then
37088 cat >>confdefs.h <<\_ACEOF
37089#define wxUSE_STATUSBAR 1
37090_ACEOF
37091
37092 USES_CONTROLS=1
37093
37094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37095fi
37096
37097if test "$wxUSE_TABDIALOG" = "yes"; then
37098 cat >>confdefs.h <<\_ACEOF
37099#define wxUSE_TAB_DIALOG 1
37100_ACEOF
37101
37102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37103fi
37104
37105if test "$wxUSE_TEXTCTRL" = "yes"; then
37106 cat >>confdefs.h <<\_ACEOF
37107#define wxUSE_TEXTCTRL 1
37108_ACEOF
37109
37110 USES_CONTROLS=1
37111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37112fi
37113
37114if test "$wxUSE_TOGGLEBTN" = "yes"; then
37115 if test "$wxUSE_COCOA" = 1 ; then
37116 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37117echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37118 wxUSE_TOGGLEBTN=no
37119 fi
37120 if test "$wxUSE_UNIVERSAL" = "yes"; then
37121 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37122echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37123 wxUSE_TOGGLEBTN=no
37124 fi
37125
37126 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37127 cat >>confdefs.h <<\_ACEOF
37128#define wxUSE_TOGGLEBTN 1
37129_ACEOF
37130
37131 USES_CONTROLS=1
37132 fi
37133fi
37134
37135if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37136 cat >>confdefs.h <<\_ACEOF
37137#define wxUSE_TOOLBAR_SIMPLE 1
37138_ACEOF
37139
37140 wxUSE_TOOLBAR="yes"
37141 USES_CONTROLS=1
37142fi
37143
37144if test "$wxUSE_TOOLBAR" = "yes"; then
37145 cat >>confdefs.h <<\_ACEOF
37146#define wxUSE_TOOLBAR 1
37147_ACEOF
37148
37149 USES_CONTROLS=1
37150
37151 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37152 wxUSE_TOOLBAR_NATIVE="yes"
37153 fi
37154
37155 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37156 cat >>confdefs.h <<\_ACEOF
37157#define wxUSE_TOOLBAR_NATIVE 1
37158_ACEOF
37159
37160 USES_CONTROLS=1
37161 fi
37162
37163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37164fi
37165
37166if test "$wxUSE_TOOLTIPS" = "yes"; then
37167 if test "$wxUSE_MOTIF" = 1; then
37168 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37169echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37170 else
37171 if test "$wxUSE_UNIVERSAL" = "yes"; then
37172 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37173echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37174 else
37175 cat >>confdefs.h <<\_ACEOF
37176#define wxUSE_TOOLTIPS 1
37177_ACEOF
37178
37179 fi
37180 fi
37181fi
37182
37183if test "$wxUSE_TREECTRL" = "yes"; then
37184 if test "$wxUSE_IMAGLIST" = "yes"; then
37185 cat >>confdefs.h <<\_ACEOF
37186#define wxUSE_TREECTRL 1
37187_ACEOF
37188
37189 USES_CONTROLS=1
37190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37191 else
37192 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37193echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37194 fi
37195fi
37196
37197if test "$wxUSE_POPUPWIN" = "yes"; then
37198 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37199 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37200echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37201 else
37202 if test "$wxUSE_PM" = 1; then
37203 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37204echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37205 else
37206 cat >>confdefs.h <<\_ACEOF
37207#define wxUSE_POPUPWIN 1
37208_ACEOF
37209
37210
37211 USES_CONTROLS=1
37212 fi
37213 fi
37214fi
37215
37216if test "$wxUSE_TIPWINDOW" = "yes"; then
37217 if test "$wxUSE_PM" = 1; then
37218 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37219echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37220 else
37221 cat >>confdefs.h <<\_ACEOF
37222#define wxUSE_TIPWINDOW 1
37223_ACEOF
37224
37225 fi
37226fi
37227
37228if test "$USES_CONTROLS" = 1; then
37229 cat >>confdefs.h <<\_ACEOF
37230#define wxUSE_CONTROLS 1
37231_ACEOF
37232
37233fi
37234
37235
37236if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37237 cat >>confdefs.h <<\_ACEOF
37238#define wxUSE_ACCESSIBILITY 1
37239_ACEOF
37240
37241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37242fi
37243
37244if test "$wxUSE_DRAGIMAGE" = "yes"; then
37245 cat >>confdefs.h <<\_ACEOF
37246#define wxUSE_DRAGIMAGE 1
37247_ACEOF
37248
37249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37250fi
37251
37252if test "$wxUSE_EXCEPTIONS" = "yes"; then
37253 cat >>confdefs.h <<\_ACEOF
37254#define wxUSE_EXCEPTIONS 1
37255_ACEOF
37256
37257fi
37258
37259USE_HTML=0
37260if test "$wxUSE_HTML" = "yes"; then
37261 cat >>confdefs.h <<\_ACEOF
37262#define wxUSE_HTML 1
37263_ACEOF
37264
37265 USE_HTML=1
37266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37267fi
37268
37269if test "$wxUSE_MENUS" = "yes"; then
37270 cat >>confdefs.h <<\_ACEOF
37271#define wxUSE_MENUS 1
37272_ACEOF
37273
37274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37275fi
37276
37277if test "$wxUSE_METAFILE" = "yes"; then
37278 cat >>confdefs.h <<\_ACEOF
37279#define wxUSE_METAFILE 1
37280_ACEOF
37281
37282fi
37283
37284if test "$wxUSE_MIMETYPE" = "yes"; then
37285 cat >>confdefs.h <<\_ACEOF
37286#define wxUSE_MIMETYPE 1
37287_ACEOF
37288
37289fi
37290
37291if test "$wxUSE_MINIFRAME" = "yes"; then
37292 cat >>confdefs.h <<\_ACEOF
37293#define wxUSE_MINIFRAME 1
37294_ACEOF
37295
37296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37297fi
37298
37299if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37300 cat >>confdefs.h <<\_ACEOF
37301#define wxUSE_SYSTEM_OPTIONS 1
37302_ACEOF
37303
37304 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37305 "$TOOLKIT" = "MOTIF"; then
37306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37307 fi
37308fi
37309
37310
37311if test "$wxUSE_VALIDATORS" = "yes"; then
37312 cat >>confdefs.h <<\_ACEOF
37313#define wxUSE_VALIDATORS 1
37314_ACEOF
37315
37316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37317fi
37318
37319if test "$wxUSE_PALETTE" = "yes" ; then
37320 cat >>confdefs.h <<\_ACEOF
37321#define wxUSE_PALETTE 1
37322_ACEOF
37323
37324fi
37325
37326if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37327 LIBS=" -lunicows $LIBS"
37328fi
37329
37330
37331if test "$wxUSE_IMAGE" = "yes" ; then
37332 cat >>confdefs.h <<\_ACEOF
37333#define wxUSE_IMAGE 1
37334_ACEOF
37335
37336
37337 if test "$wxUSE_GIF" = "yes" ; then
37338 cat >>confdefs.h <<\_ACEOF
37339#define wxUSE_GIF 1
37340_ACEOF
37341
37342 fi
37343
37344 if test "$wxUSE_PCX" = "yes" ; then
37345 cat >>confdefs.h <<\_ACEOF
37346#define wxUSE_PCX 1
37347_ACEOF
37348
37349 fi
37350
37351 if test "$wxUSE_IFF" = "yes" ; then
37352 cat >>confdefs.h <<\_ACEOF
37353#define wxUSE_IFF 1
37354_ACEOF
37355
37356 fi
37357
37358 if test "$wxUSE_PNM" = "yes" ; then
37359 cat >>confdefs.h <<\_ACEOF
37360#define wxUSE_PNM 1
37361_ACEOF
37362
37363 fi
37364
37365 if test "$wxUSE_XPM" = "yes" ; then
37366 cat >>confdefs.h <<\_ACEOF
37367#define wxUSE_XPM 1
37368_ACEOF
37369
37370 fi
37371
37372 if test "$wxUSE_ICO_CUR" = "yes" ; then
37373 cat >>confdefs.h <<\_ACEOF
37374#define wxUSE_ICO_CUR 1
37375_ACEOF
37376
37377 fi
37378fi
37379
37380
37381if test "$wxUSE_CHOICEDLG" = "yes"; then
37382 cat >>confdefs.h <<\_ACEOF
37383#define wxUSE_CHOICEDLG 1
37384_ACEOF
37385
37386fi
37387
37388if test "$wxUSE_COLOURDLG" = "yes"; then
37389 cat >>confdefs.h <<\_ACEOF
37390#define wxUSE_COLOURDLG 1
37391_ACEOF
37392
37393fi
37394
37395if test "$wxUSE_FILEDLG" = "yes"; then
37396 cat >>confdefs.h <<\_ACEOF
37397#define wxUSE_FILEDLG 1
37398_ACEOF
37399
37400fi
37401
37402if test "$wxUSE_FINDREPLDLG" = "yes"; then
37403 cat >>confdefs.h <<\_ACEOF
37404#define wxUSE_FINDREPLDLG 1
37405_ACEOF
37406
37407fi
37408
37409if test "$wxUSE_FONTDLG" = "yes"; then
37410 cat >>confdefs.h <<\_ACEOF
37411#define wxUSE_FONTDLG 1
37412_ACEOF
37413
37414fi
37415
37416if test "$wxUSE_DIRDLG" = "yes"; then
37417 if test "$wxUSE_TREECTRL" != "yes"; then
37418 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37419echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37420 else
37421 cat >>confdefs.h <<\_ACEOF
37422#define wxUSE_DIRDLG 1
37423_ACEOF
37424
37425 fi
37426fi
37427
37428if test "$wxUSE_MSGDLG" = "yes"; then
37429 cat >>confdefs.h <<\_ACEOF
37430#define wxUSE_MSGDLG 1
37431_ACEOF
37432
37433fi
37434
37435if test "$wxUSE_NUMBERDLG" = "yes"; then
37436 cat >>confdefs.h <<\_ACEOF
37437#define wxUSE_NUMBERDLG 1
37438_ACEOF
37439
37440fi
37441
37442if test "$wxUSE_PROGRESSDLG" = "yes"; then
37443 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37444 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37445echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37446 else
37447 cat >>confdefs.h <<\_ACEOF
37448#define wxUSE_PROGRESSDLG 1
37449_ACEOF
37450
37451 fi
37452fi
37453
37454if test "$wxUSE_SPLASH" = "yes"; then
37455 cat >>confdefs.h <<\_ACEOF
37456#define wxUSE_SPLASH 1
37457_ACEOF
37458
37459fi
37460
37461if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37462 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37463 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37464echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37465 else
37466 cat >>confdefs.h <<\_ACEOF
37467#define wxUSE_STARTUP_TIPS 1
37468_ACEOF
37469
37470 fi
37471fi
37472
37473if test "$wxUSE_TEXTDLG" = "yes"; then
37474 cat >>confdefs.h <<\_ACEOF
37475#define wxUSE_TEXTDLG 1
37476_ACEOF
37477
37478fi
37479
37480if test "$wxUSE_WIZARDDLG" = "yes"; then
37481 cat >>confdefs.h <<\_ACEOF
37482#define wxUSE_WIZARDDLG 1
37483_ACEOF
37484
37485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37486fi
37487
37488
37489if test "$cross_compiling" = "yes"; then
37490 OSINFO="\"$host\""
37491else
37492 OSINFO=`uname -s -r -m`
37493 OSINFO="\"$OSINFO\""
37494fi
37495
37496cat >>confdefs.h <<_ACEOF
37497#define WXWIN_OS_DESCRIPTION $OSINFO
37498_ACEOF
37499
37500
37501
37502if test "x$prefix" != "xNONE"; then
37503 wxPREFIX=$prefix
37504else
37505 wxPREFIX=$ac_default_prefix
37506fi
37507
37508cat >>confdefs.h <<_ACEOF
37509#define wxINSTALL_PREFIX "$wxPREFIX"
37510_ACEOF
37511
37512
37513top_builddir_wxconfig=`pwd`
37514
37515
37516
37517CORE_BASE_LIBS="net base"
37518CORE_GUI_LIBS="adv core"
37519
37520if test "$wxUSE_XML" = "yes" ; then
37521 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37522fi
37523if test "$wxUSE_ODBC" != "no" ; then
37524 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37525 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37526fi
37527if test "$wxUSE_HTML" = "yes" ; then
37528 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37529fi
37530
37531if test "$wxUSE_GUI" != "yes"; then
37532 CORE_GUI_LIBS=""
37533fi
37534
37535
37536
37537
37538
37539
37540
37541
37542if test "$wxUSE_MAC" = 1 ; then
37543 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37544fi
37545if test "$wxUSE_COCOA" = 1 ; then
37546 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37547fi
37548
37549
37550LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37551
37552have_cos=0
37553have_floor=0
37554
37555for ac_func in cos
37556do
37557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37558echo "$as_me:$LINENO: checking for $ac_func" >&5
37559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37560if eval "test \"\${$as_ac_var+set}\" = set"; then
37561 echo $ECHO_N "(cached) $ECHO_C" >&6
37562else
37563 cat >conftest.$ac_ext <<_ACEOF
37564/* confdefs.h. */
37565_ACEOF
37566cat confdefs.h >>conftest.$ac_ext
37567cat >>conftest.$ac_ext <<_ACEOF
37568/* end confdefs.h. */
37569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37571#define $ac_func innocuous_$ac_func
37572
37573/* System header to define __stub macros and hopefully few prototypes,
37574 which can conflict with char $ac_func (); below.
37575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37576 <limits.h> exists even on freestanding compilers. */
37577
37578#ifdef __STDC__
37579# include <limits.h>
37580#else
37581# include <assert.h>
37582#endif
37583
37584#undef $ac_func
37585
37586/* Override any gcc2 internal prototype to avoid an error. */
37587#ifdef __cplusplus
37588extern "C"
37589{
37590#endif
37591/* We use char because int might match the return type of a gcc2
37592 builtin and then its argument prototype would still apply. */
37593char $ac_func ();
37594/* The GNU C library defines this for functions which it implements
37595 to always fail with ENOSYS. Some functions are actually named
37596 something starting with __ and the normal name is an alias. */
37597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37598choke me
37599#else
37600char (*f) () = $ac_func;
37601#endif
37602#ifdef __cplusplus
37603}
37604#endif
37605
37606int
37607main ()
37608{
37609return f != $ac_func;
37610 ;
37611 return 0;
37612}
37613_ACEOF
37614rm -f conftest.$ac_objext conftest$ac_exeext
37615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37616 (eval $ac_link) 2>conftest.er1
37617 ac_status=$?
37618 grep -v '^ *+' conftest.er1 >conftest.err
37619 rm -f conftest.er1
37620 cat conftest.err >&5
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); } &&
dcc1b6ad
VS
37623 { ac_try='test -z "$ac_c_werror_flag"
37624 || test ! -s conftest.err'
a848cd7e
SC
37625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626 (eval $ac_try) 2>&5
37627 ac_status=$?
37628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629 (exit $ac_status); }; } &&
37630 { ac_try='test -s conftest$ac_exeext'
37631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37632 (eval $ac_try) 2>&5
37633 ac_status=$?
37634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635 (exit $ac_status); }; }; then
37636 eval "$as_ac_var=yes"
37637else
37638 echo "$as_me: failed program was:" >&5
37639sed 's/^/| /' conftest.$ac_ext >&5
37640
37641eval "$as_ac_var=no"
37642fi
37643rm -f conftest.err conftest.$ac_objext \
37644 conftest$ac_exeext conftest.$ac_ext
37645fi
37646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37648if test `eval echo '${'$as_ac_var'}'` = yes; then
37649 cat >>confdefs.h <<_ACEOF
37650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37651_ACEOF
37652 have_cos=1
37653fi
37654done
37655
37656
37657for ac_func in floor
37658do
37659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37660echo "$as_me:$LINENO: checking for $ac_func" >&5
37661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37662if eval "test \"\${$as_ac_var+set}\" = set"; then
37663 echo $ECHO_N "(cached) $ECHO_C" >&6
37664else
37665 cat >conftest.$ac_ext <<_ACEOF
37666/* confdefs.h. */
37667_ACEOF
37668cat confdefs.h >>conftest.$ac_ext
37669cat >>conftest.$ac_ext <<_ACEOF
37670/* end confdefs.h. */
37671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37673#define $ac_func innocuous_$ac_func
37674
37675/* System header to define __stub macros and hopefully few prototypes,
37676 which can conflict with char $ac_func (); below.
37677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37678 <limits.h> exists even on freestanding compilers. */
37679
37680#ifdef __STDC__
37681# include <limits.h>
37682#else
37683# include <assert.h>
37684#endif
37685
37686#undef $ac_func
37687
37688/* Override any gcc2 internal prototype to avoid an error. */
37689#ifdef __cplusplus
37690extern "C"
37691{
37692#endif
37693/* We use char because int might match the return type of a gcc2
37694 builtin and then its argument prototype would still apply. */
37695char $ac_func ();
37696/* The GNU C library defines this for functions which it implements
37697 to always fail with ENOSYS. Some functions are actually named
37698 something starting with __ and the normal name is an alias. */
37699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37700choke me
37701#else
37702char (*f) () = $ac_func;
37703#endif
37704#ifdef __cplusplus
37705}
37706#endif
37707
37708int
37709main ()
37710{
37711return f != $ac_func;
37712 ;
37713 return 0;
37714}
37715_ACEOF
37716rm -f conftest.$ac_objext conftest$ac_exeext
37717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37718 (eval $ac_link) 2>conftest.er1
37719 ac_status=$?
37720 grep -v '^ *+' conftest.er1 >conftest.err
37721 rm -f conftest.er1
37722 cat conftest.err >&5
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); } &&
dcc1b6ad
VS
37725 { ac_try='test -z "$ac_c_werror_flag"
37726 || test ! -s conftest.err'
a848cd7e
SC
37727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37728 (eval $ac_try) 2>&5
37729 ac_status=$?
37730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731 (exit $ac_status); }; } &&
37732 { ac_try='test -s conftest$ac_exeext'
37733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37734 (eval $ac_try) 2>&5
37735 ac_status=$?
37736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37737 (exit $ac_status); }; }; then
37738 eval "$as_ac_var=yes"
37739else
37740 echo "$as_me: failed program was:" >&5
37741sed 's/^/| /' conftest.$ac_ext >&5
37742
37743eval "$as_ac_var=no"
37744fi
37745rm -f conftest.err conftest.$ac_objext \
37746 conftest$ac_exeext conftest.$ac_ext
37747fi
37748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37750if test `eval echo '${'$as_ac_var'}'` = yes; then
37751 cat >>confdefs.h <<_ACEOF
37752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37753_ACEOF
37754 have_floor=1
37755fi
37756done
37757
37758echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37759echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37760if test "$have_cos" = 1 -a "$have_floor" = 1; then
37761 echo "$as_me:$LINENO: result: yes" >&5
37762echo "${ECHO_T}yes" >&6
37763else
37764 echo "$as_me:$LINENO: result: no" >&5
37765echo "${ECHO_T}no" >&6
37766 LIBS="$LIBS -lm"
37767 # use different functions to avoid configure caching
37768 have_sin=0
37769 have_ceil=0
37770
37771for ac_func in sin
37772do
37773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37774echo "$as_me:$LINENO: checking for $ac_func" >&5
37775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37776if eval "test \"\${$as_ac_var+set}\" = set"; then
37777 echo $ECHO_N "(cached) $ECHO_C" >&6
37778else
37779 cat >conftest.$ac_ext <<_ACEOF
37780/* confdefs.h. */
37781_ACEOF
37782cat confdefs.h >>conftest.$ac_ext
37783cat >>conftest.$ac_ext <<_ACEOF
37784/* end confdefs.h. */
37785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37787#define $ac_func innocuous_$ac_func
37788
37789/* System header to define __stub macros and hopefully few prototypes,
37790 which can conflict with char $ac_func (); below.
37791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37792 <limits.h> exists even on freestanding compilers. */
37793
37794#ifdef __STDC__
37795# include <limits.h>
37796#else
37797# include <assert.h>
37798#endif
37799
37800#undef $ac_func
37801
37802/* Override any gcc2 internal prototype to avoid an error. */
37803#ifdef __cplusplus
37804extern "C"
37805{
37806#endif
37807/* We use char because int might match the return type of a gcc2
37808 builtin and then its argument prototype would still apply. */
37809char $ac_func ();
37810/* The GNU C library defines this for functions which it implements
37811 to always fail with ENOSYS. Some functions are actually named
37812 something starting with __ and the normal name is an alias. */
37813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37814choke me
37815#else
37816char (*f) () = $ac_func;
37817#endif
37818#ifdef __cplusplus
37819}
37820#endif
37821
37822int
37823main ()
37824{
37825return f != $ac_func;
37826 ;
37827 return 0;
37828}
37829_ACEOF
37830rm -f conftest.$ac_objext conftest$ac_exeext
37831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37832 (eval $ac_link) 2>conftest.er1
37833 ac_status=$?
37834 grep -v '^ *+' conftest.er1 >conftest.err
37835 rm -f conftest.er1
37836 cat conftest.err >&5
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); } &&
dcc1b6ad
VS
37839 { ac_try='test -z "$ac_c_werror_flag"
37840 || test ! -s conftest.err'
a848cd7e
SC
37841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37842 (eval $ac_try) 2>&5
37843 ac_status=$?
37844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845 (exit $ac_status); }; } &&
37846 { ac_try='test -s conftest$ac_exeext'
37847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37848 (eval $ac_try) 2>&5
37849 ac_status=$?
37850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37851 (exit $ac_status); }; }; then
37852 eval "$as_ac_var=yes"
37853else
37854 echo "$as_me: failed program was:" >&5
37855sed 's/^/| /' conftest.$ac_ext >&5
37856
37857eval "$as_ac_var=no"
37858fi
37859rm -f conftest.err conftest.$ac_objext \
37860 conftest$ac_exeext conftest.$ac_ext
37861fi
37862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37863echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37864if test `eval echo '${'$as_ac_var'}'` = yes; then
37865 cat >>confdefs.h <<_ACEOF
37866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37867_ACEOF
37868 have_sin=1
37869fi
37870done
37871
37872
37873for ac_func in ceil
37874do
37875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37876echo "$as_me:$LINENO: checking for $ac_func" >&5
37877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37878if eval "test \"\${$as_ac_var+set}\" = set"; then
37879 echo $ECHO_N "(cached) $ECHO_C" >&6
37880else
37881 cat >conftest.$ac_ext <<_ACEOF
37882/* confdefs.h. */
37883_ACEOF
37884cat confdefs.h >>conftest.$ac_ext
37885cat >>conftest.$ac_ext <<_ACEOF
37886/* end confdefs.h. */
37887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37889#define $ac_func innocuous_$ac_func
37890
37891/* System header to define __stub macros and hopefully few prototypes,
37892 which can conflict with char $ac_func (); below.
37893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37894 <limits.h> exists even on freestanding compilers. */
37895
37896#ifdef __STDC__
37897# include <limits.h>
37898#else
37899# include <assert.h>
37900#endif
37901
37902#undef $ac_func
37903
37904/* Override any gcc2 internal prototype to avoid an error. */
37905#ifdef __cplusplus
37906extern "C"
37907{
37908#endif
37909/* We use char because int might match the return type of a gcc2
37910 builtin and then its argument prototype would still apply. */
37911char $ac_func ();
37912/* The GNU C library defines this for functions which it implements
37913 to always fail with ENOSYS. Some functions are actually named
37914 something starting with __ and the normal name is an alias. */
37915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37916choke me
37917#else
37918char (*f) () = $ac_func;
37919#endif
37920#ifdef __cplusplus
37921}
37922#endif
37923
37924int
37925main ()
37926{
37927return f != $ac_func;
37928 ;
37929 return 0;
37930}
37931_ACEOF
37932rm -f conftest.$ac_objext conftest$ac_exeext
37933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37934 (eval $ac_link) 2>conftest.er1
37935 ac_status=$?
37936 grep -v '^ *+' conftest.er1 >conftest.err
37937 rm -f conftest.er1
37938 cat conftest.err >&5
37939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940 (exit $ac_status); } &&
dcc1b6ad
VS
37941 { ac_try='test -z "$ac_c_werror_flag"
37942 || test ! -s conftest.err'
a848cd7e
SC
37943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37944 (eval $ac_try) 2>&5
37945 ac_status=$?
37946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947 (exit $ac_status); }; } &&
37948 { ac_try='test -s conftest$ac_exeext'
37949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37950 (eval $ac_try) 2>&5
37951 ac_status=$?
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); }; }; then
37954 eval "$as_ac_var=yes"
37955else
37956 echo "$as_me: failed program was:" >&5
37957sed 's/^/| /' conftest.$ac_ext >&5
37958
37959eval "$as_ac_var=no"
37960fi
37961rm -f conftest.err conftest.$ac_objext \
37962 conftest$ac_exeext conftest.$ac_ext
37963fi
37964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37966if test `eval echo '${'$as_ac_var'}'` = yes; then
37967 cat >>confdefs.h <<_ACEOF
37968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37969_ACEOF
37970 have_ceil=1
37971fi
37972done
37973
37974 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37975echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37976 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37977 echo "$as_me:$LINENO: result: yes" >&5
37978echo "${ECHO_T}yes" >&6
37979 else
37980 echo "$as_me:$LINENO: result: no" >&5
37981echo "${ECHO_T}no" >&6
37982 # not sure we should warn the user, crash, etc.
37983 fi
37984fi
37985
37986if test "$wxUSE_GUI" = "yes"; then
37987
37988
37989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37990 drawing dynamic erase event exec font image \
37991 minimal propsize rotate shaped widgets render"
37992
37993 if test "$wxUSE_MONOLITHIC" != "yes"; then
37994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37995 fi
37996else
37997 SAMPLES_SUBDIRS="console"
37998fi
37999
38000
38001INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
38002-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38003
38004if test "$GXX" = yes ; then
38005 CXXWARNINGS="-Wall"
38006 fi
38007
38008EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38009
38010CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
38011CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
38012CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
38013
38014
38015LIBS=`echo $LIBS | sed 's/ \+/ /g'`
38016EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38017EXTRALIBS_XML="$EXPAT_LINK"
38018EXTRALIBS_HTML="$MSPACK_LINK"
38019EXTRALIBS_ODBC="$ODBC_LINK"
38020if test "$wxUSE_GUI" = "yes"; then
38021 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
38022fi
38023if test "$wxUSE_OPENGL" = "yes"; then
38024 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38025fi
38026
38027LDFLAGS="$LDFLAGS $PROFILE"
38028
38029if test "$wxUSE_GTK" = 1; then
38030 WXCONFIG_INCLUDE=
38031else
38032 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38033fi
38034
38035WXCONFIG_EXTRALIBS="$LIBS"
38036
38037if test "$wxUSE_REGEX" = "builtin" ; then
38038 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38039fi
38040if test "$wxUSE_EXPAT" = "builtin" ; then
38041 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38042fi
38043if test "$wxUSE_ODBC" = "builtin" ; then
38044 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38045fi
38046if test "$wxUSE_LIBTIFF" = "builtin" ; then
38047 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38048fi
38049if test "$wxUSE_LIBJPEG" = "builtin" ; then
38050 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38051fi
38052if test "$wxUSE_LIBPNG" = "builtin" ; then
38053 wxconfig_3rdparty="$wxconfig_3rdparty png"
38054fi
38055if test "$wxUSE_ZLIB" = "builtin" ; then
38056 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38057fi
38058if test "$wxUSE_ODBC" = "builtin" ; then
38059 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38060fi
38061
38062for i in $wxconfig_3rdparty ; do
38063 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
38064done
38065
38066
38067if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38068 WXUNIV=1
38069else
38070 WXUNIV=0
38071fi
38072
38073
38074
38075
38076
38077
38078
38079
38080
38081if test $wxUSE_MONOLITHIC = "yes" ; then
38082 MONOLITHIC=1
38083else
38084 MONOLITHIC=0
38085fi
38086
38087if test $wxUSE_PLUGINS = "yes" ; then
38088 USE_PLUGINS=1
38089else
38090 USE_PLUGINS=0
38091fi
38092
38093if test $wxUSE_ODBC != "no" ; then
38094 USE_ODBC=1
38095else
38096 USE_ODBC=0
38097fi
38098
38099if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38100 OFFICIAL_BUILD=1
38101else
38102 OFFICIAL_BUILD=0
38103fi
38104
38105
38106
38107
38108
38109
38110
38111
38112
38113
38114
38115
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135 if test "x$BAKEFILE_HOST" = "x"; then
38136 BAKEFILE_HOST="${host}"
38137 fi
38138
38139 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38140
38141 if test -n "$ac_tool_prefix"; then
38142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38144echo "$as_me:$LINENO: checking for $ac_word" >&5
38145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38146if test "${ac_cv_prog_RANLIB+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38148else
38149 if test -n "$RANLIB"; then
38150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38151else
38152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38153for as_dir in $PATH
38154do
38155 IFS=$as_save_IFS
38156 test -z "$as_dir" && as_dir=.
38157 for ac_exec_ext in '' $ac_executable_extensions; do
38158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38161 break 2
38162 fi
38163done
38164done
38165
38166fi
38167fi
38168RANLIB=$ac_cv_prog_RANLIB
38169if test -n "$RANLIB"; then
38170 echo "$as_me:$LINENO: result: $RANLIB" >&5
38171echo "${ECHO_T}$RANLIB" >&6
38172else
38173 echo "$as_me:$LINENO: result: no" >&5
38174echo "${ECHO_T}no" >&6
38175fi
38176
38177fi
38178if test -z "$ac_cv_prog_RANLIB"; then
38179 ac_ct_RANLIB=$RANLIB
38180 # Extract the first word of "ranlib", so it can be a program name with args.
38181set dummy ranlib; ac_word=$2
38182echo "$as_me:$LINENO: checking for $ac_word" >&5
38183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186else
38187 if test -n "$ac_ct_RANLIB"; then
38188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38189else
38190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38191for as_dir in $PATH
38192do
38193 IFS=$as_save_IFS
38194 test -z "$as_dir" && as_dir=.
38195 for ac_exec_ext in '' $ac_executable_extensions; do
38196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38197 ac_cv_prog_ac_ct_RANLIB="ranlib"
38198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38199 break 2
38200 fi
38201done
38202done
38203
38204 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38205fi
38206fi
38207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38208if test -n "$ac_ct_RANLIB"; then
38209 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38210echo "${ECHO_T}$ac_ct_RANLIB" >&6
38211else
38212 echo "$as_me:$LINENO: result: no" >&5
38213echo "${ECHO_T}no" >&6
38214fi
38215
38216 RANLIB=$ac_ct_RANLIB
38217else
38218 RANLIB="$ac_cv_prog_RANLIB"
38219fi
38220
38221 # Find a good install program. We prefer a C program (faster),
38222# so one script is as good as another. But avoid the broken or
38223# incompatible versions:
38224# SysV /etc/install, /usr/sbin/install
38225# SunOS /usr/etc/install
38226# IRIX /sbin/install
38227# AIX /bin/install
38228# AmigaOS /C/install, which installs bootblocks on floppy discs
38229# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38230# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38231# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
38232# OS/2's system install, which has a completely different semantic
38233# ./install, which can be erroneously created by make from ./install.sh.
38234echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38235echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38236if test -z "$INSTALL"; then
38237if test "${ac_cv_path_install+set}" = set; then
38238 echo $ECHO_N "(cached) $ECHO_C" >&6
38239else
38240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38241for as_dir in $PATH
38242do
38243 IFS=$as_save_IFS
38244 test -z "$as_dir" && as_dir=.
38245 # Account for people who put trailing slashes in PATH elements.
38246case $as_dir/ in
38247 ./ | .// | /cC/* | \
38248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
38249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
38250 /usr/ucb/* ) ;;
38251 *)
38252 # OSF1 and SCO ODT 3.0 have their own names for install.
38253 # Don't use installbsd from OSF since it installs stuff as root
38254 # by default.
38255 for ac_prog in ginstall scoinst install; do
38256 for ac_exec_ext in '' $ac_executable_extensions; do
38257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38258 if test $ac_prog = install &&
38259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38260 # AIX install. It has an incompatible calling convention.
38261 :
38262 elif test $ac_prog = install &&
38263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38264 # program-specific install script used by HP pwplus--don't use.
38265 :
38266 else
38267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38268 break 3
38269 fi
38270 fi
38271 done
38272 done
38273 ;;
38274esac
38275done
38276
38277
38278fi
38279 if test "${ac_cv_path_install+set}" = set; then
38280 INSTALL=$ac_cv_path_install
38281 else
38282 # As a last resort, use the slow shell script. We don't cache a
38283 # path for INSTALL within a source directory, because that will
38284 # break other packages using the cache if that directory is
38285 # removed, or if the path is relative.
38286 INSTALL=$ac_install_sh
38287 fi
38288fi
38289echo "$as_me:$LINENO: result: $INSTALL" >&5
38290echo "${ECHO_T}$INSTALL" >&6
38291
38292# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38293# It thinks the first close brace ends the variable substitution.
38294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38295
38296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38297
38298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38299
38300 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38301echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38302LN_S=$as_ln_s
38303if test "$LN_S" = "ln -s"; then
38304 echo "$as_me:$LINENO: result: yes" >&5
38305echo "${ECHO_T}yes" >&6
38306else
38307 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38308echo "${ECHO_T}no, using $LN_S" >&6
38309fi
38310
38311
38312 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38314set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38315if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38316 echo $ECHO_N "(cached) $ECHO_C" >&6
38317else
38318 cat >conftest.make <<\_ACEOF
38319all:
38320 @echo 'ac_maketemp="$(MAKE)"'
38321_ACEOF
38322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38323eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38324if test -n "$ac_maketemp"; then
38325 eval ac_cv_prog_make_${ac_make}_set=yes
38326else
38327 eval ac_cv_prog_make_${ac_make}_set=no
38328fi
38329rm -f conftest.make
38330fi
38331if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38332 echo "$as_me:$LINENO: result: yes" >&5
38333echo "${ECHO_T}yes" >&6
38334 SET_MAKE=
38335else
38336 echo "$as_me:$LINENO: result: no" >&5
38337echo "${ECHO_T}no" >&6
38338 SET_MAKE="MAKE=${MAKE-make}"
38339fi
38340
38341
38342
38343 if test -n "$ac_tool_prefix"; then
38344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38345set dummy ${ac_tool_prefix}ar; ac_word=$2
38346echo "$as_me:$LINENO: checking for $ac_word" >&5
38347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38348if test "${ac_cv_prog_AR+set}" = set; then
38349 echo $ECHO_N "(cached) $ECHO_C" >&6
38350else
38351 if test -n "$AR"; then
38352 ac_cv_prog_AR="$AR" # Let the user override the test.
38353else
38354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38355for as_dir in $PATH
38356do
38357 IFS=$as_save_IFS
38358 test -z "$as_dir" && as_dir=.
38359 for ac_exec_ext in '' $ac_executable_extensions; do
38360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38361 ac_cv_prog_AR="${ac_tool_prefix}ar"
38362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38363 break 2
38364 fi
38365done
38366done
38367
38368fi
38369fi
38370AR=$ac_cv_prog_AR
38371if test -n "$AR"; then
38372 echo "$as_me:$LINENO: result: $AR" >&5
38373echo "${ECHO_T}$AR" >&6
38374else
38375 echo "$as_me:$LINENO: result: no" >&5
38376echo "${ECHO_T}no" >&6
38377fi
38378
38379fi
38380if test -z "$ac_cv_prog_AR"; then
38381 ac_ct_AR=$AR
38382 # Extract the first word of "ar", so it can be a program name with args.
38383set dummy ar; ac_word=$2
38384echo "$as_me:$LINENO: checking for $ac_word" >&5
38385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38386if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38387 echo $ECHO_N "(cached) $ECHO_C" >&6
38388else
38389 if test -n "$ac_ct_AR"; then
38390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38391else
38392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38393for as_dir in $PATH
38394do
38395 IFS=$as_save_IFS
38396 test -z "$as_dir" && as_dir=.
38397 for ac_exec_ext in '' $ac_executable_extensions; do
38398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38399 ac_cv_prog_ac_ct_AR="ar"
38400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38401 break 2
38402 fi
38403done
38404done
38405
38406 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38407fi
38408fi
38409ac_ct_AR=$ac_cv_prog_ac_ct_AR
38410if test -n "$ac_ct_AR"; then
38411 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38412echo "${ECHO_T}$ac_ct_AR" >&6
38413else
38414 echo "$as_me:$LINENO: result: no" >&5
38415echo "${ECHO_T}no" >&6
38416fi
38417
38418 AR=$ac_ct_AR
38419else
38420 AR="$ac_cv_prog_AR"
38421fi
38422
38423 if test -n "$ac_tool_prefix"; then
38424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38425set dummy ${ac_tool_prefix}strip; ac_word=$2
38426echo "$as_me:$LINENO: checking for $ac_word" >&5
38427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38428if test "${ac_cv_prog_STRIP+set}" = set; then
38429 echo $ECHO_N "(cached) $ECHO_C" >&6
38430else
38431 if test -n "$STRIP"; then
38432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38433else
38434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38435for as_dir in $PATH
38436do
38437 IFS=$as_save_IFS
38438 test -z "$as_dir" && as_dir=.
38439 for ac_exec_ext in '' $ac_executable_extensions; do
38440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38441 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38443 break 2
38444 fi
38445done
38446done
38447
38448fi
38449fi
38450STRIP=$ac_cv_prog_STRIP
38451if test -n "$STRIP"; then
38452 echo "$as_me:$LINENO: result: $STRIP" >&5
38453echo "${ECHO_T}$STRIP" >&6
38454else
38455 echo "$as_me:$LINENO: result: no" >&5
38456echo "${ECHO_T}no" >&6
38457fi
38458
38459fi
38460if test -z "$ac_cv_prog_STRIP"; then
38461 ac_ct_STRIP=$STRIP
38462 # Extract the first word of "strip", so it can be a program name with args.
38463set dummy strip; ac_word=$2
38464echo "$as_me:$LINENO: checking for $ac_word" >&5
38465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38466if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38467 echo $ECHO_N "(cached) $ECHO_C" >&6
38468else
38469 if test -n "$ac_ct_STRIP"; then
38470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38471else
38472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38473for as_dir in $PATH
38474do
38475 IFS=$as_save_IFS
38476 test -z "$as_dir" && as_dir=.
38477 for ac_exec_ext in '' $ac_executable_extensions; do
38478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38479 ac_cv_prog_ac_ct_STRIP="strip"
38480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38481 break 2
38482 fi
38483done
38484done
38485
38486 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38487fi
38488fi
38489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38490if test -n "$ac_ct_STRIP"; then
38491 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38492echo "${ECHO_T}$ac_ct_STRIP" >&6
38493else
38494 echo "$as_me:$LINENO: result: no" >&5
38495echo "${ECHO_T}no" >&6
38496fi
38497
38498 STRIP=$ac_ct_STRIP
38499else
38500 STRIP="$ac_cv_prog_STRIP"
38501fi
38502
38503 if test -n "$ac_tool_prefix"; then
38504 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38505set dummy ${ac_tool_prefix}nm; ac_word=$2
38506echo "$as_me:$LINENO: checking for $ac_word" >&5
38507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38508if test "${ac_cv_prog_NM+set}" = set; then
38509 echo $ECHO_N "(cached) $ECHO_C" >&6
38510else
38511 if test -n "$NM"; then
38512 ac_cv_prog_NM="$NM" # Let the user override the test.
38513else
38514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38515for as_dir in $PATH
38516do
38517 IFS=$as_save_IFS
38518 test -z "$as_dir" && as_dir=.
38519 for ac_exec_ext in '' $ac_executable_extensions; do
38520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38521 ac_cv_prog_NM="${ac_tool_prefix}nm"
38522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38523 break 2
38524 fi
38525done
38526done
38527
38528fi
38529fi
38530NM=$ac_cv_prog_NM
38531if test -n "$NM"; then
38532 echo "$as_me:$LINENO: result: $NM" >&5
38533echo "${ECHO_T}$NM" >&6
38534else
38535 echo "$as_me:$LINENO: result: no" >&5
38536echo "${ECHO_T}no" >&6
38537fi
38538
38539fi
38540if test -z "$ac_cv_prog_NM"; then
38541 ac_ct_NM=$NM
38542 # Extract the first word of "nm", so it can be a program name with args.
38543set dummy nm; ac_word=$2
38544echo "$as_me:$LINENO: checking for $ac_word" >&5
38545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38546if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38547 echo $ECHO_N "(cached) $ECHO_C" >&6
38548else
38549 if test -n "$ac_ct_NM"; then
38550 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38551else
38552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38553for as_dir in $PATH
38554do
38555 IFS=$as_save_IFS
38556 test -z "$as_dir" && as_dir=.
38557 for ac_exec_ext in '' $ac_executable_extensions; do
38558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38559 ac_cv_prog_ac_ct_NM="nm"
38560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38561 break 2
38562 fi
38563done
38564done
38565
38566 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38567fi
38568fi
38569ac_ct_NM=$ac_cv_prog_ac_ct_NM
38570if test -n "$ac_ct_NM"; then
38571 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38572echo "${ECHO_T}$ac_ct_NM" >&6
38573else
38574 echo "$as_me:$LINENO: result: no" >&5
38575echo "${ECHO_T}no" >&6
38576fi
38577
38578 NM=$ac_ct_NM
38579else
38580 NM="$ac_cv_prog_NM"
38581fi
38582
38583
38584 case ${BAKEFILE_HOST} in
38585 *-hp-hpux* )
38586 INSTALL_DIR="mkdir"
38587 ;;
38588 *) INSTALL_DIR="$INSTALL -d"
38589 ;;
38590 esac
38591
38592
38593 LDFLAGS_GUI=
38594 case ${BAKEFILE_HOST} in
38595 *-*-cygwin* | *-*-mingw32* )
38596 LDFLAGS_GUI="-mwindows"
38597 esac
38598
38599
38600 fi
38601
38602 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38603echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38604if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38605 echo $ECHO_N "(cached) $ECHO_C" >&6
38606else
38607
38608 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38609 egrep -s GNU > /dev/null); then
38610 bakefile_cv_prog_makeisgnu="yes"
38611 else
38612 bakefile_cv_prog_makeisgnu="no"
38613 fi
38614
38615fi
38616echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38617echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38618
38619 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38620 IF_GNU_MAKE=""
38621 else
38622 IF_GNU_MAKE="#"
38623 fi
38624
38625
38626
38627 PLATFORM_UNIX=0
38628 PLATFORM_WIN32=0
38629 PLATFORM_MSDOS=0
38630 PLATFORM_MAC=0
38631 PLATFORM_MACOSX=0
38632 PLATFORM_OS2=0
38633
38634 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38635 case "${BAKEFILE_HOST}" in
38636 *-*-cygwin* | *-*-mingw32* )
38637 PLATFORM_WIN32=1
38638 ;;
38639 *-pc-msdosdjgpp )
38640 PLATFORM_MSDOS=1
38641 ;;
38642 *-pc-os2_emx | *-pc-os2-emx )
38643 PLATFORM_OS2=1
38644 ;;
38645 powerpc-*-darwin* )
38646 PLATFORM_MAC=1
38647 PLATFORM_MACOSX=1
38648 ;;
38649 * )
38650 PLATFORM_UNIX=1
38651 ;;
38652 esac
38653 else
38654 case "$BAKEFILE_FORCE_PLATFORM" in
38655 win32 )
38656 PLATFORM_WIN32=1
38657 ;;
38658 msdos )
38659 PLATFORM_MSDOS=1
38660 ;;
38661 os2 )
38662 PLATFORM_OS2=1
38663 ;;
38664 darwin )
38665 PLATFORM_MAC=1
38666 PLATFORM_MACOSX=1
38667 ;;
38668 unix )
38669 PLATFORM_UNIX=1
38670 ;;
38671 * )
38672 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38673echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38674 { (exit 1); exit 1; }; }
38675 ;;
38676 esac
38677 fi
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687 # Check whether --enable-omf or --disable-omf was given.
38688if test "${enable_omf+set}" = set; then
38689 enableval="$enable_omf"
38690 bk_os2_use_omf="$enableval"
38691fi;
38692
38693 case "${BAKEFILE_HOST}" in
38694 *-*-darwin* )
38695 CFLAGS="$CFLAGS -fno-common"
38696 CXXFLAGS="$CXXFLAGS -fno-common"
38697 ;;
38698
38699 *-pc-os2_emx | *-pc-os2-emx )
38700 if test "x$bk_os2_use_omf" = "xyes" ; then
38701 AR=emxomfar
38702 RANLIB=:
38703 LDFLAGS="-Zomf $LDFLAGS"
38704 CFLAGS="-Zomf $CFLAGS"
38705 CXXFLAGS="-Zomf $CXXFLAGS"
38706 OS2_LIBEXT="lib"
38707 else
38708 OS2_LIBEXT="a"
38709 fi
38710 ;;
38711 esac
38712
38713
38714 SO_SUFFIX="so"
38715 SO_SUFFIX_MODULE="so"
38716 EXEEXT=""
38717 LIBPREFIX="lib"
38718 LIBEXT=".a"
38719 DLLPREFIX="lib"
38720 DLLPREFIX_MODULE=""
38721 DLLIMP_SUFFIX=""
38722
38723 case "${BAKEFILE_HOST}" in
38724 *-hp-hpux* )
38725 SO_SUFFIX="sl"
38726 SO_SUFFIX_MODULE="sl"
38727 ;;
38728 *-*-aix* )
38729 SO_SUFFIX="a"
38730 SO_SUFFIX_MODULE="a"
38731 ;;
38732 *-*-cygwin* | *-*-mingw32* )
38733 SO_SUFFIX="dll"
38734 SO_SUFFIX_MODULE="dll"
38735 DLLIMP_SUFFIX="dll.a"
38736 EXEEXT=".exe"
38737 DLLPREFIX=""
38738 ;;
38739 *-pc-msdosdjgpp )
38740 EXEEXT=".exe"
38741 DLLPREFIX=""
38742 ;;
38743 *-pc-os2_emx | *-pc-os2-emx )
38744 SO_SUFFIX="dll"
38745 SO_SUFFIX_MODULE="dll"
38746 DLLIMP_SUFFIX=$OS2_LIBEXT
38747 EXEEXT=".exe"
38748 DLLPREFIX=""
38749 LIBPREFIX=""
38750 LIBEXT=".$OS2_LIBEXT"
38751 ;;
38752 powerpc-*-darwin* )
38753 SO_SUFFIX="dylib"
38754 SO_SUFFIX_MODULE="bundle"
38755 ;;
38756 esac
38757
38758 if test "x$DLLIMP_SUFFIX" = "x" ; then
38759 DLLIMP_SUFFIX="$SO_SUFFIX"
38760 fi
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772 SHARED_LD_CC="\$(CC) -shared -o"
38773 SHARED_LD_CXX="\$(CXX) -shared -o"
38774
38775 if test "x$GCC" = "xyes"; then
38776 PIC_FLAG="-fPIC"
38777 fi
38778
38779 case "${BAKEFILE_HOST}" in
38780 *-hp-hpux* )
38781 if test "x$GCC" = "xyes"; then
38782 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38783 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38784 else
38785 LDFLAGS="$LDFLAGS -L/usr/lib"
38786
38787 SHARED_LD_CC="${CC} -b -o"
38788 SHARED_LD_CXX="${CXX} -b -o"
38789 PIC_FLAG="+Z"
38790 fi
38791 ;;
38792
38793 *-*-linux* )
38794 if test "x$GCC" != "xyes"; then
38795 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38796echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38797if test "${bakefile_cv_prog_icc+set}" = set; then
38798 echo $ECHO_N "(cached) $ECHO_C" >&6
38799else
38800
38801 cat >conftest.$ac_ext <<_ACEOF
38802/* confdefs.h. */
38803_ACEOF
38804cat confdefs.h >>conftest.$ac_ext
38805cat >>conftest.$ac_ext <<_ACEOF
38806/* end confdefs.h. */
38807
38808int
38809main ()
38810{
38811
38812 #ifndef __INTEL_COMPILER
38813 #error Not icc
38814 #endif
38815
38816 ;
38817 return 0;
38818}
38819_ACEOF
38820rm -f conftest.$ac_objext
38821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38822 (eval $ac_compile) 2>conftest.er1
38823 ac_status=$?
38824 grep -v '^ *+' conftest.er1 >conftest.err
38825 rm -f conftest.er1
38826 cat conftest.err >&5
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); } &&
dcc1b6ad
VS
38829 { ac_try='test -z "$ac_c_werror_flag"
38830 || test ! -s conftest.err'
a848cd7e
SC
38831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38832 (eval $ac_try) 2>&5
38833 ac_status=$?
38834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835 (exit $ac_status); }; } &&
38836 { ac_try='test -s conftest.$ac_objext'
38837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38838 (eval $ac_try) 2>&5
38839 ac_status=$?
38840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38841 (exit $ac_status); }; }; then
38842 bakefile_cv_prog_icc=yes
38843else
38844 echo "$as_me: failed program was:" >&5
38845sed 's/^/| /' conftest.$ac_ext >&5
38846
38847bakefile_cv_prog_icc=no
38848
38849fi
38850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38851
38852fi
38853echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38854echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38855 if test "$bakefile_cv_prog_icc" = "yes"; then
38856 PIC_FLAG="-KPIC"
38857 fi
38858 fi
38859 ;;
38860
38861 *-*-solaris2* )
38862 if test "x$GCC" != xyes ; then
38863 SHARED_LD_CC="${CC} -G -o"
38864 SHARED_LD_CXX="${CXX} -G -o"
38865 PIC_FLAG="-KPIC"
38866 fi
38867 ;;
38868
38869 *-*-darwin* )
38870
38871 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38872echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38873if test "${wx_cv_gcc31+set}" = set; then
38874 echo $ECHO_N "(cached) $ECHO_C" >&6
38875else
38876
38877 cat >conftest.$ac_ext <<_ACEOF
38878/* confdefs.h. */
38879_ACEOF
38880cat confdefs.h >>conftest.$ac_ext
38881cat >>conftest.$ac_ext <<_ACEOF
38882/* end confdefs.h. */
38883
38884int
38885main ()
38886{
38887
38888 #if (__GNUC__ < 3) || \
38889 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38890 #error old gcc
38891 #endif
38892
38893 ;
38894 return 0;
38895}
38896_ACEOF
38897rm -f conftest.$ac_objext
38898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38899 (eval $ac_compile) 2>conftest.er1
38900 ac_status=$?
38901 grep -v '^ *+' conftest.er1 >conftest.err
38902 rm -f conftest.er1
38903 cat conftest.err >&5
38904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); } &&
dcc1b6ad
VS
38906 { ac_try='test -z "$ac_c_werror_flag"
38907 || test ! -s conftest.err'
a848cd7e
SC
38908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38909 (eval $ac_try) 2>&5
38910 ac_status=$?
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); }; } &&
38913 { ac_try='test -s conftest.$ac_objext'
38914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38915 (eval $ac_try) 2>&5
38916 ac_status=$?
38917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918 (exit $ac_status); }; }; then
38919
38920 wx_cv_gcc31=yes
38921
38922else
38923 echo "$as_me: failed program was:" >&5
38924sed 's/^/| /' conftest.$ac_ext >&5
38925
38926
38927 wx_cv_gcc31=no
38928
38929
38930fi
38931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38932
38933fi
38934echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38935echo "${ECHO_T}$wx_cv_gcc31" >&6
38936 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38937
38938D='$'
38939cat <<EOF >shared-ld-sh
a848cd7e
SC
38940#!/bin/sh
38941#-----------------------------------------------------------------------------
38942#-- Name: distrib/mac/shared-ld-sh
38943#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38944#-- Author: Gilles Depeyrot
38945#-- Copyright: (c) 2002 Gilles Depeyrot
38946#-- Licence: any use permitted
38947#-----------------------------------------------------------------------------
38948
38949verbose=0
38950args=""
38951objects=""
38952linking_flag="-dynamiclib"
38953
473276a9
VS
38954while test ${D}# -gt 0; do
38955 case ${D}1 in
a848cd7e
SC
38956
38957 -v)
38958 verbose=1
38959 ;;
38960
38961 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38962 # collect these options and values
473276a9 38963 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38964 shift
38965 ;;
38966
38967 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38968 # collect these options
473276a9 38969 args="${D}{args} ${D}1"
a848cd7e
SC
38970 ;;
38971
38972 -dynamiclib|-bundle)
473276a9 38973 linking_flag="${D}1"
a848cd7e
SC
38974 ;;
38975
38976 -*)
473276a9 38977 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38978 exit 1
38979 ;;
38980
38981 *.o | *.a | *.dylib)
38982 # collect object files
473276a9 38983 objects="${D}{objects} ${D}1"
a848cd7e
SC
38984 ;;
38985
38986 *)
473276a9 38987 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38988 exit 1
38989 ;;
38990
38991 esac
38992 shift
38993done
38994
38995#
38996# Link one module containing all the others
38997#
473276a9
VS
38998if test ${D}{verbose} = 1; then
38999 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39000fi
473276a9
VS
39001c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39002status=${D}?
39003if test ${D}{status} != 0; then
39004 exit ${D}{status}
a848cd7e
SC
39005fi
39006
39007#
39008# Link the shared library from the single module created
39009#
473276a9
VS
39010if test ${D}{verbose} = 1; then
39011 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39012fi
473276a9
VS
39013c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39014status=${D}?
39015if test ${D}{status} != 0; then
39016 exit ${D}{status}
a848cd7e
SC
39017fi
39018
39019#
39020# Remove intermediate module
39021#
473276a9 39022rm -f master.${D}${D}.o
a848cd7e
SC
39023
39024exit 0
39025EOF
473276a9 39026
a848cd7e
SC
39027 chmod +x shared-ld-sh
39028
39029 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39030 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39031 SHARED_LD_CXX="$SHARED_LD_CC"
39032 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39033 else
39034 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39035 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39036 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39037 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39038 fi
39039
39040 PIC_FLAG="-dynamic -fPIC"
39041 ;;
39042
39043 *-*-aix* )
39044 if test "x$GCC" != "xyes"; then
39045 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39046set dummy makeC++SharedLib; ac_word=$2
39047echo "$as_me:$LINENO: checking for $ac_word" >&5
39048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39049if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39050 echo $ECHO_N "(cached) $ECHO_C" >&6
39051else
39052 if test -n "$AIX_CXX_LD"; then
39053 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39054else
39055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39056for as_dir in $PATH
39057do
39058 IFS=$as_save_IFS
39059 test -z "$as_dir" && as_dir=.
39060 for ac_exec_ext in '' $ac_executable_extensions; do
39061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39062 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39064 break 2
39065 fi
39066done
39067done
39068
39069 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39070fi
39071fi
39072AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39073if test -n "$AIX_CXX_LD"; then
39074 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39075echo "${ECHO_T}$AIX_CXX_LD" >&6
39076else
39077 echo "$as_me:$LINENO: result: no" >&5
39078echo "${ECHO_T}no" >&6
39079fi
39080
39081 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39082 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39083 fi
39084 ;;
39085
39086 *-*-beos* )
39087 SHARED_LD_CC="${LD} -shared -o"
39088 SHARED_LD_CXX="${LD} -shared -o"
39089 ;;
39090
39091 *-*-irix* )
39092 if test "x$GCC" != "xyes"; then
39093 PIC_FLAG="-KPIC"
39094 fi
39095 ;;
39096
39097 *-*-cygwin* | *-*-mingw32* )
39098 PIC_FLAG=""
39099 ;;
39100
39101 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39102 SHARED_LD_CC="`pwd`/dllar.sh -o"
39103 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39104 PIC_FLAG=""
473276a9
VS
39105
39106D='$'
39107cat <<EOF >dllar.sh
39108#!/bin/sh
39109#
39110# dllar - a tool to build both a .dll and an .a file
39111# from a set of object (.o) files for EMX/OS2.
39112#
39113# Written by Andrew Zabolotny, bit@freya.etu.ru
39114# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39115#
39116# This script will accept a set of files on the command line.
39117# All the public symbols from the .o files will be exported into
39118# a .DEF file, then linker will be run (through gcc) against them to
39119# build a shared library consisting of all given .o files. All libraries
39120# (.a) will be first decompressed into component .o files then act as
39121# described above. You can optionally give a description (-d "description")
39122# which will be put into .DLL. To see the list of accepted options (as well
39123# as command-line format) simply run this program without options. The .DLL
39124# is built to be imported by name (there is no guarantee that new versions
39125# of the library you build will have same ordinals for same symbols).
39126#
39127# dllar is free software; you can redistribute it and/or modify
39128# it under the terms of the GNU General Public License as published by
39129# the Free Software Foundation; either version 2, or (at your option)
39130# any later version.
39131#
39132# dllar is distributed in the hope that it will be useful,
39133# but WITHOUT ANY WARRANTY; without even the implied warranty of
39134# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39135# GNU General Public License for more details.
39136#
39137# You should have received a copy of the GNU General Public License
39138# along with dllar; see the file COPYING. If not, write to the Free
39139# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39140# 02111-1307, USA.
39141
39142# To successfuly run this program you will need:
39143# - Current drive should have LFN support (HPFS, ext2, network, etc)
39144# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39145# - gcc
39146# (used to build the .dll)
39147# - emxexp
39148# (used to create .def file from .o files)
39149# - emximp
39150# (used to create .a file from .def file)
39151# - GNU text utilites (cat, sort, uniq)
39152# used to process emxexp output
39153# - GNU file utilities (mv, rm)
39154# - GNU sed
39155# - lxlite (optional, see flag below)
39156# (used for general .dll cleanup)
39157#
39158
39159flag_USE_LXLITE=1;
39160
39161#
39162# helper functions
39163# basnam, variant of basename, which does _not_ remove the path, _iff_
39164# second argument (suffix to remove) is given
39165basnam(){
39166 case ${D}# in
39167 1)
39168 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39169 ;;
39170 2)
39171 echo ${D}1 | sed 's/'${D}2'${D}//'
39172 ;;
39173 *)
39174 echo "error in basnam ${D}*"
39175 exit 8
39176 ;;
39177 esac
39178}
39179
39180# Cleanup temporary files and output
39181CleanUp() {
39182 cd ${D}curDir
39183 for i in ${D}inputFiles ; do
39184 case ${D}i in
39185 *!)
39186 rm -rf \`basnam ${D}i !\`
39187 ;;
39188 *)
39189 ;;
39190 esac
39191 done
39192
39193 # Kill result in case of failure as there is just to many stupid make/nmake
39194 # things out there which doesn't do this.
39195 if ${D}# -eq 0 ; then
39196 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39197 fi
39198}
39199
39200# Print usage and exit script with rc=1.
39201PrintHelp() {
39202 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
39203 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
39204 echo ' -ord[inals] -exclude "symbol(s)"'
39205 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
39206 echo ' *.o *.a'
39207 echo '*> "output_file" should have no extension.'
39208 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39209 echo ' The import library name is derived from this and is set to "name".a,'
39210 echo ' unless overridden by -import'
39211 echo '*> "importlib_name" should have no extension.'
39212 echo ' If it has the .o, or .a extension, it is automatically removed.'
39213 echo ' This name is used as the import library name and may be longer and'
39214 echo ' more descriptive than the DLL name which has to follow the old '
39215 echo ' 8.3 convention of FAT.'
39216 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39217 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39218 echo ' These flags will be put at the start of GCC command line.'
39219 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
39220 echo '*> -exclude defines symbols which will not be exported. You can define'
39221 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39222 echo ' If the last character of a symbol is "*", all symbols beginning'
39223 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
39224 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
39225 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
39226 echo '*> -nocrtdll switch will disable linking the library against emx''s'
39227 echo ' C runtime DLLs.'
39228 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
39229 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39230 echo ' unchanged to GCC at the end of command line.'
39231 echo '*> If you create a DLL from a library and you do not specify -o,'
39232 echo ' the basename for DLL and import library will be set to library name,'
39233 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39234 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39235 echo ' library will be renamed into gcc_s.a.'
39236 echo '--------'
39237 echo 'Example:'
39238 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39239 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39240 CleanUp
39241 exit 1
39242}
39243
39244# Execute a command.
39245# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39246# @Uses Whatever CleanUp() uses.
39247doCommand() {
39248 echo "${D}*"
39249 eval ${D}*
39250 rcCmd=${D}?
39251
39252 if ${D}rcCmd -ne 0 ; then
39253 echo "command failed, exit code="${D}rcCmd
39254 CleanUp
39255 exit ${D}rcCmd
39256 fi
39257}
39258
39259# main routine
39260# setup globals
39261cmdLine=${D}*
39262outFile=""
39263outimpFile=""
39264inputFiles=""
39265description=""
39266CC=gcc.exe
39267CFLAGS="-s -Zcrtdll"
39268EXTRA_CFLAGS=""
39269EXPORT_BY_ORDINALS=0
39270exclude_symbols=""
39271library_flags=""
39272curDir=\`pwd\`
39273curDirS=curDir
39274case ${D}curDirS in
39275*/)
39276 ;;
39277*)
39278 curDirS=${D}{curDirS}"/"
39279 ;;
39280esac
39281# Parse commandline
39282libsToLink=0
39283while ${D}1 ; do
39284 case ${D}1 in
39285 -ord*)
39286 EXPORT_BY_ORDINALS=1;
39287 ;;
39288 -o*)
39289 shift
39290 outFile=${D}1
39291 ;;
39292 -i*)
39293 shift
39294 outimpFile=${D}1
39295 ;;
39296 -d*)
39297 shift
39298 description=${D}1
39299 ;;
39300 -f*)
39301 shift
39302 CFLAGS=${D}1
39303 ;;
39304 -c*)
39305 shift
39306 CC=${D}1
39307 ;;
39308 -h*)
39309 PrintHelp
39310 ;;
39311 -ex*)
39312 shift
39313 exclude_symbols=${D}{exclude_symbols}${D}1" "
39314 ;;
39315 -libf*)
39316 shift
39317 library_flags=${D}{library_flags}${D}1" "
39318 ;;
39319 -nocrt*)
39320 CFLAGS="-s"
39321 ;;
39322 -nolxl*)
39323 flag_USE_LXLITE=0
39324 ;;
39325 -* | /*)
39326 case ${D}1 in
39327 -L* | -l*)
39328 libsToLink=1
39329 ;;
39330 *)
39331 ;;
39332 esac
39333 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39334 ;;
39335 *)
39336 found=0;
39337 if ${D}libsToLink -ne 0 ; then
39338 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39339 else
39340 for file in ${D}1 ; do
39341 if -f ${D}file ; then
39342 inputFiles="${D}{inputFiles} ${D}file"
39343 found=1
39344 fi
39345 done
39346 if ${D}found -eq 0 ; then
39347 echo "ERROR: No file(s) found: "${D}1
39348 exit 8
39349 fi
39350 fi
39351 ;;
39352 esac
39353 shift
39354done # iterate cmdline words
39355
39356#
39357if -z "${D}inputFiles" ; then
39358 echo "dllar: no input files"
39359 PrintHelp
39360fi
39361
39362# Now extract all .o files from .a files
39363newInputFiles=""
39364for file in ${D}inputFiles ; do
39365 case ${D}file in
39366 *.a | *.lib)
39367 case ${D}file in
39368 *.a)
39369 suffix=".a"
39370 AR="ar"
39371 ;;
39372 *.lib)
39373 suffix=".lib"
39374 AR="emxomfar"
39375 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39376 ;;
39377 *)
39378 ;;
39379 esac
39380 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39381 mkdir ${D}dirname
39382 if ${D}? -ne 0 ; then
39383 echo "Failed to create subdirectory ./${D}dirname"
39384 CleanUp
39385 exit 8;
39386 fi
39387 # Append '!' to indicate archive
39388 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39389 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39390 cd ${D}curDir
39391 found=0;
39392 for subfile in ${D}dirname/*.o* ; do
39393 if -f ${D}subfile ; then
39394 found=1
39395 if -s ${D}subfile ; then
39396 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39397 newInputFiles="${D}newInputFiles ${D}subfile"
39398 fi
39399 fi
39400 done
39401 if ${D}found -eq 0 ; then
39402 echo "WARNING: there are no files in archive \'${D}file\'"
39403 fi
39404 ;;
39405 *)
39406 newInputFiles="${D}{newInputFiles} ${D}file"
39407 ;;
39408 esac
39409done
39410inputFiles="${D}newInputFiles"
39411
39412# Output filename(s).
39413do_backup=0;
39414if -z ${D}outFile ; then
39415 do_backup=1;
39416 set outFile ${D}inputFiles; outFile=${D}2
39417fi
39418
39419# If it is an archive, remove the '!' and the '_%' suffixes
39420case ${D}outFile in
39421*_%!)
39422 outFile=\`basnam ${D}outFile _%!\`
39423 ;;
39424*)
39425 ;;
39426esac
39427case ${D}outFile in
39428*.dll)
39429 outFile=\`basnam ${D}outFile .dll\`
39430 ;;
39431*.DLL)
39432 outFile=\`basnam ${D}outFile .DLL\`
39433 ;;
39434*.o)
39435 outFile=\`basnam ${D}outFile .o\`
39436 ;;
39437*.obj)
39438 outFile=\`basnam ${D}outFile .obj\`
39439 ;;
39440*.a)
39441 outFile=\`basnam ${D}outFile .a\`
39442 ;;
39443*.lib)
39444 outFile=\`basnam ${D}outFile .lib\`
39445 ;;
39446*)
39447 ;;
39448esac
39449case ${D}outimpFile in
39450*.a)
39451 outimpFile=\`basnam ${D}outimpFile .a\`
39452 ;;
39453*.lib)
39454 outimpFile=\`basnam ${D}outimpFile .lib\`
39455 ;;
39456*)
39457 ;;
39458esac
39459if -z ${D}outimpFile ; then
39460 outimpFile=${D}outFile
39461fi
39462defFile="${D}{outFile}.def"
39463arcFile="${D}{outimpFile}.a"
39464arcFile2="${D}{outimpFile}.lib"
39465dllFile="${D}outFile"
39466# Add suffix to dllFile later, first we need a version to use as
39467# name in .def file.
39468
39469if ${D}do_backup -ne 0 ; then
39470 if -f ${D}arcFile ; then
39471 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39472 fi
39473 if -f ${D}arcFile2 ; then
39474 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39475 fi
39476fi
39477
39478# Extract public symbols from all the object files.
39479tmpdefFile=${D}{defFile}_%
39480rm -f ${D}tmpdefFile
39481for file in ${D}inputFiles ; do
39482 case ${D}file in
39483 *!)
39484 ;;
39485 *)
39486 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39487 ;;
39488 esac
39489done
39490
39491# Create the def file.
39492rm -f ${D}defFile
39493echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39494dllFile="${D}dllFile.dll"
39495if -n ${D}description ; then
39496 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39497fi
39498echo "EXPORTS" >> ${D}defFile
39499
39500doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39501grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39502
39503# Checks if the export is ok or not.
39504for word in ${D}exclude_symbols; do
39505 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39506 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39507done
39508
39509
39510if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39511 sed "=" < ${D}tmpdefFile | \
39512 sed '
39513 N
39514 : loop
39515 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
39516 t loop
39517 ' > ${D}{tmpdefFile}%
39518 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39519else
39520 rm -f ${D}{tmpdefFile}%
39521fi
39522cat ${D}tmpdefFile >> ${D}defFile
39523rm -f ${D}tmpdefFile
39524
39525# Do linking, create implib, and apply lxlite.
39526gccCmdl="";
39527for file in ${D}inputFiles ; do
39528 case ${D}file in
39529 *!)
39530 ;;
39531 *)
39532 gccCmdl="${D}gccCmdl ${D}file"
39533 ;;
39534 esac
39535done
39536doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39537touch "${D}{outFile}.dll"
39538
39539doCommand "emximp -o ${D}arcFile ${D}defFile"
39540if ${D}flag_USE_LXLITE -ne 0 ; then
39541 add_flags="";
39542 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39543 add_flags="-ynd"
39544 fi
39545 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39546fi
39547doCommand "emxomf -s -l ${D}arcFile"
39548
39549# Successful exit.
39550CleanUp 1
39551exit 0
39552EOF
39553
39554 chmod +x dllar.sh
a848cd7e
SC
39555 ;;
39556
39557 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39558 *-*-sunos4* | \
39559 *-*-osf* | \
39560 *-*-dgux5* | \
39561 *-*-sysv5* )
39562 ;;
39563
39564 *)
39565 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39566echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39567 { (exit 1); exit 1; }; }
39568 esac
39569
39570 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39571 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39572 fi
39573 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39574 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39575 fi
39576
39577
39578
39579
39580
39581
39582
39583
39584 USE_SOVERSION=0
39585 USE_SOVERLINUX=0
39586 USE_SOVERSOLARIS=0
39587 USE_SOSYMLINKS=0
39588 USE_MACVERSION=0
39589 SONAME_FLAG=
39590
39591 case "${BAKEFILE_HOST}" in
39592 *-*-linux* )
39593 SONAME_FLAG="-Wl,-soname,"
39594 USE_SOVERSION=1
39595 USE_SOVERLINUX=1
39596 USE_SOSYMLINKS=1
39597 ;;
39598
39599 *-*-solaris2* )
39600 SONAME_FLAG="-h "
39601 USE_SOVERSION=1
39602 USE_SOVERSOLARIS=1
39603 USE_SOSYMLINKS=1
39604 ;;
39605
39606 *-*-darwin* )
39607 USE_MACVERSION=1
39608 USE_SOVERSION=1
39609 USE_SOSYMLINKS=1
39610 ;;
39611 esac
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39622echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39623 DEPS_TRACKING=0
39624
39625 if test "x$GCC" = "xyes"; then
39626 DEPSMODE=gcc
39627 DEPS_TRACKING=1
39628 case "${BAKEFILE_HOST}" in
39629 powerpc-*-darwin* )
39630 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39631 ;;
39632 * )
39633 DEPSFLAG_GCC="-MMD"
39634 ;;
39635 esac
39636 echo "$as_me:$LINENO: result: gcc" >&5
39637echo "${ECHO_T}gcc" >&6
39638 else
39639 echo "$as_me:$LINENO: result: none" >&5
39640echo "${ECHO_T}none" >&6
39641 fi
39642
39643 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39644
39645D='$'
39646cat <<EOF >bk-deps
a848cd7e
SC
39647#!/bin/sh
39648
39649# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39650# script. It is used to track C/C++ files dependencies in portable way.
39651#
39652# Permission is given to use this file in any way.
39653
473276a9 39654DEPSMODE=${DEPSMODE}
a848cd7e 39655DEPSDIR=.deps
473276a9 39656DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39657
473276a9 39658mkdir -p ${D}DEPSDIR
a848cd7e 39659
473276a9
VS
39660if test ${D}DEPSMODE = gcc ; then
39661 ${D}* ${D}{DEPSFLAG_GCC}
39662 status=${D}?
39663 if test ${D}{status} != 0 ; then
39664 exit ${D}{status}
a848cd7e
SC
39665 fi
39666 # move created file to the location we want it in:
473276a9
VS
39667 while test ${D}# -gt 0; do
39668 case "${D}1" in
a848cd7e
SC
39669 -o )
39670 shift
473276a9 39671 objfile=${D}1
a848cd7e
SC
39672 ;;
39673 -* )
39674 ;;
39675 * )
473276a9 39676 srcfile=${D}1
a848cd7e
SC
39677 ;;
39678 esac
39679 shift
39680 done
473276a9
VS
39681 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39682 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39683 if test -f ${D}depfile ; then
39684 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39685 rm -f ${D}depfile
a848cd7e 39686 else
473276a9
VS
39687 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39688 if test -f ${D}depfile ; then
39689 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39690 rm -f ${D}depfile
a848cd7e
SC
39691 fi
39692 fi
39693 exit 0
39694else
473276a9
VS
39695 ${D}*
39696 exit ${D}?
a848cd7e
SC
39697fi
39698EOF
473276a9 39699
a848cd7e
SC
39700 chmod +x bk-deps
39701 fi
39702
39703
39704
39705
39706 RESCOMP=
39707 SETFILE=
39708
39709 case ${BAKEFILE_HOST} in
39710 *-*-cygwin* | *-*-mingw32* )
39711 if test "$build" != "$host" ; then
39712 RESCOMP=$host_alias-windres
39713 else
39714 # Extract the first word of "windres", so it can be a program name with args.
39715set dummy windres; ac_word=$2
39716echo "$as_me:$LINENO: checking for $ac_word" >&5
39717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39718if test "${ac_cv_prog_RESCOMP+set}" = set; then
39719 echo $ECHO_N "(cached) $ECHO_C" >&6
39720else
39721 if test -n "$RESCOMP"; then
39722 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39723else
39724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39725for as_dir in $PATH
39726do
39727 IFS=$as_save_IFS
39728 test -z "$as_dir" && as_dir=.
39729 for ac_exec_ext in '' $ac_executable_extensions; do
39730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39731 ac_cv_prog_RESCOMP="windres"
39732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39733 break 2
39734 fi
39735done
39736done
39737
39738 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39739fi
39740fi
39741RESCOMP=$ac_cv_prog_RESCOMP
39742if test -n "$RESCOMP"; then
39743 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39744echo "${ECHO_T}$RESCOMP" >&6
39745else
39746 echo "$as_me:$LINENO: result: no" >&5
39747echo "${ECHO_T}no" >&6
39748fi
39749
39750 fi
39751 ;;
39752
39753 *-*-darwin* )
39754 # Extract the first word of "Rez", so it can be a program name with args.
39755set dummy Rez; ac_word=$2
39756echo "$as_me:$LINENO: checking for $ac_word" >&5
39757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39758if test "${ac_cv_prog_RESCOMP+set}" = set; then
39759 echo $ECHO_N "(cached) $ECHO_C" >&6
39760else
39761 if test -n "$RESCOMP"; then
39762 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39763else
39764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39765for as_dir in $PATH
39766do
39767 IFS=$as_save_IFS
39768 test -z "$as_dir" && as_dir=.
39769 for ac_exec_ext in '' $ac_executable_extensions; do
39770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39771 ac_cv_prog_RESCOMP="Rez"
39772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39773 break 2
39774 fi
39775done
39776done
39777
39778 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39779fi
39780fi
39781RESCOMP=$ac_cv_prog_RESCOMP
39782if test -n "$RESCOMP"; then
39783 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39784echo "${ECHO_T}$RESCOMP" >&6
39785else
39786 echo "$as_me:$LINENO: result: no" >&5
39787echo "${ECHO_T}no" >&6
39788fi
39789
39790 # Extract the first word of "SetFile", so it can be a program name with args.
39791set dummy SetFile; ac_word=$2
39792echo "$as_me:$LINENO: checking for $ac_word" >&5
39793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39794if test "${ac_cv_prog_SETFILE+set}" = set; then
39795 echo $ECHO_N "(cached) $ECHO_C" >&6
39796else
39797 if test -n "$SETFILE"; then
39798 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39799else
39800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39801for as_dir in $PATH
39802do
39803 IFS=$as_save_IFS
39804 test -z "$as_dir" && as_dir=.
39805 for ac_exec_ext in '' $ac_executable_extensions; do
39806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39807 ac_cv_prog_SETFILE="SetFile"
39808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39809 break 2
39810 fi
39811done
39812done
39813
39814 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39815fi
39816fi
39817SETFILE=$ac_cv_prog_SETFILE
39818if test -n "$SETFILE"; then
39819 echo "$as_me:$LINENO: result: $SETFILE" >&5
39820echo "${ECHO_T}$SETFILE" >&6
39821else
39822 echo "$as_me:$LINENO: result: no" >&5
39823echo "${ECHO_T}no" >&6
39824fi
39825
39826 ;;
39827 esac
39828
39829
39830
39831
39832
39833
dcc1b6ad
VS
39834BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
39835
39836
a848cd7e 39837
c2218763 39838
a848cd7e
SC
39839 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39840if test "${enable_precomp_headers+set}" = set; then
39841 enableval="$enable_precomp_headers"
39842 bk_use_pch="$enableval"
39843fi;
39844
39845 GCC_PCH=0
39846
39847 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39848 if test "x$GCC" = "xyes"; then
39849 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39850echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39851 cat >conftest.$ac_ext <<_ACEOF
39852/* confdefs.h. */
39853_ACEOF
39854cat confdefs.h >>conftest.$ac_ext
39855cat >>conftest.$ac_ext <<_ACEOF
39856/* end confdefs.h. */
39857
39858int
39859main ()
39860{
39861
39862 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39863 #error "no pch support"
39864 #endif
39865 #if (__GNUC__ < 3)
39866 #error "no pch support"
39867 #endif
39868 #if (__GNUC__ == 3) && \
39869 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39870 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39871 #error "no pch support"
39872 #endif
39873
39874 ;
39875 return 0;
39876}
39877_ACEOF
39878rm -f conftest.$ac_objext
39879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39880 (eval $ac_compile) 2>conftest.er1
39881 ac_status=$?
39882 grep -v '^ *+' conftest.er1 >conftest.err
39883 rm -f conftest.er1
39884 cat conftest.err >&5
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); } &&
dcc1b6ad
VS
39887 { ac_try='test -z "$ac_c_werror_flag"
39888 || test ! -s conftest.err'
a848cd7e
SC
39889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39890 (eval $ac_try) 2>&5
39891 ac_status=$?
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); }; } &&
39894 { ac_try='test -s conftest.$ac_objext'
39895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39896 (eval $ac_try) 2>&5
39897 ac_status=$?
39898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39899 (exit $ac_status); }; }; then
39900
39901 echo "$as_me:$LINENO: result: yes" >&5
39902echo "${ECHO_T}yes" >&6
39903 CPPFLAGS="-fpch-deps $CPPFLAGS"
39904 GCC_PCH=1
39905
39906else
39907 echo "$as_me: failed program was:" >&5
39908sed 's/^/| /' conftest.$ac_ext >&5
39909
39910
39911 echo "$as_me:$LINENO: result: no" >&5
39912echo "${ECHO_T}no" >&6
39913
39914fi
39915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39916 if test $GCC_PCH = 1 ; then
39917 cat <<EOF >bk-make-pch
39918#!/bin/sh
39919
39920# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39921# script. It is used to generated precompiled headers.
39922#
39923# Permission is given to use this file in any way.
39924
39925outfile="\${1}"
39926header="\${2}"
39927shift
39928shift
39929
39930compiler=
39931headerfile=
39932while test \${#} -gt 0; do
39933 case "\${1}" in
39934 -I* )
39935 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39936 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39937 headerfile="\${incdir}/\${header}"
39938 fi
39939 ;;
39940 esac
39941 compiler="\${compiler} \${1}"
39942 shift
39943done
39944
39945if test "x\${headerfile}" = "x" ; then
39946 echo "error: can't find header \${header} in include paths" >2
39947else
39948 if test -f \${outfile} ; then
39949 rm -f \${outfile}
39950 else
39951 mkdir -p \`dirname \${outfile}\`
39952 fi
39953 depsfile=".deps/\`basename \${outfile}\`.d"
39954 mkdir -p .deps
39955 # can do this because gcc is >= 3.4:
39956 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39957 exit \${?}
39958fi
39959EOF
39960 chmod +x bk-make-pch
39961 fi
39962 fi
39963 fi
39964
39965
39966
39967
39968
dcc1b6ad
VS
39969
39970
39971 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39972if test "${enable_precomp_headers+set}" = set; then
39973 enableval="$enable_precomp_headers"
39974 bk_use_pch="$enableval"
39975fi;
39976
39977 GCC_PCH=0
39978
39979 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39980 if test "x$GCC" = "xyes"; then
39981 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39982echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39983 cat >conftest.$ac_ext <<_ACEOF
39984/* confdefs.h. */
39985_ACEOF
39986cat confdefs.h >>conftest.$ac_ext
39987cat >>conftest.$ac_ext <<_ACEOF
39988/* end confdefs.h. */
39989
39990int
39991main ()
39992{
39993
39994 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39995 #error "no pch support"
39996 #endif
39997 #if (__GNUC__ < 3)
39998 #error "no pch support"
39999 #endif
40000 #if (__GNUC__ == 3) && \
40001 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40002 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40003 #error "no pch support"
40004 #endif
40005
40006 ;
40007 return 0;
40008}
40009_ACEOF
40010rm -f conftest.$ac_objext
40011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40012 (eval $ac_compile) 2>conftest.er1
40013 ac_status=$?
40014 grep -v '^ *+' conftest.er1 >conftest.err
40015 rm -f conftest.er1
40016 cat conftest.err >&5
40017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40018 (exit $ac_status); } &&
40019 { ac_try='test -z "$ac_c_werror_flag"
40020 || test ! -s conftest.err'
40021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40022 (eval $ac_try) 2>&5
40023 ac_status=$?
40024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025 (exit $ac_status); }; } &&
40026 { ac_try='test -s conftest.$ac_objext'
40027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40028 (eval $ac_try) 2>&5
40029 ac_status=$?
40030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031 (exit $ac_status); }; }; then
40032
40033 echo "$as_me:$LINENO: result: yes" >&5
40034echo "${ECHO_T}yes" >&6
40035 CPPFLAGS="-fpch-deps $CPPFLAGS"
40036 GCC_PCH=1
40037
40038else
40039 echo "$as_me: failed program was:" >&5
40040sed 's/^/| /' conftest.$ac_ext >&5
40041
40042
40043 echo "$as_me:$LINENO: result: no" >&5
40044echo "${ECHO_T}no" >&6
40045
40046fi
40047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40048 if test $GCC_PCH = 1 ; then
40049 cat <<EOF >bk-make-pch
40050#!/bin/sh
40051
40052# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40053# script. It is used to generated precompiled headers.
40054#
40055# Permission is given to use this file in any way.
40056
40057outfile="\${1}"
40058header="\${2}"
40059shift
40060shift
40061
40062compiler=
40063headerfile=
40064while test \${#} -gt 0; do
40065 case "\${1}" in
40066 -I* )
40067 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40068 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40069 headerfile="\${incdir}/\${header}"
40070 fi
40071 ;;
40072 esac
40073 compiler="\${compiler} \${1}"
40074 shift
40075done
40076
40077if test "x\${headerfile}" = "x" ; then
40078 echo "error: can't find header \${header} in include paths" >2
40079else
40080 if test -f \${outfile} ; then
40081 rm -f \${outfile}
40082 else
40083 mkdir -p \`dirname \${outfile}\`
40084 fi
40085 depsfile=".deps/\`basename \${outfile}\`.d"
40086 mkdir -p .deps
40087 # can do this because gcc is >= 3.4:
40088 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40089 exit \${?}
40090fi
40091EOF
40092 chmod +x bk-make-pch
40093 fi
40094 fi
40095 fi
40096
40097
40098
40099
a848cd7e
SC
40100 COND_BUILD_DEBUG="#"
40101 if test "x$BUILD" = "xdebug" ; then
40102 COND_BUILD_DEBUG=""
40103 fi
40104
40105 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40106 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40107 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40108 fi
40109
40110 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40111 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40112 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40113 fi
40114
40115 COND_BUILD_DEBUG_UNICODE_0="#"
40116 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40117 COND_BUILD_DEBUG_UNICODE_0=""
40118 fi
40119
40120 COND_BUILD_DEBUG_UNICODE_1="#"
40121 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40122 COND_BUILD_DEBUG_UNICODE_1=""
40123 fi
40124
40125 COND_BUILD_RELEASE="#"
40126 if test "x$BUILD" = "xrelease" ; then
40127 COND_BUILD_RELEASE=""
40128 fi
40129
40130 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40131 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40132 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40133 fi
40134
40135 COND_BUILD_RELEASE_UNICODE_0="#"
40136 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40137 COND_BUILD_RELEASE_UNICODE_0=""
40138 fi
40139
40140 COND_BUILD_RELEASE_UNICODE_1="#"
40141 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40142 COND_BUILD_RELEASE_UNICODE_1=""
40143 fi
40144
40145 COND_DEBUG_FLAG_1="#"
40146 if test "x$DEBUG_FLAG" = "x1" ; then
40147 COND_DEBUG_FLAG_1=""
40148 fi
40149
40150 COND_DEBUG_INFO_0="#"
40151 if test "x$DEBUG_INFO" = "x0" ; then
40152 COND_DEBUG_INFO_0=""
40153 fi
40154
40155 COND_DEBUG_INFO_1="#"
40156 if test "x$DEBUG_INFO" = "x1" ; then
40157 COND_DEBUG_INFO_1=""
40158 fi
40159
40160 COND_DEPS_TRACKING_0="#"
40161 if test "x$DEPS_TRACKING" = "x0" ; then
40162 COND_DEPS_TRACKING_0=""
40163 fi
40164
40165 COND_DEPS_TRACKING_1="#"
40166 if test "x$DEPS_TRACKING" = "x1" ; then
40167 COND_DEPS_TRACKING_1=""
40168 fi
40169
40170 COND_GCC_PCH_1="#"
40171 if test "x$GCC_PCH" = "x1" ; then
40172 COND_GCC_PCH_1=""
40173 fi
40174
40175 COND_MONOLITHIC_0="#"
40176 if test "x$MONOLITHIC" = "x0" ; then
40177 COND_MONOLITHIC_0=""
40178 fi
40179
40180 COND_MONOLITHIC_0_SHARED_0="#"
40181 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40182 COND_MONOLITHIC_0_SHARED_0=""
40183 fi
40184
40185 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40186 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40187 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40188 fi
40189
40190 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40191 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40192 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40193 fi
40194
40195 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40196 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40197 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40198 fi
40199
40200 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40201 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40202 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40203 fi
40204
40205 COND_MONOLITHIC_0_SHARED_1="#"
40206 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40207 COND_MONOLITHIC_0_SHARED_1=""
40208 fi
40209
40210 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40211 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40212 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40213 fi
40214
40215 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40216 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40217 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40218 fi
40219
40220 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40221 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40222 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40223 fi
40224
40225 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40226 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40227 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40228 fi
40229
40230 COND_MONOLITHIC_0_USE_ODBC_1="#"
40231 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40232 COND_MONOLITHIC_0_USE_ODBC_1=""
40233 fi
40234
40235 COND_MONOLITHIC_1="#"
40236 if test "x$MONOLITHIC" = "x1" ; then
40237 COND_MONOLITHIC_1=""
40238 fi
40239
40240 COND_MONOLITHIC_1_SHARED_0="#"
40241 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40242 COND_MONOLITHIC_1_SHARED_0=""
40243 fi
40244
40245 COND_MONOLITHIC_1_SHARED_1="#"
40246 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40247 COND_MONOLITHIC_1_SHARED_1=""
40248 fi
40249
40250 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40251 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40252 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40253 fi
40254
40255 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40256 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40257 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40258 fi
40259
40260 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40261 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40262 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40263 fi
40264
40265 COND_PLATFORM_MACOSX_1="#"
40266 if test "x$PLATFORM_MACOSX" = "x1" ; then
40267 COND_PLATFORM_MACOSX_1=""
40268 fi
40269
40270 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40271 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40272 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40273 fi
40274
40275 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40276 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40277 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40278 fi
40279
40280 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40281 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40282 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40283 fi
40284
40285 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40286 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40287 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40288 fi
40289
40290 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40291 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40292 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40293 fi
40294
40295 COND_PLATFORM_MAC_1="#"
40296 if test "x$PLATFORM_MAC" = "x1" ; then
40297 COND_PLATFORM_MAC_1=""
40298 fi
40299
40300 COND_PLATFORM_OS2_1="#"
40301 if test "x$PLATFORM_OS2" = "x1" ; then
40302 COND_PLATFORM_OS2_1=""
40303 fi
40304
40305 COND_PLATFORM_UNIX_0="#"
40306 if test "x$PLATFORM_UNIX" = "x0" ; then
40307 COND_PLATFORM_UNIX_0=""
40308 fi
40309
40310 COND_PLATFORM_UNIX_1="#"
40311 if test "x$PLATFORM_UNIX" = "x1" ; then
40312 COND_PLATFORM_UNIX_1=""
40313 fi
40314
40315 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40316 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40317 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40318 fi
40319
40320 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40321 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40322 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40323 fi
40324
40325 COND_PLATFORM_WIN32_0="#"
40326 if test "x$PLATFORM_WIN32" = "x0" ; then
40327 COND_PLATFORM_WIN32_0=""
40328 fi
40329
40330 COND_PLATFORM_WIN32_1="#"
40331 if test "x$PLATFORM_WIN32" = "x1" ; then
40332 COND_PLATFORM_WIN32_1=""
40333 fi
40334
40335 COND_SHARED_0="#"
40336 if test "x$SHARED" = "x0" ; then
40337 COND_SHARED_0=""
40338 fi
40339
40340 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40341 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40342 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40343 fi
40344
40345 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40346 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40347 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40348 fi
40349
40350 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40351 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40352 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40353 fi
40354
40355 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40356 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40357 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40358 fi
40359
40360 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40361 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40362 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40363 fi
40364
40365 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40366 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40367 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40368 fi
40369
40370 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40371 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40372 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40373 fi
40374
40375 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40376 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40377 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40378 fi
40379
40380 COND_SHARED_1="#"
40381 if test "x$SHARED" = "x1" ; then
40382 COND_SHARED_1=""
40383 fi
40384
40385 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40386 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40387 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40388 fi
40389
40390 COND_TOOLKIT_COCOA="#"
40391 if test "x$TOOLKIT" = "xCOCOA" ; then
40392 COND_TOOLKIT_COCOA=""
40393 fi
40394
40395 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40396 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40397 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40398 fi
40399
40400 COND_TOOLKIT_GTK="#"
40401 if test "x$TOOLKIT" = "xGTK" ; then
40402 COND_TOOLKIT_GTK=""
40403 fi
40404
40405 COND_TOOLKIT_GTK_USE_GUI_1="#"
40406 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40407 COND_TOOLKIT_GTK_USE_GUI_1=""
40408 fi
40409
40410 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40411 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40412 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40413 fi
40414
40415 COND_TOOLKIT_MAC="#"
40416 if test "x$TOOLKIT" = "xMAC" ; then
40417 COND_TOOLKIT_MAC=""
40418 fi
40419
40420 COND_TOOLKIT_MAC_USE_GUI_1="#"
40421 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40422 COND_TOOLKIT_MAC_USE_GUI_1=""
40423 fi
40424
40425 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40426 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40427 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40428 fi
40429
40430 COND_TOOLKIT_MGL="#"
40431 if test "x$TOOLKIT" = "xMGL" ; then
40432 COND_TOOLKIT_MGL=""
40433 fi
40434
40435 COND_TOOLKIT_MGL_USE_GUI_1="#"
40436 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40437 COND_TOOLKIT_MGL_USE_GUI_1=""
40438 fi
40439
40440 COND_TOOLKIT_MOTIF="#"
40441 if test "x$TOOLKIT" = "xMOTIF" ; then
40442 COND_TOOLKIT_MOTIF=""
40443 fi
40444
40445 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40446 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40447 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40448 fi
40449
40450 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40451 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40452 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40453 fi
40454
40455 COND_TOOLKIT_MSW="#"
40456 if test "x$TOOLKIT" = "xMSW" ; then
40457 COND_TOOLKIT_MSW=""
40458 fi
40459
40460 COND_TOOLKIT_MSW_USE_GUI_1="#"
40461 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40462 COND_TOOLKIT_MSW_USE_GUI_1=""
40463 fi
40464
40465 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40466 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40467 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40468 fi
40469
40470 COND_TOOLKIT_PM="#"
40471 if test "x$TOOLKIT" = "xPM" ; then
40472 COND_TOOLKIT_PM=""
40473 fi
40474
40475 COND_TOOLKIT_PM_USE_GUI_1="#"
40476 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40477 COND_TOOLKIT_PM_USE_GUI_1=""
40478 fi
40479
40480 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40481 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40482 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40483 fi
40484
3fd9c298
DE
40485 COND_TOOLKIT_WINCE="#"
40486 if test "x$TOOLKIT" = "xWINCE" ; then
40487 COND_TOOLKIT_WINCE=""
40488 fi
40489
40490 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40491 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40492 COND_TOOLKIT_WINCE_USE_GUI_1=""
40493 fi
40494
40495 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40496 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40497 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40498 fi
40499
a848cd7e
SC
40500 COND_TOOLKIT_X11="#"
40501 if test "x$TOOLKIT" = "xX11" ; then
40502 COND_TOOLKIT_X11=""
40503 fi
40504
40505 COND_TOOLKIT_X11_USE_GUI_1="#"
40506 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40507 COND_TOOLKIT_X11_USE_GUI_1=""
40508 fi
40509
40510 COND_UNICODE_1="#"
40511 if test "x$UNICODE" = "x1" ; then
40512 COND_UNICODE_1=""
40513 fi
40514
40515 COND_USE_EXCEPTIONS_0="#"
40516 if test "x$USE_EXCEPTIONS" = "x0" ; then
40517 COND_USE_EXCEPTIONS_0=""
40518 fi
40519
40520 COND_USE_EXCEPTIONS_1="#"
40521 if test "x$USE_EXCEPTIONS" = "x1" ; then
40522 COND_USE_EXCEPTIONS_1=""
40523 fi
40524
40525 COND_USE_GUI_0="#"
40526 if test "x$USE_GUI" = "x0" ; then
40527 COND_USE_GUI_0=""
40528 fi
40529
40530 COND_USE_GUI_1="#"
40531 if test "x$USE_GUI" = "x1" ; then
40532 COND_USE_GUI_1=""
40533 fi
40534
40535 COND_USE_GUI_1_WXUNIV_0="#"
40536 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40537 COND_USE_GUI_1_WXUNIV_0=""
40538 fi
40539
40540 COND_USE_GUI_1_WXUNIV_1="#"
40541 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40542 COND_USE_GUI_1_WXUNIV_1=""
40543 fi
40544
40545 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40546 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40547 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40548 fi
40549
40550 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40551 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40552 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40553 fi
40554
40555 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40556 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40557 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40558 fi
40559
40560 COND_USE_ODBC_1="#"
40561 if test "x$USE_ODBC" = "x1" ; then
40562 COND_USE_ODBC_1=""
40563 fi
40564
40565 COND_USE_PLUGINS_0="#"
40566 if test "x$USE_PLUGINS" = "x0" ; then
40567 COND_USE_PLUGINS_0=""
40568 fi
40569
40570 COND_USE_SOSYMLINKS_1="#"
40571 if test "x$USE_SOSYMLINKS" = "x1" ; then
40572 COND_USE_SOSYMLINKS_1=""
40573 fi
40574
40575 COND_USE_SOVERLINUX_1="#"
40576 if test "x$USE_SOVERLINUX" = "x1" ; then
40577 COND_USE_SOVERLINUX_1=""
40578 fi
40579
40580 COND_USE_SOVERSION_0="#"
40581 if test "x$USE_SOVERSION" = "x0" ; then
40582 COND_USE_SOVERSION_0=""
40583 fi
40584
40585 COND_USE_SOVERSOLARIS_1="#"
40586 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40587 COND_USE_SOVERSOLARIS_1=""
40588 fi
40589
40590 COND_WITH_PLUGIN_SDL_1="#"
40591 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40592 COND_WITH_PLUGIN_SDL_1=""
40593 fi
40594
40595 COND_WITH_SDL_1="#"
40596 if test "x$WITH_SDL" = "x1" ; then
40597 COND_WITH_SDL_1=""
40598 fi
40599
40600 COND_WXUNIV_1="#"
40601 if test "x$WXUNIV" = "x1" ; then
40602 COND_WXUNIV_1=""
40603 fi
40604
40605 COND_WXUSE_EXPAT_BUILTIN="#"
40606 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40607 COND_WXUSE_EXPAT_BUILTIN=""
40608 fi
40609
40610 COND_WXUSE_LIBJPEG_BUILTIN="#"
40611 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40612 COND_WXUSE_LIBJPEG_BUILTIN=""
40613 fi
40614
40615 COND_WXUSE_LIBPNG_BUILTIN="#"
40616 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40617 COND_WXUSE_LIBPNG_BUILTIN=""
40618 fi
40619
40620 COND_WXUSE_LIBTIFF_BUILTIN="#"
40621 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40622 COND_WXUSE_LIBTIFF_BUILTIN=""
40623 fi
40624
40625 COND_WXUSE_ODBC_BUILTIN="#"
40626 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40627 COND_WXUSE_ODBC_BUILTIN=""
40628 fi
40629
40630 COND_WXUSE_REGEX_BUILTIN="#"
40631 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40632 COND_WXUSE_REGEX_BUILTIN=""
40633 fi
40634
40635 COND_WXUSE_ZLIB_BUILTIN="#"
40636 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40637 COND_WXUSE_ZLIB_BUILTIN=""
40638 fi
40639
dcc1b6ad
VS
40640 COND_BUILD_DEBUG="#"
40641 if test "x$BUILD" = "xdebug" ; then
40642 COND_BUILD_DEBUG=""
40643 fi
40644
40645 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40646 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40647 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40648 fi
40649
40650 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40651 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40652 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40653 fi
40654
40655 COND_BUILD_DEBUG_UNICODE_0="#"
40656 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40657 COND_BUILD_DEBUG_UNICODE_0=""
40658 fi
40659
40660 COND_BUILD_DEBUG_UNICODE_1="#"
40661 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40662 COND_BUILD_DEBUG_UNICODE_1=""
40663 fi
40664
40665 COND_BUILD_RELEASE="#"
40666 if test "x$BUILD" = "xrelease" ; then
40667 COND_BUILD_RELEASE=""
40668 fi
40669
40670 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40671 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40672 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40673 fi
40674
40675 COND_BUILD_RELEASE_UNICODE_0="#"
40676 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40677 COND_BUILD_RELEASE_UNICODE_0=""
40678 fi
40679
40680 COND_BUILD_RELEASE_UNICODE_1="#"
40681 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40682 COND_BUILD_RELEASE_UNICODE_1=""
40683 fi
40684
40685 COND_DEBUG_FLAG_1="#"
40686 if test "x$DEBUG_FLAG" = "x1" ; then
40687 COND_DEBUG_FLAG_1=""
40688 fi
40689
40690 COND_DEBUG_INFO_0="#"
40691 if test "x$DEBUG_INFO" = "x0" ; then
40692 COND_DEBUG_INFO_0=""
40693 fi
40694
40695 COND_DEBUG_INFO_1="#"
40696 if test "x$DEBUG_INFO" = "x1" ; then
40697 COND_DEBUG_INFO_1=""
40698 fi
40699
40700 COND_DEPS_TRACKING_0="#"
40701 if test "x$DEPS_TRACKING" = "x0" ; then
40702 COND_DEPS_TRACKING_0=""
40703 fi
40704
40705 COND_DEPS_TRACKING_1="#"
40706 if test "x$DEPS_TRACKING" = "x1" ; then
40707 COND_DEPS_TRACKING_1=""
40708 fi
40709
40710 COND_GCC_PCH_1="#"
40711 if test "x$GCC_PCH" = "x1" ; then
40712 COND_GCC_PCH_1=""
40713 fi
40714
40715 COND_MONOLITHIC_0="#"
40716 if test "x$MONOLITHIC" = "x0" ; then
40717 COND_MONOLITHIC_0=""
40718 fi
40719
40720 COND_MONOLITHIC_0_SHARED_0="#"
40721 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40722 COND_MONOLITHIC_0_SHARED_0=""
40723 fi
40724
40725 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40726 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40727 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40728 fi
40729
40730 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40731 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40732 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40733 fi
40734
40735 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40736 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40737 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40738 fi
40739
40740 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40741 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40742 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40743 fi
40744
40745 COND_MONOLITHIC_0_SHARED_1="#"
40746 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40747 COND_MONOLITHIC_0_SHARED_1=""
40748 fi
40749
40750 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40751 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40752 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40753 fi
40754
40755 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40756 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40757 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40758 fi
40759
40760 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40761 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40762 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40763 fi
40764
40765 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40766 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40767 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40768 fi
40769
40770 COND_MONOLITHIC_0_USE_ODBC_1="#"
40771 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40772 COND_MONOLITHIC_0_USE_ODBC_1=""
40773 fi
40774
40775 COND_MONOLITHIC_1="#"
40776 if test "x$MONOLITHIC" = "x1" ; then
40777 COND_MONOLITHIC_1=""
40778 fi
40779
40780 COND_MONOLITHIC_1_SHARED_0="#"
40781 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40782 COND_MONOLITHIC_1_SHARED_0=""
40783 fi
40784
40785 COND_MONOLITHIC_1_SHARED_1="#"
40786 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40787 COND_MONOLITHIC_1_SHARED_1=""
40788 fi
40789
40790 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40791 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40792 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40793 fi
40794
40795 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40796 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40797 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40798 fi
40799
40800 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40801 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40802 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40803 fi
40804
40805 COND_PLATFORM_MACOSX_1="#"
40806 if test "x$PLATFORM_MACOSX" = "x1" ; then
40807 COND_PLATFORM_MACOSX_1=""
40808 fi
40809
40810 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40811 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40812 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40813 fi
40814
40815 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40816 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40817 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40818 fi
40819
40820 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40821 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40822 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40823 fi
40824
40825 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40826 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40827 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40828 fi
40829
40830 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40831 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40832 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40833 fi
40834
40835 COND_PLATFORM_MAC_1="#"
40836 if test "x$PLATFORM_MAC" = "x1" ; then
40837 COND_PLATFORM_MAC_1=""
40838 fi
40839
40840 COND_PLATFORM_OS2_1="#"
40841 if test "x$PLATFORM_OS2" = "x1" ; then
40842 COND_PLATFORM_OS2_1=""
40843 fi
40844
40845 COND_PLATFORM_UNIX_0="#"
40846 if test "x$PLATFORM_UNIX" = "x0" ; then
40847 COND_PLATFORM_UNIX_0=""
40848 fi
40849
40850 COND_PLATFORM_UNIX_1="#"
40851 if test "x$PLATFORM_UNIX" = "x1" ; then
40852 COND_PLATFORM_UNIX_1=""
40853 fi
40854
40855 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40856 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40857 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40858 fi
40859
40860 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40861 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40862 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40863 fi
40864
40865 COND_PLATFORM_WIN32_0="#"
40866 if test "x$PLATFORM_WIN32" = "x0" ; then
40867 COND_PLATFORM_WIN32_0=""
40868 fi
40869
40870 COND_PLATFORM_WIN32_1="#"
40871 if test "x$PLATFORM_WIN32" = "x1" ; then
40872 COND_PLATFORM_WIN32_1=""
40873 fi
40874
40875 COND_SHARED_0="#"
40876 if test "x$SHARED" = "x0" ; then
40877 COND_SHARED_0=""
40878 fi
40879
40880 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40881 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40882 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40883 fi
40884
40885 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40886 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40887 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40888 fi
40889
40890 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40891 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40892 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40893 fi
40894
40895 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40896 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40898 fi
40899
40900 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40901 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40902 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40903 fi
40904
40905 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40906 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40907 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40908 fi
40909
40910 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40911 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40912 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40913 fi
40914
40915 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40916 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40917 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40918 fi
40919
40920 COND_SHARED_1="#"
40921 if test "x$SHARED" = "x1" ; then
40922 COND_SHARED_1=""
40923 fi
40924
40925 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40926 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40927 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40928 fi
40929
40930 COND_TOOLKIT_COCOA="#"
40931 if test "x$TOOLKIT" = "xCOCOA" ; then
40932 COND_TOOLKIT_COCOA=""
40933 fi
40934
40935 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40936 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40937 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40938 fi
40939
40940 COND_TOOLKIT_GTK="#"
40941 if test "x$TOOLKIT" = "xGTK" ; then
40942 COND_TOOLKIT_GTK=""
40943 fi
40944
40945 COND_TOOLKIT_GTK_USE_GUI_1="#"
40946 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40947 COND_TOOLKIT_GTK_USE_GUI_1=""
40948 fi
40949
40950 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40951 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40952 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40953 fi
40954
40955 COND_TOOLKIT_MAC="#"
40956 if test "x$TOOLKIT" = "xMAC" ; then
40957 COND_TOOLKIT_MAC=""
40958 fi
40959
40960 COND_TOOLKIT_MAC_USE_GUI_1="#"
40961 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40962 COND_TOOLKIT_MAC_USE_GUI_1=""
40963 fi
40964
40965 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40966 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40967 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40968 fi
40969
40970 COND_TOOLKIT_MGL="#"
40971 if test "x$TOOLKIT" = "xMGL" ; then
40972 COND_TOOLKIT_MGL=""
40973 fi
40974
40975 COND_TOOLKIT_MGL_USE_GUI_1="#"
40976 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40977 COND_TOOLKIT_MGL_USE_GUI_1=""
40978 fi
40979
40980 COND_TOOLKIT_MOTIF="#"
40981 if test "x$TOOLKIT" = "xMOTIF" ; then
40982 COND_TOOLKIT_MOTIF=""
40983 fi
40984
40985 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40986 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40987 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40988 fi
40989
40990 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40991 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40992 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40993 fi
40994
40995 COND_TOOLKIT_MSW="#"
40996 if test "x$TOOLKIT" = "xMSW" ; then
40997 COND_TOOLKIT_MSW=""
40998 fi
40999
41000 COND_TOOLKIT_MSW_USE_GUI_1="#"
41001 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41002 COND_TOOLKIT_MSW_USE_GUI_1=""
41003 fi
41004
41005 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41006 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41007 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41008 fi
41009
41010 COND_TOOLKIT_PM="#"
41011 if test "x$TOOLKIT" = "xPM" ; then
41012 COND_TOOLKIT_PM=""
41013 fi
41014
41015 COND_TOOLKIT_PM_USE_GUI_1="#"
41016 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41017 COND_TOOLKIT_PM_USE_GUI_1=""
41018 fi
41019
41020 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41021 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41022 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41023 fi
41024
41025 COND_TOOLKIT_WINCE="#"
41026 if test "x$TOOLKIT" = "xWINCE" ; then
41027 COND_TOOLKIT_WINCE=""
41028 fi
41029
41030 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41031 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41032 COND_TOOLKIT_WINCE_USE_GUI_1=""
41033 fi
41034
41035 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41036 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41037 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41038 fi
41039
41040 COND_TOOLKIT_X11="#"
41041 if test "x$TOOLKIT" = "xX11" ; then
41042 COND_TOOLKIT_X11=""
41043 fi
41044
41045 COND_TOOLKIT_X11_USE_GUI_1="#"
41046 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41047 COND_TOOLKIT_X11_USE_GUI_1=""
41048 fi
41049
41050 COND_UNICODE_1="#"
41051 if test "x$UNICODE" = "x1" ; then
41052 COND_UNICODE_1=""
41053 fi
41054
41055 COND_USE_EXCEPTIONS_0="#"
41056 if test "x$USE_EXCEPTIONS" = "x0" ; then
41057 COND_USE_EXCEPTIONS_0=""
41058 fi
41059
41060 COND_USE_EXCEPTIONS_1="#"
41061 if test "x$USE_EXCEPTIONS" = "x1" ; then
41062 COND_USE_EXCEPTIONS_1=""
41063 fi
41064
41065 COND_USE_GUI_0="#"
41066 if test "x$USE_GUI" = "x0" ; then
41067 COND_USE_GUI_0=""
41068 fi
41069
41070 COND_USE_GUI_1="#"
41071 if test "x$USE_GUI" = "x1" ; then
41072 COND_USE_GUI_1=""
41073 fi
41074
41075 COND_USE_GUI_1_WXUNIV_0="#"
41076 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41077 COND_USE_GUI_1_WXUNIV_0=""
41078 fi
41079
41080 COND_USE_GUI_1_WXUNIV_1="#"
41081 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41082 COND_USE_GUI_1_WXUNIV_1=""
41083 fi
41084
41085 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41086 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41087 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41088 fi
41089
41090 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41091 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41092 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41093 fi
41094
41095 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41096 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41097 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41098 fi
41099
41100 COND_USE_ODBC_1="#"
41101 if test "x$USE_ODBC" = "x1" ; then
41102 COND_USE_ODBC_1=""
41103 fi
41104
41105 COND_USE_PLUGINS_0="#"
41106 if test "x$USE_PLUGINS" = "x0" ; then
41107 COND_USE_PLUGINS_0=""
41108 fi
41109
41110 COND_USE_SOSYMLINKS_1="#"
41111 if test "x$USE_SOSYMLINKS" = "x1" ; then
41112 COND_USE_SOSYMLINKS_1=""
41113 fi
41114
41115 COND_USE_SOVERLINUX_1="#"
41116 if test "x$USE_SOVERLINUX" = "x1" ; then
41117 COND_USE_SOVERLINUX_1=""
41118 fi
41119
41120 COND_USE_SOVERSION_0="#"
41121 if test "x$USE_SOVERSION" = "x0" ; then
41122 COND_USE_SOVERSION_0=""
41123 fi
41124
41125 COND_USE_SOVERSOLARIS_1="#"
41126 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41127 COND_USE_SOVERSOLARIS_1=""
41128 fi
41129
41130 COND_WITH_PLUGIN_SDL_1="#"
41131 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41132 COND_WITH_PLUGIN_SDL_1=""
41133 fi
41134
41135 COND_WXUNIV_1="#"
41136 if test "x$WXUNIV" = "x1" ; then
41137 COND_WXUNIV_1=""
41138 fi
41139
41140 COND_WXUSE_EXPAT_BUILTIN="#"
41141 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41142 COND_WXUSE_EXPAT_BUILTIN=""
41143 fi
41144
41145 COND_WXUSE_LIBJPEG_BUILTIN="#"
41146 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41147 COND_WXUSE_LIBJPEG_BUILTIN=""
41148 fi
41149
41150 COND_WXUSE_LIBPNG_BUILTIN="#"
41151 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41152 COND_WXUSE_LIBPNG_BUILTIN=""
41153 fi
41154
41155 COND_WXUSE_LIBTIFF_BUILTIN="#"
41156 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41157 COND_WXUSE_LIBTIFF_BUILTIN=""
41158 fi
41159
41160 COND_WXUSE_ODBC_BUILTIN="#"
41161 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41162 COND_WXUSE_ODBC_BUILTIN=""
41163 fi
41164
41165 COND_WXUSE_REGEX_BUILTIN="#"
41166 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41167 COND_WXUSE_REGEX_BUILTIN=""
41168 fi
41169
41170 COND_WXUSE_ZLIB_BUILTIN="#"
41171 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41172 COND_WXUSE_ZLIB_BUILTIN=""
41173 fi
41174
a848cd7e
SC
41175
41176
41177
41178
41179if test $GCC_PCH = 1 ; then
41180 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41181 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
41182else
41183 case "${host}" in
41184 powerpc-*-darwin* )
41185 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41186 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41187 ;;
bea8e651
MB
41188 *-*-mingw32* )
41189 if test "$wxUSE_STL" = "yes"; then
41190 echo "$as_me:$LINENO: checking If this MinGW version needs -DNO_GCC_PRAGMA" >&5
41191echo $ECHO_N "checking If this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41192 cat >conftest.$ac_ext <<_ACEOF
41193/* confdefs.h. */
41194_ACEOF
41195cat confdefs.h >>conftest.$ac_ext
41196cat >>conftest.$ac_ext <<_ACEOF
41197/* end confdefs.h. */
41198
41199int
41200main ()
41201{
41202#if !(__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
41203 #error "Not GCC 3.2 or greater"
41204 #endif
41205
41206 ;
41207 return 0;
41208}
41209_ACEOF
41210rm -f conftest.$ac_objext
41211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41212 (eval $ac_compile) 2>conftest.er1
41213 ac_status=$?
41214 grep -v '^ *+' conftest.er1 >conftest.err
41215 rm -f conftest.er1
41216 cat conftest.err >&5
41217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41218 (exit $ac_status); } &&
41219 { ac_try='test -z "$ac_c_werror_flag"
41220 || test ! -s conftest.err'
41221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41222 (eval $ac_try) 2>&5
41223 ac_status=$?
41224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225 (exit $ac_status); }; } &&
41226 { ac_try='test -s conftest.$ac_objext'
41227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41228 (eval $ac_try) 2>&5
41229 ac_status=$?
41230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41231 (exit $ac_status); }; }; then
41232 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41233 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41234 echo "$as_me:$LINENO: result: yes" >&5
41235echo "${ECHO_T}yes" >&6
41236else
41237 echo "$as_me: failed program was:" >&5
41238sed 's/^/| /' conftest.$ac_ext >&5
41239
41240echo "$as_me:$LINENO: result: no" >&5
41241echo "${ECHO_T}no" >&6
41242fi
41243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41244 fi
41245 ;;
a848cd7e
SC
41246 esac
41247fi
41248
41249
41250SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41352echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
41353set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
41354if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41355 echo $ECHO_N "(cached) $ECHO_C" >&6
41356else
41357 cat >conftest.make <<\_ACEOF
41358all:
41359 @echo 'ac_maketemp="$(MAKE)"'
41360_ACEOF
41361# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41362eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41363if test -n "$ac_maketemp"; then
41364 eval ac_cv_prog_make_${ac_make}_set=yes
41365else
41366 eval ac_cv_prog_make_${ac_make}_set=no
41367fi
41368rm -f conftest.make
41369fi
41370if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41371 echo "$as_me:$LINENO: result: yes" >&5
41372echo "${ECHO_T}yes" >&6
41373 SET_MAKE=
41374else
41375 echo "$as_me:$LINENO: result: no" >&5
41376echo "${ECHO_T}no" >&6
41377 SET_MAKE="MAKE=${MAKE-make}"
41378fi
41379
41380
41381if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41382 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41383fi
41384
41385 ac_config_headers="$ac_config_headers setup.h"
41386
41387
41388 ac_config_files="$ac_config_files wx-config version-script Makefile"
41389
41390
41391 ac_config_commands="$ac_config_commands default"
41392
41393
41394
41395if test "$wxUSE_GUI" = "yes"; then
41396 SUBDIRS="samples demos utils contrib"
41397else SUBDIRS="samples utils"
41398fi
41399
41400
41401
41402# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41403if test "${with_cppunit_prefix+set}" = set; then
41404 withval="$with_cppunit_prefix"
41405 cppunit_config_prefix="$withval"
41406else
41407 cppunit_config_prefix=""
41408fi;
41409
41410# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41411if test "${with_cppunit_exec_prefix+set}" = set; then
41412 withval="$with_cppunit_exec_prefix"
41413 cppunit_config_exec_prefix="$withval"
41414else
41415 cppunit_config_exec_prefix=""
41416fi;
41417
41418 if test x$cppunit_config_exec_prefix != x ; then
41419 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41420 if test x${CPPUNIT_CONFIG+set} != xset ; then
41421 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41422 fi
41423 fi
41424 if test x$cppunit_config_prefix != x ; then
41425 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41426 if test x${CPPUNIT_CONFIG+set} != xset ; then
41427 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41428 fi
41429 fi
41430
41431 # Extract the first word of "cppunit-config", so it can be a program name with args.
41432set dummy cppunit-config; ac_word=$2
41433echo "$as_me:$LINENO: checking for $ac_word" >&5
41434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41435if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41436 echo $ECHO_N "(cached) $ECHO_C" >&6
41437else
41438 case $CPPUNIT_CONFIG in
41439 [\\/]* | ?:[\\/]*)
41440 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41441 ;;
41442 *)
41443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41444for as_dir in $PATH
41445do
41446 IFS=$as_save_IFS
41447 test -z "$as_dir" && as_dir=.
41448 for ac_exec_ext in '' $ac_executable_extensions; do
41449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41450 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41452 break 2
41453 fi
41454done
41455done
41456
41457 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41458 ;;
41459esac
41460fi
41461CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41462
41463if test -n "$CPPUNIT_CONFIG"; then
41464 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41465echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41466else
41467 echo "$as_me:$LINENO: result: no" >&5
41468echo "${ECHO_T}no" >&6
41469fi
41470
41471 cppunit_version_min=1.8.0
41472
41473 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41474echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41475 no_cppunit=""
41476 if test "$CPPUNIT_CONFIG" = "no" ; then
41477 no_cppunit=yes
c2218763
VS
41478 echo "$as_me:$LINENO: result: no" >&5
41479echo "${ECHO_T}no" >&6
a848cd7e
SC
41480 else
41481 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41482 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41483 cppunit_version=`$CPPUNIT_CONFIG --version`
41484
41485 cppunit_major_version=`echo $cppunit_version | \
41486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41487 cppunit_minor_version=`echo $cppunit_version | \
41488 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41489 cppunit_micro_version=`echo $cppunit_version | \
41490 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41491
41492 cppunit_major_min=`echo $cppunit_version_min | \
41493 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41494 cppunit_minor_min=`echo $cppunit_version_min | \
41495 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41496 cppunit_micro_min=`echo $cppunit_version_min | \
41497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41498
41499 cppunit_version_proper=`expr \
41500 $cppunit_major_version \> $cppunit_major_min \| \
41501 $cppunit_major_version \= $cppunit_major_min \& \
41502 $cppunit_minor_version \> $cppunit_minor_min \| \
41503 $cppunit_major_version \= $cppunit_major_min \& \
41504 $cppunit_minor_version \= $cppunit_minor_min \& \
41505 $cppunit_micro_version \>= $cppunit_micro_min `
41506
41507 if test "$cppunit_version_proper" = "1" ; then
41508 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41509echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41510 else
41511 echo "$as_me:$LINENO: result: no" >&5
41512echo "${ECHO_T}no" >&6
41513 no_cppunit=yes
41514 fi
41515 fi
41516
41517 if test "x$no_cppunit" = x ; then
c2218763 41518 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41519 else
41520 CPPUNIT_CFLAGS=""
41521 CPPUNIT_LIBS=""
c2218763 41522 :
a848cd7e
SC
41523 fi
41524
41525
41526
41527
41528
41529for subdir in `echo $SUBDIRS`; do
41530 if test -d ${srcdir}/${subdir} ; then
41531 if test "$wxUSE_GUI" = "yes"; then
41532 if test ${subdir} = "samples"; then
41533 makefiles="samples/Makefile.in $makefiles"
41534 for sample in `echo $SAMPLES_SUBDIRS`; do
41535 if test -d $srcdir/samples/$sample; then
41536 makefiles="samples/$sample/Makefile.in $makefiles"
41537 fi
41538 done
41539 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41540 fi
41541 else if test ${subdir} = "samples"; then
41542 makefiles="samples/Makefile.in samples/console/Makefile.in"
41543 elif test ${subdir} = "utils"; then
41544 makefiles="utils/HelpGen/Makefile.in \
41545 utils/HelpGen/src/Makefile.in \
41546 utils/tex2rtf/Makefile.in \
41547 utils/tex2rtf/src/Makefile.in"
41548 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41549 fi
41550 fi
41551
41552 for mkin in $makefiles ; do
41553 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41554 ac_config_files="$ac_config_files $mk"
41555
41556 done
41557 fi
41558done
41559
41560
41561cat >confcache <<\_ACEOF
41562# This file is a shell script that caches the results of configure
41563# tests run on this system so they can be shared between configure
41564# scripts and configure runs, see configure's option --config-cache.
41565# It is not useful on other systems. If it contains results you don't
41566# want to keep, you may remove or edit it.
41567#
41568# config.status only pays attention to the cache file if you give it
41569# the --recheck option to rerun configure.
41570#
41571# `ac_cv_env_foo' variables (set or unset) will be overridden when
41572# loading this file, other *unset* `ac_cv_foo' will be assigned the
41573# following values.
41574
41575_ACEOF
41576
41577# The following way of writing the cache mishandles newlines in values,
41578# but we know of no workaround that is simple, portable, and efficient.
41579# So, don't put newlines in cache variables' values.
41580# Ultrix sh set writes to stderr and can't be redirected directly,
41581# and sets the high bit in the cache file unless we assign to the vars.
41582{
41583 (set) 2>&1 |
41584 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41585 *ac_space=\ *)
41586 # `set' does not quote correctly, so add quotes (double-quote
41587 # substitution turns \\\\ into \\, and sed turns \\ into \).
41588 sed -n \
41589 "s/'/'\\\\''/g;
41590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41591 ;;
41592 *)
41593 # `set' quotes correctly as required by POSIX, so do not add quotes.
41594 sed -n \
41595 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41596 ;;
41597 esac;
41598} |
41599 sed '
41600 t clear
41601 : clear
41602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41603 t end
41604 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41605 : end' >>confcache
41606if diff $cache_file confcache >/dev/null 2>&1; then :; else
41607 if test -w $cache_file; then
41608 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41609 cat confcache >$cache_file
41610 else
41611 echo "not updating unwritable cache $cache_file"
41612 fi
41613fi
41614rm -f confcache
41615
41616test "x$prefix" = xNONE && prefix=$ac_default_prefix
41617# Let make expand exec_prefix.
41618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41619
41620# VPATH may cause trouble with some makes, so we remove $(srcdir),
41621# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41622# trailing colons and then remove the whole line if VPATH becomes empty
41623# (actually we leave an empty line to preserve line numbers).
41624if test "x$srcdir" = x.; then
41625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
41626s/:*\$(srcdir):*/:/;
41627s/:*\${srcdir}:*/:/;
41628s/:*@srcdir@:*/:/;
41629s/^\([^=]*=[ ]*\):*/\1/;
41630s/:*$//;
41631s/^[^=]*=[ ]*$//;
41632}'
41633fi
41634
41635DEFS=-DHAVE_CONFIG_H
41636
41637ac_libobjs=
41638ac_ltlibobjs=
41639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41640 # 1. Remove the extension, and $U if already installed.
41641 ac_i=`echo "$ac_i" |
41642 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41643 # 2. Add them.
41644 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41645 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41646done
41647LIBOBJS=$ac_libobjs
41648
41649LTLIBOBJS=$ac_ltlibobjs
41650
41651
41652
41653: ${CONFIG_STATUS=./config.status}
41654ac_clean_files_save=$ac_clean_files
41655ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41656{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41657echo "$as_me: creating $CONFIG_STATUS" >&6;}
41658cat >$CONFIG_STATUS <<_ACEOF
41659#! $SHELL
41660# Generated by $as_me.
41661# Run this file to recreate the current configuration.
41662# Compiler output produced by configure, useful for debugging
41663# configure, is in config.log if it exists.
41664
41665debug=false
41666ac_cs_recheck=false
41667ac_cs_silent=false
41668SHELL=\${CONFIG_SHELL-$SHELL}
41669_ACEOF
41670
41671cat >>$CONFIG_STATUS <<\_ACEOF
41672## --------------------- ##
41673## M4sh Initialization. ##
41674## --------------------- ##
41675
41676# Be Bourne compatible
41677if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41678 emulate sh
41679 NULLCMD=:
41680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41681 # is contrary to our usage. Disable this feature.
41682 alias -g '${1+"$@"}'='"$@"'
41683elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41684 set -o posix
41685fi
41686DUALCASE=1; export DUALCASE # for MKS sh
41687
41688# Support unset when possible.
41689if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41690 as_unset=unset
41691else
41692 as_unset=false
41693fi
41694
41695
41696# Work around bugs in pre-3.0 UWIN ksh.
41697$as_unset ENV MAIL MAILPATH
41698PS1='$ '
41699PS2='> '
41700PS4='+ '
41701
41702# NLS nuisances.
41703for as_var in \
41704 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41705 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41706 LC_TELEPHONE LC_TIME
41707do
41708 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41709 eval $as_var=C; export $as_var
41710 else
41711 $as_unset $as_var
41712 fi
41713done
41714
41715# Required to use basename.
41716if expr a : '\(a\)' >/dev/null 2>&1; then
41717 as_expr=expr
41718else
41719 as_expr=false
41720fi
41721
41722if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41723 as_basename=basename
41724else
41725 as_basename=false
41726fi
41727
41728
41729# Name of the executable.
41730as_me=`$as_basename "$0" ||
41731$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41732 X"$0" : 'X\(//\)$' \| \
41733 X"$0" : 'X\(/\)$' \| \
41734 . : '\(.\)' 2>/dev/null ||
41735echo X/"$0" |
41736 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41737 /^X\/\(\/\/\)$/{ s//\1/; q; }
41738 /^X\/\(\/\).*/{ s//\1/; q; }
41739 s/.*/./; q'`
41740
41741
41742# PATH needs CR, and LINENO needs CR and PATH.
41743# Avoid depending upon Character Ranges.
41744as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41745as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41746as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41747as_cr_digits='0123456789'
41748as_cr_alnum=$as_cr_Letters$as_cr_digits
41749
41750# The user is always right.
41751if test "${PATH_SEPARATOR+set}" != set; then
41752 echo "#! /bin/sh" >conf$$.sh
41753 echo "exit 0" >>conf$$.sh
41754 chmod +x conf$$.sh
41755 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41756 PATH_SEPARATOR=';'
41757 else
41758 PATH_SEPARATOR=:
41759 fi
41760 rm -f conf$$.sh
41761fi
41762
41763
41764 as_lineno_1=$LINENO
41765 as_lineno_2=$LINENO
41766 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41767 test "x$as_lineno_1" != "x$as_lineno_2" &&
41768 test "x$as_lineno_3" = "x$as_lineno_2" || {
41769 # Find who we are. Look in the path if we contain no path at all
41770 # relative or not.
41771 case $0 in
41772 *[\\/]* ) as_myself=$0 ;;
41773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41774for as_dir in $PATH
41775do
41776 IFS=$as_save_IFS
41777 test -z "$as_dir" && as_dir=.
41778 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41779done
41780
41781 ;;
41782 esac
41783 # We did not find ourselves, most probably we were run as `sh COMMAND'
41784 # in which case we are not to be found in the path.
41785 if test "x$as_myself" = x; then
41786 as_myself=$0
41787 fi
41788 if test ! -f "$as_myself"; then
41789 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41790echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41791 { (exit 1); exit 1; }; }
41792 fi
41793 case $CONFIG_SHELL in
41794 '')
41795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41796for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41797do
41798 IFS=$as_save_IFS
41799 test -z "$as_dir" && as_dir=.
41800 for as_base in sh bash ksh sh5; do
41801 case $as_dir in
41802 /*)
41803 if ("$as_dir/$as_base" -c '
41804 as_lineno_1=$LINENO
41805 as_lineno_2=$LINENO
41806 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41807 test "x$as_lineno_1" != "x$as_lineno_2" &&
41808 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41809 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41810 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41811 CONFIG_SHELL=$as_dir/$as_base
41812 export CONFIG_SHELL
41813 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41814 fi;;
41815 esac
41816 done
41817done
41818;;
41819 esac
41820
41821 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41822 # uniformly replaced by the line number. The first 'sed' inserts a
41823 # line-number line before each line; the second 'sed' does the real
41824 # work. The second script uses 'N' to pair each line-number line
41825 # with the numbered line, and appends trailing '-' during
41826 # substitution so that $LINENO is not a special case at line end.
41827 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41828 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41829 sed '=' <$as_myself |
41830 sed '
41831 N
41832 s,$,-,
41833 : loop
41834 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41835 t loop
41836 s,-$,,
41837 s,^['$as_cr_digits']*\n,,
41838 ' >$as_me.lineno &&
41839 chmod +x $as_me.lineno ||
41840 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41841echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41842 { (exit 1); exit 1; }; }
41843
41844 # Don't try to exec as it changes $[0], causing all sort of problems
41845 # (the dirname of $[0] is not the place where we might find the
41846 # original and so on. Autoconf is especially sensible to this).
41847 . ./$as_me.lineno
41848 # Exit status is that of the last command.
41849 exit
41850}
41851
41852
41853case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41854 *c*,-n*) ECHO_N= ECHO_C='
41855' ECHO_T=' ' ;;
41856 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41857 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41858esac
41859
41860if expr a : '\(a\)' >/dev/null 2>&1; then
41861 as_expr=expr
41862else
41863 as_expr=false
41864fi
41865
41866rm -f conf$$ conf$$.exe conf$$.file
41867echo >conf$$.file
41868if ln -s conf$$.file conf$$ 2>/dev/null; then
41869 # We could just check for DJGPP; but this test a) works b) is more generic
41870 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41871 if test -f conf$$.exe; then
41872 # Don't use ln at all; we don't have any links
41873 as_ln_s='cp -p'
41874 else
41875 as_ln_s='ln -s'
41876 fi
41877elif ln conf$$.file conf$$ 2>/dev/null; then
41878 as_ln_s=ln
41879else
41880 as_ln_s='cp -p'
41881fi
41882rm -f conf$$ conf$$.exe conf$$.file
41883
41884if mkdir -p . 2>/dev/null; then
41885 as_mkdir_p=:
41886else
41887 test -d ./-p && rmdir ./-p
41888 as_mkdir_p=false
41889fi
41890
41891as_executable_p="test -f"
41892
41893# Sed expression to map a string onto a valid CPP name.
41894as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41895
41896# Sed expression to map a string onto a valid variable name.
41897as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41898
41899
41900# IFS
41901# We need space, tab and new line, in precisely that order.
41902as_nl='
41903'
41904IFS=" $as_nl"
41905
41906# CDPATH.
41907$as_unset CDPATH
41908
41909exec 6>&1
41910
41911# Open the log real soon, to keep \$[0] and so on meaningful, and to
41912# report actual input values of CONFIG_FILES etc. instead of their
41913# values after options handling. Logging --version etc. is OK.
41914exec 5>>config.log
41915{
41916 echo
41917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41918## Running $as_me. ##
41919_ASBOX
41920} >&5
41921cat >&5 <<_CSEOF
41922
41923This file was extended by wxWindows $as_me 2.5.1, which was
dcc1b6ad 41924generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41925
41926 CONFIG_FILES = $CONFIG_FILES
41927 CONFIG_HEADERS = $CONFIG_HEADERS
41928 CONFIG_LINKS = $CONFIG_LINKS
41929 CONFIG_COMMANDS = $CONFIG_COMMANDS
41930 $ $0 $@
41931
41932_CSEOF
41933echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41934echo >&5
41935_ACEOF
41936
41937# Files that config.status was made for.
41938if test -n "$ac_config_files"; then
41939 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41940fi
41941
41942if test -n "$ac_config_headers"; then
41943 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41944fi
41945
41946if test -n "$ac_config_links"; then
41947 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41948fi
41949
41950if test -n "$ac_config_commands"; then
41951 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41952fi
41953
41954cat >>$CONFIG_STATUS <<\_ACEOF
41955
41956ac_cs_usage="\
41957\`$as_me' instantiates files from templates according to the
41958current configuration.
41959
41960Usage: $0 [OPTIONS] [FILE]...
41961
41962 -h, --help print this help, then exit
41963 -V, --version print version number, then exit
41964 -q, --quiet do not print progress messages
41965 -d, --debug don't remove temporary files
41966 --recheck update $as_me by reconfiguring in the same conditions
41967 --file=FILE[:TEMPLATE]
41968 instantiate the configuration file FILE
41969 --header=FILE[:TEMPLATE]
41970 instantiate the configuration header FILE
41971
41972Configuration files:
41973$config_files
41974
41975Configuration headers:
41976$config_headers
41977
41978Configuration commands:
41979$config_commands
41980
41981Report bugs to <bug-autoconf@gnu.org>."
41982_ACEOF
41983
41984cat >>$CONFIG_STATUS <<_ACEOF
41985ac_cs_version="\\
41986wxWindows config.status 2.5.1
dcc1b6ad 41987configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41988 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41989
41990Copyright (C) 2003 Free Software Foundation, Inc.
41991This config.status script is free software; the Free Software Foundation
41992gives unlimited permission to copy, distribute and modify it."
41993srcdir=$srcdir
41994INSTALL="$INSTALL"
41995_ACEOF
41996
41997cat >>$CONFIG_STATUS <<\_ACEOF
41998# If no file are specified by the user, then we need to provide default
41999# value. By we need to know if files were specified by the user.
42000ac_need_defaults=:
42001while test $# != 0
42002do
42003 case $1 in
42004 --*=*)
42005 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42006 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42007 ac_shift=:
42008 ;;
42009 -*)
42010 ac_option=$1
42011 ac_optarg=$2
42012 ac_shift=shift
42013 ;;
42014 *) # This is not an option, so the user has probably given explicit
42015 # arguments.
42016 ac_option=$1
42017 ac_need_defaults=false;;
42018 esac
42019
42020 case $ac_option in
42021 # Handling of the options.
42022_ACEOF
42023cat >>$CONFIG_STATUS <<\_ACEOF
42024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42025 ac_cs_recheck=: ;;
42026 --version | --vers* | -V )
42027 echo "$ac_cs_version"; exit 0 ;;
42028 --he | --h)
42029 # Conflict between --help and --header
42030 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42031Try \`$0 --help' for more information." >&5
42032echo "$as_me: error: ambiguous option: $1
42033Try \`$0 --help' for more information." >&2;}
42034 { (exit 1); exit 1; }; };;
42035 --help | --hel | -h )
42036 echo "$ac_cs_usage"; exit 0 ;;
42037 --debug | --d* | -d )
42038 debug=: ;;
42039 --file | --fil | --fi | --f )
42040 $ac_shift
42041 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42042 ac_need_defaults=false;;
42043 --header | --heade | --head | --hea )
42044 $ac_shift
42045 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42046 ac_need_defaults=false;;
42047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42048 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42049 ac_cs_silent=: ;;
42050
42051 # This is an error.
42052 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42053Try \`$0 --help' for more information." >&5
42054echo "$as_me: error: unrecognized option: $1
42055Try \`$0 --help' for more information." >&2;}
42056 { (exit 1); exit 1; }; } ;;
42057
42058 *) ac_config_targets="$ac_config_targets $1" ;;
42059
42060 esac
42061 shift
42062done
42063
42064ac_configure_extra_args=
42065
42066if $ac_cs_silent; then
42067 exec 6>/dev/null
42068 ac_configure_extra_args="$ac_configure_extra_args --silent"
42069fi
42070
42071_ACEOF
42072cat >>$CONFIG_STATUS <<_ACEOF
42073if \$ac_cs_recheck; then
42074 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42075 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42076fi
42077
42078_ACEOF
42079
42080cat >>$CONFIG_STATUS <<_ACEOF
42081#
42082# INIT-COMMANDS section.
42083#
42084
42085
42086 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
42087 LN_S="${LN_S}"
42088
42089
42090
42091_ACEOF
42092
42093
42094
42095cat >>$CONFIG_STATUS <<\_ACEOF
42096for ac_config_target in $ac_config_targets
42097do
42098 case "$ac_config_target" in
42099 # Handling of arguments.
42100 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
42101 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42102 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42103 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
42104 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42105 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
42106 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42107echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42108 { (exit 1); exit 1; }; };;
42109 esac
42110done
42111
42112# If the user did not use the arguments to specify the items to instantiate,
42113# then the envvar interface is used. Set only those that are not.
42114# We use the long form for the default assignment because of an extremely
42115# bizarre bug on SunOS 4.1.3.
42116if $ac_need_defaults; then
42117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42120fi
42121
42122# Have a temporary directory for convenience. Make it in the build tree
42123# simply because there is no reason to put it here, and in addition,
42124# creating and moving files from /tmp can sometimes cause problems.
42125# Create a temporary directory, and hook for its removal unless debugging.
42126$debug ||
42127{
42128 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42129 trap '{ (exit 1); exit 1; }' 1 2 13 15
42130}
42131
42132# Create a (secure) tmp directory for tmp files.
42133
42134{
42135 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42136 test -n "$tmp" && test -d "$tmp"
42137} ||
42138{
42139 tmp=./confstat$$-$RANDOM
42140 (umask 077 && mkdir $tmp)
42141} ||
42142{
42143 echo "$me: cannot create a temporary directory in ." >&2
42144 { (exit 1); exit 1; }
42145}
42146
42147_ACEOF
42148
42149cat >>$CONFIG_STATUS <<_ACEOF
42150
42151#
42152# CONFIG_FILES section.
42153#
42154
42155# No need to generate the scripts if there are no CONFIG_FILES.
42156# This happens for instance when ./config.status config.h
42157if test -n "\$CONFIG_FILES"; then
42158 # Protect against being on the right side of a sed subst in config.status.
42159 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42160 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42161s,@SHELL@,$SHELL,;t t
42162s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42163s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42164s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42165s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42166s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42167s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42168s,@exec_prefix@,$exec_prefix,;t t
42169s,@prefix@,$prefix,;t t
42170s,@program_transform_name@,$program_transform_name,;t t
42171s,@bindir@,$bindir,;t t
42172s,@sbindir@,$sbindir,;t t
42173s,@libexecdir@,$libexecdir,;t t
42174s,@datadir@,$datadir,;t t
42175s,@sysconfdir@,$sysconfdir,;t t
42176s,@sharedstatedir@,$sharedstatedir,;t t
42177s,@localstatedir@,$localstatedir,;t t
42178s,@libdir@,$libdir,;t t
42179s,@includedir@,$includedir,;t t
42180s,@oldincludedir@,$oldincludedir,;t t
42181s,@infodir@,$infodir,;t t
42182s,@mandir@,$mandir,;t t
42183s,@build_alias@,$build_alias,;t t
42184s,@host_alias@,$host_alias,;t t
42185s,@target_alias@,$target_alias,;t t
42186s,@DEFS@,$DEFS,;t t
42187s,@ECHO_C@,$ECHO_C,;t t
42188s,@ECHO_N@,$ECHO_N,;t t
42189s,@ECHO_T@,$ECHO_T,;t t
42190s,@LIBS@,$LIBS,;t t
42191s,@build@,$build,;t t
42192s,@build_cpu@,$build_cpu,;t t
42193s,@build_vendor@,$build_vendor,;t t
42194s,@build_os@,$build_os,;t t
42195s,@host@,$host,;t t
42196s,@host_cpu@,$host_cpu,;t t
42197s,@host_vendor@,$host_vendor,;t t
42198s,@host_os@,$host_os,;t t
42199s,@target@,$target,;t t
42200s,@target_cpu@,$target_cpu,;t t
42201s,@target_vendor@,$target_vendor,;t t
42202s,@target_os@,$target_os,;t t
42203s,@CC@,$CC,;t t
42204s,@CFLAGS@,$CFLAGS,;t t
42205s,@LDFLAGS@,$LDFLAGS,;t t
42206s,@CPPFLAGS@,$CPPFLAGS,;t t
42207s,@ac_ct_CC@,$ac_ct_CC,;t t
42208s,@EXEEXT@,$EXEEXT,;t t
42209s,@OBJEXT@,$OBJEXT,;t t
42210s,@CPP@,$CPP,;t t
42211s,@EGREP@,$EGREP,;t t
42212s,@CXX@,$CXX,;t t
42213s,@CXXFLAGS@,$CXXFLAGS,;t t
42214s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42215s,@RANLIB@,$RANLIB,;t t
42216s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42217s,@AR@,$AR,;t t
42218s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42219s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42220s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42221s,@STRIP@,$STRIP,;t t
42222s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42223s,@LN_S@,$LN_S,;t t
42224s,@CXXCPP@,$CXXCPP,;t t
42225s,@subdirs@,$subdirs,;t t
42226s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42227s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42228s,@GTK_LIBS@,$GTK_LIBS,;t t
42229s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42230s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42231s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42232s,@X_CFLAGS@,$X_CFLAGS,;t t
42233s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42234s,@X_LIBS@,$X_LIBS,;t t
42235s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42236s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42237s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42238s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42239s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42240s,@RESCOMP@,$RESCOMP,;t t
42241s,@DEREZ@,$DEREZ,;t t
42242s,@SETFILE@,$SETFILE,;t t
42243s,@LIBICONV@,$LIBICONV,;t t
42244s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42245s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42246s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42247s,@SDL_LIBS@,$SDL_LIBS,;t t
42248s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42249s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42250s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42251s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42252s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42253s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42254s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42255s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42256s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42257s,@VENDOR@,$VENDOR,;t t
42258s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42259s,@WXUNIV@,$WXUNIV,;t t
42260s,@MONOLITHIC@,$MONOLITHIC,;t t
42261s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42262s,@EXTRALIBS@,$EXTRALIBS,;t t
42263s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42264s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42265s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42266s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42267s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42268s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42269s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42270s,@UNICODE@,$UNICODE,;t t
42271s,@BUILD@,$BUILD,;t t
42272s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42273s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42274s,@SHARED@,$SHARED,;t t
42275s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42276s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42277s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42278s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42279s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42280s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42281s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42282s,@SET_MAKE@,$SET_MAKE,;t t
42283s,@MAKE_SET@,$MAKE_SET,;t t
42284s,@ac_ct_AR@,$ac_ct_AR,;t t
42285s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42286s,@NM@,$NM,;t t
42287s,@ac_ct_NM@,$ac_ct_NM,;t t
42288s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42289s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42290s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42291s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42292s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42293s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42294s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42295s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42296s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42297s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42298s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42299s,@LIBPREFIX@,$LIBPREFIX,;t t
42300s,@LIBEXT@,$LIBEXT,;t t
42301s,@DLLPREFIX@,$DLLPREFIX,;t t
42302s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42303s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42304s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42305s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42306s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42307s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42308s,@PIC_FLAG@,$PIC_FLAG,;t t
42309s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42310s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42311s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42312s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42313s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42314s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42315s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42316s,@GCC_PCH@,$GCC_PCH,;t t
42317s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42318s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42319s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42320s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42321s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42322s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42323s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42324s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42325s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42326s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42327s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42328s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42329s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42330s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42331s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42332s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42333s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42334s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42335s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42336s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42337s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42338s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42339s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42340s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42341s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42342s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42343s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42344s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42345s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42346s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42347s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42348s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42349s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42350s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42351s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42352s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42353s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42354s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42355s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42356s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42357s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42358s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42359s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42360s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42361s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42362s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42363s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42364s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42365s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42366s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42367s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42368s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42369s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42370s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42371s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42372s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42373s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42374s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42375s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42376s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42377s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42378s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42379s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42380s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42381s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42382s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42383s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42384s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42385s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42386s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42387s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42388s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42389s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42390s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42391s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42392s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42393s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42394s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42395s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42396s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42397s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42398s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42399s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42400s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42401s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42402s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42403s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42404s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42405s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42406s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42407s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42408s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42409s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42410s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42411s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42412s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42413s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42414s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42415s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42416s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42417s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42418s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42419s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42420s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42421s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42422s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42423s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42424s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42425s,@PATH_IFS@,$PATH_IFS,;t t
42426s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42427s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42428s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
42429s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42430s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42431s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42432s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42433s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42434s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42435s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42436s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42437s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42438s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42439s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42440s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42441s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42442s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42443s,@WX_ALL@,$WX_ALL,;t t
42444s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42445s,@SHARED_LD@,$SHARED_LD,;t t
42446s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42447s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42448s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42449s,@USE_GUI@,$USE_GUI,;t t
42450s,@AFMINSTALL@,$AFMINSTALL,;t t
42451s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42452s,@TOOLKIT@,$TOOLKIT,;t t
42453s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42454s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42455s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42456s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42457s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42458s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42459s,@cross_compiling@,$cross_compiling,;t t
42460s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42461s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42462s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42463s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42464s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42465s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42466s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42467s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42468s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
42469s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42470s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42471s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42472s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42473s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42474s,@GUIDIST@,$GUIDIST,;t t
42475s,@PORT_FILES@,$PORT_FILES,;t t
42476s,@DISTDIR@,$DISTDIR,;t t
42477s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42478s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42479s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42480s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42481s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42482s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42483s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42484s,@RESFLAGS@,$RESFLAGS,;t t
42485s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42486s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42487s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42488s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42489s,@MACRESCOMP@,$MACRESCOMP,;t t
42490s,@MACSETFILE@,$MACSETFILE,;t t
42491s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42492s,@GCC@,$GCC,;t t
42493s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
42494s,@DLLTOOL@,$DLLTOOL,;t t
42495s,@AS@,$AS,;t t
42496s,@LD@,$LD,;t t
42497s,@MAKEINFO@,$MAKEINFO,;t t
42498s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42499s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42500s,@LIBOBJS@,$LIBOBJS,;t t
42501s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42502CEOF
42503
42504_ACEOF
42505
42506 cat >>$CONFIG_STATUS <<\_ACEOF
42507 # Split the substitutions into bite-sized pieces for seds with
42508 # small command number limits, like on Digital OSF/1 and HP-UX.
42509 ac_max_sed_lines=48
42510 ac_sed_frag=1 # Number of current file.
42511 ac_beg=1 # First line for current file.
42512 ac_end=$ac_max_sed_lines # Line after last line for current file.
42513 ac_more_lines=:
42514 ac_sed_cmds=
42515 while $ac_more_lines; do
42516 if test $ac_beg -gt 1; then
42517 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42518 else
42519 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42520 fi
42521 if test ! -s $tmp/subs.frag; then
42522 ac_more_lines=false
42523 else
42524 # The purpose of the label and of the branching condition is to
42525 # speed up the sed processing (if there are no `@' at all, there
42526 # is no need to browse any of the substitutions).
42527 # These are the two extra sed commands mentioned above.
42528 (echo ':t
42529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42530 if test -z "$ac_sed_cmds"; then
42531 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42532 else
42533 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42534 fi
42535 ac_sed_frag=`expr $ac_sed_frag + 1`
42536 ac_beg=$ac_end
42537 ac_end=`expr $ac_end + $ac_max_sed_lines`
42538 fi
42539 done
42540 if test -z "$ac_sed_cmds"; then
42541 ac_sed_cmds=cat
42542 fi
42543fi # test -n "$CONFIG_FILES"
42544
42545_ACEOF
42546cat >>$CONFIG_STATUS <<\_ACEOF
42547for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42549 case $ac_file in
42550 - | *:- | *:-:* ) # input from stdin
42551 cat >$tmp/stdin
42552 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42554 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42555 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42556 * ) ac_file_in=$ac_file.in ;;
42557 esac
42558
42559 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42560 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42561$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42562 X"$ac_file" : 'X\(//\)[^/]' \| \
42563 X"$ac_file" : 'X\(//\)$' \| \
42564 X"$ac_file" : 'X\(/\)' \| \
42565 . : '\(.\)' 2>/dev/null ||
42566echo X"$ac_file" |
42567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42569 /^X\(\/\/\)$/{ s//\1/; q; }
42570 /^X\(\/\).*/{ s//\1/; q; }
42571 s/.*/./; q'`
42572 { if $as_mkdir_p; then
42573 mkdir -p "$ac_dir"
42574 else
42575 as_dir="$ac_dir"
42576 as_dirs=
42577 while test ! -d "$as_dir"; do
42578 as_dirs="$as_dir $as_dirs"
42579 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42581 X"$as_dir" : 'X\(//\)[^/]' \| \
42582 X"$as_dir" : 'X\(//\)$' \| \
42583 X"$as_dir" : 'X\(/\)' \| \
42584 . : '\(.\)' 2>/dev/null ||
42585echo X"$as_dir" |
42586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42588 /^X\(\/\/\)$/{ s//\1/; q; }
42589 /^X\(\/\).*/{ s//\1/; q; }
42590 s/.*/./; q'`
42591 done
42592 test ! -n "$as_dirs" || mkdir $as_dirs
42593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42594echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42595 { (exit 1); exit 1; }; }; }
42596
42597 ac_builddir=.
42598
42599if test "$ac_dir" != .; then
42600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42601 # A "../" for each directory in $ac_dir_suffix.
42602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42603else
42604 ac_dir_suffix= ac_top_builddir=
42605fi
42606
42607case $srcdir in
42608 .) # No --srcdir option. We are building in place.
42609 ac_srcdir=.
42610 if test -z "$ac_top_builddir"; then
42611 ac_top_srcdir=.
42612 else
42613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42614 fi ;;
42615 [\\/]* | ?:[\\/]* ) # Absolute path.
42616 ac_srcdir=$srcdir$ac_dir_suffix;
42617 ac_top_srcdir=$srcdir ;;
42618 *) # Relative path.
42619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42620 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42621esac
42622
42623# Do not use `cd foo && pwd` to compute absolute paths, because
42624# the directories may not exist.
42625case `pwd` in
42626.) ac_abs_builddir="$ac_dir";;
42627*)
42628 case "$ac_dir" in
42629 .) ac_abs_builddir=`pwd`;;
42630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42631 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42632 esac;;
42633esac
42634case $ac_abs_builddir in
42635.) ac_abs_top_builddir=${ac_top_builddir}.;;
42636*)
42637 case ${ac_top_builddir}. in
42638 .) ac_abs_top_builddir=$ac_abs_builddir;;
42639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42641 esac;;
42642esac
42643case $ac_abs_builddir in
42644.) ac_abs_srcdir=$ac_srcdir;;
42645*)
42646 case $ac_srcdir in
42647 .) ac_abs_srcdir=$ac_abs_builddir;;
42648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42650 esac;;
42651esac
42652case $ac_abs_builddir in
42653.) ac_abs_top_srcdir=$ac_top_srcdir;;
42654*)
42655 case $ac_top_srcdir in
42656 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42659 esac;;
42660esac
42661
42662
42663 case $INSTALL in
42664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42665 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42666 esac
42667
dcc1b6ad
VS
42668 if test x"$ac_file" != x-; then
42669 { echo "$as_me:$LINENO: creating $ac_file" >&5
42670echo "$as_me: creating $ac_file" >&6;}
42671 rm -f "$ac_file"
42672 fi
a848cd7e
SC
42673 # Let's still pretend it is `configure' which instantiates (i.e., don't
42674 # use $as_me), people would be surprised to read:
42675 # /* config.h. Generated by config.status. */
42676 if test x"$ac_file" = x-; then
42677 configure_input=
42678 else
42679 configure_input="$ac_file. "
42680 fi
42681 configure_input=$configure_input"Generated from `echo $ac_file_in |
42682 sed 's,.*/,,'` by configure."
42683
42684 # First look for the input files in the build tree, otherwise in the
42685 # src tree.
42686 ac_file_inputs=`IFS=:
42687 for f in $ac_file_in; do
42688 case $f in
42689 -) echo $tmp/stdin ;;
42690 [\\/$]*)
42691 # Absolute (can't be DOS-style, as IFS=:)
42692 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42693echo "$as_me: error: cannot find input file: $f" >&2;}
42694 { (exit 1); exit 1; }; }
42695 echo "$f";;
42696 *) # Relative
42697 if test -f "$f"; then
42698 # Build tree
42699 echo "$f"
42700 elif test -f "$srcdir/$f"; then
42701 # Source tree
42702 echo "$srcdir/$f"
42703 else
42704 # /dev/null tree
42705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42706echo "$as_me: error: cannot find input file: $f" >&2;}
42707 { (exit 1); exit 1; }; }
42708 fi;;
42709 esac
42710 done` || { (exit 1); exit 1; }
42711_ACEOF
42712cat >>$CONFIG_STATUS <<_ACEOF
42713 sed "$ac_vpsub
42714$extrasub
42715_ACEOF
42716cat >>$CONFIG_STATUS <<\_ACEOF
42717:t
42718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42719s,@configure_input@,$configure_input,;t t
42720s,@srcdir@,$ac_srcdir,;t t
42721s,@abs_srcdir@,$ac_abs_srcdir,;t t
42722s,@top_srcdir@,$ac_top_srcdir,;t t
42723s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42724s,@builddir@,$ac_builddir,;t t
42725s,@abs_builddir@,$ac_abs_builddir,;t t
42726s,@top_builddir@,$ac_top_builddir,;t t
42727s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42728s,@INSTALL@,$ac_INSTALL,;t t
42729" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42730 rm -f $tmp/stdin
42731 if test x"$ac_file" != x-; then
42732 mv $tmp/out $ac_file
42733 else
42734 cat $tmp/out
42735 rm -f $tmp/out
42736 fi
42737
42738done
42739_ACEOF
42740cat >>$CONFIG_STATUS <<\_ACEOF
42741
42742#
42743# CONFIG_HEADER section.
42744#
42745
42746# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42747# NAME is the cpp macro being defined and VALUE is the value it is being given.
42748#
42749# ac_d sets the value in "#define NAME VALUE" lines.
42750ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42751ac_dB='[ ].*$,\1#\2'
42752ac_dC=' '
42753ac_dD=',;t'
42754# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42755ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42756ac_uB='$,\1#\2define\3'
42757ac_uC=' '
42758ac_uD=',;t'
42759
42760for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42762 case $ac_file in
42763 - | *:- | *:-:* ) # input from stdin
42764 cat >$tmp/stdin
42765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42769 * ) ac_file_in=$ac_file.in ;;
42770 esac
42771
42772 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42773echo "$as_me: creating $ac_file" >&6;}
42774
42775 # First look for the input files in the build tree, otherwise in the
42776 # src tree.
42777 ac_file_inputs=`IFS=:
42778 for f in $ac_file_in; do
42779 case $f in
42780 -) echo $tmp/stdin ;;
42781 [\\/$]*)
42782 # Absolute (can't be DOS-style, as IFS=:)
42783 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42784echo "$as_me: error: cannot find input file: $f" >&2;}
42785 { (exit 1); exit 1; }; }
42786 # Do quote $f, to prevent DOS paths from being IFS'd.
42787 echo "$f";;
42788 *) # Relative
42789 if test -f "$f"; then
42790 # Build tree
42791 echo "$f"
42792 elif test -f "$srcdir/$f"; then
42793 # Source tree
42794 echo "$srcdir/$f"
42795 else
42796 # /dev/null tree
42797 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42798echo "$as_me: error: cannot find input file: $f" >&2;}
42799 { (exit 1); exit 1; }; }
42800 fi;;
42801 esac
42802 done` || { (exit 1); exit 1; }
42803 # Remove the trailing spaces.
42804 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42805
42806_ACEOF
42807
42808# Transform confdefs.h into two sed scripts, `conftest.defines' and
42809# `conftest.undefs', that substitutes the proper values into
42810# config.h.in to produce config.h. The first handles `#define'
42811# templates, and the second `#undef' templates.
42812# And first: Protect against being on the right side of a sed subst in
42813# config.status. Protect against being in an unquoted here document
42814# in config.status.
42815rm -f conftest.defines conftest.undefs
42816# Using a here document instead of a string reduces the quoting nightmare.
42817# Putting comments in sed scripts is not portable.
42818#
42819# `end' is used to avoid that the second main sed command (meant for
42820# 0-ary CPP macros) applies to n-ary macro definitions.
42821# See the Autoconf documentation for `clear'.
42822cat >confdef2sed.sed <<\_ACEOF
42823s/[\\&,]/\\&/g
42824s,[\\$`],\\&,g
42825t clear
42826: clear
42827s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42828t end
42829s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42830: end
42831_ACEOF
42832# If some macros were called several times there might be several times
42833# the same #defines, which is useless. Nevertheless, we may not want to
42834# sort them, since we want the *last* AC-DEFINE to be honored.
42835uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42836sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42837rm -f confdef2sed.sed
42838
42839# This sed command replaces #undef with comments. This is necessary, for
42840# example, in the case of _POSIX_SOURCE, which is predefined and required
42841# on some systems where configure will not decide to define it.
42842cat >>conftest.undefs <<\_ACEOF
42843s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42844_ACEOF
42845
42846# Break up conftest.defines because some shells have a limit on the size
42847# of here documents, and old seds have small limits too (100 cmds).
42848echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42849echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42850echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42851echo ' :' >>$CONFIG_STATUS
42852rm -f conftest.tail
42853while grep . conftest.defines >/dev/null
42854do
42855 # Write a limited-size here document to $tmp/defines.sed.
42856 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42857 # Speed up: don't consider the non `#define' lines.
42858 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42859 # Work around the forget-to-reset-the-flag bug.
42860 echo 't clr' >>$CONFIG_STATUS
42861 echo ': clr' >>$CONFIG_STATUS
42862 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42863 echo 'CEOF
42864 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42865 rm -f $tmp/in
42866 mv $tmp/out $tmp/in
42867' >>$CONFIG_STATUS
42868 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42869 rm -f conftest.defines
42870 mv conftest.tail conftest.defines
42871done
42872rm -f conftest.defines
42873echo ' fi # grep' >>$CONFIG_STATUS
42874echo >>$CONFIG_STATUS
42875
42876# Break up conftest.undefs because some shells have a limit on the size
42877# of here documents, and old seds have small limits too (100 cmds).
42878echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42879rm -f conftest.tail
42880while grep . conftest.undefs >/dev/null
42881do
42882 # Write a limited-size here document to $tmp/undefs.sed.
42883 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42884 # Speed up: don't consider the non `#undef'
42885 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42886 # Work around the forget-to-reset-the-flag bug.
42887 echo 't clr' >>$CONFIG_STATUS
42888 echo ': clr' >>$CONFIG_STATUS
42889 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42890 echo 'CEOF
42891 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42892 rm -f $tmp/in
42893 mv $tmp/out $tmp/in
42894' >>$CONFIG_STATUS
42895 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42896 rm -f conftest.undefs
42897 mv conftest.tail conftest.undefs
42898done
42899rm -f conftest.undefs
42900
42901cat >>$CONFIG_STATUS <<\_ACEOF
42902 # Let's still pretend it is `configure' which instantiates (i.e., don't
42903 # use $as_me), people would be surprised to read:
42904 # /* config.h. Generated by config.status. */
42905 if test x"$ac_file" = x-; then
42906 echo "/* Generated by configure. */" >$tmp/config.h
42907 else
42908 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42909 fi
42910 cat $tmp/in >>$tmp/config.h
42911 rm -f $tmp/in
42912 if test x"$ac_file" != x-; then
42913 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42914 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42915echo "$as_me: $ac_file is unchanged" >&6;}
42916 else
42917 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42918$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42919 X"$ac_file" : 'X\(//\)[^/]' \| \
42920 X"$ac_file" : 'X\(//\)$' \| \
42921 X"$ac_file" : 'X\(/\)' \| \
42922 . : '\(.\)' 2>/dev/null ||
42923echo X"$ac_file" |
42924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42926 /^X\(\/\/\)$/{ s//\1/; q; }
42927 /^X\(\/\).*/{ s//\1/; q; }
42928 s/.*/./; q'`
42929 { if $as_mkdir_p; then
42930 mkdir -p "$ac_dir"
42931 else
42932 as_dir="$ac_dir"
42933 as_dirs=
42934 while test ! -d "$as_dir"; do
42935 as_dirs="$as_dir $as_dirs"
42936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42938 X"$as_dir" : 'X\(//\)[^/]' \| \
42939 X"$as_dir" : 'X\(//\)$' \| \
42940 X"$as_dir" : 'X\(/\)' \| \
42941 . : '\(.\)' 2>/dev/null ||
42942echo X"$as_dir" |
42943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42945 /^X\(\/\/\)$/{ s//\1/; q; }
42946 /^X\(\/\).*/{ s//\1/; q; }
42947 s/.*/./; q'`
42948 done
42949 test ! -n "$as_dirs" || mkdir $as_dirs
42950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42952 { (exit 1); exit 1; }; }; }
42953
42954 rm -f $ac_file
42955 mv $tmp/config.h $ac_file
42956 fi
42957 else
42958 cat $tmp/config.h
42959 rm -f $tmp/config.h
42960 fi
42961done
42962_ACEOF
42963cat >>$CONFIG_STATUS <<\_ACEOF
42964
42965#
42966# CONFIG_COMMANDS section.
42967#
42968for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42969 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42970 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42971 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42972$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42973 X"$ac_dest" : 'X\(//\)[^/]' \| \
42974 X"$ac_dest" : 'X\(//\)$' \| \
42975 X"$ac_dest" : 'X\(/\)' \| \
42976 . : '\(.\)' 2>/dev/null ||
42977echo X"$ac_dest" |
42978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42980 /^X\(\/\/\)$/{ s//\1/; q; }
42981 /^X\(\/\).*/{ s//\1/; q; }
42982 s/.*/./; q'`
42983 { if $as_mkdir_p; then
42984 mkdir -p "$ac_dir"
42985 else
42986 as_dir="$ac_dir"
42987 as_dirs=
42988 while test ! -d "$as_dir"; do
42989 as_dirs="$as_dir $as_dirs"
42990 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42991$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42992 X"$as_dir" : 'X\(//\)[^/]' \| \
42993 X"$as_dir" : 'X\(//\)$' \| \
42994 X"$as_dir" : 'X\(/\)' \| \
42995 . : '\(.\)' 2>/dev/null ||
42996echo X"$as_dir" |
42997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42999 /^X\(\/\/\)$/{ s//\1/; q; }
43000 /^X\(\/\).*/{ s//\1/; q; }
43001 s/.*/./; q'`
43002 done
43003 test ! -n "$as_dirs" || mkdir $as_dirs
43004 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43005echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43006 { (exit 1); exit 1; }; }; }
43007
43008 ac_builddir=.
43009
43010if test "$ac_dir" != .; then
43011 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43012 # A "../" for each directory in $ac_dir_suffix.
43013 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43014else
43015 ac_dir_suffix= ac_top_builddir=
43016fi
43017
43018case $srcdir in
43019 .) # No --srcdir option. We are building in place.
43020 ac_srcdir=.
43021 if test -z "$ac_top_builddir"; then
43022 ac_top_srcdir=.
43023 else
43024 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43025 fi ;;
43026 [\\/]* | ?:[\\/]* ) # Absolute path.
43027 ac_srcdir=$srcdir$ac_dir_suffix;
43028 ac_top_srcdir=$srcdir ;;
43029 *) # Relative path.
43030 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43031 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43032esac
43033
43034# Do not use `cd foo && pwd` to compute absolute paths, because
43035# the directories may not exist.
43036case `pwd` in
43037.) ac_abs_builddir="$ac_dir";;
43038*)
43039 case "$ac_dir" in
43040 .) ac_abs_builddir=`pwd`;;
43041 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43042 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43043 esac;;
43044esac
43045case $ac_abs_builddir in
43046.) ac_abs_top_builddir=${ac_top_builddir}.;;
43047*)
43048 case ${ac_top_builddir}. in
43049 .) ac_abs_top_builddir=$ac_abs_builddir;;
43050 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43051 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43052 esac;;
43053esac
43054case $ac_abs_builddir in
43055.) ac_abs_srcdir=$ac_srcdir;;
43056*)
43057 case $ac_srcdir in
43058 .) ac_abs_srcdir=$ac_abs_builddir;;
43059 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43060 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43061 esac;;
43062esac
43063case $ac_abs_builddir in
43064.) ac_abs_top_srcdir=$ac_top_srcdir;;
43065*)
43066 case $ac_top_srcdir in
43067 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43068 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43069 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43070 esac;;
43071esac
43072
43073
43074 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43075echo "$as_me: executing $ac_dest commands" >&6;}
43076 case $ac_dest in
43077 default )
43078 if test ! -h wx-config; then
43079 chmod +x wx-config
43080 mv wx-config wx${TOOLCHAIN_NAME}-config
43081 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
43082 fi
43083
43084 if test ! -d lib; then
43085 mkdir lib
43086 fi
43087 if test ! -d lib/wx; then
43088 mkdir lib/wx
43089 fi
43090 if test ! -d lib/wx/include; then
43091 mkdir lib/wx/include
43092 fi
43093 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
43094 mkdir lib/wx/include/${TOOLCHAIN_NAME}
43095 fi
43096 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
43097 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
43098 fi
43099 if test -f setup.h; then
43100 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
43101 fi
43102 ;;
43103 esac
43104done
43105_ACEOF
43106
43107cat >>$CONFIG_STATUS <<\_ACEOF
43108
43109{ (exit 0); exit 0; }
43110_ACEOF
43111chmod +x $CONFIG_STATUS
43112ac_clean_files=$ac_clean_files_save
43113
43114
43115# configure is writing to config.log, and then calls config.status.
43116# config.status does its own redirection, appending to config.log.
43117# Unfortunately, on DOS this fails, as config.log is still kept open
43118# by configure, so config.status won't be able to write to it; its
43119# output is simply discarded. So we exec the FD to /dev/null,
43120# effectively closing config.log, so it can be properly (re)opened and
43121# appended to by config.status. When coming back to configure, we
43122# need to make the FD available again.
43123if test "$no_create" != yes; then
43124 ac_cs_success=:
43125 ac_config_status_args=
43126 test "$silent" = yes &&
43127 ac_config_status_args="$ac_config_status_args --quiet"
43128 exec 5>/dev/null
43129 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43130 exec 5>>config.log
43131 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43132 # would make configure fail if this is the last instruction.
43133 $ac_cs_success || { (exit 1); exit 1; }
43134fi
43135
43136#
43137# CONFIG_SUBDIRS section.
43138#
43139if test "$no_recursion" != yes; then
43140
43141 # Remove --cache-file and --srcdir arguments so they do not pile up.
43142 ac_sub_configure_args=
43143 ac_prev=
43144 for ac_arg in $ac_configure_args; do
43145 if test -n "$ac_prev"; then
43146 ac_prev=
43147 continue
43148 fi
43149 case $ac_arg in
43150 -cache-file | --cache-file | --cache-fil | --cache-fi \
43151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43152 ac_prev=cache_file ;;
43153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43155 | --c=*)
43156 ;;
43157 --config-cache | -C)
43158 ;;
43159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43160 ac_prev=srcdir ;;
43161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43162 ;;
43163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43164 ac_prev=prefix ;;
43165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43166 ;;
43167 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43168 esac
43169 done
43170
43171 # Always prepend --prefix to ensure using the same prefix
43172 # in subdir configurations.
43173 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43174
43175 ac_popdir=`pwd`
43176 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43177
43178 # Do not complain, so a configure script can configure whichever
43179 # parts of a large source tree are present.
43180 test -d $srcdir/$ac_dir || continue
43181
43182 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43183echo "$as_me: configuring in $ac_dir" >&6;}
43184 { if $as_mkdir_p; then
43185 mkdir -p "$ac_dir"
43186 else
43187 as_dir="$ac_dir"
43188 as_dirs=
43189 while test ! -d "$as_dir"; do
43190 as_dirs="$as_dir $as_dirs"
43191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43193 X"$as_dir" : 'X\(//\)[^/]' \| \
43194 X"$as_dir" : 'X\(//\)$' \| \
43195 X"$as_dir" : 'X\(/\)' \| \
43196 . : '\(.\)' 2>/dev/null ||
43197echo X"$as_dir" |
43198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43200 /^X\(\/\/\)$/{ s//\1/; q; }
43201 /^X\(\/\).*/{ s//\1/; q; }
43202 s/.*/./; q'`
43203 done
43204 test ! -n "$as_dirs" || mkdir $as_dirs
43205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43206echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43207 { (exit 1); exit 1; }; }; }
43208
43209 ac_builddir=.
43210
43211if test "$ac_dir" != .; then
43212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43213 # A "../" for each directory in $ac_dir_suffix.
43214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43215else
43216 ac_dir_suffix= ac_top_builddir=
43217fi
43218
43219case $srcdir in
43220 .) # No --srcdir option. We are building in place.
43221 ac_srcdir=.
43222 if test -z "$ac_top_builddir"; then
43223 ac_top_srcdir=.
43224 else
43225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43226 fi ;;
43227 [\\/]* | ?:[\\/]* ) # Absolute path.
43228 ac_srcdir=$srcdir$ac_dir_suffix;
43229 ac_top_srcdir=$srcdir ;;
43230 *) # Relative path.
43231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43233esac
43234
43235# Do not use `cd foo && pwd` to compute absolute paths, because
43236# the directories may not exist.
43237case `pwd` in
43238.) ac_abs_builddir="$ac_dir";;
43239*)
43240 case "$ac_dir" in
43241 .) ac_abs_builddir=`pwd`;;
43242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43244 esac;;
43245esac
43246case $ac_abs_builddir in
43247.) ac_abs_top_builddir=${ac_top_builddir}.;;
43248*)
43249 case ${ac_top_builddir}. in
43250 .) ac_abs_top_builddir=$ac_abs_builddir;;
43251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43253 esac;;
43254esac
43255case $ac_abs_builddir in
43256.) ac_abs_srcdir=$ac_srcdir;;
43257*)
43258 case $ac_srcdir in
43259 .) ac_abs_srcdir=$ac_abs_builddir;;
43260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43262 esac;;
43263esac
43264case $ac_abs_builddir in
43265.) ac_abs_top_srcdir=$ac_top_srcdir;;
43266*)
43267 case $ac_top_srcdir in
43268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43271 esac;;
43272esac
43273
43274
43275 cd $ac_dir
43276
43277 # Check for guested configure; otherwise get Cygnus style configure.
43278 if test -f $ac_srcdir/configure.gnu; then
43279 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43280 elif test -f $ac_srcdir/configure; then
43281 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43282 elif test -f $ac_srcdir/configure.in; then
43283 ac_sub_configure=$ac_configure
43284 else
43285 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43286echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43287 ac_sub_configure=
43288 fi
43289
43290 # The recursion is here.
43291 if test -n "$ac_sub_configure"; then
43292 # Make the cache file name correct relative to the subdirectory.
43293 case $cache_file in
43294 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43295 *) # Relative path.
43296 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
43297 esac
43298
43299 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43300echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43301 # The eval makes quoting arguments work.
43302 eval $ac_sub_configure $ac_sub_configure_args \
43303 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43304 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
43305echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43306 { (exit 1); exit 1; }; }
43307 fi
43308
dcc1b6ad 43309 cd $ac_popdir
a848cd7e
SC
43310 done
43311fi
43312
43313
43314echo
43315echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
43316echo ""
43317echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
43318echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
43319
43320echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43321echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
43322echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
43323
43324echo " What level of wxWindows compatibility should be enabled?"
43325echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43326echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
43327
43328echo " Which libraries should wxWindows use?"
43329echo " jpeg ${wxUSE_LIBJPEG-none}"
43330echo " png ${wxUSE_LIBPNG-none}"
43331echo " regex ${wxUSE_REGEX}"
43332echo " tiff ${wxUSE_LIBTIFF-none}"
43333if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43334echo " xpm ${wxUSE_LIBXPM-none}"
43335fi
43336echo " zlib ${wxUSE_ZLIB}"
43337echo " odbc ${wxUSE_ODBC}"
43338echo " expat ${wxUSE_EXPAT}"
43339echo " libmspack ${wxUSE_LIBMSPACK}"
43340echo " sdl ${wxUSE_LIBSDL}"
43341
43342echo ""
43343